From 53c949ed886e1e703c83165f15e8d6c3b932f9ab Mon Sep 17 00:00:00 2001 From: Michael Mraka Date: Wed, 10 Mar 2021 10:59:35 +0100 Subject: [PATCH] re-generated vmaas API client with openapigenerator v5.0.1 --- vmaas/.openapi-generator/FILES | 14 +- vmaas/.openapi-generator/VERSION | 2 +- vmaas/README.md | 140 +- vmaas/api/openapi.json | 2 +- vmaas/api/openapi.yaml | 421 +++-- vmaas/api_default.go | 1369 +++++++++-------- vmaas/api_experimental.go | 235 ++- vmaas/client.go | 38 +- vmaas/configuration.go | 152 +- vmaas/docs/CvesRequest.md | 228 ++- vmaas/docs/CvesResponse.md | 155 +- vmaas/docs/CvesResponseCveList.md | 425 ++++- vmaas/docs/DBChangeResponse.md | 56 + vmaas/docs/DBChangeResponseDbchange.md | 160 ++ vmaas/docs/DbChangeResponse.md | 11 - vmaas/docs/DbChangeResponseDbchange.md | 15 - vmaas/docs/DefaultApi.md | 976 ++++++++---- vmaas/docs/ErrataRequest.md | 201 ++- vmaas/docs/ErrataResponse.md | 209 ++- vmaas/docs/ErrataResponseErrataList.md | 434 +++++- vmaas/docs/ExperimentalApi.md | 192 ++- vmaas/docs/PackagesRequest.md | 66 + vmaas/docs/PackagesResponse.md | 47 +- vmaas/docs/PackagesResponsePackageList.md | 155 +- vmaas/docs/PackagesResponseRepositories.md | 128 +- vmaas/docs/PatchesRequest.md | 174 ++- vmaas/docs/PatchesResponse.md | 47 +- vmaas/docs/PkgtreeRequest.md | 66 + vmaas/docs/PkgtreeResponse.md | 84 +- vmaas/docs/RPMPkgNamesRequest.md | 103 ++ vmaas/docs/RPMPkgNamesResponse.md | 92 ++ vmaas/docs/ReposRequest.md | 147 +- vmaas/docs/ReposResponse.md | 128 +- vmaas/docs/RpmPkgNamesRequest.md | 12 - vmaas/docs/RpmPkgNamesResponse.md | 12 - vmaas/docs/SRPMPkgNamesRequest.md | 103 ++ vmaas/docs/SRPMPkgNamesResponse.md | 92 ++ vmaas/docs/SrpmPkgNamesRequest.md | 12 - vmaas/docs/SrpmPkgNamesResponse.md | 12 - vmaas/docs/UpdatesRequest.md | 16 - vmaas/docs/UpdatesRequestModulesList.md | 12 - vmaas/docs/UpdatesResponse.md | 15 - vmaas/docs/UpdatesResponseAvailableUpdates.md | 15 - vmaas/docs/UpdatesResponseUpdateList.md | 13 - vmaas/docs/UpdatesV2Response.md | 155 +- .../docs/UpdatesV2ResponseAvailableUpdates.md | 160 ++ vmaas/docs/UpdatesV2ResponseUpdateList.md | 47 +- vmaas/docs/UpdatesV3Request.md | 254 ++- vmaas/docs/UpdatesV3RequestModulesList.md | 72 + vmaas/docs/VulnerabilitiesRequest.md | 226 ++- vmaas/docs/VulnerabilitiesResponse.md | 63 +- vmaas/go.mod | 4 +- vmaas/go.sum | 4 - vmaas/model_cves_request.go | 362 ++++- vmaas/model_cves_response.go | 256 ++- vmaas/model_cves_response_cve_list.go | 626 +++++++- vmaas/model_db_change_response.go | 111 +- vmaas/model_db_change_response_dbchange.go | 259 +++- vmaas/model_errata_request.go | 325 +++- vmaas/model_errata_response.go | 330 +++- vmaas/model_errata_response_errata_list.go | 635 +++++++- vmaas/model_packages_request.go | 139 +- vmaas/model_packages_response.go | 107 +- vmaas/model_packages_response_package_list.go | 255 ++- vmaas/model_packages_response_repositories.go | 218 ++- vmaas/model_patches_request.go | 287 +++- vmaas/model_patches_response.go | 107 +- vmaas/model_pkgtree_request.go | 139 +- vmaas/model_pkgtree_response.go | 143 +- vmaas/model_repos_request.go | 251 ++- vmaas/model_repos_response.go | 218 ++- vmaas/model_rpm_pkg_names_request.go | 180 ++- vmaas/model_rpm_pkg_names_response.go | 147 +- vmaas/model_srpm_pkg_names_request.go | 180 ++- vmaas/model_srpm_pkg_names_response.go | 147 +- vmaas/model_updates_request.go | 19 - vmaas/model_updates_request_modules_list.go | 15 - vmaas/model_updates_response.go | 18 - ...odel_updates_response_available_updates.go | 18 - vmaas/model_updates_response_update_list.go | 16 - vmaas/model_updates_v2_response.go | 255 ++- ...l_updates_v2_response_available_updates.go | 259 ++++ .../model_updates_v2_response_update_list.go | 107 +- vmaas/model_updates_v3_request.go | 402 ++++- .../model_updates_v3_request_modules_list.go | 137 ++ vmaas/model_vulnerabilities_request.go | 359 ++++- vmaas/model_vulnerabilities_response.go | 129 +- vmaas/response.go | 5 +- vmaas/utils.go | 335 ++++ 89 files changed, 13633 insertions(+), 1834 deletions(-) create mode 100644 vmaas/docs/DBChangeResponse.md create mode 100644 vmaas/docs/DBChangeResponseDbchange.md delete mode 100644 vmaas/docs/DbChangeResponse.md delete mode 100644 vmaas/docs/DbChangeResponseDbchange.md create mode 100644 vmaas/docs/RPMPkgNamesRequest.md create mode 100644 vmaas/docs/RPMPkgNamesResponse.md delete mode 100644 vmaas/docs/RpmPkgNamesRequest.md delete mode 100644 vmaas/docs/RpmPkgNamesResponse.md create mode 100644 vmaas/docs/SRPMPkgNamesRequest.md create mode 100644 vmaas/docs/SRPMPkgNamesResponse.md delete mode 100644 vmaas/docs/SrpmPkgNamesRequest.md delete mode 100644 vmaas/docs/SrpmPkgNamesResponse.md delete mode 100644 vmaas/docs/UpdatesRequest.md delete mode 100644 vmaas/docs/UpdatesRequestModulesList.md delete mode 100644 vmaas/docs/UpdatesResponse.md delete mode 100644 vmaas/docs/UpdatesResponseAvailableUpdates.md delete mode 100644 vmaas/docs/UpdatesResponseUpdateList.md create mode 100644 vmaas/docs/UpdatesV2ResponseAvailableUpdates.md create mode 100644 vmaas/docs/UpdatesV3RequestModulesList.md delete mode 100644 vmaas/model_updates_request.go delete mode 100644 vmaas/model_updates_request_modules_list.go delete mode 100644 vmaas/model_updates_response.go delete mode 100644 vmaas/model_updates_response_available_updates.go delete mode 100644 vmaas/model_updates_response_update_list.go create mode 100644 vmaas/model_updates_v2_response_available_updates.go create mode 100644 vmaas/model_updates_v3_request_modules_list.go create mode 100644 vmaas/utils.go diff --git a/vmaas/.openapi-generator/FILES b/vmaas/.openapi-generator/FILES index 734b42e..0e8244b 100644 --- a/vmaas/.openapi-generator/FILES +++ b/vmaas/.openapi-generator/FILES @@ -30,14 +30,11 @@ docs/ReposRequest.md docs/ReposResponse.md docs/SRPMPkgNamesRequest.md docs/SRPMPkgNamesResponse.md -docs/UpdatesRequest.md -docs/UpdatesRequestModulesList.md -docs/UpdatesResponse.md -docs/UpdatesResponseAvailableUpdates.md -docs/UpdatesResponseUpdateList.md docs/UpdatesV2Response.md +docs/UpdatesV2ResponseAvailableUpdates.md docs/UpdatesV2ResponseUpdateList.md docs/UpdatesV3Request.md +docs/UpdatesV3RequestModulesList.md docs/VulnerabilitiesRequest.md docs/VulnerabilitiesResponse.md git_push.sh @@ -65,14 +62,11 @@ model_rpm_pkg_names_request.go model_rpm_pkg_names_response.go model_srpm_pkg_names_request.go model_srpm_pkg_names_response.go -model_updates_request.go -model_updates_request_modules_list.go -model_updates_response.go -model_updates_response_available_updates.go -model_updates_response_update_list.go model_updates_v2_response.go +model_updates_v2_response_available_updates.go model_updates_v2_response_update_list.go model_updates_v3_request.go +model_updates_v3_request_modules_list.go model_vulnerabilities_request.go model_vulnerabilities_response.go response.go diff --git a/vmaas/.openapi-generator/VERSION b/vmaas/.openapi-generator/VERSION index ecedc98..32f3eaa 100644 --- a/vmaas/.openapi-generator/VERSION +++ b/vmaas/.openapi-generator/VERSION @@ -1 +1 @@ -4.3.1 \ No newline at end of file +5.0.1 \ No newline at end of file diff --git a/vmaas/README.md b/vmaas/README.md index 3c3e7b7..187cd1d 100644 --- a/vmaas/README.md +++ b/vmaas/README.md @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/opena ## Overview This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. -- API version: 1.20.4 +- API version: 2.5.0 - Package version: 1.0.0 - Build package: org.openapitools.codegen.languages.GoClientCodegen @@ -17,49 +17,91 @@ Install the following dependencies: go get github.com/stretchr/testify/assert go get golang.org/x/oauth2 go get golang.org/x/net/context -go get github.com/antihax/optional ``` Put the package under your project folder and add the following in import: ```golang -import "./vmaas" +import sw "./vmaas" +``` + +To use a proxy, set the environment variable `HTTP_PROXY`: + +```golang +os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port") +``` + +## Configuration of Server URL + +Default configuration comes with `Servers` field that contains server objects as defined in the OpenAPI specification. + +### Select Server Configuration + +For using other server than the one defined on index 0 set context value `sw.ContextServerIndex` of type `int`. + +```golang +ctx := context.WithValue(context.Background(), sw.ContextServerIndex, 1) +``` + +### Templated Server URL + +Templated server URL is formatted using default variables from configuration or from context value `sw.ContextServerVariables` of type `map[string]string`. + +```golang +ctx := context.WithValue(context.Background(), sw.ContextServerVariables, map[string]string{ + "basePath": "v2", +}) +``` + +Note, enum values are always validated and all unused variables are silently ignored. + +### URLs Configuration per Operation + +Each operation can use different server URL defined using `OperationServers` map in the `Configuration`. +An operation is uniquely identifield by `"{classname}Service.{nickname}"` string. +Similar rules for overriding default operation server index and variables applies by using `sw.ContextOperationServerIndices` and `sw.ContextOperationServerVariables` context maps. + +``` +ctx := context.WithValue(context.Background(), sw.ContextOperationServerIndices, map[string]int{ + "{classname}Service.{nickname}": 2, +}) +ctx = context.WithValue(context.Background(), sw.ContextOperationServerVariables, map[string]map[string]string{ + "{classname}Service.{nickname}": { + "port": "8443", + }, +}) ``` ## Documentation for API Endpoints -All URIs are relative to *http://localhost/api* +All URIs are relative to *http://localhost/api/vmaas/v3* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- -*DefaultApi* | [**AppCVEHandlerGetGet**](docs/DefaultApi.md#appcvehandlergetget) | **Get** /v1/cves/{cve} | -*DefaultApi* | [**AppCVEHandlerPostPost**](docs/DefaultApi.md#appcvehandlerpostpost) | **Post** /v1/cves | -*DefaultApi* | [**AppDBChangeHandlerGet**](docs/DefaultApi.md#appdbchangehandlerget) | **Get** /v1/dbchange | -*DefaultApi* | [**AppErrataHandlerGetGet**](docs/DefaultApi.md#apperratahandlergetget) | **Get** /v1/errata/{erratum} | -*DefaultApi* | [**AppErrataHandlerPostPost**](docs/DefaultApi.md#apperratahandlerpostpost) | **Post** /v1/errata | -*DefaultApi* | [**AppHealthHandlerGet**](docs/DefaultApi.md#apphealthhandlerget) | **Get** /v1/monitoring/health | Return API liveness status -*DefaultApi* | [**AppPackagesHandlerGetGet**](docs/DefaultApi.md#apppackageshandlergetget) | **Get** /v1/packages/{nevra} | -*DefaultApi* | [**AppPackagesHandlerPostPost**](docs/DefaultApi.md#apppackageshandlerpostpost) | **Post** /v1/packages | -*DefaultApi* | [**AppPatchesHandlerGetGet**](docs/DefaultApi.md#apppatcheshandlergetget) | **Get** /v1/patches/{nevra} | -*DefaultApi* | [**AppPatchesHandlerPostPost**](docs/DefaultApi.md#apppatcheshandlerpostpost) | **Post** /v1/patches | -*DefaultApi* | [**AppPkgtreeHandlerGetGet**](docs/DefaultApi.md#apppkgtreehandlergetget) | **Get** /v1/pkgtree/{package_name} | -*DefaultApi* | [**AppPkgtreeHandlerPostPost**](docs/DefaultApi.md#apppkgtreehandlerpostpost) | **Post** /v1/pkgtree | -*DefaultApi* | [**AppReadyHandlerGet**](docs/DefaultApi.md#appreadyhandlerget) | **Get** /v1/monitoring/ready | Return API readiness status -*DefaultApi* | [**AppReposHandlerGetGet**](docs/DefaultApi.md#appreposhandlergetget) | **Get** /v1/repos/{repo} | -*DefaultApi* | [**AppReposHandlerPostPost**](docs/DefaultApi.md#appreposhandlerpostpost) | **Post** /v1/repos | -*DefaultApi* | [**AppUpdatesHandlerGetGet**](docs/DefaultApi.md#appupdateshandlergetget) | **Get** /v1/updates/{nevra} | -*DefaultApi* | [**AppUpdatesHandlerPostPost**](docs/DefaultApi.md#appupdateshandlerpostpost) | **Post** /v1/updates | -*DefaultApi* | [**AppUpdatesHandlerV2GetGet**](docs/DefaultApi.md#appupdateshandlerv2getget) | **Get** /v2/updates/{nevra} | -*DefaultApi* | [**AppUpdatesHandlerV2PostPost**](docs/DefaultApi.md#appupdateshandlerv2postpost) | **Post** /v2/updates | -*DefaultApi* | [**AppUpdatesHandlerV3GetGet**](docs/DefaultApi.md#appupdateshandlerv3getget) | **Get** /v3/updates/{nevra} | -*DefaultApi* | [**AppUpdatesHandlerV3PostPost**](docs/DefaultApi.md#appupdateshandlerv3postpost) | **Post** /v3/updates | -*DefaultApi* | [**AppVersionHandlerGet**](docs/DefaultApi.md#appversionhandlerget) | **Get** /v1/version | -*DefaultApi* | [**AppVulnerabilitiesHandlerGetGet**](docs/DefaultApi.md#appvulnerabilitieshandlergetget) | **Get** /v1/vulnerabilities/{nevra} | -*DefaultApi* | [**AppVulnerabilitiesHandlerPostPost**](docs/DefaultApi.md#appvulnerabilitieshandlerpostpost) | **Post** /v1/vulnerabilities | -*ExperimentalApi* | [**AppRPMPkgNamesHandlerGetGet**](docs/ExperimentalApi.md#apprpmpkgnameshandlergetget) | **Get** /v1/package_names/rpms/{rpm} | -*ExperimentalApi* | [**AppRPMPkgNamesHandlerPostPost**](docs/ExperimentalApi.md#apprpmpkgnameshandlerpostpost) | **Post** /v1/package_names/rpms | -*ExperimentalApi* | [**AppSRPMPkgNamesHandlerGetGet**](docs/ExperimentalApi.md#appsrpmpkgnameshandlergetget) | **Get** /v1/package_names/srpms/{srpm} | -*ExperimentalApi* | [**AppSRPMPkgNamesHandlerPostPost**](docs/ExperimentalApi.md#appsrpmpkgnameshandlerpostpost) | **Post** /v1/package_names/srpms | +*DefaultApi* | [**AppCVEHandlerGetGet**](docs/DefaultApi.md#appcvehandlergetget) | **Get** /cves/{cve} | +*DefaultApi* | [**AppCVEHandlerPostPost**](docs/DefaultApi.md#appcvehandlerpostpost) | **Post** /cves | +*DefaultApi* | [**AppDBChangeHandlerGet**](docs/DefaultApi.md#appdbchangehandlerget) | **Get** /dbchange | +*DefaultApi* | [**AppErrataHandlerGetGet**](docs/DefaultApi.md#apperratahandlergetget) | **Get** /errata/{erratum} | +*DefaultApi* | [**AppErrataHandlerPostPost**](docs/DefaultApi.md#apperratahandlerpostpost) | **Post** /errata | +*DefaultApi* | [**AppHealthHandlerGet**](docs/DefaultApi.md#apphealthhandlerget) | **Get** /monitoring/health | Return API liveness status +*DefaultApi* | [**AppPackagesHandlerGetGet**](docs/DefaultApi.md#apppackageshandlergetget) | **Get** /packages/{nevra} | +*DefaultApi* | [**AppPackagesHandlerPostPost**](docs/DefaultApi.md#apppackageshandlerpostpost) | **Post** /packages | +*DefaultApi* | [**AppPatchesHandlerGetGet**](docs/DefaultApi.md#apppatcheshandlergetget) | **Get** /patches/{nevra} | +*DefaultApi* | [**AppPatchesHandlerPostPost**](docs/DefaultApi.md#apppatcheshandlerpostpost) | **Post** /patches | +*DefaultApi* | [**AppPkgtreeHandlerGetGet**](docs/DefaultApi.md#apppkgtreehandlergetget) | **Get** /pkgtree/{package_name} | +*DefaultApi* | [**AppPkgtreeHandlerPostPost**](docs/DefaultApi.md#apppkgtreehandlerpostpost) | **Post** /pkgtree | +*DefaultApi* | [**AppReadyHandlerGet**](docs/DefaultApi.md#appreadyhandlerget) | **Get** /monitoring/ready | Return API readiness status +*DefaultApi* | [**AppReposHandlerGetGet**](docs/DefaultApi.md#appreposhandlergetget) | **Get** /repos/{repo} | +*DefaultApi* | [**AppReposHandlerPostPost**](docs/DefaultApi.md#appreposhandlerpostpost) | **Post** /repos | +*DefaultApi* | [**AppUpdatesHandlerV3GetGet**](docs/DefaultApi.md#appupdateshandlerv3getget) | **Get** /updates/{nevra} | +*DefaultApi* | [**AppUpdatesHandlerV3PostPost**](docs/DefaultApi.md#appupdateshandlerv3postpost) | **Post** /updates | +*DefaultApi* | [**AppVersionHandlerGet**](docs/DefaultApi.md#appversionhandlerget) | **Get** /version | +*DefaultApi* | [**AppVulnerabilitiesHandlerGetGet**](docs/DefaultApi.md#appvulnerabilitieshandlergetget) | **Get** /vulnerabilities/{nevra} | +*DefaultApi* | [**AppVulnerabilitiesHandlerPostPost**](docs/DefaultApi.md#appvulnerabilitieshandlerpostpost) | **Post** /vulnerabilities | +*ExperimentalApi* | [**AppRPMPkgNamesHandlerGetGet**](docs/ExperimentalApi.md#apprpmpkgnameshandlergetget) | **Get** /package_names/rpms/{rpm} | +*ExperimentalApi* | [**AppRPMPkgNamesHandlerPostPost**](docs/ExperimentalApi.md#apprpmpkgnameshandlerpostpost) | **Post** /package_names/rpms | +*ExperimentalApi* | [**AppSRPMPkgNamesHandlerGetGet**](docs/ExperimentalApi.md#appsrpmpkgnameshandlergetget) | **Get** /package_names/srpms/{srpm} | +*ExperimentalApi* | [**AppSRPMPkgNamesHandlerPostPost**](docs/ExperimentalApi.md#appsrpmpkgnameshandlerpostpost) | **Post** /package_names/srpms | ## Documentation For Models @@ -67,8 +109,8 @@ Class | Method | HTTP request | Description - [CvesRequest](docs/CvesRequest.md) - [CvesResponse](docs/CvesResponse.md) - [CvesResponseCveList](docs/CvesResponseCveList.md) - - [DbChangeResponse](docs/DbChangeResponse.md) - - [DbChangeResponseDbchange](docs/DbChangeResponseDbchange.md) + - [DBChangeResponse](docs/DBChangeResponse.md) + - [DBChangeResponseDbchange](docs/DBChangeResponseDbchange.md) - [ErrataRequest](docs/ErrataRequest.md) - [ErrataResponse](docs/ErrataResponse.md) - [ErrataResponseErrataList](docs/ErrataResponseErrataList.md) @@ -80,20 +122,17 @@ Class | Method | HTTP request | Description - [PatchesResponse](docs/PatchesResponse.md) - [PkgtreeRequest](docs/PkgtreeRequest.md) - [PkgtreeResponse](docs/PkgtreeResponse.md) + - [RPMPkgNamesRequest](docs/RPMPkgNamesRequest.md) + - [RPMPkgNamesResponse](docs/RPMPkgNamesResponse.md) - [ReposRequest](docs/ReposRequest.md) - [ReposResponse](docs/ReposResponse.md) - - [RpmPkgNamesRequest](docs/RpmPkgNamesRequest.md) - - [RpmPkgNamesResponse](docs/RpmPkgNamesResponse.md) - - [SrpmPkgNamesRequest](docs/SrpmPkgNamesRequest.md) - - [SrpmPkgNamesResponse](docs/SrpmPkgNamesResponse.md) - - [UpdatesRequest](docs/UpdatesRequest.md) - - [UpdatesRequestModulesList](docs/UpdatesRequestModulesList.md) - - [UpdatesResponse](docs/UpdatesResponse.md) - - [UpdatesResponseAvailableUpdates](docs/UpdatesResponseAvailableUpdates.md) - - [UpdatesResponseUpdateList](docs/UpdatesResponseUpdateList.md) + - [SRPMPkgNamesRequest](docs/SRPMPkgNamesRequest.md) + - [SRPMPkgNamesResponse](docs/SRPMPkgNamesResponse.md) - [UpdatesV2Response](docs/UpdatesV2Response.md) + - [UpdatesV2ResponseAvailableUpdates](docs/UpdatesV2ResponseAvailableUpdates.md) - [UpdatesV2ResponseUpdateList](docs/UpdatesV2ResponseUpdateList.md) - [UpdatesV3Request](docs/UpdatesV3Request.md) + - [UpdatesV3RequestModulesList](docs/UpdatesV3RequestModulesList.md) - [VulnerabilitiesRequest](docs/VulnerabilitiesRequest.md) - [VulnerabilitiesResponse](docs/VulnerabilitiesResponse.md) @@ -103,6 +142,21 @@ Class | Method | HTTP request | Description Endpoints do not require authorization. +## Documentation for Utility Methods + +Due to the fact that model structure members are all pointers, this package contains +a number of utility functions to easily obtain pointers to values of basic types. +Each of these functions takes a value of the given basic type and returns a pointer to it: + +* `PtrBool` +* `PtrInt` +* `PtrInt32` +* `PtrInt64` +* `PtrFloat` +* `PtrFloat32` +* `PtrFloat64` +* `PtrString` +* `PtrTime` ## Author diff --git a/vmaas/api/openapi.json b/vmaas/api/openapi.json index 5a280f3..3b05001 100644 --- a/vmaas/api/openapi.json +++ b/vmaas/api/openapi.json @@ -1 +1 @@ -{"openapi": "3.0.0", "info": {"title": "VMaaS Webapp", "version": "1.20.4"}, "x-format-resps": {"400": {"description": "Invalid input json format"}}, "paths": {"/v1/monitoring/health": {"get": {"summary": "Return API liveness status", "operationId": "app.HealthHandler.get", "responses": {"200": {"description": "Application is alive"}}}}, "/v1/monitoring/ready": {"get": {"summary": "Return API readiness status", "operationId": "app.ReadyHandler.get", "responses": {"200": {"description": "Application is ready"}, "503": {"description": "Application is not ready"}}}}, "/v1/version": {"get": {"description": "Get version of application", "operationId": "app.VersionHandler.get", "responses": {"200": {"description": "Version of application returned"}}}}, "/v1/dbchange": {"get": {"description": "Get last-updated-times for VMaaS DB", "operationId": "app.DBChangeHandler.get", "responses": {"200": {"description": "Return last-update timestamps for errata, repos, cves and the db as a whole", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/DBChangeResponse"}}}}}}}, "/v1/updates": {"post": {"deprecated": true, "description": "List security updates for list of package NEVRAs", "operationId": "app.UpdatesHandlerPost.post", "requestBody": {"description": "Input json", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/UpdatesRequest"}}}}, "responses": {"400": {"description": "Invalid input json format"}, "200": {"description": "Return list of security updates for list of package NEVRAs", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/UpdatesResponse"}}}}}}}, "/v1/updates/{nevra}": {"get": {"deprecated": true, "description": "List security updates for single package NEVRA", "operationId": "app.UpdatesHandlerGet.get", "parameters": [{"name": "nevra", "description": "Package NEVRA", "required": true, "schema": {"type": "string"}, "in": "path", "x-example": "kernel-2.6.32-696.20.1.el6.x86_64"}], "responses": {"200": {"description": "Return list of security updates for single package NEVRA", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/UpdatesResponse"}}}}}}}, "/v2/updates": {"post": {"deprecated": true, "description": "List security updates for list of package NEVRAs", "operationId": "app.UpdatesHandlerV2Post.post", "requestBody": {"description": "Input json", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/UpdatesRequest"}}}}, "responses": {"400": {"description": "Invalid input json format"}, "200": {"description": "Return list of security updates for single package NEVRA", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/UpdatesV2Response"}}}}}}}, "/v2/updates/{nevra}": {"get": {"deprecated": true, "description": "List security updates for single package NEVRA", "operationId": "app.UpdatesHandlerV2Get.get", "parameters": [{"name": "nevra", "description": "Package NEVRA", "required": true, "schema": {"type": "string"}, "in": "path", "x-example": "kernel-2.6.32-696.20.1.el6.x86_64"}], "responses": {"200": {"description": "Return list of security updates for single package NEVRA", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/UpdatesV2Response"}}}}}}}, "/v3/updates": {"post": {"description": "List all updates for list of package NEVRAs", "operationId": "app.UpdatesHandlerV3Post.post", "requestBody": {"description": "Input json", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/UpdatesV3Request"}}}}, "responses": {"400": {"description": "Invalid input json format"}, "200": {"description": "Return list of all updates for single package NEVRA", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/UpdatesV2Response"}}}}}}}, "/v3/updates/{nevra}": {"get": {"description": "List all updates for single package NEVRA", "operationId": "app.UpdatesHandlerV3Get.get", "parameters": [{"name": "nevra", "description": "Package NEVRA", "required": true, "schema": {"type": "string"}, "in": "path", "x-example": "kernel-2.6.32-696.20.1.el6.x86_64"}], "responses": {"200": {"description": "Return list of all updates for single package NEVRA", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/UpdatesV2Response"}}}}}}}, "/v1/cves": {"post": {"description": "Get details about CVEs with additional parameters. As a \"cve_list\" parameter a complete list of CVE names can be provided OR one POSIX regular expression.", "operationId": "app.CVEHandlerPost.post", "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/CvesRequest"}}}}, "responses": {"400": {"description": "Invalid input json format"}, "200": {"description": "Return details about list of CVEs", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/CvesResponse"}}}}}}}, "/v1/cves/{cve}": {"get": {"description": "Get details about CVEs. It is possible to use POSIX regular expression as a pattern for CVE names.", "operationId": "app.CVEHandlerGet.get", "parameters": [{"name": "cve", "description": "CVE name or POSIX regular expression pattern", "required": true, "schema": {"type": "string"}, "in": "path", "x-example": "CVE-2017-5715, CVE-2017-571[1-5], CVE-2017-5.*"}], "responses": {"200": {"description": "Return details about CVEs", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/CvesResponse"}}}}}}}, "/v1/repos": {"post": {"description": "Get details about list of repositories. \"repository_list\" can be either a list of repository names, OR a single POSIX regular expression.", "operationId": "app.ReposHandlerPost.post", "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ReposRequest"}}}}, "responses": {"400": {"description": "Invalid input json format"}, "200": {"description": "Return details about list of repositories", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ReposResponse"}}}}}}}, "/v1/repos/{repo}": {"get": {"description": "Get details about a repository or repository-expression. It is allowed to use POSIX regular expression as a pattern for repository names.", "operationId": "app.ReposHandlerGet.get", "parameters": [{"name": "repo", "description": "Repository name or POSIX regular expression pattern", "required": true, "schema": {"type": "string"}, "in": "path", "x-example": "rhel-6-server-rpms OR rhel-[4567]-.*-rpms OR rhel-\\d-server-rpms"}], "responses": {"200": {"description": "Return details about repository or repositories that match the expression", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ReposResponse"}}}}}}}, "/v1/errata": {"post": {"description": "Get details about errata with additional parameters. \"errata_list\" parameter can be either a list of errata names OR a single POSIX regular expression.", "operationId": "app.ErrataHandlerPost.post", "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ErrataRequest"}}}}, "responses": {"400": {"description": "Invalid input json format"}, "200": {"description": "Return details about list of errata", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ErrataResponse"}}}}}}}, "/v1/errata/{erratum}": {"get": {"description": "Get details about errata. It is possible to use POSIX regular expression as a pattern for errata names.", "operationId": "app.ErrataHandlerGet.get", "parameters": [{"name": "erratum", "description": "Errata advisory name or POSIX regular expression pattern", "required": true, "schema": {"type": "string"}, "in": "path", "x-example": "RHSA-2018:0512, RHSA-2018:051[1-5], RH.*"}], "responses": {"200": {"description": "Return details about errata", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ErrataResponse"}}}}}}}, "/v1/packages": {"post": {"description": "Get details about packages. \"package_list\" must be a list of package NEVRAs.", "operationId": "app.PackagesHandlerPost.post", "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/PackagesRequest"}}}}, "responses": {"400": {"description": "Invalid input json format"}, "200": {"description": "Return details about list of package NEVRAs", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/PackagesResponse"}}}}}}}, "/v1/packages/{nevra}": {"get": {"description": "Get details about packages.", "operationId": "app.PackagesHandlerGet.get", "parameters": [{"name": "nevra", "description": "Package NEVRA", "required": true, "schema": {"type": "string"}, "in": "path", "x-example": "kernel-2.6.32-696.20.1.el6.x86_64"}], "responses": {"200": {"description": "Return details about single package NEVRA", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/PackagesResponse"}}}}}}}, "/v1/pkgtree": {"post": {"description": "Get package NEVRAs trees for package names. \"package_name_list\" must be a list of package names.", "operationId": "app.PkgtreeHandlerPost.post", "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/PkgtreeRequest"}}}}, "responses": {"400": {"description": "Invalid input json format"}, "200": {"description": "Return package NEVRAs about list of package names", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/PkgtreeResponse"}}}}}}}, "/v1/pkgtree/{package_name}": {"get": {"description": "Get package NEVRAs tree for a single package name.", "operationId": "app.PkgtreeHandlerGet.get", "parameters": [{"name": "package_name", "description": "Package name", "required": true, "schema": {"type": "string"}, "in": "path", "x-example": "kernel-rt"}], "responses": {"200": {"description": "Return package NEVRAs about single package name", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/PkgtreeResponse"}}}}}}}, "/v1/vulnerabilities": {"post": {"description": "List of applicable CVEs to a package list.", "operationId": "app.VulnerabilitiesHandlerPost.post", "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/VulnerabilitiesRequest"}}}}, "responses": {"400": {"description": "Invalid input json format"}, "200": {"description": "List of applicable CVEs to a package list.", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/VulnerabilitiesResponse"}}}}}}}, "/v1/vulnerabilities/{nevra}": {"get": {"description": "List of applicable CVEs for a single package NEVRA", "operationId": "app.VulnerabilitiesHandlerGet.get", "parameters": [{"name": "nevra", "description": "Package NEVRA", "required": true, "schema": {"type": "string"}, "in": "path", "x-example": "kernel-2.6.32-696.20.1.el6.x86_64"}], "responses": {"200": {"description": "Return list of applicable CVEs for a single NEVRA", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/VulnerabilitiesResponse"}}}}}}}, "/v1/patches": {"post": {"description": "List of applicable errata to a package list.", "operationId": "app.PatchesHandlerPost.post", "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/PatchesRequest"}}}}, "responses": {"400": {"description": "Invalid input json format"}, "200": {"description": "List of applicable errata to a package list.", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/PatchesResponse"}}}}}}}, "/v1/patches/{nevra}": {"get": {"description": "List of applicable CVEs for a single package NEVRA", "operationId": "app.PatchesHandlerGet.get", "parameters": [{"name": "nevra", "description": "Package NEVRA", "required": true, "schema": {"type": "string"}, "in": "path", "x-example": "kernel-2.6.32-696.20.1.el6.x86_64"}], "responses": {"200": {"description": "Return list of applicable errata for a single NEVRA", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/PatchesResponse"}}}}}}}, "/v1/package_names/srpms": {"post": {"description": "List of content sets with associated rpm names by given srpm and content set.", "operationId": "app.SRPMPkgNamesHandlerPost.post", "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/SRPMPkgNamesRequest"}}}}, "responses": {"400": {"description": "Invalid input json format"}, "200": {"description": "List of content sets with associated rpm names by given srpm names and content set.", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/SRPMPkgNamesResponse"}}}}}, "tags": ["experimental"]}}, "/v1/package_names/srpms/{srpm}": {"get": {"description": "List of content sets with associated rpm names by given srpm.", "operationId": "app.SRPMPkgNamesHandlerGet.get", "parameters": [{"name": "srpm", "description": "Source package name", "required": true, "schema": {"type": "string"}, "in": "path", "x-example": "openssl"}], "responses": {"400": {"description": "Invalid input json format"}, "200": {"description": "List of content sets with associated rpm names by given srpm names and content set.", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/SRPMPkgNamesResponse"}}}}}, "tags": ["experimental"]}}, "/v1/package_names/rpms": {"post": {"description": "List of content sets by given rpm name and content set.", "operationId": "app.RPMPkgNamesHandlerPost.post", "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/RPMPkgNamesRequest"}}}}, "responses": {"400": {"description": "Invalid input json format"}, "200": {"description": "List of content sets by given rpm names and content set.", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/RPMPkgNamesResponse"}}}}}, "tags": ["experimental"]}}, "/v1/package_names/rpms/{rpm}": {"get": {"description": "List of content sets by given rpm name.", "operationId": "app.RPMPkgNamesHandlerGet.get", "parameters": [{"name": "rpm", "description": "Package name", "required": true, "schema": {"type": "string"}, "in": "path", "x-example": "openssl-libs"}], "responses": {"400": {"description": "Invalid input json format"}, "200": {"description": "List of content sets by given rpm names.", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/RPMPkgNamesResponse"}}}}}, "tags": ["experimental"]}}}, "tags": [{"name": "default"}, {"name": "experimental", "description": "Endpoints with preview functionality"}], "x-paging-info": {"page": {"type": "number", "example": 0}, "page_size": {"type": "number", "example": 10}}, "x-paging-resp": {"page": {"type": "number", "example": 0}, "page_size": {"type": "number", "example": 10}, "pages": {"type": "number"}}, "components": {"schemas": {"UpdatesRequest": {"type": "object", "properties": {"package_list": {"type": "array", "items": {"type": "string", "example": "kernel-2.6.32-696.20.1.el6.x86_64"}, "minItems": 1}, "repository_list": {"type": "array", "items": {"type": "string", "example": "rhel-6-server-rpms"}}, "modules_list": {"type": "array", "items": {"type": "object", "properties": {"module_name": {"type": "string", "example": "rhn-tools"}, "module_stream": {"type": "string", "example": "1"}}, "required": ["module_name", "module_stream"]}}, "releasever": {"type": "string", "example": "6Server"}, "basearch": {"type": "string", "example": "x86_64"}, "latest_only": {"type": "boolean", "enum": [true, false]}}, "required": ["package_list"]}, "UpdatesV3Request": {"type": "object", "properties": {"package_list": {"type": "array", "items": {"type": "string", "example": "kernel-2.6.32-696.20.1.el6.x86_64"}, "minItems": 1}, "repository_list": {"type": "array", "items": {"type": "string", "example": "rhel-6-server-rpms"}}, "modules_list": {"type": "array", "items": {"type": "object", "properties": {"module_name": {"type": "string", "example": "rhn-tools"}, "module_stream": {"type": "string", "example": "1"}}, "required": ["module_name", "module_stream"]}}, "releasever": {"type": "string", "example": "6Server"}, "basearch": {"type": "string", "example": "x86_64"}, "security_only": {"type": "boolean", "enum": [true, false]}, "latest_only": {"type": "boolean", "enum": [true, false]}}, "required": ["package_list"]}, "UpdatesResponse": {"properties": {"update_list": {"type": "object", "additionalProperties": {"type": "object", "properties": {"available_updates": {"type": "array", "items": {"type": "object", "properties": {"repository": {"type": "string", "example": "rhel-6-server-rpms"}, "releasever": {"type": "string", "example": "6Server"}, "basearch": {"type": "string", "example": "x86_64"}, "erratum": {"type": "string", "example": "RHSA-2018:0512"}, "package": {"type": "string", "example": "kernel-2.6.32-696.23.1.el6.x86_64"}}}}, "description": {"type": "string", "example": "package description"}, "summary": {"type": "string", "example": "package summary"}}}}, "repository_list": {"type": "array", "items": {"type": "string", "example": "rhel-6-server-rpms"}}, "modules_list": {"type": "array", "items": {"type": "object", "properties": {"module_name": {"type": "string", "example": "rhn-tools"}, "module_stream": {"type": "string", "example": "1"}}, "required": ["module_name", "module_stream"]}}, "releasever": {"type": "string", "example": "6Server"}, "basearch": {"type": "string", "example": "x86_64"}}}, "UpdatesV2Response": {"properties": {"update_list": {"type": "object", "additionalProperties": {"type": "object", "properties": {"available_updates": {"type": "array", "items": {"type": "object", "properties": {"repository": {"type": "string", "example": "rhel-6-server-rpms"}, "releasever": {"type": "string", "example": "6Server"}, "basearch": {"type": "string", "example": "x86_64"}, "erratum": {"type": "string", "example": "RHSA-2018:0512"}, "package": {"type": "string", "example": "kernel-2.6.32-696.23.1.el6.x86_64"}}}}}}}, "repository_list": {"type": "array", "items": {"type": "string", "example": "rhel-6-server-rpms"}}, "modules_list": {"type": "array", "items": {"type": "object", "properties": {"module_name": {"type": "string", "example": "rhn-tools"}, "module_stream": {"type": "string", "example": "1"}}, "required": ["module_name", "module_stream"]}}, "releasever": {"type": "string", "example": "6Server"}, "basearch": {"type": "string", "example": "x86_64"}}}, "CvesRequest": {"type": "object", "properties": {"page": {"type": "number", "example": 0}, "page_size": {"type": "number", "example": 10}, "cve_list": {"type": "array", "items": {"type": "string", "example": "CVE-2017-57.*"}, "minItems": 1}, "modified_since": {"type": "string", "example": "2018-04-05T01:23:45+02:00", "format": "date-time"}, "published_since": {"type": "string", "example": "2018-04-05T01:23:45+02:00", "format": "date-time"}, "rh_only": {"type": "boolean", "enum": [true, false]}, "errata_associated": {"type": "boolean", "enum": [true, false], "description": "Return only those CVEs which are associated with at least one errata. Defaults to false."}}, "required": ["cve_list"]}, "CvesResponse": {"properties": {"page": {"type": "number", "example": 0}, "page_size": {"type": "number", "example": 10}, "pages": {"type": "number"}, "cve_list": {"type": "object", "additionalProperties": {"type": "object", "properties": {"impact": {"type": "string", "enum": ["NotSet", "None", "Low", "Medium", "Moderate", "Important", "High", "Critical"]}, "public_date": {"type": "string", "example": "2018-01-04T13:29:00+00:00", "format": "date-time"}, "synopsis": {"type": "string", "example": "CVE-2017-5715"}, "description": {"type": "string", "example": "description text"}, "modified_date": {"type": "string", "example": "2018-03-31T01:29:00+00:00", "format": "date-time"}, "redhat_url": {"type": "string", "example": "https://access.redhat.com/security/cve/cve-2017-5715"}, "secondary_url": {"type": "string", "example": "https://seconday.url.com"}, "cvss2_score": {"type": "string", "example": "5.600"}, "cvss2_metrics": {"type": "string", "example": "AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N"}, "cvss3_score": {"type": "string", "example": "5.1"}, "cvss3_metrics": {"type": "string", "example": "AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N"}, "cwe_list": {"type": "array", "items": {"type": "string", "example": "CWE-20"}}, "errata_list": {"type": "array", "items": {"type": "string", "example": "RHSA-2015:1981"}}, "package_list": {"type": "array", "items": {"type": "string", "example": "nss-devel-3.16.1-9.el6_5.x86_64"}}, "source_package_list": {"type": "array", "items": {"type": "string", "example": "nss-devel-3.16.1-9.el6_5.src"}}}}}, "modified_since": {"type": "string", "example": "2018-04-05T01:23:45+02:00", "format": "date-time"}}}, "ReposRequest": {"type": "object", "properties": {"page": {"type": "number", "example": 0}, "page_size": {"type": "number", "example": 10}, "repository_list": {"type": "array", "items": {"type": "string", "example": "rhel-6-server-rpms"}, "minItems": 1}, "modified_since": {"type": "string", "example": "2018-04-05T01:23:45+02:00", "format": "date-time", "description": "Return only repositories changed after the given date"}}, "required": ["repository_list"]}, "ReposResponse": {"properties": {"page": {"type": "number", "example": 0}, "page_size": {"type": "number", "example": 10}, "pages": {"type": "number"}, "repository_list": {"type": "object", "additionalProperties": {"type": "array", "items": {"type": "object", "properties": {"product": {"type": "string", "example": "Red Hat Enterprise Linux Server"}, "releasever": {"type": "string", "example": "6Server"}, "name": {"type": "string", "example": "Red Hat Enterprise Linux 6 Server (RPMs)"}, "url": {"type": "string", "example": "https://cdn.redhat.com/content/dist/rhel/server/6/6Server/x86_64/os/"}, "basearch": {"type": "string", "example": "x86_64"}, "revision": {"type": "string", "example": "2018-03-27T10:55:16+00:00"}, "label": {"type": "string", "example": "rhel-6-server-rpms"}}}}}}}, "ErrataRequest": {"type": "object", "properties": {"page": {"type": "number", "example": 0}, "page_size": {"type": "number", "example": 10}, "errata_list": {"type": "array", "items": {"type": "string", "example": "RHSA-2018:05.*"}, "minItems": 1}, "modified_since": {"type": "string", "example": "2018-04-05T01:23:45+02:00", "format": "date-time"}, "type": {"type": "array", "items": {"type": "string", "example": "security"}}, "severity": {"type": "array", "items": {"type": "string", "enum": ["Low", "Moderate", "Important", "Critical", null], "nullable": true}}}, "required": ["errata_list"]}, "ErrataResponse": {"properties": {"page": {"type": "number", "example": 0}, "page_size": {"type": "number", "example": 10}, "pages": {"type": "number"}, "errata_list": {"type": "object", "additionalProperties": {"type": "object", "properties": {"updated": {"type": "string", "example": "2018-03-13T17:31:41+00:00"}, "severity": {"type": "string", "enum": ["Low", "Moderate", "Important", "Critical", null], "nullable": true}, "reference_list": {"type": "array", "items": {"type": "string", "example": "classification-RHSA-2018:0512"}}, "issued": {"type": "string", "example": "2018-03-13T17:31:28+00:00", "format": "date-time"}, "description": {"type": "string", "example": "description text"}, "solution": {"type": "string", "example": "solution text"}, "summary": {"type": "string", "example": "summary text"}, "url": {"type": "string", "example": "https://access.redhat.com/errata/RHSA-2018:0512"}, "synopsis": {"type": "string", "example": "Important: kernel security and bug fix update"}, "cve_list": {"type": "array", "items": {"type": "string", "example": "CVE-2017-5715"}}, "bugzilla_list": {"type": "array", "items": {"type": "string", "example": "1519778"}}, "package_list": {"type": "array", "items": {"type": "string", "example": "kernel-2.6.32-696.23.1.el6.x86_64"}}, "source_package_list": {"type": "array", "items": {"type": "string", "example": "kernel-2.6.32-696.23.1.el6.src"}}, "type": {"type": "string", "example": "security"}}}}, "modified_since": {"type": "string", "example": "2018-04-05T01:23:45+02:00", "format": "date-time"}, "type": {"type": "array", "items": {"type": "string", "example": "security"}}, "severity": {"type": "array", "items": {"type": "string", "enum": ["Low", "Moderate", "Important", "Critical", null], "nullable": true}}}}, "PackagesRequest": {"type": "object", "properties": {"package_list": {"type": "array", "items": {"type": "string", "example": "kernel-2.6.32-696.20.1.el6.x86_64"}, "minItems": 1}}, "required": ["package_list"]}, "PackagesResponse": {"properties": {"package_list": {"type": "object", "additionalProperties": {"type": "object", "properties": {"summary": {"type": "string", "example": "package summary"}, "description": {"type": "string", "example": "package description"}, "source_package": {"type": "string", "example": "kernel-2.6.32-696.23.1.el6.src"}, "package_list": {"type": "array", "items": {"type": "string", "example": "kernel-2.6.32-696.23.1.el6.x86_64"}}, "repositories": {"type": "array", "items": {"type": "object", "properties": {"label": {"type": "string", "example": "rhel-6-server-rpms"}, "name": {"type": "string", "example": "Red Hat Enterprise Linux 6 Server (RPMs)"}, "basearch": {"type": "string", "example": "x86_64"}, "releasever": {"type": "string", "example": "6.9"}}}}}}}}}, "PkgtreeRequest": {"type": "object", "properties": {"package_name_list": {"type": "array", "items": {"type": "string", "example": "kernel-rt"}, "minItems": 1}}, "required": ["package_name_list"]}, "PkgtreeResponse": {"properties": {"last_change": {"example": "2020-04-16 20:07:58.500192+00"}, "package_name_list": {"type": "object", "additionalProperties": {"type": "array", "items": {"type": "object", "properties": {"nevra": {"type": "string", "example": "kernel-rt-4.18.0-147.rt24.93.el8.x86_64"}, "first_published": {"type": "string", "example": "2020-01-13T17:31:41+00:00", "format": "date-time"}, "repositories": {"type": "array", "items": {"type": "object", "properties": {"label": {"type": "string", "example": "rhel-8-for-s390x-appstream-rpms"}, "name": {"type": "string", "example": "Red Hat Enterprise Linux 8 for IBM z Systems - AppStream (RPMs)"}, "basearch": {"type": "string", "example": "x86_64"}, "releasever": {"type": "string", "example": "6.9"}, "revision": {"type": "string", "example": "2019-11-19T09:41:05+00:00", "format": "date-time"}, "module_name": {"type": "string", "example": "postgresql"}, "module_stream": {"type": "string", "example": "9.6"}}, "required": ["label", "name", "basearch", "releasever", "revision"]}}, "errata": {"type": "array", "items": {"type": "object", "properties": {"name": {"type": "string", "example": "RHSA-2019:2730"}, "issued": {"type": "string", "example": "2019-11-19T09:41:05+00:00", "format": "date-time"}, "cve_list": {"type": "array", "items": {"type": "string", "example": "CVE-2018-13405"}}}, "required": ["name", "issued"]}}}, "required": ["nevra", "first_published"]}}}}}, "DBChangeResponse": {"properties": {"dbchange": {"type": "object", "properties": {"errata_changes": {"type": "string", "example": "2018-04-16 20:07:58.500192+00"}, "cve_changes": {"type": "string", "example": "2018-04-16 20:06:47.214266+00"}, "repository_changes": {"type": "string", "example": "2018-04-16 20:07:55.01395+00"}, "last_change": {"type": "string", "example": "2018-04-16 20:07:58.500192+00"}, "exported": {"type": "string", "example": "2018-04-16 20:07:59.235962+00"}}}}}, "VulnerabilitiesRequest": {"type": "object", "properties": {"package_list": {"type": "array", "items": {"type": "string", "example": "kernel-2.6.32-696.20.1.el6.x86_64"}}, "repository_list": {"type": "array", "items": {"type": "string", "example": "rhel-6-server-rpms"}}, "modules_list": {"type": "array", "items": {"type": "object", "properties": {"module_name": {"type": "string", "example": "rhn-tools"}, "module_stream": {"type": "string", "example": "1"}}, "required": ["module_name", "module_stream"]}}, "releasever": {"type": "string", "example": "6Server"}, "basearch": {"type": "string", "example": "x86_64"}}, "required": ["package_list"]}, "VulnerabilitiesResponse": {"properties": {"cve_list": {"type": "array", "items": {"type": "string", "example": "CVE-2016-0800"}}}}, "PatchesRequest": {"type": "object", "properties": {"package_list": {"type": "array", "items": {"type": "string", "example": "kernel-2.6.32-696.20.1.el6.x86_64"}}, "repository_list": {"type": "array", "items": {"type": "string", "example": "rhel-6-server-rpms"}}, "modules_list": {"type": "array", "items": {"type": "object", "properties": {"module_name": {"type": "string", "example": "rhn-tools"}, "module_stream": {"type": "string", "example": "1"}}, "required": ["module_name", "module_stream"]}}, "releasever": {"type": "string", "example": "6Server"}, "basearch": {"type": "string", "example": "x86_64"}}, "required": ["package_list"]}, "PatchesResponse": {"properties": {"errata_list": {"type": "array", "items": {"type": "string", "example": "RHSA-2018:0151"}}}}, "SRPMPkgNamesRequest": {"type": "object", "properties": {"srpm_name_list": {"type": "array", "items": {"type": "string", "example": "openssl"}}, "content_set_list": {"type": "array", "items": {"type": "string", "example": "rhel-7-desktop-rpms"}}}, "required": ["srpm_name_list"]}, "SRPMPkgNamesResponse": {"properties": {"last_change": {"example": "2020-04-16 20:07:58.500192+00"}, "srpm_name_list": {"type": "object", "additionalProperties": {"type": "object", "additionalProperties": {"type": "array", "items": {"type": "string", "example": "openssl-libs"}}}}}}, "RPMPkgNamesRequest": {"type": "object", "properties": {"rpm_name_list": {"type": "array", "items": {"type": "string", "example": "openssl-libs"}}, "content_set_list": {"type": "array", "items": {"type": "string", "example": "rhel-7-desktop-rpms"}}}, "required": ["rpm_name_list"]}, "RPMPkgNamesResponse": {"properties": {"last_change": {"example": "2020-04-16 20:07:58.500192+00"}, "rpm_name_list": {"type": "object", "additionalProperties": {"type": "array", "items": {"type": "string", "example": "rhel-7-desktop-rpms"}}}}}}}, "servers": [{"url": "/api"}]} +{"openapi": "3.0.0", "info": {"title": "VMaaS Webapp", "version": "2.5.0"}, "x-format-resps": {"400": {"description": "Invalid input json format"}}, "paths": {"/monitoring/health": {"get": {"summary": "Return API liveness status", "operationId": "app.HealthHandler.get", "responses": {"200": {"description": "Application is alive"}}}}, "/monitoring/ready": {"get": {"summary": "Return API readiness status", "operationId": "app.ReadyHandler.get", "responses": {"200": {"description": "Application is ready"}, "503": {"description": "Application is not ready"}}}}, "/version": {"get": {"description": "Get version of application", "operationId": "app.VersionHandler.get", "responses": {"200": {"description": "Version of application returned"}}}}, "/dbchange": {"get": {"description": "Get last-updated-times for VMaaS DB", "operationId": "app.DBChangeHandler.get", "responses": {"200": {"description": "Return last-update timestamps for errata, repos, cves and the db as a whole", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/DBChangeResponse"}}}}}}}, "/updates": {"post": {"description": "List all updates for list of package NEVRAs", "operationId": "app.UpdatesHandlerV3Post.post", "requestBody": {"description": "Input json", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/UpdatesV3Request"}}}}, "responses": {"400": {"description": "Invalid input json format"}, "200": {"description": "Return list of all updates for single package NEVRA", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/UpdatesV2Response"}}}}}}}, "/updates/{nevra}": {"get": {"description": "List all updates for single package NEVRA", "operationId": "app.UpdatesHandlerV3Get.get", "parameters": [{"name": "nevra", "description": "Package NEVRA", "required": true, "schema": {"type": "string"}, "in": "path", "x-example": "kernel-2.6.32-696.20.1.el6.x86_64"}], "responses": {"200": {"description": "Return list of all updates for single package NEVRA", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/UpdatesV2Response"}}}}}}}, "/cves": {"post": {"description": "Get details about CVEs with additional parameters. As a \"cve_list\" parameter a complete list of CVE names can be provided OR one POSIX regular expression.", "operationId": "app.CVEHandlerPost.post", "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/CvesRequest"}}}}, "responses": {"400": {"description": "Invalid input json format"}, "200": {"description": "Return details about list of CVEs", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/CvesResponse"}}}}}}}, "/cves/{cve}": {"get": {"description": "Get details about CVEs. It is possible to use POSIX regular expression as a pattern for CVE names.", "operationId": "app.CVEHandlerGet.get", "parameters": [{"name": "cve", "description": "CVE name or POSIX regular expression pattern", "required": true, "schema": {"type": "string"}, "in": "path", "x-example": "CVE-2017-5715, CVE-2017-571[1-5], CVE-2017-5.*"}], "responses": {"200": {"description": "Return details about CVEs", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/CvesResponse"}}}}}}}, "/repos": {"post": {"description": "Get details about list of repositories. \"repository_list\" can be either a list of repository names, OR a single POSIX regular expression.", "operationId": "app.ReposHandlerPost.post", "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ReposRequest"}}}}, "responses": {"400": {"description": "Invalid input json format"}, "200": {"description": "Return details about list of repositories", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ReposResponse"}}}}}}}, "/repos/{repo}": {"get": {"description": "Get details about a repository or repository-expression. It is allowed to use POSIX regular expression as a pattern for repository names.", "operationId": "app.ReposHandlerGet.get", "parameters": [{"name": "repo", "description": "Repository name or POSIX regular expression pattern", "required": true, "schema": {"type": "string"}, "in": "path", "x-example": "rhel-6-server-rpms OR rhel-[4567]-.*-rpms OR rhel-\\d-server-rpms"}], "responses": {"200": {"description": "Return details about repository or repositories that match the expression", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ReposResponse"}}}}}}}, "/errata": {"post": {"description": "Get details about errata with additional parameters. \"errata_list\" parameter can be either a list of errata names OR a single POSIX regular expression.", "operationId": "app.ErrataHandlerPost.post", "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ErrataRequest"}}}}, "responses": {"400": {"description": "Invalid input json format"}, "200": {"description": "Return details about list of errata", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ErrataResponse"}}}}}}}, "/errata/{erratum}": {"get": {"description": "Get details about errata. It is possible to use POSIX regular expression as a pattern for errata names.", "operationId": "app.ErrataHandlerGet.get", "parameters": [{"name": "erratum", "description": "Errata advisory name or POSIX regular expression pattern", "required": true, "schema": {"type": "string"}, "in": "path", "x-example": "RHSA-2018:0512, RHSA-2018:051[1-5], RH.*"}], "responses": {"200": {"description": "Return details about errata", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ErrataResponse"}}}}}}}, "/packages": {"post": {"description": "Get details about packages. \"package_list\" must be a list of package NEVRAs.", "operationId": "app.PackagesHandlerPost.post", "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/PackagesRequest"}}}}, "responses": {"400": {"description": "Invalid input json format"}, "200": {"description": "Return details about list of package NEVRAs", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/PackagesResponse"}}}}}}}, "/packages/{nevra}": {"get": {"description": "Get details about packages.", "operationId": "app.PackagesHandlerGet.get", "parameters": [{"name": "nevra", "description": "Package NEVRA", "required": true, "schema": {"type": "string"}, "in": "path", "x-example": "kernel-2.6.32-696.20.1.el6.x86_64"}], "responses": {"200": {"description": "Return details about single package NEVRA", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/PackagesResponse"}}}}}}}, "/pkgtree": {"post": {"description": "Get package NEVRAs trees for package names. \"package_name_list\" must be a list of package names.", "operationId": "app.PkgtreeHandlerPost.post", "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/PkgtreeRequest"}}}}, "responses": {"400": {"description": "Invalid input json format"}, "200": {"description": "Return package NEVRAs about list of package names", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/PkgtreeResponse"}}}}}}}, "/pkgtree/{package_name}": {"get": {"description": "Get package NEVRAs tree for a single package name.", "operationId": "app.PkgtreeHandlerGet.get", "parameters": [{"name": "package_name", "description": "Package name", "required": true, "schema": {"type": "string"}, "in": "path", "x-example": "kernel-rt"}], "responses": {"200": {"description": "Return package NEVRAs about single package name", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/PkgtreeResponse"}}}}}}}, "/vulnerabilities": {"post": {"description": "List of applicable CVEs to a package list.", "operationId": "app.VulnerabilitiesHandlerPost.post", "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/VulnerabilitiesRequest"}}}}, "responses": {"400": {"description": "Invalid input json format"}, "200": {"description": "List of applicable CVEs to a package list.", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/VulnerabilitiesResponse"}}}}}}}, "/vulnerabilities/{nevra}": {"get": {"description": "List of applicable CVEs for a single package NEVRA", "operationId": "app.VulnerabilitiesHandlerGet.get", "parameters": [{"name": "nevra", "description": "Package NEVRA", "required": true, "schema": {"type": "string"}, "in": "path", "x-example": "kernel-2.6.32-696.20.1.el6.x86_64"}], "responses": {"200": {"description": "Return list of applicable CVEs for a single NEVRA", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/VulnerabilitiesResponse"}}}}}}}, "/patches": {"post": {"description": "List of applicable errata to a package list.", "operationId": "app.PatchesHandlerPost.post", "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/PatchesRequest"}}}}, "responses": {"400": {"description": "Invalid input json format"}, "200": {"description": "List of applicable errata to a package list.", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/PatchesResponse"}}}}}}}, "/patches/{nevra}": {"get": {"description": "List of applicable CVEs for a single package NEVRA", "operationId": "app.PatchesHandlerGet.get", "parameters": [{"name": "nevra", "description": "Package NEVRA", "required": true, "schema": {"type": "string"}, "in": "path", "x-example": "kernel-2.6.32-696.20.1.el6.x86_64"}], "responses": {"200": {"description": "Return list of applicable errata for a single NEVRA", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/PatchesResponse"}}}}}}}, "/package_names/srpms": {"post": {"description": "List of content sets with associated rpm names by given srpm and content set.", "operationId": "app.SRPMPkgNamesHandlerPost.post", "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/SRPMPkgNamesRequest"}}}}, "responses": {"400": {"description": "Invalid input json format"}, "200": {"description": "List of content sets with associated rpm names by given srpm names and content set.", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/SRPMPkgNamesResponse"}}}}}, "tags": ["experimental"]}}, "/package_names/srpms/{srpm}": {"get": {"description": "List of content sets with associated rpm names by given srpm.", "operationId": "app.SRPMPkgNamesHandlerGet.get", "parameters": [{"name": "srpm", "description": "Source package name", "required": true, "schema": {"type": "string"}, "in": "path", "x-example": "openssl"}], "responses": {"400": {"description": "Invalid input json format"}, "200": {"description": "List of content sets with associated rpm names by given srpm names and content set.", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/SRPMPkgNamesResponse"}}}}}, "tags": ["experimental"]}}, "/package_names/rpms": {"post": {"description": "List of content sets by given rpm name and content set.", "operationId": "app.RPMPkgNamesHandlerPost.post", "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/RPMPkgNamesRequest"}}}}, "responses": {"400": {"description": "Invalid input json format"}, "200": {"description": "List of content sets by given rpm names and content set.", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/RPMPkgNamesResponse"}}}}}, "tags": ["experimental"]}}, "/package_names/rpms/{rpm}": {"get": {"description": "List of content sets by given rpm name.", "operationId": "app.RPMPkgNamesHandlerGet.get", "parameters": [{"name": "rpm", "description": "Package name", "required": true, "schema": {"type": "string"}, "in": "path", "x-example": "openssl-libs"}], "responses": {"400": {"description": "Invalid input json format"}, "200": {"description": "List of content sets by given rpm names.", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/RPMPkgNamesResponse"}}}}}, "tags": ["experimental"]}}}, "tags": [{"name": "default"}, {"name": "experimental", "description": "Endpoints with preview functionality"}], "x-paging-info": {"page": {"type": "number", "example": 0}, "page_size": {"type": "number", "example": 10}}, "x-paging-resp": {"page": {"type": "number", "example": 0}, "page_size": {"type": "number", "example": 10}, "pages": {"type": "number"}}, "components": {"schemas": {"UpdatesV3Request": {"type": "object", "properties": {"package_list": {"type": "array", "items": {"type": "string", "example": "kernel-2.6.32-696.20.1.el6.x86_64"}, "minItems": 1}, "repository_list": {"type": "array", "items": {"type": "string", "example": "rhel-6-server-rpms"}}, "modules_list": {"type": "array", "items": {"type": "object", "properties": {"module_name": {"type": "string", "example": "rhn-tools"}, "module_stream": {"type": "string", "example": "1"}}, "required": ["module_name", "module_stream"]}}, "releasever": {"type": "string", "example": "6Server"}, "basearch": {"type": "string", "example": "x86_64"}, "security_only": {"type": "boolean", "enum": [true, false]}, "latest_only": {"type": "boolean", "enum": [true, false]}, "third_party": {"type": "boolean", "enum": [true, false], "description": "Include content from \"third party\" repositories into the response, disabled by default.", "default": false}, "optimistic_updates": {"type": "boolean", "enum": [true, false], "description": "Search for updates of unknown package EVRAs.", "default": false}}, "required": ["package_list"]}, "UpdatesV2Response": {"properties": {"update_list": {"type": "object", "additionalProperties": {"type": "object", "properties": {"available_updates": {"type": "array", "items": {"type": "object", "properties": {"repository": {"type": "string", "example": "rhel-6-server-rpms"}, "releasever": {"type": "string", "example": "6Server"}, "basearch": {"type": "string", "example": "x86_64"}, "erratum": {"type": "string", "example": "RHSA-2018:0512"}, "package": {"type": "string", "example": "kernel-2.6.32-696.23.1.el6.x86_64"}}}}}}}, "repository_list": {"type": "array", "items": {"type": "string", "example": "rhel-6-server-rpms"}}, "modules_list": {"type": "array", "items": {"type": "object", "properties": {"module_name": {"type": "string", "example": "rhn-tools"}, "module_stream": {"type": "string", "example": "1"}}, "required": ["module_name", "module_stream"]}}, "releasever": {"type": "string", "example": "6Server"}, "basearch": {"type": "string", "example": "x86_64"}}}, "CvesRequest": {"type": "object", "properties": {"page": {"type": "number", "example": 0}, "page_size": {"type": "number", "example": 10}, "cve_list": {"type": "array", "items": {"type": "string", "example": "CVE-2017-57.*"}, "minItems": 1}, "modified_since": {"type": "string", "example": "2018-04-05T01:23:45+02:00", "format": "date-time"}, "published_since": {"type": "string", "example": "2018-04-05T01:23:45+02:00", "format": "date-time"}, "rh_only": {"type": "boolean", "enum": [true, false]}, "errata_associated": {"type": "boolean", "enum": [true, false], "description": "Return only those CVEs which are associated with at least one errata. Defaults to false."}, "third_party": {"type": "boolean", "enum": [true, false], "description": "Include content from \"third party\" repositories into the response, disabled by default.", "default": false}}, "required": ["cve_list"]}, "CvesResponse": {"properties": {"page": {"type": "number", "example": 0}, "page_size": {"type": "number", "example": 10}, "pages": {"type": "number"}, "cve_list": {"type": "object", "additionalProperties": {"type": "object", "properties": {"impact": {"type": "string", "enum": ["NotSet", "None", "Low", "Medium", "Moderate", "Important", "High", "Critical"]}, "public_date": {"type": "string", "example": "2018-01-04T13:29:00+00:00", "format": "date-time"}, "synopsis": {"type": "string", "example": "CVE-2017-5715"}, "description": {"type": "string", "example": "description text"}, "modified_date": {"type": "string", "example": "2018-03-31T01:29:00+00:00", "format": "date-time"}, "redhat_url": {"type": "string", "example": "https://access.redhat.com/security/cve/cve-2017-5715"}, "secondary_url": {"type": "string", "example": "https://seconday.url.com"}, "cvss2_score": {"type": "string", "example": "5.600"}, "cvss2_metrics": {"type": "string", "example": "AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N"}, "cvss3_score": {"type": "string", "example": "5.1"}, "cvss3_metrics": {"type": "string", "example": "AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N"}, "cwe_list": {"type": "array", "items": {"type": "string", "example": "CWE-20"}}, "errata_list": {"type": "array", "items": {"type": "string", "example": "RHSA-2015:1981"}}, "package_list": {"type": "array", "items": {"type": "string", "example": "nss-devel-3.16.1-9.el6_5.x86_64"}}, "source_package_list": {"type": "array", "items": {"type": "string", "example": "nss-devel-3.16.1-9.el6_5.src"}}}}}, "modified_since": {"type": "string", "example": "2018-04-05T01:23:45+02:00", "format": "date-time"}}}, "ReposRequest": {"type": "object", "properties": {"page": {"type": "number", "example": 0}, "page_size": {"type": "number", "example": 10}, "repository_list": {"type": "array", "items": {"type": "string", "example": "rhel-6-server-rpms"}, "minItems": 1}, "modified_since": {"type": "string", "example": "2018-04-05T01:23:45+02:00", "format": "date-time", "description": "Return only repositories changed after the given date"}, "third_party": {"type": "boolean", "enum": [true, false], "description": "Include content from \"third party\" repositories into the response, disabled by default.", "default": false}}, "required": ["repository_list"]}, "ReposResponse": {"properties": {"page": {"type": "number", "example": 0}, "page_size": {"type": "number", "example": 10}, "pages": {"type": "number"}, "repository_list": {"type": "object", "additionalProperties": {"type": "array", "items": {"type": "object", "properties": {"product": {"type": "string", "example": "Red Hat Enterprise Linux Server"}, "releasever": {"type": "string", "example": "6Server"}, "name": {"type": "string", "example": "Red Hat Enterprise Linux 6 Server (RPMs)"}, "url": {"type": "string", "example": "https://cdn.redhat.com/content/dist/rhel/server/6/6Server/x86_64/os/"}, "basearch": {"type": "string", "example": "x86_64"}, "revision": {"type": "string", "example": "2018-03-27T10:55:16+00:00"}, "label": {"type": "string", "example": "rhel-6-server-rpms"}, "cpes": {"type": "array", "items": {"type": "string", "example": "cpe:/a:redhat"}}, "third_party": {"type": "boolean"}}}}}}}, "ErrataRequest": {"type": "object", "properties": {"page": {"type": "number", "example": 0}, "page_size": {"type": "number", "example": 10}, "errata_list": {"type": "array", "items": {"type": "string", "example": "RHSA-2018:05.*"}, "minItems": 1}, "modified_since": {"type": "string", "example": "2018-04-05T01:23:45+02:00", "format": "date-time"}, "third_party": {"type": "boolean", "enum": [true, false], "description": "Include content from \"third party\" repositories into the response, disabled by default.", "default": false}, "type": {"type": "array", "items": {"type": "string", "example": "security"}}, "severity": {"type": "array", "items": {"type": "string", "enum": ["Low", "Moderate", "Important", "Critical", null], "nullable": true}}}, "required": ["errata_list"]}, "ErrataResponse": {"properties": {"page": {"type": "number", "example": 0}, "page_size": {"type": "number", "example": 10}, "pages": {"type": "number"}, "errata_list": {"type": "object", "additionalProperties": {"type": "object", "properties": {"updated": {"type": "string", "example": "2018-03-13T17:31:41+00:00"}, "severity": {"type": "string", "enum": ["Low", "Moderate", "Important", "Critical", null], "nullable": true}, "reference_list": {"type": "array", "items": {"type": "string", "example": "classification-RHSA-2018:0512"}}, "issued": {"type": "string", "example": "2018-03-13T17:31:28+00:00", "format": "date-time"}, "description": {"type": "string", "example": "description text"}, "solution": {"type": "string", "example": "solution text"}, "summary": {"type": "string", "example": "summary text"}, "url": {"type": "string", "example": "https://access.redhat.com/errata/RHSA-2018:0512"}, "synopsis": {"type": "string", "example": "Important: kernel security and bug fix update"}, "cve_list": {"type": "array", "items": {"type": "string", "example": "CVE-2017-5715"}}, "bugzilla_list": {"type": "array", "items": {"type": "string", "example": "1519778"}}, "package_list": {"type": "array", "items": {"type": "string", "example": "kernel-2.6.32-696.23.1.el6.x86_64"}}, "source_package_list": {"type": "array", "items": {"type": "string", "example": "kernel-2.6.32-696.23.1.el6.src"}}, "type": {"type": "string", "example": "security"}, "third_party": {"type": "boolean"}}}}, "modified_since": {"type": "string", "example": "2018-04-05T01:23:45+02:00", "format": "date-time"}, "type": {"type": "array", "items": {"type": "string", "example": "security"}}, "severity": {"type": "array", "items": {"type": "string", "enum": ["Low", "Moderate", "Important", "Critical", null], "nullable": true}}}}, "PackagesRequest": {"type": "object", "properties": {"package_list": {"type": "array", "items": {"type": "string", "example": "kernel-2.6.32-696.20.1.el6.x86_64"}, "minItems": 1}, "third_party": {"type": "boolean", "enum": [true, false], "description": "Include content from \"third party\" repositories into the response, disabled by default.", "default": false}}, "required": ["package_list"]}, "PackagesResponse": {"properties": {"package_list": {"type": "object", "additionalProperties": {"type": "object", "properties": {"summary": {"type": "string", "example": "package summary"}, "description": {"type": "string", "example": "package description"}, "source_package": {"type": "string", "example": "kernel-2.6.32-696.23.1.el6.src"}, "package_list": {"type": "array", "items": {"type": "string", "example": "kernel-2.6.32-696.23.1.el6.x86_64"}}, "repositories": {"type": "array", "items": {"type": "object", "properties": {"label": {"type": "string", "example": "rhel-6-server-rpms"}, "name": {"type": "string", "example": "Red Hat Enterprise Linux 6 Server (RPMs)"}, "basearch": {"type": "string", "example": "x86_64"}, "releasever": {"type": "string", "example": "6.9"}}}}}}}}}, "PkgtreeRequest": {"type": "object", "properties": {"package_name_list": {"type": "array", "items": {"type": "string", "example": "kernel-rt"}, "minItems": 1}, "third_party": {"type": "boolean", "enum": [true, false], "description": "Include content from \"third party\" repositories into the response, disabled by default.", "default": false}}, "required": ["package_name_list"]}, "PkgtreeResponse": {"properties": {"last_change": {"example": "2020-04-16 20:07:58.500192+00"}, "package_name_list": {"type": "object", "additionalProperties": {"type": "array", "items": {"type": "object", "properties": {"nevra": {"type": "string", "example": "kernel-rt-4.18.0-147.rt24.93.el8.x86_64"}, "first_published": {"type": "string", "example": "2020-01-13T17:31:41+00:00", "format": "date-time"}, "repositories": {"type": "array", "items": {"type": "object", "properties": {"label": {"type": "string", "example": "rhel-8-for-s390x-appstream-rpms"}, "name": {"type": "string", "example": "Red Hat Enterprise Linux 8 for IBM z Systems - AppStream (RPMs)"}, "basearch": {"type": "string", "example": "x86_64"}, "releasever": {"type": "string", "example": "6.9"}, "revision": {"type": "string", "example": "2019-11-19T09:41:05+00:00", "format": "date-time"}, "module_name": {"type": "string", "example": "postgresql"}, "module_stream": {"type": "string", "example": "9.6"}}, "required": ["label", "name", "basearch", "releasever", "revision"]}}, "errata": {"type": "array", "items": {"type": "object", "properties": {"name": {"type": "string", "example": "RHSA-2019:2730"}, "issued": {"type": "string", "example": "2019-11-19T09:41:05+00:00", "format": "date-time"}, "cve_list": {"type": "array", "items": {"type": "string", "example": "CVE-2018-13405"}}}, "required": ["name", "issued"]}}}, "required": ["nevra", "first_published"]}}}}}, "DBChangeResponse": {"properties": {"dbchange": {"type": "object", "properties": {"errata_changes": {"type": "string", "example": "2018-04-16 20:07:58.500192+00"}, "cve_changes": {"type": "string", "example": "2018-04-16 20:06:47.214266+00"}, "repository_changes": {"type": "string", "example": "2018-04-16 20:07:55.01395+00"}, "last_change": {"type": "string", "example": "2018-04-16 20:07:58.500192+00"}, "exported": {"type": "string", "example": "2018-04-16 20:07:59.235962+00"}}}}}, "VulnerabilitiesRequest": {"type": "object", "properties": {"package_list": {"type": "array", "items": {"type": "string", "example": "kernel-2.6.32-696.20.1.el6.x86_64"}}, "repository_list": {"type": "array", "items": {"type": "string", "example": "rhel-6-server-rpms"}}, "modules_list": {"type": "array", "items": {"type": "object", "properties": {"module_name": {"type": "string", "example": "rhn-tools"}, "module_stream": {"type": "string", "example": "1"}}, "required": ["module_name", "module_stream"]}}, "releasever": {"type": "string", "example": "6Server"}, "basearch": {"type": "string", "example": "x86_64"}, "oval": {"type": "boolean", "enum": [true, false]}, "oval_only": {"type": "boolean", "enum": [true, false]}, "third_party": {"type": "boolean", "enum": [true, false], "description": "Include content from \"third party\" repositories into the response, disabled by default.", "default": false}}, "required": ["package_list"]}, "VulnerabilitiesResponse": {"properties": {"cve_list": {"type": "array", "items": {"type": "string", "example": "CVE-2016-0800"}}, "unpatched_cve_list": {"type": "array", "items": {"type": "string", "example": "CVE-2017-15089"}}}, "required": ["cve_list", "unpatched_cve_list"]}, "PatchesRequest": {"type": "object", "properties": {"package_list": {"type": "array", "items": {"type": "string", "example": "kernel-2.6.32-696.20.1.el6.x86_64"}}, "repository_list": {"type": "array", "items": {"type": "string", "example": "rhel-6-server-rpms"}}, "modules_list": {"type": "array", "items": {"type": "object", "properties": {"module_name": {"type": "string", "example": "rhn-tools"}, "module_stream": {"type": "string", "example": "1"}}, "required": ["module_name", "module_stream"]}}, "releasever": {"type": "string", "example": "6Server"}, "basearch": {"type": "string", "example": "x86_64"}, "third_party": {"type": "boolean", "enum": [true, false], "description": "Include content from \"third party\" repositories into the response, disabled by default.", "default": false}}, "required": ["package_list"]}, "PatchesResponse": {"properties": {"errata_list": {"type": "array", "items": {"type": "string", "example": "RHSA-2018:0151"}}}}, "SRPMPkgNamesRequest": {"type": "object", "properties": {"srpm_name_list": {"type": "array", "items": {"type": "string", "example": "openssl"}}, "content_set_list": {"type": "array", "items": {"type": "string", "example": "rhel-7-desktop-rpms"}}, "third_party": {"type": "boolean", "enum": [true, false], "description": "Include content from \"third party\" repositories into the response, disabled by default.", "default": false}}, "required": ["srpm_name_list"]}, "SRPMPkgNamesResponse": {"properties": {"last_change": {"example": "2020-04-16 20:07:58.500192+00"}, "srpm_name_list": {"type": "object", "additionalProperties": {"type": "object", "additionalProperties": {"type": "array", "items": {"type": "string", "example": "openssl-libs"}}}}}}, "RPMPkgNamesRequest": {"type": "object", "properties": {"rpm_name_list": {"type": "array", "items": {"type": "string", "example": "openssl-libs"}}, "content_set_list": {"type": "array", "items": {"type": "string", "example": "rhel-7-desktop-rpms"}}, "third_party": {"type": "boolean", "enum": [true, false], "description": "Include content from \"third party\" repositories into the response, disabled by default.", "default": false}}, "required": ["rpm_name_list"]}, "RPMPkgNamesResponse": {"properties": {"last_change": {"example": "2020-04-16 20:07:58.500192+00"}, "rpm_name_list": {"type": "object", "additionalProperties": {"type": "array", "items": {"type": "string", "example": "rhel-7-desktop-rpms"}}}}}}}, "servers": [{"url": "/api/vmaas/v3"}]} diff --git a/vmaas/api/openapi.yaml b/vmaas/api/openapi.yaml index 9d7a71f..f4b79f4 100644 --- a/vmaas/api/openapi.yaml +++ b/vmaas/api/openapi.yaml @@ -1,22 +1,22 @@ openapi: 3.0.0 info: title: VMaaS Webapp - version: 1.20.4 + version: 2.5.0 servers: -- url: /api +- url: /api/vmaas/v3 tags: - name: default - description: Endpoints with preview functionality name: experimental paths: - /v1/monitoring/health: + /monitoring/health: get: operationId: app.HealthHandler.get responses: "200": description: Application is alive summary: Return API liveness status - /v1/monitoring/ready: + /monitoring/ready: get: operationId: app.ReadyHandler.get responses: @@ -25,14 +25,14 @@ paths: "503": description: Application is not ready summary: Return API readiness status - /v1/version: + /version: get: description: Get version of application operationId: app.VersionHandler.get responses: "200": description: Version of application returned - /v1/dbchange: + /dbchange: get: description: Get last-updated-times for VMaaS DB operationId: app.DBChangeHandler.get @@ -44,91 +44,7 @@ paths: $ref: '#/components/schemas/DBChangeResponse' description: Return last-update timestamps for errata, repos, cves and the db as a whole - /v1/updates: - post: - deprecated: true - description: List security updates for list of package NEVRAs - operationId: app.UpdatesHandlerPost.post - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/UpdatesRequest' - description: Input json - responses: - "400": - description: Invalid input json format - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/UpdatesResponse' - description: Return list of security updates for list of package NEVRAs - /v1/updates/{nevra}: - get: - deprecated: true - description: List security updates for single package NEVRA - operationId: app.UpdatesHandlerGet.get - parameters: - - description: Package NEVRA - explode: false - in: path - name: nevra - required: true - schema: - type: string - style: simple - x-example: kernel-2.6.32-696.20.1.el6.x86_64 - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/UpdatesResponse' - description: Return list of security updates for single package NEVRA - /v2/updates: - post: - deprecated: true - description: List security updates for list of package NEVRAs - operationId: app.UpdatesHandlerV2Post.post - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/UpdatesRequest' - description: Input json - responses: - "400": - description: Invalid input json format - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/UpdatesV2Response' - description: Return list of security updates for single package NEVRA - /v2/updates/{nevra}: - get: - deprecated: true - description: List security updates for single package NEVRA - operationId: app.UpdatesHandlerV2Get.get - parameters: - - description: Package NEVRA - explode: false - in: path - name: nevra - required: true - schema: - type: string - style: simple - x-example: kernel-2.6.32-696.20.1.el6.x86_64 - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/UpdatesV2Response' - description: Return list of security updates for single package NEVRA - /v3/updates: + /updates: post: description: List all updates for list of package NEVRAs operationId: app.UpdatesHandlerV3Post.post @@ -147,7 +63,7 @@ paths: schema: $ref: '#/components/schemas/UpdatesV2Response' description: Return list of all updates for single package NEVRA - /v3/updates/{nevra}: + /updates/{nevra}: get: description: List all updates for single package NEVRA operationId: app.UpdatesHandlerV3Get.get @@ -168,7 +84,7 @@ paths: schema: $ref: '#/components/schemas/UpdatesV2Response' description: Return list of all updates for single package NEVRA - /v1/cves: + /cves: post: description: Get details about CVEs with additional parameters. As a "cve_list" parameter a complete list of CVE names can be provided OR one POSIX regular @@ -188,7 +104,7 @@ paths: schema: $ref: '#/components/schemas/CvesResponse' description: Return details about list of CVEs - /v1/cves/{cve}: + /cves/{cve}: get: description: Get details about CVEs. It is possible to use POSIX regular expression as a pattern for CVE names. @@ -210,7 +126,7 @@ paths: schema: $ref: '#/components/schemas/CvesResponse' description: Return details about CVEs - /v1/repos: + /repos: post: description: Get details about list of repositories. "repository_list" can be either a list of repository names, OR a single POSIX regular expression. @@ -229,7 +145,7 @@ paths: schema: $ref: '#/components/schemas/ReposResponse' description: Return details about list of repositories - /v1/repos/{repo}: + /repos/{repo}: get: description: Get details about a repository or repository-expression. It is allowed to use POSIX regular expression as a pattern for repository names. @@ -252,7 +168,7 @@ paths: $ref: '#/components/schemas/ReposResponse' description: Return details about repository or repositories that match the expression - /v1/errata: + /errata: post: description: Get details about errata with additional parameters. "errata_list" parameter can be either a list of errata names OR a single POSIX regular expression. @@ -271,7 +187,7 @@ paths: schema: $ref: '#/components/schemas/ErrataResponse' description: Return details about list of errata - /v1/errata/{erratum}: + /errata/{erratum}: get: description: Get details about errata. It is possible to use POSIX regular expression as a pattern for errata names. @@ -293,7 +209,7 @@ paths: schema: $ref: '#/components/schemas/ErrataResponse' description: Return details about errata - /v1/packages: + /packages: post: description: Get details about packages. "package_list" must be a list of package NEVRAs. @@ -312,7 +228,7 @@ paths: schema: $ref: '#/components/schemas/PackagesResponse' description: Return details about list of package NEVRAs - /v1/packages/{nevra}: + /packages/{nevra}: get: description: Get details about packages. operationId: app.PackagesHandlerGet.get @@ -333,7 +249,7 @@ paths: schema: $ref: '#/components/schemas/PackagesResponse' description: Return details about single package NEVRA - /v1/pkgtree: + /pkgtree: post: description: Get package NEVRAs trees for package names. "package_name_list" must be a list of package names. @@ -352,7 +268,7 @@ paths: schema: $ref: '#/components/schemas/PkgtreeResponse' description: Return package NEVRAs about list of package names - /v1/pkgtree/{package_name}: + /pkgtree/{package_name}: get: description: Get package NEVRAs tree for a single package name. operationId: app.PkgtreeHandlerGet.get @@ -373,7 +289,7 @@ paths: schema: $ref: '#/components/schemas/PkgtreeResponse' description: Return package NEVRAs about single package name - /v1/vulnerabilities: + /vulnerabilities: post: description: List of applicable CVEs to a package list. operationId: app.VulnerabilitiesHandlerPost.post @@ -391,7 +307,7 @@ paths: schema: $ref: '#/components/schemas/VulnerabilitiesResponse' description: List of applicable CVEs to a package list. - /v1/vulnerabilities/{nevra}: + /vulnerabilities/{nevra}: get: description: List of applicable CVEs for a single package NEVRA operationId: app.VulnerabilitiesHandlerGet.get @@ -412,7 +328,7 @@ paths: schema: $ref: '#/components/schemas/VulnerabilitiesResponse' description: Return list of applicable CVEs for a single NEVRA - /v1/patches: + /patches: post: description: List of applicable errata to a package list. operationId: app.PatchesHandlerPost.post @@ -430,7 +346,7 @@ paths: schema: $ref: '#/components/schemas/PatchesResponse' description: List of applicable errata to a package list. - /v1/patches/{nevra}: + /patches/{nevra}: get: description: List of applicable CVEs for a single package NEVRA operationId: app.PatchesHandlerGet.get @@ -451,7 +367,7 @@ paths: schema: $ref: '#/components/schemas/PatchesResponse' description: Return list of applicable errata for a single NEVRA - /v1/package_names/srpms: + /package_names/srpms: post: description: List of content sets with associated rpm names by given srpm and content set. @@ -473,7 +389,7 @@ paths: names and content set. tags: - experimental - /v1/package_names/srpms/{srpm}: + /package_names/srpms/{srpm}: get: description: List of content sets with associated rpm names by given srpm. operationId: app.SRPMPkgNamesHandlerGet.get @@ -499,7 +415,7 @@ paths: names and content set. tags: - experimental - /v1/package_names/rpms: + /package_names/rpms: post: description: List of content sets by given rpm name and content set. operationId: app.RPMPkgNamesHandlerPost.post @@ -519,7 +435,7 @@ paths: description: List of content sets by given rpm names and content set. tags: - experimental - /v1/package_names/rpms/{rpm}: + /package_names/rpms/{rpm}: get: description: List of content sets by given rpm name. operationId: app.RPMPkgNamesHandlerGet.get @@ -546,7 +462,7 @@ paths: - experimental components: schemas: - UpdatesRequest: + UpdatesV3Request: example: latest_only: true modules_list: @@ -554,14 +470,17 @@ components: module_name: rhn-tools - module_stream: "1" module_name: rhn-tools + optimistic_updates: false package_list: - kernel-2.6.32-696.20.1.el6.x86_64 - kernel-2.6.32-696.20.1.el6.x86_64 + third_party: false repository_list: - rhel-6-server-rpms - rhel-6-server-rpms basearch: x86_64 releasever: 6Server + security_only: true properties: package_list: items: @@ -576,7 +495,7 @@ components: type: array modules_list: items: - $ref: '#/components/schemas/UpdatesRequest_modules_list' + $ref: '#/components/schemas/UpdatesV3Request_modules_list' type: array releasever: example: 6Server @@ -584,59 +503,27 @@ components: basearch: example: x86_64 type: string + security_only: + enum: + - true + - false + type: boolean latest_only: enum: - true - false type: boolean - required: - - package_list - type: object - UpdatesV3Request: - example: - latest_only: true - modules_list: - - module_stream: "1" - module_name: rhn-tools - - module_stream: "1" - module_name: rhn-tools - package_list: - - kernel-2.6.32-696.20.1.el6.x86_64 - - kernel-2.6.32-696.20.1.el6.x86_64 - repository_list: - - rhel-6-server-rpms - - rhel-6-server-rpms - basearch: x86_64 - releasever: 6Server - security_only: true - properties: - package_list: - items: - example: kernel-2.6.32-696.20.1.el6.x86_64 - type: string - minItems: 1 - type: array - repository_list: - items: - example: rhel-6-server-rpms - type: string - type: array - modules_list: - items: - $ref: '#/components/schemas/UpdatesRequest_modules_list' - type: array - releasever: - example: 6Server - type: string - basearch: - example: x86_64 - type: string - security_only: + third_party: + default: false + description: Include content from "third party" repositories into the response, + disabled by default. enum: - true - false type: boolean - latest_only: + optimistic_updates: + default: false + description: Search for updates of unknown package EVRAs. enum: - true - false @@ -644,53 +531,6 @@ components: required: - package_list type: object - UpdatesResponse: - example: - modules_list: - - module_stream: "1" - module_name: rhn-tools - - module_stream: "1" - module_name: rhn-tools - update_list: - key: - summary: package summary - description: package description - available_updates: - - erratum: RHSA-2018:0512 - package: kernel-2.6.32-696.23.1.el6.x86_64 - repository: rhel-6-server-rpms - basearch: x86_64 - releasever: 6Server - - erratum: RHSA-2018:0512 - package: kernel-2.6.32-696.23.1.el6.x86_64 - repository: rhel-6-server-rpms - basearch: x86_64 - releasever: 6Server - repository_list: - - rhel-6-server-rpms - - rhel-6-server-rpms - basearch: x86_64 - releasever: 6Server - properties: - update_list: - additionalProperties: - $ref: '#/components/schemas/UpdatesResponse_update_list' - type: object - repository_list: - items: - example: rhel-6-server-rpms - type: string - type: array - modules_list: - items: - $ref: '#/components/schemas/UpdatesRequest_modules_list' - type: array - releasever: - example: 6Server - type: string - basearch: - example: x86_64 - type: string UpdatesV2Response: example: modules_list: @@ -728,7 +568,7 @@ components: type: array modules_list: items: - $ref: '#/components/schemas/UpdatesRequest_modules_list' + $ref: '#/components/schemas/UpdatesV3Request_modules_list' type: array releasever: example: 6Server @@ -745,6 +585,7 @@ components: modified_since: 2018-04-05T01:23:45+02:00 errata_associated: true page: 0 + third_party: false page_size: 10 published_since: 2018-04-05T01:23:45+02:00 properties: @@ -780,6 +621,14 @@ components: - true - false type: boolean + third_party: + default: false + description: Include content from "third party" repositories into the response, + disabled by default. + enum: + - true + - false + type: boolean required: - cve_list type: object @@ -835,6 +684,7 @@ components: example: modified_since: 2018-04-05T01:23:45+02:00 page: 0 + third_party: false repository_list: - rhel-6-server-rpms - rhel-6-server-rpms @@ -857,6 +707,14 @@ components: example: 2018-04-05T01:23:45+02:00 format: date-time type: string + third_party: + default: false + description: Include content from "third party" repositories into the response, + disabled by default. + enum: + - true + - false + type: boolean required: - repository_list type: object @@ -903,6 +761,13 @@ components: label: example: rhel-6-server-rpms type: string + cpes: + items: + example: cpe:/a:redhat + type: string + type: array + third_party: + type: boolean type: object type: array type: object @@ -916,6 +781,7 @@ components: - RHSA-2018:05.* modified_since: 2018-04-05T01:23:45+02:00 page: 0 + third_party: false type: - security - security @@ -937,6 +803,14 @@ components: example: 2018-04-05T01:23:45+02:00 format: date-time type: string + third_party: + default: false + description: Include content from "third party" repositories into the response, + disabled by default. + enum: + - true + - false + type: boolean type: items: example: security @@ -984,6 +858,7 @@ components: - CVE-2017-5715 solution: solution text issued: 2018-03-13T17:31:28Z + third_party: true updated: 2018-03-13T17:31:41+00:00 bugzilla_list: - "1519778" @@ -1032,6 +907,7 @@ components: package_list: - kernel-2.6.32-696.20.1.el6.x86_64 - kernel-2.6.32-696.20.1.el6.x86_64 + third_party: false properties: package_list: items: @@ -1039,6 +915,14 @@ components: type: string minItems: 1 type: array + third_party: + default: false + description: Include content from "third party" repositories into the response, + disabled by default. + enum: + - true + - false + type: boolean required: - package_list type: object @@ -1071,6 +955,7 @@ components: package_name_list: - kernel-rt - kernel-rt + third_party: false properties: package_name_list: items: @@ -1078,6 +963,14 @@ components: type: string minItems: 1 type: array + third_party: + default: false + description: Include content from "third party" repositories into the response, + disabled by default. + enum: + - true + - false + type: boolean required: - package_name_list type: object @@ -1180,9 +1073,12 @@ components: module_name: rhn-tools - module_stream: "1" module_name: rhn-tools + oval_only: true + oval: true package_list: - kernel-2.6.32-696.20.1.el6.x86_64 - kernel-2.6.32-696.20.1.el6.x86_64 + third_party: false repository_list: - rhel-6-server-rpms - rhel-6-server-rpms @@ -1201,7 +1097,7 @@ components: type: array modules_list: items: - $ref: '#/components/schemas/UpdatesRequest_modules_list' + $ref: '#/components/schemas/UpdatesV3Request_modules_list' type: array releasever: example: 6Server @@ -1209,6 +1105,24 @@ components: basearch: example: x86_64 type: string + oval: + enum: + - true + - false + type: boolean + oval_only: + enum: + - true + - false + type: boolean + third_party: + default: false + description: Include content from "third party" repositories into the response, + disabled by default. + enum: + - true + - false + type: boolean required: - package_list type: object @@ -1217,12 +1131,23 @@ components: cve_list: - CVE-2016-0800 - CVE-2016-0800 + unpatched_cve_list: + - CVE-2017-15089 + - CVE-2017-15089 properties: cve_list: items: example: CVE-2016-0800 type: string type: array + unpatched_cve_list: + items: + example: CVE-2017-15089 + type: string + type: array + required: + - cve_list + - unpatched_cve_list PatchesRequest: example: modules_list: @@ -1233,6 +1158,7 @@ components: package_list: - kernel-2.6.32-696.20.1.el6.x86_64 - kernel-2.6.32-696.20.1.el6.x86_64 + third_party: false repository_list: - rhel-6-server-rpms - rhel-6-server-rpms @@ -1251,7 +1177,7 @@ components: type: array modules_list: items: - $ref: '#/components/schemas/UpdatesRequest_modules_list' + $ref: '#/components/schemas/UpdatesV3Request_modules_list' type: array releasever: example: 6Server @@ -1259,6 +1185,14 @@ components: basearch: example: x86_64 type: string + third_party: + default: false + description: Include content from "third party" repositories into the response, + disabled by default. + enum: + - true + - false + type: boolean required: - package_list type: object @@ -1274,6 +1208,14 @@ components: type: string type: array SRPMPkgNamesRequest: + example: + srpm_name_list: + - openssl + - openssl + content_set_list: + - rhel-7-desktop-rpms + - rhel-7-desktop-rpms + third_party: false properties: srpm_name_list: items: @@ -1285,6 +1227,14 @@ components: example: rhel-7-desktop-rpms type: string type: array + third_party: + default: false + description: Include content from "third party" repositories into the response, + disabled by default. + enum: + - true + - false + type: boolean required: - srpm_name_list type: object @@ -1309,6 +1259,14 @@ components: type: object type: object RPMPkgNamesRequest: + example: + rpm_name_list: + - openssl-libs + - openssl-libs + content_set_list: + - rhel-7-desktop-rpms + - rhel-7-desktop-rpms + third_party: false properties: rpm_name_list: items: @@ -1320,6 +1278,14 @@ components: example: rhel-7-desktop-rpms type: string type: array + third_party: + default: false + description: Include content from "third party" repositories into the response, + disabled by default. + enum: + - true + - false + type: boolean required: - rpm_name_list type: object @@ -1340,7 +1306,7 @@ components: type: string type: array type: object - UpdatesRequest_modules_list: + UpdatesV3Request_modules_list: example: module_stream: "1" module_name: rhn-tools @@ -1354,7 +1320,8 @@ components: required: - module_name - module_stream - UpdatesResponse_available_updates: + type: object + UpdatesV2Response_available_updates: example: erratum: RHSA-2018:0512 package: kernel-2.6.32-696.23.1.el6.x86_64 @@ -1377,32 +1344,7 @@ components: package: example: kernel-2.6.32-696.23.1.el6.x86_64 type: string - UpdatesResponse_update_list: - example: - summary: package summary - description: package description - available_updates: - - erratum: RHSA-2018:0512 - package: kernel-2.6.32-696.23.1.el6.x86_64 - repository: rhel-6-server-rpms - basearch: x86_64 - releasever: 6Server - - erratum: RHSA-2018:0512 - package: kernel-2.6.32-696.23.1.el6.x86_64 - repository: rhel-6-server-rpms - basearch: x86_64 - releasever: 6Server - properties: - available_updates: - items: - $ref: '#/components/schemas/UpdatesResponse_available_updates' - type: array - description: - example: package description - type: string - summary: - example: package summary - type: string + type: object UpdatesV2Response_update_list: example: available_updates: @@ -1419,8 +1361,9 @@ components: properties: available_updates: items: - $ref: '#/components/schemas/UpdatesResponse_available_updates' + $ref: '#/components/schemas/UpdatesV2Response_available_updates' type: array + type: object CvesResponse_cve_list: example: source_package_list: @@ -1510,6 +1453,7 @@ components: example: nss-devel-3.16.1-9.el6_5.src type: string type: array + type: object ErrataResponse_errata_list: example: severity: Low @@ -1532,6 +1476,7 @@ components: - CVE-2017-5715 solution: solution text issued: 2018-03-13T17:31:28Z + third_party: true updated: 2018-03-13T17:31:41+00:00 bugzilla_list: - "1519778" @@ -1596,6 +1541,9 @@ components: type: example: security type: string + third_party: + type: boolean + type: object PackagesResponse_repositories: example: name: Red Hat Enterprise Linux 6 Server (RPMs) @@ -1615,6 +1563,7 @@ components: releasever: example: "6.9" type: string + type: object PackagesResponse_package_list: example: summary: package summary @@ -1651,6 +1600,7 @@ components: items: $ref: '#/components/schemas/PackagesResponse_repositories' type: array + type: object DBChangeResponse_dbchange: example: errata_changes: 2018-04-16 20:07:58.500192+00 @@ -1674,6 +1624,7 @@ components: exported: example: 2018-04-16 20:07:59.235962+00 type: string + type: object x-format-resps: "400": description: Invalid input json format diff --git a/vmaas/api_default.go b/vmaas/api_default.go index 47070e7..6eb9bcd 100644 --- a/vmaas/api_default.go +++ b/vmaas/api_default.go @@ -3,19 +3,20 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.20.4 - * Generated by: OpenAPI Generator (https://openapi-generator.tech) + * API version: 2.5.0 */ +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + package vmaas import ( + "bytes" _context "context" _ioutil "io/ioutil" _nethttp "net/http" _neturl "net/url" "strings" - "github.com/antihax/optional" ) // Linger please @@ -26,14 +27,37 @@ var ( // DefaultApiService DefaultApi service type DefaultApiService service +type ApiAppCVEHandlerGetGetRequest struct { + ctx _context.Context + ApiService *DefaultApiService + cve string +} + + +func (r ApiAppCVEHandlerGetGetRequest) Execute() (CvesResponse, *_nethttp.Response, error) { + return r.ApiService.AppCVEHandlerGetGetExecute(r) +} + /* -AppCVEHandlerGetGet Method for AppCVEHandlerGetGet -Get details about CVEs. It is possible to use POSIX regular expression as a pattern for CVE names. + * AppCVEHandlerGetGet Method for AppCVEHandlerGetGet + * Get details about CVEs. It is possible to use POSIX regular expression as a pattern for CVE names. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param cve CVE name or POSIX regular expression pattern -@return CvesResponse -*/ -func (a *DefaultApiService) AppCVEHandlerGetGet(ctx _context.Context, cve string) (CvesResponse, *_nethttp.Response, error) { + * @return ApiAppCVEHandlerGetGetRequest + */ +func (a *DefaultApiService) AppCVEHandlerGetGet(ctx _context.Context, cve string) ApiAppCVEHandlerGetGetRequest { + return ApiAppCVEHandlerGetGetRequest{ + ApiService: a, + ctx: ctx, + cve: cve, + } +} + +/* + * Execute executes the request + * @return CvesResponse + */ +func (a *DefaultApiService) AppCVEHandlerGetGetExecute(r ApiAppCVEHandlerGetGetRequest) (CvesResponse, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet localVarPostBody interface{} @@ -43,9 +67,13 @@ func (a *DefaultApiService) AppCVEHandlerGetGet(ctx _context.Context, cve string localVarReturnValue CvesResponse ) - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/v1/cves/{cve}" - localVarPath = strings.Replace(localVarPath, "{"+"cve"+"}", _neturl.QueryEscape(parameterToString(cve, "")) , -1) + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.AppCVEHandlerGetGet") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/cves/{cve}" + localVarPath = strings.Replace(localVarPath, "{"+"cve"+"}", _neturl.PathEscape(parameterToString(r.cve, "")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := _neturl.Values{} @@ -68,18 +96,19 @@ func (a *DefaultApiService) AppCVEHandlerGetGet(ctx _context.Context, cve string if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) if err != nil { return localVarReturnValue, nil, err } - localVarHTTPResponse, err := a.client.callAPI(r) + localVarHTTPResponse, err := a.client.callAPI(req) if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, localVarHTTPResponse, err } localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -104,20 +133,39 @@ func (a *DefaultApiService) AppCVEHandlerGetGet(ctx _context.Context, cve string return localVarReturnValue, localVarHTTPResponse, nil } -// AppCVEHandlerPostPostOpts Optional parameters for the method 'AppCVEHandlerPostPost' -type AppCVEHandlerPostPostOpts struct { - CvesRequest optional.Interface +type ApiAppCVEHandlerPostPostRequest struct { + ctx _context.Context + ApiService *DefaultApiService + cvesRequest *CvesRequest +} + +func (r ApiAppCVEHandlerPostPostRequest) CvesRequest(cvesRequest CvesRequest) ApiAppCVEHandlerPostPostRequest { + r.cvesRequest = &cvesRequest + return r +} + +func (r ApiAppCVEHandlerPostPostRequest) Execute() (CvesResponse, *_nethttp.Response, error) { + return r.ApiService.AppCVEHandlerPostPostExecute(r) } /* -AppCVEHandlerPostPost Method for AppCVEHandlerPostPost -Get details about CVEs with additional parameters. As a \"cve_list\" parameter a complete list of CVE names can be provided OR one POSIX regular expression. + * AppCVEHandlerPostPost Method for AppCVEHandlerPostPost + * Get details about CVEs with additional parameters. As a "cve_list" parameter a complete list of CVE names can be provided OR one POSIX regular expression. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param optional nil or *AppCVEHandlerPostPostOpts - Optional Parameters: - * @param "CvesRequest" (optional.Interface of CvesRequest) - -@return CvesResponse -*/ -func (a *DefaultApiService) AppCVEHandlerPostPost(ctx _context.Context, localVarOptionals *AppCVEHandlerPostPostOpts) (CvesResponse, *_nethttp.Response, error) { + * @return ApiAppCVEHandlerPostPostRequest + */ +func (a *DefaultApiService) AppCVEHandlerPostPost(ctx _context.Context) ApiAppCVEHandlerPostPostRequest { + return ApiAppCVEHandlerPostPostRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return CvesResponse + */ +func (a *DefaultApiService) AppCVEHandlerPostPostExecute(r ApiAppCVEHandlerPostPostRequest) (CvesResponse, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPost localVarPostBody interface{} @@ -127,8 +175,13 @@ func (a *DefaultApiService) AppCVEHandlerPostPost(ctx _context.Context, localVar localVarReturnValue CvesResponse ) - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/v1/cves" + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.AppCVEHandlerPostPost") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/cves" + localVarHeaderParams := make(map[string]string) localVarQueryParams := _neturl.Values{} localVarFormParams := _neturl.Values{} @@ -151,26 +204,20 @@ func (a *DefaultApiService) AppCVEHandlerPostPost(ctx _context.Context, localVar localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - if localVarOptionals != nil && localVarOptionals.CvesRequest.IsSet() { - localVarOptionalCvesRequest, localVarOptionalCvesRequestok := localVarOptionals.CvesRequest.Value().(CvesRequest) - if !localVarOptionalCvesRequestok { - return localVarReturnValue, nil, reportError("cvesRequest should be CvesRequest") - } - localVarPostBody = &localVarOptionalCvesRequest - } - - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + localVarPostBody = r.cvesRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) if err != nil { return localVarReturnValue, nil, err } - localVarHTTPResponse, err := a.client.callAPI(r) + localVarHTTPResponse, err := a.client.callAPI(req) if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, localVarHTTPResponse, err } localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -195,24 +242,50 @@ func (a *DefaultApiService) AppCVEHandlerPostPost(ctx _context.Context, localVar return localVarReturnValue, localVarHTTPResponse, nil } +type ApiAppDBChangeHandlerGetRequest struct { + ctx _context.Context + ApiService *DefaultApiService +} + + +func (r ApiAppDBChangeHandlerGetRequest) Execute() (DBChangeResponse, *_nethttp.Response, error) { + return r.ApiService.AppDBChangeHandlerGetExecute(r) +} + /* -AppDBChangeHandlerGet Method for AppDBChangeHandlerGet -Get last-updated-times for VMaaS DB + * AppDBChangeHandlerGet Method for AppDBChangeHandlerGet + * Get last-updated-times for VMaaS DB * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). -@return DbChangeResponse -*/ -func (a *DefaultApiService) AppDBChangeHandlerGet(ctx _context.Context) (DbChangeResponse, *_nethttp.Response, error) { + * @return ApiAppDBChangeHandlerGetRequest + */ +func (a *DefaultApiService) AppDBChangeHandlerGet(ctx _context.Context) ApiAppDBChangeHandlerGetRequest { + return ApiAppDBChangeHandlerGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return DBChangeResponse + */ +func (a *DefaultApiService) AppDBChangeHandlerGetExecute(r ApiAppDBChangeHandlerGetRequest) (DBChangeResponse, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet localVarPostBody interface{} localVarFormFileName string localVarFileName string localVarFileBytes []byte - localVarReturnValue DbChangeResponse + localVarReturnValue DBChangeResponse ) - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/v1/dbchange" + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.AppDBChangeHandlerGet") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/dbchange" + localVarHeaderParams := make(map[string]string) localVarQueryParams := _neturl.Values{} localVarFormParams := _neturl.Values{} @@ -234,18 +307,19 @@ func (a *DefaultApiService) AppDBChangeHandlerGet(ctx _context.Context) (DbChang if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) if err != nil { return localVarReturnValue, nil, err } - localVarHTTPResponse, err := a.client.callAPI(r) + localVarHTTPResponse, err := a.client.callAPI(req) if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, localVarHTTPResponse, err } localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -270,14 +344,37 @@ func (a *DefaultApiService) AppDBChangeHandlerGet(ctx _context.Context) (DbChang return localVarReturnValue, localVarHTTPResponse, nil } +type ApiAppErrataHandlerGetGetRequest struct { + ctx _context.Context + ApiService *DefaultApiService + erratum string +} + + +func (r ApiAppErrataHandlerGetGetRequest) Execute() (ErrataResponse, *_nethttp.Response, error) { + return r.ApiService.AppErrataHandlerGetGetExecute(r) +} + /* -AppErrataHandlerGetGet Method for AppErrataHandlerGetGet -Get details about errata. It is possible to use POSIX regular expression as a pattern for errata names. + * AppErrataHandlerGetGet Method for AppErrataHandlerGetGet + * Get details about errata. It is possible to use POSIX regular expression as a pattern for errata names. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param erratum Errata advisory name or POSIX regular expression pattern -@return ErrataResponse -*/ -func (a *DefaultApiService) AppErrataHandlerGetGet(ctx _context.Context, erratum string) (ErrataResponse, *_nethttp.Response, error) { + * @return ApiAppErrataHandlerGetGetRequest + */ +func (a *DefaultApiService) AppErrataHandlerGetGet(ctx _context.Context, erratum string) ApiAppErrataHandlerGetGetRequest { + return ApiAppErrataHandlerGetGetRequest{ + ApiService: a, + ctx: ctx, + erratum: erratum, + } +} + +/* + * Execute executes the request + * @return ErrataResponse + */ +func (a *DefaultApiService) AppErrataHandlerGetGetExecute(r ApiAppErrataHandlerGetGetRequest) (ErrataResponse, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet localVarPostBody interface{} @@ -287,9 +384,13 @@ func (a *DefaultApiService) AppErrataHandlerGetGet(ctx _context.Context, erratum localVarReturnValue ErrataResponse ) - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/v1/errata/{erratum}" - localVarPath = strings.Replace(localVarPath, "{"+"erratum"+"}", _neturl.QueryEscape(parameterToString(erratum, "")) , -1) + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.AppErrataHandlerGetGet") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/errata/{erratum}" + localVarPath = strings.Replace(localVarPath, "{"+"erratum"+"}", _neturl.PathEscape(parameterToString(r.erratum, "")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := _neturl.Values{} @@ -312,18 +413,19 @@ func (a *DefaultApiService) AppErrataHandlerGetGet(ctx _context.Context, erratum if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) if err != nil { return localVarReturnValue, nil, err } - localVarHTTPResponse, err := a.client.callAPI(r) + localVarHTTPResponse, err := a.client.callAPI(req) if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, localVarHTTPResponse, err } localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -348,20 +450,39 @@ func (a *DefaultApiService) AppErrataHandlerGetGet(ctx _context.Context, erratum return localVarReturnValue, localVarHTTPResponse, nil } -// AppErrataHandlerPostPostOpts Optional parameters for the method 'AppErrataHandlerPostPost' -type AppErrataHandlerPostPostOpts struct { - ErrataRequest optional.Interface +type ApiAppErrataHandlerPostPostRequest struct { + ctx _context.Context + ApiService *DefaultApiService + errataRequest *ErrataRequest +} + +func (r ApiAppErrataHandlerPostPostRequest) ErrataRequest(errataRequest ErrataRequest) ApiAppErrataHandlerPostPostRequest { + r.errataRequest = &errataRequest + return r +} + +func (r ApiAppErrataHandlerPostPostRequest) Execute() (ErrataResponse, *_nethttp.Response, error) { + return r.ApiService.AppErrataHandlerPostPostExecute(r) } /* -AppErrataHandlerPostPost Method for AppErrataHandlerPostPost -Get details about errata with additional parameters. \"errata_list\" parameter can be either a list of errata names OR a single POSIX regular expression. + * AppErrataHandlerPostPost Method for AppErrataHandlerPostPost + * Get details about errata with additional parameters. "errata_list" parameter can be either a list of errata names OR a single POSIX regular expression. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param optional nil or *AppErrataHandlerPostPostOpts - Optional Parameters: - * @param "ErrataRequest" (optional.Interface of ErrataRequest) - -@return ErrataResponse -*/ -func (a *DefaultApiService) AppErrataHandlerPostPost(ctx _context.Context, localVarOptionals *AppErrataHandlerPostPostOpts) (ErrataResponse, *_nethttp.Response, error) { + * @return ApiAppErrataHandlerPostPostRequest + */ +func (a *DefaultApiService) AppErrataHandlerPostPost(ctx _context.Context) ApiAppErrataHandlerPostPostRequest { + return ApiAppErrataHandlerPostPostRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return ErrataResponse + */ +func (a *DefaultApiService) AppErrataHandlerPostPostExecute(r ApiAppErrataHandlerPostPostRequest) (ErrataResponse, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPost localVarPostBody interface{} @@ -371,8 +492,13 @@ func (a *DefaultApiService) AppErrataHandlerPostPost(ctx _context.Context, local localVarReturnValue ErrataResponse ) - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/v1/errata" + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.AppErrataHandlerPostPost") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/errata" + localVarHeaderParams := make(map[string]string) localVarQueryParams := _neturl.Values{} localVarFormParams := _neturl.Values{} @@ -395,26 +521,20 @@ func (a *DefaultApiService) AppErrataHandlerPostPost(ctx _context.Context, local localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - if localVarOptionals != nil && localVarOptionals.ErrataRequest.IsSet() { - localVarOptionalErrataRequest, localVarOptionalErrataRequestok := localVarOptionals.ErrataRequest.Value().(ErrataRequest) - if !localVarOptionalErrataRequestok { - return localVarReturnValue, nil, reportError("errataRequest should be ErrataRequest") - } - localVarPostBody = &localVarOptionalErrataRequest - } - - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + localVarPostBody = r.errataRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) if err != nil { return localVarReturnValue, nil, err } - localVarHTTPResponse, err := a.client.callAPI(r) + localVarHTTPResponse, err := a.client.callAPI(req) if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, localVarHTTPResponse, err } localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -439,11 +559,32 @@ func (a *DefaultApiService) AppErrataHandlerPostPost(ctx _context.Context, local return localVarReturnValue, localVarHTTPResponse, nil } +type ApiAppHealthHandlerGetRequest struct { + ctx _context.Context + ApiService *DefaultApiService +} + + +func (r ApiAppHealthHandlerGetRequest) Execute() (*_nethttp.Response, error) { + return r.ApiService.AppHealthHandlerGetExecute(r) +} + /* -AppHealthHandlerGet Return API liveness status + * AppHealthHandlerGet Return API liveness status * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). -*/ -func (a *DefaultApiService) AppHealthHandlerGet(ctx _context.Context) (*_nethttp.Response, error) { + * @return ApiAppHealthHandlerGetRequest + */ +func (a *DefaultApiService) AppHealthHandlerGet(ctx _context.Context) ApiAppHealthHandlerGetRequest { + return ApiAppHealthHandlerGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + */ +func (a *DefaultApiService) AppHealthHandlerGetExecute(r ApiAppHealthHandlerGetRequest) (*_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet localVarPostBody interface{} @@ -452,8 +593,13 @@ func (a *DefaultApiService) AppHealthHandlerGet(ctx _context.Context) (*_nethttp localVarFileBytes []byte ) - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/v1/monitoring/health" + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.AppHealthHandlerGet") + if err != nil { + return nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/monitoring/health" + localVarHeaderParams := make(map[string]string) localVarQueryParams := _neturl.Values{} localVarFormParams := _neturl.Values{} @@ -475,18 +621,19 @@ func (a *DefaultApiService) AppHealthHandlerGet(ctx _context.Context) (*_nethttp if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) if err != nil { return nil, err } - localVarHTTPResponse, err := a.client.callAPI(r) + localVarHTTPResponse, err := a.client.callAPI(req) if err != nil || localVarHTTPResponse == nil { return localVarHTTPResponse, err } localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarHTTPResponse, err } @@ -502,14 +649,37 @@ func (a *DefaultApiService) AppHealthHandlerGet(ctx _context.Context) (*_nethttp return localVarHTTPResponse, nil } +type ApiAppPackagesHandlerGetGetRequest struct { + ctx _context.Context + ApiService *DefaultApiService + nevra string +} + + +func (r ApiAppPackagesHandlerGetGetRequest) Execute() (PackagesResponse, *_nethttp.Response, error) { + return r.ApiService.AppPackagesHandlerGetGetExecute(r) +} + /* -AppPackagesHandlerGetGet Method for AppPackagesHandlerGetGet -Get details about packages. + * AppPackagesHandlerGetGet Method for AppPackagesHandlerGetGet + * Get details about packages. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param nevra Package NEVRA -@return PackagesResponse -*/ -func (a *DefaultApiService) AppPackagesHandlerGetGet(ctx _context.Context, nevra string) (PackagesResponse, *_nethttp.Response, error) { + * @return ApiAppPackagesHandlerGetGetRequest + */ +func (a *DefaultApiService) AppPackagesHandlerGetGet(ctx _context.Context, nevra string) ApiAppPackagesHandlerGetGetRequest { + return ApiAppPackagesHandlerGetGetRequest{ + ApiService: a, + ctx: ctx, + nevra: nevra, + } +} + +/* + * Execute executes the request + * @return PackagesResponse + */ +func (a *DefaultApiService) AppPackagesHandlerGetGetExecute(r ApiAppPackagesHandlerGetGetRequest) (PackagesResponse, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet localVarPostBody interface{} @@ -519,9 +689,13 @@ func (a *DefaultApiService) AppPackagesHandlerGetGet(ctx _context.Context, nevra localVarReturnValue PackagesResponse ) - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/v1/packages/{nevra}" - localVarPath = strings.Replace(localVarPath, "{"+"nevra"+"}", _neturl.QueryEscape(parameterToString(nevra, "")) , -1) + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.AppPackagesHandlerGetGet") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/packages/{nevra}" + localVarPath = strings.Replace(localVarPath, "{"+"nevra"+"}", _neturl.PathEscape(parameterToString(r.nevra, "")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := _neturl.Values{} @@ -544,18 +718,19 @@ func (a *DefaultApiService) AppPackagesHandlerGetGet(ctx _context.Context, nevra if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) if err != nil { return localVarReturnValue, nil, err } - localVarHTTPResponse, err := a.client.callAPI(r) + localVarHTTPResponse, err := a.client.callAPI(req) if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, localVarHTTPResponse, err } localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -580,20 +755,39 @@ func (a *DefaultApiService) AppPackagesHandlerGetGet(ctx _context.Context, nevra return localVarReturnValue, localVarHTTPResponse, nil } -// AppPackagesHandlerPostPostOpts Optional parameters for the method 'AppPackagesHandlerPostPost' -type AppPackagesHandlerPostPostOpts struct { - PackagesRequest optional.Interface +type ApiAppPackagesHandlerPostPostRequest struct { + ctx _context.Context + ApiService *DefaultApiService + packagesRequest *PackagesRequest +} + +func (r ApiAppPackagesHandlerPostPostRequest) PackagesRequest(packagesRequest PackagesRequest) ApiAppPackagesHandlerPostPostRequest { + r.packagesRequest = &packagesRequest + return r +} + +func (r ApiAppPackagesHandlerPostPostRequest) Execute() (PackagesResponse, *_nethttp.Response, error) { + return r.ApiService.AppPackagesHandlerPostPostExecute(r) } /* -AppPackagesHandlerPostPost Method for AppPackagesHandlerPostPost -Get details about packages. \"package_list\" must be a list of package NEVRAs. + * AppPackagesHandlerPostPost Method for AppPackagesHandlerPostPost + * Get details about packages. "package_list" must be a list of package NEVRAs. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param optional nil or *AppPackagesHandlerPostPostOpts - Optional Parameters: - * @param "PackagesRequest" (optional.Interface of PackagesRequest) - -@return PackagesResponse -*/ -func (a *DefaultApiService) AppPackagesHandlerPostPost(ctx _context.Context, localVarOptionals *AppPackagesHandlerPostPostOpts) (PackagesResponse, *_nethttp.Response, error) { + * @return ApiAppPackagesHandlerPostPostRequest + */ +func (a *DefaultApiService) AppPackagesHandlerPostPost(ctx _context.Context) ApiAppPackagesHandlerPostPostRequest { + return ApiAppPackagesHandlerPostPostRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return PackagesResponse + */ +func (a *DefaultApiService) AppPackagesHandlerPostPostExecute(r ApiAppPackagesHandlerPostPostRequest) (PackagesResponse, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPost localVarPostBody interface{} @@ -603,8 +797,13 @@ func (a *DefaultApiService) AppPackagesHandlerPostPost(ctx _context.Context, loc localVarReturnValue PackagesResponse ) - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/v1/packages" + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.AppPackagesHandlerPostPost") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/packages" + localVarHeaderParams := make(map[string]string) localVarQueryParams := _neturl.Values{} localVarFormParams := _neturl.Values{} @@ -627,26 +826,20 @@ func (a *DefaultApiService) AppPackagesHandlerPostPost(ctx _context.Context, loc localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - if localVarOptionals != nil && localVarOptionals.PackagesRequest.IsSet() { - localVarOptionalPackagesRequest, localVarOptionalPackagesRequestok := localVarOptionals.PackagesRequest.Value().(PackagesRequest) - if !localVarOptionalPackagesRequestok { - return localVarReturnValue, nil, reportError("packagesRequest should be PackagesRequest") - } - localVarPostBody = &localVarOptionalPackagesRequest - } - - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + localVarPostBody = r.packagesRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) if err != nil { return localVarReturnValue, nil, err } - localVarHTTPResponse, err := a.client.callAPI(r) + localVarHTTPResponse, err := a.client.callAPI(req) if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, localVarHTTPResponse, err } localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -671,14 +864,37 @@ func (a *DefaultApiService) AppPackagesHandlerPostPost(ctx _context.Context, loc return localVarReturnValue, localVarHTTPResponse, nil } +type ApiAppPatchesHandlerGetGetRequest struct { + ctx _context.Context + ApiService *DefaultApiService + nevra string +} + + +func (r ApiAppPatchesHandlerGetGetRequest) Execute() (PatchesResponse, *_nethttp.Response, error) { + return r.ApiService.AppPatchesHandlerGetGetExecute(r) +} + /* -AppPatchesHandlerGetGet Method for AppPatchesHandlerGetGet -List of applicable CVEs for a single package NEVRA + * AppPatchesHandlerGetGet Method for AppPatchesHandlerGetGet + * List of applicable CVEs for a single package NEVRA * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param nevra Package NEVRA -@return PatchesResponse -*/ -func (a *DefaultApiService) AppPatchesHandlerGetGet(ctx _context.Context, nevra string) (PatchesResponse, *_nethttp.Response, error) { + * @return ApiAppPatchesHandlerGetGetRequest + */ +func (a *DefaultApiService) AppPatchesHandlerGetGet(ctx _context.Context, nevra string) ApiAppPatchesHandlerGetGetRequest { + return ApiAppPatchesHandlerGetGetRequest{ + ApiService: a, + ctx: ctx, + nevra: nevra, + } +} + +/* + * Execute executes the request + * @return PatchesResponse + */ +func (a *DefaultApiService) AppPatchesHandlerGetGetExecute(r ApiAppPatchesHandlerGetGetRequest) (PatchesResponse, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet localVarPostBody interface{} @@ -688,9 +904,13 @@ func (a *DefaultApiService) AppPatchesHandlerGetGet(ctx _context.Context, nevra localVarReturnValue PatchesResponse ) - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/v1/patches/{nevra}" - localVarPath = strings.Replace(localVarPath, "{"+"nevra"+"}", _neturl.QueryEscape(parameterToString(nevra, "")) , -1) + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.AppPatchesHandlerGetGet") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/patches/{nevra}" + localVarPath = strings.Replace(localVarPath, "{"+"nevra"+"}", _neturl.PathEscape(parameterToString(r.nevra, "")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := _neturl.Values{} @@ -713,18 +933,19 @@ func (a *DefaultApiService) AppPatchesHandlerGetGet(ctx _context.Context, nevra if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) if err != nil { return localVarReturnValue, nil, err } - localVarHTTPResponse, err := a.client.callAPI(r) + localVarHTTPResponse, err := a.client.callAPI(req) if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, localVarHTTPResponse, err } localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -749,20 +970,39 @@ func (a *DefaultApiService) AppPatchesHandlerGetGet(ctx _context.Context, nevra return localVarReturnValue, localVarHTTPResponse, nil } -// AppPatchesHandlerPostPostOpts Optional parameters for the method 'AppPatchesHandlerPostPost' -type AppPatchesHandlerPostPostOpts struct { - PatchesRequest optional.Interface +type ApiAppPatchesHandlerPostPostRequest struct { + ctx _context.Context + ApiService *DefaultApiService + patchesRequest *PatchesRequest +} + +func (r ApiAppPatchesHandlerPostPostRequest) PatchesRequest(patchesRequest PatchesRequest) ApiAppPatchesHandlerPostPostRequest { + r.patchesRequest = &patchesRequest + return r +} + +func (r ApiAppPatchesHandlerPostPostRequest) Execute() (PatchesResponse, *_nethttp.Response, error) { + return r.ApiService.AppPatchesHandlerPostPostExecute(r) } /* -AppPatchesHandlerPostPost Method for AppPatchesHandlerPostPost -List of applicable errata to a package list. + * AppPatchesHandlerPostPost Method for AppPatchesHandlerPostPost + * List of applicable errata to a package list. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param optional nil or *AppPatchesHandlerPostPostOpts - Optional Parameters: - * @param "PatchesRequest" (optional.Interface of PatchesRequest) - -@return PatchesResponse -*/ -func (a *DefaultApiService) AppPatchesHandlerPostPost(ctx _context.Context, localVarOptionals *AppPatchesHandlerPostPostOpts) (PatchesResponse, *_nethttp.Response, error) { + * @return ApiAppPatchesHandlerPostPostRequest + */ +func (a *DefaultApiService) AppPatchesHandlerPostPost(ctx _context.Context) ApiAppPatchesHandlerPostPostRequest { + return ApiAppPatchesHandlerPostPostRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return PatchesResponse + */ +func (a *DefaultApiService) AppPatchesHandlerPostPostExecute(r ApiAppPatchesHandlerPostPostRequest) (PatchesResponse, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPost localVarPostBody interface{} @@ -772,8 +1012,13 @@ func (a *DefaultApiService) AppPatchesHandlerPostPost(ctx _context.Context, loca localVarReturnValue PatchesResponse ) - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/v1/patches" + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.AppPatchesHandlerPostPost") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/patches" + localVarHeaderParams := make(map[string]string) localVarQueryParams := _neturl.Values{} localVarFormParams := _neturl.Values{} @@ -796,26 +1041,20 @@ func (a *DefaultApiService) AppPatchesHandlerPostPost(ctx _context.Context, loca localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - if localVarOptionals != nil && localVarOptionals.PatchesRequest.IsSet() { - localVarOptionalPatchesRequest, localVarOptionalPatchesRequestok := localVarOptionals.PatchesRequest.Value().(PatchesRequest) - if !localVarOptionalPatchesRequestok { - return localVarReturnValue, nil, reportError("patchesRequest should be PatchesRequest") - } - localVarPostBody = &localVarOptionalPatchesRequest - } - - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + localVarPostBody = r.patchesRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) if err != nil { return localVarReturnValue, nil, err } - localVarHTTPResponse, err := a.client.callAPI(r) + localVarHTTPResponse, err := a.client.callAPI(req) if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, localVarHTTPResponse, err } localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -840,14 +1079,37 @@ func (a *DefaultApiService) AppPatchesHandlerPostPost(ctx _context.Context, loca return localVarReturnValue, localVarHTTPResponse, nil } +type ApiAppPkgtreeHandlerGetGetRequest struct { + ctx _context.Context + ApiService *DefaultApiService + packageName string +} + + +func (r ApiAppPkgtreeHandlerGetGetRequest) Execute() (PkgtreeResponse, *_nethttp.Response, error) { + return r.ApiService.AppPkgtreeHandlerGetGetExecute(r) +} + /* -AppPkgtreeHandlerGetGet Method for AppPkgtreeHandlerGetGet -Get package NEVRAs tree for a single package name. + * AppPkgtreeHandlerGetGet Method for AppPkgtreeHandlerGetGet + * Get package NEVRAs tree for a single package name. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param packageName Package name -@return PkgtreeResponse -*/ -func (a *DefaultApiService) AppPkgtreeHandlerGetGet(ctx _context.Context, packageName string) (PkgtreeResponse, *_nethttp.Response, error) { + * @return ApiAppPkgtreeHandlerGetGetRequest + */ +func (a *DefaultApiService) AppPkgtreeHandlerGetGet(ctx _context.Context, packageName string) ApiAppPkgtreeHandlerGetGetRequest { + return ApiAppPkgtreeHandlerGetGetRequest{ + ApiService: a, + ctx: ctx, + packageName: packageName, + } +} + +/* + * Execute executes the request + * @return PkgtreeResponse + */ +func (a *DefaultApiService) AppPkgtreeHandlerGetGetExecute(r ApiAppPkgtreeHandlerGetGetRequest) (PkgtreeResponse, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet localVarPostBody interface{} @@ -857,9 +1119,13 @@ func (a *DefaultApiService) AppPkgtreeHandlerGetGet(ctx _context.Context, packag localVarReturnValue PkgtreeResponse ) - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/v1/pkgtree/{package_name}" - localVarPath = strings.Replace(localVarPath, "{"+"package_name"+"}", _neturl.QueryEscape(parameterToString(packageName, "")) , -1) + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.AppPkgtreeHandlerGetGet") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/pkgtree/{package_name}" + localVarPath = strings.Replace(localVarPath, "{"+"package_name"+"}", _neturl.PathEscape(parameterToString(r.packageName, "")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := _neturl.Values{} @@ -882,18 +1148,19 @@ func (a *DefaultApiService) AppPkgtreeHandlerGetGet(ctx _context.Context, packag if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) if err != nil { return localVarReturnValue, nil, err } - localVarHTTPResponse, err := a.client.callAPI(r) + localVarHTTPResponse, err := a.client.callAPI(req) if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, localVarHTTPResponse, err } localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -918,20 +1185,39 @@ func (a *DefaultApiService) AppPkgtreeHandlerGetGet(ctx _context.Context, packag return localVarReturnValue, localVarHTTPResponse, nil } -// AppPkgtreeHandlerPostPostOpts Optional parameters for the method 'AppPkgtreeHandlerPostPost' -type AppPkgtreeHandlerPostPostOpts struct { - PkgtreeRequest optional.Interface +type ApiAppPkgtreeHandlerPostPostRequest struct { + ctx _context.Context + ApiService *DefaultApiService + pkgtreeRequest *PkgtreeRequest +} + +func (r ApiAppPkgtreeHandlerPostPostRequest) PkgtreeRequest(pkgtreeRequest PkgtreeRequest) ApiAppPkgtreeHandlerPostPostRequest { + r.pkgtreeRequest = &pkgtreeRequest + return r +} + +func (r ApiAppPkgtreeHandlerPostPostRequest) Execute() (PkgtreeResponse, *_nethttp.Response, error) { + return r.ApiService.AppPkgtreeHandlerPostPostExecute(r) } /* -AppPkgtreeHandlerPostPost Method for AppPkgtreeHandlerPostPost -Get package NEVRAs trees for package names. \"package_name_list\" must be a list of package names. + * AppPkgtreeHandlerPostPost Method for AppPkgtreeHandlerPostPost + * Get package NEVRAs trees for package names. "package_name_list" must be a list of package names. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param optional nil or *AppPkgtreeHandlerPostPostOpts - Optional Parameters: - * @param "PkgtreeRequest" (optional.Interface of PkgtreeRequest) - -@return PkgtreeResponse -*/ -func (a *DefaultApiService) AppPkgtreeHandlerPostPost(ctx _context.Context, localVarOptionals *AppPkgtreeHandlerPostPostOpts) (PkgtreeResponse, *_nethttp.Response, error) { + * @return ApiAppPkgtreeHandlerPostPostRequest + */ +func (a *DefaultApiService) AppPkgtreeHandlerPostPost(ctx _context.Context) ApiAppPkgtreeHandlerPostPostRequest { + return ApiAppPkgtreeHandlerPostPostRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return PkgtreeResponse + */ +func (a *DefaultApiService) AppPkgtreeHandlerPostPostExecute(r ApiAppPkgtreeHandlerPostPostRequest) (PkgtreeResponse, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPost localVarPostBody interface{} @@ -941,8 +1227,13 @@ func (a *DefaultApiService) AppPkgtreeHandlerPostPost(ctx _context.Context, loca localVarReturnValue PkgtreeResponse ) - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/v1/pkgtree" + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.AppPkgtreeHandlerPostPost") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/pkgtree" + localVarHeaderParams := make(map[string]string) localVarQueryParams := _neturl.Values{} localVarFormParams := _neturl.Values{} @@ -965,26 +1256,20 @@ func (a *DefaultApiService) AppPkgtreeHandlerPostPost(ctx _context.Context, loca localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - if localVarOptionals != nil && localVarOptionals.PkgtreeRequest.IsSet() { - localVarOptionalPkgtreeRequest, localVarOptionalPkgtreeRequestok := localVarOptionals.PkgtreeRequest.Value().(PkgtreeRequest) - if !localVarOptionalPkgtreeRequestok { - return localVarReturnValue, nil, reportError("pkgtreeRequest should be PkgtreeRequest") - } - localVarPostBody = &localVarOptionalPkgtreeRequest - } - - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + localVarPostBody = r.pkgtreeRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) if err != nil { return localVarReturnValue, nil, err } - localVarHTTPResponse, err := a.client.callAPI(r) + localVarHTTPResponse, err := a.client.callAPI(req) if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, localVarHTTPResponse, err } localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -1009,11 +1294,32 @@ func (a *DefaultApiService) AppPkgtreeHandlerPostPost(ctx _context.Context, loca return localVarReturnValue, localVarHTTPResponse, nil } +type ApiAppReadyHandlerGetRequest struct { + ctx _context.Context + ApiService *DefaultApiService +} + + +func (r ApiAppReadyHandlerGetRequest) Execute() (*_nethttp.Response, error) { + return r.ApiService.AppReadyHandlerGetExecute(r) +} + /* -AppReadyHandlerGet Return API readiness status + * AppReadyHandlerGet Return API readiness status * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). -*/ -func (a *DefaultApiService) AppReadyHandlerGet(ctx _context.Context) (*_nethttp.Response, error) { + * @return ApiAppReadyHandlerGetRequest + */ +func (a *DefaultApiService) AppReadyHandlerGet(ctx _context.Context) ApiAppReadyHandlerGetRequest { + return ApiAppReadyHandlerGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + */ +func (a *DefaultApiService) AppReadyHandlerGetExecute(r ApiAppReadyHandlerGetRequest) (*_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet localVarPostBody interface{} @@ -1022,8 +1328,13 @@ func (a *DefaultApiService) AppReadyHandlerGet(ctx _context.Context) (*_nethttp. localVarFileBytes []byte ) - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/v1/monitoring/ready" + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.AppReadyHandlerGet") + if err != nil { + return nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/monitoring/ready" + localVarHeaderParams := make(map[string]string) localVarQueryParams := _neturl.Values{} localVarFormParams := _neturl.Values{} @@ -1045,18 +1356,19 @@ func (a *DefaultApiService) AppReadyHandlerGet(ctx _context.Context) (*_nethttp. if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) if err != nil { return nil, err } - localVarHTTPResponse, err := a.client.callAPI(r) + localVarHTTPResponse, err := a.client.callAPI(req) if err != nil || localVarHTTPResponse == nil { return localVarHTTPResponse, err } localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarHTTPResponse, err } @@ -1072,14 +1384,37 @@ func (a *DefaultApiService) AppReadyHandlerGet(ctx _context.Context) (*_nethttp. return localVarHTTPResponse, nil } +type ApiAppReposHandlerGetGetRequest struct { + ctx _context.Context + ApiService *DefaultApiService + repo string +} + + +func (r ApiAppReposHandlerGetGetRequest) Execute() (ReposResponse, *_nethttp.Response, error) { + return r.ApiService.AppReposHandlerGetGetExecute(r) +} + /* -AppReposHandlerGetGet Method for AppReposHandlerGetGet -Get details about a repository or repository-expression. It is allowed to use POSIX regular expression as a pattern for repository names. + * AppReposHandlerGetGet Method for AppReposHandlerGetGet + * Get details about a repository or repository-expression. It is allowed to use POSIX regular expression as a pattern for repository names. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param repo Repository name or POSIX regular expression pattern -@return ReposResponse -*/ -func (a *DefaultApiService) AppReposHandlerGetGet(ctx _context.Context, repo string) (ReposResponse, *_nethttp.Response, error) { + * @return ApiAppReposHandlerGetGetRequest + */ +func (a *DefaultApiService) AppReposHandlerGetGet(ctx _context.Context, repo string) ApiAppReposHandlerGetGetRequest { + return ApiAppReposHandlerGetGetRequest{ + ApiService: a, + ctx: ctx, + repo: repo, + } +} + +/* + * Execute executes the request + * @return ReposResponse + */ +func (a *DefaultApiService) AppReposHandlerGetGetExecute(r ApiAppReposHandlerGetGetRequest) (ReposResponse, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet localVarPostBody interface{} @@ -1089,9 +1424,13 @@ func (a *DefaultApiService) AppReposHandlerGetGet(ctx _context.Context, repo str localVarReturnValue ReposResponse ) - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/v1/repos/{repo}" - localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", _neturl.QueryEscape(parameterToString(repo, "")) , -1) + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.AppReposHandlerGetGet") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/repos/{repo}" + localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", _neturl.PathEscape(parameterToString(r.repo, "")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := _neturl.Values{} @@ -1114,18 +1453,19 @@ func (a *DefaultApiService) AppReposHandlerGetGet(ctx _context.Context, repo str if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) if err != nil { return localVarReturnValue, nil, err } - localVarHTTPResponse, err := a.client.callAPI(r) + localVarHTTPResponse, err := a.client.callAPI(req) if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, localVarHTTPResponse, err } localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -1150,20 +1490,39 @@ func (a *DefaultApiService) AppReposHandlerGetGet(ctx _context.Context, repo str return localVarReturnValue, localVarHTTPResponse, nil } -// AppReposHandlerPostPostOpts Optional parameters for the method 'AppReposHandlerPostPost' -type AppReposHandlerPostPostOpts struct { - ReposRequest optional.Interface +type ApiAppReposHandlerPostPostRequest struct { + ctx _context.Context + ApiService *DefaultApiService + reposRequest *ReposRequest +} + +func (r ApiAppReposHandlerPostPostRequest) ReposRequest(reposRequest ReposRequest) ApiAppReposHandlerPostPostRequest { + r.reposRequest = &reposRequest + return r +} + +func (r ApiAppReposHandlerPostPostRequest) Execute() (ReposResponse, *_nethttp.Response, error) { + return r.ApiService.AppReposHandlerPostPostExecute(r) } /* -AppReposHandlerPostPost Method for AppReposHandlerPostPost -Get details about list of repositories. \"repository_list\" can be either a list of repository names, OR a single POSIX regular expression. + * AppReposHandlerPostPost Method for AppReposHandlerPostPost + * Get details about list of repositories. "repository_list" can be either a list of repository names, OR a single POSIX regular expression. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param optional nil or *AppReposHandlerPostPostOpts - Optional Parameters: - * @param "ReposRequest" (optional.Interface of ReposRequest) - -@return ReposResponse -*/ -func (a *DefaultApiService) AppReposHandlerPostPost(ctx _context.Context, localVarOptionals *AppReposHandlerPostPostOpts) (ReposResponse, *_nethttp.Response, error) { + * @return ApiAppReposHandlerPostPostRequest + */ +func (a *DefaultApiService) AppReposHandlerPostPost(ctx _context.Context) ApiAppReposHandlerPostPostRequest { + return ApiAppReposHandlerPostPostRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return ReposResponse + */ +func (a *DefaultApiService) AppReposHandlerPostPostExecute(r ApiAppReposHandlerPostPostRequest) (ReposResponse, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPost localVarPostBody interface{} @@ -1173,8 +1532,13 @@ func (a *DefaultApiService) AppReposHandlerPostPost(ctx _context.Context, localV localVarReturnValue ReposResponse ) - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/v1/repos" + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.AppReposHandlerPostPost") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/repos" + localVarHeaderParams := make(map[string]string) localVarQueryParams := _neturl.Values{} localVarFormParams := _neturl.Values{} @@ -1197,26 +1561,20 @@ func (a *DefaultApiService) AppReposHandlerPostPost(ctx _context.Context, localV localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - if localVarOptionals != nil && localVarOptionals.ReposRequest.IsSet() { - localVarOptionalReposRequest, localVarOptionalReposRequestok := localVarOptionals.ReposRequest.Value().(ReposRequest) - if !localVarOptionalReposRequestok { - return localVarReturnValue, nil, reportError("reposRequest should be ReposRequest") - } - localVarPostBody = &localVarOptionalReposRequest - } - - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + localVarPostBody = r.reposRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) if err != nil { return localVarReturnValue, nil, err } - localVarHTTPResponse, err := a.client.callAPI(r) + localVarHTTPResponse, err := a.client.callAPI(req) if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, localVarHTTPResponse, err } localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -1241,26 +1599,53 @@ func (a *DefaultApiService) AppReposHandlerPostPost(ctx _context.Context, localV return localVarReturnValue, localVarHTTPResponse, nil } +type ApiAppUpdatesHandlerV3GetGetRequest struct { + ctx _context.Context + ApiService *DefaultApiService + nevra string +} + + +func (r ApiAppUpdatesHandlerV3GetGetRequest) Execute() (UpdatesV2Response, *_nethttp.Response, error) { + return r.ApiService.AppUpdatesHandlerV3GetGetExecute(r) +} + /* -AppUpdatesHandlerGetGet Method for AppUpdatesHandlerGetGet -List security updates for single package NEVRA + * AppUpdatesHandlerV3GetGet Method for AppUpdatesHandlerV3GetGet + * List all updates for single package NEVRA * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param nevra Package NEVRA -@return UpdatesResponse -*/ -func (a *DefaultApiService) AppUpdatesHandlerGetGet(ctx _context.Context, nevra string) (UpdatesResponse, *_nethttp.Response, error) { + * @return ApiAppUpdatesHandlerV3GetGetRequest + */ +func (a *DefaultApiService) AppUpdatesHandlerV3GetGet(ctx _context.Context, nevra string) ApiAppUpdatesHandlerV3GetGetRequest { + return ApiAppUpdatesHandlerV3GetGetRequest{ + ApiService: a, + ctx: ctx, + nevra: nevra, + } +} + +/* + * Execute executes the request + * @return UpdatesV2Response + */ +func (a *DefaultApiService) AppUpdatesHandlerV3GetGetExecute(r ApiAppUpdatesHandlerV3GetGetRequest) (UpdatesV2Response, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet localVarPostBody interface{} localVarFormFileName string localVarFileName string localVarFileBytes []byte - localVarReturnValue UpdatesResponse + localVarReturnValue UpdatesV2Response ) - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/v1/updates/{nevra}" - localVarPath = strings.Replace(localVarPath, "{"+"nevra"+"}", _neturl.QueryEscape(parameterToString(nevra, "")) , -1) + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.AppUpdatesHandlerV3GetGet") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/updates/{nevra}" + localVarPath = strings.Replace(localVarPath, "{"+"nevra"+"}", _neturl.PathEscape(parameterToString(r.nevra, "")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := _neturl.Values{} @@ -1283,18 +1668,19 @@ func (a *DefaultApiService) AppUpdatesHandlerGetGet(ctx _context.Context, nevra if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) if err != nil { return localVarReturnValue, nil, err } - localVarHTTPResponse, err := a.client.callAPI(r) + localVarHTTPResponse, err := a.client.callAPI(req) if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, localVarHTTPResponse, err } localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -1319,107 +1705,41 @@ func (a *DefaultApiService) AppUpdatesHandlerGetGet(ctx _context.Context, nevra return localVarReturnValue, localVarHTTPResponse, nil } -// AppUpdatesHandlerPostPostOpts Optional parameters for the method 'AppUpdatesHandlerPostPost' -type AppUpdatesHandlerPostPostOpts struct { - UpdatesRequest optional.Interface +type ApiAppUpdatesHandlerV3PostPostRequest struct { + ctx _context.Context + ApiService *DefaultApiService + updatesV3Request *UpdatesV3Request +} + +func (r ApiAppUpdatesHandlerV3PostPostRequest) UpdatesV3Request(updatesV3Request UpdatesV3Request) ApiAppUpdatesHandlerV3PostPostRequest { + r.updatesV3Request = &updatesV3Request + return r +} + +func (r ApiAppUpdatesHandlerV3PostPostRequest) Execute() (UpdatesV2Response, *_nethttp.Response, error) { + return r.ApiService.AppUpdatesHandlerV3PostPostExecute(r) } /* -AppUpdatesHandlerPostPost Method for AppUpdatesHandlerPostPost -List security updates for list of package NEVRAs + * AppUpdatesHandlerV3PostPost Method for AppUpdatesHandlerV3PostPost + * List all updates for list of package NEVRAs * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param optional nil or *AppUpdatesHandlerPostPostOpts - Optional Parameters: - * @param "UpdatesRequest" (optional.Interface of UpdatesRequest) - Input json -@return UpdatesResponse -*/ -func (a *DefaultApiService) AppUpdatesHandlerPostPost(ctx _context.Context, localVarOptionals *AppUpdatesHandlerPostPostOpts) (UpdatesResponse, *_nethttp.Response, error) { - var ( - localVarHTTPMethod = _nethttp.MethodPost - localVarPostBody interface{} - localVarFormFileName string - localVarFileName string - localVarFileBytes []byte - localVarReturnValue UpdatesResponse - ) - - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/v1/updates" - localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - if localVarOptionals != nil && localVarOptionals.UpdatesRequest.IsSet() { - localVarOptionalUpdatesRequest, localVarOptionalUpdatesRequestok := localVarOptionals.UpdatesRequest.Value().(UpdatesRequest) - if !localVarOptionalUpdatesRequestok { - return localVarReturnValue, nil, reportError("updatesRequest should be UpdatesRequest") - } - localVarPostBody = &localVarOptionalUpdatesRequest - } - - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(r) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr + * @return ApiAppUpdatesHandlerV3PostPostRequest + */ +func (a *DefaultApiService) AppUpdatesHandlerV3PostPost(ctx _context.Context) ApiAppUpdatesHandlerV3PostPostRequest { + return ApiAppUpdatesHandlerV3PostPostRequest{ + ApiService: a, + ctx: ctx, } - - return localVarReturnValue, localVarHTTPResponse, nil } /* -AppUpdatesHandlerV2GetGet Method for AppUpdatesHandlerV2GetGet -List security updates for single package NEVRA - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param nevra Package NEVRA -@return UpdatesV2Response -*/ -func (a *DefaultApiService) AppUpdatesHandlerV2GetGet(ctx _context.Context, nevra string) (UpdatesV2Response, *_nethttp.Response, error) { + * Execute executes the request + * @return UpdatesV2Response + */ +func (a *DefaultApiService) AppUpdatesHandlerV3PostPostExecute(r ApiAppUpdatesHandlerV3PostPostRequest) (UpdatesV2Response, *_nethttp.Response, error) { var ( - localVarHTTPMethod = _nethttp.MethodGet + localVarHTTPMethod = _nethttp.MethodPost localVarPostBody interface{} localVarFormFileName string localVarFileName string @@ -1427,92 +1747,13 @@ func (a *DefaultApiService) AppUpdatesHandlerV2GetGet(ctx _context.Context, nevr localVarReturnValue UpdatesV2Response ) - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/v2/updates/{nevra}" - localVarPath = strings.Replace(localVarPath, "{"+"nevra"+"}", _neturl.QueryEscape(parameterToString(nevra, "")) , -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(r) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.AppUpdatesHandlerV3PostPost") if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} } - return localVarReturnValue, localVarHTTPResponse, nil -} - -// AppUpdatesHandlerV2PostPostOpts Optional parameters for the method 'AppUpdatesHandlerV2PostPost' -type AppUpdatesHandlerV2PostPostOpts struct { - UpdatesRequest optional.Interface -} + localVarPath := localBasePath + "/updates" -/* -AppUpdatesHandlerV2PostPost Method for AppUpdatesHandlerV2PostPost -List security updates for list of package NEVRAs - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param optional nil or *AppUpdatesHandlerV2PostPostOpts - Optional Parameters: - * @param "UpdatesRequest" (optional.Interface of UpdatesRequest) - Input json -@return UpdatesV2Response -*/ -func (a *DefaultApiService) AppUpdatesHandlerV2PostPost(ctx _context.Context, localVarOptionals *AppUpdatesHandlerV2PostPostOpts) (UpdatesV2Response, *_nethttp.Response, error) { - var ( - localVarHTTPMethod = _nethttp.MethodPost - localVarPostBody interface{} - localVarFormFileName string - localVarFileName string - localVarFileBytes []byte - localVarReturnValue UpdatesV2Response - ) - - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/v2/updates" localVarHeaderParams := make(map[string]string) localVarQueryParams := _neturl.Values{} localVarFormParams := _neturl.Values{} @@ -1535,26 +1776,20 @@ func (a *DefaultApiService) AppUpdatesHandlerV2PostPost(ctx _context.Context, lo localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - if localVarOptionals != nil && localVarOptionals.UpdatesRequest.IsSet() { - localVarOptionalUpdatesRequest, localVarOptionalUpdatesRequestok := localVarOptionals.UpdatesRequest.Value().(UpdatesRequest) - if !localVarOptionalUpdatesRequestok { - return localVarReturnValue, nil, reportError("updatesRequest should be UpdatesRequest") - } - localVarPostBody = &localVarOptionalUpdatesRequest - } - - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + localVarPostBody = r.updatesV3Request + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) if err != nil { return localVarReturnValue, nil, err } - localVarHTTPResponse, err := a.client.callAPI(r) + localVarHTTPResponse, err := a.client.callAPI(req) if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, localVarHTTPResponse, err } localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -1579,181 +1814,33 @@ func (a *DefaultApiService) AppUpdatesHandlerV2PostPost(ctx _context.Context, lo return localVarReturnValue, localVarHTTPResponse, nil } -/* -AppUpdatesHandlerV3GetGet Method for AppUpdatesHandlerV3GetGet -List all updates for single package NEVRA - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param nevra Package NEVRA -@return UpdatesV2Response -*/ -func (a *DefaultApiService) AppUpdatesHandlerV3GetGet(ctx _context.Context, nevra string) (UpdatesV2Response, *_nethttp.Response, error) { - var ( - localVarHTTPMethod = _nethttp.MethodGet - localVarPostBody interface{} - localVarFormFileName string - localVarFileName string - localVarFileBytes []byte - localVarReturnValue UpdatesV2Response - ) - - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/v3/updates/{nevra}" - localVarPath = strings.Replace(localVarPath, "{"+"nevra"+"}", _neturl.QueryEscape(parameterToString(nevra, "")) , -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(r) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil +type ApiAppVersionHandlerGetRequest struct { + ctx _context.Context + ApiService *DefaultApiService } -// AppUpdatesHandlerV3PostPostOpts Optional parameters for the method 'AppUpdatesHandlerV3PostPost' -type AppUpdatesHandlerV3PostPostOpts struct { - UpdatesV3Request optional.Interface + +func (r ApiAppVersionHandlerGetRequest) Execute() (*_nethttp.Response, error) { + return r.ApiService.AppVersionHandlerGetExecute(r) } /* -AppUpdatesHandlerV3PostPost Method for AppUpdatesHandlerV3PostPost -List all updates for list of package NEVRAs + * AppVersionHandlerGet Method for AppVersionHandlerGet + * Get version of application * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param optional nil or *AppUpdatesHandlerV3PostPostOpts - Optional Parameters: - * @param "UpdatesV3Request" (optional.Interface of UpdatesV3Request) - Input json -@return UpdatesV2Response -*/ -func (a *DefaultApiService) AppUpdatesHandlerV3PostPost(ctx _context.Context, localVarOptionals *AppUpdatesHandlerV3PostPostOpts) (UpdatesV2Response, *_nethttp.Response, error) { - var ( - localVarHTTPMethod = _nethttp.MethodPost - localVarPostBody interface{} - localVarFormFileName string - localVarFileName string - localVarFileBytes []byte - localVarReturnValue UpdatesV2Response - ) - - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/v3/updates" - localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - if localVarOptionals != nil && localVarOptionals.UpdatesV3Request.IsSet() { - localVarOptionalUpdatesV3Request, localVarOptionalUpdatesV3Requestok := localVarOptionals.UpdatesV3Request.Value().(UpdatesV3Request) - if !localVarOptionalUpdatesV3Requestok { - return localVarReturnValue, nil, reportError("updatesV3Request should be UpdatesV3Request") - } - localVarPostBody = &localVarOptionalUpdatesV3Request - } - - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(r) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr + * @return ApiAppVersionHandlerGetRequest + */ +func (a *DefaultApiService) AppVersionHandlerGet(ctx _context.Context) ApiAppVersionHandlerGetRequest { + return ApiAppVersionHandlerGetRequest{ + ApiService: a, + ctx: ctx, } - - return localVarReturnValue, localVarHTTPResponse, nil } /* -AppVersionHandlerGet Method for AppVersionHandlerGet -Get version of application - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). -*/ -func (a *DefaultApiService) AppVersionHandlerGet(ctx _context.Context) (*_nethttp.Response, error) { + * Execute executes the request + */ +func (a *DefaultApiService) AppVersionHandlerGetExecute(r ApiAppVersionHandlerGetRequest) (*_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet localVarPostBody interface{} @@ -1762,8 +1849,13 @@ func (a *DefaultApiService) AppVersionHandlerGet(ctx _context.Context) (*_nethtt localVarFileBytes []byte ) - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/v1/version" + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.AppVersionHandlerGet") + if err != nil { + return nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/version" + localVarHeaderParams := make(map[string]string) localVarQueryParams := _neturl.Values{} localVarFormParams := _neturl.Values{} @@ -1785,18 +1877,19 @@ func (a *DefaultApiService) AppVersionHandlerGet(ctx _context.Context) (*_nethtt if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) if err != nil { return nil, err } - localVarHTTPResponse, err := a.client.callAPI(r) + localVarHTTPResponse, err := a.client.callAPI(req) if err != nil || localVarHTTPResponse == nil { return localVarHTTPResponse, err } localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarHTTPResponse, err } @@ -1812,14 +1905,37 @@ func (a *DefaultApiService) AppVersionHandlerGet(ctx _context.Context) (*_nethtt return localVarHTTPResponse, nil } +type ApiAppVulnerabilitiesHandlerGetGetRequest struct { + ctx _context.Context + ApiService *DefaultApiService + nevra string +} + + +func (r ApiAppVulnerabilitiesHandlerGetGetRequest) Execute() (VulnerabilitiesResponse, *_nethttp.Response, error) { + return r.ApiService.AppVulnerabilitiesHandlerGetGetExecute(r) +} + /* -AppVulnerabilitiesHandlerGetGet Method for AppVulnerabilitiesHandlerGetGet -List of applicable CVEs for a single package NEVRA + * AppVulnerabilitiesHandlerGetGet Method for AppVulnerabilitiesHandlerGetGet + * List of applicable CVEs for a single package NEVRA * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param nevra Package NEVRA -@return VulnerabilitiesResponse -*/ -func (a *DefaultApiService) AppVulnerabilitiesHandlerGetGet(ctx _context.Context, nevra string) (VulnerabilitiesResponse, *_nethttp.Response, error) { + * @return ApiAppVulnerabilitiesHandlerGetGetRequest + */ +func (a *DefaultApiService) AppVulnerabilitiesHandlerGetGet(ctx _context.Context, nevra string) ApiAppVulnerabilitiesHandlerGetGetRequest { + return ApiAppVulnerabilitiesHandlerGetGetRequest{ + ApiService: a, + ctx: ctx, + nevra: nevra, + } +} + +/* + * Execute executes the request + * @return VulnerabilitiesResponse + */ +func (a *DefaultApiService) AppVulnerabilitiesHandlerGetGetExecute(r ApiAppVulnerabilitiesHandlerGetGetRequest) (VulnerabilitiesResponse, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet localVarPostBody interface{} @@ -1829,9 +1945,13 @@ func (a *DefaultApiService) AppVulnerabilitiesHandlerGetGet(ctx _context.Context localVarReturnValue VulnerabilitiesResponse ) - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/v1/vulnerabilities/{nevra}" - localVarPath = strings.Replace(localVarPath, "{"+"nevra"+"}", _neturl.QueryEscape(parameterToString(nevra, "")) , -1) + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.AppVulnerabilitiesHandlerGetGet") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/vulnerabilities/{nevra}" + localVarPath = strings.Replace(localVarPath, "{"+"nevra"+"}", _neturl.PathEscape(parameterToString(r.nevra, "")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := _neturl.Values{} @@ -1854,18 +1974,19 @@ func (a *DefaultApiService) AppVulnerabilitiesHandlerGetGet(ctx _context.Context if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) if err != nil { return localVarReturnValue, nil, err } - localVarHTTPResponse, err := a.client.callAPI(r) + localVarHTTPResponse, err := a.client.callAPI(req) if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, localVarHTTPResponse, err } localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -1890,20 +2011,39 @@ func (a *DefaultApiService) AppVulnerabilitiesHandlerGetGet(ctx _context.Context return localVarReturnValue, localVarHTTPResponse, nil } -// AppVulnerabilitiesHandlerPostPostOpts Optional parameters for the method 'AppVulnerabilitiesHandlerPostPost' -type AppVulnerabilitiesHandlerPostPostOpts struct { - VulnerabilitiesRequest optional.Interface +type ApiAppVulnerabilitiesHandlerPostPostRequest struct { + ctx _context.Context + ApiService *DefaultApiService + vulnerabilitiesRequest *VulnerabilitiesRequest +} + +func (r ApiAppVulnerabilitiesHandlerPostPostRequest) VulnerabilitiesRequest(vulnerabilitiesRequest VulnerabilitiesRequest) ApiAppVulnerabilitiesHandlerPostPostRequest { + r.vulnerabilitiesRequest = &vulnerabilitiesRequest + return r +} + +func (r ApiAppVulnerabilitiesHandlerPostPostRequest) Execute() (VulnerabilitiesResponse, *_nethttp.Response, error) { + return r.ApiService.AppVulnerabilitiesHandlerPostPostExecute(r) } /* -AppVulnerabilitiesHandlerPostPost Method for AppVulnerabilitiesHandlerPostPost -List of applicable CVEs to a package list. + * AppVulnerabilitiesHandlerPostPost Method for AppVulnerabilitiesHandlerPostPost + * List of applicable CVEs to a package list. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param optional nil or *AppVulnerabilitiesHandlerPostPostOpts - Optional Parameters: - * @param "VulnerabilitiesRequest" (optional.Interface of VulnerabilitiesRequest) - -@return VulnerabilitiesResponse -*/ -func (a *DefaultApiService) AppVulnerabilitiesHandlerPostPost(ctx _context.Context, localVarOptionals *AppVulnerabilitiesHandlerPostPostOpts) (VulnerabilitiesResponse, *_nethttp.Response, error) { + * @return ApiAppVulnerabilitiesHandlerPostPostRequest + */ +func (a *DefaultApiService) AppVulnerabilitiesHandlerPostPost(ctx _context.Context) ApiAppVulnerabilitiesHandlerPostPostRequest { + return ApiAppVulnerabilitiesHandlerPostPostRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return VulnerabilitiesResponse + */ +func (a *DefaultApiService) AppVulnerabilitiesHandlerPostPostExecute(r ApiAppVulnerabilitiesHandlerPostPostRequest) (VulnerabilitiesResponse, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPost localVarPostBody interface{} @@ -1913,8 +2053,13 @@ func (a *DefaultApiService) AppVulnerabilitiesHandlerPostPost(ctx _context.Conte localVarReturnValue VulnerabilitiesResponse ) - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/v1/vulnerabilities" + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.AppVulnerabilitiesHandlerPostPost") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/vulnerabilities" + localVarHeaderParams := make(map[string]string) localVarQueryParams := _neturl.Values{} localVarFormParams := _neturl.Values{} @@ -1937,26 +2082,20 @@ func (a *DefaultApiService) AppVulnerabilitiesHandlerPostPost(ctx _context.Conte localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - if localVarOptionals != nil && localVarOptionals.VulnerabilitiesRequest.IsSet() { - localVarOptionalVulnerabilitiesRequest, localVarOptionalVulnerabilitiesRequestok := localVarOptionals.VulnerabilitiesRequest.Value().(VulnerabilitiesRequest) - if !localVarOptionalVulnerabilitiesRequestok { - return localVarReturnValue, nil, reportError("vulnerabilitiesRequest should be VulnerabilitiesRequest") - } - localVarPostBody = &localVarOptionalVulnerabilitiesRequest - } - - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + localVarPostBody = r.vulnerabilitiesRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) if err != nil { return localVarReturnValue, nil, err } - localVarHTTPResponse, err := a.client.callAPI(r) + localVarHTTPResponse, err := a.client.callAPI(req) if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, localVarHTTPResponse, err } localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } diff --git a/vmaas/api_experimental.go b/vmaas/api_experimental.go index 8140bb1..c53fd9c 100644 --- a/vmaas/api_experimental.go +++ b/vmaas/api_experimental.go @@ -3,19 +3,20 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.20.4 - * Generated by: OpenAPI Generator (https://openapi-generator.tech) + * API version: 2.5.0 */ +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + package vmaas import ( + "bytes" _context "context" _ioutil "io/ioutil" _nethttp "net/http" _neturl "net/url" "strings" - "github.com/antihax/optional" ) // Linger please @@ -26,26 +27,53 @@ var ( // ExperimentalApiService ExperimentalApi service type ExperimentalApiService service +type ApiAppRPMPkgNamesHandlerGetGetRequest struct { + ctx _context.Context + ApiService *ExperimentalApiService + rpm string +} + + +func (r ApiAppRPMPkgNamesHandlerGetGetRequest) Execute() (RPMPkgNamesResponse, *_nethttp.Response, error) { + return r.ApiService.AppRPMPkgNamesHandlerGetGetExecute(r) +} + /* -AppRPMPkgNamesHandlerGetGet Method for AppRPMPkgNamesHandlerGetGet -List of content sets by given rpm name. + * AppRPMPkgNamesHandlerGetGet Method for AppRPMPkgNamesHandlerGetGet + * List of content sets by given rpm name. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param rpm Package name -@return RpmPkgNamesResponse -*/ -func (a *ExperimentalApiService) AppRPMPkgNamesHandlerGetGet(ctx _context.Context, rpm string) (RpmPkgNamesResponse, *_nethttp.Response, error) { + * @return ApiAppRPMPkgNamesHandlerGetGetRequest + */ +func (a *ExperimentalApiService) AppRPMPkgNamesHandlerGetGet(ctx _context.Context, rpm string) ApiAppRPMPkgNamesHandlerGetGetRequest { + return ApiAppRPMPkgNamesHandlerGetGetRequest{ + ApiService: a, + ctx: ctx, + rpm: rpm, + } +} + +/* + * Execute executes the request + * @return RPMPkgNamesResponse + */ +func (a *ExperimentalApiService) AppRPMPkgNamesHandlerGetGetExecute(r ApiAppRPMPkgNamesHandlerGetGetRequest) (RPMPkgNamesResponse, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet localVarPostBody interface{} localVarFormFileName string localVarFileName string localVarFileBytes []byte - localVarReturnValue RpmPkgNamesResponse + localVarReturnValue RPMPkgNamesResponse ) - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/v1/package_names/rpms/{rpm}" - localVarPath = strings.Replace(localVarPath, "{"+"rpm"+"}", _neturl.QueryEscape(parameterToString(rpm, "")) , -1) + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExperimentalApiService.AppRPMPkgNamesHandlerGetGet") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/package_names/rpms/{rpm}" + localVarPath = strings.Replace(localVarPath, "{"+"rpm"+"}", _neturl.PathEscape(parameterToString(r.rpm, "")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := _neturl.Values{} @@ -68,18 +96,19 @@ func (a *ExperimentalApiService) AppRPMPkgNamesHandlerGetGet(ctx _context.Contex if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) if err != nil { return localVarReturnValue, nil, err } - localVarHTTPResponse, err := a.client.callAPI(r) + localVarHTTPResponse, err := a.client.callAPI(req) if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, localVarHTTPResponse, err } localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -104,31 +133,55 @@ func (a *ExperimentalApiService) AppRPMPkgNamesHandlerGetGet(ctx _context.Contex return localVarReturnValue, localVarHTTPResponse, nil } -// AppRPMPkgNamesHandlerPostPostOpts Optional parameters for the method 'AppRPMPkgNamesHandlerPostPost' -type AppRPMPkgNamesHandlerPostPostOpts struct { - RpmPkgNamesRequest optional.Interface +type ApiAppRPMPkgNamesHandlerPostPostRequest struct { + ctx _context.Context + ApiService *ExperimentalApiService + rPMPkgNamesRequest *RPMPkgNamesRequest +} + +func (r ApiAppRPMPkgNamesHandlerPostPostRequest) RPMPkgNamesRequest(rPMPkgNamesRequest RPMPkgNamesRequest) ApiAppRPMPkgNamesHandlerPostPostRequest { + r.rPMPkgNamesRequest = &rPMPkgNamesRequest + return r +} + +func (r ApiAppRPMPkgNamesHandlerPostPostRequest) Execute() (RPMPkgNamesResponse, *_nethttp.Response, error) { + return r.ApiService.AppRPMPkgNamesHandlerPostPostExecute(r) } /* -AppRPMPkgNamesHandlerPostPost Method for AppRPMPkgNamesHandlerPostPost -List of content sets by given rpm name and content set. + * AppRPMPkgNamesHandlerPostPost Method for AppRPMPkgNamesHandlerPostPost + * List of content sets by given rpm name and content set. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param optional nil or *AppRPMPkgNamesHandlerPostPostOpts - Optional Parameters: - * @param "RpmPkgNamesRequest" (optional.Interface of RpmPkgNamesRequest) - -@return RpmPkgNamesResponse -*/ -func (a *ExperimentalApiService) AppRPMPkgNamesHandlerPostPost(ctx _context.Context, localVarOptionals *AppRPMPkgNamesHandlerPostPostOpts) (RpmPkgNamesResponse, *_nethttp.Response, error) { + * @return ApiAppRPMPkgNamesHandlerPostPostRequest + */ +func (a *ExperimentalApiService) AppRPMPkgNamesHandlerPostPost(ctx _context.Context) ApiAppRPMPkgNamesHandlerPostPostRequest { + return ApiAppRPMPkgNamesHandlerPostPostRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return RPMPkgNamesResponse + */ +func (a *ExperimentalApiService) AppRPMPkgNamesHandlerPostPostExecute(r ApiAppRPMPkgNamesHandlerPostPostRequest) (RPMPkgNamesResponse, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPost localVarPostBody interface{} localVarFormFileName string localVarFileName string localVarFileBytes []byte - localVarReturnValue RpmPkgNamesResponse + localVarReturnValue RPMPkgNamesResponse ) - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/v1/package_names/rpms" + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExperimentalApiService.AppRPMPkgNamesHandlerPostPost") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/package_names/rpms" + localVarHeaderParams := make(map[string]string) localVarQueryParams := _neturl.Values{} localVarFormParams := _neturl.Values{} @@ -151,26 +204,20 @@ func (a *ExperimentalApiService) AppRPMPkgNamesHandlerPostPost(ctx _context.Cont localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - if localVarOptionals != nil && localVarOptionals.RpmPkgNamesRequest.IsSet() { - localVarOptionalRpmPkgNamesRequest, localVarOptionalRpmPkgNamesRequestok := localVarOptionals.RpmPkgNamesRequest.Value().(RpmPkgNamesRequest) - if !localVarOptionalRpmPkgNamesRequestok { - return localVarReturnValue, nil, reportError("rpmPkgNamesRequest should be RpmPkgNamesRequest") - } - localVarPostBody = &localVarOptionalRpmPkgNamesRequest - } - - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + localVarPostBody = r.rPMPkgNamesRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) if err != nil { return localVarReturnValue, nil, err } - localVarHTTPResponse, err := a.client.callAPI(r) + localVarHTTPResponse, err := a.client.callAPI(req) if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, localVarHTTPResponse, err } localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -195,26 +242,53 @@ func (a *ExperimentalApiService) AppRPMPkgNamesHandlerPostPost(ctx _context.Cont return localVarReturnValue, localVarHTTPResponse, nil } +type ApiAppSRPMPkgNamesHandlerGetGetRequest struct { + ctx _context.Context + ApiService *ExperimentalApiService + srpm string +} + + +func (r ApiAppSRPMPkgNamesHandlerGetGetRequest) Execute() (SRPMPkgNamesResponse, *_nethttp.Response, error) { + return r.ApiService.AppSRPMPkgNamesHandlerGetGetExecute(r) +} + /* -AppSRPMPkgNamesHandlerGetGet Method for AppSRPMPkgNamesHandlerGetGet -List of content sets with associated rpm names by given srpm. + * AppSRPMPkgNamesHandlerGetGet Method for AppSRPMPkgNamesHandlerGetGet + * List of content sets with associated rpm names by given srpm. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param srpm Source package name -@return SrpmPkgNamesResponse -*/ -func (a *ExperimentalApiService) AppSRPMPkgNamesHandlerGetGet(ctx _context.Context, srpm string) (SrpmPkgNamesResponse, *_nethttp.Response, error) { + * @return ApiAppSRPMPkgNamesHandlerGetGetRequest + */ +func (a *ExperimentalApiService) AppSRPMPkgNamesHandlerGetGet(ctx _context.Context, srpm string) ApiAppSRPMPkgNamesHandlerGetGetRequest { + return ApiAppSRPMPkgNamesHandlerGetGetRequest{ + ApiService: a, + ctx: ctx, + srpm: srpm, + } +} + +/* + * Execute executes the request + * @return SRPMPkgNamesResponse + */ +func (a *ExperimentalApiService) AppSRPMPkgNamesHandlerGetGetExecute(r ApiAppSRPMPkgNamesHandlerGetGetRequest) (SRPMPkgNamesResponse, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet localVarPostBody interface{} localVarFormFileName string localVarFileName string localVarFileBytes []byte - localVarReturnValue SrpmPkgNamesResponse + localVarReturnValue SRPMPkgNamesResponse ) - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/v1/package_names/srpms/{srpm}" - localVarPath = strings.Replace(localVarPath, "{"+"srpm"+"}", _neturl.QueryEscape(parameterToString(srpm, "")) , -1) + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExperimentalApiService.AppSRPMPkgNamesHandlerGetGet") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/package_names/srpms/{srpm}" + localVarPath = strings.Replace(localVarPath, "{"+"srpm"+"}", _neturl.PathEscape(parameterToString(r.srpm, "")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := _neturl.Values{} @@ -237,18 +311,19 @@ func (a *ExperimentalApiService) AppSRPMPkgNamesHandlerGetGet(ctx _context.Conte if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) if err != nil { return localVarReturnValue, nil, err } - localVarHTTPResponse, err := a.client.callAPI(r) + localVarHTTPResponse, err := a.client.callAPI(req) if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, localVarHTTPResponse, err } localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -273,31 +348,55 @@ func (a *ExperimentalApiService) AppSRPMPkgNamesHandlerGetGet(ctx _context.Conte return localVarReturnValue, localVarHTTPResponse, nil } -// AppSRPMPkgNamesHandlerPostPostOpts Optional parameters for the method 'AppSRPMPkgNamesHandlerPostPost' -type AppSRPMPkgNamesHandlerPostPostOpts struct { - SrpmPkgNamesRequest optional.Interface +type ApiAppSRPMPkgNamesHandlerPostPostRequest struct { + ctx _context.Context + ApiService *ExperimentalApiService + sRPMPkgNamesRequest *SRPMPkgNamesRequest +} + +func (r ApiAppSRPMPkgNamesHandlerPostPostRequest) SRPMPkgNamesRequest(sRPMPkgNamesRequest SRPMPkgNamesRequest) ApiAppSRPMPkgNamesHandlerPostPostRequest { + r.sRPMPkgNamesRequest = &sRPMPkgNamesRequest + return r +} + +func (r ApiAppSRPMPkgNamesHandlerPostPostRequest) Execute() (SRPMPkgNamesResponse, *_nethttp.Response, error) { + return r.ApiService.AppSRPMPkgNamesHandlerPostPostExecute(r) } /* -AppSRPMPkgNamesHandlerPostPost Method for AppSRPMPkgNamesHandlerPostPost -List of content sets with associated rpm names by given srpm and content set. + * AppSRPMPkgNamesHandlerPostPost Method for AppSRPMPkgNamesHandlerPostPost + * List of content sets with associated rpm names by given srpm and content set. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param optional nil or *AppSRPMPkgNamesHandlerPostPostOpts - Optional Parameters: - * @param "SrpmPkgNamesRequest" (optional.Interface of SrpmPkgNamesRequest) - -@return SrpmPkgNamesResponse -*/ -func (a *ExperimentalApiService) AppSRPMPkgNamesHandlerPostPost(ctx _context.Context, localVarOptionals *AppSRPMPkgNamesHandlerPostPostOpts) (SrpmPkgNamesResponse, *_nethttp.Response, error) { + * @return ApiAppSRPMPkgNamesHandlerPostPostRequest + */ +func (a *ExperimentalApiService) AppSRPMPkgNamesHandlerPostPost(ctx _context.Context) ApiAppSRPMPkgNamesHandlerPostPostRequest { + return ApiAppSRPMPkgNamesHandlerPostPostRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return SRPMPkgNamesResponse + */ +func (a *ExperimentalApiService) AppSRPMPkgNamesHandlerPostPostExecute(r ApiAppSRPMPkgNamesHandlerPostPostRequest) (SRPMPkgNamesResponse, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPost localVarPostBody interface{} localVarFormFileName string localVarFileName string localVarFileBytes []byte - localVarReturnValue SrpmPkgNamesResponse + localVarReturnValue SRPMPkgNamesResponse ) - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/v1/package_names/srpms" + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExperimentalApiService.AppSRPMPkgNamesHandlerPostPost") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/package_names/srpms" + localVarHeaderParams := make(map[string]string) localVarQueryParams := _neturl.Values{} localVarFormParams := _neturl.Values{} @@ -320,26 +419,20 @@ func (a *ExperimentalApiService) AppSRPMPkgNamesHandlerPostPost(ctx _context.Con localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - if localVarOptionals != nil && localVarOptionals.SrpmPkgNamesRequest.IsSet() { - localVarOptionalSrpmPkgNamesRequest, localVarOptionalSrpmPkgNamesRequestok := localVarOptionals.SrpmPkgNamesRequest.Value().(SrpmPkgNamesRequest) - if !localVarOptionalSrpmPkgNamesRequestok { - return localVarReturnValue, nil, reportError("srpmPkgNamesRequest should be SrpmPkgNamesRequest") - } - localVarPostBody = &localVarOptionalSrpmPkgNamesRequest - } - - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + localVarPostBody = r.sRPMPkgNamesRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) if err != nil { return localVarReturnValue, nil, err } - localVarHTTPResponse, err := a.client.callAPI(r) + localVarHTTPResponse, err := a.client.callAPI(req) if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, localVarHTTPResponse, err } localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } diff --git a/vmaas/client.go b/vmaas/client.go index 2bcd294..f6e0952 100644 --- a/vmaas/client.go +++ b/vmaas/client.go @@ -3,10 +3,11 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.20.4 - * Generated by: OpenAPI Generator (https://openapi-generator.tech) + * API version: 2.5.0 */ +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + package vmaas import ( @@ -17,7 +18,6 @@ import ( "errors" "fmt" "io" - "io/ioutil" "log" "mime/multipart" "net/http" @@ -40,7 +40,7 @@ var ( xmlCheck = regexp.MustCompile(`(?i:(?:application|text)/xml)`) ) -// APIClient manages communication with the VMaaS Webapp API v1.20.4 +// APIClient manages communication with the VMaaS Webapp API v2.5.0 // In most cases there should be only one, shared, APIClient. type APIClient struct { cfg *Configuration @@ -164,9 +164,9 @@ func parameterToJson(obj interface{}) (string, error) { // callAPI do the request. func (c *APIClient) callAPI(request *http.Request) (*http.Response, error) { if c.cfg.Debug { - dump, err := httputil.DumpRequestOut(request, true) + dump, err := httputil.DumpRequestOut(request, true) if err != nil { - return nil, err + return nil, err } log.Printf("\n%s\n", string(dump)) } @@ -183,15 +183,9 @@ func (c *APIClient) callAPI(request *http.Request) (*http.Response, error) { } log.Printf("\n%s\n", string(dump)) } - return resp, err } -// ChangeBasePath changes base path to allow switching to mocks -func (c *APIClient) ChangeBasePath(path string) { - c.cfg.BasePath = path -} - // Allow modification of underlying config for alternate implementations and testing // Caution: modifying the configuration while live can cause data races and potentially unwanted behavior func (c *APIClient) GetConfig() *Configuration { @@ -358,7 +352,6 @@ func (c *APIClient) prepareRequest( for header, value := range c.cfg.DefaultHeader { localVarRequest.Header.Add(header, value) } - return localVarRequest, nil } @@ -370,15 +363,6 @@ func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err err *s = string(b) return nil } - if f, ok := v.(**os.File); ok { - *f, err = ioutil.TempFile("", "HttpClientFile") - if err != nil { - return - } - _, err = (*f).Write(b) - _, err = (*f).Seek(0, io.SeekStart) - return - } if xmlCheck.MatchString(contentType) { if err = xml.Unmarshal(b, v); err != nil { return err @@ -386,7 +370,15 @@ func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err err return nil } if jsonCheck.MatchString(contentType) { - if err = json.Unmarshal(b, v); err != nil { + if actualObj, ok := v.(interface{GetActualInstance() interface{}}); ok { // oneOf, anyOf schemas + if unmarshalObj, ok := actualObj.(interface{UnmarshalJSON([]byte) error}); ok { // make sure it has UnmarshalJSON defined + if err = unmarshalObj.UnmarshalJSON(b); err!= nil { + return err + } + } else { + return errors.New("Unknown type with GetActualInstance but no unmarshalObj.UnmarshalJSON defined") + } + } else if err = json.Unmarshal(b, v); err != nil { // simple model return err } return nil diff --git a/vmaas/configuration.go b/vmaas/configuration.go index 7670158..ce6d29b 100644 --- a/vmaas/configuration.go +++ b/vmaas/configuration.go @@ -3,13 +3,15 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.20.4 - * Generated by: OpenAPI Generator (https://openapi-generator.tech) + * API version: 2.5.0 */ +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + package vmaas import ( + "context" "fmt" "net/http" "strings" @@ -35,9 +37,23 @@ var ( // ContextAccessToken takes a string oauth2 access token as authentication for the request. ContextAccessToken = contextKey("accesstoken") - // ContextAPIKey takes an APIKey as authentication for the request - ContextAPIKey = contextKey("apikey") + // ContextAPIKeys takes a string apikey as authentication for the request + ContextAPIKeys = contextKey("apiKeys") + + // ContextHttpSignatureAuth takes HttpSignatureAuth as authentication for the request. + ContextHttpSignatureAuth = contextKey("httpsignature") + + // ContextServerIndex uses a server configuration from the index. + ContextServerIndex = contextKey("serverIndex") + + // ContextOperationServerIndices uses a server configuration from the index mapping. + ContextOperationServerIndices = contextKey("serverOperationIndices") + + // ContextServerVariables overrides a server configuration variables. + ContextServerVariables = contextKey("serverVariables") + // ContextOperationServerVariables overrides a server configuration variables using operation specific values. + ContextOperationServerVariables = contextKey("serverOperationVariables") ) // BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth @@ -52,7 +68,6 @@ type APIKey struct { Prefix string } - // ServerVariable stores the information about a server variable type ServerVariable struct { Description string @@ -62,36 +77,40 @@ type ServerVariable struct { // ServerConfiguration stores the information about a server type ServerConfiguration struct { - Url string + URL string Description string Variables map[string]ServerVariable } +// ServerConfigurations stores multiple ServerConfiguration items +type ServerConfigurations []ServerConfiguration + // Configuration stores the configuration of the API client type Configuration struct { - BasePath string `json:"basePath,omitempty"` - Host string `json:"host,omitempty"` - Scheme string `json:"scheme,omitempty"` - DefaultHeader map[string]string `json:"defaultHeader,omitempty"` - UserAgent string `json:"userAgent,omitempty"` - Debug bool `json:"debug,omitempty"` - Servers []ServerConfiguration - HTTPClient *http.Client + Host string `json:"host,omitempty"` + Scheme string `json:"scheme,omitempty"` + DefaultHeader map[string]string `json:"defaultHeader,omitempty"` + UserAgent string `json:"userAgent,omitempty"` + Debug bool `json:"debug,omitempty"` + Servers ServerConfigurations + OperationServers map[string]ServerConfigurations + HTTPClient *http.Client } // NewConfiguration returns a new Configuration object func NewConfiguration() *Configuration { cfg := &Configuration{ - BasePath: "http://localhost/api", - DefaultHeader: make(map[string]string), - UserAgent: "OpenAPI-Generator/1.0.0/go", - Debug: false, - Servers: []ServerConfiguration{ + DefaultHeader: make(map[string]string), + UserAgent: "OpenAPI-Generator/1.0.0/go", + Debug: false, + Servers: ServerConfigurations{ { - Url: "/api", + URL: "/api/vmaas/v3", Description: "No description provided", }, }, + OperationServers: map[string]ServerConfigurations{ + }, } return cfg } @@ -101,13 +120,13 @@ func (c *Configuration) AddDefaultHeader(key string, value string) { c.DefaultHeader[key] = value } -// ServerUrl returns URL based on server settings -func (c *Configuration) ServerUrl(index int, variables map[string]string) (string, error) { - if index < 0 || len(c.Servers) <= index { - return "", fmt.Errorf("Index %v out of range %v", index, len(c.Servers) - 1) +// URL formats template on a index using given variables +func (sc ServerConfigurations) URL(index int, variables map[string]string) (string, error) { + if index < 0 || len(sc) <= index { + return "", fmt.Errorf("Index %v out of range %v", index, len(sc)-1) } - server := c.Servers[index] - url := server.Url + server := sc[index] + url := server.URL // go through variables and replace placeholders for name, variable := range server.Variables { @@ -128,3 +147,84 @@ func (c *Configuration) ServerUrl(index int, variables map[string]string) (strin } return url, nil } + +// ServerURL returns URL based on server settings +func (c *Configuration) ServerURL(index int, variables map[string]string) (string, error) { + return c.Servers.URL(index, variables) +} + +func getServerIndex(ctx context.Context) (int, error) { + si := ctx.Value(ContextServerIndex) + if si != nil { + if index, ok := si.(int); ok { + return index, nil + } + return 0, reportError("Invalid type %T should be int", si) + } + return 0, nil +} + +func getServerOperationIndex(ctx context.Context, endpoint string) (int, error) { + osi := ctx.Value(ContextOperationServerIndices) + if osi != nil { + if operationIndices, ok := osi.(map[string]int); !ok { + return 0, reportError("Invalid type %T should be map[string]int", osi) + } else { + index, ok := operationIndices[endpoint] + if ok { + return index, nil + } + } + } + return getServerIndex(ctx) +} + +func getServerVariables(ctx context.Context) (map[string]string, error) { + sv := ctx.Value(ContextServerVariables) + if sv != nil { + if variables, ok := sv.(map[string]string); ok { + return variables, nil + } + return nil, reportError("ctx value of ContextServerVariables has invalid type %T should be map[string]string", sv) + } + return nil, nil +} + +func getServerOperationVariables(ctx context.Context, endpoint string) (map[string]string, error) { + osv := ctx.Value(ContextOperationServerVariables) + if osv != nil { + if operationVariables, ok := osv.(map[string]map[string]string); !ok { + return nil, reportError("ctx value of ContextOperationServerVariables has invalid type %T should be map[string]map[string]string", osv) + } else { + variables, ok := operationVariables[endpoint] + if ok { + return variables, nil + } + } + } + return getServerVariables(ctx) +} + +// ServerURLWithContext returns a new server URL given an endpoint +func (c *Configuration) ServerURLWithContext(ctx context.Context, endpoint string) (string, error) { + sc, ok := c.OperationServers[endpoint] + if !ok { + sc = c.Servers + } + + if ctx == nil { + return sc.URL(0, nil) + } + + index, err := getServerOperationIndex(ctx, endpoint) + if err != nil { + return "", err + } + + variables, err := getServerOperationVariables(ctx, endpoint) + if err != nil { + return "", err + } + + return sc.URL(index, variables) +} diff --git a/vmaas/docs/CvesRequest.md b/vmaas/docs/CvesRequest.md index 5cecc4d..f783902 100644 --- a/vmaas/docs/CvesRequest.md +++ b/vmaas/docs/CvesRequest.md @@ -4,13 +4,229 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Page** | **float32** | | [optional] -**PageSize** | **float32** | | [optional] +**Page** | Pointer to **float32** | | [optional] +**PageSize** | Pointer to **float32** | | [optional] **CveList** | **[]string** | | -**ModifiedSince** | **string** | | [optional] -**PublishedSince** | **string** | | [optional] -**RhOnly** | **bool** | | [optional] -**ErrataAssociated** | **bool** | Return only those CVEs which are associated with at least one errata. Defaults to false. | [optional] +**ModifiedSince** | Pointer to **time.Time** | | [optional] +**PublishedSince** | Pointer to **time.Time** | | [optional] +**RhOnly** | Pointer to **bool** | | [optional] +**ErrataAssociated** | Pointer to **bool** | Return only those CVEs which are associated with at least one errata. Defaults to false. | [optional] +**ThirdParty** | Pointer to **bool** | Include content from \"third party\" repositories into the response, disabled by default. | [optional] [default to false] + +## Methods + +### NewCvesRequest + +`func NewCvesRequest(cveList []string, ) *CvesRequest` + +NewCvesRequest instantiates a new CvesRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCvesRequestWithDefaults + +`func NewCvesRequestWithDefaults() *CvesRequest` + +NewCvesRequestWithDefaults instantiates a new CvesRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPage + +`func (o *CvesRequest) GetPage() float32` + +GetPage returns the Page field if non-nil, zero value otherwise. + +### GetPageOk + +`func (o *CvesRequest) GetPageOk() (*float32, bool)` + +GetPageOk returns a tuple with the Page field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPage + +`func (o *CvesRequest) SetPage(v float32)` + +SetPage sets Page field to given value. + +### HasPage + +`func (o *CvesRequest) HasPage() bool` + +HasPage returns a boolean if a field has been set. + +### GetPageSize + +`func (o *CvesRequest) GetPageSize() float32` + +GetPageSize returns the PageSize field if non-nil, zero value otherwise. + +### GetPageSizeOk + +`func (o *CvesRequest) GetPageSizeOk() (*float32, bool)` + +GetPageSizeOk returns a tuple with the PageSize field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPageSize + +`func (o *CvesRequest) SetPageSize(v float32)` + +SetPageSize sets PageSize field to given value. + +### HasPageSize + +`func (o *CvesRequest) HasPageSize() bool` + +HasPageSize returns a boolean if a field has been set. + +### GetCveList + +`func (o *CvesRequest) GetCveList() []string` + +GetCveList returns the CveList field if non-nil, zero value otherwise. + +### GetCveListOk + +`func (o *CvesRequest) GetCveListOk() (*[]string, bool)` + +GetCveListOk returns a tuple with the CveList field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCveList + +`func (o *CvesRequest) SetCveList(v []string)` + +SetCveList sets CveList field to given value. + + +### GetModifiedSince + +`func (o *CvesRequest) GetModifiedSince() time.Time` + +GetModifiedSince returns the ModifiedSince field if non-nil, zero value otherwise. + +### GetModifiedSinceOk + +`func (o *CvesRequest) GetModifiedSinceOk() (*time.Time, bool)` + +GetModifiedSinceOk returns a tuple with the ModifiedSince field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModifiedSince + +`func (o *CvesRequest) SetModifiedSince(v time.Time)` + +SetModifiedSince sets ModifiedSince field to given value. + +### HasModifiedSince + +`func (o *CvesRequest) HasModifiedSince() bool` + +HasModifiedSince returns a boolean if a field has been set. + +### GetPublishedSince + +`func (o *CvesRequest) GetPublishedSince() time.Time` + +GetPublishedSince returns the PublishedSince field if non-nil, zero value otherwise. + +### GetPublishedSinceOk + +`func (o *CvesRequest) GetPublishedSinceOk() (*time.Time, bool)` + +GetPublishedSinceOk returns a tuple with the PublishedSince field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPublishedSince + +`func (o *CvesRequest) SetPublishedSince(v time.Time)` + +SetPublishedSince sets PublishedSince field to given value. + +### HasPublishedSince + +`func (o *CvesRequest) HasPublishedSince() bool` + +HasPublishedSince returns a boolean if a field has been set. + +### GetRhOnly + +`func (o *CvesRequest) GetRhOnly() bool` + +GetRhOnly returns the RhOnly field if non-nil, zero value otherwise. + +### GetRhOnlyOk + +`func (o *CvesRequest) GetRhOnlyOk() (*bool, bool)` + +GetRhOnlyOk returns a tuple with the RhOnly field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRhOnly + +`func (o *CvesRequest) SetRhOnly(v bool)` + +SetRhOnly sets RhOnly field to given value. + +### HasRhOnly + +`func (o *CvesRequest) HasRhOnly() bool` + +HasRhOnly returns a boolean if a field has been set. + +### GetErrataAssociated + +`func (o *CvesRequest) GetErrataAssociated() bool` + +GetErrataAssociated returns the ErrataAssociated field if non-nil, zero value otherwise. + +### GetErrataAssociatedOk + +`func (o *CvesRequest) GetErrataAssociatedOk() (*bool, bool)` + +GetErrataAssociatedOk returns a tuple with the ErrataAssociated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetErrataAssociated + +`func (o *CvesRequest) SetErrataAssociated(v bool)` + +SetErrataAssociated sets ErrataAssociated field to given value. + +### HasErrataAssociated + +`func (o *CvesRequest) HasErrataAssociated() bool` + +HasErrataAssociated returns a boolean if a field has been set. + +### GetThirdParty + +`func (o *CvesRequest) GetThirdParty() bool` + +GetThirdParty returns the ThirdParty field if non-nil, zero value otherwise. + +### GetThirdPartyOk + +`func (o *CvesRequest) GetThirdPartyOk() (*bool, bool)` + +GetThirdPartyOk returns a tuple with the ThirdParty field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetThirdParty + +`func (o *CvesRequest) SetThirdParty(v bool)` + +SetThirdParty sets ThirdParty field to given value. + +### HasThirdParty + +`func (o *CvesRequest) HasThirdParty() bool` + +HasThirdParty returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/vmaas/docs/CvesResponse.md b/vmaas/docs/CvesResponse.md index 4b868ec..1304216 100644 --- a/vmaas/docs/CvesResponse.md +++ b/vmaas/docs/CvesResponse.md @@ -4,11 +4,156 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Page** | **float32** | | [optional] -**PageSize** | **float32** | | [optional] -**Pages** | **float32** | | [optional] -**CveList** | [**map[string]CvesResponseCveList**](CvesResponse_cve_list.md) | | [optional] -**ModifiedSince** | **string** | | [optional] +**Page** | Pointer to **float32** | | [optional] +**PageSize** | Pointer to **float32** | | [optional] +**Pages** | Pointer to **float32** | | [optional] +**CveList** | Pointer to [**map[string]CvesResponseCveList**](CvesResponse_cve_list.md) | | [optional] +**ModifiedSince** | Pointer to **time.Time** | | [optional] + +## Methods + +### NewCvesResponse + +`func NewCvesResponse() *CvesResponse` + +NewCvesResponse instantiates a new CvesResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCvesResponseWithDefaults + +`func NewCvesResponseWithDefaults() *CvesResponse` + +NewCvesResponseWithDefaults instantiates a new CvesResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPage + +`func (o *CvesResponse) GetPage() float32` + +GetPage returns the Page field if non-nil, zero value otherwise. + +### GetPageOk + +`func (o *CvesResponse) GetPageOk() (*float32, bool)` + +GetPageOk returns a tuple with the Page field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPage + +`func (o *CvesResponse) SetPage(v float32)` + +SetPage sets Page field to given value. + +### HasPage + +`func (o *CvesResponse) HasPage() bool` + +HasPage returns a boolean if a field has been set. + +### GetPageSize + +`func (o *CvesResponse) GetPageSize() float32` + +GetPageSize returns the PageSize field if non-nil, zero value otherwise. + +### GetPageSizeOk + +`func (o *CvesResponse) GetPageSizeOk() (*float32, bool)` + +GetPageSizeOk returns a tuple with the PageSize field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPageSize + +`func (o *CvesResponse) SetPageSize(v float32)` + +SetPageSize sets PageSize field to given value. + +### HasPageSize + +`func (o *CvesResponse) HasPageSize() bool` + +HasPageSize returns a boolean if a field has been set. + +### GetPages + +`func (o *CvesResponse) GetPages() float32` + +GetPages returns the Pages field if non-nil, zero value otherwise. + +### GetPagesOk + +`func (o *CvesResponse) GetPagesOk() (*float32, bool)` + +GetPagesOk returns a tuple with the Pages field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPages + +`func (o *CvesResponse) SetPages(v float32)` + +SetPages sets Pages field to given value. + +### HasPages + +`func (o *CvesResponse) HasPages() bool` + +HasPages returns a boolean if a field has been set. + +### GetCveList + +`func (o *CvesResponse) GetCveList() map[string]CvesResponseCveList` + +GetCveList returns the CveList field if non-nil, zero value otherwise. + +### GetCveListOk + +`func (o *CvesResponse) GetCveListOk() (*map[string]CvesResponseCveList, bool)` + +GetCveListOk returns a tuple with the CveList field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCveList + +`func (o *CvesResponse) SetCveList(v map[string]CvesResponseCveList)` + +SetCveList sets CveList field to given value. + +### HasCveList + +`func (o *CvesResponse) HasCveList() bool` + +HasCveList returns a boolean if a field has been set. + +### GetModifiedSince + +`func (o *CvesResponse) GetModifiedSince() time.Time` + +GetModifiedSince returns the ModifiedSince field if non-nil, zero value otherwise. + +### GetModifiedSinceOk + +`func (o *CvesResponse) GetModifiedSinceOk() (*time.Time, bool)` + +GetModifiedSinceOk returns a tuple with the ModifiedSince field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModifiedSince + +`func (o *CvesResponse) SetModifiedSince(v time.Time)` + +SetModifiedSince sets ModifiedSince field to given value. + +### HasModifiedSince + +`func (o *CvesResponse) HasModifiedSince() bool` + +HasModifiedSince returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/vmaas/docs/CvesResponseCveList.md b/vmaas/docs/CvesResponseCveList.md index 1e5c24f..2a11226 100644 --- a/vmaas/docs/CvesResponseCveList.md +++ b/vmaas/docs/CvesResponseCveList.md @@ -4,21 +4,416 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Impact** | **string** | | [optional] -**PublicDate** | **string** | | [optional] -**Synopsis** | **string** | | [optional] -**Description** | **string** | | [optional] -**ModifiedDate** | **string** | | [optional] -**RedhatUrl** | **string** | | [optional] -**SecondaryUrl** | **string** | | [optional] -**Cvss2Score** | **string** | | [optional] -**Cvss2Metrics** | **string** | | [optional] -**Cvss3Score** | **string** | | [optional] -**Cvss3Metrics** | **string** | | [optional] -**CweList** | **[]string** | | [optional] -**ErrataList** | **[]string** | | [optional] -**PackageList** | **[]string** | | [optional] -**SourcePackageList** | **[]string** | | [optional] +**Impact** | Pointer to **string** | | [optional] +**PublicDate** | Pointer to **time.Time** | | [optional] +**Synopsis** | Pointer to **string** | | [optional] +**Description** | Pointer to **string** | | [optional] +**ModifiedDate** | Pointer to **time.Time** | | [optional] +**RedhatUrl** | Pointer to **string** | | [optional] +**SecondaryUrl** | Pointer to **string** | | [optional] +**Cvss2Score** | Pointer to **string** | | [optional] +**Cvss2Metrics** | Pointer to **string** | | [optional] +**Cvss3Score** | Pointer to **string** | | [optional] +**Cvss3Metrics** | Pointer to **string** | | [optional] +**CweList** | Pointer to **[]string** | | [optional] +**ErrataList** | Pointer to **[]string** | | [optional] +**PackageList** | Pointer to **[]string** | | [optional] +**SourcePackageList** | Pointer to **[]string** | | [optional] + +## Methods + +### NewCvesResponseCveList + +`func NewCvesResponseCveList() *CvesResponseCveList` + +NewCvesResponseCveList instantiates a new CvesResponseCveList object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCvesResponseCveListWithDefaults + +`func NewCvesResponseCveListWithDefaults() *CvesResponseCveList` + +NewCvesResponseCveListWithDefaults instantiates a new CvesResponseCveList object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetImpact + +`func (o *CvesResponseCveList) GetImpact() string` + +GetImpact returns the Impact field if non-nil, zero value otherwise. + +### GetImpactOk + +`func (o *CvesResponseCveList) GetImpactOk() (*string, bool)` + +GetImpactOk returns a tuple with the Impact field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetImpact + +`func (o *CvesResponseCveList) SetImpact(v string)` + +SetImpact sets Impact field to given value. + +### HasImpact + +`func (o *CvesResponseCveList) HasImpact() bool` + +HasImpact returns a boolean if a field has been set. + +### GetPublicDate + +`func (o *CvesResponseCveList) GetPublicDate() time.Time` + +GetPublicDate returns the PublicDate field if non-nil, zero value otherwise. + +### GetPublicDateOk + +`func (o *CvesResponseCveList) GetPublicDateOk() (*time.Time, bool)` + +GetPublicDateOk returns a tuple with the PublicDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPublicDate + +`func (o *CvesResponseCveList) SetPublicDate(v time.Time)` + +SetPublicDate sets PublicDate field to given value. + +### HasPublicDate + +`func (o *CvesResponseCveList) HasPublicDate() bool` + +HasPublicDate returns a boolean if a field has been set. + +### GetSynopsis + +`func (o *CvesResponseCveList) GetSynopsis() string` + +GetSynopsis returns the Synopsis field if non-nil, zero value otherwise. + +### GetSynopsisOk + +`func (o *CvesResponseCveList) GetSynopsisOk() (*string, bool)` + +GetSynopsisOk returns a tuple with the Synopsis field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSynopsis + +`func (o *CvesResponseCveList) SetSynopsis(v string)` + +SetSynopsis sets Synopsis field to given value. + +### HasSynopsis + +`func (o *CvesResponseCveList) HasSynopsis() bool` + +HasSynopsis returns a boolean if a field has been set. + +### GetDescription + +`func (o *CvesResponseCveList) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *CvesResponseCveList) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *CvesResponseCveList) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *CvesResponseCveList) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetModifiedDate + +`func (o *CvesResponseCveList) GetModifiedDate() time.Time` + +GetModifiedDate returns the ModifiedDate field if non-nil, zero value otherwise. + +### GetModifiedDateOk + +`func (o *CvesResponseCveList) GetModifiedDateOk() (*time.Time, bool)` + +GetModifiedDateOk returns a tuple with the ModifiedDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModifiedDate + +`func (o *CvesResponseCveList) SetModifiedDate(v time.Time)` + +SetModifiedDate sets ModifiedDate field to given value. + +### HasModifiedDate + +`func (o *CvesResponseCveList) HasModifiedDate() bool` + +HasModifiedDate returns a boolean if a field has been set. + +### GetRedhatUrl + +`func (o *CvesResponseCveList) GetRedhatUrl() string` + +GetRedhatUrl returns the RedhatUrl field if non-nil, zero value otherwise. + +### GetRedhatUrlOk + +`func (o *CvesResponseCveList) GetRedhatUrlOk() (*string, bool)` + +GetRedhatUrlOk returns a tuple with the RedhatUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRedhatUrl + +`func (o *CvesResponseCveList) SetRedhatUrl(v string)` + +SetRedhatUrl sets RedhatUrl field to given value. + +### HasRedhatUrl + +`func (o *CvesResponseCveList) HasRedhatUrl() bool` + +HasRedhatUrl returns a boolean if a field has been set. + +### GetSecondaryUrl + +`func (o *CvesResponseCveList) GetSecondaryUrl() string` + +GetSecondaryUrl returns the SecondaryUrl field if non-nil, zero value otherwise. + +### GetSecondaryUrlOk + +`func (o *CvesResponseCveList) GetSecondaryUrlOk() (*string, bool)` + +GetSecondaryUrlOk returns a tuple with the SecondaryUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecondaryUrl + +`func (o *CvesResponseCveList) SetSecondaryUrl(v string)` + +SetSecondaryUrl sets SecondaryUrl field to given value. + +### HasSecondaryUrl + +`func (o *CvesResponseCveList) HasSecondaryUrl() bool` + +HasSecondaryUrl returns a boolean if a field has been set. + +### GetCvss2Score + +`func (o *CvesResponseCveList) GetCvss2Score() string` + +GetCvss2Score returns the Cvss2Score field if non-nil, zero value otherwise. + +### GetCvss2ScoreOk + +`func (o *CvesResponseCveList) GetCvss2ScoreOk() (*string, bool)` + +GetCvss2ScoreOk returns a tuple with the Cvss2Score field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCvss2Score + +`func (o *CvesResponseCveList) SetCvss2Score(v string)` + +SetCvss2Score sets Cvss2Score field to given value. + +### HasCvss2Score + +`func (o *CvesResponseCveList) HasCvss2Score() bool` + +HasCvss2Score returns a boolean if a field has been set. + +### GetCvss2Metrics + +`func (o *CvesResponseCveList) GetCvss2Metrics() string` + +GetCvss2Metrics returns the Cvss2Metrics field if non-nil, zero value otherwise. + +### GetCvss2MetricsOk + +`func (o *CvesResponseCveList) GetCvss2MetricsOk() (*string, bool)` + +GetCvss2MetricsOk returns a tuple with the Cvss2Metrics field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCvss2Metrics + +`func (o *CvesResponseCveList) SetCvss2Metrics(v string)` + +SetCvss2Metrics sets Cvss2Metrics field to given value. + +### HasCvss2Metrics + +`func (o *CvesResponseCveList) HasCvss2Metrics() bool` + +HasCvss2Metrics returns a boolean if a field has been set. + +### GetCvss3Score + +`func (o *CvesResponseCveList) GetCvss3Score() string` + +GetCvss3Score returns the Cvss3Score field if non-nil, zero value otherwise. + +### GetCvss3ScoreOk + +`func (o *CvesResponseCveList) GetCvss3ScoreOk() (*string, bool)` + +GetCvss3ScoreOk returns a tuple with the Cvss3Score field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCvss3Score + +`func (o *CvesResponseCveList) SetCvss3Score(v string)` + +SetCvss3Score sets Cvss3Score field to given value. + +### HasCvss3Score + +`func (o *CvesResponseCveList) HasCvss3Score() bool` + +HasCvss3Score returns a boolean if a field has been set. + +### GetCvss3Metrics + +`func (o *CvesResponseCveList) GetCvss3Metrics() string` + +GetCvss3Metrics returns the Cvss3Metrics field if non-nil, zero value otherwise. + +### GetCvss3MetricsOk + +`func (o *CvesResponseCveList) GetCvss3MetricsOk() (*string, bool)` + +GetCvss3MetricsOk returns a tuple with the Cvss3Metrics field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCvss3Metrics + +`func (o *CvesResponseCveList) SetCvss3Metrics(v string)` + +SetCvss3Metrics sets Cvss3Metrics field to given value. + +### HasCvss3Metrics + +`func (o *CvesResponseCveList) HasCvss3Metrics() bool` + +HasCvss3Metrics returns a boolean if a field has been set. + +### GetCweList + +`func (o *CvesResponseCveList) GetCweList() []string` + +GetCweList returns the CweList field if non-nil, zero value otherwise. + +### GetCweListOk + +`func (o *CvesResponseCveList) GetCweListOk() (*[]string, bool)` + +GetCweListOk returns a tuple with the CweList field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCweList + +`func (o *CvesResponseCveList) SetCweList(v []string)` + +SetCweList sets CweList field to given value. + +### HasCweList + +`func (o *CvesResponseCveList) HasCweList() bool` + +HasCweList returns a boolean if a field has been set. + +### GetErrataList + +`func (o *CvesResponseCveList) GetErrataList() []string` + +GetErrataList returns the ErrataList field if non-nil, zero value otherwise. + +### GetErrataListOk + +`func (o *CvesResponseCveList) GetErrataListOk() (*[]string, bool)` + +GetErrataListOk returns a tuple with the ErrataList field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetErrataList + +`func (o *CvesResponseCveList) SetErrataList(v []string)` + +SetErrataList sets ErrataList field to given value. + +### HasErrataList + +`func (o *CvesResponseCveList) HasErrataList() bool` + +HasErrataList returns a boolean if a field has been set. + +### GetPackageList + +`func (o *CvesResponseCveList) GetPackageList() []string` + +GetPackageList returns the PackageList field if non-nil, zero value otherwise. + +### GetPackageListOk + +`func (o *CvesResponseCveList) GetPackageListOk() (*[]string, bool)` + +GetPackageListOk returns a tuple with the PackageList field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPackageList + +`func (o *CvesResponseCveList) SetPackageList(v []string)` + +SetPackageList sets PackageList field to given value. + +### HasPackageList + +`func (o *CvesResponseCveList) HasPackageList() bool` + +HasPackageList returns a boolean if a field has been set. + +### GetSourcePackageList + +`func (o *CvesResponseCveList) GetSourcePackageList() []string` + +GetSourcePackageList returns the SourcePackageList field if non-nil, zero value otherwise. + +### GetSourcePackageListOk + +`func (o *CvesResponseCveList) GetSourcePackageListOk() (*[]string, bool)` + +GetSourcePackageListOk returns a tuple with the SourcePackageList field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSourcePackageList + +`func (o *CvesResponseCveList) SetSourcePackageList(v []string)` + +SetSourcePackageList sets SourcePackageList field to given value. + +### HasSourcePackageList + +`func (o *CvesResponseCveList) HasSourcePackageList() bool` + +HasSourcePackageList returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/vmaas/docs/DBChangeResponse.md b/vmaas/docs/DBChangeResponse.md new file mode 100644 index 0000000..0fa687c --- /dev/null +++ b/vmaas/docs/DBChangeResponse.md @@ -0,0 +1,56 @@ +# DBChangeResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Dbchange** | Pointer to [**DBChangeResponseDbchange**](DBChangeResponse_dbchange.md) | | [optional] + +## Methods + +### NewDBChangeResponse + +`func NewDBChangeResponse() *DBChangeResponse` + +NewDBChangeResponse instantiates a new DBChangeResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewDBChangeResponseWithDefaults + +`func NewDBChangeResponseWithDefaults() *DBChangeResponse` + +NewDBChangeResponseWithDefaults instantiates a new DBChangeResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDbchange + +`func (o *DBChangeResponse) GetDbchange() DBChangeResponseDbchange` + +GetDbchange returns the Dbchange field if non-nil, zero value otherwise. + +### GetDbchangeOk + +`func (o *DBChangeResponse) GetDbchangeOk() (*DBChangeResponseDbchange, bool)` + +GetDbchangeOk returns a tuple with the Dbchange field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDbchange + +`func (o *DBChangeResponse) SetDbchange(v DBChangeResponseDbchange)` + +SetDbchange sets Dbchange field to given value. + +### HasDbchange + +`func (o *DBChangeResponse) HasDbchange() bool` + +HasDbchange returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/vmaas/docs/DBChangeResponseDbchange.md b/vmaas/docs/DBChangeResponseDbchange.md new file mode 100644 index 0000000..256062c --- /dev/null +++ b/vmaas/docs/DBChangeResponseDbchange.md @@ -0,0 +1,160 @@ +# DBChangeResponseDbchange + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ErrataChanges** | Pointer to **string** | | [optional] +**CveChanges** | Pointer to **string** | | [optional] +**RepositoryChanges** | Pointer to **string** | | [optional] +**LastChange** | Pointer to **string** | | [optional] +**Exported** | Pointer to **string** | | [optional] + +## Methods + +### NewDBChangeResponseDbchange + +`func NewDBChangeResponseDbchange() *DBChangeResponseDbchange` + +NewDBChangeResponseDbchange instantiates a new DBChangeResponseDbchange object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewDBChangeResponseDbchangeWithDefaults + +`func NewDBChangeResponseDbchangeWithDefaults() *DBChangeResponseDbchange` + +NewDBChangeResponseDbchangeWithDefaults instantiates a new DBChangeResponseDbchange object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetErrataChanges + +`func (o *DBChangeResponseDbchange) GetErrataChanges() string` + +GetErrataChanges returns the ErrataChanges field if non-nil, zero value otherwise. + +### GetErrataChangesOk + +`func (o *DBChangeResponseDbchange) GetErrataChangesOk() (*string, bool)` + +GetErrataChangesOk returns a tuple with the ErrataChanges field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetErrataChanges + +`func (o *DBChangeResponseDbchange) SetErrataChanges(v string)` + +SetErrataChanges sets ErrataChanges field to given value. + +### HasErrataChanges + +`func (o *DBChangeResponseDbchange) HasErrataChanges() bool` + +HasErrataChanges returns a boolean if a field has been set. + +### GetCveChanges + +`func (o *DBChangeResponseDbchange) GetCveChanges() string` + +GetCveChanges returns the CveChanges field if non-nil, zero value otherwise. + +### GetCveChangesOk + +`func (o *DBChangeResponseDbchange) GetCveChangesOk() (*string, bool)` + +GetCveChangesOk returns a tuple with the CveChanges field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCveChanges + +`func (o *DBChangeResponseDbchange) SetCveChanges(v string)` + +SetCveChanges sets CveChanges field to given value. + +### HasCveChanges + +`func (o *DBChangeResponseDbchange) HasCveChanges() bool` + +HasCveChanges returns a boolean if a field has been set. + +### GetRepositoryChanges + +`func (o *DBChangeResponseDbchange) GetRepositoryChanges() string` + +GetRepositoryChanges returns the RepositoryChanges field if non-nil, zero value otherwise. + +### GetRepositoryChangesOk + +`func (o *DBChangeResponseDbchange) GetRepositoryChangesOk() (*string, bool)` + +GetRepositoryChangesOk returns a tuple with the RepositoryChanges field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRepositoryChanges + +`func (o *DBChangeResponseDbchange) SetRepositoryChanges(v string)` + +SetRepositoryChanges sets RepositoryChanges field to given value. + +### HasRepositoryChanges + +`func (o *DBChangeResponseDbchange) HasRepositoryChanges() bool` + +HasRepositoryChanges returns a boolean if a field has been set. + +### GetLastChange + +`func (o *DBChangeResponseDbchange) GetLastChange() string` + +GetLastChange returns the LastChange field if non-nil, zero value otherwise. + +### GetLastChangeOk + +`func (o *DBChangeResponseDbchange) GetLastChangeOk() (*string, bool)` + +GetLastChangeOk returns a tuple with the LastChange field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastChange + +`func (o *DBChangeResponseDbchange) SetLastChange(v string)` + +SetLastChange sets LastChange field to given value. + +### HasLastChange + +`func (o *DBChangeResponseDbchange) HasLastChange() bool` + +HasLastChange returns a boolean if a field has been set. + +### GetExported + +`func (o *DBChangeResponseDbchange) GetExported() string` + +GetExported returns the Exported field if non-nil, zero value otherwise. + +### GetExportedOk + +`func (o *DBChangeResponseDbchange) GetExportedOk() (*string, bool)` + +GetExportedOk returns a tuple with the Exported field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExported + +`func (o *DBChangeResponseDbchange) SetExported(v string)` + +SetExported sets Exported field to given value. + +### HasExported + +`func (o *DBChangeResponseDbchange) HasExported() bool` + +HasExported returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/vmaas/docs/DbChangeResponse.md b/vmaas/docs/DbChangeResponse.md deleted file mode 100644 index c43a92f..0000000 --- a/vmaas/docs/DbChangeResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# DbChangeResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Dbchange** | [**DbChangeResponseDbchange**](DBChangeResponse_dbchange.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/vmaas/docs/DbChangeResponseDbchange.md b/vmaas/docs/DbChangeResponseDbchange.md deleted file mode 100644 index 57230f1..0000000 --- a/vmaas/docs/DbChangeResponseDbchange.md +++ /dev/null @@ -1,15 +0,0 @@ -# DbChangeResponseDbchange - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ErrataChanges** | **string** | | [optional] -**CveChanges** | **string** | | [optional] -**RepositoryChanges** | **string** | | [optional] -**LastChange** | **string** | | [optional] -**Exported** | **string** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/vmaas/docs/DefaultApi.md b/vmaas/docs/DefaultApi.md index b6a1a57..018cf09 100644 --- a/vmaas/docs/DefaultApi.md +++ b/vmaas/docs/DefaultApi.md @@ -1,51 +1,83 @@ # \DefaultApi -All URIs are relative to *http://localhost/api* +All URIs are relative to *http://localhost/api/vmaas/v3* Method | HTTP request | Description ------------- | ------------- | ------------- -[**AppCVEHandlerGetGet**](DefaultApi.md#AppCVEHandlerGetGet) | **Get** /v1/cves/{cve} | -[**AppCVEHandlerPostPost**](DefaultApi.md#AppCVEHandlerPostPost) | **Post** /v1/cves | -[**AppDBChangeHandlerGet**](DefaultApi.md#AppDBChangeHandlerGet) | **Get** /v1/dbchange | -[**AppErrataHandlerGetGet**](DefaultApi.md#AppErrataHandlerGetGet) | **Get** /v1/errata/{erratum} | -[**AppErrataHandlerPostPost**](DefaultApi.md#AppErrataHandlerPostPost) | **Post** /v1/errata | -[**AppHealthHandlerGet**](DefaultApi.md#AppHealthHandlerGet) | **Get** /v1/monitoring/health | Return API liveness status -[**AppPackagesHandlerGetGet**](DefaultApi.md#AppPackagesHandlerGetGet) | **Get** /v1/packages/{nevra} | -[**AppPackagesHandlerPostPost**](DefaultApi.md#AppPackagesHandlerPostPost) | **Post** /v1/packages | -[**AppPatchesHandlerGetGet**](DefaultApi.md#AppPatchesHandlerGetGet) | **Get** /v1/patches/{nevra} | -[**AppPatchesHandlerPostPost**](DefaultApi.md#AppPatchesHandlerPostPost) | **Post** /v1/patches | -[**AppPkgtreeHandlerGetGet**](DefaultApi.md#AppPkgtreeHandlerGetGet) | **Get** /v1/pkgtree/{package_name} | -[**AppPkgtreeHandlerPostPost**](DefaultApi.md#AppPkgtreeHandlerPostPost) | **Post** /v1/pkgtree | -[**AppReadyHandlerGet**](DefaultApi.md#AppReadyHandlerGet) | **Get** /v1/monitoring/ready | Return API readiness status -[**AppReposHandlerGetGet**](DefaultApi.md#AppReposHandlerGetGet) | **Get** /v1/repos/{repo} | -[**AppReposHandlerPostPost**](DefaultApi.md#AppReposHandlerPostPost) | **Post** /v1/repos | -[**AppUpdatesHandlerGetGet**](DefaultApi.md#AppUpdatesHandlerGetGet) | **Get** /v1/updates/{nevra} | -[**AppUpdatesHandlerPostPost**](DefaultApi.md#AppUpdatesHandlerPostPost) | **Post** /v1/updates | -[**AppUpdatesHandlerV2GetGet**](DefaultApi.md#AppUpdatesHandlerV2GetGet) | **Get** /v2/updates/{nevra} | -[**AppUpdatesHandlerV2PostPost**](DefaultApi.md#AppUpdatesHandlerV2PostPost) | **Post** /v2/updates | -[**AppUpdatesHandlerV3GetGet**](DefaultApi.md#AppUpdatesHandlerV3GetGet) | **Get** /v3/updates/{nevra} | -[**AppUpdatesHandlerV3PostPost**](DefaultApi.md#AppUpdatesHandlerV3PostPost) | **Post** /v3/updates | -[**AppVersionHandlerGet**](DefaultApi.md#AppVersionHandlerGet) | **Get** /v1/version | -[**AppVulnerabilitiesHandlerGetGet**](DefaultApi.md#AppVulnerabilitiesHandlerGetGet) | **Get** /v1/vulnerabilities/{nevra} | -[**AppVulnerabilitiesHandlerPostPost**](DefaultApi.md#AppVulnerabilitiesHandlerPostPost) | **Post** /v1/vulnerabilities | +[**AppCVEHandlerGetGet**](DefaultApi.md#AppCVEHandlerGetGet) | **Get** /cves/{cve} | +[**AppCVEHandlerPostPost**](DefaultApi.md#AppCVEHandlerPostPost) | **Post** /cves | +[**AppDBChangeHandlerGet**](DefaultApi.md#AppDBChangeHandlerGet) | **Get** /dbchange | +[**AppErrataHandlerGetGet**](DefaultApi.md#AppErrataHandlerGetGet) | **Get** /errata/{erratum} | +[**AppErrataHandlerPostPost**](DefaultApi.md#AppErrataHandlerPostPost) | **Post** /errata | +[**AppHealthHandlerGet**](DefaultApi.md#AppHealthHandlerGet) | **Get** /monitoring/health | Return API liveness status +[**AppPackagesHandlerGetGet**](DefaultApi.md#AppPackagesHandlerGetGet) | **Get** /packages/{nevra} | +[**AppPackagesHandlerPostPost**](DefaultApi.md#AppPackagesHandlerPostPost) | **Post** /packages | +[**AppPatchesHandlerGetGet**](DefaultApi.md#AppPatchesHandlerGetGet) | **Get** /patches/{nevra} | +[**AppPatchesHandlerPostPost**](DefaultApi.md#AppPatchesHandlerPostPost) | **Post** /patches | +[**AppPkgtreeHandlerGetGet**](DefaultApi.md#AppPkgtreeHandlerGetGet) | **Get** /pkgtree/{package_name} | +[**AppPkgtreeHandlerPostPost**](DefaultApi.md#AppPkgtreeHandlerPostPost) | **Post** /pkgtree | +[**AppReadyHandlerGet**](DefaultApi.md#AppReadyHandlerGet) | **Get** /monitoring/ready | Return API readiness status +[**AppReposHandlerGetGet**](DefaultApi.md#AppReposHandlerGetGet) | **Get** /repos/{repo} | +[**AppReposHandlerPostPost**](DefaultApi.md#AppReposHandlerPostPost) | **Post** /repos | +[**AppUpdatesHandlerV3GetGet**](DefaultApi.md#AppUpdatesHandlerV3GetGet) | **Get** /updates/{nevra} | +[**AppUpdatesHandlerV3PostPost**](DefaultApi.md#AppUpdatesHandlerV3PostPost) | **Post** /updates | +[**AppVersionHandlerGet**](DefaultApi.md#AppVersionHandlerGet) | **Get** /version | +[**AppVulnerabilitiesHandlerGetGet**](DefaultApi.md#AppVulnerabilitiesHandlerGetGet) | **Get** /vulnerabilities/{nevra} | +[**AppVulnerabilitiesHandlerPostPost**](DefaultApi.md#AppVulnerabilitiesHandlerPostPost) | **Post** /vulnerabilities | ## AppCVEHandlerGetGet -> CvesResponse AppCVEHandlerGetGet(ctx, cve) +> CvesResponse AppCVEHandlerGetGet(ctx, cve).Execute() -Get details about CVEs. It is possible to use POSIX regular expression as a pattern for CVE names. -### Required Parameters + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + cve := ""CVE-2017-5715, CVE-2017-571[1-5], CVE-2017-5.*"" // string | CVE name or POSIX regular expression pattern + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.AppCVEHandlerGetGet(context.Background(), cve).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.AppCVEHandlerGetGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AppCVEHandlerGetGet`: CvesResponse + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.AppCVEHandlerGetGet`: %v\n", resp) +} +``` + +### Path Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**cve** | **string**| CVE name or POSIX regular expression pattern | +**cve** | **string** | CVE name or POSIX regular expression pattern | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAppCVEHandlerGetGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + ### Return type @@ -67,28 +99,51 @@ No authorization required ## AppCVEHandlerPostPost -> CvesResponse AppCVEHandlerPostPost(ctx, optional) +> CvesResponse AppCVEHandlerPostPost(ctx).CvesRequest(cvesRequest).Execute() -Get details about CVEs with additional parameters. As a \"cve_list\" parameter a complete list of CVE names can be provided OR one POSIX regular expression. -### Required Parameters +### Example -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. - **optional** | ***AppCVEHandlerPostPostOpts** | optional parameters | nil if no parameters +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + cvesRequest := *openapiclient.NewCvesRequest([]string{"CVE-2017-57.*"}) // CvesRequest | (optional) -### Optional Parameters + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.AppCVEHandlerPostPost(context.Background()).CvesRequest(cvesRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.AppCVEHandlerPostPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AppCVEHandlerPostPost`: CvesResponse + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.AppCVEHandlerPostPost`: %v\n", resp) +} +``` -Optional parameters are passed through a pointer to a AppCVEHandlerPostPostOpts struct +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAppCVEHandlerPostPostRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **cvesRequest** | [**optional.Interface of CvesRequest**](CvesRequest.md)| | + **cvesRequest** | [**CvesRequest**](CvesRequest.md) | | ### Return type @@ -110,19 +165,50 @@ No authorization required ## AppDBChangeHandlerGet -> DbChangeResponse AppDBChangeHandlerGet(ctx, ) +> DBChangeResponse AppDBChangeHandlerGet(ctx).Execute() + + + + + +### Example +```go +package main +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) -Get last-updated-times for VMaaS DB +func main() { -### Required Parameters + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.AppDBChangeHandlerGet(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.AppDBChangeHandlerGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AppDBChangeHandlerGet`: DBChangeResponse + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.AppDBChangeHandlerGet`: %v\n", resp) +} +``` + +### Path Parameters This endpoint does not need any parameter. +### Other Parameters + +Other parameters are passed through a pointer to a apiAppDBChangeHandlerGetRequest struct via the builder pattern + + ### Return type -[**DbChangeResponse**](DBChangeResponse.md) +[**DBChangeResponse**](DBChangeResponse.md) ### Authorization @@ -140,19 +226,55 @@ No authorization required ## AppErrataHandlerGetGet -> ErrataResponse AppErrataHandlerGetGet(ctx, erratum) +> ErrataResponse AppErrataHandlerGetGet(ctx, erratum).Execute() + + + + +### Example +```go +package main -Get details about errata. It is possible to use POSIX regular expression as a pattern for errata names. +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) -### Required Parameters +func main() { + erratum := ""RHSA-2018:0512, RHSA-2018:051[1-5], RH.*"" // string | Errata advisory name or POSIX regular expression pattern + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.AppErrataHandlerGetGet(context.Background(), erratum).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.AppErrataHandlerGetGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AppErrataHandlerGetGet`: ErrataResponse + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.AppErrataHandlerGetGet`: %v\n", resp) +} +``` + +### Path Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**erratum** | **string**| Errata advisory name or POSIX regular expression pattern | +**erratum** | **string** | Errata advisory name or POSIX regular expression pattern | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAppErrataHandlerGetGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + ### Return type @@ -174,28 +296,51 @@ No authorization required ## AppErrataHandlerPostPost -> ErrataResponse AppErrataHandlerPostPost(ctx, optional) +> ErrataResponse AppErrataHandlerPostPost(ctx).ErrataRequest(errataRequest).Execute() -Get details about errata with additional parameters. \"errata_list\" parameter can be either a list of errata names OR a single POSIX regular expression. -### Required Parameters +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + errataRequest := *openapiclient.NewErrataRequest([]string{"RHSA-2018:05.*"}) // ErrataRequest | (optional) + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.AppErrataHandlerPostPost(context.Background()).ErrataRequest(errataRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.AppErrataHandlerPostPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AppErrataHandlerPostPost`: ErrataResponse + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.AppErrataHandlerPostPost`: %v\n", resp) +} +``` + +### Path Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. - **optional** | ***AppErrataHandlerPostPostOpts** | optional parameters | nil if no parameters -### Optional Parameters -Optional parameters are passed through a pointer to a AppErrataHandlerPostPostOpts struct +### Other Parameters + +Other parameters are passed through a pointer to a apiAppErrataHandlerPostPostRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **errataRequest** | [**optional.Interface of ErrataRequest**](ErrataRequest.md)| | + **errataRequest** | [**ErrataRequest**](ErrataRequest.md) | | ### Return type @@ -217,14 +362,43 @@ No authorization required ## AppHealthHandlerGet -> AppHealthHandlerGet(ctx, ) +> AppHealthHandlerGet(ctx).Execute() Return API liveness status -### Required Parameters +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.AppHealthHandlerGet(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.AppHealthHandlerGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters This endpoint does not need any parameter. +### Other Parameters + +Other parameters are passed through a pointer to a apiAppHealthHandlerGetRequest struct via the builder pattern + + ### Return type (empty response body) @@ -245,19 +419,55 @@ No authorization required ## AppPackagesHandlerGetGet -> PackagesResponse AppPackagesHandlerGetGet(ctx, nevra) +> PackagesResponse AppPackagesHandlerGetGet(ctx, nevra).Execute() -Get details about packages. -### Required Parameters + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + nevra := ""kernel-2.6.32-696.20.1.el6.x86_64"" // string | Package NEVRA + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.AppPackagesHandlerGetGet(context.Background(), nevra).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.AppPackagesHandlerGetGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AppPackagesHandlerGetGet`: PackagesResponse + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.AppPackagesHandlerGetGet`: %v\n", resp) +} +``` + +### Path Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**nevra** | **string**| Package NEVRA | +**nevra** | **string** | Package NEVRA | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAppPackagesHandlerGetGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + ### Return type @@ -279,28 +489,51 @@ No authorization required ## AppPackagesHandlerPostPost -> PackagesResponse AppPackagesHandlerPostPost(ctx, optional) +> PackagesResponse AppPackagesHandlerPostPost(ctx).PackagesRequest(packagesRequest).Execute() -Get details about packages. \"package_list\" must be a list of package NEVRAs. -### Required Parameters +### Example -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. - **optional** | ***AppPackagesHandlerPostPostOpts** | optional parameters | nil if no parameters +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) -### Optional Parameters +func main() { + packagesRequest := *openapiclient.NewPackagesRequest([]string{"kernel-2.6.32-696.20.1.el6.x86_64"}) // PackagesRequest | (optional) -Optional parameters are passed through a pointer to a AppPackagesHandlerPostPostOpts struct + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.AppPackagesHandlerPostPost(context.Background()).PackagesRequest(packagesRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.AppPackagesHandlerPostPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AppPackagesHandlerPostPost`: PackagesResponse + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.AppPackagesHandlerPostPost`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAppPackagesHandlerPostPostRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **packagesRequest** | [**optional.Interface of PackagesRequest**](PackagesRequest.md)| | + **packagesRequest** | [**PackagesRequest**](PackagesRequest.md) | | ### Return type @@ -322,19 +555,55 @@ No authorization required ## AppPatchesHandlerGetGet -> PatchesResponse AppPatchesHandlerGetGet(ctx, nevra) +> PatchesResponse AppPatchesHandlerGetGet(ctx, nevra).Execute() + + + + +### Example +```go +package main -List of applicable CVEs for a single package NEVRA +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) -### Required Parameters +func main() { + nevra := ""kernel-2.6.32-696.20.1.el6.x86_64"" // string | Package NEVRA + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.AppPatchesHandlerGetGet(context.Background(), nevra).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.AppPatchesHandlerGetGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AppPatchesHandlerGetGet`: PatchesResponse + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.AppPatchesHandlerGetGet`: %v\n", resp) +} +``` + +### Path Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**nevra** | **string**| Package NEVRA | +**nevra** | **string** | Package NEVRA | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAppPatchesHandlerGetGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + ### Return type @@ -356,28 +625,51 @@ No authorization required ## AppPatchesHandlerPostPost -> PatchesResponse AppPatchesHandlerPostPost(ctx, optional) +> PatchesResponse AppPatchesHandlerPostPost(ctx).PatchesRequest(patchesRequest).Execute() -List of applicable errata to a package list. -### Required Parameters +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + patchesRequest := *openapiclient.NewPatchesRequest([]string{"kernel-2.6.32-696.20.1.el6.x86_64"}) // PatchesRequest | (optional) + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.AppPatchesHandlerPostPost(context.Background()).PatchesRequest(patchesRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.AppPatchesHandlerPostPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AppPatchesHandlerPostPost`: PatchesResponse + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.AppPatchesHandlerPostPost`: %v\n", resp) +} +``` + +### Path Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. - **optional** | ***AppPatchesHandlerPostPostOpts** | optional parameters | nil if no parameters -### Optional Parameters -Optional parameters are passed through a pointer to a AppPatchesHandlerPostPostOpts struct +### Other Parameters + +Other parameters are passed through a pointer to a apiAppPatchesHandlerPostPostRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **patchesRequest** | [**optional.Interface of PatchesRequest**](PatchesRequest.md)| | + **patchesRequest** | [**PatchesRequest**](PatchesRequest.md) | | ### Return type @@ -399,19 +691,55 @@ No authorization required ## AppPkgtreeHandlerGetGet -> PkgtreeResponse AppPkgtreeHandlerGetGet(ctx, packageName) +> PkgtreeResponse AppPkgtreeHandlerGetGet(ctx, packageName).Execute() + + + + +### Example +```go +package main -Get package NEVRAs tree for a single package name. +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) -### Required Parameters +func main() { + packageName := ""kernel-rt"" // string | Package name + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.AppPkgtreeHandlerGetGet(context.Background(), packageName).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.AppPkgtreeHandlerGetGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AppPkgtreeHandlerGetGet`: PkgtreeResponse + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.AppPkgtreeHandlerGetGet`: %v\n", resp) +} +``` + +### Path Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**packageName** | **string**| Package name | +**packageName** | **string** | Package name | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAppPkgtreeHandlerGetGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + ### Return type @@ -433,28 +761,51 @@ No authorization required ## AppPkgtreeHandlerPostPost -> PkgtreeResponse AppPkgtreeHandlerPostPost(ctx, optional) +> PkgtreeResponse AppPkgtreeHandlerPostPost(ctx).PkgtreeRequest(pkgtreeRequest).Execute() -Get package NEVRAs trees for package names. \"package_name_list\" must be a list of package names. -### Required Parameters +### Example -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. - **optional** | ***AppPkgtreeHandlerPostPostOpts** | optional parameters | nil if no parameters +```go +package main -### Optional Parameters +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) -Optional parameters are passed through a pointer to a AppPkgtreeHandlerPostPostOpts struct +func main() { + pkgtreeRequest := *openapiclient.NewPkgtreeRequest([]string{"kernel-rt"}) // PkgtreeRequest | (optional) + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.AppPkgtreeHandlerPostPost(context.Background()).PkgtreeRequest(pkgtreeRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.AppPkgtreeHandlerPostPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AppPkgtreeHandlerPostPost`: PkgtreeResponse + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.AppPkgtreeHandlerPostPost`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAppPkgtreeHandlerPostPostRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pkgtreeRequest** | [**optional.Interface of PkgtreeRequest**](PkgtreeRequest.md)| | + **pkgtreeRequest** | [**PkgtreeRequest**](PkgtreeRequest.md) | | ### Return type @@ -476,14 +827,43 @@ No authorization required ## AppReadyHandlerGet -> AppReadyHandlerGet(ctx, ) +> AppReadyHandlerGet(ctx).Execute() Return API readiness status -### Required Parameters +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.AppReadyHandlerGet(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.AppReadyHandlerGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters This endpoint does not need any parameter. +### Other Parameters + +Other parameters are passed through a pointer to a apiAppReadyHandlerGetRequest struct via the builder pattern + + ### Return type (empty response body) @@ -504,62 +884,55 @@ No authorization required ## AppReposHandlerGetGet -> ReposResponse AppReposHandlerGetGet(ctx, repo) - - - -Get details about a repository or repository-expression. It is allowed to use POSIX regular expression as a pattern for repository names. +> ReposResponse AppReposHandlerGetGet(ctx, repo).Execute() -### Required Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**repo** | **string**| Repository name or POSIX regular expression pattern | - -### Return type - -[**ReposResponse**](ReposResponse.md) - -### Authorization -No authorization required -### HTTP request headers +### Example -- **Content-Type**: Not defined -- **Accept**: application/json +```go +package main -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) +func main() { + repo := ""rhel-6-server-rpms OR rhel-[4567]-.*-rpms OR rhel-\\d-server-rpms"" // string | Repository name or POSIX regular expression pattern -## AppReposHandlerPostPost - -> ReposResponse AppReposHandlerPostPost(ctx, optional) + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.AppReposHandlerGetGet(context.Background(), repo).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.AppReposHandlerGetGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AppReposHandlerGetGet`: ReposResponse + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.AppReposHandlerGetGet`: %v\n", resp) +} +``` - - -Get details about list of repositories. \"repository_list\" can be either a list of repository names, OR a single POSIX regular expression. - -### Required Parameters +### Path Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. - **optional** | ***AppReposHandlerPostPostOpts** | optional parameters | nil if no parameters +**repo** | **string** | Repository name or POSIX regular expression pattern | -### Optional Parameters +### Other Parameters -Optional parameters are passed through a pointer to a AppReposHandlerPostPostOpts struct +Other parameters are passed through a pointer to a apiAppReposHandlerGetGetRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **reposRequest** | [**optional.Interface of ReposRequest**](ReposRequest.md)| | + ### Return type @@ -571,7 +944,7 @@ No authorization required ### HTTP request headers -- **Content-Type**: application/json +- **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) @@ -579,68 +952,57 @@ No authorization required [[Back to README]](../README.md) -## AppUpdatesHandlerGetGet - -> UpdatesResponse AppUpdatesHandlerGetGet(ctx, nevra) - - - -List security updates for single package NEVRA - -### Required Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**nevra** | **string**| Package NEVRA | - -### Return type +## AppReposHandlerPostPost -[**UpdatesResponse**](UpdatesResponse.md) +> ReposResponse AppReposHandlerPostPost(ctx).ReposRequest(reposRequest).Execute() -### Authorization -No authorization required -### HTTP request headers -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) +### Example -## AppUpdatesHandlerPostPost +```go +package main -> UpdatesResponse AppUpdatesHandlerPostPost(ctx, optional) +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) +func main() { + reposRequest := *openapiclient.NewReposRequest([]string{"rhel-6-server-rpms"}) // ReposRequest | (optional) + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.AppReposHandlerPostPost(context.Background()).ReposRequest(reposRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.AppReposHandlerPostPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AppReposHandlerPostPost`: ReposResponse + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.AppReposHandlerPostPost`: %v\n", resp) +} +``` -List security updates for list of package NEVRAs +### Path Parameters -### Required Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. - **optional** | ***AppUpdatesHandlerPostPostOpts** | optional parameters | nil if no parameters - -### Optional Parameters +### Other Parameters -Optional parameters are passed through a pointer to a AppUpdatesHandlerPostPostOpts struct +Other parameters are passed through a pointer to a apiAppReposHandlerPostPostRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **updatesRequest** | [**optional.Interface of UpdatesRequest**](UpdatesRequest.md)| Input json | + **reposRequest** | [**ReposRequest**](ReposRequest.md) | | ### Return type -[**UpdatesResponse**](UpdatesResponse.md) +[**ReposResponse**](ReposResponse.md) ### Authorization @@ -656,64 +1018,57 @@ No authorization required [[Back to README]](../README.md) -## AppUpdatesHandlerV2GetGet - -> UpdatesV2Response AppUpdatesHandlerV2GetGet(ctx, nevra) - - - -List security updates for single package NEVRA - -### Required Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**nevra** | **string**| Package NEVRA | - -### Return type - -[**UpdatesV2Response**](UpdatesV2Response.md) - -### Authorization +## AppUpdatesHandlerV3GetGet -No authorization required +> UpdatesV2Response AppUpdatesHandlerV3GetGet(ctx, nevra).Execute() -### HTTP request headers -- **Content-Type**: Not defined -- **Accept**: application/json -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) -## AppUpdatesHandlerV2PostPost +### Example -> UpdatesV2Response AppUpdatesHandlerV2PostPost(ctx, optional) +```go +package main +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) +func main() { + nevra := ""kernel-2.6.32-696.20.1.el6.x86_64"" // string | Package NEVRA -List security updates for list of package NEVRAs + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.AppUpdatesHandlerV3GetGet(context.Background(), nevra).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.AppUpdatesHandlerV3GetGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AppUpdatesHandlerV3GetGet`: UpdatesV2Response + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.AppUpdatesHandlerV3GetGet`: %v\n", resp) +} +``` -### Required Parameters +### Path Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. - **optional** | ***AppUpdatesHandlerV2PostPostOpts** | optional parameters | nil if no parameters +**nevra** | **string** | Package NEVRA | -### Optional Parameters +### Other Parameters -Optional parameters are passed through a pointer to a AppUpdatesHandlerV2PostPostOpts struct +Other parameters are passed through a pointer to a apiAppUpdatesHandlerV3GetGetRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **updatesRequest** | [**optional.Interface of UpdatesRequest**](UpdatesRequest.md)| Input json | + ### Return type @@ -725,7 +1080,7 @@ No authorization required ### HTTP request headers -- **Content-Type**: application/json +- **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) @@ -733,64 +1088,53 @@ No authorization required [[Back to README]](../README.md) -## AppUpdatesHandlerV3GetGet +## AppUpdatesHandlerV3PostPost -> UpdatesV2Response AppUpdatesHandlerV3GetGet(ctx, nevra) +> UpdatesV2Response AppUpdatesHandlerV3PostPost(ctx).UpdatesV3Request(updatesV3Request).Execute() -List all updates for single package NEVRA -### Required Parameters +### Example -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**nevra** | **string**| Package NEVRA | +```go +package main -### Return type +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) -[**UpdatesV2Response**](UpdatesV2Response.md) +func main() { + updatesV3Request := *openapiclient.NewUpdatesV3Request([]string{"kernel-2.6.32-696.20.1.el6.x86_64"}) // UpdatesV3Request | Input json (optional) -### Authorization + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.AppUpdatesHandlerV3PostPost(context.Background()).UpdatesV3Request(updatesV3Request).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.AppUpdatesHandlerV3PostPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AppUpdatesHandlerV3PostPost`: UpdatesV2Response + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.AppUpdatesHandlerV3PostPost`: %v\n", resp) +} +``` -No authorization required +### Path Parameters -### HTTP request headers -- **Content-Type**: Not defined -- **Accept**: application/json -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## AppUpdatesHandlerV3PostPost +### Other Parameters -> UpdatesV2Response AppUpdatesHandlerV3PostPost(ctx, optional) - - - -List all updates for list of package NEVRAs - -### Required Parameters +Other parameters are passed through a pointer to a apiAppUpdatesHandlerV3PostPostRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. - **optional** | ***AppUpdatesHandlerV3PostPostOpts** | optional parameters | nil if no parameters - -### Optional Parameters - -Optional parameters are passed through a pointer to a AppUpdatesHandlerV3PostPostOpts struct - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **updatesV3Request** | [**optional.Interface of UpdatesV3Request**](UpdatesV3Request.md)| Input json | + **updatesV3Request** | [**UpdatesV3Request**](UpdatesV3Request.md) | Input json | ### Return type @@ -812,16 +1156,45 @@ No authorization required ## AppVersionHandlerGet -> AppVersionHandlerGet(ctx, ) +> AppVersionHandlerGet(ctx).Execute() + + + + + +### Example + +```go +package main +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) +func main() { -Get version of application + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.AppVersionHandlerGet(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.AppVersionHandlerGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` -### Required Parameters +### Path Parameters This endpoint does not need any parameter. +### Other Parameters + +Other parameters are passed through a pointer to a apiAppVersionHandlerGetRequest struct via the builder pattern + + ### Return type (empty response body) @@ -842,19 +1215,55 @@ No authorization required ## AppVulnerabilitiesHandlerGetGet -> VulnerabilitiesResponse AppVulnerabilitiesHandlerGetGet(ctx, nevra) +> VulnerabilitiesResponse AppVulnerabilitiesHandlerGetGet(ctx, nevra).Execute() + + + + + +### Example +```go +package main +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) -List of applicable CVEs for a single package NEVRA +func main() { + nevra := ""kernel-2.6.32-696.20.1.el6.x86_64"" // string | Package NEVRA -### Required Parameters + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.AppVulnerabilitiesHandlerGetGet(context.Background(), nevra).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.AppVulnerabilitiesHandlerGetGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AppVulnerabilitiesHandlerGetGet`: VulnerabilitiesResponse + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.AppVulnerabilitiesHandlerGetGet`: %v\n", resp) +} +``` + +### Path Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**nevra** | **string**| Package NEVRA | +**nevra** | **string** | Package NEVRA | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAppVulnerabilitiesHandlerGetGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + ### Return type @@ -876,28 +1285,51 @@ No authorization required ## AppVulnerabilitiesHandlerPostPost -> VulnerabilitiesResponse AppVulnerabilitiesHandlerPostPost(ctx, optional) +> VulnerabilitiesResponse AppVulnerabilitiesHandlerPostPost(ctx).VulnerabilitiesRequest(vulnerabilitiesRequest).Execute() -List of applicable CVEs to a package list. -### Required Parameters + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + vulnerabilitiesRequest := *openapiclient.NewVulnerabilitiesRequest([]string{"kernel-2.6.32-696.20.1.el6.x86_64"}) // VulnerabilitiesRequest | (optional) + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.AppVulnerabilitiesHandlerPostPost(context.Background()).VulnerabilitiesRequest(vulnerabilitiesRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.AppVulnerabilitiesHandlerPostPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AppVulnerabilitiesHandlerPostPost`: VulnerabilitiesResponse + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.AppVulnerabilitiesHandlerPostPost`: %v\n", resp) +} +``` + +### Path Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. - **optional** | ***AppVulnerabilitiesHandlerPostPostOpts** | optional parameters | nil if no parameters -### Optional Parameters +### Other Parameters -Optional parameters are passed through a pointer to a AppVulnerabilitiesHandlerPostPostOpts struct +Other parameters are passed through a pointer to a apiAppVulnerabilitiesHandlerPostPostRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **vulnerabilitiesRequest** | [**optional.Interface of VulnerabilitiesRequest**](VulnerabilitiesRequest.md)| | + **vulnerabilitiesRequest** | [**VulnerabilitiesRequest**](VulnerabilitiesRequest.md) | | ### Return type diff --git a/vmaas/docs/ErrataRequest.md b/vmaas/docs/ErrataRequest.md index 66e64bb..201a5b7 100644 --- a/vmaas/docs/ErrataRequest.md +++ b/vmaas/docs/ErrataRequest.md @@ -4,12 +4,203 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Page** | **float32** | | [optional] -**PageSize** | **float32** | | [optional] +**Page** | Pointer to **float32** | | [optional] +**PageSize** | Pointer to **float32** | | [optional] **ErrataList** | **[]string** | | -**ModifiedSince** | **string** | | [optional] -**Type** | **[]string** | | [optional] -**Severity** | **[]string** | | [optional] +**ModifiedSince** | Pointer to **time.Time** | | [optional] +**ThirdParty** | Pointer to **bool** | Include content from \"third party\" repositories into the response, disabled by default. | [optional] [default to false] +**Type** | Pointer to **[]string** | | [optional] +**Severity** | Pointer to **[]string** | | [optional] + +## Methods + +### NewErrataRequest + +`func NewErrataRequest(errataList []string, ) *ErrataRequest` + +NewErrataRequest instantiates a new ErrataRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewErrataRequestWithDefaults + +`func NewErrataRequestWithDefaults() *ErrataRequest` + +NewErrataRequestWithDefaults instantiates a new ErrataRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPage + +`func (o *ErrataRequest) GetPage() float32` + +GetPage returns the Page field if non-nil, zero value otherwise. + +### GetPageOk + +`func (o *ErrataRequest) GetPageOk() (*float32, bool)` + +GetPageOk returns a tuple with the Page field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPage + +`func (o *ErrataRequest) SetPage(v float32)` + +SetPage sets Page field to given value. + +### HasPage + +`func (o *ErrataRequest) HasPage() bool` + +HasPage returns a boolean if a field has been set. + +### GetPageSize + +`func (o *ErrataRequest) GetPageSize() float32` + +GetPageSize returns the PageSize field if non-nil, zero value otherwise. + +### GetPageSizeOk + +`func (o *ErrataRequest) GetPageSizeOk() (*float32, bool)` + +GetPageSizeOk returns a tuple with the PageSize field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPageSize + +`func (o *ErrataRequest) SetPageSize(v float32)` + +SetPageSize sets PageSize field to given value. + +### HasPageSize + +`func (o *ErrataRequest) HasPageSize() bool` + +HasPageSize returns a boolean if a field has been set. + +### GetErrataList + +`func (o *ErrataRequest) GetErrataList() []string` + +GetErrataList returns the ErrataList field if non-nil, zero value otherwise. + +### GetErrataListOk + +`func (o *ErrataRequest) GetErrataListOk() (*[]string, bool)` + +GetErrataListOk returns a tuple with the ErrataList field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetErrataList + +`func (o *ErrataRequest) SetErrataList(v []string)` + +SetErrataList sets ErrataList field to given value. + + +### GetModifiedSince + +`func (o *ErrataRequest) GetModifiedSince() time.Time` + +GetModifiedSince returns the ModifiedSince field if non-nil, zero value otherwise. + +### GetModifiedSinceOk + +`func (o *ErrataRequest) GetModifiedSinceOk() (*time.Time, bool)` + +GetModifiedSinceOk returns a tuple with the ModifiedSince field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModifiedSince + +`func (o *ErrataRequest) SetModifiedSince(v time.Time)` + +SetModifiedSince sets ModifiedSince field to given value. + +### HasModifiedSince + +`func (o *ErrataRequest) HasModifiedSince() bool` + +HasModifiedSince returns a boolean if a field has been set. + +### GetThirdParty + +`func (o *ErrataRequest) GetThirdParty() bool` + +GetThirdParty returns the ThirdParty field if non-nil, zero value otherwise. + +### GetThirdPartyOk + +`func (o *ErrataRequest) GetThirdPartyOk() (*bool, bool)` + +GetThirdPartyOk returns a tuple with the ThirdParty field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetThirdParty + +`func (o *ErrataRequest) SetThirdParty(v bool)` + +SetThirdParty sets ThirdParty field to given value. + +### HasThirdParty + +`func (o *ErrataRequest) HasThirdParty() bool` + +HasThirdParty returns a boolean if a field has been set. + +### GetType + +`func (o *ErrataRequest) GetType() []string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *ErrataRequest) GetTypeOk() (*[]string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *ErrataRequest) SetType(v []string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *ErrataRequest) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetSeverity + +`func (o *ErrataRequest) GetSeverity() []string` + +GetSeverity returns the Severity field if non-nil, zero value otherwise. + +### GetSeverityOk + +`func (o *ErrataRequest) GetSeverityOk() (*[]string, bool)` + +GetSeverityOk returns a tuple with the Severity field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSeverity + +`func (o *ErrataRequest) SetSeverity(v []string)` + +SetSeverity sets Severity field to given value. + +### HasSeverity + +`func (o *ErrataRequest) HasSeverity() bool` + +HasSeverity returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/vmaas/docs/ErrataResponse.md b/vmaas/docs/ErrataResponse.md index 6b36df2..bdc4f31 100644 --- a/vmaas/docs/ErrataResponse.md +++ b/vmaas/docs/ErrataResponse.md @@ -4,13 +4,208 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Page** | **float32** | | [optional] -**PageSize** | **float32** | | [optional] -**Pages** | **float32** | | [optional] -**ErrataList** | [**map[string]ErrataResponseErrataList**](ErrataResponse_errata_list.md) | | [optional] -**ModifiedSince** | **string** | | [optional] -**Type** | **[]string** | | [optional] -**Severity** | **[]string** | | [optional] +**Page** | Pointer to **float32** | | [optional] +**PageSize** | Pointer to **float32** | | [optional] +**Pages** | Pointer to **float32** | | [optional] +**ErrataList** | Pointer to [**map[string]ErrataResponseErrataList**](ErrataResponse_errata_list.md) | | [optional] +**ModifiedSince** | Pointer to **time.Time** | | [optional] +**Type** | Pointer to **[]string** | | [optional] +**Severity** | Pointer to **[]string** | | [optional] + +## Methods + +### NewErrataResponse + +`func NewErrataResponse() *ErrataResponse` + +NewErrataResponse instantiates a new ErrataResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewErrataResponseWithDefaults + +`func NewErrataResponseWithDefaults() *ErrataResponse` + +NewErrataResponseWithDefaults instantiates a new ErrataResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPage + +`func (o *ErrataResponse) GetPage() float32` + +GetPage returns the Page field if non-nil, zero value otherwise. + +### GetPageOk + +`func (o *ErrataResponse) GetPageOk() (*float32, bool)` + +GetPageOk returns a tuple with the Page field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPage + +`func (o *ErrataResponse) SetPage(v float32)` + +SetPage sets Page field to given value. + +### HasPage + +`func (o *ErrataResponse) HasPage() bool` + +HasPage returns a boolean if a field has been set. + +### GetPageSize + +`func (o *ErrataResponse) GetPageSize() float32` + +GetPageSize returns the PageSize field if non-nil, zero value otherwise. + +### GetPageSizeOk + +`func (o *ErrataResponse) GetPageSizeOk() (*float32, bool)` + +GetPageSizeOk returns a tuple with the PageSize field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPageSize + +`func (o *ErrataResponse) SetPageSize(v float32)` + +SetPageSize sets PageSize field to given value. + +### HasPageSize + +`func (o *ErrataResponse) HasPageSize() bool` + +HasPageSize returns a boolean if a field has been set. + +### GetPages + +`func (o *ErrataResponse) GetPages() float32` + +GetPages returns the Pages field if non-nil, zero value otherwise. + +### GetPagesOk + +`func (o *ErrataResponse) GetPagesOk() (*float32, bool)` + +GetPagesOk returns a tuple with the Pages field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPages + +`func (o *ErrataResponse) SetPages(v float32)` + +SetPages sets Pages field to given value. + +### HasPages + +`func (o *ErrataResponse) HasPages() bool` + +HasPages returns a boolean if a field has been set. + +### GetErrataList + +`func (o *ErrataResponse) GetErrataList() map[string]ErrataResponseErrataList` + +GetErrataList returns the ErrataList field if non-nil, zero value otherwise. + +### GetErrataListOk + +`func (o *ErrataResponse) GetErrataListOk() (*map[string]ErrataResponseErrataList, bool)` + +GetErrataListOk returns a tuple with the ErrataList field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetErrataList + +`func (o *ErrataResponse) SetErrataList(v map[string]ErrataResponseErrataList)` + +SetErrataList sets ErrataList field to given value. + +### HasErrataList + +`func (o *ErrataResponse) HasErrataList() bool` + +HasErrataList returns a boolean if a field has been set. + +### GetModifiedSince + +`func (o *ErrataResponse) GetModifiedSince() time.Time` + +GetModifiedSince returns the ModifiedSince field if non-nil, zero value otherwise. + +### GetModifiedSinceOk + +`func (o *ErrataResponse) GetModifiedSinceOk() (*time.Time, bool)` + +GetModifiedSinceOk returns a tuple with the ModifiedSince field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModifiedSince + +`func (o *ErrataResponse) SetModifiedSince(v time.Time)` + +SetModifiedSince sets ModifiedSince field to given value. + +### HasModifiedSince + +`func (o *ErrataResponse) HasModifiedSince() bool` + +HasModifiedSince returns a boolean if a field has been set. + +### GetType + +`func (o *ErrataResponse) GetType() []string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *ErrataResponse) GetTypeOk() (*[]string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *ErrataResponse) SetType(v []string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *ErrataResponse) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetSeverity + +`func (o *ErrataResponse) GetSeverity() []string` + +GetSeverity returns the Severity field if non-nil, zero value otherwise. + +### GetSeverityOk + +`func (o *ErrataResponse) GetSeverityOk() (*[]string, bool)` + +GetSeverityOk returns a tuple with the Severity field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSeverity + +`func (o *ErrataResponse) SetSeverity(v []string)` + +SetSeverity sets Severity field to given value. + +### HasSeverity + +`func (o *ErrataResponse) HasSeverity() bool` + +HasSeverity returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/vmaas/docs/ErrataResponseErrataList.md b/vmaas/docs/ErrataResponseErrataList.md index 6999054..74e13a3 100644 --- a/vmaas/docs/ErrataResponseErrataList.md +++ b/vmaas/docs/ErrataResponseErrataList.md @@ -4,20 +4,426 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Updated** | **string** | | [optional] -**Severity** | Pointer to **string** | | [optional] -**ReferenceList** | **[]string** | | [optional] -**Issued** | **string** | | [optional] -**Description** | **string** | | [optional] -**Solution** | **string** | | [optional] -**Summary** | **string** | | [optional] -**Url** | **string** | | [optional] -**Synopsis** | **string** | | [optional] -**CveList** | **[]string** | | [optional] -**BugzillaList** | **[]string** | | [optional] -**PackageList** | **[]string** | | [optional] -**SourcePackageList** | **[]string** | | [optional] -**Type** | **string** | | [optional] +**Updated** | Pointer to **string** | | [optional] +**Severity** | Pointer to **NullableString** | | [optional] +**ReferenceList** | Pointer to **[]string** | | [optional] +**Issued** | Pointer to **time.Time** | | [optional] +**Description** | Pointer to **string** | | [optional] +**Solution** | Pointer to **string** | | [optional] +**Summary** | Pointer to **string** | | [optional] +**Url** | Pointer to **string** | | [optional] +**Synopsis** | Pointer to **string** | | [optional] +**CveList** | Pointer to **[]string** | | [optional] +**BugzillaList** | Pointer to **[]string** | | [optional] +**PackageList** | Pointer to **[]string** | | [optional] +**SourcePackageList** | Pointer to **[]string** | | [optional] +**Type** | Pointer to **string** | | [optional] +**ThirdParty** | Pointer to **bool** | | [optional] + +## Methods + +### NewErrataResponseErrataList + +`func NewErrataResponseErrataList() *ErrataResponseErrataList` + +NewErrataResponseErrataList instantiates a new ErrataResponseErrataList object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewErrataResponseErrataListWithDefaults + +`func NewErrataResponseErrataListWithDefaults() *ErrataResponseErrataList` + +NewErrataResponseErrataListWithDefaults instantiates a new ErrataResponseErrataList object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetUpdated + +`func (o *ErrataResponseErrataList) GetUpdated() string` + +GetUpdated returns the Updated field if non-nil, zero value otherwise. + +### GetUpdatedOk + +`func (o *ErrataResponseErrataList) GetUpdatedOk() (*string, bool)` + +GetUpdatedOk returns a tuple with the Updated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdated + +`func (o *ErrataResponseErrataList) SetUpdated(v string)` + +SetUpdated sets Updated field to given value. + +### HasUpdated + +`func (o *ErrataResponseErrataList) HasUpdated() bool` + +HasUpdated returns a boolean if a field has been set. + +### GetSeverity + +`func (o *ErrataResponseErrataList) GetSeverity() string` + +GetSeverity returns the Severity field if non-nil, zero value otherwise. + +### GetSeverityOk + +`func (o *ErrataResponseErrataList) GetSeverityOk() (*string, bool)` + +GetSeverityOk returns a tuple with the Severity field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSeverity + +`func (o *ErrataResponseErrataList) SetSeverity(v string)` + +SetSeverity sets Severity field to given value. + +### HasSeverity + +`func (o *ErrataResponseErrataList) HasSeverity() bool` + +HasSeverity returns a boolean if a field has been set. + +### SetSeverityNil + +`func (o *ErrataResponseErrataList) SetSeverityNil(b bool)` + + SetSeverityNil sets the value for Severity to be an explicit nil + +### UnsetSeverity +`func (o *ErrataResponseErrataList) UnsetSeverity()` + +UnsetSeverity ensures that no value is present for Severity, not even an explicit nil +### GetReferenceList + +`func (o *ErrataResponseErrataList) GetReferenceList() []string` + +GetReferenceList returns the ReferenceList field if non-nil, zero value otherwise. + +### GetReferenceListOk + +`func (o *ErrataResponseErrataList) GetReferenceListOk() (*[]string, bool)` + +GetReferenceListOk returns a tuple with the ReferenceList field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReferenceList + +`func (o *ErrataResponseErrataList) SetReferenceList(v []string)` + +SetReferenceList sets ReferenceList field to given value. + +### HasReferenceList + +`func (o *ErrataResponseErrataList) HasReferenceList() bool` + +HasReferenceList returns a boolean if a field has been set. + +### GetIssued + +`func (o *ErrataResponseErrataList) GetIssued() time.Time` + +GetIssued returns the Issued field if non-nil, zero value otherwise. + +### GetIssuedOk + +`func (o *ErrataResponseErrataList) GetIssuedOk() (*time.Time, bool)` + +GetIssuedOk returns a tuple with the Issued field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIssued + +`func (o *ErrataResponseErrataList) SetIssued(v time.Time)` + +SetIssued sets Issued field to given value. + +### HasIssued + +`func (o *ErrataResponseErrataList) HasIssued() bool` + +HasIssued returns a boolean if a field has been set. + +### GetDescription + +`func (o *ErrataResponseErrataList) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *ErrataResponseErrataList) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *ErrataResponseErrataList) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *ErrataResponseErrataList) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetSolution + +`func (o *ErrataResponseErrataList) GetSolution() string` + +GetSolution returns the Solution field if non-nil, zero value otherwise. + +### GetSolutionOk + +`func (o *ErrataResponseErrataList) GetSolutionOk() (*string, bool)` + +GetSolutionOk returns a tuple with the Solution field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSolution + +`func (o *ErrataResponseErrataList) SetSolution(v string)` + +SetSolution sets Solution field to given value. + +### HasSolution + +`func (o *ErrataResponseErrataList) HasSolution() bool` + +HasSolution returns a boolean if a field has been set. + +### GetSummary + +`func (o *ErrataResponseErrataList) GetSummary() string` + +GetSummary returns the Summary field if non-nil, zero value otherwise. + +### GetSummaryOk + +`func (o *ErrataResponseErrataList) GetSummaryOk() (*string, bool)` + +GetSummaryOk returns a tuple with the Summary field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSummary + +`func (o *ErrataResponseErrataList) SetSummary(v string)` + +SetSummary sets Summary field to given value. + +### HasSummary + +`func (o *ErrataResponseErrataList) HasSummary() bool` + +HasSummary returns a boolean if a field has been set. + +### GetUrl + +`func (o *ErrataResponseErrataList) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *ErrataResponseErrataList) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *ErrataResponseErrataList) SetUrl(v string)` + +SetUrl sets Url field to given value. + +### HasUrl + +`func (o *ErrataResponseErrataList) HasUrl() bool` + +HasUrl returns a boolean if a field has been set. + +### GetSynopsis + +`func (o *ErrataResponseErrataList) GetSynopsis() string` + +GetSynopsis returns the Synopsis field if non-nil, zero value otherwise. + +### GetSynopsisOk + +`func (o *ErrataResponseErrataList) GetSynopsisOk() (*string, bool)` + +GetSynopsisOk returns a tuple with the Synopsis field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSynopsis + +`func (o *ErrataResponseErrataList) SetSynopsis(v string)` + +SetSynopsis sets Synopsis field to given value. + +### HasSynopsis + +`func (o *ErrataResponseErrataList) HasSynopsis() bool` + +HasSynopsis returns a boolean if a field has been set. + +### GetCveList + +`func (o *ErrataResponseErrataList) GetCveList() []string` + +GetCveList returns the CveList field if non-nil, zero value otherwise. + +### GetCveListOk + +`func (o *ErrataResponseErrataList) GetCveListOk() (*[]string, bool)` + +GetCveListOk returns a tuple with the CveList field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCveList + +`func (o *ErrataResponseErrataList) SetCveList(v []string)` + +SetCveList sets CveList field to given value. + +### HasCveList + +`func (o *ErrataResponseErrataList) HasCveList() bool` + +HasCveList returns a boolean if a field has been set. + +### GetBugzillaList + +`func (o *ErrataResponseErrataList) GetBugzillaList() []string` + +GetBugzillaList returns the BugzillaList field if non-nil, zero value otherwise. + +### GetBugzillaListOk + +`func (o *ErrataResponseErrataList) GetBugzillaListOk() (*[]string, bool)` + +GetBugzillaListOk returns a tuple with the BugzillaList field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBugzillaList + +`func (o *ErrataResponseErrataList) SetBugzillaList(v []string)` + +SetBugzillaList sets BugzillaList field to given value. + +### HasBugzillaList + +`func (o *ErrataResponseErrataList) HasBugzillaList() bool` + +HasBugzillaList returns a boolean if a field has been set. + +### GetPackageList + +`func (o *ErrataResponseErrataList) GetPackageList() []string` + +GetPackageList returns the PackageList field if non-nil, zero value otherwise. + +### GetPackageListOk + +`func (o *ErrataResponseErrataList) GetPackageListOk() (*[]string, bool)` + +GetPackageListOk returns a tuple with the PackageList field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPackageList + +`func (o *ErrataResponseErrataList) SetPackageList(v []string)` + +SetPackageList sets PackageList field to given value. + +### HasPackageList + +`func (o *ErrataResponseErrataList) HasPackageList() bool` + +HasPackageList returns a boolean if a field has been set. + +### GetSourcePackageList + +`func (o *ErrataResponseErrataList) GetSourcePackageList() []string` + +GetSourcePackageList returns the SourcePackageList field if non-nil, zero value otherwise. + +### GetSourcePackageListOk + +`func (o *ErrataResponseErrataList) GetSourcePackageListOk() (*[]string, bool)` + +GetSourcePackageListOk returns a tuple with the SourcePackageList field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSourcePackageList + +`func (o *ErrataResponseErrataList) SetSourcePackageList(v []string)` + +SetSourcePackageList sets SourcePackageList field to given value. + +### HasSourcePackageList + +`func (o *ErrataResponseErrataList) HasSourcePackageList() bool` + +HasSourcePackageList returns a boolean if a field has been set. + +### GetType + +`func (o *ErrataResponseErrataList) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *ErrataResponseErrataList) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *ErrataResponseErrataList) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *ErrataResponseErrataList) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetThirdParty + +`func (o *ErrataResponseErrataList) GetThirdParty() bool` + +GetThirdParty returns the ThirdParty field if non-nil, zero value otherwise. + +### GetThirdPartyOk + +`func (o *ErrataResponseErrataList) GetThirdPartyOk() (*bool, bool)` + +GetThirdPartyOk returns a tuple with the ThirdParty field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetThirdParty + +`func (o *ErrataResponseErrataList) SetThirdParty(v bool)` + +SetThirdParty sets ThirdParty field to given value. + +### HasThirdParty + +`func (o *ErrataResponseErrataList) HasThirdParty() bool` + +HasThirdParty returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/vmaas/docs/ExperimentalApi.md b/vmaas/docs/ExperimentalApi.md index fc47b59..f8fa17f 100644 --- a/vmaas/docs/ExperimentalApi.md +++ b/vmaas/docs/ExperimentalApi.md @@ -1,35 +1,71 @@ # \ExperimentalApi -All URIs are relative to *http://localhost/api* +All URIs are relative to *http://localhost/api/vmaas/v3* Method | HTTP request | Description ------------- | ------------- | ------------- -[**AppRPMPkgNamesHandlerGetGet**](ExperimentalApi.md#AppRPMPkgNamesHandlerGetGet) | **Get** /v1/package_names/rpms/{rpm} | -[**AppRPMPkgNamesHandlerPostPost**](ExperimentalApi.md#AppRPMPkgNamesHandlerPostPost) | **Post** /v1/package_names/rpms | -[**AppSRPMPkgNamesHandlerGetGet**](ExperimentalApi.md#AppSRPMPkgNamesHandlerGetGet) | **Get** /v1/package_names/srpms/{srpm} | -[**AppSRPMPkgNamesHandlerPostPost**](ExperimentalApi.md#AppSRPMPkgNamesHandlerPostPost) | **Post** /v1/package_names/srpms | +[**AppRPMPkgNamesHandlerGetGet**](ExperimentalApi.md#AppRPMPkgNamesHandlerGetGet) | **Get** /package_names/rpms/{rpm} | +[**AppRPMPkgNamesHandlerPostPost**](ExperimentalApi.md#AppRPMPkgNamesHandlerPostPost) | **Post** /package_names/rpms | +[**AppSRPMPkgNamesHandlerGetGet**](ExperimentalApi.md#AppSRPMPkgNamesHandlerGetGet) | **Get** /package_names/srpms/{srpm} | +[**AppSRPMPkgNamesHandlerPostPost**](ExperimentalApi.md#AppSRPMPkgNamesHandlerPostPost) | **Post** /package_names/srpms | ## AppRPMPkgNamesHandlerGetGet -> RpmPkgNamesResponse AppRPMPkgNamesHandlerGetGet(ctx, rpm) +> RPMPkgNamesResponse AppRPMPkgNamesHandlerGetGet(ctx, rpm).Execute() -List of content sets by given rpm name. -### Required Parameters + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + rpm := ""openssl-libs"" // string | Package name + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.ExperimentalApi.AppRPMPkgNamesHandlerGetGet(context.Background(), rpm).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExperimentalApi.AppRPMPkgNamesHandlerGetGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AppRPMPkgNamesHandlerGetGet`: RPMPkgNamesResponse + fmt.Fprintf(os.Stdout, "Response from `ExperimentalApi.AppRPMPkgNamesHandlerGetGet`: %v\n", resp) +} +``` + +### Path Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**rpm** | **string**| Package name | +**rpm** | **string** | Package name | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAppRPMPkgNamesHandlerGetGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + ### Return type -[**RpmPkgNamesResponse**](RPMPkgNamesResponse.md) +[**RPMPkgNamesResponse**](RPMPkgNamesResponse.md) ### Authorization @@ -47,32 +83,55 @@ No authorization required ## AppRPMPkgNamesHandlerPostPost -> RpmPkgNamesResponse AppRPMPkgNamesHandlerPostPost(ctx, optional) +> RPMPkgNamesResponse AppRPMPkgNamesHandlerPostPost(ctx).RPMPkgNamesRequest(rPMPkgNamesRequest).Execute() -List of content sets by given rpm name and content set. -### Required Parameters + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + rPMPkgNamesRequest := *openapiclient.NewRPMPkgNamesRequest([]string{"openssl-libs"}) // RPMPkgNamesRequest | (optional) + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.ExperimentalApi.AppRPMPkgNamesHandlerPostPost(context.Background()).RPMPkgNamesRequest(rPMPkgNamesRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExperimentalApi.AppRPMPkgNamesHandlerPostPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AppRPMPkgNamesHandlerPostPost`: RPMPkgNamesResponse + fmt.Fprintf(os.Stdout, "Response from `ExperimentalApi.AppRPMPkgNamesHandlerPostPost`: %v\n", resp) +} +``` + +### Path Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. - **optional** | ***AppRPMPkgNamesHandlerPostPostOpts** | optional parameters | nil if no parameters -### Optional Parameters +### Other Parameters -Optional parameters are passed through a pointer to a AppRPMPkgNamesHandlerPostPostOpts struct +Other parameters are passed through a pointer to a apiAppRPMPkgNamesHandlerPostPostRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **rpmPkgNamesRequest** | [**optional.Interface of RpmPkgNamesRequest**](RpmPkgNamesRequest.md)| | + **rPMPkgNamesRequest** | [**RPMPkgNamesRequest**](RPMPkgNamesRequest.md) | | ### Return type -[**RpmPkgNamesResponse**](RPMPkgNamesResponse.md) +[**RPMPkgNamesResponse**](RPMPkgNamesResponse.md) ### Authorization @@ -90,23 +149,59 @@ No authorization required ## AppSRPMPkgNamesHandlerGetGet -> SrpmPkgNamesResponse AppSRPMPkgNamesHandlerGetGet(ctx, srpm) +> SRPMPkgNamesResponse AppSRPMPkgNamesHandlerGetGet(ctx, srpm).Execute() -List of content sets with associated rpm names by given srpm. -### Required Parameters + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + srpm := ""openssl"" // string | Source package name + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.ExperimentalApi.AppSRPMPkgNamesHandlerGetGet(context.Background(), srpm).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExperimentalApi.AppSRPMPkgNamesHandlerGetGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AppSRPMPkgNamesHandlerGetGet`: SRPMPkgNamesResponse + fmt.Fprintf(os.Stdout, "Response from `ExperimentalApi.AppSRPMPkgNamesHandlerGetGet`: %v\n", resp) +} +``` + +### Path Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**srpm** | **string**| Source package name | +**srpm** | **string** | Source package name | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAppSRPMPkgNamesHandlerGetGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + ### Return type -[**SrpmPkgNamesResponse**](SRPMPkgNamesResponse.md) +[**SRPMPkgNamesResponse**](SRPMPkgNamesResponse.md) ### Authorization @@ -124,32 +219,55 @@ No authorization required ## AppSRPMPkgNamesHandlerPostPost -> SrpmPkgNamesResponse AppSRPMPkgNamesHandlerPostPost(ctx, optional) +> SRPMPkgNamesResponse AppSRPMPkgNamesHandlerPostPost(ctx).SRPMPkgNamesRequest(sRPMPkgNamesRequest).Execute() -List of content sets with associated rpm names by given srpm and content set. -### Required Parameters + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + sRPMPkgNamesRequest := *openapiclient.NewSRPMPkgNamesRequest([]string{"openssl"}) // SRPMPkgNamesRequest | (optional) + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.ExperimentalApi.AppSRPMPkgNamesHandlerPostPost(context.Background()).SRPMPkgNamesRequest(sRPMPkgNamesRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExperimentalApi.AppSRPMPkgNamesHandlerPostPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AppSRPMPkgNamesHandlerPostPost`: SRPMPkgNamesResponse + fmt.Fprintf(os.Stdout, "Response from `ExperimentalApi.AppSRPMPkgNamesHandlerPostPost`: %v\n", resp) +} +``` + +### Path Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. - **optional** | ***AppSRPMPkgNamesHandlerPostPostOpts** | optional parameters | nil if no parameters -### Optional Parameters +### Other Parameters -Optional parameters are passed through a pointer to a AppSRPMPkgNamesHandlerPostPostOpts struct +Other parameters are passed through a pointer to a apiAppSRPMPkgNamesHandlerPostPostRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **srpmPkgNamesRequest** | [**optional.Interface of SrpmPkgNamesRequest**](SrpmPkgNamesRequest.md)| | + **sRPMPkgNamesRequest** | [**SRPMPkgNamesRequest**](SRPMPkgNamesRequest.md) | | ### Return type -[**SrpmPkgNamesResponse**](SRPMPkgNamesResponse.md) +[**SRPMPkgNamesResponse**](SRPMPkgNamesResponse.md) ### Authorization diff --git a/vmaas/docs/PackagesRequest.md b/vmaas/docs/PackagesRequest.md index 71b4df2..b2b8dcc 100644 --- a/vmaas/docs/PackagesRequest.md +++ b/vmaas/docs/PackagesRequest.md @@ -5,6 +5,72 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **PackageList** | **[]string** | | +**ThirdParty** | Pointer to **bool** | Include content from \"third party\" repositories into the response, disabled by default. | [optional] [default to false] + +## Methods + +### NewPackagesRequest + +`func NewPackagesRequest(packageList []string, ) *PackagesRequest` + +NewPackagesRequest instantiates a new PackagesRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPackagesRequestWithDefaults + +`func NewPackagesRequestWithDefaults() *PackagesRequest` + +NewPackagesRequestWithDefaults instantiates a new PackagesRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPackageList + +`func (o *PackagesRequest) GetPackageList() []string` + +GetPackageList returns the PackageList field if non-nil, zero value otherwise. + +### GetPackageListOk + +`func (o *PackagesRequest) GetPackageListOk() (*[]string, bool)` + +GetPackageListOk returns a tuple with the PackageList field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPackageList + +`func (o *PackagesRequest) SetPackageList(v []string)` + +SetPackageList sets PackageList field to given value. + + +### GetThirdParty + +`func (o *PackagesRequest) GetThirdParty() bool` + +GetThirdParty returns the ThirdParty field if non-nil, zero value otherwise. + +### GetThirdPartyOk + +`func (o *PackagesRequest) GetThirdPartyOk() (*bool, bool)` + +GetThirdPartyOk returns a tuple with the ThirdParty field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetThirdParty + +`func (o *PackagesRequest) SetThirdParty(v bool)` + +SetThirdParty sets ThirdParty field to given value. + +### HasThirdParty + +`func (o *PackagesRequest) HasThirdParty() bool` + +HasThirdParty returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/vmaas/docs/PackagesResponse.md b/vmaas/docs/PackagesResponse.md index f1d3366..9d8f075 100644 --- a/vmaas/docs/PackagesResponse.md +++ b/vmaas/docs/PackagesResponse.md @@ -4,7 +4,52 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**PackageList** | [**map[string]PackagesResponsePackageList**](PackagesResponse_package_list.md) | | [optional] +**PackageList** | Pointer to [**map[string]PackagesResponsePackageList**](PackagesResponse_package_list.md) | | [optional] + +## Methods + +### NewPackagesResponse + +`func NewPackagesResponse() *PackagesResponse` + +NewPackagesResponse instantiates a new PackagesResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPackagesResponseWithDefaults + +`func NewPackagesResponseWithDefaults() *PackagesResponse` + +NewPackagesResponseWithDefaults instantiates a new PackagesResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPackageList + +`func (o *PackagesResponse) GetPackageList() map[string]PackagesResponsePackageList` + +GetPackageList returns the PackageList field if non-nil, zero value otherwise. + +### GetPackageListOk + +`func (o *PackagesResponse) GetPackageListOk() (*map[string]PackagesResponsePackageList, bool)` + +GetPackageListOk returns a tuple with the PackageList field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPackageList + +`func (o *PackagesResponse) SetPackageList(v map[string]PackagesResponsePackageList)` + +SetPackageList sets PackageList field to given value. + +### HasPackageList + +`func (o *PackagesResponse) HasPackageList() bool` + +HasPackageList returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/vmaas/docs/PackagesResponsePackageList.md b/vmaas/docs/PackagesResponsePackageList.md index c63b5e7..4169dff 100644 --- a/vmaas/docs/PackagesResponsePackageList.md +++ b/vmaas/docs/PackagesResponsePackageList.md @@ -4,11 +4,156 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Summary** | **string** | | [optional] -**Description** | **string** | | [optional] -**SourcePackage** | **string** | | [optional] -**PackageList** | **[]string** | | [optional] -**Repositories** | [**[]PackagesResponseRepositories**](PackagesResponse_repositories.md) | | [optional] +**Summary** | Pointer to **string** | | [optional] +**Description** | Pointer to **string** | | [optional] +**SourcePackage** | Pointer to **string** | | [optional] +**PackageList** | Pointer to **[]string** | | [optional] +**Repositories** | Pointer to [**[]PackagesResponseRepositories**](PackagesResponseRepositories.md) | | [optional] + +## Methods + +### NewPackagesResponsePackageList + +`func NewPackagesResponsePackageList() *PackagesResponsePackageList` + +NewPackagesResponsePackageList instantiates a new PackagesResponsePackageList object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPackagesResponsePackageListWithDefaults + +`func NewPackagesResponsePackageListWithDefaults() *PackagesResponsePackageList` + +NewPackagesResponsePackageListWithDefaults instantiates a new PackagesResponsePackageList object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSummary + +`func (o *PackagesResponsePackageList) GetSummary() string` + +GetSummary returns the Summary field if non-nil, zero value otherwise. + +### GetSummaryOk + +`func (o *PackagesResponsePackageList) GetSummaryOk() (*string, bool)` + +GetSummaryOk returns a tuple with the Summary field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSummary + +`func (o *PackagesResponsePackageList) SetSummary(v string)` + +SetSummary sets Summary field to given value. + +### HasSummary + +`func (o *PackagesResponsePackageList) HasSummary() bool` + +HasSummary returns a boolean if a field has been set. + +### GetDescription + +`func (o *PackagesResponsePackageList) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *PackagesResponsePackageList) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *PackagesResponsePackageList) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *PackagesResponsePackageList) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetSourcePackage + +`func (o *PackagesResponsePackageList) GetSourcePackage() string` + +GetSourcePackage returns the SourcePackage field if non-nil, zero value otherwise. + +### GetSourcePackageOk + +`func (o *PackagesResponsePackageList) GetSourcePackageOk() (*string, bool)` + +GetSourcePackageOk returns a tuple with the SourcePackage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSourcePackage + +`func (o *PackagesResponsePackageList) SetSourcePackage(v string)` + +SetSourcePackage sets SourcePackage field to given value. + +### HasSourcePackage + +`func (o *PackagesResponsePackageList) HasSourcePackage() bool` + +HasSourcePackage returns a boolean if a field has been set. + +### GetPackageList + +`func (o *PackagesResponsePackageList) GetPackageList() []string` + +GetPackageList returns the PackageList field if non-nil, zero value otherwise. + +### GetPackageListOk + +`func (o *PackagesResponsePackageList) GetPackageListOk() (*[]string, bool)` + +GetPackageListOk returns a tuple with the PackageList field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPackageList + +`func (o *PackagesResponsePackageList) SetPackageList(v []string)` + +SetPackageList sets PackageList field to given value. + +### HasPackageList + +`func (o *PackagesResponsePackageList) HasPackageList() bool` + +HasPackageList returns a boolean if a field has been set. + +### GetRepositories + +`func (o *PackagesResponsePackageList) GetRepositories() []PackagesResponseRepositories` + +GetRepositories returns the Repositories field if non-nil, zero value otherwise. + +### GetRepositoriesOk + +`func (o *PackagesResponsePackageList) GetRepositoriesOk() (*[]PackagesResponseRepositories, bool)` + +GetRepositoriesOk returns a tuple with the Repositories field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRepositories + +`func (o *PackagesResponsePackageList) SetRepositories(v []PackagesResponseRepositories)` + +SetRepositories sets Repositories field to given value. + +### HasRepositories + +`func (o *PackagesResponsePackageList) HasRepositories() bool` + +HasRepositories returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/vmaas/docs/PackagesResponseRepositories.md b/vmaas/docs/PackagesResponseRepositories.md index 54d52f6..223b674 100644 --- a/vmaas/docs/PackagesResponseRepositories.md +++ b/vmaas/docs/PackagesResponseRepositories.md @@ -4,10 +4,130 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Label** | **string** | | [optional] -**Name** | **string** | | [optional] -**Basearch** | **string** | | [optional] -**Releasever** | **string** | | [optional] +**Label** | Pointer to **string** | | [optional] +**Name** | Pointer to **string** | | [optional] +**Basearch** | Pointer to **string** | | [optional] +**Releasever** | Pointer to **string** | | [optional] + +## Methods + +### NewPackagesResponseRepositories + +`func NewPackagesResponseRepositories() *PackagesResponseRepositories` + +NewPackagesResponseRepositories instantiates a new PackagesResponseRepositories object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPackagesResponseRepositoriesWithDefaults + +`func NewPackagesResponseRepositoriesWithDefaults() *PackagesResponseRepositories` + +NewPackagesResponseRepositoriesWithDefaults instantiates a new PackagesResponseRepositories object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetLabel + +`func (o *PackagesResponseRepositories) GetLabel() string` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *PackagesResponseRepositories) GetLabelOk() (*string, bool)` + +GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabel + +`func (o *PackagesResponseRepositories) SetLabel(v string)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *PackagesResponseRepositories) HasLabel() bool` + +HasLabel returns a boolean if a field has been set. + +### GetName + +`func (o *PackagesResponseRepositories) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *PackagesResponseRepositories) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *PackagesResponseRepositories) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *PackagesResponseRepositories) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetBasearch + +`func (o *PackagesResponseRepositories) GetBasearch() string` + +GetBasearch returns the Basearch field if non-nil, zero value otherwise. + +### GetBasearchOk + +`func (o *PackagesResponseRepositories) GetBasearchOk() (*string, bool)` + +GetBasearchOk returns a tuple with the Basearch field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBasearch + +`func (o *PackagesResponseRepositories) SetBasearch(v string)` + +SetBasearch sets Basearch field to given value. + +### HasBasearch + +`func (o *PackagesResponseRepositories) HasBasearch() bool` + +HasBasearch returns a boolean if a field has been set. + +### GetReleasever + +`func (o *PackagesResponseRepositories) GetReleasever() string` + +GetReleasever returns the Releasever field if non-nil, zero value otherwise. + +### GetReleaseverOk + +`func (o *PackagesResponseRepositories) GetReleaseverOk() (*string, bool)` + +GetReleaseverOk returns a tuple with the Releasever field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReleasever + +`func (o *PackagesResponseRepositories) SetReleasever(v string)` + +SetReleasever sets Releasever field to given value. + +### HasReleasever + +`func (o *PackagesResponseRepositories) HasReleasever() bool` + +HasReleasever returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/vmaas/docs/PatchesRequest.md b/vmaas/docs/PatchesRequest.md index f022f9a..854eb2c 100644 --- a/vmaas/docs/PatchesRequest.md +++ b/vmaas/docs/PatchesRequest.md @@ -5,10 +5,176 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **PackageList** | **[]string** | | -**RepositoryList** | **[]string** | | [optional] -**ModulesList** | [**[]UpdatesRequestModulesList**](UpdatesRequest_modules_list.md) | | [optional] -**Releasever** | **string** | | [optional] -**Basearch** | **string** | | [optional] +**RepositoryList** | Pointer to **[]string** | | [optional] +**ModulesList** | Pointer to [**[]UpdatesV3RequestModulesList**](UpdatesV3RequestModulesList.md) | | [optional] +**Releasever** | Pointer to **string** | | [optional] +**Basearch** | Pointer to **string** | | [optional] +**ThirdParty** | Pointer to **bool** | Include content from \"third party\" repositories into the response, disabled by default. | [optional] [default to false] + +## Methods + +### NewPatchesRequest + +`func NewPatchesRequest(packageList []string, ) *PatchesRequest` + +NewPatchesRequest instantiates a new PatchesRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPatchesRequestWithDefaults + +`func NewPatchesRequestWithDefaults() *PatchesRequest` + +NewPatchesRequestWithDefaults instantiates a new PatchesRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPackageList + +`func (o *PatchesRequest) GetPackageList() []string` + +GetPackageList returns the PackageList field if non-nil, zero value otherwise. + +### GetPackageListOk + +`func (o *PatchesRequest) GetPackageListOk() (*[]string, bool)` + +GetPackageListOk returns a tuple with the PackageList field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPackageList + +`func (o *PatchesRequest) SetPackageList(v []string)` + +SetPackageList sets PackageList field to given value. + + +### GetRepositoryList + +`func (o *PatchesRequest) GetRepositoryList() []string` + +GetRepositoryList returns the RepositoryList field if non-nil, zero value otherwise. + +### GetRepositoryListOk + +`func (o *PatchesRequest) GetRepositoryListOk() (*[]string, bool)` + +GetRepositoryListOk returns a tuple with the RepositoryList field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRepositoryList + +`func (o *PatchesRequest) SetRepositoryList(v []string)` + +SetRepositoryList sets RepositoryList field to given value. + +### HasRepositoryList + +`func (o *PatchesRequest) HasRepositoryList() bool` + +HasRepositoryList returns a boolean if a field has been set. + +### GetModulesList + +`func (o *PatchesRequest) GetModulesList() []UpdatesV3RequestModulesList` + +GetModulesList returns the ModulesList field if non-nil, zero value otherwise. + +### GetModulesListOk + +`func (o *PatchesRequest) GetModulesListOk() (*[]UpdatesV3RequestModulesList, bool)` + +GetModulesListOk returns a tuple with the ModulesList field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModulesList + +`func (o *PatchesRequest) SetModulesList(v []UpdatesV3RequestModulesList)` + +SetModulesList sets ModulesList field to given value. + +### HasModulesList + +`func (o *PatchesRequest) HasModulesList() bool` + +HasModulesList returns a boolean if a field has been set. + +### GetReleasever + +`func (o *PatchesRequest) GetReleasever() string` + +GetReleasever returns the Releasever field if non-nil, zero value otherwise. + +### GetReleaseverOk + +`func (o *PatchesRequest) GetReleaseverOk() (*string, bool)` + +GetReleaseverOk returns a tuple with the Releasever field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReleasever + +`func (o *PatchesRequest) SetReleasever(v string)` + +SetReleasever sets Releasever field to given value. + +### HasReleasever + +`func (o *PatchesRequest) HasReleasever() bool` + +HasReleasever returns a boolean if a field has been set. + +### GetBasearch + +`func (o *PatchesRequest) GetBasearch() string` + +GetBasearch returns the Basearch field if non-nil, zero value otherwise. + +### GetBasearchOk + +`func (o *PatchesRequest) GetBasearchOk() (*string, bool)` + +GetBasearchOk returns a tuple with the Basearch field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBasearch + +`func (o *PatchesRequest) SetBasearch(v string)` + +SetBasearch sets Basearch field to given value. + +### HasBasearch + +`func (o *PatchesRequest) HasBasearch() bool` + +HasBasearch returns a boolean if a field has been set. + +### GetThirdParty + +`func (o *PatchesRequest) GetThirdParty() bool` + +GetThirdParty returns the ThirdParty field if non-nil, zero value otherwise. + +### GetThirdPartyOk + +`func (o *PatchesRequest) GetThirdPartyOk() (*bool, bool)` + +GetThirdPartyOk returns a tuple with the ThirdParty field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetThirdParty + +`func (o *PatchesRequest) SetThirdParty(v bool)` + +SetThirdParty sets ThirdParty field to given value. + +### HasThirdParty + +`func (o *PatchesRequest) HasThirdParty() bool` + +HasThirdParty returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/vmaas/docs/PatchesResponse.md b/vmaas/docs/PatchesResponse.md index 3de602c..7535051 100644 --- a/vmaas/docs/PatchesResponse.md +++ b/vmaas/docs/PatchesResponse.md @@ -4,7 +4,52 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ErrataList** | **[]string** | | [optional] +**ErrataList** | Pointer to **[]string** | | [optional] + +## Methods + +### NewPatchesResponse + +`func NewPatchesResponse() *PatchesResponse` + +NewPatchesResponse instantiates a new PatchesResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPatchesResponseWithDefaults + +`func NewPatchesResponseWithDefaults() *PatchesResponse` + +NewPatchesResponseWithDefaults instantiates a new PatchesResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetErrataList + +`func (o *PatchesResponse) GetErrataList() []string` + +GetErrataList returns the ErrataList field if non-nil, zero value otherwise. + +### GetErrataListOk + +`func (o *PatchesResponse) GetErrataListOk() (*[]string, bool)` + +GetErrataListOk returns a tuple with the ErrataList field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetErrataList + +`func (o *PatchesResponse) SetErrataList(v []string)` + +SetErrataList sets ErrataList field to given value. + +### HasErrataList + +`func (o *PatchesResponse) HasErrataList() bool` + +HasErrataList returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/vmaas/docs/PkgtreeRequest.md b/vmaas/docs/PkgtreeRequest.md index 0a8379b..235750c 100644 --- a/vmaas/docs/PkgtreeRequest.md +++ b/vmaas/docs/PkgtreeRequest.md @@ -5,6 +5,72 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **PackageNameList** | **[]string** | | +**ThirdParty** | Pointer to **bool** | Include content from \"third party\" repositories into the response, disabled by default. | [optional] [default to false] + +## Methods + +### NewPkgtreeRequest + +`func NewPkgtreeRequest(packageNameList []string, ) *PkgtreeRequest` + +NewPkgtreeRequest instantiates a new PkgtreeRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPkgtreeRequestWithDefaults + +`func NewPkgtreeRequestWithDefaults() *PkgtreeRequest` + +NewPkgtreeRequestWithDefaults instantiates a new PkgtreeRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPackageNameList + +`func (o *PkgtreeRequest) GetPackageNameList() []string` + +GetPackageNameList returns the PackageNameList field if non-nil, zero value otherwise. + +### GetPackageNameListOk + +`func (o *PkgtreeRequest) GetPackageNameListOk() (*[]string, bool)` + +GetPackageNameListOk returns a tuple with the PackageNameList field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPackageNameList + +`func (o *PkgtreeRequest) SetPackageNameList(v []string)` + +SetPackageNameList sets PackageNameList field to given value. + + +### GetThirdParty + +`func (o *PkgtreeRequest) GetThirdParty() bool` + +GetThirdParty returns the ThirdParty field if non-nil, zero value otherwise. + +### GetThirdPartyOk + +`func (o *PkgtreeRequest) GetThirdPartyOk() (*bool, bool)` + +GetThirdPartyOk returns a tuple with the ThirdParty field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetThirdParty + +`func (o *PkgtreeRequest) SetThirdParty(v bool)` + +SetThirdParty sets ThirdParty field to given value. + +### HasThirdParty + +`func (o *PkgtreeRequest) HasThirdParty() bool` + +HasThirdParty returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/vmaas/docs/PkgtreeResponse.md b/vmaas/docs/PkgtreeResponse.md index 4c4fbb4..8ca2c84 100644 --- a/vmaas/docs/PkgtreeResponse.md +++ b/vmaas/docs/PkgtreeResponse.md @@ -4,8 +4,88 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**LastChange** | [**interface{}**](.md) | | [optional] -**PackageNameList** | [**map[string][]map[string]interface{}**](array.md) | | [optional] +**LastChange** | Pointer to **interface{}** | | [optional] +**PackageNameList** | Pointer to **map[string][]map[string]interface{}** | | [optional] + +## Methods + +### NewPkgtreeResponse + +`func NewPkgtreeResponse() *PkgtreeResponse` + +NewPkgtreeResponse instantiates a new PkgtreeResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPkgtreeResponseWithDefaults + +`func NewPkgtreeResponseWithDefaults() *PkgtreeResponse` + +NewPkgtreeResponseWithDefaults instantiates a new PkgtreeResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetLastChange + +`func (o *PkgtreeResponse) GetLastChange() interface{}` + +GetLastChange returns the LastChange field if non-nil, zero value otherwise. + +### GetLastChangeOk + +`func (o *PkgtreeResponse) GetLastChangeOk() (*interface{}, bool)` + +GetLastChangeOk returns a tuple with the LastChange field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastChange + +`func (o *PkgtreeResponse) SetLastChange(v interface{})` + +SetLastChange sets LastChange field to given value. + +### HasLastChange + +`func (o *PkgtreeResponse) HasLastChange() bool` + +HasLastChange returns a boolean if a field has been set. + +### SetLastChangeNil + +`func (o *PkgtreeResponse) SetLastChangeNil(b bool)` + + SetLastChangeNil sets the value for LastChange to be an explicit nil + +### UnsetLastChange +`func (o *PkgtreeResponse) UnsetLastChange()` + +UnsetLastChange ensures that no value is present for LastChange, not even an explicit nil +### GetPackageNameList + +`func (o *PkgtreeResponse) GetPackageNameList() map[string][]map[string]interface{}` + +GetPackageNameList returns the PackageNameList field if non-nil, zero value otherwise. + +### GetPackageNameListOk + +`func (o *PkgtreeResponse) GetPackageNameListOk() (*map[string][]map[string]interface{}, bool)` + +GetPackageNameListOk returns a tuple with the PackageNameList field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPackageNameList + +`func (o *PkgtreeResponse) SetPackageNameList(v map[string][]map[string]interface{})` + +SetPackageNameList sets PackageNameList field to given value. + +### HasPackageNameList + +`func (o *PkgtreeResponse) HasPackageNameList() bool` + +HasPackageNameList returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/vmaas/docs/RPMPkgNamesRequest.md b/vmaas/docs/RPMPkgNamesRequest.md new file mode 100644 index 0000000..7d14bf2 --- /dev/null +++ b/vmaas/docs/RPMPkgNamesRequest.md @@ -0,0 +1,103 @@ +# RPMPkgNamesRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**RpmNameList** | **[]string** | | +**ContentSetList** | Pointer to **[]string** | | [optional] +**ThirdParty** | Pointer to **bool** | Include content from \"third party\" repositories into the response, disabled by default. | [optional] [default to false] + +## Methods + +### NewRPMPkgNamesRequest + +`func NewRPMPkgNamesRequest(rpmNameList []string, ) *RPMPkgNamesRequest` + +NewRPMPkgNamesRequest instantiates a new RPMPkgNamesRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRPMPkgNamesRequestWithDefaults + +`func NewRPMPkgNamesRequestWithDefaults() *RPMPkgNamesRequest` + +NewRPMPkgNamesRequestWithDefaults instantiates a new RPMPkgNamesRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetRpmNameList + +`func (o *RPMPkgNamesRequest) GetRpmNameList() []string` + +GetRpmNameList returns the RpmNameList field if non-nil, zero value otherwise. + +### GetRpmNameListOk + +`func (o *RPMPkgNamesRequest) GetRpmNameListOk() (*[]string, bool)` + +GetRpmNameListOk returns a tuple with the RpmNameList field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRpmNameList + +`func (o *RPMPkgNamesRequest) SetRpmNameList(v []string)` + +SetRpmNameList sets RpmNameList field to given value. + + +### GetContentSetList + +`func (o *RPMPkgNamesRequest) GetContentSetList() []string` + +GetContentSetList returns the ContentSetList field if non-nil, zero value otherwise. + +### GetContentSetListOk + +`func (o *RPMPkgNamesRequest) GetContentSetListOk() (*[]string, bool)` + +GetContentSetListOk returns a tuple with the ContentSetList field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContentSetList + +`func (o *RPMPkgNamesRequest) SetContentSetList(v []string)` + +SetContentSetList sets ContentSetList field to given value. + +### HasContentSetList + +`func (o *RPMPkgNamesRequest) HasContentSetList() bool` + +HasContentSetList returns a boolean if a field has been set. + +### GetThirdParty + +`func (o *RPMPkgNamesRequest) GetThirdParty() bool` + +GetThirdParty returns the ThirdParty field if non-nil, zero value otherwise. + +### GetThirdPartyOk + +`func (o *RPMPkgNamesRequest) GetThirdPartyOk() (*bool, bool)` + +GetThirdPartyOk returns a tuple with the ThirdParty field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetThirdParty + +`func (o *RPMPkgNamesRequest) SetThirdParty(v bool)` + +SetThirdParty sets ThirdParty field to given value. + +### HasThirdParty + +`func (o *RPMPkgNamesRequest) HasThirdParty() bool` + +HasThirdParty returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/vmaas/docs/RPMPkgNamesResponse.md b/vmaas/docs/RPMPkgNamesResponse.md new file mode 100644 index 0000000..462e20d --- /dev/null +++ b/vmaas/docs/RPMPkgNamesResponse.md @@ -0,0 +1,92 @@ +# RPMPkgNamesResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**LastChange** | Pointer to **interface{}** | | [optional] +**RpmNameList** | Pointer to **map[string][]string** | | [optional] + +## Methods + +### NewRPMPkgNamesResponse + +`func NewRPMPkgNamesResponse() *RPMPkgNamesResponse` + +NewRPMPkgNamesResponse instantiates a new RPMPkgNamesResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRPMPkgNamesResponseWithDefaults + +`func NewRPMPkgNamesResponseWithDefaults() *RPMPkgNamesResponse` + +NewRPMPkgNamesResponseWithDefaults instantiates a new RPMPkgNamesResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetLastChange + +`func (o *RPMPkgNamesResponse) GetLastChange() interface{}` + +GetLastChange returns the LastChange field if non-nil, zero value otherwise. + +### GetLastChangeOk + +`func (o *RPMPkgNamesResponse) GetLastChangeOk() (*interface{}, bool)` + +GetLastChangeOk returns a tuple with the LastChange field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastChange + +`func (o *RPMPkgNamesResponse) SetLastChange(v interface{})` + +SetLastChange sets LastChange field to given value. + +### HasLastChange + +`func (o *RPMPkgNamesResponse) HasLastChange() bool` + +HasLastChange returns a boolean if a field has been set. + +### SetLastChangeNil + +`func (o *RPMPkgNamesResponse) SetLastChangeNil(b bool)` + + SetLastChangeNil sets the value for LastChange to be an explicit nil + +### UnsetLastChange +`func (o *RPMPkgNamesResponse) UnsetLastChange()` + +UnsetLastChange ensures that no value is present for LastChange, not even an explicit nil +### GetRpmNameList + +`func (o *RPMPkgNamesResponse) GetRpmNameList() map[string][]string` + +GetRpmNameList returns the RpmNameList field if non-nil, zero value otherwise. + +### GetRpmNameListOk + +`func (o *RPMPkgNamesResponse) GetRpmNameListOk() (*map[string][]string, bool)` + +GetRpmNameListOk returns a tuple with the RpmNameList field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRpmNameList + +`func (o *RPMPkgNamesResponse) SetRpmNameList(v map[string][]string)` + +SetRpmNameList sets RpmNameList field to given value. + +### HasRpmNameList + +`func (o *RPMPkgNamesResponse) HasRpmNameList() bool` + +HasRpmNameList returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/vmaas/docs/ReposRequest.md b/vmaas/docs/ReposRequest.md index ecf063a..75cf37f 100644 --- a/vmaas/docs/ReposRequest.md +++ b/vmaas/docs/ReposRequest.md @@ -4,10 +4,151 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Page** | **float32** | | [optional] -**PageSize** | **float32** | | [optional] +**Page** | Pointer to **float32** | | [optional] +**PageSize** | Pointer to **float32** | | [optional] **RepositoryList** | **[]string** | | -**ModifiedSince** | **string** | Return only repositories changed after the given date | [optional] +**ModifiedSince** | Pointer to **time.Time** | Return only repositories changed after the given date | [optional] +**ThirdParty** | Pointer to **bool** | Include content from \"third party\" repositories into the response, disabled by default. | [optional] [default to false] + +## Methods + +### NewReposRequest + +`func NewReposRequest(repositoryList []string, ) *ReposRequest` + +NewReposRequest instantiates a new ReposRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewReposRequestWithDefaults + +`func NewReposRequestWithDefaults() *ReposRequest` + +NewReposRequestWithDefaults instantiates a new ReposRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPage + +`func (o *ReposRequest) GetPage() float32` + +GetPage returns the Page field if non-nil, zero value otherwise. + +### GetPageOk + +`func (o *ReposRequest) GetPageOk() (*float32, bool)` + +GetPageOk returns a tuple with the Page field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPage + +`func (o *ReposRequest) SetPage(v float32)` + +SetPage sets Page field to given value. + +### HasPage + +`func (o *ReposRequest) HasPage() bool` + +HasPage returns a boolean if a field has been set. + +### GetPageSize + +`func (o *ReposRequest) GetPageSize() float32` + +GetPageSize returns the PageSize field if non-nil, zero value otherwise. + +### GetPageSizeOk + +`func (o *ReposRequest) GetPageSizeOk() (*float32, bool)` + +GetPageSizeOk returns a tuple with the PageSize field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPageSize + +`func (o *ReposRequest) SetPageSize(v float32)` + +SetPageSize sets PageSize field to given value. + +### HasPageSize + +`func (o *ReposRequest) HasPageSize() bool` + +HasPageSize returns a boolean if a field has been set. + +### GetRepositoryList + +`func (o *ReposRequest) GetRepositoryList() []string` + +GetRepositoryList returns the RepositoryList field if non-nil, zero value otherwise. + +### GetRepositoryListOk + +`func (o *ReposRequest) GetRepositoryListOk() (*[]string, bool)` + +GetRepositoryListOk returns a tuple with the RepositoryList field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRepositoryList + +`func (o *ReposRequest) SetRepositoryList(v []string)` + +SetRepositoryList sets RepositoryList field to given value. + + +### GetModifiedSince + +`func (o *ReposRequest) GetModifiedSince() time.Time` + +GetModifiedSince returns the ModifiedSince field if non-nil, zero value otherwise. + +### GetModifiedSinceOk + +`func (o *ReposRequest) GetModifiedSinceOk() (*time.Time, bool)` + +GetModifiedSinceOk returns a tuple with the ModifiedSince field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModifiedSince + +`func (o *ReposRequest) SetModifiedSince(v time.Time)` + +SetModifiedSince sets ModifiedSince field to given value. + +### HasModifiedSince + +`func (o *ReposRequest) HasModifiedSince() bool` + +HasModifiedSince returns a boolean if a field has been set. + +### GetThirdParty + +`func (o *ReposRequest) GetThirdParty() bool` + +GetThirdParty returns the ThirdParty field if non-nil, zero value otherwise. + +### GetThirdPartyOk + +`func (o *ReposRequest) GetThirdPartyOk() (*bool, bool)` + +GetThirdPartyOk returns a tuple with the ThirdParty field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetThirdParty + +`func (o *ReposRequest) SetThirdParty(v bool)` + +SetThirdParty sets ThirdParty field to given value. + +### HasThirdParty + +`func (o *ReposRequest) HasThirdParty() bool` + +HasThirdParty returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/vmaas/docs/ReposResponse.md b/vmaas/docs/ReposResponse.md index 6a1b1d5..72d7e9c 100644 --- a/vmaas/docs/ReposResponse.md +++ b/vmaas/docs/ReposResponse.md @@ -4,10 +4,130 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Page** | **float32** | | [optional] -**PageSize** | **float32** | | [optional] -**Pages** | **float32** | | [optional] -**RepositoryList** | [**map[string][]map[string]interface{}**](array.md) | | [optional] +**Page** | Pointer to **float32** | | [optional] +**PageSize** | Pointer to **float32** | | [optional] +**Pages** | Pointer to **float32** | | [optional] +**RepositoryList** | Pointer to **map[string][]map[string]interface{}** | | [optional] + +## Methods + +### NewReposResponse + +`func NewReposResponse() *ReposResponse` + +NewReposResponse instantiates a new ReposResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewReposResponseWithDefaults + +`func NewReposResponseWithDefaults() *ReposResponse` + +NewReposResponseWithDefaults instantiates a new ReposResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPage + +`func (o *ReposResponse) GetPage() float32` + +GetPage returns the Page field if non-nil, zero value otherwise. + +### GetPageOk + +`func (o *ReposResponse) GetPageOk() (*float32, bool)` + +GetPageOk returns a tuple with the Page field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPage + +`func (o *ReposResponse) SetPage(v float32)` + +SetPage sets Page field to given value. + +### HasPage + +`func (o *ReposResponse) HasPage() bool` + +HasPage returns a boolean if a field has been set. + +### GetPageSize + +`func (o *ReposResponse) GetPageSize() float32` + +GetPageSize returns the PageSize field if non-nil, zero value otherwise. + +### GetPageSizeOk + +`func (o *ReposResponse) GetPageSizeOk() (*float32, bool)` + +GetPageSizeOk returns a tuple with the PageSize field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPageSize + +`func (o *ReposResponse) SetPageSize(v float32)` + +SetPageSize sets PageSize field to given value. + +### HasPageSize + +`func (o *ReposResponse) HasPageSize() bool` + +HasPageSize returns a boolean if a field has been set. + +### GetPages + +`func (o *ReposResponse) GetPages() float32` + +GetPages returns the Pages field if non-nil, zero value otherwise. + +### GetPagesOk + +`func (o *ReposResponse) GetPagesOk() (*float32, bool)` + +GetPagesOk returns a tuple with the Pages field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPages + +`func (o *ReposResponse) SetPages(v float32)` + +SetPages sets Pages field to given value. + +### HasPages + +`func (o *ReposResponse) HasPages() bool` + +HasPages returns a boolean if a field has been set. + +### GetRepositoryList + +`func (o *ReposResponse) GetRepositoryList() map[string][]map[string]interface{}` + +GetRepositoryList returns the RepositoryList field if non-nil, zero value otherwise. + +### GetRepositoryListOk + +`func (o *ReposResponse) GetRepositoryListOk() (*map[string][]map[string]interface{}, bool)` + +GetRepositoryListOk returns a tuple with the RepositoryList field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRepositoryList + +`func (o *ReposResponse) SetRepositoryList(v map[string][]map[string]interface{})` + +SetRepositoryList sets RepositoryList field to given value. + +### HasRepositoryList + +`func (o *ReposResponse) HasRepositoryList() bool` + +HasRepositoryList returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/vmaas/docs/RpmPkgNamesRequest.md b/vmaas/docs/RpmPkgNamesRequest.md deleted file mode 100644 index 3edc5e3..0000000 --- a/vmaas/docs/RpmPkgNamesRequest.md +++ /dev/null @@ -1,12 +0,0 @@ -# RpmPkgNamesRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**RpmNameList** | **[]string** | | -**ContentSetList** | **[]string** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/vmaas/docs/RpmPkgNamesResponse.md b/vmaas/docs/RpmPkgNamesResponse.md deleted file mode 100644 index f8b7f90..0000000 --- a/vmaas/docs/RpmPkgNamesResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# RpmPkgNamesResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**LastChange** | [**interface{}**](.md) | | [optional] -**RpmNameList** | [**map[string][]string**](array.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/vmaas/docs/SRPMPkgNamesRequest.md b/vmaas/docs/SRPMPkgNamesRequest.md new file mode 100644 index 0000000..c8bd84e --- /dev/null +++ b/vmaas/docs/SRPMPkgNamesRequest.md @@ -0,0 +1,103 @@ +# SRPMPkgNamesRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SrpmNameList** | **[]string** | | +**ContentSetList** | Pointer to **[]string** | | [optional] +**ThirdParty** | Pointer to **bool** | Include content from \"third party\" repositories into the response, disabled by default. | [optional] [default to false] + +## Methods + +### NewSRPMPkgNamesRequest + +`func NewSRPMPkgNamesRequest(srpmNameList []string, ) *SRPMPkgNamesRequest` + +NewSRPMPkgNamesRequest instantiates a new SRPMPkgNamesRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSRPMPkgNamesRequestWithDefaults + +`func NewSRPMPkgNamesRequestWithDefaults() *SRPMPkgNamesRequest` + +NewSRPMPkgNamesRequestWithDefaults instantiates a new SRPMPkgNamesRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSrpmNameList + +`func (o *SRPMPkgNamesRequest) GetSrpmNameList() []string` + +GetSrpmNameList returns the SrpmNameList field if non-nil, zero value otherwise. + +### GetSrpmNameListOk + +`func (o *SRPMPkgNamesRequest) GetSrpmNameListOk() (*[]string, bool)` + +GetSrpmNameListOk returns a tuple with the SrpmNameList field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSrpmNameList + +`func (o *SRPMPkgNamesRequest) SetSrpmNameList(v []string)` + +SetSrpmNameList sets SrpmNameList field to given value. + + +### GetContentSetList + +`func (o *SRPMPkgNamesRequest) GetContentSetList() []string` + +GetContentSetList returns the ContentSetList field if non-nil, zero value otherwise. + +### GetContentSetListOk + +`func (o *SRPMPkgNamesRequest) GetContentSetListOk() (*[]string, bool)` + +GetContentSetListOk returns a tuple with the ContentSetList field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContentSetList + +`func (o *SRPMPkgNamesRequest) SetContentSetList(v []string)` + +SetContentSetList sets ContentSetList field to given value. + +### HasContentSetList + +`func (o *SRPMPkgNamesRequest) HasContentSetList() bool` + +HasContentSetList returns a boolean if a field has been set. + +### GetThirdParty + +`func (o *SRPMPkgNamesRequest) GetThirdParty() bool` + +GetThirdParty returns the ThirdParty field if non-nil, zero value otherwise. + +### GetThirdPartyOk + +`func (o *SRPMPkgNamesRequest) GetThirdPartyOk() (*bool, bool)` + +GetThirdPartyOk returns a tuple with the ThirdParty field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetThirdParty + +`func (o *SRPMPkgNamesRequest) SetThirdParty(v bool)` + +SetThirdParty sets ThirdParty field to given value. + +### HasThirdParty + +`func (o *SRPMPkgNamesRequest) HasThirdParty() bool` + +HasThirdParty returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/vmaas/docs/SRPMPkgNamesResponse.md b/vmaas/docs/SRPMPkgNamesResponse.md new file mode 100644 index 0000000..5f31b73 --- /dev/null +++ b/vmaas/docs/SRPMPkgNamesResponse.md @@ -0,0 +1,92 @@ +# SRPMPkgNamesResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**LastChange** | Pointer to **interface{}** | | [optional] +**SrpmNameList** | Pointer to [**map[string]map[string][]string**](map.md) | | [optional] + +## Methods + +### NewSRPMPkgNamesResponse + +`func NewSRPMPkgNamesResponse() *SRPMPkgNamesResponse` + +NewSRPMPkgNamesResponse instantiates a new SRPMPkgNamesResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSRPMPkgNamesResponseWithDefaults + +`func NewSRPMPkgNamesResponseWithDefaults() *SRPMPkgNamesResponse` + +NewSRPMPkgNamesResponseWithDefaults instantiates a new SRPMPkgNamesResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetLastChange + +`func (o *SRPMPkgNamesResponse) GetLastChange() interface{}` + +GetLastChange returns the LastChange field if non-nil, zero value otherwise. + +### GetLastChangeOk + +`func (o *SRPMPkgNamesResponse) GetLastChangeOk() (*interface{}, bool)` + +GetLastChangeOk returns a tuple with the LastChange field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastChange + +`func (o *SRPMPkgNamesResponse) SetLastChange(v interface{})` + +SetLastChange sets LastChange field to given value. + +### HasLastChange + +`func (o *SRPMPkgNamesResponse) HasLastChange() bool` + +HasLastChange returns a boolean if a field has been set. + +### SetLastChangeNil + +`func (o *SRPMPkgNamesResponse) SetLastChangeNil(b bool)` + + SetLastChangeNil sets the value for LastChange to be an explicit nil + +### UnsetLastChange +`func (o *SRPMPkgNamesResponse) UnsetLastChange()` + +UnsetLastChange ensures that no value is present for LastChange, not even an explicit nil +### GetSrpmNameList + +`func (o *SRPMPkgNamesResponse) GetSrpmNameList() map[string]map[string][]string` + +GetSrpmNameList returns the SrpmNameList field if non-nil, zero value otherwise. + +### GetSrpmNameListOk + +`func (o *SRPMPkgNamesResponse) GetSrpmNameListOk() (*map[string]map[string][]string, bool)` + +GetSrpmNameListOk returns a tuple with the SrpmNameList field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSrpmNameList + +`func (o *SRPMPkgNamesResponse) SetSrpmNameList(v map[string]map[string][]string)` + +SetSrpmNameList sets SrpmNameList field to given value. + +### HasSrpmNameList + +`func (o *SRPMPkgNamesResponse) HasSrpmNameList() bool` + +HasSrpmNameList returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/vmaas/docs/SrpmPkgNamesRequest.md b/vmaas/docs/SrpmPkgNamesRequest.md deleted file mode 100644 index dadf4a3..0000000 --- a/vmaas/docs/SrpmPkgNamesRequest.md +++ /dev/null @@ -1,12 +0,0 @@ -# SrpmPkgNamesRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**SrpmNameList** | **[]string** | | -**ContentSetList** | **[]string** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/vmaas/docs/SrpmPkgNamesResponse.md b/vmaas/docs/SrpmPkgNamesResponse.md deleted file mode 100644 index 6e89c2b..0000000 --- a/vmaas/docs/SrpmPkgNamesResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# SrpmPkgNamesResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**LastChange** | [**interface{}**](.md) | | [optional] -**SrpmNameList** | [**map[string]map[string][]string**](map.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/vmaas/docs/UpdatesRequest.md b/vmaas/docs/UpdatesRequest.md deleted file mode 100644 index f3c8d02..0000000 --- a/vmaas/docs/UpdatesRequest.md +++ /dev/null @@ -1,16 +0,0 @@ -# UpdatesRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**PackageList** | **[]string** | | -**RepositoryList** | **[]string** | | [optional] -**ModulesList** | [**[]UpdatesRequestModulesList**](UpdatesRequest_modules_list.md) | | [optional] -**Releasever** | **string** | | [optional] -**Basearch** | **string** | | [optional] -**LatestOnly** | **bool** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/vmaas/docs/UpdatesRequestModulesList.md b/vmaas/docs/UpdatesRequestModulesList.md deleted file mode 100644 index 53922bc..0000000 --- a/vmaas/docs/UpdatesRequestModulesList.md +++ /dev/null @@ -1,12 +0,0 @@ -# UpdatesRequestModulesList - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ModuleName** | **string** | | -**ModuleStream** | **string** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/vmaas/docs/UpdatesResponse.md b/vmaas/docs/UpdatesResponse.md deleted file mode 100644 index 6d03f77..0000000 --- a/vmaas/docs/UpdatesResponse.md +++ /dev/null @@ -1,15 +0,0 @@ -# UpdatesResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**UpdateList** | [**map[string]UpdatesResponseUpdateList**](UpdatesResponse_update_list.md) | | [optional] -**RepositoryList** | **[]string** | | [optional] -**ModulesList** | [**[]UpdatesRequestModulesList**](UpdatesRequest_modules_list.md) | | [optional] -**Releasever** | **string** | | [optional] -**Basearch** | **string** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/vmaas/docs/UpdatesResponseAvailableUpdates.md b/vmaas/docs/UpdatesResponseAvailableUpdates.md deleted file mode 100644 index 91b9412..0000000 --- a/vmaas/docs/UpdatesResponseAvailableUpdates.md +++ /dev/null @@ -1,15 +0,0 @@ -# UpdatesResponseAvailableUpdates - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Repository** | **string** | | [optional] -**Releasever** | **string** | | [optional] -**Basearch** | **string** | | [optional] -**Erratum** | **string** | | [optional] -**Package** | **string** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/vmaas/docs/UpdatesResponseUpdateList.md b/vmaas/docs/UpdatesResponseUpdateList.md deleted file mode 100644 index 33188f8..0000000 --- a/vmaas/docs/UpdatesResponseUpdateList.md +++ /dev/null @@ -1,13 +0,0 @@ -# UpdatesResponseUpdateList - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**AvailableUpdates** | [**[]UpdatesResponseAvailableUpdates**](UpdatesResponse_available_updates.md) | | [optional] -**Description** | **string** | | [optional] -**Summary** | **string** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/vmaas/docs/UpdatesV2Response.md b/vmaas/docs/UpdatesV2Response.md index 4c1df09..869a019 100644 --- a/vmaas/docs/UpdatesV2Response.md +++ b/vmaas/docs/UpdatesV2Response.md @@ -4,11 +4,156 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**UpdateList** | [**map[string]UpdatesV2ResponseUpdateList**](UpdatesV2Response_update_list.md) | | [optional] -**RepositoryList** | **[]string** | | [optional] -**ModulesList** | [**[]UpdatesRequestModulesList**](UpdatesRequest_modules_list.md) | | [optional] -**Releasever** | **string** | | [optional] -**Basearch** | **string** | | [optional] +**UpdateList** | Pointer to [**map[string]UpdatesV2ResponseUpdateList**](UpdatesV2Response_update_list.md) | | [optional] +**RepositoryList** | Pointer to **[]string** | | [optional] +**ModulesList** | Pointer to [**[]UpdatesV3RequestModulesList**](UpdatesV3RequestModulesList.md) | | [optional] +**Releasever** | Pointer to **string** | | [optional] +**Basearch** | Pointer to **string** | | [optional] + +## Methods + +### NewUpdatesV2Response + +`func NewUpdatesV2Response() *UpdatesV2Response` + +NewUpdatesV2Response instantiates a new UpdatesV2Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewUpdatesV2ResponseWithDefaults + +`func NewUpdatesV2ResponseWithDefaults() *UpdatesV2Response` + +NewUpdatesV2ResponseWithDefaults instantiates a new UpdatesV2Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetUpdateList + +`func (o *UpdatesV2Response) GetUpdateList() map[string]UpdatesV2ResponseUpdateList` + +GetUpdateList returns the UpdateList field if non-nil, zero value otherwise. + +### GetUpdateListOk + +`func (o *UpdatesV2Response) GetUpdateListOk() (*map[string]UpdatesV2ResponseUpdateList, bool)` + +GetUpdateListOk returns a tuple with the UpdateList field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdateList + +`func (o *UpdatesV2Response) SetUpdateList(v map[string]UpdatesV2ResponseUpdateList)` + +SetUpdateList sets UpdateList field to given value. + +### HasUpdateList + +`func (o *UpdatesV2Response) HasUpdateList() bool` + +HasUpdateList returns a boolean if a field has been set. + +### GetRepositoryList + +`func (o *UpdatesV2Response) GetRepositoryList() []string` + +GetRepositoryList returns the RepositoryList field if non-nil, zero value otherwise. + +### GetRepositoryListOk + +`func (o *UpdatesV2Response) GetRepositoryListOk() (*[]string, bool)` + +GetRepositoryListOk returns a tuple with the RepositoryList field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRepositoryList + +`func (o *UpdatesV2Response) SetRepositoryList(v []string)` + +SetRepositoryList sets RepositoryList field to given value. + +### HasRepositoryList + +`func (o *UpdatesV2Response) HasRepositoryList() bool` + +HasRepositoryList returns a boolean if a field has been set. + +### GetModulesList + +`func (o *UpdatesV2Response) GetModulesList() []UpdatesV3RequestModulesList` + +GetModulesList returns the ModulesList field if non-nil, zero value otherwise. + +### GetModulesListOk + +`func (o *UpdatesV2Response) GetModulesListOk() (*[]UpdatesV3RequestModulesList, bool)` + +GetModulesListOk returns a tuple with the ModulesList field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModulesList + +`func (o *UpdatesV2Response) SetModulesList(v []UpdatesV3RequestModulesList)` + +SetModulesList sets ModulesList field to given value. + +### HasModulesList + +`func (o *UpdatesV2Response) HasModulesList() bool` + +HasModulesList returns a boolean if a field has been set. + +### GetReleasever + +`func (o *UpdatesV2Response) GetReleasever() string` + +GetReleasever returns the Releasever field if non-nil, zero value otherwise. + +### GetReleaseverOk + +`func (o *UpdatesV2Response) GetReleaseverOk() (*string, bool)` + +GetReleaseverOk returns a tuple with the Releasever field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReleasever + +`func (o *UpdatesV2Response) SetReleasever(v string)` + +SetReleasever sets Releasever field to given value. + +### HasReleasever + +`func (o *UpdatesV2Response) HasReleasever() bool` + +HasReleasever returns a boolean if a field has been set. + +### GetBasearch + +`func (o *UpdatesV2Response) GetBasearch() string` + +GetBasearch returns the Basearch field if non-nil, zero value otherwise. + +### GetBasearchOk + +`func (o *UpdatesV2Response) GetBasearchOk() (*string, bool)` + +GetBasearchOk returns a tuple with the Basearch field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBasearch + +`func (o *UpdatesV2Response) SetBasearch(v string)` + +SetBasearch sets Basearch field to given value. + +### HasBasearch + +`func (o *UpdatesV2Response) HasBasearch() bool` + +HasBasearch returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/vmaas/docs/UpdatesV2ResponseAvailableUpdates.md b/vmaas/docs/UpdatesV2ResponseAvailableUpdates.md new file mode 100644 index 0000000..df2141d --- /dev/null +++ b/vmaas/docs/UpdatesV2ResponseAvailableUpdates.md @@ -0,0 +1,160 @@ +# UpdatesV2ResponseAvailableUpdates + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Repository** | Pointer to **string** | | [optional] +**Releasever** | Pointer to **string** | | [optional] +**Basearch** | Pointer to **string** | | [optional] +**Erratum** | Pointer to **string** | | [optional] +**Package** | Pointer to **string** | | [optional] + +## Methods + +### NewUpdatesV2ResponseAvailableUpdates + +`func NewUpdatesV2ResponseAvailableUpdates() *UpdatesV2ResponseAvailableUpdates` + +NewUpdatesV2ResponseAvailableUpdates instantiates a new UpdatesV2ResponseAvailableUpdates object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewUpdatesV2ResponseAvailableUpdatesWithDefaults + +`func NewUpdatesV2ResponseAvailableUpdatesWithDefaults() *UpdatesV2ResponseAvailableUpdates` + +NewUpdatesV2ResponseAvailableUpdatesWithDefaults instantiates a new UpdatesV2ResponseAvailableUpdates object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetRepository + +`func (o *UpdatesV2ResponseAvailableUpdates) GetRepository() string` + +GetRepository returns the Repository field if non-nil, zero value otherwise. + +### GetRepositoryOk + +`func (o *UpdatesV2ResponseAvailableUpdates) GetRepositoryOk() (*string, bool)` + +GetRepositoryOk returns a tuple with the Repository field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRepository + +`func (o *UpdatesV2ResponseAvailableUpdates) SetRepository(v string)` + +SetRepository sets Repository field to given value. + +### HasRepository + +`func (o *UpdatesV2ResponseAvailableUpdates) HasRepository() bool` + +HasRepository returns a boolean if a field has been set. + +### GetReleasever + +`func (o *UpdatesV2ResponseAvailableUpdates) GetReleasever() string` + +GetReleasever returns the Releasever field if non-nil, zero value otherwise. + +### GetReleaseverOk + +`func (o *UpdatesV2ResponseAvailableUpdates) GetReleaseverOk() (*string, bool)` + +GetReleaseverOk returns a tuple with the Releasever field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReleasever + +`func (o *UpdatesV2ResponseAvailableUpdates) SetReleasever(v string)` + +SetReleasever sets Releasever field to given value. + +### HasReleasever + +`func (o *UpdatesV2ResponseAvailableUpdates) HasReleasever() bool` + +HasReleasever returns a boolean if a field has been set. + +### GetBasearch + +`func (o *UpdatesV2ResponseAvailableUpdates) GetBasearch() string` + +GetBasearch returns the Basearch field if non-nil, zero value otherwise. + +### GetBasearchOk + +`func (o *UpdatesV2ResponseAvailableUpdates) GetBasearchOk() (*string, bool)` + +GetBasearchOk returns a tuple with the Basearch field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBasearch + +`func (o *UpdatesV2ResponseAvailableUpdates) SetBasearch(v string)` + +SetBasearch sets Basearch field to given value. + +### HasBasearch + +`func (o *UpdatesV2ResponseAvailableUpdates) HasBasearch() bool` + +HasBasearch returns a boolean if a field has been set. + +### GetErratum + +`func (o *UpdatesV2ResponseAvailableUpdates) GetErratum() string` + +GetErratum returns the Erratum field if non-nil, zero value otherwise. + +### GetErratumOk + +`func (o *UpdatesV2ResponseAvailableUpdates) GetErratumOk() (*string, bool)` + +GetErratumOk returns a tuple with the Erratum field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetErratum + +`func (o *UpdatesV2ResponseAvailableUpdates) SetErratum(v string)` + +SetErratum sets Erratum field to given value. + +### HasErratum + +`func (o *UpdatesV2ResponseAvailableUpdates) HasErratum() bool` + +HasErratum returns a boolean if a field has been set. + +### GetPackage + +`func (o *UpdatesV2ResponseAvailableUpdates) GetPackage() string` + +GetPackage returns the Package field if non-nil, zero value otherwise. + +### GetPackageOk + +`func (o *UpdatesV2ResponseAvailableUpdates) GetPackageOk() (*string, bool)` + +GetPackageOk returns a tuple with the Package field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPackage + +`func (o *UpdatesV2ResponseAvailableUpdates) SetPackage(v string)` + +SetPackage sets Package field to given value. + +### HasPackage + +`func (o *UpdatesV2ResponseAvailableUpdates) HasPackage() bool` + +HasPackage returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/vmaas/docs/UpdatesV2ResponseUpdateList.md b/vmaas/docs/UpdatesV2ResponseUpdateList.md index 5cf9e14..e9976fa 100644 --- a/vmaas/docs/UpdatesV2ResponseUpdateList.md +++ b/vmaas/docs/UpdatesV2ResponseUpdateList.md @@ -4,7 +4,52 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**AvailableUpdates** | [**[]UpdatesResponseAvailableUpdates**](UpdatesResponse_available_updates.md) | | [optional] +**AvailableUpdates** | Pointer to [**[]UpdatesV2ResponseAvailableUpdates**](UpdatesV2ResponseAvailableUpdates.md) | | [optional] + +## Methods + +### NewUpdatesV2ResponseUpdateList + +`func NewUpdatesV2ResponseUpdateList() *UpdatesV2ResponseUpdateList` + +NewUpdatesV2ResponseUpdateList instantiates a new UpdatesV2ResponseUpdateList object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewUpdatesV2ResponseUpdateListWithDefaults + +`func NewUpdatesV2ResponseUpdateListWithDefaults() *UpdatesV2ResponseUpdateList` + +NewUpdatesV2ResponseUpdateListWithDefaults instantiates a new UpdatesV2ResponseUpdateList object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAvailableUpdates + +`func (o *UpdatesV2ResponseUpdateList) GetAvailableUpdates() []UpdatesV2ResponseAvailableUpdates` + +GetAvailableUpdates returns the AvailableUpdates field if non-nil, zero value otherwise. + +### GetAvailableUpdatesOk + +`func (o *UpdatesV2ResponseUpdateList) GetAvailableUpdatesOk() (*[]UpdatesV2ResponseAvailableUpdates, bool)` + +GetAvailableUpdatesOk returns a tuple with the AvailableUpdates field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAvailableUpdates + +`func (o *UpdatesV2ResponseUpdateList) SetAvailableUpdates(v []UpdatesV2ResponseAvailableUpdates)` + +SetAvailableUpdates sets AvailableUpdates field to given value. + +### HasAvailableUpdates + +`func (o *UpdatesV2ResponseUpdateList) HasAvailableUpdates() bool` + +HasAvailableUpdates returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/vmaas/docs/UpdatesV3Request.md b/vmaas/docs/UpdatesV3Request.md index 385076d..aa55794 100644 --- a/vmaas/docs/UpdatesV3Request.md +++ b/vmaas/docs/UpdatesV3Request.md @@ -5,12 +5,254 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **PackageList** | **[]string** | | -**RepositoryList** | **[]string** | | [optional] -**ModulesList** | [**[]UpdatesRequestModulesList**](UpdatesRequest_modules_list.md) | | [optional] -**Releasever** | **string** | | [optional] -**Basearch** | **string** | | [optional] -**SecurityOnly** | **bool** | | [optional] -**LatestOnly** | **bool** | | [optional] +**RepositoryList** | Pointer to **[]string** | | [optional] +**ModulesList** | Pointer to [**[]UpdatesV3RequestModulesList**](UpdatesV3RequestModulesList.md) | | [optional] +**Releasever** | Pointer to **string** | | [optional] +**Basearch** | Pointer to **string** | | [optional] +**SecurityOnly** | Pointer to **bool** | | [optional] +**LatestOnly** | Pointer to **bool** | | [optional] +**ThirdParty** | Pointer to **bool** | Include content from \"third party\" repositories into the response, disabled by default. | [optional] [default to false] +**OptimisticUpdates** | Pointer to **bool** | Search for updates of unknown package EVRAs. | [optional] [default to false] + +## Methods + +### NewUpdatesV3Request + +`func NewUpdatesV3Request(packageList []string, ) *UpdatesV3Request` + +NewUpdatesV3Request instantiates a new UpdatesV3Request object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewUpdatesV3RequestWithDefaults + +`func NewUpdatesV3RequestWithDefaults() *UpdatesV3Request` + +NewUpdatesV3RequestWithDefaults instantiates a new UpdatesV3Request object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPackageList + +`func (o *UpdatesV3Request) GetPackageList() []string` + +GetPackageList returns the PackageList field if non-nil, zero value otherwise. + +### GetPackageListOk + +`func (o *UpdatesV3Request) GetPackageListOk() (*[]string, bool)` + +GetPackageListOk returns a tuple with the PackageList field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPackageList + +`func (o *UpdatesV3Request) SetPackageList(v []string)` + +SetPackageList sets PackageList field to given value. + + +### GetRepositoryList + +`func (o *UpdatesV3Request) GetRepositoryList() []string` + +GetRepositoryList returns the RepositoryList field if non-nil, zero value otherwise. + +### GetRepositoryListOk + +`func (o *UpdatesV3Request) GetRepositoryListOk() (*[]string, bool)` + +GetRepositoryListOk returns a tuple with the RepositoryList field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRepositoryList + +`func (o *UpdatesV3Request) SetRepositoryList(v []string)` + +SetRepositoryList sets RepositoryList field to given value. + +### HasRepositoryList + +`func (o *UpdatesV3Request) HasRepositoryList() bool` + +HasRepositoryList returns a boolean if a field has been set. + +### GetModulesList + +`func (o *UpdatesV3Request) GetModulesList() []UpdatesV3RequestModulesList` + +GetModulesList returns the ModulesList field if non-nil, zero value otherwise. + +### GetModulesListOk + +`func (o *UpdatesV3Request) GetModulesListOk() (*[]UpdatesV3RequestModulesList, bool)` + +GetModulesListOk returns a tuple with the ModulesList field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModulesList + +`func (o *UpdatesV3Request) SetModulesList(v []UpdatesV3RequestModulesList)` + +SetModulesList sets ModulesList field to given value. + +### HasModulesList + +`func (o *UpdatesV3Request) HasModulesList() bool` + +HasModulesList returns a boolean if a field has been set. + +### GetReleasever + +`func (o *UpdatesV3Request) GetReleasever() string` + +GetReleasever returns the Releasever field if non-nil, zero value otherwise. + +### GetReleaseverOk + +`func (o *UpdatesV3Request) GetReleaseverOk() (*string, bool)` + +GetReleaseverOk returns a tuple with the Releasever field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReleasever + +`func (o *UpdatesV3Request) SetReleasever(v string)` + +SetReleasever sets Releasever field to given value. + +### HasReleasever + +`func (o *UpdatesV3Request) HasReleasever() bool` + +HasReleasever returns a boolean if a field has been set. + +### GetBasearch + +`func (o *UpdatesV3Request) GetBasearch() string` + +GetBasearch returns the Basearch field if non-nil, zero value otherwise. + +### GetBasearchOk + +`func (o *UpdatesV3Request) GetBasearchOk() (*string, bool)` + +GetBasearchOk returns a tuple with the Basearch field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBasearch + +`func (o *UpdatesV3Request) SetBasearch(v string)` + +SetBasearch sets Basearch field to given value. + +### HasBasearch + +`func (o *UpdatesV3Request) HasBasearch() bool` + +HasBasearch returns a boolean if a field has been set. + +### GetSecurityOnly + +`func (o *UpdatesV3Request) GetSecurityOnly() bool` + +GetSecurityOnly returns the SecurityOnly field if non-nil, zero value otherwise. + +### GetSecurityOnlyOk + +`func (o *UpdatesV3Request) GetSecurityOnlyOk() (*bool, bool)` + +GetSecurityOnlyOk returns a tuple with the SecurityOnly field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecurityOnly + +`func (o *UpdatesV3Request) SetSecurityOnly(v bool)` + +SetSecurityOnly sets SecurityOnly field to given value. + +### HasSecurityOnly + +`func (o *UpdatesV3Request) HasSecurityOnly() bool` + +HasSecurityOnly returns a boolean if a field has been set. + +### GetLatestOnly + +`func (o *UpdatesV3Request) GetLatestOnly() bool` + +GetLatestOnly returns the LatestOnly field if non-nil, zero value otherwise. + +### GetLatestOnlyOk + +`func (o *UpdatesV3Request) GetLatestOnlyOk() (*bool, bool)` + +GetLatestOnlyOk returns a tuple with the LatestOnly field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLatestOnly + +`func (o *UpdatesV3Request) SetLatestOnly(v bool)` + +SetLatestOnly sets LatestOnly field to given value. + +### HasLatestOnly + +`func (o *UpdatesV3Request) HasLatestOnly() bool` + +HasLatestOnly returns a boolean if a field has been set. + +### GetThirdParty + +`func (o *UpdatesV3Request) GetThirdParty() bool` + +GetThirdParty returns the ThirdParty field if non-nil, zero value otherwise. + +### GetThirdPartyOk + +`func (o *UpdatesV3Request) GetThirdPartyOk() (*bool, bool)` + +GetThirdPartyOk returns a tuple with the ThirdParty field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetThirdParty + +`func (o *UpdatesV3Request) SetThirdParty(v bool)` + +SetThirdParty sets ThirdParty field to given value. + +### HasThirdParty + +`func (o *UpdatesV3Request) HasThirdParty() bool` + +HasThirdParty returns a boolean if a field has been set. + +### GetOptimisticUpdates + +`func (o *UpdatesV3Request) GetOptimisticUpdates() bool` + +GetOptimisticUpdates returns the OptimisticUpdates field if non-nil, zero value otherwise. + +### GetOptimisticUpdatesOk + +`func (o *UpdatesV3Request) GetOptimisticUpdatesOk() (*bool, bool)` + +GetOptimisticUpdatesOk returns a tuple with the OptimisticUpdates field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOptimisticUpdates + +`func (o *UpdatesV3Request) SetOptimisticUpdates(v bool)` + +SetOptimisticUpdates sets OptimisticUpdates field to given value. + +### HasOptimisticUpdates + +`func (o *UpdatesV3Request) HasOptimisticUpdates() bool` + +HasOptimisticUpdates returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/vmaas/docs/UpdatesV3RequestModulesList.md b/vmaas/docs/UpdatesV3RequestModulesList.md new file mode 100644 index 0000000..0c0da1c --- /dev/null +++ b/vmaas/docs/UpdatesV3RequestModulesList.md @@ -0,0 +1,72 @@ +# UpdatesV3RequestModulesList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ModuleName** | **string** | | +**ModuleStream** | **string** | | + +## Methods + +### NewUpdatesV3RequestModulesList + +`func NewUpdatesV3RequestModulesList(moduleName string, moduleStream string, ) *UpdatesV3RequestModulesList` + +NewUpdatesV3RequestModulesList instantiates a new UpdatesV3RequestModulesList object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewUpdatesV3RequestModulesListWithDefaults + +`func NewUpdatesV3RequestModulesListWithDefaults() *UpdatesV3RequestModulesList` + +NewUpdatesV3RequestModulesListWithDefaults instantiates a new UpdatesV3RequestModulesList object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetModuleName + +`func (o *UpdatesV3RequestModulesList) GetModuleName() string` + +GetModuleName returns the ModuleName field if non-nil, zero value otherwise. + +### GetModuleNameOk + +`func (o *UpdatesV3RequestModulesList) GetModuleNameOk() (*string, bool)` + +GetModuleNameOk returns a tuple with the ModuleName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModuleName + +`func (o *UpdatesV3RequestModulesList) SetModuleName(v string)` + +SetModuleName sets ModuleName field to given value. + + +### GetModuleStream + +`func (o *UpdatesV3RequestModulesList) GetModuleStream() string` + +GetModuleStream returns the ModuleStream field if non-nil, zero value otherwise. + +### GetModuleStreamOk + +`func (o *UpdatesV3RequestModulesList) GetModuleStreamOk() (*string, bool)` + +GetModuleStreamOk returns a tuple with the ModuleStream field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModuleStream + +`func (o *UpdatesV3RequestModulesList) SetModuleStream(v string)` + +SetModuleStream sets ModuleStream field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/vmaas/docs/VulnerabilitiesRequest.md b/vmaas/docs/VulnerabilitiesRequest.md index a9017a4..f732b37 100644 --- a/vmaas/docs/VulnerabilitiesRequest.md +++ b/vmaas/docs/VulnerabilitiesRequest.md @@ -5,10 +5,228 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **PackageList** | **[]string** | | -**RepositoryList** | **[]string** | | [optional] -**ModulesList** | [**[]UpdatesRequestModulesList**](UpdatesRequest_modules_list.md) | | [optional] -**Releasever** | **string** | | [optional] -**Basearch** | **string** | | [optional] +**RepositoryList** | Pointer to **[]string** | | [optional] +**ModulesList** | Pointer to [**[]UpdatesV3RequestModulesList**](UpdatesV3RequestModulesList.md) | | [optional] +**Releasever** | Pointer to **string** | | [optional] +**Basearch** | Pointer to **string** | | [optional] +**Oval** | Pointer to **bool** | | [optional] +**OvalOnly** | Pointer to **bool** | | [optional] +**ThirdParty** | Pointer to **bool** | Include content from \"third party\" repositories into the response, disabled by default. | [optional] [default to false] + +## Methods + +### NewVulnerabilitiesRequest + +`func NewVulnerabilitiesRequest(packageList []string, ) *VulnerabilitiesRequest` + +NewVulnerabilitiesRequest instantiates a new VulnerabilitiesRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewVulnerabilitiesRequestWithDefaults + +`func NewVulnerabilitiesRequestWithDefaults() *VulnerabilitiesRequest` + +NewVulnerabilitiesRequestWithDefaults instantiates a new VulnerabilitiesRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPackageList + +`func (o *VulnerabilitiesRequest) GetPackageList() []string` + +GetPackageList returns the PackageList field if non-nil, zero value otherwise. + +### GetPackageListOk + +`func (o *VulnerabilitiesRequest) GetPackageListOk() (*[]string, bool)` + +GetPackageListOk returns a tuple with the PackageList field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPackageList + +`func (o *VulnerabilitiesRequest) SetPackageList(v []string)` + +SetPackageList sets PackageList field to given value. + + +### GetRepositoryList + +`func (o *VulnerabilitiesRequest) GetRepositoryList() []string` + +GetRepositoryList returns the RepositoryList field if non-nil, zero value otherwise. + +### GetRepositoryListOk + +`func (o *VulnerabilitiesRequest) GetRepositoryListOk() (*[]string, bool)` + +GetRepositoryListOk returns a tuple with the RepositoryList field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRepositoryList + +`func (o *VulnerabilitiesRequest) SetRepositoryList(v []string)` + +SetRepositoryList sets RepositoryList field to given value. + +### HasRepositoryList + +`func (o *VulnerabilitiesRequest) HasRepositoryList() bool` + +HasRepositoryList returns a boolean if a field has been set. + +### GetModulesList + +`func (o *VulnerabilitiesRequest) GetModulesList() []UpdatesV3RequestModulesList` + +GetModulesList returns the ModulesList field if non-nil, zero value otherwise. + +### GetModulesListOk + +`func (o *VulnerabilitiesRequest) GetModulesListOk() (*[]UpdatesV3RequestModulesList, bool)` + +GetModulesListOk returns a tuple with the ModulesList field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModulesList + +`func (o *VulnerabilitiesRequest) SetModulesList(v []UpdatesV3RequestModulesList)` + +SetModulesList sets ModulesList field to given value. + +### HasModulesList + +`func (o *VulnerabilitiesRequest) HasModulesList() bool` + +HasModulesList returns a boolean if a field has been set. + +### GetReleasever + +`func (o *VulnerabilitiesRequest) GetReleasever() string` + +GetReleasever returns the Releasever field if non-nil, zero value otherwise. + +### GetReleaseverOk + +`func (o *VulnerabilitiesRequest) GetReleaseverOk() (*string, bool)` + +GetReleaseverOk returns a tuple with the Releasever field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReleasever + +`func (o *VulnerabilitiesRequest) SetReleasever(v string)` + +SetReleasever sets Releasever field to given value. + +### HasReleasever + +`func (o *VulnerabilitiesRequest) HasReleasever() bool` + +HasReleasever returns a boolean if a field has been set. + +### GetBasearch + +`func (o *VulnerabilitiesRequest) GetBasearch() string` + +GetBasearch returns the Basearch field if non-nil, zero value otherwise. + +### GetBasearchOk + +`func (o *VulnerabilitiesRequest) GetBasearchOk() (*string, bool)` + +GetBasearchOk returns a tuple with the Basearch field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBasearch + +`func (o *VulnerabilitiesRequest) SetBasearch(v string)` + +SetBasearch sets Basearch field to given value. + +### HasBasearch + +`func (o *VulnerabilitiesRequest) HasBasearch() bool` + +HasBasearch returns a boolean if a field has been set. + +### GetOval + +`func (o *VulnerabilitiesRequest) GetOval() bool` + +GetOval returns the Oval field if non-nil, zero value otherwise. + +### GetOvalOk + +`func (o *VulnerabilitiesRequest) GetOvalOk() (*bool, bool)` + +GetOvalOk returns a tuple with the Oval field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOval + +`func (o *VulnerabilitiesRequest) SetOval(v bool)` + +SetOval sets Oval field to given value. + +### HasOval + +`func (o *VulnerabilitiesRequest) HasOval() bool` + +HasOval returns a boolean if a field has been set. + +### GetOvalOnly + +`func (o *VulnerabilitiesRequest) GetOvalOnly() bool` + +GetOvalOnly returns the OvalOnly field if non-nil, zero value otherwise. + +### GetOvalOnlyOk + +`func (o *VulnerabilitiesRequest) GetOvalOnlyOk() (*bool, bool)` + +GetOvalOnlyOk returns a tuple with the OvalOnly field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOvalOnly + +`func (o *VulnerabilitiesRequest) SetOvalOnly(v bool)` + +SetOvalOnly sets OvalOnly field to given value. + +### HasOvalOnly + +`func (o *VulnerabilitiesRequest) HasOvalOnly() bool` + +HasOvalOnly returns a boolean if a field has been set. + +### GetThirdParty + +`func (o *VulnerabilitiesRequest) GetThirdParty() bool` + +GetThirdParty returns the ThirdParty field if non-nil, zero value otherwise. + +### GetThirdPartyOk + +`func (o *VulnerabilitiesRequest) GetThirdPartyOk() (*bool, bool)` + +GetThirdPartyOk returns a tuple with the ThirdParty field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetThirdParty + +`func (o *VulnerabilitiesRequest) SetThirdParty(v bool)` + +SetThirdParty sets ThirdParty field to given value. + +### HasThirdParty + +`func (o *VulnerabilitiesRequest) HasThirdParty() bool` + +HasThirdParty returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/vmaas/docs/VulnerabilitiesResponse.md b/vmaas/docs/VulnerabilitiesResponse.md index aa343fe..3c91235 100644 --- a/vmaas/docs/VulnerabilitiesResponse.md +++ b/vmaas/docs/VulnerabilitiesResponse.md @@ -4,7 +4,68 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**CveList** | **[]string** | | [optional] +**CveList** | **[]string** | | +**UnpatchedCveList** | **[]string** | | + +## Methods + +### NewVulnerabilitiesResponse + +`func NewVulnerabilitiesResponse(cveList []string, unpatchedCveList []string, ) *VulnerabilitiesResponse` + +NewVulnerabilitiesResponse instantiates a new VulnerabilitiesResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewVulnerabilitiesResponseWithDefaults + +`func NewVulnerabilitiesResponseWithDefaults() *VulnerabilitiesResponse` + +NewVulnerabilitiesResponseWithDefaults instantiates a new VulnerabilitiesResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCveList + +`func (o *VulnerabilitiesResponse) GetCveList() []string` + +GetCveList returns the CveList field if non-nil, zero value otherwise. + +### GetCveListOk + +`func (o *VulnerabilitiesResponse) GetCveListOk() (*[]string, bool)` + +GetCveListOk returns a tuple with the CveList field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCveList + +`func (o *VulnerabilitiesResponse) SetCveList(v []string)` + +SetCveList sets CveList field to given value. + + +### GetUnpatchedCveList + +`func (o *VulnerabilitiesResponse) GetUnpatchedCveList() []string` + +GetUnpatchedCveList returns the UnpatchedCveList field if non-nil, zero value otherwise. + +### GetUnpatchedCveListOk + +`func (o *VulnerabilitiesResponse) GetUnpatchedCveListOk() (*[]string, bool)` + +GetUnpatchedCveListOk returns a tuple with the UnpatchedCveList field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUnpatchedCveList + +`func (o *VulnerabilitiesResponse) SetUnpatchedCveList(v []string)` + +SetUnpatchedCveList sets UnpatchedCveList field to given value. + + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/vmaas/go.mod b/vmaas/go.mod index dd028d0..5ca591e 100644 --- a/vmaas/go.mod +++ b/vmaas/go.mod @@ -1,7 +1,7 @@ module github.com/RedHatInsights/patchman-clients/vmaas +go 1.13 + require ( - github.com/antihax/optional v1.0.0 golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45 - ) diff --git a/vmaas/go.sum b/vmaas/go.sum index ee69520..734252e 100644 --- a/vmaas/go.sum +++ b/vmaas/go.sum @@ -1,8 +1,4 @@ cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= -github.com/antihax/optional v1.0.0 h1:xK2lYat7ZLaVVcIuj82J8kIro4V6kDe0AUDFboUCwcg= -github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kdvxnR2qWY= -github.com/aws/aws-sdk-go v1.26.3 h1:szQdfJcUBAhQT0zZEx4sxoDuWb7iScoucxCiVxDmaBk= -github.com/aws/aws-sdk-go v1.26.3/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo= github.com/golang/protobuf v1.2.0 h1:P3YflyNX/ehuJFLhxviNdFxQPkGK5cDcApsge1SqnvM= github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= diff --git a/vmaas/model_cves_request.go b/vmaas/model_cves_request.go index fffa2fd..c090dc2 100644 --- a/vmaas/model_cves_request.go +++ b/vmaas/model_cves_request.go @@ -3,19 +3,365 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.20.4 - * Generated by: OpenAPI Generator (https://openapi-generator.tech) + * API version: 2.5.0 */ +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + package vmaas + +import ( + "encoding/json" + "time" +) + // CvesRequest struct for CvesRequest type CvesRequest struct { - Page float32 `json:"page,omitempty"` - PageSize float32 `json:"page_size,omitempty"` + Page *float32 `json:"page,omitempty"` + PageSize *float32 `json:"page_size,omitempty"` CveList []string `json:"cve_list"` - ModifiedSince string `json:"modified_since,omitempty"` - PublishedSince string `json:"published_since,omitempty"` - RhOnly bool `json:"rh_only,omitempty"` + ModifiedSince *time.Time `json:"modified_since,omitempty"` + PublishedSince *time.Time `json:"published_since,omitempty"` + RhOnly *bool `json:"rh_only,omitempty"` // Return only those CVEs which are associated with at least one errata. Defaults to false. - ErrataAssociated bool `json:"errata_associated,omitempty"` + ErrataAssociated *bool `json:"errata_associated,omitempty"` + // Include content from \"third party\" repositories into the response, disabled by default. + ThirdParty *bool `json:"third_party,omitempty"` +} + +// NewCvesRequest instantiates a new CvesRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCvesRequest(cveList []string, ) *CvesRequest { + this := CvesRequest{} + this.CveList = cveList + var thirdParty bool = false + this.ThirdParty = &thirdParty + return &this +} + +// NewCvesRequestWithDefaults instantiates a new CvesRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCvesRequestWithDefaults() *CvesRequest { + this := CvesRequest{} + var thirdParty bool = false + this.ThirdParty = &thirdParty + return &this +} + +// GetPage returns the Page field value if set, zero value otherwise. +func (o *CvesRequest) GetPage() float32 { + if o == nil || o.Page == nil { + var ret float32 + return ret + } + return *o.Page +} + +// GetPageOk returns a tuple with the Page field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CvesRequest) GetPageOk() (*float32, bool) { + if o == nil || o.Page == nil { + return nil, false + } + return o.Page, true +} + +// HasPage returns a boolean if a field has been set. +func (o *CvesRequest) HasPage() bool { + if o != nil && o.Page != nil { + return true + } + + return false +} + +// SetPage gets a reference to the given float32 and assigns it to the Page field. +func (o *CvesRequest) SetPage(v float32) { + o.Page = &v +} + +// GetPageSize returns the PageSize field value if set, zero value otherwise. +func (o *CvesRequest) GetPageSize() float32 { + if o == nil || o.PageSize == nil { + var ret float32 + return ret + } + return *o.PageSize +} + +// GetPageSizeOk returns a tuple with the PageSize field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CvesRequest) GetPageSizeOk() (*float32, bool) { + if o == nil || o.PageSize == nil { + return nil, false + } + return o.PageSize, true +} + +// HasPageSize returns a boolean if a field has been set. +func (o *CvesRequest) HasPageSize() bool { + if o != nil && o.PageSize != nil { + return true + } + + return false +} + +// SetPageSize gets a reference to the given float32 and assigns it to the PageSize field. +func (o *CvesRequest) SetPageSize(v float32) { + o.PageSize = &v } + +// GetCveList returns the CveList field value +func (o *CvesRequest) GetCveList() []string { + if o == nil { + var ret []string + return ret + } + + return o.CveList +} + +// GetCveListOk returns a tuple with the CveList field value +// and a boolean to check if the value has been set. +func (o *CvesRequest) GetCveListOk() (*[]string, bool) { + if o == nil { + return nil, false + } + return &o.CveList, true +} + +// SetCveList sets field value +func (o *CvesRequest) SetCveList(v []string) { + o.CveList = v +} + +// GetModifiedSince returns the ModifiedSince field value if set, zero value otherwise. +func (o *CvesRequest) GetModifiedSince() time.Time { + if o == nil || o.ModifiedSince == nil { + var ret time.Time + return ret + } + return *o.ModifiedSince +} + +// GetModifiedSinceOk returns a tuple with the ModifiedSince field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CvesRequest) GetModifiedSinceOk() (*time.Time, bool) { + if o == nil || o.ModifiedSince == nil { + return nil, false + } + return o.ModifiedSince, true +} + +// HasModifiedSince returns a boolean if a field has been set. +func (o *CvesRequest) HasModifiedSince() bool { + if o != nil && o.ModifiedSince != nil { + return true + } + + return false +} + +// SetModifiedSince gets a reference to the given time.Time and assigns it to the ModifiedSince field. +func (o *CvesRequest) SetModifiedSince(v time.Time) { + o.ModifiedSince = &v +} + +// GetPublishedSince returns the PublishedSince field value if set, zero value otherwise. +func (o *CvesRequest) GetPublishedSince() time.Time { + if o == nil || o.PublishedSince == nil { + var ret time.Time + return ret + } + return *o.PublishedSince +} + +// GetPublishedSinceOk returns a tuple with the PublishedSince field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CvesRequest) GetPublishedSinceOk() (*time.Time, bool) { + if o == nil || o.PublishedSince == nil { + return nil, false + } + return o.PublishedSince, true +} + +// HasPublishedSince returns a boolean if a field has been set. +func (o *CvesRequest) HasPublishedSince() bool { + if o != nil && o.PublishedSince != nil { + return true + } + + return false +} + +// SetPublishedSince gets a reference to the given time.Time and assigns it to the PublishedSince field. +func (o *CvesRequest) SetPublishedSince(v time.Time) { + o.PublishedSince = &v +} + +// GetRhOnly returns the RhOnly field value if set, zero value otherwise. +func (o *CvesRequest) GetRhOnly() bool { + if o == nil || o.RhOnly == nil { + var ret bool + return ret + } + return *o.RhOnly +} + +// GetRhOnlyOk returns a tuple with the RhOnly field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CvesRequest) GetRhOnlyOk() (*bool, bool) { + if o == nil || o.RhOnly == nil { + return nil, false + } + return o.RhOnly, true +} + +// HasRhOnly returns a boolean if a field has been set. +func (o *CvesRequest) HasRhOnly() bool { + if o != nil && o.RhOnly != nil { + return true + } + + return false +} + +// SetRhOnly gets a reference to the given bool and assigns it to the RhOnly field. +func (o *CvesRequest) SetRhOnly(v bool) { + o.RhOnly = &v +} + +// GetErrataAssociated returns the ErrataAssociated field value if set, zero value otherwise. +func (o *CvesRequest) GetErrataAssociated() bool { + if o == nil || o.ErrataAssociated == nil { + var ret bool + return ret + } + return *o.ErrataAssociated +} + +// GetErrataAssociatedOk returns a tuple with the ErrataAssociated field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CvesRequest) GetErrataAssociatedOk() (*bool, bool) { + if o == nil || o.ErrataAssociated == nil { + return nil, false + } + return o.ErrataAssociated, true +} + +// HasErrataAssociated returns a boolean if a field has been set. +func (o *CvesRequest) HasErrataAssociated() bool { + if o != nil && o.ErrataAssociated != nil { + return true + } + + return false +} + +// SetErrataAssociated gets a reference to the given bool and assigns it to the ErrataAssociated field. +func (o *CvesRequest) SetErrataAssociated(v bool) { + o.ErrataAssociated = &v +} + +// GetThirdParty returns the ThirdParty field value if set, zero value otherwise. +func (o *CvesRequest) GetThirdParty() bool { + if o == nil || o.ThirdParty == nil { + var ret bool + return ret + } + return *o.ThirdParty +} + +// GetThirdPartyOk returns a tuple with the ThirdParty field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CvesRequest) GetThirdPartyOk() (*bool, bool) { + if o == nil || o.ThirdParty == nil { + return nil, false + } + return o.ThirdParty, true +} + +// HasThirdParty returns a boolean if a field has been set. +func (o *CvesRequest) HasThirdParty() bool { + if o != nil && o.ThirdParty != nil { + return true + } + + return false +} + +// SetThirdParty gets a reference to the given bool and assigns it to the ThirdParty field. +func (o *CvesRequest) SetThirdParty(v bool) { + o.ThirdParty = &v +} + +func (o CvesRequest) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Page != nil { + toSerialize["page"] = o.Page + } + if o.PageSize != nil { + toSerialize["page_size"] = o.PageSize + } + if true { + toSerialize["cve_list"] = o.CveList + } + if o.ModifiedSince != nil { + toSerialize["modified_since"] = o.ModifiedSince + } + if o.PublishedSince != nil { + toSerialize["published_since"] = o.PublishedSince + } + if o.RhOnly != nil { + toSerialize["rh_only"] = o.RhOnly + } + if o.ErrataAssociated != nil { + toSerialize["errata_associated"] = o.ErrataAssociated + } + if o.ThirdParty != nil { + toSerialize["third_party"] = o.ThirdParty + } + return json.Marshal(toSerialize) +} + +type NullableCvesRequest struct { + value *CvesRequest + isSet bool +} + +func (v NullableCvesRequest) Get() *CvesRequest { + return v.value +} + +func (v *NullableCvesRequest) Set(val *CvesRequest) { + v.value = val + v.isSet = true +} + +func (v NullableCvesRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableCvesRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCvesRequest(val *CvesRequest) *NullableCvesRequest { + return &NullableCvesRequest{value: val, isSet: true} +} + +func (v NullableCvesRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCvesRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/vmaas/model_cves_response.go b/vmaas/model_cves_response.go index 7853e94..4a39c7f 100644 --- a/vmaas/model_cves_response.go +++ b/vmaas/model_cves_response.go @@ -3,16 +3,258 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.20.4 - * Generated by: OpenAPI Generator (https://openapi-generator.tech) + * API version: 2.5.0 */ +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + package vmaas + +import ( + "encoding/json" + "time" +) + // CvesResponse struct for CvesResponse type CvesResponse struct { - Page float32 `json:"page,omitempty"` - PageSize float32 `json:"page_size,omitempty"` - Pages float32 `json:"pages,omitempty"` - CveList map[string]CvesResponseCveList `json:"cve_list,omitempty"` - ModifiedSince string `json:"modified_since,omitempty"` + Page *float32 `json:"page,omitempty"` + PageSize *float32 `json:"page_size,omitempty"` + Pages *float32 `json:"pages,omitempty"` + CveList *map[string]CvesResponseCveList `json:"cve_list,omitempty"` + ModifiedSince *time.Time `json:"modified_since,omitempty"` +} + +// NewCvesResponse instantiates a new CvesResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCvesResponse() *CvesResponse { + this := CvesResponse{} + return &this +} + +// NewCvesResponseWithDefaults instantiates a new CvesResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCvesResponseWithDefaults() *CvesResponse { + this := CvesResponse{} + return &this +} + +// GetPage returns the Page field value if set, zero value otherwise. +func (o *CvesResponse) GetPage() float32 { + if o == nil || o.Page == nil { + var ret float32 + return ret + } + return *o.Page +} + +// GetPageOk returns a tuple with the Page field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CvesResponse) GetPageOk() (*float32, bool) { + if o == nil || o.Page == nil { + return nil, false + } + return o.Page, true +} + +// HasPage returns a boolean if a field has been set. +func (o *CvesResponse) HasPage() bool { + if o != nil && o.Page != nil { + return true + } + + return false +} + +// SetPage gets a reference to the given float32 and assigns it to the Page field. +func (o *CvesResponse) SetPage(v float32) { + o.Page = &v +} + +// GetPageSize returns the PageSize field value if set, zero value otherwise. +func (o *CvesResponse) GetPageSize() float32 { + if o == nil || o.PageSize == nil { + var ret float32 + return ret + } + return *o.PageSize +} + +// GetPageSizeOk returns a tuple with the PageSize field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CvesResponse) GetPageSizeOk() (*float32, bool) { + if o == nil || o.PageSize == nil { + return nil, false + } + return o.PageSize, true +} + +// HasPageSize returns a boolean if a field has been set. +func (o *CvesResponse) HasPageSize() bool { + if o != nil && o.PageSize != nil { + return true + } + + return false +} + +// SetPageSize gets a reference to the given float32 and assigns it to the PageSize field. +func (o *CvesResponse) SetPageSize(v float32) { + o.PageSize = &v +} + +// GetPages returns the Pages field value if set, zero value otherwise. +func (o *CvesResponse) GetPages() float32 { + if o == nil || o.Pages == nil { + var ret float32 + return ret + } + return *o.Pages +} + +// GetPagesOk returns a tuple with the Pages field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CvesResponse) GetPagesOk() (*float32, bool) { + if o == nil || o.Pages == nil { + return nil, false + } + return o.Pages, true +} + +// HasPages returns a boolean if a field has been set. +func (o *CvesResponse) HasPages() bool { + if o != nil && o.Pages != nil { + return true + } + + return false +} + +// SetPages gets a reference to the given float32 and assigns it to the Pages field. +func (o *CvesResponse) SetPages(v float32) { + o.Pages = &v +} + +// GetCveList returns the CveList field value if set, zero value otherwise. +func (o *CvesResponse) GetCveList() map[string]CvesResponseCveList { + if o == nil || o.CveList == nil { + var ret map[string]CvesResponseCveList + return ret + } + return *o.CveList } + +// GetCveListOk returns a tuple with the CveList field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CvesResponse) GetCveListOk() (*map[string]CvesResponseCveList, bool) { + if o == nil || o.CveList == nil { + return nil, false + } + return o.CveList, true +} + +// HasCveList returns a boolean if a field has been set. +func (o *CvesResponse) HasCveList() bool { + if o != nil && o.CveList != nil { + return true + } + + return false +} + +// SetCveList gets a reference to the given map[string]CvesResponseCveList and assigns it to the CveList field. +func (o *CvesResponse) SetCveList(v map[string]CvesResponseCveList) { + o.CveList = &v +} + +// GetModifiedSince returns the ModifiedSince field value if set, zero value otherwise. +func (o *CvesResponse) GetModifiedSince() time.Time { + if o == nil || o.ModifiedSince == nil { + var ret time.Time + return ret + } + return *o.ModifiedSince +} + +// GetModifiedSinceOk returns a tuple with the ModifiedSince field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CvesResponse) GetModifiedSinceOk() (*time.Time, bool) { + if o == nil || o.ModifiedSince == nil { + return nil, false + } + return o.ModifiedSince, true +} + +// HasModifiedSince returns a boolean if a field has been set. +func (o *CvesResponse) HasModifiedSince() bool { + if o != nil && o.ModifiedSince != nil { + return true + } + + return false +} + +// SetModifiedSince gets a reference to the given time.Time and assigns it to the ModifiedSince field. +func (o *CvesResponse) SetModifiedSince(v time.Time) { + o.ModifiedSince = &v +} + +func (o CvesResponse) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Page != nil { + toSerialize["page"] = o.Page + } + if o.PageSize != nil { + toSerialize["page_size"] = o.PageSize + } + if o.Pages != nil { + toSerialize["pages"] = o.Pages + } + if o.CveList != nil { + toSerialize["cve_list"] = o.CveList + } + if o.ModifiedSince != nil { + toSerialize["modified_since"] = o.ModifiedSince + } + return json.Marshal(toSerialize) +} + +type NullableCvesResponse struct { + value *CvesResponse + isSet bool +} + +func (v NullableCvesResponse) Get() *CvesResponse { + return v.value +} + +func (v *NullableCvesResponse) Set(val *CvesResponse) { + v.value = val + v.isSet = true +} + +func (v NullableCvesResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableCvesResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCvesResponse(val *CvesResponse) *NullableCvesResponse { + return &NullableCvesResponse{value: val, isSet: true} +} + +func (v NullableCvesResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCvesResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/vmaas/model_cves_response_cve_list.go b/vmaas/model_cves_response_cve_list.go index 506517a..75f4a83 100644 --- a/vmaas/model_cves_response_cve_list.go +++ b/vmaas/model_cves_response_cve_list.go @@ -3,26 +3,618 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.20.4 - * Generated by: OpenAPI Generator (https://openapi-generator.tech) + * API version: 2.5.0 */ +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + package vmaas + +import ( + "encoding/json" + "time" +) + // CvesResponseCveList struct for CvesResponseCveList type CvesResponseCveList struct { - Impact string `json:"impact,omitempty"` - PublicDate string `json:"public_date,omitempty"` - Synopsis string `json:"synopsis,omitempty"` - Description string `json:"description,omitempty"` - ModifiedDate string `json:"modified_date,omitempty"` - RedhatUrl string `json:"redhat_url,omitempty"` - SecondaryUrl string `json:"secondary_url,omitempty"` - Cvss2Score string `json:"cvss2_score,omitempty"` - Cvss2Metrics string `json:"cvss2_metrics,omitempty"` - Cvss3Score string `json:"cvss3_score,omitempty"` - Cvss3Metrics string `json:"cvss3_metrics,omitempty"` - CweList []string `json:"cwe_list,omitempty"` - ErrataList []string `json:"errata_list,omitempty"` - PackageList []string `json:"package_list,omitempty"` - SourcePackageList []string `json:"source_package_list,omitempty"` + Impact *string `json:"impact,omitempty"` + PublicDate *time.Time `json:"public_date,omitempty"` + Synopsis *string `json:"synopsis,omitempty"` + Description *string `json:"description,omitempty"` + ModifiedDate *time.Time `json:"modified_date,omitempty"` + RedhatUrl *string `json:"redhat_url,omitempty"` + SecondaryUrl *string `json:"secondary_url,omitempty"` + Cvss2Score *string `json:"cvss2_score,omitempty"` + Cvss2Metrics *string `json:"cvss2_metrics,omitempty"` + Cvss3Score *string `json:"cvss3_score,omitempty"` + Cvss3Metrics *string `json:"cvss3_metrics,omitempty"` + CweList *[]string `json:"cwe_list,omitempty"` + ErrataList *[]string `json:"errata_list,omitempty"` + PackageList *[]string `json:"package_list,omitempty"` + SourcePackageList *[]string `json:"source_package_list,omitempty"` +} + +// NewCvesResponseCveList instantiates a new CvesResponseCveList object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCvesResponseCveList() *CvesResponseCveList { + this := CvesResponseCveList{} + return &this +} + +// NewCvesResponseCveListWithDefaults instantiates a new CvesResponseCveList object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCvesResponseCveListWithDefaults() *CvesResponseCveList { + this := CvesResponseCveList{} + return &this +} + +// GetImpact returns the Impact field value if set, zero value otherwise. +func (o *CvesResponseCveList) GetImpact() string { + if o == nil || o.Impact == nil { + var ret string + return ret + } + return *o.Impact +} + +// GetImpactOk returns a tuple with the Impact field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CvesResponseCveList) GetImpactOk() (*string, bool) { + if o == nil || o.Impact == nil { + return nil, false + } + return o.Impact, true +} + +// HasImpact returns a boolean if a field has been set. +func (o *CvesResponseCveList) HasImpact() bool { + if o != nil && o.Impact != nil { + return true + } + + return false +} + +// SetImpact gets a reference to the given string and assigns it to the Impact field. +func (o *CvesResponseCveList) SetImpact(v string) { + o.Impact = &v +} + +// GetPublicDate returns the PublicDate field value if set, zero value otherwise. +func (o *CvesResponseCveList) GetPublicDate() time.Time { + if o == nil || o.PublicDate == nil { + var ret time.Time + return ret + } + return *o.PublicDate +} + +// GetPublicDateOk returns a tuple with the PublicDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CvesResponseCveList) GetPublicDateOk() (*time.Time, bool) { + if o == nil || o.PublicDate == nil { + return nil, false + } + return o.PublicDate, true +} + +// HasPublicDate returns a boolean if a field has been set. +func (o *CvesResponseCveList) HasPublicDate() bool { + if o != nil && o.PublicDate != nil { + return true + } + + return false +} + +// SetPublicDate gets a reference to the given time.Time and assigns it to the PublicDate field. +func (o *CvesResponseCveList) SetPublicDate(v time.Time) { + o.PublicDate = &v +} + +// GetSynopsis returns the Synopsis field value if set, zero value otherwise. +func (o *CvesResponseCveList) GetSynopsis() string { + if o == nil || o.Synopsis == nil { + var ret string + return ret + } + return *o.Synopsis +} + +// GetSynopsisOk returns a tuple with the Synopsis field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CvesResponseCveList) GetSynopsisOk() (*string, bool) { + if o == nil || o.Synopsis == nil { + return nil, false + } + return o.Synopsis, true +} + +// HasSynopsis returns a boolean if a field has been set. +func (o *CvesResponseCveList) HasSynopsis() bool { + if o != nil && o.Synopsis != nil { + return true + } + + return false +} + +// SetSynopsis gets a reference to the given string and assigns it to the Synopsis field. +func (o *CvesResponseCveList) SetSynopsis(v string) { + o.Synopsis = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *CvesResponseCveList) GetDescription() string { + if o == nil || o.Description == nil { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CvesResponseCveList) GetDescriptionOk() (*string, bool) { + if o == nil || o.Description == nil { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *CvesResponseCveList) HasDescription() bool { + if o != nil && o.Description != nil { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *CvesResponseCveList) SetDescription(v string) { + o.Description = &v +} + +// GetModifiedDate returns the ModifiedDate field value if set, zero value otherwise. +func (o *CvesResponseCveList) GetModifiedDate() time.Time { + if o == nil || o.ModifiedDate == nil { + var ret time.Time + return ret + } + return *o.ModifiedDate +} + +// GetModifiedDateOk returns a tuple with the ModifiedDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CvesResponseCveList) GetModifiedDateOk() (*time.Time, bool) { + if o == nil || o.ModifiedDate == nil { + return nil, false + } + return o.ModifiedDate, true +} + +// HasModifiedDate returns a boolean if a field has been set. +func (o *CvesResponseCveList) HasModifiedDate() bool { + if o != nil && o.ModifiedDate != nil { + return true + } + + return false +} + +// SetModifiedDate gets a reference to the given time.Time and assigns it to the ModifiedDate field. +func (o *CvesResponseCveList) SetModifiedDate(v time.Time) { + o.ModifiedDate = &v +} + +// GetRedhatUrl returns the RedhatUrl field value if set, zero value otherwise. +func (o *CvesResponseCveList) GetRedhatUrl() string { + if o == nil || o.RedhatUrl == nil { + var ret string + return ret + } + return *o.RedhatUrl +} + +// GetRedhatUrlOk returns a tuple with the RedhatUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CvesResponseCveList) GetRedhatUrlOk() (*string, bool) { + if o == nil || o.RedhatUrl == nil { + return nil, false + } + return o.RedhatUrl, true +} + +// HasRedhatUrl returns a boolean if a field has been set. +func (o *CvesResponseCveList) HasRedhatUrl() bool { + if o != nil && o.RedhatUrl != nil { + return true + } + + return false +} + +// SetRedhatUrl gets a reference to the given string and assigns it to the RedhatUrl field. +func (o *CvesResponseCveList) SetRedhatUrl(v string) { + o.RedhatUrl = &v +} + +// GetSecondaryUrl returns the SecondaryUrl field value if set, zero value otherwise. +func (o *CvesResponseCveList) GetSecondaryUrl() string { + if o == nil || o.SecondaryUrl == nil { + var ret string + return ret + } + return *o.SecondaryUrl +} + +// GetSecondaryUrlOk returns a tuple with the SecondaryUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CvesResponseCveList) GetSecondaryUrlOk() (*string, bool) { + if o == nil || o.SecondaryUrl == nil { + return nil, false + } + return o.SecondaryUrl, true +} + +// HasSecondaryUrl returns a boolean if a field has been set. +func (o *CvesResponseCveList) HasSecondaryUrl() bool { + if o != nil && o.SecondaryUrl != nil { + return true + } + + return false +} + +// SetSecondaryUrl gets a reference to the given string and assigns it to the SecondaryUrl field. +func (o *CvesResponseCveList) SetSecondaryUrl(v string) { + o.SecondaryUrl = &v +} + +// GetCvss2Score returns the Cvss2Score field value if set, zero value otherwise. +func (o *CvesResponseCveList) GetCvss2Score() string { + if o == nil || o.Cvss2Score == nil { + var ret string + return ret + } + return *o.Cvss2Score +} + +// GetCvss2ScoreOk returns a tuple with the Cvss2Score field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CvesResponseCveList) GetCvss2ScoreOk() (*string, bool) { + if o == nil || o.Cvss2Score == nil { + return nil, false + } + return o.Cvss2Score, true +} + +// HasCvss2Score returns a boolean if a field has been set. +func (o *CvesResponseCveList) HasCvss2Score() bool { + if o != nil && o.Cvss2Score != nil { + return true + } + + return false +} + +// SetCvss2Score gets a reference to the given string and assigns it to the Cvss2Score field. +func (o *CvesResponseCveList) SetCvss2Score(v string) { + o.Cvss2Score = &v +} + +// GetCvss2Metrics returns the Cvss2Metrics field value if set, zero value otherwise. +func (o *CvesResponseCveList) GetCvss2Metrics() string { + if o == nil || o.Cvss2Metrics == nil { + var ret string + return ret + } + return *o.Cvss2Metrics } + +// GetCvss2MetricsOk returns a tuple with the Cvss2Metrics field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CvesResponseCveList) GetCvss2MetricsOk() (*string, bool) { + if o == nil || o.Cvss2Metrics == nil { + return nil, false + } + return o.Cvss2Metrics, true +} + +// HasCvss2Metrics returns a boolean if a field has been set. +func (o *CvesResponseCveList) HasCvss2Metrics() bool { + if o != nil && o.Cvss2Metrics != nil { + return true + } + + return false +} + +// SetCvss2Metrics gets a reference to the given string and assigns it to the Cvss2Metrics field. +func (o *CvesResponseCveList) SetCvss2Metrics(v string) { + o.Cvss2Metrics = &v +} + +// GetCvss3Score returns the Cvss3Score field value if set, zero value otherwise. +func (o *CvesResponseCveList) GetCvss3Score() string { + if o == nil || o.Cvss3Score == nil { + var ret string + return ret + } + return *o.Cvss3Score +} + +// GetCvss3ScoreOk returns a tuple with the Cvss3Score field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CvesResponseCveList) GetCvss3ScoreOk() (*string, bool) { + if o == nil || o.Cvss3Score == nil { + return nil, false + } + return o.Cvss3Score, true +} + +// HasCvss3Score returns a boolean if a field has been set. +func (o *CvesResponseCveList) HasCvss3Score() bool { + if o != nil && o.Cvss3Score != nil { + return true + } + + return false +} + +// SetCvss3Score gets a reference to the given string and assigns it to the Cvss3Score field. +func (o *CvesResponseCveList) SetCvss3Score(v string) { + o.Cvss3Score = &v +} + +// GetCvss3Metrics returns the Cvss3Metrics field value if set, zero value otherwise. +func (o *CvesResponseCveList) GetCvss3Metrics() string { + if o == nil || o.Cvss3Metrics == nil { + var ret string + return ret + } + return *o.Cvss3Metrics +} + +// GetCvss3MetricsOk returns a tuple with the Cvss3Metrics field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CvesResponseCveList) GetCvss3MetricsOk() (*string, bool) { + if o == nil || o.Cvss3Metrics == nil { + return nil, false + } + return o.Cvss3Metrics, true +} + +// HasCvss3Metrics returns a boolean if a field has been set. +func (o *CvesResponseCveList) HasCvss3Metrics() bool { + if o != nil && o.Cvss3Metrics != nil { + return true + } + + return false +} + +// SetCvss3Metrics gets a reference to the given string and assigns it to the Cvss3Metrics field. +func (o *CvesResponseCveList) SetCvss3Metrics(v string) { + o.Cvss3Metrics = &v +} + +// GetCweList returns the CweList field value if set, zero value otherwise. +func (o *CvesResponseCveList) GetCweList() []string { + if o == nil || o.CweList == nil { + var ret []string + return ret + } + return *o.CweList +} + +// GetCweListOk returns a tuple with the CweList field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CvesResponseCveList) GetCweListOk() (*[]string, bool) { + if o == nil || o.CweList == nil { + return nil, false + } + return o.CweList, true +} + +// HasCweList returns a boolean if a field has been set. +func (o *CvesResponseCveList) HasCweList() bool { + if o != nil && o.CweList != nil { + return true + } + + return false +} + +// SetCweList gets a reference to the given []string and assigns it to the CweList field. +func (o *CvesResponseCveList) SetCweList(v []string) { + o.CweList = &v +} + +// GetErrataList returns the ErrataList field value if set, zero value otherwise. +func (o *CvesResponseCveList) GetErrataList() []string { + if o == nil || o.ErrataList == nil { + var ret []string + return ret + } + return *o.ErrataList +} + +// GetErrataListOk returns a tuple with the ErrataList field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CvesResponseCveList) GetErrataListOk() (*[]string, bool) { + if o == nil || o.ErrataList == nil { + return nil, false + } + return o.ErrataList, true +} + +// HasErrataList returns a boolean if a field has been set. +func (o *CvesResponseCveList) HasErrataList() bool { + if o != nil && o.ErrataList != nil { + return true + } + + return false +} + +// SetErrataList gets a reference to the given []string and assigns it to the ErrataList field. +func (o *CvesResponseCveList) SetErrataList(v []string) { + o.ErrataList = &v +} + +// GetPackageList returns the PackageList field value if set, zero value otherwise. +func (o *CvesResponseCveList) GetPackageList() []string { + if o == nil || o.PackageList == nil { + var ret []string + return ret + } + return *o.PackageList +} + +// GetPackageListOk returns a tuple with the PackageList field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CvesResponseCveList) GetPackageListOk() (*[]string, bool) { + if o == nil || o.PackageList == nil { + return nil, false + } + return o.PackageList, true +} + +// HasPackageList returns a boolean if a field has been set. +func (o *CvesResponseCveList) HasPackageList() bool { + if o != nil && o.PackageList != nil { + return true + } + + return false +} + +// SetPackageList gets a reference to the given []string and assigns it to the PackageList field. +func (o *CvesResponseCveList) SetPackageList(v []string) { + o.PackageList = &v +} + +// GetSourcePackageList returns the SourcePackageList field value if set, zero value otherwise. +func (o *CvesResponseCveList) GetSourcePackageList() []string { + if o == nil || o.SourcePackageList == nil { + var ret []string + return ret + } + return *o.SourcePackageList +} + +// GetSourcePackageListOk returns a tuple with the SourcePackageList field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CvesResponseCveList) GetSourcePackageListOk() (*[]string, bool) { + if o == nil || o.SourcePackageList == nil { + return nil, false + } + return o.SourcePackageList, true +} + +// HasSourcePackageList returns a boolean if a field has been set. +func (o *CvesResponseCveList) HasSourcePackageList() bool { + if o != nil && o.SourcePackageList != nil { + return true + } + + return false +} + +// SetSourcePackageList gets a reference to the given []string and assigns it to the SourcePackageList field. +func (o *CvesResponseCveList) SetSourcePackageList(v []string) { + o.SourcePackageList = &v +} + +func (o CvesResponseCveList) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Impact != nil { + toSerialize["impact"] = o.Impact + } + if o.PublicDate != nil { + toSerialize["public_date"] = o.PublicDate + } + if o.Synopsis != nil { + toSerialize["synopsis"] = o.Synopsis + } + if o.Description != nil { + toSerialize["description"] = o.Description + } + if o.ModifiedDate != nil { + toSerialize["modified_date"] = o.ModifiedDate + } + if o.RedhatUrl != nil { + toSerialize["redhat_url"] = o.RedhatUrl + } + if o.SecondaryUrl != nil { + toSerialize["secondary_url"] = o.SecondaryUrl + } + if o.Cvss2Score != nil { + toSerialize["cvss2_score"] = o.Cvss2Score + } + if o.Cvss2Metrics != nil { + toSerialize["cvss2_metrics"] = o.Cvss2Metrics + } + if o.Cvss3Score != nil { + toSerialize["cvss3_score"] = o.Cvss3Score + } + if o.Cvss3Metrics != nil { + toSerialize["cvss3_metrics"] = o.Cvss3Metrics + } + if o.CweList != nil { + toSerialize["cwe_list"] = o.CweList + } + if o.ErrataList != nil { + toSerialize["errata_list"] = o.ErrataList + } + if o.PackageList != nil { + toSerialize["package_list"] = o.PackageList + } + if o.SourcePackageList != nil { + toSerialize["source_package_list"] = o.SourcePackageList + } + return json.Marshal(toSerialize) +} + +type NullableCvesResponseCveList struct { + value *CvesResponseCveList + isSet bool +} + +func (v NullableCvesResponseCveList) Get() *CvesResponseCveList { + return v.value +} + +func (v *NullableCvesResponseCveList) Set(val *CvesResponseCveList) { + v.value = val + v.isSet = true +} + +func (v NullableCvesResponseCveList) IsSet() bool { + return v.isSet +} + +func (v *NullableCvesResponseCveList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCvesResponseCveList(val *CvesResponseCveList) *NullableCvesResponseCveList { + return &NullableCvesResponseCveList{value: val, isSet: true} +} + +func (v NullableCvesResponseCveList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCvesResponseCveList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/vmaas/model_db_change_response.go b/vmaas/model_db_change_response.go index 870d6dc..08b6599 100644 --- a/vmaas/model_db_change_response.go +++ b/vmaas/model_db_change_response.go @@ -3,12 +3,113 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.20.4 - * Generated by: OpenAPI Generator (https://openapi-generator.tech) + * API version: 2.5.0 */ +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + package vmaas -// DbChangeResponse struct for DbChangeResponse -type DbChangeResponse struct { - Dbchange DbChangeResponseDbchange `json:"dbchange,omitempty"` + +import ( + "encoding/json" +) + +// DBChangeResponse struct for DBChangeResponse +type DBChangeResponse struct { + Dbchange *DBChangeResponseDbchange `json:"dbchange,omitempty"` +} + +// NewDBChangeResponse instantiates a new DBChangeResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewDBChangeResponse() *DBChangeResponse { + this := DBChangeResponse{} + return &this +} + +// NewDBChangeResponseWithDefaults instantiates a new DBChangeResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewDBChangeResponseWithDefaults() *DBChangeResponse { + this := DBChangeResponse{} + return &this +} + +// GetDbchange returns the Dbchange field value if set, zero value otherwise. +func (o *DBChangeResponse) GetDbchange() DBChangeResponseDbchange { + if o == nil || o.Dbchange == nil { + var ret DBChangeResponseDbchange + return ret + } + return *o.Dbchange +} + +// GetDbchangeOk returns a tuple with the Dbchange field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DBChangeResponse) GetDbchangeOk() (*DBChangeResponseDbchange, bool) { + if o == nil || o.Dbchange == nil { + return nil, false + } + return o.Dbchange, true +} + +// HasDbchange returns a boolean if a field has been set. +func (o *DBChangeResponse) HasDbchange() bool { + if o != nil && o.Dbchange != nil { + return true + } + + return false +} + +// SetDbchange gets a reference to the given DBChangeResponseDbchange and assigns it to the Dbchange field. +func (o *DBChangeResponse) SetDbchange(v DBChangeResponseDbchange) { + o.Dbchange = &v +} + +func (o DBChangeResponse) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Dbchange != nil { + toSerialize["dbchange"] = o.Dbchange + } + return json.Marshal(toSerialize) } + +type NullableDBChangeResponse struct { + value *DBChangeResponse + isSet bool +} + +func (v NullableDBChangeResponse) Get() *DBChangeResponse { + return v.value +} + +func (v *NullableDBChangeResponse) Set(val *DBChangeResponse) { + v.value = val + v.isSet = true +} + +func (v NullableDBChangeResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableDBChangeResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDBChangeResponse(val *DBChangeResponse) *NullableDBChangeResponse { + return &NullableDBChangeResponse{value: val, isSet: true} +} + +func (v NullableDBChangeResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDBChangeResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/vmaas/model_db_change_response_dbchange.go b/vmaas/model_db_change_response_dbchange.go index c31318b..68f0607 100644 --- a/vmaas/model_db_change_response_dbchange.go +++ b/vmaas/model_db_change_response_dbchange.go @@ -3,16 +3,257 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.20.4 - * Generated by: OpenAPI Generator (https://openapi-generator.tech) + * API version: 2.5.0 */ +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + package vmaas -// DbChangeResponseDbchange struct for DbChangeResponseDbchange -type DbChangeResponseDbchange struct { - ErrataChanges string `json:"errata_changes,omitempty"` - CveChanges string `json:"cve_changes,omitempty"` - RepositoryChanges string `json:"repository_changes,omitempty"` - LastChange string `json:"last_change,omitempty"` - Exported string `json:"exported,omitempty"` + +import ( + "encoding/json" +) + +// DBChangeResponseDbchange struct for DBChangeResponseDbchange +type DBChangeResponseDbchange struct { + ErrataChanges *string `json:"errata_changes,omitempty"` + CveChanges *string `json:"cve_changes,omitempty"` + RepositoryChanges *string `json:"repository_changes,omitempty"` + LastChange *string `json:"last_change,omitempty"` + Exported *string `json:"exported,omitempty"` +} + +// NewDBChangeResponseDbchange instantiates a new DBChangeResponseDbchange object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewDBChangeResponseDbchange() *DBChangeResponseDbchange { + this := DBChangeResponseDbchange{} + return &this +} + +// NewDBChangeResponseDbchangeWithDefaults instantiates a new DBChangeResponseDbchange object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewDBChangeResponseDbchangeWithDefaults() *DBChangeResponseDbchange { + this := DBChangeResponseDbchange{} + return &this +} + +// GetErrataChanges returns the ErrataChanges field value if set, zero value otherwise. +func (o *DBChangeResponseDbchange) GetErrataChanges() string { + if o == nil || o.ErrataChanges == nil { + var ret string + return ret + } + return *o.ErrataChanges +} + +// GetErrataChangesOk returns a tuple with the ErrataChanges field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DBChangeResponseDbchange) GetErrataChangesOk() (*string, bool) { + if o == nil || o.ErrataChanges == nil { + return nil, false + } + return o.ErrataChanges, true +} + +// HasErrataChanges returns a boolean if a field has been set. +func (o *DBChangeResponseDbchange) HasErrataChanges() bool { + if o != nil && o.ErrataChanges != nil { + return true + } + + return false +} + +// SetErrataChanges gets a reference to the given string and assigns it to the ErrataChanges field. +func (o *DBChangeResponseDbchange) SetErrataChanges(v string) { + o.ErrataChanges = &v +} + +// GetCveChanges returns the CveChanges field value if set, zero value otherwise. +func (o *DBChangeResponseDbchange) GetCveChanges() string { + if o == nil || o.CveChanges == nil { + var ret string + return ret + } + return *o.CveChanges +} + +// GetCveChangesOk returns a tuple with the CveChanges field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DBChangeResponseDbchange) GetCveChangesOk() (*string, bool) { + if o == nil || o.CveChanges == nil { + return nil, false + } + return o.CveChanges, true +} + +// HasCveChanges returns a boolean if a field has been set. +func (o *DBChangeResponseDbchange) HasCveChanges() bool { + if o != nil && o.CveChanges != nil { + return true + } + + return false +} + +// SetCveChanges gets a reference to the given string and assigns it to the CveChanges field. +func (o *DBChangeResponseDbchange) SetCveChanges(v string) { + o.CveChanges = &v +} + +// GetRepositoryChanges returns the RepositoryChanges field value if set, zero value otherwise. +func (o *DBChangeResponseDbchange) GetRepositoryChanges() string { + if o == nil || o.RepositoryChanges == nil { + var ret string + return ret + } + return *o.RepositoryChanges +} + +// GetRepositoryChangesOk returns a tuple with the RepositoryChanges field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DBChangeResponseDbchange) GetRepositoryChangesOk() (*string, bool) { + if o == nil || o.RepositoryChanges == nil { + return nil, false + } + return o.RepositoryChanges, true +} + +// HasRepositoryChanges returns a boolean if a field has been set. +func (o *DBChangeResponseDbchange) HasRepositoryChanges() bool { + if o != nil && o.RepositoryChanges != nil { + return true + } + + return false +} + +// SetRepositoryChanges gets a reference to the given string and assigns it to the RepositoryChanges field. +func (o *DBChangeResponseDbchange) SetRepositoryChanges(v string) { + o.RepositoryChanges = &v +} + +// GetLastChange returns the LastChange field value if set, zero value otherwise. +func (o *DBChangeResponseDbchange) GetLastChange() string { + if o == nil || o.LastChange == nil { + var ret string + return ret + } + return *o.LastChange } + +// GetLastChangeOk returns a tuple with the LastChange field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DBChangeResponseDbchange) GetLastChangeOk() (*string, bool) { + if o == nil || o.LastChange == nil { + return nil, false + } + return o.LastChange, true +} + +// HasLastChange returns a boolean if a field has been set. +func (o *DBChangeResponseDbchange) HasLastChange() bool { + if o != nil && o.LastChange != nil { + return true + } + + return false +} + +// SetLastChange gets a reference to the given string and assigns it to the LastChange field. +func (o *DBChangeResponseDbchange) SetLastChange(v string) { + o.LastChange = &v +} + +// GetExported returns the Exported field value if set, zero value otherwise. +func (o *DBChangeResponseDbchange) GetExported() string { + if o == nil || o.Exported == nil { + var ret string + return ret + } + return *o.Exported +} + +// GetExportedOk returns a tuple with the Exported field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DBChangeResponseDbchange) GetExportedOk() (*string, bool) { + if o == nil || o.Exported == nil { + return nil, false + } + return o.Exported, true +} + +// HasExported returns a boolean if a field has been set. +func (o *DBChangeResponseDbchange) HasExported() bool { + if o != nil && o.Exported != nil { + return true + } + + return false +} + +// SetExported gets a reference to the given string and assigns it to the Exported field. +func (o *DBChangeResponseDbchange) SetExported(v string) { + o.Exported = &v +} + +func (o DBChangeResponseDbchange) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ErrataChanges != nil { + toSerialize["errata_changes"] = o.ErrataChanges + } + if o.CveChanges != nil { + toSerialize["cve_changes"] = o.CveChanges + } + if o.RepositoryChanges != nil { + toSerialize["repository_changes"] = o.RepositoryChanges + } + if o.LastChange != nil { + toSerialize["last_change"] = o.LastChange + } + if o.Exported != nil { + toSerialize["exported"] = o.Exported + } + return json.Marshal(toSerialize) +} + +type NullableDBChangeResponseDbchange struct { + value *DBChangeResponseDbchange + isSet bool +} + +func (v NullableDBChangeResponseDbchange) Get() *DBChangeResponseDbchange { + return v.value +} + +func (v *NullableDBChangeResponseDbchange) Set(val *DBChangeResponseDbchange) { + v.value = val + v.isSet = true +} + +func (v NullableDBChangeResponseDbchange) IsSet() bool { + return v.isSet +} + +func (v *NullableDBChangeResponseDbchange) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDBChangeResponseDbchange(val *DBChangeResponseDbchange) *NullableDBChangeResponseDbchange { + return &NullableDBChangeResponseDbchange{value: val, isSet: true} +} + +func (v NullableDBChangeResponseDbchange) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDBChangeResponseDbchange) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/vmaas/model_errata_request.go b/vmaas/model_errata_request.go index 09b4f3f..b2d022e 100644 --- a/vmaas/model_errata_request.go +++ b/vmaas/model_errata_request.go @@ -3,17 +3,328 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.20.4 - * Generated by: OpenAPI Generator (https://openapi-generator.tech) + * API version: 2.5.0 */ +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + package vmaas + +import ( + "encoding/json" + "time" +) + // ErrataRequest struct for ErrataRequest type ErrataRequest struct { - Page float32 `json:"page,omitempty"` - PageSize float32 `json:"page_size,omitempty"` + Page *float32 `json:"page,omitempty"` + PageSize *float32 `json:"page_size,omitempty"` ErrataList []string `json:"errata_list"` - ModifiedSince string `json:"modified_since,omitempty"` - Type []string `json:"type,omitempty"` - Severity []string `json:"severity,omitempty"` + ModifiedSince *time.Time `json:"modified_since,omitempty"` + // Include content from \"third party\" repositories into the response, disabled by default. + ThirdParty *bool `json:"third_party,omitempty"` + Type *[]string `json:"type,omitempty"` + Severity *[]string `json:"severity,omitempty"` +} + +// NewErrataRequest instantiates a new ErrataRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewErrataRequest(errataList []string, ) *ErrataRequest { + this := ErrataRequest{} + this.ErrataList = errataList + var thirdParty bool = false + this.ThirdParty = &thirdParty + return &this +} + +// NewErrataRequestWithDefaults instantiates a new ErrataRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewErrataRequestWithDefaults() *ErrataRequest { + this := ErrataRequest{} + var thirdParty bool = false + this.ThirdParty = &thirdParty + return &this +} + +// GetPage returns the Page field value if set, zero value otherwise. +func (o *ErrataRequest) GetPage() float32 { + if o == nil || o.Page == nil { + var ret float32 + return ret + } + return *o.Page +} + +// GetPageOk returns a tuple with the Page field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ErrataRequest) GetPageOk() (*float32, bool) { + if o == nil || o.Page == nil { + return nil, false + } + return o.Page, true +} + +// HasPage returns a boolean if a field has been set. +func (o *ErrataRequest) HasPage() bool { + if o != nil && o.Page != nil { + return true + } + + return false +} + +// SetPage gets a reference to the given float32 and assigns it to the Page field. +func (o *ErrataRequest) SetPage(v float32) { + o.Page = &v +} + +// GetPageSize returns the PageSize field value if set, zero value otherwise. +func (o *ErrataRequest) GetPageSize() float32 { + if o == nil || o.PageSize == nil { + var ret float32 + return ret + } + return *o.PageSize +} + +// GetPageSizeOk returns a tuple with the PageSize field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ErrataRequest) GetPageSizeOk() (*float32, bool) { + if o == nil || o.PageSize == nil { + return nil, false + } + return o.PageSize, true +} + +// HasPageSize returns a boolean if a field has been set. +func (o *ErrataRequest) HasPageSize() bool { + if o != nil && o.PageSize != nil { + return true + } + + return false +} + +// SetPageSize gets a reference to the given float32 and assigns it to the PageSize field. +func (o *ErrataRequest) SetPageSize(v float32) { + o.PageSize = &v +} + +// GetErrataList returns the ErrataList field value +func (o *ErrataRequest) GetErrataList() []string { + if o == nil { + var ret []string + return ret + } + + return o.ErrataList +} + +// GetErrataListOk returns a tuple with the ErrataList field value +// and a boolean to check if the value has been set. +func (o *ErrataRequest) GetErrataListOk() (*[]string, bool) { + if o == nil { + return nil, false + } + return &o.ErrataList, true +} + +// SetErrataList sets field value +func (o *ErrataRequest) SetErrataList(v []string) { + o.ErrataList = v +} + +// GetModifiedSince returns the ModifiedSince field value if set, zero value otherwise. +func (o *ErrataRequest) GetModifiedSince() time.Time { + if o == nil || o.ModifiedSince == nil { + var ret time.Time + return ret + } + return *o.ModifiedSince +} + +// GetModifiedSinceOk returns a tuple with the ModifiedSince field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ErrataRequest) GetModifiedSinceOk() (*time.Time, bool) { + if o == nil || o.ModifiedSince == nil { + return nil, false + } + return o.ModifiedSince, true +} + +// HasModifiedSince returns a boolean if a field has been set. +func (o *ErrataRequest) HasModifiedSince() bool { + if o != nil && o.ModifiedSince != nil { + return true + } + + return false +} + +// SetModifiedSince gets a reference to the given time.Time and assigns it to the ModifiedSince field. +func (o *ErrataRequest) SetModifiedSince(v time.Time) { + o.ModifiedSince = &v +} + +// GetThirdParty returns the ThirdParty field value if set, zero value otherwise. +func (o *ErrataRequest) GetThirdParty() bool { + if o == nil || o.ThirdParty == nil { + var ret bool + return ret + } + return *o.ThirdParty +} + +// GetThirdPartyOk returns a tuple with the ThirdParty field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ErrataRequest) GetThirdPartyOk() (*bool, bool) { + if o == nil || o.ThirdParty == nil { + return nil, false + } + return o.ThirdParty, true +} + +// HasThirdParty returns a boolean if a field has been set. +func (o *ErrataRequest) HasThirdParty() bool { + if o != nil && o.ThirdParty != nil { + return true + } + + return false +} + +// SetThirdParty gets a reference to the given bool and assigns it to the ThirdParty field. +func (o *ErrataRequest) SetThirdParty(v bool) { + o.ThirdParty = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *ErrataRequest) GetType() []string { + if o == nil || o.Type == nil { + var ret []string + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ErrataRequest) GetTypeOk() (*[]string, bool) { + if o == nil || o.Type == nil { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *ErrataRequest) HasType() bool { + if o != nil && o.Type != nil { + return true + } + + return false +} + +// SetType gets a reference to the given []string and assigns it to the Type field. +func (o *ErrataRequest) SetType(v []string) { + o.Type = &v +} + +// GetSeverity returns the Severity field value if set, zero value otherwise. +func (o *ErrataRequest) GetSeverity() []string { + if o == nil || o.Severity == nil { + var ret []string + return ret + } + return *o.Severity +} + +// GetSeverityOk returns a tuple with the Severity field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ErrataRequest) GetSeverityOk() (*[]string, bool) { + if o == nil || o.Severity == nil { + return nil, false + } + return o.Severity, true +} + +// HasSeverity returns a boolean if a field has been set. +func (o *ErrataRequest) HasSeverity() bool { + if o != nil && o.Severity != nil { + return true + } + + return false } + +// SetSeverity gets a reference to the given []string and assigns it to the Severity field. +func (o *ErrataRequest) SetSeverity(v []string) { + o.Severity = &v +} + +func (o ErrataRequest) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Page != nil { + toSerialize["page"] = o.Page + } + if o.PageSize != nil { + toSerialize["page_size"] = o.PageSize + } + if true { + toSerialize["errata_list"] = o.ErrataList + } + if o.ModifiedSince != nil { + toSerialize["modified_since"] = o.ModifiedSince + } + if o.ThirdParty != nil { + toSerialize["third_party"] = o.ThirdParty + } + if o.Type != nil { + toSerialize["type"] = o.Type + } + if o.Severity != nil { + toSerialize["severity"] = o.Severity + } + return json.Marshal(toSerialize) +} + +type NullableErrataRequest struct { + value *ErrataRequest + isSet bool +} + +func (v NullableErrataRequest) Get() *ErrataRequest { + return v.value +} + +func (v *NullableErrataRequest) Set(val *ErrataRequest) { + v.value = val + v.isSet = true +} + +func (v NullableErrataRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableErrataRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableErrataRequest(val *ErrataRequest) *NullableErrataRequest { + return &NullableErrataRequest{value: val, isSet: true} +} + +func (v NullableErrataRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableErrataRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/vmaas/model_errata_response.go b/vmaas/model_errata_response.go index 2c6cd05..e93e3b5 100644 --- a/vmaas/model_errata_response.go +++ b/vmaas/model_errata_response.go @@ -3,18 +3,330 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.20.4 - * Generated by: OpenAPI Generator (https://openapi-generator.tech) + * API version: 2.5.0 */ +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + package vmaas + +import ( + "encoding/json" + "time" +) + // ErrataResponse struct for ErrataResponse type ErrataResponse struct { - Page float32 `json:"page,omitempty"` - PageSize float32 `json:"page_size,omitempty"` - Pages float32 `json:"pages,omitempty"` - ErrataList map[string]ErrataResponseErrataList `json:"errata_list,omitempty"` - ModifiedSince string `json:"modified_since,omitempty"` - Type []string `json:"type,omitempty"` - Severity []string `json:"severity,omitempty"` + Page *float32 `json:"page,omitempty"` + PageSize *float32 `json:"page_size,omitempty"` + Pages *float32 `json:"pages,omitempty"` + ErrataList *map[string]ErrataResponseErrataList `json:"errata_list,omitempty"` + ModifiedSince *time.Time `json:"modified_since,omitempty"` + Type *[]string `json:"type,omitempty"` + Severity *[]string `json:"severity,omitempty"` +} + +// NewErrataResponse instantiates a new ErrataResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewErrataResponse() *ErrataResponse { + this := ErrataResponse{} + return &this +} + +// NewErrataResponseWithDefaults instantiates a new ErrataResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewErrataResponseWithDefaults() *ErrataResponse { + this := ErrataResponse{} + return &this +} + +// GetPage returns the Page field value if set, zero value otherwise. +func (o *ErrataResponse) GetPage() float32 { + if o == nil || o.Page == nil { + var ret float32 + return ret + } + return *o.Page +} + +// GetPageOk returns a tuple with the Page field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ErrataResponse) GetPageOk() (*float32, bool) { + if o == nil || o.Page == nil { + return nil, false + } + return o.Page, true +} + +// HasPage returns a boolean if a field has been set. +func (o *ErrataResponse) HasPage() bool { + if o != nil && o.Page != nil { + return true + } + + return false +} + +// SetPage gets a reference to the given float32 and assigns it to the Page field. +func (o *ErrataResponse) SetPage(v float32) { + o.Page = &v +} + +// GetPageSize returns the PageSize field value if set, zero value otherwise. +func (o *ErrataResponse) GetPageSize() float32 { + if o == nil || o.PageSize == nil { + var ret float32 + return ret + } + return *o.PageSize +} + +// GetPageSizeOk returns a tuple with the PageSize field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ErrataResponse) GetPageSizeOk() (*float32, bool) { + if o == nil || o.PageSize == nil { + return nil, false + } + return o.PageSize, true +} + +// HasPageSize returns a boolean if a field has been set. +func (o *ErrataResponse) HasPageSize() bool { + if o != nil && o.PageSize != nil { + return true + } + + return false +} + +// SetPageSize gets a reference to the given float32 and assigns it to the PageSize field. +func (o *ErrataResponse) SetPageSize(v float32) { + o.PageSize = &v +} + +// GetPages returns the Pages field value if set, zero value otherwise. +func (o *ErrataResponse) GetPages() float32 { + if o == nil || o.Pages == nil { + var ret float32 + return ret + } + return *o.Pages +} + +// GetPagesOk returns a tuple with the Pages field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ErrataResponse) GetPagesOk() (*float32, bool) { + if o == nil || o.Pages == nil { + return nil, false + } + return o.Pages, true +} + +// HasPages returns a boolean if a field has been set. +func (o *ErrataResponse) HasPages() bool { + if o != nil && o.Pages != nil { + return true + } + + return false +} + +// SetPages gets a reference to the given float32 and assigns it to the Pages field. +func (o *ErrataResponse) SetPages(v float32) { + o.Pages = &v +} + +// GetErrataList returns the ErrataList field value if set, zero value otherwise. +func (o *ErrataResponse) GetErrataList() map[string]ErrataResponseErrataList { + if o == nil || o.ErrataList == nil { + var ret map[string]ErrataResponseErrataList + return ret + } + return *o.ErrataList +} + +// GetErrataListOk returns a tuple with the ErrataList field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ErrataResponse) GetErrataListOk() (*map[string]ErrataResponseErrataList, bool) { + if o == nil || o.ErrataList == nil { + return nil, false + } + return o.ErrataList, true +} + +// HasErrataList returns a boolean if a field has been set. +func (o *ErrataResponse) HasErrataList() bool { + if o != nil && o.ErrataList != nil { + return true + } + + return false +} + +// SetErrataList gets a reference to the given map[string]ErrataResponseErrataList and assigns it to the ErrataList field. +func (o *ErrataResponse) SetErrataList(v map[string]ErrataResponseErrataList) { + o.ErrataList = &v +} + +// GetModifiedSince returns the ModifiedSince field value if set, zero value otherwise. +func (o *ErrataResponse) GetModifiedSince() time.Time { + if o == nil || o.ModifiedSince == nil { + var ret time.Time + return ret + } + return *o.ModifiedSince } + +// GetModifiedSinceOk returns a tuple with the ModifiedSince field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ErrataResponse) GetModifiedSinceOk() (*time.Time, bool) { + if o == nil || o.ModifiedSince == nil { + return nil, false + } + return o.ModifiedSince, true +} + +// HasModifiedSince returns a boolean if a field has been set. +func (o *ErrataResponse) HasModifiedSince() bool { + if o != nil && o.ModifiedSince != nil { + return true + } + + return false +} + +// SetModifiedSince gets a reference to the given time.Time and assigns it to the ModifiedSince field. +func (o *ErrataResponse) SetModifiedSince(v time.Time) { + o.ModifiedSince = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *ErrataResponse) GetType() []string { + if o == nil || o.Type == nil { + var ret []string + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ErrataResponse) GetTypeOk() (*[]string, bool) { + if o == nil || o.Type == nil { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *ErrataResponse) HasType() bool { + if o != nil && o.Type != nil { + return true + } + + return false +} + +// SetType gets a reference to the given []string and assigns it to the Type field. +func (o *ErrataResponse) SetType(v []string) { + o.Type = &v +} + +// GetSeverity returns the Severity field value if set, zero value otherwise. +func (o *ErrataResponse) GetSeverity() []string { + if o == nil || o.Severity == nil { + var ret []string + return ret + } + return *o.Severity +} + +// GetSeverityOk returns a tuple with the Severity field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ErrataResponse) GetSeverityOk() (*[]string, bool) { + if o == nil || o.Severity == nil { + return nil, false + } + return o.Severity, true +} + +// HasSeverity returns a boolean if a field has been set. +func (o *ErrataResponse) HasSeverity() bool { + if o != nil && o.Severity != nil { + return true + } + + return false +} + +// SetSeverity gets a reference to the given []string and assigns it to the Severity field. +func (o *ErrataResponse) SetSeverity(v []string) { + o.Severity = &v +} + +func (o ErrataResponse) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Page != nil { + toSerialize["page"] = o.Page + } + if o.PageSize != nil { + toSerialize["page_size"] = o.PageSize + } + if o.Pages != nil { + toSerialize["pages"] = o.Pages + } + if o.ErrataList != nil { + toSerialize["errata_list"] = o.ErrataList + } + if o.ModifiedSince != nil { + toSerialize["modified_since"] = o.ModifiedSince + } + if o.Type != nil { + toSerialize["type"] = o.Type + } + if o.Severity != nil { + toSerialize["severity"] = o.Severity + } + return json.Marshal(toSerialize) +} + +type NullableErrataResponse struct { + value *ErrataResponse + isSet bool +} + +func (v NullableErrataResponse) Get() *ErrataResponse { + return v.value +} + +func (v *NullableErrataResponse) Set(val *ErrataResponse) { + v.value = val + v.isSet = true +} + +func (v NullableErrataResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableErrataResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableErrataResponse(val *ErrataResponse) *NullableErrataResponse { + return &NullableErrataResponse{value: val, isSet: true} +} + +func (v NullableErrataResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableErrataResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/vmaas/model_errata_response_errata_list.go b/vmaas/model_errata_response_errata_list.go index 3765d06..2ae7e65 100644 --- a/vmaas/model_errata_response_errata_list.go +++ b/vmaas/model_errata_response_errata_list.go @@ -3,25 +3,628 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.20.4 - * Generated by: OpenAPI Generator (https://openapi-generator.tech) + * API version: 2.5.0 */ +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + package vmaas + +import ( + "encoding/json" + "time" +) + // ErrataResponseErrataList struct for ErrataResponseErrataList type ErrataResponseErrataList struct { - Updated string `json:"updated,omitempty"` - Severity *string `json:"severity,omitempty"` - ReferenceList []string `json:"reference_list,omitempty"` - Issued string `json:"issued,omitempty"` - Description string `json:"description,omitempty"` - Solution string `json:"solution,omitempty"` - Summary string `json:"summary,omitempty"` - Url string `json:"url,omitempty"` - Synopsis string `json:"synopsis,omitempty"` - CveList []string `json:"cve_list,omitempty"` - BugzillaList []string `json:"bugzilla_list,omitempty"` - PackageList []string `json:"package_list,omitempty"` - SourcePackageList []string `json:"source_package_list,omitempty"` - Type string `json:"type,omitempty"` + Updated *string `json:"updated,omitempty"` + Severity NullableString `json:"severity,omitempty"` + ReferenceList *[]string `json:"reference_list,omitempty"` + Issued *time.Time `json:"issued,omitempty"` + Description *string `json:"description,omitempty"` + Solution *string `json:"solution,omitempty"` + Summary *string `json:"summary,omitempty"` + Url *string `json:"url,omitempty"` + Synopsis *string `json:"synopsis,omitempty"` + CveList *[]string `json:"cve_list,omitempty"` + BugzillaList *[]string `json:"bugzilla_list,omitempty"` + PackageList *[]string `json:"package_list,omitempty"` + SourcePackageList *[]string `json:"source_package_list,omitempty"` + Type *string `json:"type,omitempty"` + ThirdParty *bool `json:"third_party,omitempty"` +} + +// NewErrataResponseErrataList instantiates a new ErrataResponseErrataList object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewErrataResponseErrataList() *ErrataResponseErrataList { + this := ErrataResponseErrataList{} + return &this +} + +// NewErrataResponseErrataListWithDefaults instantiates a new ErrataResponseErrataList object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewErrataResponseErrataListWithDefaults() *ErrataResponseErrataList { + this := ErrataResponseErrataList{} + return &this +} + +// GetUpdated returns the Updated field value if set, zero value otherwise. +func (o *ErrataResponseErrataList) GetUpdated() string { + if o == nil || o.Updated == nil { + var ret string + return ret + } + return *o.Updated +} + +// GetUpdatedOk returns a tuple with the Updated field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ErrataResponseErrataList) GetUpdatedOk() (*string, bool) { + if o == nil || o.Updated == nil { + return nil, false + } + return o.Updated, true +} + +// HasUpdated returns a boolean if a field has been set. +func (o *ErrataResponseErrataList) HasUpdated() bool { + if o != nil && o.Updated != nil { + return true + } + + return false +} + +// SetUpdated gets a reference to the given string and assigns it to the Updated field. +func (o *ErrataResponseErrataList) SetUpdated(v string) { + o.Updated = &v +} + +// GetSeverity returns the Severity field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ErrataResponseErrataList) GetSeverity() string { + if o == nil || o.Severity.Get() == nil { + var ret string + return ret + } + return *o.Severity.Get() +} + +// GetSeverityOk returns a tuple with the Severity field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ErrataResponseErrataList) GetSeverityOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Severity.Get(), o.Severity.IsSet() +} + +// HasSeverity returns a boolean if a field has been set. +func (o *ErrataResponseErrataList) HasSeverity() bool { + if o != nil && o.Severity.IsSet() { + return true + } + + return false +} + +// SetSeverity gets a reference to the given NullableString and assigns it to the Severity field. +func (o *ErrataResponseErrataList) SetSeverity(v string) { + o.Severity.Set(&v) +} +// SetSeverityNil sets the value for Severity to be an explicit nil +func (o *ErrataResponseErrataList) SetSeverityNil() { + o.Severity.Set(nil) +} + +// UnsetSeverity ensures that no value is present for Severity, not even an explicit nil +func (o *ErrataResponseErrataList) UnsetSeverity() { + o.Severity.Unset() +} + +// GetReferenceList returns the ReferenceList field value if set, zero value otherwise. +func (o *ErrataResponseErrataList) GetReferenceList() []string { + if o == nil || o.ReferenceList == nil { + var ret []string + return ret + } + return *o.ReferenceList +} + +// GetReferenceListOk returns a tuple with the ReferenceList field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ErrataResponseErrataList) GetReferenceListOk() (*[]string, bool) { + if o == nil || o.ReferenceList == nil { + return nil, false + } + return o.ReferenceList, true } + +// HasReferenceList returns a boolean if a field has been set. +func (o *ErrataResponseErrataList) HasReferenceList() bool { + if o != nil && o.ReferenceList != nil { + return true + } + + return false +} + +// SetReferenceList gets a reference to the given []string and assigns it to the ReferenceList field. +func (o *ErrataResponseErrataList) SetReferenceList(v []string) { + o.ReferenceList = &v +} + +// GetIssued returns the Issued field value if set, zero value otherwise. +func (o *ErrataResponseErrataList) GetIssued() time.Time { + if o == nil || o.Issued == nil { + var ret time.Time + return ret + } + return *o.Issued +} + +// GetIssuedOk returns a tuple with the Issued field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ErrataResponseErrataList) GetIssuedOk() (*time.Time, bool) { + if o == nil || o.Issued == nil { + return nil, false + } + return o.Issued, true +} + +// HasIssued returns a boolean if a field has been set. +func (o *ErrataResponseErrataList) HasIssued() bool { + if o != nil && o.Issued != nil { + return true + } + + return false +} + +// SetIssued gets a reference to the given time.Time and assigns it to the Issued field. +func (o *ErrataResponseErrataList) SetIssued(v time.Time) { + o.Issued = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *ErrataResponseErrataList) GetDescription() string { + if o == nil || o.Description == nil { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ErrataResponseErrataList) GetDescriptionOk() (*string, bool) { + if o == nil || o.Description == nil { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *ErrataResponseErrataList) HasDescription() bool { + if o != nil && o.Description != nil { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *ErrataResponseErrataList) SetDescription(v string) { + o.Description = &v +} + +// GetSolution returns the Solution field value if set, zero value otherwise. +func (o *ErrataResponseErrataList) GetSolution() string { + if o == nil || o.Solution == nil { + var ret string + return ret + } + return *o.Solution +} + +// GetSolutionOk returns a tuple with the Solution field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ErrataResponseErrataList) GetSolutionOk() (*string, bool) { + if o == nil || o.Solution == nil { + return nil, false + } + return o.Solution, true +} + +// HasSolution returns a boolean if a field has been set. +func (o *ErrataResponseErrataList) HasSolution() bool { + if o != nil && o.Solution != nil { + return true + } + + return false +} + +// SetSolution gets a reference to the given string and assigns it to the Solution field. +func (o *ErrataResponseErrataList) SetSolution(v string) { + o.Solution = &v +} + +// GetSummary returns the Summary field value if set, zero value otherwise. +func (o *ErrataResponseErrataList) GetSummary() string { + if o == nil || o.Summary == nil { + var ret string + return ret + } + return *o.Summary +} + +// GetSummaryOk returns a tuple with the Summary field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ErrataResponseErrataList) GetSummaryOk() (*string, bool) { + if o == nil || o.Summary == nil { + return nil, false + } + return o.Summary, true +} + +// HasSummary returns a boolean if a field has been set. +func (o *ErrataResponseErrataList) HasSummary() bool { + if o != nil && o.Summary != nil { + return true + } + + return false +} + +// SetSummary gets a reference to the given string and assigns it to the Summary field. +func (o *ErrataResponseErrataList) SetSummary(v string) { + o.Summary = &v +} + +// GetUrl returns the Url field value if set, zero value otherwise. +func (o *ErrataResponseErrataList) GetUrl() string { + if o == nil || o.Url == nil { + var ret string + return ret + } + return *o.Url +} + +// GetUrlOk returns a tuple with the Url field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ErrataResponseErrataList) GetUrlOk() (*string, bool) { + if o == nil || o.Url == nil { + return nil, false + } + return o.Url, true +} + +// HasUrl returns a boolean if a field has been set. +func (o *ErrataResponseErrataList) HasUrl() bool { + if o != nil && o.Url != nil { + return true + } + + return false +} + +// SetUrl gets a reference to the given string and assigns it to the Url field. +func (o *ErrataResponseErrataList) SetUrl(v string) { + o.Url = &v +} + +// GetSynopsis returns the Synopsis field value if set, zero value otherwise. +func (o *ErrataResponseErrataList) GetSynopsis() string { + if o == nil || o.Synopsis == nil { + var ret string + return ret + } + return *o.Synopsis +} + +// GetSynopsisOk returns a tuple with the Synopsis field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ErrataResponseErrataList) GetSynopsisOk() (*string, bool) { + if o == nil || o.Synopsis == nil { + return nil, false + } + return o.Synopsis, true +} + +// HasSynopsis returns a boolean if a field has been set. +func (o *ErrataResponseErrataList) HasSynopsis() bool { + if o != nil && o.Synopsis != nil { + return true + } + + return false +} + +// SetSynopsis gets a reference to the given string and assigns it to the Synopsis field. +func (o *ErrataResponseErrataList) SetSynopsis(v string) { + o.Synopsis = &v +} + +// GetCveList returns the CveList field value if set, zero value otherwise. +func (o *ErrataResponseErrataList) GetCveList() []string { + if o == nil || o.CveList == nil { + var ret []string + return ret + } + return *o.CveList +} + +// GetCveListOk returns a tuple with the CveList field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ErrataResponseErrataList) GetCveListOk() (*[]string, bool) { + if o == nil || o.CveList == nil { + return nil, false + } + return o.CveList, true +} + +// HasCveList returns a boolean if a field has been set. +func (o *ErrataResponseErrataList) HasCveList() bool { + if o != nil && o.CveList != nil { + return true + } + + return false +} + +// SetCveList gets a reference to the given []string and assigns it to the CveList field. +func (o *ErrataResponseErrataList) SetCveList(v []string) { + o.CveList = &v +} + +// GetBugzillaList returns the BugzillaList field value if set, zero value otherwise. +func (o *ErrataResponseErrataList) GetBugzillaList() []string { + if o == nil || o.BugzillaList == nil { + var ret []string + return ret + } + return *o.BugzillaList +} + +// GetBugzillaListOk returns a tuple with the BugzillaList field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ErrataResponseErrataList) GetBugzillaListOk() (*[]string, bool) { + if o == nil || o.BugzillaList == nil { + return nil, false + } + return o.BugzillaList, true +} + +// HasBugzillaList returns a boolean if a field has been set. +func (o *ErrataResponseErrataList) HasBugzillaList() bool { + if o != nil && o.BugzillaList != nil { + return true + } + + return false +} + +// SetBugzillaList gets a reference to the given []string and assigns it to the BugzillaList field. +func (o *ErrataResponseErrataList) SetBugzillaList(v []string) { + o.BugzillaList = &v +} + +// GetPackageList returns the PackageList field value if set, zero value otherwise. +func (o *ErrataResponseErrataList) GetPackageList() []string { + if o == nil || o.PackageList == nil { + var ret []string + return ret + } + return *o.PackageList +} + +// GetPackageListOk returns a tuple with the PackageList field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ErrataResponseErrataList) GetPackageListOk() (*[]string, bool) { + if o == nil || o.PackageList == nil { + return nil, false + } + return o.PackageList, true +} + +// HasPackageList returns a boolean if a field has been set. +func (o *ErrataResponseErrataList) HasPackageList() bool { + if o != nil && o.PackageList != nil { + return true + } + + return false +} + +// SetPackageList gets a reference to the given []string and assigns it to the PackageList field. +func (o *ErrataResponseErrataList) SetPackageList(v []string) { + o.PackageList = &v +} + +// GetSourcePackageList returns the SourcePackageList field value if set, zero value otherwise. +func (o *ErrataResponseErrataList) GetSourcePackageList() []string { + if o == nil || o.SourcePackageList == nil { + var ret []string + return ret + } + return *o.SourcePackageList +} + +// GetSourcePackageListOk returns a tuple with the SourcePackageList field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ErrataResponseErrataList) GetSourcePackageListOk() (*[]string, bool) { + if o == nil || o.SourcePackageList == nil { + return nil, false + } + return o.SourcePackageList, true +} + +// HasSourcePackageList returns a boolean if a field has been set. +func (o *ErrataResponseErrataList) HasSourcePackageList() bool { + if o != nil && o.SourcePackageList != nil { + return true + } + + return false +} + +// SetSourcePackageList gets a reference to the given []string and assigns it to the SourcePackageList field. +func (o *ErrataResponseErrataList) SetSourcePackageList(v []string) { + o.SourcePackageList = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *ErrataResponseErrataList) GetType() string { + if o == nil || o.Type == nil { + var ret string + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ErrataResponseErrataList) GetTypeOk() (*string, bool) { + if o == nil || o.Type == nil { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *ErrataResponseErrataList) HasType() bool { + if o != nil && o.Type != nil { + return true + } + + return false +} + +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *ErrataResponseErrataList) SetType(v string) { + o.Type = &v +} + +// GetThirdParty returns the ThirdParty field value if set, zero value otherwise. +func (o *ErrataResponseErrataList) GetThirdParty() bool { + if o == nil || o.ThirdParty == nil { + var ret bool + return ret + } + return *o.ThirdParty +} + +// GetThirdPartyOk returns a tuple with the ThirdParty field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ErrataResponseErrataList) GetThirdPartyOk() (*bool, bool) { + if o == nil || o.ThirdParty == nil { + return nil, false + } + return o.ThirdParty, true +} + +// HasThirdParty returns a boolean if a field has been set. +func (o *ErrataResponseErrataList) HasThirdParty() bool { + if o != nil && o.ThirdParty != nil { + return true + } + + return false +} + +// SetThirdParty gets a reference to the given bool and assigns it to the ThirdParty field. +func (o *ErrataResponseErrataList) SetThirdParty(v bool) { + o.ThirdParty = &v +} + +func (o ErrataResponseErrataList) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Updated != nil { + toSerialize["updated"] = o.Updated + } + if o.Severity.IsSet() { + toSerialize["severity"] = o.Severity.Get() + } + if o.ReferenceList != nil { + toSerialize["reference_list"] = o.ReferenceList + } + if o.Issued != nil { + toSerialize["issued"] = o.Issued + } + if o.Description != nil { + toSerialize["description"] = o.Description + } + if o.Solution != nil { + toSerialize["solution"] = o.Solution + } + if o.Summary != nil { + toSerialize["summary"] = o.Summary + } + if o.Url != nil { + toSerialize["url"] = o.Url + } + if o.Synopsis != nil { + toSerialize["synopsis"] = o.Synopsis + } + if o.CveList != nil { + toSerialize["cve_list"] = o.CveList + } + if o.BugzillaList != nil { + toSerialize["bugzilla_list"] = o.BugzillaList + } + if o.PackageList != nil { + toSerialize["package_list"] = o.PackageList + } + if o.SourcePackageList != nil { + toSerialize["source_package_list"] = o.SourcePackageList + } + if o.Type != nil { + toSerialize["type"] = o.Type + } + if o.ThirdParty != nil { + toSerialize["third_party"] = o.ThirdParty + } + return json.Marshal(toSerialize) +} + +type NullableErrataResponseErrataList struct { + value *ErrataResponseErrataList + isSet bool +} + +func (v NullableErrataResponseErrataList) Get() *ErrataResponseErrataList { + return v.value +} + +func (v *NullableErrataResponseErrataList) Set(val *ErrataResponseErrataList) { + v.value = val + v.isSet = true +} + +func (v NullableErrataResponseErrataList) IsSet() bool { + return v.isSet +} + +func (v *NullableErrataResponseErrataList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableErrataResponseErrataList(val *ErrataResponseErrataList) *NullableErrataResponseErrataList { + return &NullableErrataResponseErrataList{value: val, isSet: true} +} + +func (v NullableErrataResponseErrataList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableErrataResponseErrataList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/vmaas/model_packages_request.go b/vmaas/model_packages_request.go index da3941f..b5b1e88 100644 --- a/vmaas/model_packages_request.go +++ b/vmaas/model_packages_request.go @@ -3,12 +3,147 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.20.4 - * Generated by: OpenAPI Generator (https://openapi-generator.tech) + * API version: 2.5.0 */ +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + package vmaas + +import ( + "encoding/json" +) + // PackagesRequest struct for PackagesRequest type PackagesRequest struct { PackageList []string `json:"package_list"` + // Include content from \"third party\" repositories into the response, disabled by default. + ThirdParty *bool `json:"third_party,omitempty"` +} + +// NewPackagesRequest instantiates a new PackagesRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPackagesRequest(packageList []string, ) *PackagesRequest { + this := PackagesRequest{} + this.PackageList = packageList + var thirdParty bool = false + this.ThirdParty = &thirdParty + return &this +} + +// NewPackagesRequestWithDefaults instantiates a new PackagesRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPackagesRequestWithDefaults() *PackagesRequest { + this := PackagesRequest{} + var thirdParty bool = false + this.ThirdParty = &thirdParty + return &this +} + +// GetPackageList returns the PackageList field value +func (o *PackagesRequest) GetPackageList() []string { + if o == nil { + var ret []string + return ret + } + + return o.PackageList +} + +// GetPackageListOk returns a tuple with the PackageList field value +// and a boolean to check if the value has been set. +func (o *PackagesRequest) GetPackageListOk() (*[]string, bool) { + if o == nil { + return nil, false + } + return &o.PackageList, true +} + +// SetPackageList sets field value +func (o *PackagesRequest) SetPackageList(v []string) { + o.PackageList = v } + +// GetThirdParty returns the ThirdParty field value if set, zero value otherwise. +func (o *PackagesRequest) GetThirdParty() bool { + if o == nil || o.ThirdParty == nil { + var ret bool + return ret + } + return *o.ThirdParty +} + +// GetThirdPartyOk returns a tuple with the ThirdParty field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackagesRequest) GetThirdPartyOk() (*bool, bool) { + if o == nil || o.ThirdParty == nil { + return nil, false + } + return o.ThirdParty, true +} + +// HasThirdParty returns a boolean if a field has been set. +func (o *PackagesRequest) HasThirdParty() bool { + if o != nil && o.ThirdParty != nil { + return true + } + + return false +} + +// SetThirdParty gets a reference to the given bool and assigns it to the ThirdParty field. +func (o *PackagesRequest) SetThirdParty(v bool) { + o.ThirdParty = &v +} + +func (o PackagesRequest) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["package_list"] = o.PackageList + } + if o.ThirdParty != nil { + toSerialize["third_party"] = o.ThirdParty + } + return json.Marshal(toSerialize) +} + +type NullablePackagesRequest struct { + value *PackagesRequest + isSet bool +} + +func (v NullablePackagesRequest) Get() *PackagesRequest { + return v.value +} + +func (v *NullablePackagesRequest) Set(val *PackagesRequest) { + v.value = val + v.isSet = true +} + +func (v NullablePackagesRequest) IsSet() bool { + return v.isSet +} + +func (v *NullablePackagesRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePackagesRequest(val *PackagesRequest) *NullablePackagesRequest { + return &NullablePackagesRequest{value: val, isSet: true} +} + +func (v NullablePackagesRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePackagesRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/vmaas/model_packages_response.go b/vmaas/model_packages_response.go index a6dd54b..bea4087 100644 --- a/vmaas/model_packages_response.go +++ b/vmaas/model_packages_response.go @@ -3,12 +3,113 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.20.4 - * Generated by: OpenAPI Generator (https://openapi-generator.tech) + * API version: 2.5.0 */ +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + package vmaas + +import ( + "encoding/json" +) + // PackagesResponse struct for PackagesResponse type PackagesResponse struct { - PackageList map[string]PackagesResponsePackageList `json:"package_list,omitempty"` + PackageList *map[string]PackagesResponsePackageList `json:"package_list,omitempty"` +} + +// NewPackagesResponse instantiates a new PackagesResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPackagesResponse() *PackagesResponse { + this := PackagesResponse{} + return &this +} + +// NewPackagesResponseWithDefaults instantiates a new PackagesResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPackagesResponseWithDefaults() *PackagesResponse { + this := PackagesResponse{} + return &this +} + +// GetPackageList returns the PackageList field value if set, zero value otherwise. +func (o *PackagesResponse) GetPackageList() map[string]PackagesResponsePackageList { + if o == nil || o.PackageList == nil { + var ret map[string]PackagesResponsePackageList + return ret + } + return *o.PackageList +} + +// GetPackageListOk returns a tuple with the PackageList field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackagesResponse) GetPackageListOk() (*map[string]PackagesResponsePackageList, bool) { + if o == nil || o.PackageList == nil { + return nil, false + } + return o.PackageList, true +} + +// HasPackageList returns a boolean if a field has been set. +func (o *PackagesResponse) HasPackageList() bool { + if o != nil && o.PackageList != nil { + return true + } + + return false +} + +// SetPackageList gets a reference to the given map[string]PackagesResponsePackageList and assigns it to the PackageList field. +func (o *PackagesResponse) SetPackageList(v map[string]PackagesResponsePackageList) { + o.PackageList = &v +} + +func (o PackagesResponse) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.PackageList != nil { + toSerialize["package_list"] = o.PackageList + } + return json.Marshal(toSerialize) } + +type NullablePackagesResponse struct { + value *PackagesResponse + isSet bool +} + +func (v NullablePackagesResponse) Get() *PackagesResponse { + return v.value +} + +func (v *NullablePackagesResponse) Set(val *PackagesResponse) { + v.value = val + v.isSet = true +} + +func (v NullablePackagesResponse) IsSet() bool { + return v.isSet +} + +func (v *NullablePackagesResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePackagesResponse(val *PackagesResponse) *NullablePackagesResponse { + return &NullablePackagesResponse{value: val, isSet: true} +} + +func (v NullablePackagesResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePackagesResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/vmaas/model_packages_response_package_list.go b/vmaas/model_packages_response_package_list.go index 1c82a29..537cc7b 100644 --- a/vmaas/model_packages_response_package_list.go +++ b/vmaas/model_packages_response_package_list.go @@ -3,16 +3,257 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.20.4 - * Generated by: OpenAPI Generator (https://openapi-generator.tech) + * API version: 2.5.0 */ +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + package vmaas + +import ( + "encoding/json" +) + // PackagesResponsePackageList struct for PackagesResponsePackageList type PackagesResponsePackageList struct { - Summary string `json:"summary,omitempty"` - Description string `json:"description,omitempty"` - SourcePackage string `json:"source_package,omitempty"` - PackageList []string `json:"package_list,omitempty"` - Repositories []PackagesResponseRepositories `json:"repositories,omitempty"` + Summary *string `json:"summary,omitempty"` + Description *string `json:"description,omitempty"` + SourcePackage *string `json:"source_package,omitempty"` + PackageList *[]string `json:"package_list,omitempty"` + Repositories *[]PackagesResponseRepositories `json:"repositories,omitempty"` +} + +// NewPackagesResponsePackageList instantiates a new PackagesResponsePackageList object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPackagesResponsePackageList() *PackagesResponsePackageList { + this := PackagesResponsePackageList{} + return &this +} + +// NewPackagesResponsePackageListWithDefaults instantiates a new PackagesResponsePackageList object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPackagesResponsePackageListWithDefaults() *PackagesResponsePackageList { + this := PackagesResponsePackageList{} + return &this +} + +// GetSummary returns the Summary field value if set, zero value otherwise. +func (o *PackagesResponsePackageList) GetSummary() string { + if o == nil || o.Summary == nil { + var ret string + return ret + } + return *o.Summary +} + +// GetSummaryOk returns a tuple with the Summary field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackagesResponsePackageList) GetSummaryOk() (*string, bool) { + if o == nil || o.Summary == nil { + return nil, false + } + return o.Summary, true +} + +// HasSummary returns a boolean if a field has been set. +func (o *PackagesResponsePackageList) HasSummary() bool { + if o != nil && o.Summary != nil { + return true + } + + return false +} + +// SetSummary gets a reference to the given string and assigns it to the Summary field. +func (o *PackagesResponsePackageList) SetSummary(v string) { + o.Summary = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *PackagesResponsePackageList) GetDescription() string { + if o == nil || o.Description == nil { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackagesResponsePackageList) GetDescriptionOk() (*string, bool) { + if o == nil || o.Description == nil { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *PackagesResponsePackageList) HasDescription() bool { + if o != nil && o.Description != nil { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *PackagesResponsePackageList) SetDescription(v string) { + o.Description = &v +} + +// GetSourcePackage returns the SourcePackage field value if set, zero value otherwise. +func (o *PackagesResponsePackageList) GetSourcePackage() string { + if o == nil || o.SourcePackage == nil { + var ret string + return ret + } + return *o.SourcePackage +} + +// GetSourcePackageOk returns a tuple with the SourcePackage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackagesResponsePackageList) GetSourcePackageOk() (*string, bool) { + if o == nil || o.SourcePackage == nil { + return nil, false + } + return o.SourcePackage, true +} + +// HasSourcePackage returns a boolean if a field has been set. +func (o *PackagesResponsePackageList) HasSourcePackage() bool { + if o != nil && o.SourcePackage != nil { + return true + } + + return false +} + +// SetSourcePackage gets a reference to the given string and assigns it to the SourcePackage field. +func (o *PackagesResponsePackageList) SetSourcePackage(v string) { + o.SourcePackage = &v +} + +// GetPackageList returns the PackageList field value if set, zero value otherwise. +func (o *PackagesResponsePackageList) GetPackageList() []string { + if o == nil || o.PackageList == nil { + var ret []string + return ret + } + return *o.PackageList } + +// GetPackageListOk returns a tuple with the PackageList field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackagesResponsePackageList) GetPackageListOk() (*[]string, bool) { + if o == nil || o.PackageList == nil { + return nil, false + } + return o.PackageList, true +} + +// HasPackageList returns a boolean if a field has been set. +func (o *PackagesResponsePackageList) HasPackageList() bool { + if o != nil && o.PackageList != nil { + return true + } + + return false +} + +// SetPackageList gets a reference to the given []string and assigns it to the PackageList field. +func (o *PackagesResponsePackageList) SetPackageList(v []string) { + o.PackageList = &v +} + +// GetRepositories returns the Repositories field value if set, zero value otherwise. +func (o *PackagesResponsePackageList) GetRepositories() []PackagesResponseRepositories { + if o == nil || o.Repositories == nil { + var ret []PackagesResponseRepositories + return ret + } + return *o.Repositories +} + +// GetRepositoriesOk returns a tuple with the Repositories field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackagesResponsePackageList) GetRepositoriesOk() (*[]PackagesResponseRepositories, bool) { + if o == nil || o.Repositories == nil { + return nil, false + } + return o.Repositories, true +} + +// HasRepositories returns a boolean if a field has been set. +func (o *PackagesResponsePackageList) HasRepositories() bool { + if o != nil && o.Repositories != nil { + return true + } + + return false +} + +// SetRepositories gets a reference to the given []PackagesResponseRepositories and assigns it to the Repositories field. +func (o *PackagesResponsePackageList) SetRepositories(v []PackagesResponseRepositories) { + o.Repositories = &v +} + +func (o PackagesResponsePackageList) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Summary != nil { + toSerialize["summary"] = o.Summary + } + if o.Description != nil { + toSerialize["description"] = o.Description + } + if o.SourcePackage != nil { + toSerialize["source_package"] = o.SourcePackage + } + if o.PackageList != nil { + toSerialize["package_list"] = o.PackageList + } + if o.Repositories != nil { + toSerialize["repositories"] = o.Repositories + } + return json.Marshal(toSerialize) +} + +type NullablePackagesResponsePackageList struct { + value *PackagesResponsePackageList + isSet bool +} + +func (v NullablePackagesResponsePackageList) Get() *PackagesResponsePackageList { + return v.value +} + +func (v *NullablePackagesResponsePackageList) Set(val *PackagesResponsePackageList) { + v.value = val + v.isSet = true +} + +func (v NullablePackagesResponsePackageList) IsSet() bool { + return v.isSet +} + +func (v *NullablePackagesResponsePackageList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePackagesResponsePackageList(val *PackagesResponsePackageList) *NullablePackagesResponsePackageList { + return &NullablePackagesResponsePackageList{value: val, isSet: true} +} + +func (v NullablePackagesResponsePackageList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePackagesResponsePackageList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/vmaas/model_packages_response_repositories.go b/vmaas/model_packages_response_repositories.go index f5714a8..b6d5050 100644 --- a/vmaas/model_packages_response_repositories.go +++ b/vmaas/model_packages_response_repositories.go @@ -3,15 +3,221 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.20.4 - * Generated by: OpenAPI Generator (https://openapi-generator.tech) + * API version: 2.5.0 */ +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + package vmaas + +import ( + "encoding/json" +) + // PackagesResponseRepositories struct for PackagesResponseRepositories type PackagesResponseRepositories struct { - Label string `json:"label,omitempty"` - Name string `json:"name,omitempty"` - Basearch string `json:"basearch,omitempty"` - Releasever string `json:"releasever,omitempty"` + Label *string `json:"label,omitempty"` + Name *string `json:"name,omitempty"` + Basearch *string `json:"basearch,omitempty"` + Releasever *string `json:"releasever,omitempty"` +} + +// NewPackagesResponseRepositories instantiates a new PackagesResponseRepositories object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPackagesResponseRepositories() *PackagesResponseRepositories { + this := PackagesResponseRepositories{} + return &this +} + +// NewPackagesResponseRepositoriesWithDefaults instantiates a new PackagesResponseRepositories object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPackagesResponseRepositoriesWithDefaults() *PackagesResponseRepositories { + this := PackagesResponseRepositories{} + return &this +} + +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *PackagesResponseRepositories) GetLabel() string { + if o == nil || o.Label == nil { + var ret string + return ret + } + return *o.Label +} + +// GetLabelOk returns a tuple with the Label field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackagesResponseRepositories) GetLabelOk() (*string, bool) { + if o == nil || o.Label == nil { + return nil, false + } + return o.Label, true +} + +// HasLabel returns a boolean if a field has been set. +func (o *PackagesResponseRepositories) HasLabel() bool { + if o != nil && o.Label != nil { + return true + } + + return false +} + +// SetLabel gets a reference to the given string and assigns it to the Label field. +func (o *PackagesResponseRepositories) SetLabel(v string) { + o.Label = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *PackagesResponseRepositories) GetName() string { + if o == nil || o.Name == nil { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackagesResponseRepositories) GetNameOk() (*string, bool) { + if o == nil || o.Name == nil { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *PackagesResponseRepositories) HasName() bool { + if o != nil && o.Name != nil { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *PackagesResponseRepositories) SetName(v string) { + o.Name = &v +} + +// GetBasearch returns the Basearch field value if set, zero value otherwise. +func (o *PackagesResponseRepositories) GetBasearch() string { + if o == nil || o.Basearch == nil { + var ret string + return ret + } + return *o.Basearch +} + +// GetBasearchOk returns a tuple with the Basearch field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackagesResponseRepositories) GetBasearchOk() (*string, bool) { + if o == nil || o.Basearch == nil { + return nil, false + } + return o.Basearch, true +} + +// HasBasearch returns a boolean if a field has been set. +func (o *PackagesResponseRepositories) HasBasearch() bool { + if o != nil && o.Basearch != nil { + return true + } + + return false } + +// SetBasearch gets a reference to the given string and assigns it to the Basearch field. +func (o *PackagesResponseRepositories) SetBasearch(v string) { + o.Basearch = &v +} + +// GetReleasever returns the Releasever field value if set, zero value otherwise. +func (o *PackagesResponseRepositories) GetReleasever() string { + if o == nil || o.Releasever == nil { + var ret string + return ret + } + return *o.Releasever +} + +// GetReleaseverOk returns a tuple with the Releasever field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackagesResponseRepositories) GetReleaseverOk() (*string, bool) { + if o == nil || o.Releasever == nil { + return nil, false + } + return o.Releasever, true +} + +// HasReleasever returns a boolean if a field has been set. +func (o *PackagesResponseRepositories) HasReleasever() bool { + if o != nil && o.Releasever != nil { + return true + } + + return false +} + +// SetReleasever gets a reference to the given string and assigns it to the Releasever field. +func (o *PackagesResponseRepositories) SetReleasever(v string) { + o.Releasever = &v +} + +func (o PackagesResponseRepositories) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Label != nil { + toSerialize["label"] = o.Label + } + if o.Name != nil { + toSerialize["name"] = o.Name + } + if o.Basearch != nil { + toSerialize["basearch"] = o.Basearch + } + if o.Releasever != nil { + toSerialize["releasever"] = o.Releasever + } + return json.Marshal(toSerialize) +} + +type NullablePackagesResponseRepositories struct { + value *PackagesResponseRepositories + isSet bool +} + +func (v NullablePackagesResponseRepositories) Get() *PackagesResponseRepositories { + return v.value +} + +func (v *NullablePackagesResponseRepositories) Set(val *PackagesResponseRepositories) { + v.value = val + v.isSet = true +} + +func (v NullablePackagesResponseRepositories) IsSet() bool { + return v.isSet +} + +func (v *NullablePackagesResponseRepositories) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePackagesResponseRepositories(val *PackagesResponseRepositories) *NullablePackagesResponseRepositories { + return &NullablePackagesResponseRepositories{value: val, isSet: true} +} + +func (v NullablePackagesResponseRepositories) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePackagesResponseRepositories) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/vmaas/model_patches_request.go b/vmaas/model_patches_request.go index c2561c6..772dce2 100644 --- a/vmaas/model_patches_request.go +++ b/vmaas/model_patches_request.go @@ -3,16 +3,291 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.20.4 - * Generated by: OpenAPI Generator (https://openapi-generator.tech) + * API version: 2.5.0 */ +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + package vmaas + +import ( + "encoding/json" +) + // PatchesRequest struct for PatchesRequest type PatchesRequest struct { PackageList []string `json:"package_list"` - RepositoryList []string `json:"repository_list,omitempty"` - ModulesList []UpdatesRequestModulesList `json:"modules_list,omitempty"` - Releasever string `json:"releasever,omitempty"` - Basearch string `json:"basearch,omitempty"` + RepositoryList *[]string `json:"repository_list,omitempty"` + ModulesList *[]UpdatesV3RequestModulesList `json:"modules_list,omitempty"` + Releasever *string `json:"releasever,omitempty"` + Basearch *string `json:"basearch,omitempty"` + // Include content from \"third party\" repositories into the response, disabled by default. + ThirdParty *bool `json:"third_party,omitempty"` +} + +// NewPatchesRequest instantiates a new PatchesRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPatchesRequest(packageList []string, ) *PatchesRequest { + this := PatchesRequest{} + this.PackageList = packageList + var thirdParty bool = false + this.ThirdParty = &thirdParty + return &this +} + +// NewPatchesRequestWithDefaults instantiates a new PatchesRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPatchesRequestWithDefaults() *PatchesRequest { + this := PatchesRequest{} + var thirdParty bool = false + this.ThirdParty = &thirdParty + return &this +} + +// GetPackageList returns the PackageList field value +func (o *PatchesRequest) GetPackageList() []string { + if o == nil { + var ret []string + return ret + } + + return o.PackageList +} + +// GetPackageListOk returns a tuple with the PackageList field value +// and a boolean to check if the value has been set. +func (o *PatchesRequest) GetPackageListOk() (*[]string, bool) { + if o == nil { + return nil, false + } + return &o.PackageList, true +} + +// SetPackageList sets field value +func (o *PatchesRequest) SetPackageList(v []string) { + o.PackageList = v +} + +// GetRepositoryList returns the RepositoryList field value if set, zero value otherwise. +func (o *PatchesRequest) GetRepositoryList() []string { + if o == nil || o.RepositoryList == nil { + var ret []string + return ret + } + return *o.RepositoryList +} + +// GetRepositoryListOk returns a tuple with the RepositoryList field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchesRequest) GetRepositoryListOk() (*[]string, bool) { + if o == nil || o.RepositoryList == nil { + return nil, false + } + return o.RepositoryList, true +} + +// HasRepositoryList returns a boolean if a field has been set. +func (o *PatchesRequest) HasRepositoryList() bool { + if o != nil && o.RepositoryList != nil { + return true + } + + return false +} + +// SetRepositoryList gets a reference to the given []string and assigns it to the RepositoryList field. +func (o *PatchesRequest) SetRepositoryList(v []string) { + o.RepositoryList = &v +} + +// GetModulesList returns the ModulesList field value if set, zero value otherwise. +func (o *PatchesRequest) GetModulesList() []UpdatesV3RequestModulesList { + if o == nil || o.ModulesList == nil { + var ret []UpdatesV3RequestModulesList + return ret + } + return *o.ModulesList +} + +// GetModulesListOk returns a tuple with the ModulesList field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchesRequest) GetModulesListOk() (*[]UpdatesV3RequestModulesList, bool) { + if o == nil || o.ModulesList == nil { + return nil, false + } + return o.ModulesList, true +} + +// HasModulesList returns a boolean if a field has been set. +func (o *PatchesRequest) HasModulesList() bool { + if o != nil && o.ModulesList != nil { + return true + } + + return false } + +// SetModulesList gets a reference to the given []UpdatesV3RequestModulesList and assigns it to the ModulesList field. +func (o *PatchesRequest) SetModulesList(v []UpdatesV3RequestModulesList) { + o.ModulesList = &v +} + +// GetReleasever returns the Releasever field value if set, zero value otherwise. +func (o *PatchesRequest) GetReleasever() string { + if o == nil || o.Releasever == nil { + var ret string + return ret + } + return *o.Releasever +} + +// GetReleaseverOk returns a tuple with the Releasever field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchesRequest) GetReleaseverOk() (*string, bool) { + if o == nil || o.Releasever == nil { + return nil, false + } + return o.Releasever, true +} + +// HasReleasever returns a boolean if a field has been set. +func (o *PatchesRequest) HasReleasever() bool { + if o != nil && o.Releasever != nil { + return true + } + + return false +} + +// SetReleasever gets a reference to the given string and assigns it to the Releasever field. +func (o *PatchesRequest) SetReleasever(v string) { + o.Releasever = &v +} + +// GetBasearch returns the Basearch field value if set, zero value otherwise. +func (o *PatchesRequest) GetBasearch() string { + if o == nil || o.Basearch == nil { + var ret string + return ret + } + return *o.Basearch +} + +// GetBasearchOk returns a tuple with the Basearch field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchesRequest) GetBasearchOk() (*string, bool) { + if o == nil || o.Basearch == nil { + return nil, false + } + return o.Basearch, true +} + +// HasBasearch returns a boolean if a field has been set. +func (o *PatchesRequest) HasBasearch() bool { + if o != nil && o.Basearch != nil { + return true + } + + return false +} + +// SetBasearch gets a reference to the given string and assigns it to the Basearch field. +func (o *PatchesRequest) SetBasearch(v string) { + o.Basearch = &v +} + +// GetThirdParty returns the ThirdParty field value if set, zero value otherwise. +func (o *PatchesRequest) GetThirdParty() bool { + if o == nil || o.ThirdParty == nil { + var ret bool + return ret + } + return *o.ThirdParty +} + +// GetThirdPartyOk returns a tuple with the ThirdParty field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchesRequest) GetThirdPartyOk() (*bool, bool) { + if o == nil || o.ThirdParty == nil { + return nil, false + } + return o.ThirdParty, true +} + +// HasThirdParty returns a boolean if a field has been set. +func (o *PatchesRequest) HasThirdParty() bool { + if o != nil && o.ThirdParty != nil { + return true + } + + return false +} + +// SetThirdParty gets a reference to the given bool and assigns it to the ThirdParty field. +func (o *PatchesRequest) SetThirdParty(v bool) { + o.ThirdParty = &v +} + +func (o PatchesRequest) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["package_list"] = o.PackageList + } + if o.RepositoryList != nil { + toSerialize["repository_list"] = o.RepositoryList + } + if o.ModulesList != nil { + toSerialize["modules_list"] = o.ModulesList + } + if o.Releasever != nil { + toSerialize["releasever"] = o.Releasever + } + if o.Basearch != nil { + toSerialize["basearch"] = o.Basearch + } + if o.ThirdParty != nil { + toSerialize["third_party"] = o.ThirdParty + } + return json.Marshal(toSerialize) +} + +type NullablePatchesRequest struct { + value *PatchesRequest + isSet bool +} + +func (v NullablePatchesRequest) Get() *PatchesRequest { + return v.value +} + +func (v *NullablePatchesRequest) Set(val *PatchesRequest) { + v.value = val + v.isSet = true +} + +func (v NullablePatchesRequest) IsSet() bool { + return v.isSet +} + +func (v *NullablePatchesRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePatchesRequest(val *PatchesRequest) *NullablePatchesRequest { + return &NullablePatchesRequest{value: val, isSet: true} +} + +func (v NullablePatchesRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePatchesRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/vmaas/model_patches_response.go b/vmaas/model_patches_response.go index 364b5ff..61b5739 100644 --- a/vmaas/model_patches_response.go +++ b/vmaas/model_patches_response.go @@ -3,12 +3,113 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.20.4 - * Generated by: OpenAPI Generator (https://openapi-generator.tech) + * API version: 2.5.0 */ +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + package vmaas + +import ( + "encoding/json" +) + // PatchesResponse struct for PatchesResponse type PatchesResponse struct { - ErrataList []string `json:"errata_list,omitempty"` + ErrataList *[]string `json:"errata_list,omitempty"` +} + +// NewPatchesResponse instantiates a new PatchesResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPatchesResponse() *PatchesResponse { + this := PatchesResponse{} + return &this +} + +// NewPatchesResponseWithDefaults instantiates a new PatchesResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPatchesResponseWithDefaults() *PatchesResponse { + this := PatchesResponse{} + return &this +} + +// GetErrataList returns the ErrataList field value if set, zero value otherwise. +func (o *PatchesResponse) GetErrataList() []string { + if o == nil || o.ErrataList == nil { + var ret []string + return ret + } + return *o.ErrataList +} + +// GetErrataListOk returns a tuple with the ErrataList field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchesResponse) GetErrataListOk() (*[]string, bool) { + if o == nil || o.ErrataList == nil { + return nil, false + } + return o.ErrataList, true +} + +// HasErrataList returns a boolean if a field has been set. +func (o *PatchesResponse) HasErrataList() bool { + if o != nil && o.ErrataList != nil { + return true + } + + return false +} + +// SetErrataList gets a reference to the given []string and assigns it to the ErrataList field. +func (o *PatchesResponse) SetErrataList(v []string) { + o.ErrataList = &v +} + +func (o PatchesResponse) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.ErrataList != nil { + toSerialize["errata_list"] = o.ErrataList + } + return json.Marshal(toSerialize) } + +type NullablePatchesResponse struct { + value *PatchesResponse + isSet bool +} + +func (v NullablePatchesResponse) Get() *PatchesResponse { + return v.value +} + +func (v *NullablePatchesResponse) Set(val *PatchesResponse) { + v.value = val + v.isSet = true +} + +func (v NullablePatchesResponse) IsSet() bool { + return v.isSet +} + +func (v *NullablePatchesResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePatchesResponse(val *PatchesResponse) *NullablePatchesResponse { + return &NullablePatchesResponse{value: val, isSet: true} +} + +func (v NullablePatchesResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePatchesResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/vmaas/model_pkgtree_request.go b/vmaas/model_pkgtree_request.go index 493e0ff..eb1dac6 100644 --- a/vmaas/model_pkgtree_request.go +++ b/vmaas/model_pkgtree_request.go @@ -3,12 +3,147 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.20.4 - * Generated by: OpenAPI Generator (https://openapi-generator.tech) + * API version: 2.5.0 */ +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + package vmaas + +import ( + "encoding/json" +) + // PkgtreeRequest struct for PkgtreeRequest type PkgtreeRequest struct { PackageNameList []string `json:"package_name_list"` + // Include content from \"third party\" repositories into the response, disabled by default. + ThirdParty *bool `json:"third_party,omitempty"` +} + +// NewPkgtreeRequest instantiates a new PkgtreeRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPkgtreeRequest(packageNameList []string, ) *PkgtreeRequest { + this := PkgtreeRequest{} + this.PackageNameList = packageNameList + var thirdParty bool = false + this.ThirdParty = &thirdParty + return &this +} + +// NewPkgtreeRequestWithDefaults instantiates a new PkgtreeRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPkgtreeRequestWithDefaults() *PkgtreeRequest { + this := PkgtreeRequest{} + var thirdParty bool = false + this.ThirdParty = &thirdParty + return &this +} + +// GetPackageNameList returns the PackageNameList field value +func (o *PkgtreeRequest) GetPackageNameList() []string { + if o == nil { + var ret []string + return ret + } + + return o.PackageNameList +} + +// GetPackageNameListOk returns a tuple with the PackageNameList field value +// and a boolean to check if the value has been set. +func (o *PkgtreeRequest) GetPackageNameListOk() (*[]string, bool) { + if o == nil { + return nil, false + } + return &o.PackageNameList, true +} + +// SetPackageNameList sets field value +func (o *PkgtreeRequest) SetPackageNameList(v []string) { + o.PackageNameList = v } + +// GetThirdParty returns the ThirdParty field value if set, zero value otherwise. +func (o *PkgtreeRequest) GetThirdParty() bool { + if o == nil || o.ThirdParty == nil { + var ret bool + return ret + } + return *o.ThirdParty +} + +// GetThirdPartyOk returns a tuple with the ThirdParty field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PkgtreeRequest) GetThirdPartyOk() (*bool, bool) { + if o == nil || o.ThirdParty == nil { + return nil, false + } + return o.ThirdParty, true +} + +// HasThirdParty returns a boolean if a field has been set. +func (o *PkgtreeRequest) HasThirdParty() bool { + if o != nil && o.ThirdParty != nil { + return true + } + + return false +} + +// SetThirdParty gets a reference to the given bool and assigns it to the ThirdParty field. +func (o *PkgtreeRequest) SetThirdParty(v bool) { + o.ThirdParty = &v +} + +func (o PkgtreeRequest) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["package_name_list"] = o.PackageNameList + } + if o.ThirdParty != nil { + toSerialize["third_party"] = o.ThirdParty + } + return json.Marshal(toSerialize) +} + +type NullablePkgtreeRequest struct { + value *PkgtreeRequest + isSet bool +} + +func (v NullablePkgtreeRequest) Get() *PkgtreeRequest { + return v.value +} + +func (v *NullablePkgtreeRequest) Set(val *PkgtreeRequest) { + v.value = val + v.isSet = true +} + +func (v NullablePkgtreeRequest) IsSet() bool { + return v.isSet +} + +func (v *NullablePkgtreeRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePkgtreeRequest(val *PkgtreeRequest) *NullablePkgtreeRequest { + return &NullablePkgtreeRequest{value: val, isSet: true} +} + +func (v NullablePkgtreeRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePkgtreeRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/vmaas/model_pkgtree_response.go b/vmaas/model_pkgtree_response.go index c76b61b..3dc0009 100644 --- a/vmaas/model_pkgtree_response.go +++ b/vmaas/model_pkgtree_response.go @@ -3,13 +3,150 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.20.4 - * Generated by: OpenAPI Generator (https://openapi-generator.tech) + * API version: 2.5.0 */ +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + package vmaas + +import ( + "encoding/json" +) + // PkgtreeResponse struct for PkgtreeResponse type PkgtreeResponse struct { LastChange interface{} `json:"last_change,omitempty"` - PackageNameList map[string][]map[string]interface{} `json:"package_name_list,omitempty"` + PackageNameList *map[string][]map[string]interface{} `json:"package_name_list,omitempty"` +} + +// NewPkgtreeResponse instantiates a new PkgtreeResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPkgtreeResponse() *PkgtreeResponse { + this := PkgtreeResponse{} + return &this +} + +// NewPkgtreeResponseWithDefaults instantiates a new PkgtreeResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPkgtreeResponseWithDefaults() *PkgtreeResponse { + this := PkgtreeResponse{} + return &this +} + +// GetLastChange returns the LastChange field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PkgtreeResponse) GetLastChange() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.LastChange +} + +// GetLastChangeOk returns a tuple with the LastChange field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PkgtreeResponse) GetLastChangeOk() (*interface{}, bool) { + if o == nil || o.LastChange == nil { + return nil, false + } + return &o.LastChange, true +} + +// HasLastChange returns a boolean if a field has been set. +func (o *PkgtreeResponse) HasLastChange() bool { + if o != nil && o.LastChange != nil { + return true + } + + return false +} + +// SetLastChange gets a reference to the given interface{} and assigns it to the LastChange field. +func (o *PkgtreeResponse) SetLastChange(v interface{}) { + o.LastChange = v +} + +// GetPackageNameList returns the PackageNameList field value if set, zero value otherwise. +func (o *PkgtreeResponse) GetPackageNameList() map[string][]map[string]interface{} { + if o == nil || o.PackageNameList == nil { + var ret map[string][]map[string]interface{} + return ret + } + return *o.PackageNameList +} + +// GetPackageNameListOk returns a tuple with the PackageNameList field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PkgtreeResponse) GetPackageNameListOk() (*map[string][]map[string]interface{}, bool) { + if o == nil || o.PackageNameList == nil { + return nil, false + } + return o.PackageNameList, true +} + +// HasPackageNameList returns a boolean if a field has been set. +func (o *PkgtreeResponse) HasPackageNameList() bool { + if o != nil && o.PackageNameList != nil { + return true + } + + return false } + +// SetPackageNameList gets a reference to the given map[string][]map[string]interface{} and assigns it to the PackageNameList field. +func (o *PkgtreeResponse) SetPackageNameList(v map[string][]map[string]interface{}) { + o.PackageNameList = &v +} + +func (o PkgtreeResponse) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.LastChange != nil { + toSerialize["last_change"] = o.LastChange + } + if o.PackageNameList != nil { + toSerialize["package_name_list"] = o.PackageNameList + } + return json.Marshal(toSerialize) +} + +type NullablePkgtreeResponse struct { + value *PkgtreeResponse + isSet bool +} + +func (v NullablePkgtreeResponse) Get() *PkgtreeResponse { + return v.value +} + +func (v *NullablePkgtreeResponse) Set(val *PkgtreeResponse) { + v.value = val + v.isSet = true +} + +func (v NullablePkgtreeResponse) IsSet() bool { + return v.isSet +} + +func (v *NullablePkgtreeResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePkgtreeResponse(val *PkgtreeResponse) *NullablePkgtreeResponse { + return &NullablePkgtreeResponse{value: val, isSet: true} +} + +func (v NullablePkgtreeResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePkgtreeResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/vmaas/model_repos_request.go b/vmaas/model_repos_request.go index 9f45c10..74a3106 100644 --- a/vmaas/model_repos_request.go +++ b/vmaas/model_repos_request.go @@ -3,16 +3,257 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.20.4 - * Generated by: OpenAPI Generator (https://openapi-generator.tech) + * API version: 2.5.0 */ +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + package vmaas + +import ( + "encoding/json" + "time" +) + // ReposRequest struct for ReposRequest type ReposRequest struct { - Page float32 `json:"page,omitempty"` - PageSize float32 `json:"page_size,omitempty"` + Page *float32 `json:"page,omitempty"` + PageSize *float32 `json:"page_size,omitempty"` RepositoryList []string `json:"repository_list"` // Return only repositories changed after the given date - ModifiedSince string `json:"modified_since,omitempty"` + ModifiedSince *time.Time `json:"modified_since,omitempty"` + // Include content from \"third party\" repositories into the response, disabled by default. + ThirdParty *bool `json:"third_party,omitempty"` +} + +// NewReposRequest instantiates a new ReposRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewReposRequest(repositoryList []string, ) *ReposRequest { + this := ReposRequest{} + this.RepositoryList = repositoryList + var thirdParty bool = false + this.ThirdParty = &thirdParty + return &this +} + +// NewReposRequestWithDefaults instantiates a new ReposRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewReposRequestWithDefaults() *ReposRequest { + this := ReposRequest{} + var thirdParty bool = false + this.ThirdParty = &thirdParty + return &this +} + +// GetPage returns the Page field value if set, zero value otherwise. +func (o *ReposRequest) GetPage() float32 { + if o == nil || o.Page == nil { + var ret float32 + return ret + } + return *o.Page +} + +// GetPageOk returns a tuple with the Page field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ReposRequest) GetPageOk() (*float32, bool) { + if o == nil || o.Page == nil { + return nil, false + } + return o.Page, true +} + +// HasPage returns a boolean if a field has been set. +func (o *ReposRequest) HasPage() bool { + if o != nil && o.Page != nil { + return true + } + + return false +} + +// SetPage gets a reference to the given float32 and assigns it to the Page field. +func (o *ReposRequest) SetPage(v float32) { + o.Page = &v +} + +// GetPageSize returns the PageSize field value if set, zero value otherwise. +func (o *ReposRequest) GetPageSize() float32 { + if o == nil || o.PageSize == nil { + var ret float32 + return ret + } + return *o.PageSize +} + +// GetPageSizeOk returns a tuple with the PageSize field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ReposRequest) GetPageSizeOk() (*float32, bool) { + if o == nil || o.PageSize == nil { + return nil, false + } + return o.PageSize, true +} + +// HasPageSize returns a boolean if a field has been set. +func (o *ReposRequest) HasPageSize() bool { + if o != nil && o.PageSize != nil { + return true + } + + return false +} + +// SetPageSize gets a reference to the given float32 and assigns it to the PageSize field. +func (o *ReposRequest) SetPageSize(v float32) { + o.PageSize = &v +} + +// GetRepositoryList returns the RepositoryList field value +func (o *ReposRequest) GetRepositoryList() []string { + if o == nil { + var ret []string + return ret + } + + return o.RepositoryList +} + +// GetRepositoryListOk returns a tuple with the RepositoryList field value +// and a boolean to check if the value has been set. +func (o *ReposRequest) GetRepositoryListOk() (*[]string, bool) { + if o == nil { + return nil, false + } + return &o.RepositoryList, true +} + +// SetRepositoryList sets field value +func (o *ReposRequest) SetRepositoryList(v []string) { + o.RepositoryList = v +} + +// GetModifiedSince returns the ModifiedSince field value if set, zero value otherwise. +func (o *ReposRequest) GetModifiedSince() time.Time { + if o == nil || o.ModifiedSince == nil { + var ret time.Time + return ret + } + return *o.ModifiedSince +} + +// GetModifiedSinceOk returns a tuple with the ModifiedSince field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ReposRequest) GetModifiedSinceOk() (*time.Time, bool) { + if o == nil || o.ModifiedSince == nil { + return nil, false + } + return o.ModifiedSince, true +} + +// HasModifiedSince returns a boolean if a field has been set. +func (o *ReposRequest) HasModifiedSince() bool { + if o != nil && o.ModifiedSince != nil { + return true + } + + return false +} + +// SetModifiedSince gets a reference to the given time.Time and assigns it to the ModifiedSince field. +func (o *ReposRequest) SetModifiedSince(v time.Time) { + o.ModifiedSince = &v +} + +// GetThirdParty returns the ThirdParty field value if set, zero value otherwise. +func (o *ReposRequest) GetThirdParty() bool { + if o == nil || o.ThirdParty == nil { + var ret bool + return ret + } + return *o.ThirdParty +} + +// GetThirdPartyOk returns a tuple with the ThirdParty field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ReposRequest) GetThirdPartyOk() (*bool, bool) { + if o == nil || o.ThirdParty == nil { + return nil, false + } + return o.ThirdParty, true } + +// HasThirdParty returns a boolean if a field has been set. +func (o *ReposRequest) HasThirdParty() bool { + if o != nil && o.ThirdParty != nil { + return true + } + + return false +} + +// SetThirdParty gets a reference to the given bool and assigns it to the ThirdParty field. +func (o *ReposRequest) SetThirdParty(v bool) { + o.ThirdParty = &v +} + +func (o ReposRequest) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Page != nil { + toSerialize["page"] = o.Page + } + if o.PageSize != nil { + toSerialize["page_size"] = o.PageSize + } + if true { + toSerialize["repository_list"] = o.RepositoryList + } + if o.ModifiedSince != nil { + toSerialize["modified_since"] = o.ModifiedSince + } + if o.ThirdParty != nil { + toSerialize["third_party"] = o.ThirdParty + } + return json.Marshal(toSerialize) +} + +type NullableReposRequest struct { + value *ReposRequest + isSet bool +} + +func (v NullableReposRequest) Get() *ReposRequest { + return v.value +} + +func (v *NullableReposRequest) Set(val *ReposRequest) { + v.value = val + v.isSet = true +} + +func (v NullableReposRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableReposRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableReposRequest(val *ReposRequest) *NullableReposRequest { + return &NullableReposRequest{value: val, isSet: true} +} + +func (v NullableReposRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableReposRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/vmaas/model_repos_response.go b/vmaas/model_repos_response.go index 9a7c0ee..73507eb 100644 --- a/vmaas/model_repos_response.go +++ b/vmaas/model_repos_response.go @@ -3,15 +3,221 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.20.4 - * Generated by: OpenAPI Generator (https://openapi-generator.tech) + * API version: 2.5.0 */ +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + package vmaas + +import ( + "encoding/json" +) + // ReposResponse struct for ReposResponse type ReposResponse struct { - Page float32 `json:"page,omitempty"` - PageSize float32 `json:"page_size,omitempty"` - Pages float32 `json:"pages,omitempty"` - RepositoryList map[string][]map[string]interface{} `json:"repository_list,omitempty"` + Page *float32 `json:"page,omitempty"` + PageSize *float32 `json:"page_size,omitempty"` + Pages *float32 `json:"pages,omitempty"` + RepositoryList *map[string][]map[string]interface{} `json:"repository_list,omitempty"` +} + +// NewReposResponse instantiates a new ReposResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewReposResponse() *ReposResponse { + this := ReposResponse{} + return &this +} + +// NewReposResponseWithDefaults instantiates a new ReposResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewReposResponseWithDefaults() *ReposResponse { + this := ReposResponse{} + return &this +} + +// GetPage returns the Page field value if set, zero value otherwise. +func (o *ReposResponse) GetPage() float32 { + if o == nil || o.Page == nil { + var ret float32 + return ret + } + return *o.Page +} + +// GetPageOk returns a tuple with the Page field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ReposResponse) GetPageOk() (*float32, bool) { + if o == nil || o.Page == nil { + return nil, false + } + return o.Page, true +} + +// HasPage returns a boolean if a field has been set. +func (o *ReposResponse) HasPage() bool { + if o != nil && o.Page != nil { + return true + } + + return false +} + +// SetPage gets a reference to the given float32 and assigns it to the Page field. +func (o *ReposResponse) SetPage(v float32) { + o.Page = &v +} + +// GetPageSize returns the PageSize field value if set, zero value otherwise. +func (o *ReposResponse) GetPageSize() float32 { + if o == nil || o.PageSize == nil { + var ret float32 + return ret + } + return *o.PageSize +} + +// GetPageSizeOk returns a tuple with the PageSize field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ReposResponse) GetPageSizeOk() (*float32, bool) { + if o == nil || o.PageSize == nil { + return nil, false + } + return o.PageSize, true +} + +// HasPageSize returns a boolean if a field has been set. +func (o *ReposResponse) HasPageSize() bool { + if o != nil && o.PageSize != nil { + return true + } + + return false +} + +// SetPageSize gets a reference to the given float32 and assigns it to the PageSize field. +func (o *ReposResponse) SetPageSize(v float32) { + o.PageSize = &v +} + +// GetPages returns the Pages field value if set, zero value otherwise. +func (o *ReposResponse) GetPages() float32 { + if o == nil || o.Pages == nil { + var ret float32 + return ret + } + return *o.Pages +} + +// GetPagesOk returns a tuple with the Pages field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ReposResponse) GetPagesOk() (*float32, bool) { + if o == nil || o.Pages == nil { + return nil, false + } + return o.Pages, true +} + +// HasPages returns a boolean if a field has been set. +func (o *ReposResponse) HasPages() bool { + if o != nil && o.Pages != nil { + return true + } + + return false } + +// SetPages gets a reference to the given float32 and assigns it to the Pages field. +func (o *ReposResponse) SetPages(v float32) { + o.Pages = &v +} + +// GetRepositoryList returns the RepositoryList field value if set, zero value otherwise. +func (o *ReposResponse) GetRepositoryList() map[string][]map[string]interface{} { + if o == nil || o.RepositoryList == nil { + var ret map[string][]map[string]interface{} + return ret + } + return *o.RepositoryList +} + +// GetRepositoryListOk returns a tuple with the RepositoryList field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ReposResponse) GetRepositoryListOk() (*map[string][]map[string]interface{}, bool) { + if o == nil || o.RepositoryList == nil { + return nil, false + } + return o.RepositoryList, true +} + +// HasRepositoryList returns a boolean if a field has been set. +func (o *ReposResponse) HasRepositoryList() bool { + if o != nil && o.RepositoryList != nil { + return true + } + + return false +} + +// SetRepositoryList gets a reference to the given map[string][]map[string]interface{} and assigns it to the RepositoryList field. +func (o *ReposResponse) SetRepositoryList(v map[string][]map[string]interface{}) { + o.RepositoryList = &v +} + +func (o ReposResponse) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Page != nil { + toSerialize["page"] = o.Page + } + if o.PageSize != nil { + toSerialize["page_size"] = o.PageSize + } + if o.Pages != nil { + toSerialize["pages"] = o.Pages + } + if o.RepositoryList != nil { + toSerialize["repository_list"] = o.RepositoryList + } + return json.Marshal(toSerialize) +} + +type NullableReposResponse struct { + value *ReposResponse + isSet bool +} + +func (v NullableReposResponse) Get() *ReposResponse { + return v.value +} + +func (v *NullableReposResponse) Set(val *ReposResponse) { + v.value = val + v.isSet = true +} + +func (v NullableReposResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableReposResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableReposResponse(val *ReposResponse) *NullableReposResponse { + return &NullableReposResponse{value: val, isSet: true} +} + +func (v NullableReposResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableReposResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/vmaas/model_rpm_pkg_names_request.go b/vmaas/model_rpm_pkg_names_request.go index ace92d6..04502f3 100644 --- a/vmaas/model_rpm_pkg_names_request.go +++ b/vmaas/model_rpm_pkg_names_request.go @@ -3,13 +3,183 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.20.4 - * Generated by: OpenAPI Generator (https://openapi-generator.tech) + * API version: 2.5.0 */ +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + package vmaas -// RpmPkgNamesRequest struct for RpmPkgNamesRequest -type RpmPkgNamesRequest struct { + +import ( + "encoding/json" +) + +// RPMPkgNamesRequest struct for RPMPkgNamesRequest +type RPMPkgNamesRequest struct { RpmNameList []string `json:"rpm_name_list"` - ContentSetList []string `json:"content_set_list,omitempty"` + ContentSetList *[]string `json:"content_set_list,omitempty"` + // Include content from \"third party\" repositories into the response, disabled by default. + ThirdParty *bool `json:"third_party,omitempty"` +} + +// NewRPMPkgNamesRequest instantiates a new RPMPkgNamesRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRPMPkgNamesRequest(rpmNameList []string, ) *RPMPkgNamesRequest { + this := RPMPkgNamesRequest{} + this.RpmNameList = rpmNameList + var thirdParty bool = false + this.ThirdParty = &thirdParty + return &this +} + +// NewRPMPkgNamesRequestWithDefaults instantiates a new RPMPkgNamesRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRPMPkgNamesRequestWithDefaults() *RPMPkgNamesRequest { + this := RPMPkgNamesRequest{} + var thirdParty bool = false + this.ThirdParty = &thirdParty + return &this +} + +// GetRpmNameList returns the RpmNameList field value +func (o *RPMPkgNamesRequest) GetRpmNameList() []string { + if o == nil { + var ret []string + return ret + } + + return o.RpmNameList +} + +// GetRpmNameListOk returns a tuple with the RpmNameList field value +// and a boolean to check if the value has been set. +func (o *RPMPkgNamesRequest) GetRpmNameListOk() (*[]string, bool) { + if o == nil { + return nil, false + } + return &o.RpmNameList, true +} + +// SetRpmNameList sets field value +func (o *RPMPkgNamesRequest) SetRpmNameList(v []string) { + o.RpmNameList = v +} + +// GetContentSetList returns the ContentSetList field value if set, zero value otherwise. +func (o *RPMPkgNamesRequest) GetContentSetList() []string { + if o == nil || o.ContentSetList == nil { + var ret []string + return ret + } + return *o.ContentSetList +} + +// GetContentSetListOk returns a tuple with the ContentSetList field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RPMPkgNamesRequest) GetContentSetListOk() (*[]string, bool) { + if o == nil || o.ContentSetList == nil { + return nil, false + } + return o.ContentSetList, true +} + +// HasContentSetList returns a boolean if a field has been set. +func (o *RPMPkgNamesRequest) HasContentSetList() bool { + if o != nil && o.ContentSetList != nil { + return true + } + + return false +} + +// SetContentSetList gets a reference to the given []string and assigns it to the ContentSetList field. +func (o *RPMPkgNamesRequest) SetContentSetList(v []string) { + o.ContentSetList = &v +} + +// GetThirdParty returns the ThirdParty field value if set, zero value otherwise. +func (o *RPMPkgNamesRequest) GetThirdParty() bool { + if o == nil || o.ThirdParty == nil { + var ret bool + return ret + } + return *o.ThirdParty +} + +// GetThirdPartyOk returns a tuple with the ThirdParty field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RPMPkgNamesRequest) GetThirdPartyOk() (*bool, bool) { + if o == nil || o.ThirdParty == nil { + return nil, false + } + return o.ThirdParty, true +} + +// HasThirdParty returns a boolean if a field has been set. +func (o *RPMPkgNamesRequest) HasThirdParty() bool { + if o != nil && o.ThirdParty != nil { + return true + } + + return false +} + +// SetThirdParty gets a reference to the given bool and assigns it to the ThirdParty field. +func (o *RPMPkgNamesRequest) SetThirdParty(v bool) { + o.ThirdParty = &v +} + +func (o RPMPkgNamesRequest) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["rpm_name_list"] = o.RpmNameList + } + if o.ContentSetList != nil { + toSerialize["content_set_list"] = o.ContentSetList + } + if o.ThirdParty != nil { + toSerialize["third_party"] = o.ThirdParty + } + return json.Marshal(toSerialize) +} + +type NullableRPMPkgNamesRequest struct { + value *RPMPkgNamesRequest + isSet bool +} + +func (v NullableRPMPkgNamesRequest) Get() *RPMPkgNamesRequest { + return v.value +} + +func (v *NullableRPMPkgNamesRequest) Set(val *RPMPkgNamesRequest) { + v.value = val + v.isSet = true +} + +func (v NullableRPMPkgNamesRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableRPMPkgNamesRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRPMPkgNamesRequest(val *RPMPkgNamesRequest) *NullableRPMPkgNamesRequest { + return &NullableRPMPkgNamesRequest{value: val, isSet: true} } + +func (v NullableRPMPkgNamesRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRPMPkgNamesRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/vmaas/model_rpm_pkg_names_response.go b/vmaas/model_rpm_pkg_names_response.go index 05dd881..d4cccd8 100644 --- a/vmaas/model_rpm_pkg_names_response.go +++ b/vmaas/model_rpm_pkg_names_response.go @@ -3,13 +3,150 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.20.4 - * Generated by: OpenAPI Generator (https://openapi-generator.tech) + * API version: 2.5.0 */ +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + package vmaas -// RpmPkgNamesResponse struct for RpmPkgNamesResponse -type RpmPkgNamesResponse struct { + +import ( + "encoding/json" +) + +// RPMPkgNamesResponse struct for RPMPkgNamesResponse +type RPMPkgNamesResponse struct { LastChange interface{} `json:"last_change,omitempty"` - RpmNameList map[string][]string `json:"rpm_name_list,omitempty"` + RpmNameList *map[string][]string `json:"rpm_name_list,omitempty"` +} + +// NewRPMPkgNamesResponse instantiates a new RPMPkgNamesResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRPMPkgNamesResponse() *RPMPkgNamesResponse { + this := RPMPkgNamesResponse{} + return &this +} + +// NewRPMPkgNamesResponseWithDefaults instantiates a new RPMPkgNamesResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRPMPkgNamesResponseWithDefaults() *RPMPkgNamesResponse { + this := RPMPkgNamesResponse{} + return &this +} + +// GetLastChange returns the LastChange field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RPMPkgNamesResponse) GetLastChange() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.LastChange +} + +// GetLastChangeOk returns a tuple with the LastChange field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RPMPkgNamesResponse) GetLastChangeOk() (*interface{}, bool) { + if o == nil || o.LastChange == nil { + return nil, false + } + return &o.LastChange, true +} + +// HasLastChange returns a boolean if a field has been set. +func (o *RPMPkgNamesResponse) HasLastChange() bool { + if o != nil && o.LastChange != nil { + return true + } + + return false +} + +// SetLastChange gets a reference to the given interface{} and assigns it to the LastChange field. +func (o *RPMPkgNamesResponse) SetLastChange(v interface{}) { + o.LastChange = v +} + +// GetRpmNameList returns the RpmNameList field value if set, zero value otherwise. +func (o *RPMPkgNamesResponse) GetRpmNameList() map[string][]string { + if o == nil || o.RpmNameList == nil { + var ret map[string][]string + return ret + } + return *o.RpmNameList +} + +// GetRpmNameListOk returns a tuple with the RpmNameList field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RPMPkgNamesResponse) GetRpmNameListOk() (*map[string][]string, bool) { + if o == nil || o.RpmNameList == nil { + return nil, false + } + return o.RpmNameList, true +} + +// HasRpmNameList returns a boolean if a field has been set. +func (o *RPMPkgNamesResponse) HasRpmNameList() bool { + if o != nil && o.RpmNameList != nil { + return true + } + + return false } + +// SetRpmNameList gets a reference to the given map[string][]string and assigns it to the RpmNameList field. +func (o *RPMPkgNamesResponse) SetRpmNameList(v map[string][]string) { + o.RpmNameList = &v +} + +func (o RPMPkgNamesResponse) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.LastChange != nil { + toSerialize["last_change"] = o.LastChange + } + if o.RpmNameList != nil { + toSerialize["rpm_name_list"] = o.RpmNameList + } + return json.Marshal(toSerialize) +} + +type NullableRPMPkgNamesResponse struct { + value *RPMPkgNamesResponse + isSet bool +} + +func (v NullableRPMPkgNamesResponse) Get() *RPMPkgNamesResponse { + return v.value +} + +func (v *NullableRPMPkgNamesResponse) Set(val *RPMPkgNamesResponse) { + v.value = val + v.isSet = true +} + +func (v NullableRPMPkgNamesResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableRPMPkgNamesResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRPMPkgNamesResponse(val *RPMPkgNamesResponse) *NullableRPMPkgNamesResponse { + return &NullableRPMPkgNamesResponse{value: val, isSet: true} +} + +func (v NullableRPMPkgNamesResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRPMPkgNamesResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/vmaas/model_srpm_pkg_names_request.go b/vmaas/model_srpm_pkg_names_request.go index 6ce5acc..d16722e 100644 --- a/vmaas/model_srpm_pkg_names_request.go +++ b/vmaas/model_srpm_pkg_names_request.go @@ -3,13 +3,183 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.20.4 - * Generated by: OpenAPI Generator (https://openapi-generator.tech) + * API version: 2.5.0 */ +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + package vmaas -// SrpmPkgNamesRequest struct for SrpmPkgNamesRequest -type SrpmPkgNamesRequest struct { + +import ( + "encoding/json" +) + +// SRPMPkgNamesRequest struct for SRPMPkgNamesRequest +type SRPMPkgNamesRequest struct { SrpmNameList []string `json:"srpm_name_list"` - ContentSetList []string `json:"content_set_list,omitempty"` + ContentSetList *[]string `json:"content_set_list,omitempty"` + // Include content from \"third party\" repositories into the response, disabled by default. + ThirdParty *bool `json:"third_party,omitempty"` +} + +// NewSRPMPkgNamesRequest instantiates a new SRPMPkgNamesRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSRPMPkgNamesRequest(srpmNameList []string, ) *SRPMPkgNamesRequest { + this := SRPMPkgNamesRequest{} + this.SrpmNameList = srpmNameList + var thirdParty bool = false + this.ThirdParty = &thirdParty + return &this +} + +// NewSRPMPkgNamesRequestWithDefaults instantiates a new SRPMPkgNamesRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSRPMPkgNamesRequestWithDefaults() *SRPMPkgNamesRequest { + this := SRPMPkgNamesRequest{} + var thirdParty bool = false + this.ThirdParty = &thirdParty + return &this +} + +// GetSrpmNameList returns the SrpmNameList field value +func (o *SRPMPkgNamesRequest) GetSrpmNameList() []string { + if o == nil { + var ret []string + return ret + } + + return o.SrpmNameList +} + +// GetSrpmNameListOk returns a tuple with the SrpmNameList field value +// and a boolean to check if the value has been set. +func (o *SRPMPkgNamesRequest) GetSrpmNameListOk() (*[]string, bool) { + if o == nil { + return nil, false + } + return &o.SrpmNameList, true +} + +// SetSrpmNameList sets field value +func (o *SRPMPkgNamesRequest) SetSrpmNameList(v []string) { + o.SrpmNameList = v +} + +// GetContentSetList returns the ContentSetList field value if set, zero value otherwise. +func (o *SRPMPkgNamesRequest) GetContentSetList() []string { + if o == nil || o.ContentSetList == nil { + var ret []string + return ret + } + return *o.ContentSetList +} + +// GetContentSetListOk returns a tuple with the ContentSetList field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SRPMPkgNamesRequest) GetContentSetListOk() (*[]string, bool) { + if o == nil || o.ContentSetList == nil { + return nil, false + } + return o.ContentSetList, true +} + +// HasContentSetList returns a boolean if a field has been set. +func (o *SRPMPkgNamesRequest) HasContentSetList() bool { + if o != nil && o.ContentSetList != nil { + return true + } + + return false +} + +// SetContentSetList gets a reference to the given []string and assigns it to the ContentSetList field. +func (o *SRPMPkgNamesRequest) SetContentSetList(v []string) { + o.ContentSetList = &v +} + +// GetThirdParty returns the ThirdParty field value if set, zero value otherwise. +func (o *SRPMPkgNamesRequest) GetThirdParty() bool { + if o == nil || o.ThirdParty == nil { + var ret bool + return ret + } + return *o.ThirdParty +} + +// GetThirdPartyOk returns a tuple with the ThirdParty field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SRPMPkgNamesRequest) GetThirdPartyOk() (*bool, bool) { + if o == nil || o.ThirdParty == nil { + return nil, false + } + return o.ThirdParty, true +} + +// HasThirdParty returns a boolean if a field has been set. +func (o *SRPMPkgNamesRequest) HasThirdParty() bool { + if o != nil && o.ThirdParty != nil { + return true + } + + return false +} + +// SetThirdParty gets a reference to the given bool and assigns it to the ThirdParty field. +func (o *SRPMPkgNamesRequest) SetThirdParty(v bool) { + o.ThirdParty = &v +} + +func (o SRPMPkgNamesRequest) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["srpm_name_list"] = o.SrpmNameList + } + if o.ContentSetList != nil { + toSerialize["content_set_list"] = o.ContentSetList + } + if o.ThirdParty != nil { + toSerialize["third_party"] = o.ThirdParty + } + return json.Marshal(toSerialize) +} + +type NullableSRPMPkgNamesRequest struct { + value *SRPMPkgNamesRequest + isSet bool +} + +func (v NullableSRPMPkgNamesRequest) Get() *SRPMPkgNamesRequest { + return v.value +} + +func (v *NullableSRPMPkgNamesRequest) Set(val *SRPMPkgNamesRequest) { + v.value = val + v.isSet = true +} + +func (v NullableSRPMPkgNamesRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableSRPMPkgNamesRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSRPMPkgNamesRequest(val *SRPMPkgNamesRequest) *NullableSRPMPkgNamesRequest { + return &NullableSRPMPkgNamesRequest{value: val, isSet: true} } + +func (v NullableSRPMPkgNamesRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSRPMPkgNamesRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/vmaas/model_srpm_pkg_names_response.go b/vmaas/model_srpm_pkg_names_response.go index d91a4e3..b8f1fce 100644 --- a/vmaas/model_srpm_pkg_names_response.go +++ b/vmaas/model_srpm_pkg_names_response.go @@ -3,13 +3,150 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.20.4 - * Generated by: OpenAPI Generator (https://openapi-generator.tech) + * API version: 2.5.0 */ +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + package vmaas -// SrpmPkgNamesResponse struct for SrpmPkgNamesResponse -type SrpmPkgNamesResponse struct { + +import ( + "encoding/json" +) + +// SRPMPkgNamesResponse struct for SRPMPkgNamesResponse +type SRPMPkgNamesResponse struct { LastChange interface{} `json:"last_change,omitempty"` - SrpmNameList map[string]map[string][]string `json:"srpm_name_list,omitempty"` + SrpmNameList *map[string]map[string][]string `json:"srpm_name_list,omitempty"` +} + +// NewSRPMPkgNamesResponse instantiates a new SRPMPkgNamesResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSRPMPkgNamesResponse() *SRPMPkgNamesResponse { + this := SRPMPkgNamesResponse{} + return &this +} + +// NewSRPMPkgNamesResponseWithDefaults instantiates a new SRPMPkgNamesResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSRPMPkgNamesResponseWithDefaults() *SRPMPkgNamesResponse { + this := SRPMPkgNamesResponse{} + return &this +} + +// GetLastChange returns the LastChange field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SRPMPkgNamesResponse) GetLastChange() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.LastChange +} + +// GetLastChangeOk returns a tuple with the LastChange field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SRPMPkgNamesResponse) GetLastChangeOk() (*interface{}, bool) { + if o == nil || o.LastChange == nil { + return nil, false + } + return &o.LastChange, true +} + +// HasLastChange returns a boolean if a field has been set. +func (o *SRPMPkgNamesResponse) HasLastChange() bool { + if o != nil && o.LastChange != nil { + return true + } + + return false +} + +// SetLastChange gets a reference to the given interface{} and assigns it to the LastChange field. +func (o *SRPMPkgNamesResponse) SetLastChange(v interface{}) { + o.LastChange = v +} + +// GetSrpmNameList returns the SrpmNameList field value if set, zero value otherwise. +func (o *SRPMPkgNamesResponse) GetSrpmNameList() map[string]map[string][]string { + if o == nil || o.SrpmNameList == nil { + var ret map[string]map[string][]string + return ret + } + return *o.SrpmNameList +} + +// GetSrpmNameListOk returns a tuple with the SrpmNameList field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SRPMPkgNamesResponse) GetSrpmNameListOk() (*map[string]map[string][]string, bool) { + if o == nil || o.SrpmNameList == nil { + return nil, false + } + return o.SrpmNameList, true +} + +// HasSrpmNameList returns a boolean if a field has been set. +func (o *SRPMPkgNamesResponse) HasSrpmNameList() bool { + if o != nil && o.SrpmNameList != nil { + return true + } + + return false } + +// SetSrpmNameList gets a reference to the given map[string]map[string][]string and assigns it to the SrpmNameList field. +func (o *SRPMPkgNamesResponse) SetSrpmNameList(v map[string]map[string][]string) { + o.SrpmNameList = &v +} + +func (o SRPMPkgNamesResponse) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.LastChange != nil { + toSerialize["last_change"] = o.LastChange + } + if o.SrpmNameList != nil { + toSerialize["srpm_name_list"] = o.SrpmNameList + } + return json.Marshal(toSerialize) +} + +type NullableSRPMPkgNamesResponse struct { + value *SRPMPkgNamesResponse + isSet bool +} + +func (v NullableSRPMPkgNamesResponse) Get() *SRPMPkgNamesResponse { + return v.value +} + +func (v *NullableSRPMPkgNamesResponse) Set(val *SRPMPkgNamesResponse) { + v.value = val + v.isSet = true +} + +func (v NullableSRPMPkgNamesResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableSRPMPkgNamesResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSRPMPkgNamesResponse(val *SRPMPkgNamesResponse) *NullableSRPMPkgNamesResponse { + return &NullableSRPMPkgNamesResponse{value: val, isSet: true} +} + +func (v NullableSRPMPkgNamesResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSRPMPkgNamesResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/vmaas/model_updates_request.go b/vmaas/model_updates_request.go deleted file mode 100644 index 524c598..0000000 --- a/vmaas/model_updates_request.go +++ /dev/null @@ -1,19 +0,0 @@ -/* - * VMaaS Webapp - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * API version: 1.20.4 - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package vmaas -// UpdatesRequest struct for UpdatesRequest -type UpdatesRequest struct { - PackageList []string `json:"package_list"` - RepositoryList []string `json:"repository_list,omitempty"` - ModulesList []UpdatesRequestModulesList `json:"modules_list,omitempty"` - Releasever string `json:"releasever,omitempty"` - Basearch string `json:"basearch,omitempty"` - LatestOnly bool `json:"latest_only,omitempty"` -} diff --git a/vmaas/model_updates_request_modules_list.go b/vmaas/model_updates_request_modules_list.go deleted file mode 100644 index b2af1de..0000000 --- a/vmaas/model_updates_request_modules_list.go +++ /dev/null @@ -1,15 +0,0 @@ -/* - * VMaaS Webapp - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * API version: 1.20.4 - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package vmaas -// UpdatesRequestModulesList struct for UpdatesRequestModulesList -type UpdatesRequestModulesList struct { - ModuleName string `json:"module_name"` - ModuleStream string `json:"module_stream"` -} diff --git a/vmaas/model_updates_response.go b/vmaas/model_updates_response.go deleted file mode 100644 index 64a26c7..0000000 --- a/vmaas/model_updates_response.go +++ /dev/null @@ -1,18 +0,0 @@ -/* - * VMaaS Webapp - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * API version: 1.20.4 - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package vmaas -// UpdatesResponse struct for UpdatesResponse -type UpdatesResponse struct { - UpdateList map[string]UpdatesResponseUpdateList `json:"update_list,omitempty"` - RepositoryList []string `json:"repository_list,omitempty"` - ModulesList []UpdatesRequestModulesList `json:"modules_list,omitempty"` - Releasever string `json:"releasever,omitempty"` - Basearch string `json:"basearch,omitempty"` -} diff --git a/vmaas/model_updates_response_available_updates.go b/vmaas/model_updates_response_available_updates.go deleted file mode 100644 index d26a02d..0000000 --- a/vmaas/model_updates_response_available_updates.go +++ /dev/null @@ -1,18 +0,0 @@ -/* - * VMaaS Webapp - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * API version: 1.20.4 - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package vmaas -// UpdatesResponseAvailableUpdates struct for UpdatesResponseAvailableUpdates -type UpdatesResponseAvailableUpdates struct { - Repository string `json:"repository,omitempty"` - Releasever string `json:"releasever,omitempty"` - Basearch string `json:"basearch,omitempty"` - Erratum string `json:"erratum,omitempty"` - Package string `json:"package,omitempty"` -} diff --git a/vmaas/model_updates_response_update_list.go b/vmaas/model_updates_response_update_list.go deleted file mode 100644 index 39b383b..0000000 --- a/vmaas/model_updates_response_update_list.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * VMaaS Webapp - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * API version: 1.20.4 - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package vmaas -// UpdatesResponseUpdateList struct for UpdatesResponseUpdateList -type UpdatesResponseUpdateList struct { - AvailableUpdates []UpdatesResponseAvailableUpdates `json:"available_updates,omitempty"` - Description string `json:"description,omitempty"` - Summary string `json:"summary,omitempty"` -} diff --git a/vmaas/model_updates_v2_response.go b/vmaas/model_updates_v2_response.go index 8378b84..5b25a0b 100644 --- a/vmaas/model_updates_v2_response.go +++ b/vmaas/model_updates_v2_response.go @@ -3,16 +3,257 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.20.4 - * Generated by: OpenAPI Generator (https://openapi-generator.tech) + * API version: 2.5.0 */ +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + package vmaas + +import ( + "encoding/json" +) + // UpdatesV2Response struct for UpdatesV2Response type UpdatesV2Response struct { - UpdateList map[string]UpdatesV2ResponseUpdateList `json:"update_list,omitempty"` - RepositoryList []string `json:"repository_list,omitempty"` - ModulesList []UpdatesRequestModulesList `json:"modules_list,omitempty"` - Releasever string `json:"releasever,omitempty"` - Basearch string `json:"basearch,omitempty"` + UpdateList *map[string]UpdatesV2ResponseUpdateList `json:"update_list,omitempty"` + RepositoryList *[]string `json:"repository_list,omitempty"` + ModulesList *[]UpdatesV3RequestModulesList `json:"modules_list,omitempty"` + Releasever *string `json:"releasever,omitempty"` + Basearch *string `json:"basearch,omitempty"` +} + +// NewUpdatesV2Response instantiates a new UpdatesV2Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewUpdatesV2Response() *UpdatesV2Response { + this := UpdatesV2Response{} + return &this +} + +// NewUpdatesV2ResponseWithDefaults instantiates a new UpdatesV2Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUpdatesV2ResponseWithDefaults() *UpdatesV2Response { + this := UpdatesV2Response{} + return &this +} + +// GetUpdateList returns the UpdateList field value if set, zero value otherwise. +func (o *UpdatesV2Response) GetUpdateList() map[string]UpdatesV2ResponseUpdateList { + if o == nil || o.UpdateList == nil { + var ret map[string]UpdatesV2ResponseUpdateList + return ret + } + return *o.UpdateList +} + +// GetUpdateListOk returns a tuple with the UpdateList field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdatesV2Response) GetUpdateListOk() (*map[string]UpdatesV2ResponseUpdateList, bool) { + if o == nil || o.UpdateList == nil { + return nil, false + } + return o.UpdateList, true +} + +// HasUpdateList returns a boolean if a field has been set. +func (o *UpdatesV2Response) HasUpdateList() bool { + if o != nil && o.UpdateList != nil { + return true + } + + return false +} + +// SetUpdateList gets a reference to the given map[string]UpdatesV2ResponseUpdateList and assigns it to the UpdateList field. +func (o *UpdatesV2Response) SetUpdateList(v map[string]UpdatesV2ResponseUpdateList) { + o.UpdateList = &v +} + +// GetRepositoryList returns the RepositoryList field value if set, zero value otherwise. +func (o *UpdatesV2Response) GetRepositoryList() []string { + if o == nil || o.RepositoryList == nil { + var ret []string + return ret + } + return *o.RepositoryList +} + +// GetRepositoryListOk returns a tuple with the RepositoryList field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdatesV2Response) GetRepositoryListOk() (*[]string, bool) { + if o == nil || o.RepositoryList == nil { + return nil, false + } + return o.RepositoryList, true +} + +// HasRepositoryList returns a boolean if a field has been set. +func (o *UpdatesV2Response) HasRepositoryList() bool { + if o != nil && o.RepositoryList != nil { + return true + } + + return false +} + +// SetRepositoryList gets a reference to the given []string and assigns it to the RepositoryList field. +func (o *UpdatesV2Response) SetRepositoryList(v []string) { + o.RepositoryList = &v +} + +// GetModulesList returns the ModulesList field value if set, zero value otherwise. +func (o *UpdatesV2Response) GetModulesList() []UpdatesV3RequestModulesList { + if o == nil || o.ModulesList == nil { + var ret []UpdatesV3RequestModulesList + return ret + } + return *o.ModulesList +} + +// GetModulesListOk returns a tuple with the ModulesList field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdatesV2Response) GetModulesListOk() (*[]UpdatesV3RequestModulesList, bool) { + if o == nil || o.ModulesList == nil { + return nil, false + } + return o.ModulesList, true +} + +// HasModulesList returns a boolean if a field has been set. +func (o *UpdatesV2Response) HasModulesList() bool { + if o != nil && o.ModulesList != nil { + return true + } + + return false +} + +// SetModulesList gets a reference to the given []UpdatesV3RequestModulesList and assigns it to the ModulesList field. +func (o *UpdatesV2Response) SetModulesList(v []UpdatesV3RequestModulesList) { + o.ModulesList = &v +} + +// GetReleasever returns the Releasever field value if set, zero value otherwise. +func (o *UpdatesV2Response) GetReleasever() string { + if o == nil || o.Releasever == nil { + var ret string + return ret + } + return *o.Releasever } + +// GetReleaseverOk returns a tuple with the Releasever field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdatesV2Response) GetReleaseverOk() (*string, bool) { + if o == nil || o.Releasever == nil { + return nil, false + } + return o.Releasever, true +} + +// HasReleasever returns a boolean if a field has been set. +func (o *UpdatesV2Response) HasReleasever() bool { + if o != nil && o.Releasever != nil { + return true + } + + return false +} + +// SetReleasever gets a reference to the given string and assigns it to the Releasever field. +func (o *UpdatesV2Response) SetReleasever(v string) { + o.Releasever = &v +} + +// GetBasearch returns the Basearch field value if set, zero value otherwise. +func (o *UpdatesV2Response) GetBasearch() string { + if o == nil || o.Basearch == nil { + var ret string + return ret + } + return *o.Basearch +} + +// GetBasearchOk returns a tuple with the Basearch field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdatesV2Response) GetBasearchOk() (*string, bool) { + if o == nil || o.Basearch == nil { + return nil, false + } + return o.Basearch, true +} + +// HasBasearch returns a boolean if a field has been set. +func (o *UpdatesV2Response) HasBasearch() bool { + if o != nil && o.Basearch != nil { + return true + } + + return false +} + +// SetBasearch gets a reference to the given string and assigns it to the Basearch field. +func (o *UpdatesV2Response) SetBasearch(v string) { + o.Basearch = &v +} + +func (o UpdatesV2Response) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.UpdateList != nil { + toSerialize["update_list"] = o.UpdateList + } + if o.RepositoryList != nil { + toSerialize["repository_list"] = o.RepositoryList + } + if o.ModulesList != nil { + toSerialize["modules_list"] = o.ModulesList + } + if o.Releasever != nil { + toSerialize["releasever"] = o.Releasever + } + if o.Basearch != nil { + toSerialize["basearch"] = o.Basearch + } + return json.Marshal(toSerialize) +} + +type NullableUpdatesV2Response struct { + value *UpdatesV2Response + isSet bool +} + +func (v NullableUpdatesV2Response) Get() *UpdatesV2Response { + return v.value +} + +func (v *NullableUpdatesV2Response) Set(val *UpdatesV2Response) { + v.value = val + v.isSet = true +} + +func (v NullableUpdatesV2Response) IsSet() bool { + return v.isSet +} + +func (v *NullableUpdatesV2Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUpdatesV2Response(val *UpdatesV2Response) *NullableUpdatesV2Response { + return &NullableUpdatesV2Response{value: val, isSet: true} +} + +func (v NullableUpdatesV2Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUpdatesV2Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/vmaas/model_updates_v2_response_available_updates.go b/vmaas/model_updates_v2_response_available_updates.go new file mode 100644 index 0000000..6dce7c3 --- /dev/null +++ b/vmaas/model_updates_v2_response_available_updates.go @@ -0,0 +1,259 @@ +/* + * VMaaS Webapp + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 2.5.0 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package vmaas + +import ( + "encoding/json" +) + +// UpdatesV2ResponseAvailableUpdates struct for UpdatesV2ResponseAvailableUpdates +type UpdatesV2ResponseAvailableUpdates struct { + Repository *string `json:"repository,omitempty"` + Releasever *string `json:"releasever,omitempty"` + Basearch *string `json:"basearch,omitempty"` + Erratum *string `json:"erratum,omitempty"` + Package *string `json:"package,omitempty"` +} + +// NewUpdatesV2ResponseAvailableUpdates instantiates a new UpdatesV2ResponseAvailableUpdates object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewUpdatesV2ResponseAvailableUpdates() *UpdatesV2ResponseAvailableUpdates { + this := UpdatesV2ResponseAvailableUpdates{} + return &this +} + +// NewUpdatesV2ResponseAvailableUpdatesWithDefaults instantiates a new UpdatesV2ResponseAvailableUpdates object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUpdatesV2ResponseAvailableUpdatesWithDefaults() *UpdatesV2ResponseAvailableUpdates { + this := UpdatesV2ResponseAvailableUpdates{} + return &this +} + +// GetRepository returns the Repository field value if set, zero value otherwise. +func (o *UpdatesV2ResponseAvailableUpdates) GetRepository() string { + if o == nil || o.Repository == nil { + var ret string + return ret + } + return *o.Repository +} + +// GetRepositoryOk returns a tuple with the Repository field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdatesV2ResponseAvailableUpdates) GetRepositoryOk() (*string, bool) { + if o == nil || o.Repository == nil { + return nil, false + } + return o.Repository, true +} + +// HasRepository returns a boolean if a field has been set. +func (o *UpdatesV2ResponseAvailableUpdates) HasRepository() bool { + if o != nil && o.Repository != nil { + return true + } + + return false +} + +// SetRepository gets a reference to the given string and assigns it to the Repository field. +func (o *UpdatesV2ResponseAvailableUpdates) SetRepository(v string) { + o.Repository = &v +} + +// GetReleasever returns the Releasever field value if set, zero value otherwise. +func (o *UpdatesV2ResponseAvailableUpdates) GetReleasever() string { + if o == nil || o.Releasever == nil { + var ret string + return ret + } + return *o.Releasever +} + +// GetReleaseverOk returns a tuple with the Releasever field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdatesV2ResponseAvailableUpdates) GetReleaseverOk() (*string, bool) { + if o == nil || o.Releasever == nil { + return nil, false + } + return o.Releasever, true +} + +// HasReleasever returns a boolean if a field has been set. +func (o *UpdatesV2ResponseAvailableUpdates) HasReleasever() bool { + if o != nil && o.Releasever != nil { + return true + } + + return false +} + +// SetReleasever gets a reference to the given string and assigns it to the Releasever field. +func (o *UpdatesV2ResponseAvailableUpdates) SetReleasever(v string) { + o.Releasever = &v +} + +// GetBasearch returns the Basearch field value if set, zero value otherwise. +func (o *UpdatesV2ResponseAvailableUpdates) GetBasearch() string { + if o == nil || o.Basearch == nil { + var ret string + return ret + } + return *o.Basearch +} + +// GetBasearchOk returns a tuple with the Basearch field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdatesV2ResponseAvailableUpdates) GetBasearchOk() (*string, bool) { + if o == nil || o.Basearch == nil { + return nil, false + } + return o.Basearch, true +} + +// HasBasearch returns a boolean if a field has been set. +func (o *UpdatesV2ResponseAvailableUpdates) HasBasearch() bool { + if o != nil && o.Basearch != nil { + return true + } + + return false +} + +// SetBasearch gets a reference to the given string and assigns it to the Basearch field. +func (o *UpdatesV2ResponseAvailableUpdates) SetBasearch(v string) { + o.Basearch = &v +} + +// GetErratum returns the Erratum field value if set, zero value otherwise. +func (o *UpdatesV2ResponseAvailableUpdates) GetErratum() string { + if o == nil || o.Erratum == nil { + var ret string + return ret + } + return *o.Erratum +} + +// GetErratumOk returns a tuple with the Erratum field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdatesV2ResponseAvailableUpdates) GetErratumOk() (*string, bool) { + if o == nil || o.Erratum == nil { + return nil, false + } + return o.Erratum, true +} + +// HasErratum returns a boolean if a field has been set. +func (o *UpdatesV2ResponseAvailableUpdates) HasErratum() bool { + if o != nil && o.Erratum != nil { + return true + } + + return false +} + +// SetErratum gets a reference to the given string and assigns it to the Erratum field. +func (o *UpdatesV2ResponseAvailableUpdates) SetErratum(v string) { + o.Erratum = &v +} + +// GetPackage returns the Package field value if set, zero value otherwise. +func (o *UpdatesV2ResponseAvailableUpdates) GetPackage() string { + if o == nil || o.Package == nil { + var ret string + return ret + } + return *o.Package +} + +// GetPackageOk returns a tuple with the Package field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdatesV2ResponseAvailableUpdates) GetPackageOk() (*string, bool) { + if o == nil || o.Package == nil { + return nil, false + } + return o.Package, true +} + +// HasPackage returns a boolean if a field has been set. +func (o *UpdatesV2ResponseAvailableUpdates) HasPackage() bool { + if o != nil && o.Package != nil { + return true + } + + return false +} + +// SetPackage gets a reference to the given string and assigns it to the Package field. +func (o *UpdatesV2ResponseAvailableUpdates) SetPackage(v string) { + o.Package = &v +} + +func (o UpdatesV2ResponseAvailableUpdates) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.Repository != nil { + toSerialize["repository"] = o.Repository + } + if o.Releasever != nil { + toSerialize["releasever"] = o.Releasever + } + if o.Basearch != nil { + toSerialize["basearch"] = o.Basearch + } + if o.Erratum != nil { + toSerialize["erratum"] = o.Erratum + } + if o.Package != nil { + toSerialize["package"] = o.Package + } + return json.Marshal(toSerialize) +} + +type NullableUpdatesV2ResponseAvailableUpdates struct { + value *UpdatesV2ResponseAvailableUpdates + isSet bool +} + +func (v NullableUpdatesV2ResponseAvailableUpdates) Get() *UpdatesV2ResponseAvailableUpdates { + return v.value +} + +func (v *NullableUpdatesV2ResponseAvailableUpdates) Set(val *UpdatesV2ResponseAvailableUpdates) { + v.value = val + v.isSet = true +} + +func (v NullableUpdatesV2ResponseAvailableUpdates) IsSet() bool { + return v.isSet +} + +func (v *NullableUpdatesV2ResponseAvailableUpdates) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUpdatesV2ResponseAvailableUpdates(val *UpdatesV2ResponseAvailableUpdates) *NullableUpdatesV2ResponseAvailableUpdates { + return &NullableUpdatesV2ResponseAvailableUpdates{value: val, isSet: true} +} + +func (v NullableUpdatesV2ResponseAvailableUpdates) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUpdatesV2ResponseAvailableUpdates) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/vmaas/model_updates_v2_response_update_list.go b/vmaas/model_updates_v2_response_update_list.go index ac17576..86bfd8d 100644 --- a/vmaas/model_updates_v2_response_update_list.go +++ b/vmaas/model_updates_v2_response_update_list.go @@ -3,12 +3,113 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.20.4 - * Generated by: OpenAPI Generator (https://openapi-generator.tech) + * API version: 2.5.0 */ +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + package vmaas + +import ( + "encoding/json" +) + // UpdatesV2ResponseUpdateList struct for UpdatesV2ResponseUpdateList type UpdatesV2ResponseUpdateList struct { - AvailableUpdates []UpdatesResponseAvailableUpdates `json:"available_updates,omitempty"` + AvailableUpdates *[]UpdatesV2ResponseAvailableUpdates `json:"available_updates,omitempty"` +} + +// NewUpdatesV2ResponseUpdateList instantiates a new UpdatesV2ResponseUpdateList object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewUpdatesV2ResponseUpdateList() *UpdatesV2ResponseUpdateList { + this := UpdatesV2ResponseUpdateList{} + return &this +} + +// NewUpdatesV2ResponseUpdateListWithDefaults instantiates a new UpdatesV2ResponseUpdateList object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUpdatesV2ResponseUpdateListWithDefaults() *UpdatesV2ResponseUpdateList { + this := UpdatesV2ResponseUpdateList{} + return &this +} + +// GetAvailableUpdates returns the AvailableUpdates field value if set, zero value otherwise. +func (o *UpdatesV2ResponseUpdateList) GetAvailableUpdates() []UpdatesV2ResponseAvailableUpdates { + if o == nil || o.AvailableUpdates == nil { + var ret []UpdatesV2ResponseAvailableUpdates + return ret + } + return *o.AvailableUpdates +} + +// GetAvailableUpdatesOk returns a tuple with the AvailableUpdates field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdatesV2ResponseUpdateList) GetAvailableUpdatesOk() (*[]UpdatesV2ResponseAvailableUpdates, bool) { + if o == nil || o.AvailableUpdates == nil { + return nil, false + } + return o.AvailableUpdates, true +} + +// HasAvailableUpdates returns a boolean if a field has been set. +func (o *UpdatesV2ResponseUpdateList) HasAvailableUpdates() bool { + if o != nil && o.AvailableUpdates != nil { + return true + } + + return false +} + +// SetAvailableUpdates gets a reference to the given []UpdatesV2ResponseAvailableUpdates and assigns it to the AvailableUpdates field. +func (o *UpdatesV2ResponseUpdateList) SetAvailableUpdates(v []UpdatesV2ResponseAvailableUpdates) { + o.AvailableUpdates = &v +} + +func (o UpdatesV2ResponseUpdateList) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.AvailableUpdates != nil { + toSerialize["available_updates"] = o.AvailableUpdates + } + return json.Marshal(toSerialize) } + +type NullableUpdatesV2ResponseUpdateList struct { + value *UpdatesV2ResponseUpdateList + isSet bool +} + +func (v NullableUpdatesV2ResponseUpdateList) Get() *UpdatesV2ResponseUpdateList { + return v.value +} + +func (v *NullableUpdatesV2ResponseUpdateList) Set(val *UpdatesV2ResponseUpdateList) { + v.value = val + v.isSet = true +} + +func (v NullableUpdatesV2ResponseUpdateList) IsSet() bool { + return v.isSet +} + +func (v *NullableUpdatesV2ResponseUpdateList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUpdatesV2ResponseUpdateList(val *UpdatesV2ResponseUpdateList) *NullableUpdatesV2ResponseUpdateList { + return &NullableUpdatesV2ResponseUpdateList{value: val, isSet: true} +} + +func (v NullableUpdatesV2ResponseUpdateList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUpdatesV2ResponseUpdateList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/vmaas/model_updates_v3_request.go b/vmaas/model_updates_v3_request.go index f09fbe8..32e64b5 100644 --- a/vmaas/model_updates_v3_request.go +++ b/vmaas/model_updates_v3_request.go @@ -3,18 +3,404 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.20.4 - * Generated by: OpenAPI Generator (https://openapi-generator.tech) + * API version: 2.5.0 */ +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + package vmaas + +import ( + "encoding/json" +) + // UpdatesV3Request struct for UpdatesV3Request type UpdatesV3Request struct { PackageList []string `json:"package_list"` - RepositoryList []string `json:"repository_list,omitempty"` - ModulesList []UpdatesRequestModulesList `json:"modules_list,omitempty"` - Releasever string `json:"releasever,omitempty"` - Basearch string `json:"basearch,omitempty"` - SecurityOnly bool `json:"security_only,omitempty"` - LatestOnly bool `json:"latest_only,omitempty"` + RepositoryList *[]string `json:"repository_list,omitempty"` + ModulesList *[]UpdatesV3RequestModulesList `json:"modules_list,omitempty"` + Releasever *string `json:"releasever,omitempty"` + Basearch *string `json:"basearch,omitempty"` + SecurityOnly *bool `json:"security_only,omitempty"` + LatestOnly *bool `json:"latest_only,omitempty"` + // Include content from \"third party\" repositories into the response, disabled by default. + ThirdParty *bool `json:"third_party,omitempty"` + // Search for updates of unknown package EVRAs. + OptimisticUpdates *bool `json:"optimistic_updates,omitempty"` +} + +// NewUpdatesV3Request instantiates a new UpdatesV3Request object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewUpdatesV3Request(packageList []string, ) *UpdatesV3Request { + this := UpdatesV3Request{} + this.PackageList = packageList + var thirdParty bool = false + this.ThirdParty = &thirdParty + var optimisticUpdates bool = false + this.OptimisticUpdates = &optimisticUpdates + return &this +} + +// NewUpdatesV3RequestWithDefaults instantiates a new UpdatesV3Request object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUpdatesV3RequestWithDefaults() *UpdatesV3Request { + this := UpdatesV3Request{} + var thirdParty bool = false + this.ThirdParty = &thirdParty + var optimisticUpdates bool = false + this.OptimisticUpdates = &optimisticUpdates + return &this +} + +// GetPackageList returns the PackageList field value +func (o *UpdatesV3Request) GetPackageList() []string { + if o == nil { + var ret []string + return ret + } + + return o.PackageList +} + +// GetPackageListOk returns a tuple with the PackageList field value +// and a boolean to check if the value has been set. +func (o *UpdatesV3Request) GetPackageListOk() (*[]string, bool) { + if o == nil { + return nil, false + } + return &o.PackageList, true +} + +// SetPackageList sets field value +func (o *UpdatesV3Request) SetPackageList(v []string) { + o.PackageList = v +} + +// GetRepositoryList returns the RepositoryList field value if set, zero value otherwise. +func (o *UpdatesV3Request) GetRepositoryList() []string { + if o == nil || o.RepositoryList == nil { + var ret []string + return ret + } + return *o.RepositoryList +} + +// GetRepositoryListOk returns a tuple with the RepositoryList field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdatesV3Request) GetRepositoryListOk() (*[]string, bool) { + if o == nil || o.RepositoryList == nil { + return nil, false + } + return o.RepositoryList, true +} + +// HasRepositoryList returns a boolean if a field has been set. +func (o *UpdatesV3Request) HasRepositoryList() bool { + if o != nil && o.RepositoryList != nil { + return true + } + + return false +} + +// SetRepositoryList gets a reference to the given []string and assigns it to the RepositoryList field. +func (o *UpdatesV3Request) SetRepositoryList(v []string) { + o.RepositoryList = &v +} + +// GetModulesList returns the ModulesList field value if set, zero value otherwise. +func (o *UpdatesV3Request) GetModulesList() []UpdatesV3RequestModulesList { + if o == nil || o.ModulesList == nil { + var ret []UpdatesV3RequestModulesList + return ret + } + return *o.ModulesList +} + +// GetModulesListOk returns a tuple with the ModulesList field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdatesV3Request) GetModulesListOk() (*[]UpdatesV3RequestModulesList, bool) { + if o == nil || o.ModulesList == nil { + return nil, false + } + return o.ModulesList, true +} + +// HasModulesList returns a boolean if a field has been set. +func (o *UpdatesV3Request) HasModulesList() bool { + if o != nil && o.ModulesList != nil { + return true + } + + return false +} + +// SetModulesList gets a reference to the given []UpdatesV3RequestModulesList and assigns it to the ModulesList field. +func (o *UpdatesV3Request) SetModulesList(v []UpdatesV3RequestModulesList) { + o.ModulesList = &v +} + +// GetReleasever returns the Releasever field value if set, zero value otherwise. +func (o *UpdatesV3Request) GetReleasever() string { + if o == nil || o.Releasever == nil { + var ret string + return ret + } + return *o.Releasever +} + +// GetReleaseverOk returns a tuple with the Releasever field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdatesV3Request) GetReleaseverOk() (*string, bool) { + if o == nil || o.Releasever == nil { + return nil, false + } + return o.Releasever, true +} + +// HasReleasever returns a boolean if a field has been set. +func (o *UpdatesV3Request) HasReleasever() bool { + if o != nil && o.Releasever != nil { + return true + } + + return false +} + +// SetReleasever gets a reference to the given string and assigns it to the Releasever field. +func (o *UpdatesV3Request) SetReleasever(v string) { + o.Releasever = &v +} + +// GetBasearch returns the Basearch field value if set, zero value otherwise. +func (o *UpdatesV3Request) GetBasearch() string { + if o == nil || o.Basearch == nil { + var ret string + return ret + } + return *o.Basearch +} + +// GetBasearchOk returns a tuple with the Basearch field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdatesV3Request) GetBasearchOk() (*string, bool) { + if o == nil || o.Basearch == nil { + return nil, false + } + return o.Basearch, true +} + +// HasBasearch returns a boolean if a field has been set. +func (o *UpdatesV3Request) HasBasearch() bool { + if o != nil && o.Basearch != nil { + return true + } + + return false +} + +// SetBasearch gets a reference to the given string and assigns it to the Basearch field. +func (o *UpdatesV3Request) SetBasearch(v string) { + o.Basearch = &v +} + +// GetSecurityOnly returns the SecurityOnly field value if set, zero value otherwise. +func (o *UpdatesV3Request) GetSecurityOnly() bool { + if o == nil || o.SecurityOnly == nil { + var ret bool + return ret + } + return *o.SecurityOnly +} + +// GetSecurityOnlyOk returns a tuple with the SecurityOnly field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdatesV3Request) GetSecurityOnlyOk() (*bool, bool) { + if o == nil || o.SecurityOnly == nil { + return nil, false + } + return o.SecurityOnly, true +} + +// HasSecurityOnly returns a boolean if a field has been set. +func (o *UpdatesV3Request) HasSecurityOnly() bool { + if o != nil && o.SecurityOnly != nil { + return true + } + + return false +} + +// SetSecurityOnly gets a reference to the given bool and assigns it to the SecurityOnly field. +func (o *UpdatesV3Request) SetSecurityOnly(v bool) { + o.SecurityOnly = &v +} + +// GetLatestOnly returns the LatestOnly field value if set, zero value otherwise. +func (o *UpdatesV3Request) GetLatestOnly() bool { + if o == nil || o.LatestOnly == nil { + var ret bool + return ret + } + return *o.LatestOnly +} + +// GetLatestOnlyOk returns a tuple with the LatestOnly field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdatesV3Request) GetLatestOnlyOk() (*bool, bool) { + if o == nil || o.LatestOnly == nil { + return nil, false + } + return o.LatestOnly, true } + +// HasLatestOnly returns a boolean if a field has been set. +func (o *UpdatesV3Request) HasLatestOnly() bool { + if o != nil && o.LatestOnly != nil { + return true + } + + return false +} + +// SetLatestOnly gets a reference to the given bool and assigns it to the LatestOnly field. +func (o *UpdatesV3Request) SetLatestOnly(v bool) { + o.LatestOnly = &v +} + +// GetThirdParty returns the ThirdParty field value if set, zero value otherwise. +func (o *UpdatesV3Request) GetThirdParty() bool { + if o == nil || o.ThirdParty == nil { + var ret bool + return ret + } + return *o.ThirdParty +} + +// GetThirdPartyOk returns a tuple with the ThirdParty field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdatesV3Request) GetThirdPartyOk() (*bool, bool) { + if o == nil || o.ThirdParty == nil { + return nil, false + } + return o.ThirdParty, true +} + +// HasThirdParty returns a boolean if a field has been set. +func (o *UpdatesV3Request) HasThirdParty() bool { + if o != nil && o.ThirdParty != nil { + return true + } + + return false +} + +// SetThirdParty gets a reference to the given bool and assigns it to the ThirdParty field. +func (o *UpdatesV3Request) SetThirdParty(v bool) { + o.ThirdParty = &v +} + +// GetOptimisticUpdates returns the OptimisticUpdates field value if set, zero value otherwise. +func (o *UpdatesV3Request) GetOptimisticUpdates() bool { + if o == nil || o.OptimisticUpdates == nil { + var ret bool + return ret + } + return *o.OptimisticUpdates +} + +// GetOptimisticUpdatesOk returns a tuple with the OptimisticUpdates field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdatesV3Request) GetOptimisticUpdatesOk() (*bool, bool) { + if o == nil || o.OptimisticUpdates == nil { + return nil, false + } + return o.OptimisticUpdates, true +} + +// HasOptimisticUpdates returns a boolean if a field has been set. +func (o *UpdatesV3Request) HasOptimisticUpdates() bool { + if o != nil && o.OptimisticUpdates != nil { + return true + } + + return false +} + +// SetOptimisticUpdates gets a reference to the given bool and assigns it to the OptimisticUpdates field. +func (o *UpdatesV3Request) SetOptimisticUpdates(v bool) { + o.OptimisticUpdates = &v +} + +func (o UpdatesV3Request) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["package_list"] = o.PackageList + } + if o.RepositoryList != nil { + toSerialize["repository_list"] = o.RepositoryList + } + if o.ModulesList != nil { + toSerialize["modules_list"] = o.ModulesList + } + if o.Releasever != nil { + toSerialize["releasever"] = o.Releasever + } + if o.Basearch != nil { + toSerialize["basearch"] = o.Basearch + } + if o.SecurityOnly != nil { + toSerialize["security_only"] = o.SecurityOnly + } + if o.LatestOnly != nil { + toSerialize["latest_only"] = o.LatestOnly + } + if o.ThirdParty != nil { + toSerialize["third_party"] = o.ThirdParty + } + if o.OptimisticUpdates != nil { + toSerialize["optimistic_updates"] = o.OptimisticUpdates + } + return json.Marshal(toSerialize) +} + +type NullableUpdatesV3Request struct { + value *UpdatesV3Request + isSet bool +} + +func (v NullableUpdatesV3Request) Get() *UpdatesV3Request { + return v.value +} + +func (v *NullableUpdatesV3Request) Set(val *UpdatesV3Request) { + v.value = val + v.isSet = true +} + +func (v NullableUpdatesV3Request) IsSet() bool { + return v.isSet +} + +func (v *NullableUpdatesV3Request) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUpdatesV3Request(val *UpdatesV3Request) *NullableUpdatesV3Request { + return &NullableUpdatesV3Request{value: val, isSet: true} +} + +func (v NullableUpdatesV3Request) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUpdatesV3Request) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/vmaas/model_updates_v3_request_modules_list.go b/vmaas/model_updates_v3_request_modules_list.go new file mode 100644 index 0000000..a81a600 --- /dev/null +++ b/vmaas/model_updates_v3_request_modules_list.go @@ -0,0 +1,137 @@ +/* + * VMaaS Webapp + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 2.5.0 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package vmaas + +import ( + "encoding/json" +) + +// UpdatesV3RequestModulesList struct for UpdatesV3RequestModulesList +type UpdatesV3RequestModulesList struct { + ModuleName string `json:"module_name"` + ModuleStream string `json:"module_stream"` +} + +// NewUpdatesV3RequestModulesList instantiates a new UpdatesV3RequestModulesList object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewUpdatesV3RequestModulesList(moduleName string, moduleStream string, ) *UpdatesV3RequestModulesList { + this := UpdatesV3RequestModulesList{} + this.ModuleName = moduleName + this.ModuleStream = moduleStream + return &this +} + +// NewUpdatesV3RequestModulesListWithDefaults instantiates a new UpdatesV3RequestModulesList object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUpdatesV3RequestModulesListWithDefaults() *UpdatesV3RequestModulesList { + this := UpdatesV3RequestModulesList{} + return &this +} + +// GetModuleName returns the ModuleName field value +func (o *UpdatesV3RequestModulesList) GetModuleName() string { + if o == nil { + var ret string + return ret + } + + return o.ModuleName +} + +// GetModuleNameOk returns a tuple with the ModuleName field value +// and a boolean to check if the value has been set. +func (o *UpdatesV3RequestModulesList) GetModuleNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ModuleName, true +} + +// SetModuleName sets field value +func (o *UpdatesV3RequestModulesList) SetModuleName(v string) { + o.ModuleName = v +} + +// GetModuleStream returns the ModuleStream field value +func (o *UpdatesV3RequestModulesList) GetModuleStream() string { + if o == nil { + var ret string + return ret + } + + return o.ModuleStream +} + +// GetModuleStreamOk returns a tuple with the ModuleStream field value +// and a boolean to check if the value has been set. +func (o *UpdatesV3RequestModulesList) GetModuleStreamOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ModuleStream, true +} + +// SetModuleStream sets field value +func (o *UpdatesV3RequestModulesList) SetModuleStream(v string) { + o.ModuleStream = v +} + +func (o UpdatesV3RequestModulesList) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["module_name"] = o.ModuleName + } + if true { + toSerialize["module_stream"] = o.ModuleStream + } + return json.Marshal(toSerialize) +} + +type NullableUpdatesV3RequestModulesList struct { + value *UpdatesV3RequestModulesList + isSet bool +} + +func (v NullableUpdatesV3RequestModulesList) Get() *UpdatesV3RequestModulesList { + return v.value +} + +func (v *NullableUpdatesV3RequestModulesList) Set(val *UpdatesV3RequestModulesList) { + v.value = val + v.isSet = true +} + +func (v NullableUpdatesV3RequestModulesList) IsSet() bool { + return v.isSet +} + +func (v *NullableUpdatesV3RequestModulesList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUpdatesV3RequestModulesList(val *UpdatesV3RequestModulesList) *NullableUpdatesV3RequestModulesList { + return &NullableUpdatesV3RequestModulesList{value: val, isSet: true} +} + +func (v NullableUpdatesV3RequestModulesList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUpdatesV3RequestModulesList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/vmaas/model_vulnerabilities_request.go b/vmaas/model_vulnerabilities_request.go index db479ff..6531c8d 100644 --- a/vmaas/model_vulnerabilities_request.go +++ b/vmaas/model_vulnerabilities_request.go @@ -3,16 +3,363 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.20.4 - * Generated by: OpenAPI Generator (https://openapi-generator.tech) + * API version: 2.5.0 */ +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + package vmaas + +import ( + "encoding/json" +) + // VulnerabilitiesRequest struct for VulnerabilitiesRequest type VulnerabilitiesRequest struct { PackageList []string `json:"package_list"` - RepositoryList []string `json:"repository_list,omitempty"` - ModulesList []UpdatesRequestModulesList `json:"modules_list,omitempty"` - Releasever string `json:"releasever,omitempty"` - Basearch string `json:"basearch,omitempty"` + RepositoryList *[]string `json:"repository_list,omitempty"` + ModulesList *[]UpdatesV3RequestModulesList `json:"modules_list,omitempty"` + Releasever *string `json:"releasever,omitempty"` + Basearch *string `json:"basearch,omitempty"` + Oval *bool `json:"oval,omitempty"` + OvalOnly *bool `json:"oval_only,omitempty"` + // Include content from \"third party\" repositories into the response, disabled by default. + ThirdParty *bool `json:"third_party,omitempty"` +} + +// NewVulnerabilitiesRequest instantiates a new VulnerabilitiesRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewVulnerabilitiesRequest(packageList []string, ) *VulnerabilitiesRequest { + this := VulnerabilitiesRequest{} + this.PackageList = packageList + var thirdParty bool = false + this.ThirdParty = &thirdParty + return &this +} + +// NewVulnerabilitiesRequestWithDefaults instantiates a new VulnerabilitiesRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewVulnerabilitiesRequestWithDefaults() *VulnerabilitiesRequest { + this := VulnerabilitiesRequest{} + var thirdParty bool = false + this.ThirdParty = &thirdParty + return &this +} + +// GetPackageList returns the PackageList field value +func (o *VulnerabilitiesRequest) GetPackageList() []string { + if o == nil { + var ret []string + return ret + } + + return o.PackageList +} + +// GetPackageListOk returns a tuple with the PackageList field value +// and a boolean to check if the value has been set. +func (o *VulnerabilitiesRequest) GetPackageListOk() (*[]string, bool) { + if o == nil { + return nil, false + } + return &o.PackageList, true +} + +// SetPackageList sets field value +func (o *VulnerabilitiesRequest) SetPackageList(v []string) { + o.PackageList = v +} + +// GetRepositoryList returns the RepositoryList field value if set, zero value otherwise. +func (o *VulnerabilitiesRequest) GetRepositoryList() []string { + if o == nil || o.RepositoryList == nil { + var ret []string + return ret + } + return *o.RepositoryList +} + +// GetRepositoryListOk returns a tuple with the RepositoryList field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VulnerabilitiesRequest) GetRepositoryListOk() (*[]string, bool) { + if o == nil || o.RepositoryList == nil { + return nil, false + } + return o.RepositoryList, true +} + +// HasRepositoryList returns a boolean if a field has been set. +func (o *VulnerabilitiesRequest) HasRepositoryList() bool { + if o != nil && o.RepositoryList != nil { + return true + } + + return false +} + +// SetRepositoryList gets a reference to the given []string and assigns it to the RepositoryList field. +func (o *VulnerabilitiesRequest) SetRepositoryList(v []string) { + o.RepositoryList = &v +} + +// GetModulesList returns the ModulesList field value if set, zero value otherwise. +func (o *VulnerabilitiesRequest) GetModulesList() []UpdatesV3RequestModulesList { + if o == nil || o.ModulesList == nil { + var ret []UpdatesV3RequestModulesList + return ret + } + return *o.ModulesList } + +// GetModulesListOk returns a tuple with the ModulesList field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VulnerabilitiesRequest) GetModulesListOk() (*[]UpdatesV3RequestModulesList, bool) { + if o == nil || o.ModulesList == nil { + return nil, false + } + return o.ModulesList, true +} + +// HasModulesList returns a boolean if a field has been set. +func (o *VulnerabilitiesRequest) HasModulesList() bool { + if o != nil && o.ModulesList != nil { + return true + } + + return false +} + +// SetModulesList gets a reference to the given []UpdatesV3RequestModulesList and assigns it to the ModulesList field. +func (o *VulnerabilitiesRequest) SetModulesList(v []UpdatesV3RequestModulesList) { + o.ModulesList = &v +} + +// GetReleasever returns the Releasever field value if set, zero value otherwise. +func (o *VulnerabilitiesRequest) GetReleasever() string { + if o == nil || o.Releasever == nil { + var ret string + return ret + } + return *o.Releasever +} + +// GetReleaseverOk returns a tuple with the Releasever field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VulnerabilitiesRequest) GetReleaseverOk() (*string, bool) { + if o == nil || o.Releasever == nil { + return nil, false + } + return o.Releasever, true +} + +// HasReleasever returns a boolean if a field has been set. +func (o *VulnerabilitiesRequest) HasReleasever() bool { + if o != nil && o.Releasever != nil { + return true + } + + return false +} + +// SetReleasever gets a reference to the given string and assigns it to the Releasever field. +func (o *VulnerabilitiesRequest) SetReleasever(v string) { + o.Releasever = &v +} + +// GetBasearch returns the Basearch field value if set, zero value otherwise. +func (o *VulnerabilitiesRequest) GetBasearch() string { + if o == nil || o.Basearch == nil { + var ret string + return ret + } + return *o.Basearch +} + +// GetBasearchOk returns a tuple with the Basearch field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VulnerabilitiesRequest) GetBasearchOk() (*string, bool) { + if o == nil || o.Basearch == nil { + return nil, false + } + return o.Basearch, true +} + +// HasBasearch returns a boolean if a field has been set. +func (o *VulnerabilitiesRequest) HasBasearch() bool { + if o != nil && o.Basearch != nil { + return true + } + + return false +} + +// SetBasearch gets a reference to the given string and assigns it to the Basearch field. +func (o *VulnerabilitiesRequest) SetBasearch(v string) { + o.Basearch = &v +} + +// GetOval returns the Oval field value if set, zero value otherwise. +func (o *VulnerabilitiesRequest) GetOval() bool { + if o == nil || o.Oval == nil { + var ret bool + return ret + } + return *o.Oval +} + +// GetOvalOk returns a tuple with the Oval field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VulnerabilitiesRequest) GetOvalOk() (*bool, bool) { + if o == nil || o.Oval == nil { + return nil, false + } + return o.Oval, true +} + +// HasOval returns a boolean if a field has been set. +func (o *VulnerabilitiesRequest) HasOval() bool { + if o != nil && o.Oval != nil { + return true + } + + return false +} + +// SetOval gets a reference to the given bool and assigns it to the Oval field. +func (o *VulnerabilitiesRequest) SetOval(v bool) { + o.Oval = &v +} + +// GetOvalOnly returns the OvalOnly field value if set, zero value otherwise. +func (o *VulnerabilitiesRequest) GetOvalOnly() bool { + if o == nil || o.OvalOnly == nil { + var ret bool + return ret + } + return *o.OvalOnly +} + +// GetOvalOnlyOk returns a tuple with the OvalOnly field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VulnerabilitiesRequest) GetOvalOnlyOk() (*bool, bool) { + if o == nil || o.OvalOnly == nil { + return nil, false + } + return o.OvalOnly, true +} + +// HasOvalOnly returns a boolean if a field has been set. +func (o *VulnerabilitiesRequest) HasOvalOnly() bool { + if o != nil && o.OvalOnly != nil { + return true + } + + return false +} + +// SetOvalOnly gets a reference to the given bool and assigns it to the OvalOnly field. +func (o *VulnerabilitiesRequest) SetOvalOnly(v bool) { + o.OvalOnly = &v +} + +// GetThirdParty returns the ThirdParty field value if set, zero value otherwise. +func (o *VulnerabilitiesRequest) GetThirdParty() bool { + if o == nil || o.ThirdParty == nil { + var ret bool + return ret + } + return *o.ThirdParty +} + +// GetThirdPartyOk returns a tuple with the ThirdParty field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VulnerabilitiesRequest) GetThirdPartyOk() (*bool, bool) { + if o == nil || o.ThirdParty == nil { + return nil, false + } + return o.ThirdParty, true +} + +// HasThirdParty returns a boolean if a field has been set. +func (o *VulnerabilitiesRequest) HasThirdParty() bool { + if o != nil && o.ThirdParty != nil { + return true + } + + return false +} + +// SetThirdParty gets a reference to the given bool and assigns it to the ThirdParty field. +func (o *VulnerabilitiesRequest) SetThirdParty(v bool) { + o.ThirdParty = &v +} + +func (o VulnerabilitiesRequest) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["package_list"] = o.PackageList + } + if o.RepositoryList != nil { + toSerialize["repository_list"] = o.RepositoryList + } + if o.ModulesList != nil { + toSerialize["modules_list"] = o.ModulesList + } + if o.Releasever != nil { + toSerialize["releasever"] = o.Releasever + } + if o.Basearch != nil { + toSerialize["basearch"] = o.Basearch + } + if o.Oval != nil { + toSerialize["oval"] = o.Oval + } + if o.OvalOnly != nil { + toSerialize["oval_only"] = o.OvalOnly + } + if o.ThirdParty != nil { + toSerialize["third_party"] = o.ThirdParty + } + return json.Marshal(toSerialize) +} + +type NullableVulnerabilitiesRequest struct { + value *VulnerabilitiesRequest + isSet bool +} + +func (v NullableVulnerabilitiesRequest) Get() *VulnerabilitiesRequest { + return v.value +} + +func (v *NullableVulnerabilitiesRequest) Set(val *VulnerabilitiesRequest) { + v.value = val + v.isSet = true +} + +func (v NullableVulnerabilitiesRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableVulnerabilitiesRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableVulnerabilitiesRequest(val *VulnerabilitiesRequest) *NullableVulnerabilitiesRequest { + return &NullableVulnerabilitiesRequest{value: val, isSet: true} +} + +func (v NullableVulnerabilitiesRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableVulnerabilitiesRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/vmaas/model_vulnerabilities_response.go b/vmaas/model_vulnerabilities_response.go index 3700d66..5c35365 100644 --- a/vmaas/model_vulnerabilities_response.go +++ b/vmaas/model_vulnerabilities_response.go @@ -3,12 +3,135 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.20.4 - * Generated by: OpenAPI Generator (https://openapi-generator.tech) + * API version: 2.5.0 */ +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + package vmaas + +import ( + "encoding/json" +) + // VulnerabilitiesResponse struct for VulnerabilitiesResponse type VulnerabilitiesResponse struct { - CveList []string `json:"cve_list,omitempty"` + CveList []string `json:"cve_list"` + UnpatchedCveList []string `json:"unpatched_cve_list"` +} + +// NewVulnerabilitiesResponse instantiates a new VulnerabilitiesResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewVulnerabilitiesResponse(cveList []string, unpatchedCveList []string, ) *VulnerabilitiesResponse { + this := VulnerabilitiesResponse{} + this.CveList = cveList + this.UnpatchedCveList = unpatchedCveList + return &this +} + +// NewVulnerabilitiesResponseWithDefaults instantiates a new VulnerabilitiesResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewVulnerabilitiesResponseWithDefaults() *VulnerabilitiesResponse { + this := VulnerabilitiesResponse{} + return &this +} + +// GetCveList returns the CveList field value +func (o *VulnerabilitiesResponse) GetCveList() []string { + if o == nil { + var ret []string + return ret + } + + return o.CveList +} + +// GetCveListOk returns a tuple with the CveList field value +// and a boolean to check if the value has been set. +func (o *VulnerabilitiesResponse) GetCveListOk() (*[]string, bool) { + if o == nil { + return nil, false + } + return &o.CveList, true +} + +// SetCveList sets field value +func (o *VulnerabilitiesResponse) SetCveList(v []string) { + o.CveList = v +} + +// GetUnpatchedCveList returns the UnpatchedCveList field value +func (o *VulnerabilitiesResponse) GetUnpatchedCveList() []string { + if o == nil { + var ret []string + return ret + } + + return o.UnpatchedCveList +} + +// GetUnpatchedCveListOk returns a tuple with the UnpatchedCveList field value +// and a boolean to check if the value has been set. +func (o *VulnerabilitiesResponse) GetUnpatchedCveListOk() (*[]string, bool) { + if o == nil { + return nil, false + } + return &o.UnpatchedCveList, true +} + +// SetUnpatchedCveList sets field value +func (o *VulnerabilitiesResponse) SetUnpatchedCveList(v []string) { + o.UnpatchedCveList = v } + +func (o VulnerabilitiesResponse) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["cve_list"] = o.CveList + } + if true { + toSerialize["unpatched_cve_list"] = o.UnpatchedCveList + } + return json.Marshal(toSerialize) +} + +type NullableVulnerabilitiesResponse struct { + value *VulnerabilitiesResponse + isSet bool +} + +func (v NullableVulnerabilitiesResponse) Get() *VulnerabilitiesResponse { + return v.value +} + +func (v *NullableVulnerabilitiesResponse) Set(val *VulnerabilitiesResponse) { + v.value = val + v.isSet = true +} + +func (v NullableVulnerabilitiesResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableVulnerabilitiesResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableVulnerabilitiesResponse(val *VulnerabilitiesResponse) *NullableVulnerabilitiesResponse { + return &NullableVulnerabilitiesResponse{value: val, isSet: true} +} + +func (v NullableVulnerabilitiesResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableVulnerabilitiesResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/vmaas/response.go b/vmaas/response.go index 7b6fc0d..86ae25c 100644 --- a/vmaas/response.go +++ b/vmaas/response.go @@ -3,10 +3,11 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 1.20.4 - * Generated by: OpenAPI Generator (https://openapi-generator.tech) + * API version: 2.5.0 */ +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + package vmaas import ( diff --git a/vmaas/utils.go b/vmaas/utils.go new file mode 100644 index 0000000..d800bef --- /dev/null +++ b/vmaas/utils.go @@ -0,0 +1,335 @@ +/* + * VMaaS Webapp + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 2.5.0 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package vmaas + +import ( + "encoding/json" + "time" +) + +// PtrBool is a helper routine that returns a pointer to given boolean value. +func PtrBool(v bool) *bool { return &v } + +// PtrInt is a helper routine that returns a pointer to given integer value. +func PtrInt(v int) *int { return &v } + +// PtrInt32 is a helper routine that returns a pointer to given integer value. +func PtrInt32(v int32) *int32 { return &v } + +// PtrInt64 is a helper routine that returns a pointer to given integer value. +func PtrInt64(v int64) *int64 { return &v } + +// PtrFloat32 is a helper routine that returns a pointer to given float value. +func PtrFloat32(v float32) *float32 { return &v } + +// PtrFloat64 is a helper routine that returns a pointer to given float value. +func PtrFloat64(v float64) *float64 { return &v } + +// PtrString is a helper routine that returns a pointer to given string value. +func PtrString(v string) *string { return &v } + +// PtrTime is helper routine that returns a pointer to given Time value. +func PtrTime(v time.Time) *time.Time { return &v } + +type NullableBool struct { + value *bool + isSet bool +} + +func (v NullableBool) Get() *bool { + return v.value +} + +func (v *NullableBool) Set(val *bool) { + v.value = val + v.isSet = true +} + +func (v NullableBool) IsSet() bool { + return v.isSet +} + +func (v *NullableBool) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBool(val *bool) *NullableBool { + return &NullableBool{value: val, isSet: true} +} + +func (v NullableBool) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBool) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + +type NullableInt struct { + value *int + isSet bool +} + +func (v NullableInt) Get() *int { + return v.value +} + +func (v *NullableInt) Set(val *int) { + v.value = val + v.isSet = true +} + +func (v NullableInt) IsSet() bool { + return v.isSet +} + +func (v *NullableInt) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt(val *int) *NullableInt { + return &NullableInt{value: val, isSet: true} +} + +func (v NullableInt) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + +type NullableInt32 struct { + value *int32 + isSet bool +} + +func (v NullableInt32) Get() *int32 { + return v.value +} + +func (v *NullableInt32) Set(val *int32) { + v.value = val + v.isSet = true +} + +func (v NullableInt32) IsSet() bool { + return v.isSet +} + +func (v *NullableInt32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt32(val *int32) *NullableInt32 { + return &NullableInt32{value: val, isSet: true} +} + +func (v NullableInt32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + +type NullableInt64 struct { + value *int64 + isSet bool +} + +func (v NullableInt64) Get() *int64 { + return v.value +} + +func (v *NullableInt64) Set(val *int64) { + v.value = val + v.isSet = true +} + +func (v NullableInt64) IsSet() bool { + return v.isSet +} + +func (v *NullableInt64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt64(val *int64) *NullableInt64 { + return &NullableInt64{value: val, isSet: true} +} + +func (v NullableInt64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + +type NullableFloat32 struct { + value *float32 + isSet bool +} + +func (v NullableFloat32) Get() *float32 { + return v.value +} + +func (v *NullableFloat32) Set(val *float32) { + v.value = val + v.isSet = true +} + +func (v NullableFloat32) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat32(val *float32) *NullableFloat32 { + return &NullableFloat32{value: val, isSet: true} +} + +func (v NullableFloat32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + +type NullableFloat64 struct { + value *float64 + isSet bool +} + +func (v NullableFloat64) Get() *float64 { + return v.value +} + +func (v *NullableFloat64) Set(val *float64) { + v.value = val + v.isSet = true +} + +func (v NullableFloat64) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat64(val *float64) *NullableFloat64 { + return &NullableFloat64{value: val, isSet: true} +} + +func (v NullableFloat64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + +type NullableString struct { + value *string + isSet bool +} + +func (v NullableString) Get() *string { + return v.value +} + +func (v *NullableString) Set(val *string) { + v.value = val + v.isSet = true +} + +func (v NullableString) IsSet() bool { + return v.isSet +} + +func (v *NullableString) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableString(val *string) *NullableString { + return &NullableString{value: val, isSet: true} +} + +func (v NullableString) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableString) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + +type NullableTime struct { + value *time.Time + isSet bool +} + +func (v NullableTime) Get() *time.Time { + return v.value +} + +func (v *NullableTime) Set(val *time.Time) { + v.value = val + v.isSet = true +} + +func (v NullableTime) IsSet() bool { + return v.isSet +} + +func (v *NullableTime) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTime(val *time.Time) *NullableTime { + return &NullableTime{value: val, isSet: true} +} + +func (v NullableTime) MarshalJSON() ([]byte, error) { + return v.value.MarshalJSON() +} + +func (v *NullableTime) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +}