diff --git a/bin/lfs/swagger-codegen-cli-2.2.3.jar b/bin/lfs/swagger-codegen-cli-2.2.3.jar deleted file mode 100755 index 7aa3f0ca..00000000 --- a/bin/lfs/swagger-codegen-cli-2.2.3.jar +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3ea8eb8ef7b2f321a184ebfe344e2ac35cd7ba4b288810f7e55678566d97edc1 -size 13827124 diff --git a/bin/lfs/swagger-codegen-cli-2.4.26.jar b/bin/lfs/swagger-codegen-cli-2.4.26.jar new file mode 100644 index 00000000..7d0a6094 Binary files /dev/null and b/bin/lfs/swagger-codegen-cli-2.4.26.jar differ diff --git a/bin/swagger-codegen-cli.jar b/bin/swagger-codegen-cli.jar index 24ce3a31..f7a326cb 120000 --- a/bin/swagger-codegen-cli.jar +++ b/bin/swagger-codegen-cli.jar @@ -1 +1 @@ -lfs/swagger-codegen-cli-2.2.3.jar \ No newline at end of file +lfs/swagger-codegen-cli-2.4.26.jar \ No newline at end of file diff --git a/bindings/go/build.sh b/bindings/go/build.sh index 035d25af..d68b6741 100755 --- a/bindings/go/build.sh +++ b/bindings/go/build.sh @@ -1,4 +1,6 @@ #!/usr/bin/env bash +set -e + self=$(readlink -f $BASH_SOURCE) self_dir=$(dirname $self) root_dir=$(readlink -f "$self_dir/../..") @@ -24,3 +26,12 @@ $root_dir/bin/swagger-codegen-cli generate \ -l go \ -o $src_dir \ $common_codegen_options + + +# Apply fixes for missing imports +# +# This is a temporary measure as a larger API/swagger update is due soon which +# should resolve this and other issues properly. + +sed -i 's/ \"fmt\"/ \"fmt\"\n \"github.com\/antihax\/optional\"/g' $src_dir/api_files.go +sed -i 's/ \"strings\"/ \"strings\"\n \"github.com\/antihax\/optional\"/g' $src_dir/api_user.go diff --git a/bindings/go/deploy.sh b/bindings/go/deploy.sh index 75973be8..18d199cf 100755 --- a/bindings/go/deploy.sh +++ b/bindings/go/deploy.sh @@ -1,4 +1,6 @@ #!/usr/bin/env bash +set -e + self=$(readlink -f $BASH_SOURCE) self_dir=$(dirname $self) root_dir=$(readlink -f "$self_dir/../..") diff --git a/bindings/go/src/.swagger-codegen/VERSION b/bindings/go/src/.swagger-codegen/VERSION index 6b4d1577..21f40d97 100644 --- a/bindings/go/src/.swagger-codegen/VERSION +++ b/bindings/go/src/.swagger-codegen/VERSION @@ -1 +1 @@ -2.2.3 \ No newline at end of file +2.4.26 \ No newline at end of file diff --git a/bindings/go/src/README.md b/bindings/go/src/README.md index aa6962d8..c86a38b4 100644 --- a/bindings/go/src/README.md +++ b/bindings/go/src/README.md @@ -6,14 +6,14 @@ The API to the Cloudsmith Service This API client was generated by the [swagger-codegen](https://github.com/swagger-api/swagger-codegen) project. By using the [swagger-spec](https://github.com/swagger-api/swagger-spec) from a remote server, you can easily generate an API client. - API version: v1 -- Package version: 1.30.0 +- Package version: 1.33.7 - Build package: io.swagger.codegen.languages.GoClientCodegen For more information, please visit [https://help.cloudsmith.io](https://help.cloudsmith.io) ## Installation Put the package under your project folder and add the following in import: -``` - "./cloudsmith_api" +```golang +import "./cloudsmith_api" ``` ## Documentation for API Endpoints @@ -120,8 +120,8 @@ Class | Method | HTTP request | Description *ReposApi* | [**ReposPartialUpdate**](docs/ReposApi.md#repospartialupdate) | **Patch** /repos/{owner}/{identifier}/ | Update details about a repository in a given namespace. *ReposApi* | [**ReposRead**](docs/ReposApi.md#reposread) | **Get** /repos/{owner}/{identifier}/ | Get a specific repository. *StatusApi* | [**StatusCheckBasic**](docs/StatusApi.md#statuscheckbasic) | **Get** /status/check/basic/ | Endpoint to check basic API connectivity. -*StorageregionsApi* | [**StorageRegionsList**](docs/StorageregionsApi.md#storageregionslist) | **Get** /storage-regions/ | Get a list of all available storage regions. -*StorageregionsApi* | [**StorageRegionsRead**](docs/StorageregionsApi.md#storageregionsread) | **Get** /storage-regions/{slug}/ | Get a specific storage region. +*StorageRegionsApi* | [**StorageRegionsList**](docs/StorageRegionsApi.md#storageregionslist) | **Get** /storage-regions/ | Get a list of all available storage regions. +*StorageRegionsApi* | [**StorageRegionsRead**](docs/StorageRegionsApi.md#storageregionsread) | **Get** /storage-regions/{slug}/ | Get a specific storage region. *UserApi* | [**UserSelf**](docs/UserApi.md#userself) | **Get** /user/self/ | Provide a brief for the current user (if any). *UserApi* | [**UserTokenCreate**](docs/UserApi.md#usertokencreate) | **Post** /user/token/ | Retrieve the API key/token for the authenticated user. *UsersApi* | [**UsersProfileRead**](docs/UsersApi.md#usersprofileread) | **Get** /users/profile/{slug}/ | Provide a brief for the specified user (if any). @@ -248,17 +248,28 @@ Class | Method | HTTP request | Description ## Documentation For Authorization - ## apikey - - **Type**: API key -- **API key parameter name**: X-Api-Key -- **Location**: HTTP header +Example +```golang +auth := context.WithValue(context.Background(), sw.ContextAPIKey, sw.APIKey{ + Key: "APIKEY", + Prefix: "Bearer", // Omit if not necessary. +}) +r, err := client.Service.Operation(auth, args) +``` ## basic - - **Type**: HTTP basic authentication +Example +```golang +auth := context.WithValue(context.Background(), sw.ContextBasicAuth, sw.BasicAuth{ + UserName: "username", + Password: "password", +}) +r, err := client.Service.Operation(auth, args) +``` ## Author diff --git a/bindings/go/src/api/swagger.yaml b/bindings/go/src/api/swagger.yaml new file mode 100644 index 00000000..bf0ce4cd --- /dev/null +++ b/bindings/go/src/api/swagger.yaml @@ -0,0 +1,11734 @@ +--- +swagger: "2.0" +info: + description: "The API to the Cloudsmith Service" + version: "v1" + title: "Cloudsmith API" + termsOfService: "https://help.cloudsmith.io/docs/terms-and-conditions" + contact: + name: "Cloudsmith Support" + url: "https://help.cloudsmith.io" + email: "support@cloudsmith.io" + license: + name: "MIT" + url: "https://opensource.org/licenses/MIT" +host: "api.cloudsmith.io" +basePath: "/v1" +schemes: +- "https" +paths: + /badges/version/{owner}/{repo}/{package_format}/{package_name}/{package_version}/{package_identifiers}/: + get: + tags: + - "badges" + summary: "Get latest package version for a package or package group." + description: "Get latest package version for a package or package group." + operationId: "badges_version_list" + parameters: + - name: "owner" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Owner" + - name: "repo" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Repo" + - name: "package_format" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "PackageFormat" + - name: "package_name" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "PackageName" + - name: "package_version" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "PackageVersion" + - name: "package_identifiers" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "PackageIdentifiers" + - name: "badge_token" + in: "query" + description: "Badge token to authenticate for private packages" + required: false + type: "string" + x-exportParamName: "BadgeToken" + x-optionalDataType: "String" + - name: "cacheSeconds" + in: "query" + description: "Override the shields.io badge cacheSeconds value." + required: false + type: "string" + x-exportParamName: "CacheSeconds" + x-optionalDataType: "String" + - name: "color" + in: "query" + description: "Override the shields.io badge color value." + required: false + type: "string" + x-exportParamName: "Color" + x-optionalDataType: "String" + - name: "label" + in: "query" + description: "Override the shields.io badge label value." + required: false + type: "string" + x-exportParamName: "Label" + x-optionalDataType: "String" + - name: "labelColor" + in: "query" + description: "Override the shields.io badge labelColor value." + required: false + type: "string" + x-exportParamName: "LabelColor" + x-optionalDataType: "String" + - name: "logoColor" + in: "query" + description: "Override the shields.io badge logoColor value." + required: false + type: "string" + x-exportParamName: "LogoColor" + x-optionalDataType: "String" + - name: "logoWidth" + in: "query" + description: "Override the shields.io badge logoWidth value." + required: false + type: "string" + x-exportParamName: "LogoWidth" + x-optionalDataType: "String" + - name: "render" + in: "query" + description: "If true, badge will be rendered" + required: false + type: "boolean" + x-exportParamName: "Render" + x-optionalDataType: "Bool" + - name: "shields" + in: "query" + description: "If true, a shields response will be generated" + required: false + type: "boolean" + x-exportParamName: "Shields" + x-optionalDataType: "Bool" + - name: "show_latest" + in: "query" + description: "If true, for latest version badges a '(latest)' suffix is added" + required: false + type: "boolean" + x-exportParamName: "ShowLatest" + x-optionalDataType: "Bool" + - name: "style" + in: "query" + description: "Override the shields.io badge style value." + required: false + type: "string" + x-exportParamName: "Style" + x-optionalDataType: "String" + security: + - token: [] + - apikey: [] + - csrf_token: [] + responses: + "200": + description: "OK" + schema: {} + "400": + description: "Request could not be processed (see detail)" + schema: + $ref: "#/definitions/Status" + "422": + description: "Missing or invalid parameters (see detail)" + schema: + $ref: "#/definitions/Status" + /distros/: + get: + tags: + - "distros" + summary: "Get a list of all supported distributions." + description: "Get a list of all supported distributions." + operationId: "distros_list" + parameters: [] + security: + - token: [] + - apikey: [] + - csrf_token: [] + responses: + "200": + description: "Available package formats retrieved" + schema: + type: "array" + items: + $ref: "#/definitions/Distribution" + "400": + description: "Request could not be processed (see detail)" + schema: + $ref: "#/definitions/Status" + "422": + description: "Missing or invalid parameters (see detail)" + schema: + $ref: "#/definitions/Status" + /distros/{slug}/: + get: + tags: + - "distros" + summary: "View for viewing/listing distributions." + description: "View for viewing/listing distributions." + operationId: "distros_read" + parameters: + - name: "slug" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Slug" + security: + - token: [] + - apikey: [] + - csrf_token: [] + responses: + "200": + description: "OK" + schema: + $ref: "#/definitions/Distribution" + "400": + description: "Request could not be processed (see detail)" + schema: + $ref: "#/definitions/Status" + "422": + description: "Missing or invalid parameters (see detail)" + schema: + $ref: "#/definitions/Status" + /entitlements/{owner}/{repo}/: + get: + tags: + - "entitlements" + summary: "Get a list of all entitlements in a repository." + description: "Get a list of all entitlements in a repository." + operationId: "entitlements_list" + parameters: + - name: "owner" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Owner" + - name: "repo" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Repo" + - name: "page" + in: "query" + description: "A page number within the paginated result set." + required: false + type: "integer" + x-exportParamName: "Page" + x-optionalDataType: "Int32" + - name: "page_size" + in: "query" + description: "Number of results to return per page." + required: false + type: "integer" + x-exportParamName: "PageSize" + x-optionalDataType: "Int32" + - name: "show_tokens" + in: "query" + description: "Show entitlement token strings in results" + required: false + type: "boolean" + x-exportParamName: "ShowTokens" + x-optionalDataType: "Bool" + security: + - token: [] + - apikey: [] + - csrf_token: [] + responses: + "200": + description: "Retrieved the list of entitlement tokens" + schema: + type: "array" + items: + $ref: "#/definitions/RepositoryToken" + "400": + description: "Request could not be processed (see detail)" + schema: + $ref: "#/definitions/Status" + "404": + description: "Owner namespace or repository not found" + schema: + $ref: "#/definitions/Status" + "422": + description: "Missing or invalid parameters (see detail)" + schema: + $ref: "#/definitions/Status" + post: + tags: + - "entitlements" + summary: "Create a specific entitlement in a repository." + description: "Create a specific entitlement in a repository." + operationId: "entitlements_create" + consumes: + - "application/json" + parameters: + - name: "owner" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Owner" + - name: "repo" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Repo" + - name: "show_tokens" + in: "query" + description: "Show entitlement token strings in results" + required: false + type: "boolean" + x-exportParamName: "ShowTokens" + x-optionalDataType: "Bool" + - in: "body" + name: "data" + required: false + schema: + $ref: "#/definitions/EntitlementsCreate" + x-exportParamName: "Data" + security: + - token: [] + - apikey: [] + - csrf_token: [] + responses: + "200": + description: "Created the specified entitlement" + schema: + $ref: "#/definitions/RepositoryToken" + "400": + description: "Request could not be processed (see detail)" + schema: + $ref: "#/definitions/Status" + "404": + description: "Owner namespace or repository not found" + schema: + $ref: "#/definitions/Status" + "422": + description: "Missing or invalid parameters (see detail)" + schema: + $ref: "#/definitions/Status" + /entitlements/{owner}/{repo}/sync/: + post: + tags: + - "entitlements" + summary: "Synchronise tokens from a source repository." + description: "Synchronise tokens from a source repository." + operationId: "entitlements_sync" + consumes: + - "application/json" + parameters: + - name: "owner" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Owner" + - name: "repo" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Repo" + - name: "show_tokens" + in: "query" + description: "Show entitlement token strings in results" + required: false + type: "boolean" + x-exportParamName: "ShowTokens" + x-optionalDataType: "Bool" + - in: "body" + name: "data" + required: false + schema: + $ref: "#/definitions/EntitlementsSync" + x-exportParamName: "Data" + security: + - token: [] + - apikey: [] + - csrf_token: [] + responses: + "200": + description: "The tokens have been synchronised from the source repository" + schema: + $ref: "#/definitions/RepositoryTokenSync" + "400": + description: "Request could not be processed (see detail)" + schema: + $ref: "#/definitions/Status" + "404": + description: "Owner namespace or repository not found" + schema: + $ref: "#/definitions/Status" + "422": + description: "Missing or invalid parameters (see detail)" + schema: + $ref: "#/definitions/Status" + /entitlements/{owner}/{repo}/{identifier}/: + get: + tags: + - "entitlements" + summary: "Get a specific entitlement in a repository." + description: "Get a specific entitlement in a repository." + operationId: "entitlements_read" + parameters: + - name: "owner" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Owner" + - name: "repo" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Repo" + - name: "identifier" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Identifier" + - name: "show_tokens" + in: "query" + description: "Show entitlement token strings in results" + required: false + type: "boolean" + x-exportParamName: "ShowTokens" + x-optionalDataType: "Bool" + security: + - token: [] + - apikey: [] + - csrf_token: [] + responses: + "200": + description: "Retrieved the specified entitlement" + schema: + $ref: "#/definitions/RepositoryToken" + "400": + description: "Request could not be processed (see detail)" + schema: + $ref: "#/definitions/Status" + "404": + description: "Owner namespace or repository not found" + schema: + $ref: "#/definitions/Status" + "422": + description: "Missing or invalid parameters (see detail)" + schema: + $ref: "#/definitions/Status" + delete: + tags: + - "entitlements" + summary: "Delete a specific entitlement in a repository." + description: "Delete a specific entitlement in a repository." + operationId: "entitlements_delete" + parameters: + - name: "owner" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Owner" + - name: "repo" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Repo" + - name: "identifier" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Identifier" + security: + - token: [] + - apikey: [] + - csrf_token: [] + responses: + "204": + description: "Soft-deleted the specified entitlement token successfully" + "400": + description: "The entitlement cannot be deleted" + schema: + $ref: "#/definitions/Status" + "422": + description: "Missing or invalid parameters (see detail)" + schema: + $ref: "#/definitions/Status" + patch: + tags: + - "entitlements" + summary: "Update a specific entitlement in a repository." + description: "Update a specific entitlement in a repository." + operationId: "entitlements_partial_update" + consumes: + - "application/json" + parameters: + - name: "owner" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Owner" + - name: "repo" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Repo" + - name: "identifier" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Identifier" + - name: "show_tokens" + in: "query" + description: "Show entitlement token strings in results" + required: false + type: "boolean" + x-exportParamName: "ShowTokens" + x-optionalDataType: "Bool" + - in: "body" + name: "data" + required: false + schema: + $ref: "#/definitions/EntitlementsPartialUpdate" + x-exportParamName: "Data" + security: + - token: [] + - apikey: [] + - csrf_token: [] + responses: + "200": + description: "Updated the specified entitlement" + schema: + $ref: "#/definitions/RepositoryToken" + "400": + description: "The entitlement cannot be edited" + schema: + $ref: "#/definitions/Status" + "404": + description: "Owner namespace or repository not found" + schema: + $ref: "#/definitions/Status" + "422": + description: "Missing or invalid parameters (see detail)" + schema: + $ref: "#/definitions/Status" + /entitlements/{owner}/{repo}/{identifier}/disable/: + post: + tags: + - "entitlements" + summary: "Disable an entitlement token in a repository." + description: "Disable an entitlement token in a repository." + operationId: "entitlements_disable" + parameters: + - name: "owner" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Owner" + - name: "repo" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Repo" + - name: "identifier" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Identifier" + security: + - token: [] + - apikey: [] + - csrf_token: [] + responses: + "204": + description: "The entitlement token has been disabled" + "400": + description: "Request could not be processed (see detail)" + schema: + $ref: "#/definitions/Status" + "422": + description: "Missing or invalid parameters (see detail)" + schema: + $ref: "#/definitions/Status" + /entitlements/{owner}/{repo}/{identifier}/enable/: + post: + tags: + - "entitlements" + summary: "Enable an entitlement token in a repository." + description: "Enable an entitlement token in a repository." + operationId: "entitlements_enable" + parameters: + - name: "owner" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Owner" + - name: "repo" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Repo" + - name: "identifier" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Identifier" + security: + - token: [] + - apikey: [] + - csrf_token: [] + responses: + "204": + description: "The entitlement token has been enabled" + "400": + description: "Request could not be processed (see detail)" + schema: + $ref: "#/definitions/Status" + "422": + description: "Missing or invalid parameters (see detail)" + schema: + $ref: "#/definitions/Status" + /entitlements/{owner}/{repo}/{identifier}/refresh/: + post: + tags: + - "entitlements" + summary: "Refresh an entitlement token in a repository." + description: "Refresh an entitlement token in a repository." + operationId: "entitlements_refresh" + consumes: + - "application/json" + parameters: + - name: "owner" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Owner" + - name: "repo" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Repo" + - name: "identifier" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Identifier" + - name: "show_tokens" + in: "query" + description: "Show entitlement token strings in results" + required: false + type: "boolean" + x-exportParamName: "ShowTokens" + x-optionalDataType: "Bool" + - in: "body" + name: "data" + required: false + schema: + $ref: "#/definitions/EntitlementsRefresh" + x-exportParamName: "Data" + security: + - token: [] + - apikey: [] + - csrf_token: [] + responses: + "200": + description: "The entitlement token has been refreshed" + schema: + $ref: "#/definitions/RepositoryTokenRefresh" + "400": + description: "Request could not be processed (see detail)" + schema: + $ref: "#/definitions/Status" + "422": + description: "Missing or invalid parameters (see detail)" + schema: + $ref: "#/definitions/Status" + /entitlements/{owner}/{repo}/{identifier}/reset/: + post: + tags: + - "entitlements" + summary: "Reset the statistics for an entitlement token in a repository." + description: "Reset the statistics for an entitlement token in a repository." + operationId: "entitlements_reset" + parameters: + - name: "owner" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Owner" + - name: "repo" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Repo" + - name: "identifier" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Identifier" + - name: "show_tokens" + in: "query" + description: "Show entitlement token strings in results" + required: false + type: "boolean" + x-exportParamName: "ShowTokens" + x-optionalDataType: "Bool" + security: + - token: [] + - apikey: [] + - csrf_token: [] + responses: + "204": + description: "The entitlement token statistics have been reset" + "400": + description: "Request could not be processed (see detail)" + schema: + $ref: "#/definitions/Status" + "422": + description: "Missing or invalid parameters (see detail)" + schema: + $ref: "#/definitions/Status" + /files/{owner}/{repo}/: + post: + tags: + - "files" + summary: "Request URL(s) to upload new package file upload(s) to." + description: "Request URL(s) to upload new package file upload(s) to." + operationId: "files_create" + consumes: + - "application/json" + parameters: + - name: "owner" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Owner" + - name: "repo" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Repo" + - in: "body" + name: "data" + required: false + schema: + $ref: "#/definitions/FilesCreate" + x-exportParamName: "Data" + security: + - token: [] + - apikey: [] + - csrf_token: [] + responses: + "202": + description: "The upload request was accepted" + schema: + $ref: "#/definitions/PackageFileUpload" + "400": + description: "Request could not be processed (see detail)" + schema: + $ref: "#/definitions/Status" + "404": + description: "Namespace (owner) or repository not found" + schema: + $ref: "#/definitions/Status" + "422": + description: "Missing or invalid parameters (see detail)" + schema: + $ref: "#/definitions/Status" + /files/{owner}/{repo}/validate/: + post: + tags: + - "files" + summary: "Validate parameters used for create." + description: "Validate parameters used for create." + operationId: "files_validate" + consumes: + - "application/json" + parameters: + - name: "owner" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Owner" + - name: "repo" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Repo" + - in: "body" + name: "data" + required: false + schema: + $ref: "#/definitions/FilesValidate" + x-exportParamName: "Data" + security: + - token: [] + - apikey: [] + - csrf_token: [] + responses: + "204": + description: "Validation was successful, parameters are OK" + "400": + description: "Request could not be processed (see detail)" + schema: + $ref: "#/definitions/Status" + "404": + description: "Namespace (owner) or repository not found" + schema: + $ref: "#/definitions/Status" + "422": + description: "Missing or invalid parameters (see detail)" + schema: + $ref: "#/definitions/Status" + /files/{owner}/{repo}/{identifier}/abort/: + post: + tags: + - "files" + summary: "Abort a multipart file upload." + description: "Abort a multipart file upload." + operationId: "files_abort" + consumes: + - "application/json" + parameters: + - name: "owner" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Owner" + - name: "repo" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Repo" + - name: "identifier" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Identifier" + - in: "body" + name: "data" + required: false + schema: + $ref: "#/definitions/FilesAbort" + x-exportParamName: "Data" + security: + - token: [] + - apikey: [] + - csrf_token: [] + responses: + "204": + description: "The multipart upload was aborted successfully" + "400": + description: "The multipart upload could not be aborted" + schema: + $ref: "#/definitions/Status" + "404": + description: "Namespace (owner), repository or upload file not found" + schema: + $ref: "#/definitions/Status" + "422": + description: "Missing or invalid parameters (see detail)" + schema: + $ref: "#/definitions/Status" + /files/{owner}/{repo}/{identifier}/complete/: + post: + tags: + - "files" + summary: "Complete a multipart file upload." + description: "Complete a multipart file upload." + operationId: "files_complete" + consumes: + - "application/json" + parameters: + - name: "owner" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Owner" + - name: "repo" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Repo" + - name: "identifier" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Identifier" + - in: "body" + name: "data" + required: false + schema: + $ref: "#/definitions/FilesComplete" + x-exportParamName: "Data" + security: + - token: [] + - apikey: [] + - csrf_token: [] + responses: + "201": + description: "The multipart upload was completed successfully" + schema: + $ref: "#/definitions/PackageFileUpload" + "400": + description: "The multipart upload could not be completed" + schema: + $ref: "#/definitions/Status" + "404": + description: "Namespace (owner), repository or upload file not found" + schema: + $ref: "#/definitions/Status" + "422": + description: "Missing or invalid parameters (see detail)" + schema: + $ref: "#/definitions/Status" + /files/{owner}/{repo}/{identifier}/info/: + get: + tags: + - "files" + summary: "Get upload information for a multipart file upload." + description: "Get upload information for a multipart file upload." + operationId: "files_info" + parameters: + - name: "owner" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Owner" + - name: "repo" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Repo" + - name: "identifier" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Identifier" + security: + - token: [] + - apikey: [] + - csrf_token: [] + responses: + "200": + description: "Information for multipart uploaded retrieved successfully" + schema: + $ref: "#/definitions/PackageFilePartsUpload" + "400": + description: "The provided upload file was not a multipart upload" + schema: + $ref: "#/definitions/Status" + "404": + description: "Namespace (owner), repository or upload file not found" + schema: + $ref: "#/definitions/Status" + "422": + description: "Missing or invalid parameters (see detail)" + schema: + $ref: "#/definitions/Status" + /formats/: + get: + tags: + - "formats" + summary: "Get a list of all supported package formats." + description: "Get a list of all supported package formats." + operationId: "formats_list" + parameters: [] + security: + - token: [] + - apikey: [] + - csrf_token: [] + responses: + "200": + description: "Available package formats retrieved" + schema: + type: "array" + items: + $ref: "#/definitions/Format" + "400": + description: "Request could not be processed (see detail)" + schema: + $ref: "#/definitions/Status" + "422": + description: "Missing or invalid parameters (see detail)" + schema: + $ref: "#/definitions/Status" + /formats/{slug}/: + get: + tags: + - "formats" + summary: "Get a specific supported package format." + description: "Get a specific supported package format." + operationId: "formats_read" + parameters: + - name: "slug" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Slug" + security: + - token: [] + - apikey: [] + - csrf_token: [] + responses: + "200": + description: "OK" + schema: + $ref: "#/definitions/Format" + "400": + description: "Request could not be processed (see detail)" + schema: + $ref: "#/definitions/Status" + "422": + description: "Missing or invalid parameters (see detail)" + schema: + $ref: "#/definitions/Status" + /metrics/entitlements/{owner}/: + get: + tags: + - "metrics" + summary: "View for listing entitlement token metrics, across an account." + description: "View for listing entitlement token metrics, across an account." + operationId: "metrics_entitlements_list" + parameters: + - name: "owner" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Owner" + - name: "page" + in: "query" + description: "A page number within the paginated result set." + required: false + type: "integer" + x-exportParamName: "Page" + x-optionalDataType: "Int32" + - name: "page_size" + in: "query" + description: "Number of results to return per page." + required: false + type: "integer" + x-exportParamName: "PageSize" + x-optionalDataType: "Int32" + - name: "finish" + in: "query" + description: "Include metrics upto and including this UTC date or UTC datetime.\ + \ For example '2020-12-31' or '2021-12-13T00:00:00Z'." + required: false + type: "string" + x-exportParamName: "Finish" + x-optionalDataType: "String" + - name: "start" + in: "query" + description: "Include metrics from and including this UTC date or UTC datetime.\ + \ For example '2020-12-31' or '2021-12-13T00:00:00Z'." + required: false + type: "string" + x-exportParamName: "Start" + x-optionalDataType: "String" + - name: "tokens" + in: "query" + description: "A comma seperated list of tokens (slug perm) to include in the\ + \ results." + required: false + type: "string" + x-exportParamName: "Tokens" + x-optionalDataType: "String" + security: + - token: [] + - apikey: [] + - csrf_token: [] + responses: + "200": + description: "Retrieved the metrics for entitlements" + schema: + $ref: "#/definitions/EntitlementUsageMetrics" + "400": + description: "Request could not be processed (see detail)" + schema: + $ref: "#/definitions/Status" + "422": + description: "Missing or invalid parameters (see detail)" + schema: + $ref: "#/definitions/Status" + /metrics/entitlements/{owner}/{repo}/: + get: + tags: + - "metrics" + summary: "View for listing entitlement token metrics, for a repository." + description: "View for listing entitlement token metrics, for a repository." + operationId: "metrics_entitlements_list_0" + parameters: + - name: "owner" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Owner" + - name: "repo" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Repo" + - name: "page" + in: "query" + description: "A page number within the paginated result set." + required: false + type: "integer" + x-exportParamName: "Page" + x-optionalDataType: "Int32" + - name: "page_size" + in: "query" + description: "Number of results to return per page." + required: false + type: "integer" + x-exportParamName: "PageSize" + x-optionalDataType: "Int32" + - name: "finish" + in: "query" + description: "Include metrics upto and including this UTC date or UTC datetime.\ + \ For example '2020-12-31' or '2021-12-13T00:00:00Z'." + required: false + type: "string" + x-exportParamName: "Finish" + x-optionalDataType: "String" + - name: "start" + in: "query" + description: "Include metrics from and including this UTC date or UTC datetime.\ + \ For example '2020-12-31' or '2021-12-13T00:00:00Z'." + required: false + type: "string" + x-exportParamName: "Start" + x-optionalDataType: "String" + - name: "tokens" + in: "query" + description: "A comma seperated list of tokens (slug perm) to include in the\ + \ results." + required: false + type: "string" + x-exportParamName: "Tokens" + x-optionalDataType: "String" + security: + - token: [] + - apikey: [] + - csrf_token: [] + responses: + "200": + description: "Retrieved the metrics for entitlements" + schema: + $ref: "#/definitions/EntitlementUsageMetrics" + "400": + description: "Request could not be processed (see detail)" + schema: + $ref: "#/definitions/Status" + "422": + description: "Missing or invalid parameters (see detail)" + schema: + $ref: "#/definitions/Status" + /metrics/packages/{owner}/{repo}/: + get: + tags: + - "metrics" + summary: "View for listing package usage metrics, for a repository." + description: "View for listing package usage metrics, for a repository." + operationId: "metrics_packages_list" + parameters: + - name: "owner" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Owner" + - name: "repo" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Repo" + - name: "page" + in: "query" + description: "A page number within the paginated result set." + required: false + type: "integer" + x-exportParamName: "Page" + x-optionalDataType: "Int32" + - name: "page_size" + in: "query" + description: "Number of results to return per page." + required: false + type: "integer" + x-exportParamName: "PageSize" + x-optionalDataType: "Int32" + - name: "finish" + in: "query" + description: "Include metrics upto and including this UTC date or UTC datetime.\ + \ For example '2020-12-31' or '2021-12-13T00:00:00Z'." + required: false + type: "string" + x-exportParamName: "Finish" + x-optionalDataType: "String" + - name: "packages" + in: "query" + description: "A comma seperated list of packages (slug perm) to include in\ + \ the results." + required: false + type: "string" + x-exportParamName: "Packages" + x-optionalDataType: "String" + - name: "start" + in: "query" + description: "Include metrics from and including this UTC date or UTC datetime.\ + \ For example '2020-12-31' or '2021-12-13T00:00:00Z'." + required: false + type: "string" + x-exportParamName: "Start" + x-optionalDataType: "String" + security: + - token: [] + - apikey: [] + - csrf_token: [] + responses: + "200": + description: "Retrieved the metrics for packages" + schema: + $ref: "#/definitions/PackageUsageMetrics" + "400": + description: "Request could not be processed (see detail)" + schema: + $ref: "#/definitions/Status" + "422": + description: "Missing or invalid parameters (see detail)" + schema: + $ref: "#/definitions/Status" + /namespaces/: + get: + tags: + - "namespaces" + summary: "Get a list of all namespaces the user belongs to." + description: "Get a list of all namespaces the user belongs to." + operationId: "namespaces_list" + parameters: + - name: "page" + in: "query" + description: "A page number within the paginated result set." + required: false + type: "integer" + x-exportParamName: "Page" + x-optionalDataType: "Int32" + - name: "page_size" + in: "query" + description: "Number of results to return per page." + required: false + type: "integer" + x-exportParamName: "PageSize" + x-optionalDataType: "Int32" + security: + - token: [] + - apikey: [] + - csrf_token: [] + responses: + "200": + description: "OK" + schema: + type: "array" + items: + $ref: "#/definitions/Namespace" + "400": + description: "Request could not be processed (see detail)" + schema: + $ref: "#/definitions/Status" + "422": + description: "Missing or invalid parameters (see detail)" + schema: + $ref: "#/definitions/Status" + /namespaces/{slug}/: + get: + tags: + - "namespaces" + summary: "Views for working with namespaces." + description: "Views for working with namespaces." + operationId: "namespaces_read" + parameters: + - name: "slug" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Slug" + security: + - token: [] + - apikey: [] + - csrf_token: [] + responses: + "200": + description: "OK" + schema: + $ref: "#/definitions/Namespace" + "400": + description: "Request could not be processed (see detail)" + schema: + $ref: "#/definitions/Status" + "422": + description: "Missing or invalid parameters (see detail)" + schema: + $ref: "#/definitions/Status" + /orgs/: + get: + tags: + - "orgs" + summary: "Get a list of all the organizations you are associated with." + description: "Get a list of all the organizations you are associated with." + operationId: "orgs_list" + parameters: + - name: "page" + in: "query" + description: "A page number within the paginated result set." + required: false + type: "integer" + x-exportParamName: "Page" + x-optionalDataType: "Int32" + - name: "page_size" + in: "query" + description: "Number of results to return per page." + required: false + type: "integer" + x-exportParamName: "PageSize" + x-optionalDataType: "Int32" + security: + - token: [] + - apikey: [] + - csrf_token: [] + responses: + "200": + description: "OK" + schema: + type: "array" + items: + $ref: "#/definitions/Organization" + "400": + description: "Request could not be processed (see detail)" + schema: + $ref: "#/definitions/Status" + "422": + description: "Missing or invalid parameters (see detail)" + schema: + $ref: "#/definitions/Status" + /orgs/{org}/: + get: + tags: + - "orgs" + summary: "Get the details for the specific organization." + description: "Get the details for the specific organization." + operationId: "orgs_read" + parameters: + - name: "org" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Org" + security: + - token: [] + - apikey: [] + - csrf_token: [] + responses: + "200": + description: "OK" + schema: + $ref: "#/definitions/Organization" + "400": + description: "Request could not be processed (see detail)" + schema: + $ref: "#/definitions/Status" + "422": + description: "Missing or invalid parameters (see detail)" + schema: + $ref: "#/definitions/Status" + /orgs/{org}/members/: + get: + tags: + - "orgs" + summary: "Get the details for all organization members." + description: "Get the details for all organization members." + operationId: "orgs_members_list" + parameters: + - name: "org" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Org" + - name: "page" + in: "query" + description: "A page number within the paginated result set." + required: false + type: "integer" + x-exportParamName: "Page" + x-optionalDataType: "Int32" + - name: "page_size" + in: "query" + description: "Number of results to return per page." + required: false + type: "integer" + x-exportParamName: "PageSize" + x-optionalDataType: "Int32" + security: + - token: [] + - apikey: [] + - csrf_token: [] + responses: + "200": + description: "OK" + schema: + type: "array" + items: + $ref: "#/definitions/OrganizationMembership" + "400": + description: "Request could not be processed (see detail)" + schema: + $ref: "#/definitions/Status" + "422": + description: "Missing or invalid parameters (see detail)" + schema: + $ref: "#/definitions/Status" + /orgs/{org}/members/{member}/: + get: + tags: + - "orgs" + summary: "Get the details for a specific organization member." + description: "Get the details for a specific organization member." + operationId: "orgs_members_read" + parameters: + - name: "org" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Org" + - name: "member" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Member" + security: + - token: [] + - apikey: [] + - csrf_token: [] + responses: + "200": + description: "OK" + schema: + $ref: "#/definitions/OrganizationMembership" + "400": + description: "Request could not be processed (see detail)" + schema: + $ref: "#/definitions/Status" + "422": + description: "Missing or invalid parameters (see detail)" + schema: + $ref: "#/definitions/Status" + /orgs/{org}/members/{member}/remove/: + get: + tags: + - "orgs" + summary: "Removes a member from the organization." + description: "Removes a member from the organization." + operationId: "orgs_members_remove" + parameters: + - name: "org" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Org" + - name: "member" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Member" + security: + - token: [] + - apikey: [] + - csrf_token: [] + responses: + "200": + description: "OK" + schema: + $ref: "#/definitions/OrganizationMembership" + "400": + description: "Request could not be processed (see detail)" + schema: + $ref: "#/definitions/Status" + "422": + description: "Missing or invalid parameters (see detail)" + schema: + $ref: "#/definitions/Status" + /packages/{owner}/{repo}/: + get: + tags: + - "packages" + summary: "Get a list of all packages associated with repository." + description: "Get a list of all packages associated with repository." + operationId: "packages_list" + parameters: + - name: "owner" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Owner" + - name: "repo" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Repo" + - name: "page" + in: "query" + description: "A page number within the paginated result set." + required: false + type: "integer" + x-exportParamName: "Page" + x-optionalDataType: "Int32" + - name: "page_size" + in: "query" + description: "Number of results to return per page." + required: false + type: "integer" + x-exportParamName: "PageSize" + x-optionalDataType: "Int32" + - name: "query" + in: "query" + description: "A search term for querying names, filenames, versions, distributions,\ + \ architectures, formats or statuses of packages." + required: false + type: "string" + x-exportParamName: "Query" + x-optionalDataType: "String" + - name: "sort" + in: "query" + description: "A field for sorting objects in ascending or descending order." + required: false + type: "string" + x-exportParamName: "Sort" + x-optionalDataType: "String" + security: + - token: [] + - apikey: [] + - csrf_token: [] + responses: + "200": + description: "Retrieved the list of packages" + schema: + type: "array" + items: + $ref: "#/definitions/Package" + "400": + description: "Request could not be processed (see detail)" + schema: + $ref: "#/definitions/Status" + "422": + description: "Missing or invalid parameters (see detail)" + schema: + $ref: "#/definitions/Status" + /packages/{owner}/{repo}/upload/alpine/: + post: + tags: + - "packages" + summary: "Create a new Alpine package" + description: "Create a new Alpine package" + operationId: "packages_upload_alpine" + consumes: + - "application/json" + parameters: + - name: "owner" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Owner" + - name: "repo" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Repo" + - in: "body" + name: "data" + required: false + schema: + $ref: "#/definitions/PackagesUploadAlpine" + x-exportParamName: "Data" + security: + - token: [] + - apikey: [] + - csrf_token: [] + responses: + "201": + description: "Upload acknowledged and queued for synchronisation" + schema: + $ref: "#/definitions/AlpinePackageUpload" + "400": + description: "Request could not be processed (see detail)" + schema: + $ref: "#/definitions/Status" + "404": + description: "Namespace (owner) or repository not found" + schema: + $ref: "#/definitions/Status" + "422": + description: "Missing or invalid parameters (see detail)" + schema: + $ref: "#/definitions/Status" + /packages/{owner}/{repo}/upload/cargo/: + post: + tags: + - "packages" + summary: "Create a new Cargo package" + description: "Create a new Cargo package" + operationId: "packages_upload_cargo" + consumes: + - "application/json" + parameters: + - name: "owner" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Owner" + - name: "repo" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Repo" + - in: "body" + name: "data" + required: false + schema: + $ref: "#/definitions/PackagesUploadCargo" + x-exportParamName: "Data" + security: + - token: [] + - apikey: [] + - csrf_token: [] + responses: + "201": + description: "Upload acknowledged and queued for synchronisation" + schema: + $ref: "#/definitions/AlpinePackageUpload" + "400": + description: "Request could not be processed (see detail)" + schema: + $ref: "#/definitions/Status" + "404": + description: "Namespace (owner) or repository not found" + schema: + $ref: "#/definitions/Status" + "422": + description: "Missing or invalid parameters (see detail)" + schema: + $ref: "#/definitions/Status" + /packages/{owner}/{repo}/upload/cocoapods/: + post: + tags: + - "packages" + summary: "Create a new CocoaPods package" + description: "Create a new CocoaPods package" + operationId: "packages_upload_cocoapods" + consumes: + - "application/json" + parameters: + - name: "owner" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Owner" + - name: "repo" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Repo" + - in: "body" + name: "data" + required: false + schema: + $ref: "#/definitions/PackagesUploadCocoapods" + x-exportParamName: "Data" + security: + - token: [] + - apikey: [] + - csrf_token: [] + responses: + "201": + description: "Upload acknowledged and queued for synchronisation" + schema: + $ref: "#/definitions/AlpinePackageUpload" + "400": + description: "Request could not be processed (see detail)" + schema: + $ref: "#/definitions/Status" + "404": + description: "Namespace (owner) or repository not found" + schema: + $ref: "#/definitions/Status" + "422": + description: "Missing or invalid parameters (see detail)" + schema: + $ref: "#/definitions/Status" + /packages/{owner}/{repo}/upload/composer/: + post: + tags: + - "packages" + summary: "Create a new Composer package" + description: "Create a new Composer package" + operationId: "packages_upload_composer" + consumes: + - "application/json" + parameters: + - name: "owner" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Owner" + - name: "repo" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Repo" + - in: "body" + name: "data" + required: false + schema: + $ref: "#/definitions/PackagesUploadComposer" + x-exportParamName: "Data" + security: + - token: [] + - apikey: [] + - csrf_token: [] + responses: + "201": + description: "Upload acknowledged and queued for synchronisation" + schema: + $ref: "#/definitions/AlpinePackageUpload" + "400": + description: "Request could not be processed (see detail)" + schema: + $ref: "#/definitions/Status" + "404": + description: "Namespace (owner) or repository not found" + schema: + $ref: "#/definitions/Status" + "422": + description: "Missing or invalid parameters (see detail)" + schema: + $ref: "#/definitions/Status" + /packages/{owner}/{repo}/upload/conan/: + post: + tags: + - "packages" + summary: "Create a new Conan package" + description: "Create a new Conan package" + operationId: "packages_upload_conan" + consumes: + - "application/json" + parameters: + - name: "owner" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Owner" + - name: "repo" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Repo" + - in: "body" + name: "data" + required: false + schema: + $ref: "#/definitions/PackagesUploadConan" + x-exportParamName: "Data" + security: + - token: [] + - apikey: [] + - csrf_token: [] + responses: + "201": + description: "Upload acknowledged and queued for synchronisation" + schema: + $ref: "#/definitions/ConanPackageUpload" + "400": + description: "Request could not be processed (see detail)" + schema: + $ref: "#/definitions/Status" + "404": + description: "Namespace (owner) or repository not found" + schema: + $ref: "#/definitions/Status" + "422": + description: "Missing or invalid parameters (see detail)" + schema: + $ref: "#/definitions/Status" + /packages/{owner}/{repo}/upload/conda/: + post: + tags: + - "packages" + summary: "Create a new Conda package" + description: "Create a new Conda package" + operationId: "packages_upload_conda" + consumes: + - "application/json" + parameters: + - name: "owner" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Owner" + - name: "repo" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Repo" + - in: "body" + name: "data" + required: false + schema: + $ref: "#/definitions/PackagesUploadConda" + x-exportParamName: "Data" + security: + - token: [] + - apikey: [] + - csrf_token: [] + responses: + "201": + description: "Upload acknowledged and queued for synchronisation" + schema: + $ref: "#/definitions/AlpinePackageUpload" + "400": + description: "Request could not be processed (see detail)" + schema: + $ref: "#/definitions/Status" + "404": + description: "Namespace (owner) or repository not found" + schema: + $ref: "#/definitions/Status" + "422": + description: "Missing or invalid parameters (see detail)" + schema: + $ref: "#/definitions/Status" + /packages/{owner}/{repo}/upload/cran/: + post: + tags: + - "packages" + summary: "Create a new CRAN package" + description: "Create a new CRAN package" + operationId: "packages_upload_cran" + consumes: + - "application/json" + parameters: + - name: "owner" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Owner" + - name: "repo" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Repo" + - in: "body" + name: "data" + required: false + schema: + $ref: "#/definitions/PackagesUploadCran" + x-exportParamName: "Data" + security: + - token: [] + - apikey: [] + - csrf_token: [] + responses: + "201": + description: "Upload acknowledged and queued for synchronisation" + schema: + $ref: "#/definitions/AlpinePackageUpload" + "400": + description: "Request could not be processed (see detail)" + schema: + $ref: "#/definitions/Status" + "404": + description: "Namespace (owner) or repository not found" + schema: + $ref: "#/definitions/Status" + "422": + description: "Missing or invalid parameters (see detail)" + schema: + $ref: "#/definitions/Status" + /packages/{owner}/{repo}/upload/dart/: + post: + tags: + - "packages" + summary: "Create a new Dart package" + description: "Create a new Dart package" + operationId: "packages_upload_dart" + consumes: + - "application/json" + parameters: + - name: "owner" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Owner" + - name: "repo" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Repo" + - in: "body" + name: "data" + required: false + schema: + $ref: "#/definitions/PackagesUploadDart" + x-exportParamName: "Data" + security: + - token: [] + - apikey: [] + - csrf_token: [] + responses: + "201": + description: "Upload acknowledged and queued for synchronisation" + schema: + $ref: "#/definitions/AlpinePackageUpload" + "400": + description: "Request could not be processed (see detail)" + schema: + $ref: "#/definitions/Status" + "404": + description: "Namespace (owner) or repository not found" + schema: + $ref: "#/definitions/Status" + "422": + description: "Missing or invalid parameters (see detail)" + schema: + $ref: "#/definitions/Status" + /packages/{owner}/{repo}/upload/deb/: + post: + tags: + - "packages" + summary: "Create a new Debian package" + description: "Create a new Debian package" + operationId: "packages_upload_deb" + consumes: + - "application/json" + parameters: + - name: "owner" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Owner" + - name: "repo" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Repo" + - in: "body" + name: "data" + required: false + schema: + $ref: "#/definitions/PackagesUploadDeb" + x-exportParamName: "Data" + security: + - token: [] + - apikey: [] + - csrf_token: [] + responses: + "201": + description: "Upload acknowledged and queued for synchronisation" + schema: + $ref: "#/definitions/AlpinePackageUpload" + "400": + description: "Request could not be processed (see detail)" + schema: + $ref: "#/definitions/Status" + "404": + description: "Namespace (owner) or repository not found" + schema: + $ref: "#/definitions/Status" + "422": + description: "Missing or invalid parameters (see detail)" + schema: + $ref: "#/definitions/Status" + /packages/{owner}/{repo}/upload/docker/: + post: + tags: + - "packages" + summary: "Create a new Docker package" + description: "Create a new Docker package" + operationId: "packages_upload_docker" + consumes: + - "application/json" + parameters: + - name: "owner" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Owner" + - name: "repo" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Repo" + - in: "body" + name: "data" + required: false + schema: + $ref: "#/definitions/PackagesUploadDocker" + x-exportParamName: "Data" + security: + - token: [] + - apikey: [] + - csrf_token: [] + responses: + "201": + description: "Upload acknowledged and queued for synchronisation" + schema: + $ref: "#/definitions/AlpinePackageUpload" + "400": + description: "Request could not be processed (see detail)" + schema: + $ref: "#/definitions/Status" + "404": + description: "Namespace (owner) or repository not found" + schema: + $ref: "#/definitions/Status" + "422": + description: "Missing or invalid parameters (see detail)" + schema: + $ref: "#/definitions/Status" + /packages/{owner}/{repo}/upload/go/: + post: + tags: + - "packages" + summary: "Create a new Go package" + description: "Create a new Go package" + operationId: "packages_upload_go" + consumes: + - "application/json" + parameters: + - name: "owner" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Owner" + - name: "repo" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Repo" + - in: "body" + name: "data" + required: false + schema: + $ref: "#/definitions/PackagesUploadGo" + x-exportParamName: "Data" + security: + - token: [] + - apikey: [] + - csrf_token: [] + responses: + "201": + description: "Upload acknowledged and queued for synchronisation" + schema: + $ref: "#/definitions/AlpinePackageUpload" + "400": + description: "Request could not be processed (see detail)" + schema: + $ref: "#/definitions/Status" + "404": + description: "Namespace (owner) or repository not found" + schema: + $ref: "#/definitions/Status" + "422": + description: "Missing or invalid parameters (see detail)" + schema: + $ref: "#/definitions/Status" + /packages/{owner}/{repo}/upload/helm/: + post: + tags: + - "packages" + summary: "Create a new Helm package" + description: "Create a new Helm package" + operationId: "packages_upload_helm" + consumes: + - "application/json" + parameters: + - name: "owner" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Owner" + - name: "repo" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Repo" + - in: "body" + name: "data" + required: false + schema: + $ref: "#/definitions/PackagesUploadHelm" + x-exportParamName: "Data" + security: + - token: [] + - apikey: [] + - csrf_token: [] + responses: + "201": + description: "Upload acknowledged and queued for synchronisation" + schema: + $ref: "#/definitions/AlpinePackageUpload" + "400": + description: "Request could not be processed (see detail)" + schema: + $ref: "#/definitions/Status" + "404": + description: "Namespace (owner) or repository not found" + schema: + $ref: "#/definitions/Status" + "422": + description: "Missing or invalid parameters (see detail)" + schema: + $ref: "#/definitions/Status" + /packages/{owner}/{repo}/upload/luarocks/: + post: + tags: + - "packages" + summary: "Create a new LuaRocks package" + description: "Create a new LuaRocks package" + operationId: "packages_upload_luarocks" + consumes: + - "application/json" + parameters: + - name: "owner" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Owner" + - name: "repo" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Repo" + - in: "body" + name: "data" + required: false + schema: + $ref: "#/definitions/PackagesUploadLuarocks" + x-exportParamName: "Data" + security: + - token: [] + - apikey: [] + - csrf_token: [] + responses: + "201": + description: "Upload acknowledged and queued for synchronisation" + schema: + $ref: "#/definitions/AlpinePackageUpload" + "400": + description: "Request could not be processed (see detail)" + schema: + $ref: "#/definitions/Status" + "404": + description: "Namespace (owner) or repository not found" + schema: + $ref: "#/definitions/Status" + "422": + description: "Missing or invalid parameters (see detail)" + schema: + $ref: "#/definitions/Status" + /packages/{owner}/{repo}/upload/maven/: + post: + tags: + - "packages" + summary: "Create a new Maven package" + description: "Create a new Maven package" + operationId: "packages_upload_maven" + consumes: + - "application/json" + parameters: + - name: "owner" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Owner" + - name: "repo" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Repo" + - in: "body" + name: "data" + required: false + schema: + $ref: "#/definitions/PackagesUploadMaven" + x-exportParamName: "Data" + security: + - token: [] + - apikey: [] + - csrf_token: [] + responses: + "201": + description: "Upload acknowledged and queued for synchronisation" + schema: + $ref: "#/definitions/MavenPackageUpload" + "400": + description: "Request could not be processed (see detail)" + schema: + $ref: "#/definitions/Status" + "404": + description: "Namespace (owner) or repository not found" + schema: + $ref: "#/definitions/Status" + "422": + description: "Missing or invalid parameters (see detail)" + schema: + $ref: "#/definitions/Status" + /packages/{owner}/{repo}/upload/npm/: + post: + tags: + - "packages" + summary: "Create a new npm package" + description: "Create a new npm package" + operationId: "packages_upload_npm" + consumes: + - "application/json" + parameters: + - name: "owner" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Owner" + - name: "repo" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Repo" + - in: "body" + name: "data" + required: false + schema: + $ref: "#/definitions/PackagesUploadNpm" + x-exportParamName: "Data" + security: + - token: [] + - apikey: [] + - csrf_token: [] + responses: + "201": + description: "Upload acknowledged and queued for synchronisation" + schema: + $ref: "#/definitions/AlpinePackageUpload" + "400": + description: "Request could not be processed (see detail)" + schema: + $ref: "#/definitions/Status" + "404": + description: "Namespace (owner) or repository not found" + schema: + $ref: "#/definitions/Status" + "422": + description: "Missing or invalid parameters (see detail)" + schema: + $ref: "#/definitions/Status" + /packages/{owner}/{repo}/upload/nuget/: + post: + tags: + - "packages" + summary: "Create a new NuGet package" + description: "Create a new NuGet package" + operationId: "packages_upload_nuget" + consumes: + - "application/json" + parameters: + - name: "owner" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Owner" + - name: "repo" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Repo" + - in: "body" + name: "data" + required: false + schema: + $ref: "#/definitions/PackagesUploadNuget" + x-exportParamName: "Data" + security: + - token: [] + - apikey: [] + - csrf_token: [] + responses: + "201": + description: "Upload acknowledged and queued for synchronisation" + schema: + $ref: "#/definitions/AlpinePackageUpload" + "400": + description: "Request could not be processed (see detail)" + schema: + $ref: "#/definitions/Status" + "404": + description: "Namespace (owner) or repository not found" + schema: + $ref: "#/definitions/Status" + "422": + description: "Missing or invalid parameters (see detail)" + schema: + $ref: "#/definitions/Status" + /packages/{owner}/{repo}/upload/p2/: + post: + tags: + - "packages" + summary: "Create a new P2 package" + description: "Create a new P2 package" + operationId: "packages_upload_p2" + consumes: + - "application/json" + parameters: + - name: "owner" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Owner" + - name: "repo" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Repo" + - in: "body" + name: "data" + required: false + schema: + $ref: "#/definitions/PackagesUploadP2" + x-exportParamName: "Data" + security: + - token: [] + - apikey: [] + - csrf_token: [] + responses: + "201": + description: "Upload acknowledged and queued for synchronisation" + schema: + $ref: "#/definitions/AlpinePackageUpload" + "400": + description: "Request could not be processed (see detail)" + schema: + $ref: "#/definitions/Status" + "404": + description: "Namespace (owner) or repository not found" + schema: + $ref: "#/definitions/Status" + "422": + description: "Missing or invalid parameters (see detail)" + schema: + $ref: "#/definitions/Status" + /packages/{owner}/{repo}/upload/python/: + post: + tags: + - "packages" + summary: "Create a new Python package" + description: "Create a new Python package" + operationId: "packages_upload_python" + consumes: + - "application/json" + parameters: + - name: "owner" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Owner" + - name: "repo" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Repo" + - in: "body" + name: "data" + required: false + schema: + $ref: "#/definitions/PackagesUploadPython" + x-exportParamName: "Data" + security: + - token: [] + - apikey: [] + - csrf_token: [] + responses: + "201": + description: "Upload acknowledged and queued for synchronisation" + schema: + $ref: "#/definitions/AlpinePackageUpload" + "400": + description: "Request could not be processed (see detail)" + schema: + $ref: "#/definitions/Status" + "404": + description: "Namespace (owner) or repository not found" + schema: + $ref: "#/definitions/Status" + "422": + description: "Missing or invalid parameters (see detail)" + schema: + $ref: "#/definitions/Status" + /packages/{owner}/{repo}/upload/raw/: + post: + tags: + - "packages" + summary: "Create a new Raw package" + description: "Create a new Raw package" + operationId: "packages_upload_raw" + consumes: + - "application/json" + parameters: + - name: "owner" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Owner" + - name: "repo" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Repo" + - in: "body" + name: "data" + required: false + schema: + $ref: "#/definitions/PackagesUploadRaw" + x-exportParamName: "Data" + security: + - token: [] + - apikey: [] + - csrf_token: [] + responses: + "201": + description: "Upload acknowledged and queued for synchronisation" + schema: + $ref: "#/definitions/RawPackageUpload" + "400": + description: "Request could not be processed (see detail)" + schema: + $ref: "#/definitions/Status" + "404": + description: "Namespace (owner) or repository not found" + schema: + $ref: "#/definitions/Status" + "422": + description: "Missing or invalid parameters (see detail)" + schema: + $ref: "#/definitions/Status" + /packages/{owner}/{repo}/upload/rpm/: + post: + tags: + - "packages" + summary: "Create a new RedHat package" + description: "Create a new RedHat package" + operationId: "packages_upload_rpm" + consumes: + - "application/json" + parameters: + - name: "owner" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Owner" + - name: "repo" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Repo" + - in: "body" + name: "data" + required: false + schema: + $ref: "#/definitions/PackagesUploadRpm" + x-exportParamName: "Data" + security: + - token: [] + - apikey: [] + - csrf_token: [] + responses: + "201": + description: "Upload acknowledged and queued for synchronisation" + schema: + $ref: "#/definitions/AlpinePackageUpload" + "400": + description: "Request could not be processed (see detail)" + schema: + $ref: "#/definitions/Status" + "404": + description: "Namespace (owner) or repository not found" + schema: + $ref: "#/definitions/Status" + "422": + description: "Missing or invalid parameters (see detail)" + schema: + $ref: "#/definitions/Status" + /packages/{owner}/{repo}/upload/ruby/: + post: + tags: + - "packages" + summary: "Create a new Ruby package" + description: "Create a new Ruby package" + operationId: "packages_upload_ruby" + consumes: + - "application/json" + parameters: + - name: "owner" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Owner" + - name: "repo" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Repo" + - in: "body" + name: "data" + required: false + schema: + $ref: "#/definitions/PackagesUploadRuby" + x-exportParamName: "Data" + security: + - token: [] + - apikey: [] + - csrf_token: [] + responses: + "201": + description: "Upload acknowledged and queued for synchronisation" + schema: + $ref: "#/definitions/AlpinePackageUpload" + "400": + description: "Request could not be processed (see detail)" + schema: + $ref: "#/definitions/Status" + "404": + description: "Namespace (owner) or repository not found" + schema: + $ref: "#/definitions/Status" + "422": + description: "Missing or invalid parameters (see detail)" + schema: + $ref: "#/definitions/Status" + /packages/{owner}/{repo}/upload/terraform/: + post: + tags: + - "packages" + summary: "Create a new Terraform package" + description: "Create a new Terraform package" + operationId: "packages_upload_terraform" + consumes: + - "application/json" + parameters: + - name: "owner" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Owner" + - name: "repo" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Repo" + - in: "body" + name: "data" + required: false + schema: + $ref: "#/definitions/PackagesUploadTerraform" + x-exportParamName: "Data" + security: + - token: [] + - apikey: [] + - csrf_token: [] + responses: + "201": + description: "Upload acknowledged and queued for synchronisation" + schema: + $ref: "#/definitions/AlpinePackageUpload" + "400": + description: "Request could not be processed (see detail)" + schema: + $ref: "#/definitions/Status" + "404": + description: "Namespace (owner) or repository not found" + schema: + $ref: "#/definitions/Status" + "422": + description: "Missing or invalid parameters (see detail)" + schema: + $ref: "#/definitions/Status" + /packages/{owner}/{repo}/upload/vagrant/: + post: + tags: + - "packages" + summary: "Create a new Vagrant package" + description: "Create a new Vagrant package" + operationId: "packages_upload_vagrant" + consumes: + - "application/json" + parameters: + - name: "owner" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Owner" + - name: "repo" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Repo" + - in: "body" + name: "data" + required: false + schema: + $ref: "#/definitions/PackagesUploadVagrant" + x-exportParamName: "Data" + security: + - token: [] + - apikey: [] + - csrf_token: [] + responses: + "201": + description: "Upload acknowledged and queued for synchronisation" + schema: + $ref: "#/definitions/VagrantPackageUpload" + "400": + description: "Request could not be processed (see detail)" + schema: + $ref: "#/definitions/Status" + "404": + description: "Namespace (owner) or repository not found" + schema: + $ref: "#/definitions/Status" + "422": + description: "Missing or invalid parameters (see detail)" + schema: + $ref: "#/definitions/Status" + /packages/{owner}/{repo}/validate-upload/alpine/: + post: + tags: + - "packages" + summary: "Validate parameters for create Alpine package" + description: "Validate parameters for create Alpine package" + operationId: "packages_validate-upload_alpine" + consumes: + - "application/json" + parameters: + - name: "owner" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Owner" + - name: "repo" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Repo" + - in: "body" + name: "data" + required: false + schema: + $ref: "#/definitions/PackagesValidateuploadAlpine" + x-exportParamName: "Data" + security: + - token: [] + - apikey: [] + - csrf_token: [] + responses: + "204": + description: "Validation was successful, parameters are OK" + "400": + description: "Request could not be processed (see detail)" + schema: + $ref: "#/definitions/Status" + "404": + description: "Namespace (owner) or repository not found" + schema: + $ref: "#/definitions/Status" + "422": + description: "Missing or invalid parameters (see detail)" + schema: + $ref: "#/definitions/Status" + /packages/{owner}/{repo}/validate-upload/cargo/: + post: + tags: + - "packages" + summary: "Validate parameters for create Cargo package" + description: "Validate parameters for create Cargo package" + operationId: "packages_validate-upload_cargo" + consumes: + - "application/json" + parameters: + - name: "owner" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Owner" + - name: "repo" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Repo" + - in: "body" + name: "data" + required: false + schema: + $ref: "#/definitions/PackagesValidateuploadCargo" + x-exportParamName: "Data" + security: + - token: [] + - apikey: [] + - csrf_token: [] + responses: + "204": + description: "Validation was successful, parameters are OK" + "400": + description: "Request could not be processed (see detail)" + schema: + $ref: "#/definitions/Status" + "404": + description: "Namespace (owner) or repository not found" + schema: + $ref: "#/definitions/Status" + "422": + description: "Missing or invalid parameters (see detail)" + schema: + $ref: "#/definitions/Status" + /packages/{owner}/{repo}/validate-upload/cocoapods/: + post: + tags: + - "packages" + summary: "Validate parameters for create CocoaPods package" + description: "Validate parameters for create CocoaPods package" + operationId: "packages_validate-upload_cocoapods" + consumes: + - "application/json" + parameters: + - name: "owner" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Owner" + - name: "repo" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Repo" + - in: "body" + name: "data" + required: false + schema: + $ref: "#/definitions/PackagesValidateuploadCocoapods" + x-exportParamName: "Data" + security: + - token: [] + - apikey: [] + - csrf_token: [] + responses: + "204": + description: "Validation was successful, parameters are OK" + "400": + description: "Request could not be processed (see detail)" + schema: + $ref: "#/definitions/Status" + "404": + description: "Namespace (owner) or repository not found" + schema: + $ref: "#/definitions/Status" + "422": + description: "Missing or invalid parameters (see detail)" + schema: + $ref: "#/definitions/Status" + /packages/{owner}/{repo}/validate-upload/composer/: + post: + tags: + - "packages" + summary: "Validate parameters for create Composer package" + description: "Validate parameters for create Composer package" + operationId: "packages_validate-upload_composer" + consumes: + - "application/json" + parameters: + - name: "owner" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Owner" + - name: "repo" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Repo" + - in: "body" + name: "data" + required: false + schema: + $ref: "#/definitions/PackagesValidateuploadComposer" + x-exportParamName: "Data" + security: + - token: [] + - apikey: [] + - csrf_token: [] + responses: + "204": + description: "Validation was successful, parameters are OK" + "400": + description: "Request could not be processed (see detail)" + schema: + $ref: "#/definitions/Status" + "404": + description: "Namespace (owner) or repository not found" + schema: + $ref: "#/definitions/Status" + "422": + description: "Missing or invalid parameters (see detail)" + schema: + $ref: "#/definitions/Status" + /packages/{owner}/{repo}/validate-upload/conan/: + post: + tags: + - "packages" + summary: "Validate parameters for create Conan package" + description: "Validate parameters for create Conan package" + operationId: "packages_validate-upload_conan" + consumes: + - "application/json" + parameters: + - name: "owner" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Owner" + - name: "repo" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Repo" + - in: "body" + name: "data" + required: false + schema: + $ref: "#/definitions/PackagesValidateuploadConan" + x-exportParamName: "Data" + security: + - token: [] + - apikey: [] + - csrf_token: [] + responses: + "204": + description: "Validation was successful, parameters are OK" + "400": + description: "Request could not be processed (see detail)" + schema: + $ref: "#/definitions/Status" + "404": + description: "Namespace (owner) or repository not found" + schema: + $ref: "#/definitions/Status" + "422": + description: "Missing or invalid parameters (see detail)" + schema: + $ref: "#/definitions/Status" + /packages/{owner}/{repo}/validate-upload/conda/: + post: + tags: + - "packages" + summary: "Validate parameters for create Conda package" + description: "Validate parameters for create Conda package" + operationId: "packages_validate-upload_conda" + consumes: + - "application/json" + parameters: + - name: "owner" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Owner" + - name: "repo" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Repo" + - in: "body" + name: "data" + required: false + schema: + $ref: "#/definitions/PackagesValidateuploadConda" + x-exportParamName: "Data" + security: + - token: [] + - apikey: [] + - csrf_token: [] + responses: + "204": + description: "Validation was successful, parameters are OK" + "400": + description: "Request could not be processed (see detail)" + schema: + $ref: "#/definitions/Status" + "404": + description: "Namespace (owner) or repository not found" + schema: + $ref: "#/definitions/Status" + "422": + description: "Missing or invalid parameters (see detail)" + schema: + $ref: "#/definitions/Status" + /packages/{owner}/{repo}/validate-upload/cran/: + post: + tags: + - "packages" + summary: "Validate parameters for create CRAN package" + description: "Validate parameters for create CRAN package" + operationId: "packages_validate-upload_cran" + consumes: + - "application/json" + parameters: + - name: "owner" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Owner" + - name: "repo" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Repo" + - in: "body" + name: "data" + required: false + schema: + $ref: "#/definitions/PackagesValidateuploadCran" + x-exportParamName: "Data" + security: + - token: [] + - apikey: [] + - csrf_token: [] + responses: + "204": + description: "Validation was successful, parameters are OK" + "400": + description: "Request could not be processed (see detail)" + schema: + $ref: "#/definitions/Status" + "404": + description: "Namespace (owner) or repository not found" + schema: + $ref: "#/definitions/Status" + "422": + description: "Missing or invalid parameters (see detail)" + schema: + $ref: "#/definitions/Status" + /packages/{owner}/{repo}/validate-upload/dart/: + post: + tags: + - "packages" + summary: "Validate parameters for create Dart package" + description: "Validate parameters for create Dart package" + operationId: "packages_validate-upload_dart" + consumes: + - "application/json" + parameters: + - name: "owner" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Owner" + - name: "repo" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Repo" + - in: "body" + name: "data" + required: false + schema: + $ref: "#/definitions/PackagesValidateuploadDart" + x-exportParamName: "Data" + security: + - token: [] + - apikey: [] + - csrf_token: [] + responses: + "204": + description: "Validation was successful, parameters are OK" + "400": + description: "Request could not be processed (see detail)" + schema: + $ref: "#/definitions/Status" + "404": + description: "Namespace (owner) or repository not found" + schema: + $ref: "#/definitions/Status" + "422": + description: "Missing or invalid parameters (see detail)" + schema: + $ref: "#/definitions/Status" + /packages/{owner}/{repo}/validate-upload/deb/: + post: + tags: + - "packages" + summary: "Validate parameters for create Debian package" + description: "Validate parameters for create Debian package" + operationId: "packages_validate-upload_deb" + consumes: + - "application/json" + parameters: + - name: "owner" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Owner" + - name: "repo" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Repo" + - in: "body" + name: "data" + required: false + schema: + $ref: "#/definitions/PackagesValidateuploadDeb" + x-exportParamName: "Data" + security: + - token: [] + - apikey: [] + - csrf_token: [] + responses: + "204": + description: "Validation was successful, parameters are OK" + "400": + description: "Request could not be processed (see detail)" + schema: + $ref: "#/definitions/Status" + "404": + description: "Namespace (owner) or repository not found" + schema: + $ref: "#/definitions/Status" + "422": + description: "Missing or invalid parameters (see detail)" + schema: + $ref: "#/definitions/Status" + /packages/{owner}/{repo}/validate-upload/docker/: + post: + tags: + - "packages" + summary: "Validate parameters for create Docker package" + description: "Validate parameters for create Docker package" + operationId: "packages_validate-upload_docker" + consumes: + - "application/json" + parameters: + - name: "owner" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Owner" + - name: "repo" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Repo" + - in: "body" + name: "data" + required: false + schema: + $ref: "#/definitions/PackagesValidateuploadDocker" + x-exportParamName: "Data" + security: + - token: [] + - apikey: [] + - csrf_token: [] + responses: + "204": + description: "Validation was successful, parameters are OK" + "400": + description: "Request could not be processed (see detail)" + schema: + $ref: "#/definitions/Status" + "404": + description: "Namespace (owner) or repository not found" + schema: + $ref: "#/definitions/Status" + "422": + description: "Missing or invalid parameters (see detail)" + schema: + $ref: "#/definitions/Status" + /packages/{owner}/{repo}/validate-upload/go/: + post: + tags: + - "packages" + summary: "Validate parameters for create Go package" + description: "Validate parameters for create Go package" + operationId: "packages_validate-upload_go" + consumes: + - "application/json" + parameters: + - name: "owner" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Owner" + - name: "repo" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Repo" + - in: "body" + name: "data" + required: false + schema: + $ref: "#/definitions/PackagesValidateuploadGo" + x-exportParamName: "Data" + security: + - token: [] + - apikey: [] + - csrf_token: [] + responses: + "204": + description: "Validation was successful, parameters are OK" + "400": + description: "Request could not be processed (see detail)" + schema: + $ref: "#/definitions/Status" + "404": + description: "Namespace (owner) or repository not found" + schema: + $ref: "#/definitions/Status" + "422": + description: "Missing or invalid parameters (see detail)" + schema: + $ref: "#/definitions/Status" + /packages/{owner}/{repo}/validate-upload/helm/: + post: + tags: + - "packages" + summary: "Validate parameters for create Helm package" + description: "Validate parameters for create Helm package" + operationId: "packages_validate-upload_helm" + consumes: + - "application/json" + parameters: + - name: "owner" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Owner" + - name: "repo" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Repo" + - in: "body" + name: "data" + required: false + schema: + $ref: "#/definitions/PackagesValidateuploadHelm" + x-exportParamName: "Data" + security: + - token: [] + - apikey: [] + - csrf_token: [] + responses: + "204": + description: "Validation was successful, parameters are OK" + "400": + description: "Request could not be processed (see detail)" + schema: + $ref: "#/definitions/Status" + "404": + description: "Namespace (owner) or repository not found" + schema: + $ref: "#/definitions/Status" + "422": + description: "Missing or invalid parameters (see detail)" + schema: + $ref: "#/definitions/Status" + /packages/{owner}/{repo}/validate-upload/luarocks/: + post: + tags: + - "packages" + summary: "Validate parameters for create LuaRocks package" + description: "Validate parameters for create LuaRocks package" + operationId: "packages_validate-upload_luarocks" + consumes: + - "application/json" + parameters: + - name: "owner" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Owner" + - name: "repo" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Repo" + - in: "body" + name: "data" + required: false + schema: + $ref: "#/definitions/PackagesValidateuploadLuarocks" + x-exportParamName: "Data" + security: + - token: [] + - apikey: [] + - csrf_token: [] + responses: + "204": + description: "Validation was successful, parameters are OK" + "400": + description: "Request could not be processed (see detail)" + schema: + $ref: "#/definitions/Status" + "404": + description: "Namespace (owner) or repository not found" + schema: + $ref: "#/definitions/Status" + "422": + description: "Missing or invalid parameters (see detail)" + schema: + $ref: "#/definitions/Status" + /packages/{owner}/{repo}/validate-upload/maven/: + post: + tags: + - "packages" + summary: "Validate parameters for create Maven package" + description: "Validate parameters for create Maven package" + operationId: "packages_validate-upload_maven" + consumes: + - "application/json" + parameters: + - name: "owner" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Owner" + - name: "repo" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Repo" + - in: "body" + name: "data" + required: false + schema: + $ref: "#/definitions/PackagesValidateuploadMaven" + x-exportParamName: "Data" + security: + - token: [] + - apikey: [] + - csrf_token: [] + responses: + "204": + description: "Validation was successful, parameters are OK" + "400": + description: "Request could not be processed (see detail)" + schema: + $ref: "#/definitions/Status" + "404": + description: "Namespace (owner) or repository not found" + schema: + $ref: "#/definitions/Status" + "422": + description: "Missing or invalid parameters (see detail)" + schema: + $ref: "#/definitions/Status" + /packages/{owner}/{repo}/validate-upload/npm/: + post: + tags: + - "packages" + summary: "Validate parameters for create npm package" + description: "Validate parameters for create npm package" + operationId: "packages_validate-upload_npm" + consumes: + - "application/json" + parameters: + - name: "owner" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Owner" + - name: "repo" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Repo" + - in: "body" + name: "data" + required: false + schema: + $ref: "#/definitions/PackagesValidateuploadNpm" + x-exportParamName: "Data" + security: + - token: [] + - apikey: [] + - csrf_token: [] + responses: + "204": + description: "Validation was successful, parameters are OK" + "400": + description: "Request could not be processed (see detail)" + schema: + $ref: "#/definitions/Status" + "404": + description: "Namespace (owner) or repository not found" + schema: + $ref: "#/definitions/Status" + "422": + description: "Missing or invalid parameters (see detail)" + schema: + $ref: "#/definitions/Status" + /packages/{owner}/{repo}/validate-upload/nuget/: + post: + tags: + - "packages" + summary: "Validate parameters for create NuGet package" + description: "Validate parameters for create NuGet package" + operationId: "packages_validate-upload_nuget" + consumes: + - "application/json" + parameters: + - name: "owner" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Owner" + - name: "repo" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Repo" + - in: "body" + name: "data" + required: false + schema: + $ref: "#/definitions/PackagesValidateuploadNuget" + x-exportParamName: "Data" + security: + - token: [] + - apikey: [] + - csrf_token: [] + responses: + "204": + description: "Validation was successful, parameters are OK" + "400": + description: "Request could not be processed (see detail)" + schema: + $ref: "#/definitions/Status" + "404": + description: "Namespace (owner) or repository not found" + schema: + $ref: "#/definitions/Status" + "422": + description: "Missing or invalid parameters (see detail)" + schema: + $ref: "#/definitions/Status" + /packages/{owner}/{repo}/validate-upload/p2/: + post: + tags: + - "packages" + summary: "Validate parameters for create P2 package" + description: "Validate parameters for create P2 package" + operationId: "packages_validate-upload_p2" + consumes: + - "application/json" + parameters: + - name: "owner" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Owner" + - name: "repo" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Repo" + - in: "body" + name: "data" + required: false + schema: + $ref: "#/definitions/PackagesValidateuploadP2" + x-exportParamName: "Data" + security: + - token: [] + - apikey: [] + - csrf_token: [] + responses: + "204": + description: "Validation was successful, parameters are OK" + "400": + description: "Request could not be processed (see detail)" + schema: + $ref: "#/definitions/Status" + "404": + description: "Namespace (owner) or repository not found" + schema: + $ref: "#/definitions/Status" + "422": + description: "Missing or invalid parameters (see detail)" + schema: + $ref: "#/definitions/Status" + /packages/{owner}/{repo}/validate-upload/python/: + post: + tags: + - "packages" + summary: "Validate parameters for create Python package" + description: "Validate parameters for create Python package" + operationId: "packages_validate-upload_python" + consumes: + - "application/json" + parameters: + - name: "owner" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Owner" + - name: "repo" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Repo" + - in: "body" + name: "data" + required: false + schema: + $ref: "#/definitions/PackagesValidateuploadPython" + x-exportParamName: "Data" + security: + - token: [] + - apikey: [] + - csrf_token: [] + responses: + "204": + description: "Validation was successful, parameters are OK" + "400": + description: "Request could not be processed (see detail)" + schema: + $ref: "#/definitions/Status" + "404": + description: "Namespace (owner) or repository not found" + schema: + $ref: "#/definitions/Status" + "422": + description: "Missing or invalid parameters (see detail)" + schema: + $ref: "#/definitions/Status" + /packages/{owner}/{repo}/validate-upload/raw/: + post: + tags: + - "packages" + summary: "Validate parameters for create Raw package" + description: "Validate parameters for create Raw package" + operationId: "packages_validate-upload_raw" + consumes: + - "application/json" + parameters: + - name: "owner" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Owner" + - name: "repo" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Repo" + - in: "body" + name: "data" + required: false + schema: + $ref: "#/definitions/PackagesValidateuploadRaw" + x-exportParamName: "Data" + security: + - token: [] + - apikey: [] + - csrf_token: [] + responses: + "204": + description: "Validation was successful, parameters are OK" + "400": + description: "Request could not be processed (see detail)" + schema: + $ref: "#/definitions/Status" + "404": + description: "Namespace (owner) or repository not found" + schema: + $ref: "#/definitions/Status" + "422": + description: "Missing or invalid parameters (see detail)" + schema: + $ref: "#/definitions/Status" + /packages/{owner}/{repo}/validate-upload/rpm/: + post: + tags: + - "packages" + summary: "Validate parameters for create RedHat package" + description: "Validate parameters for create RedHat package" + operationId: "packages_validate-upload_rpm" + consumes: + - "application/json" + parameters: + - name: "owner" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Owner" + - name: "repo" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Repo" + - in: "body" + name: "data" + required: false + schema: + $ref: "#/definitions/PackagesValidateuploadRpm" + x-exportParamName: "Data" + security: + - token: [] + - apikey: [] + - csrf_token: [] + responses: + "204": + description: "Validation was successful, parameters are OK" + "400": + description: "Request could not be processed (see detail)" + schema: + $ref: "#/definitions/Status" + "404": + description: "Namespace (owner) or repository not found" + schema: + $ref: "#/definitions/Status" + "422": + description: "Missing or invalid parameters (see detail)" + schema: + $ref: "#/definitions/Status" + /packages/{owner}/{repo}/validate-upload/ruby/: + post: + tags: + - "packages" + summary: "Validate parameters for create Ruby package" + description: "Validate parameters for create Ruby package" + operationId: "packages_validate-upload_ruby" + consumes: + - "application/json" + parameters: + - name: "owner" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Owner" + - name: "repo" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Repo" + - in: "body" + name: "data" + required: false + schema: + $ref: "#/definitions/PackagesValidateuploadRuby" + x-exportParamName: "Data" + security: + - token: [] + - apikey: [] + - csrf_token: [] + responses: + "204": + description: "Validation was successful, parameters are OK" + "400": + description: "Request could not be processed (see detail)" + schema: + $ref: "#/definitions/Status" + "404": + description: "Namespace (owner) or repository not found" + schema: + $ref: "#/definitions/Status" + "422": + description: "Missing or invalid parameters (see detail)" + schema: + $ref: "#/definitions/Status" + /packages/{owner}/{repo}/validate-upload/terraform/: + post: + tags: + - "packages" + summary: "Validate parameters for create Terraform package" + description: "Validate parameters for create Terraform package" + operationId: "packages_validate-upload_terraform" + consumes: + - "application/json" + parameters: + - name: "owner" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Owner" + - name: "repo" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Repo" + - in: "body" + name: "data" + required: false + schema: + $ref: "#/definitions/PackagesValidateuploadTerraform" + x-exportParamName: "Data" + security: + - token: [] + - apikey: [] + - csrf_token: [] + responses: + "204": + description: "Validation was successful, parameters are OK" + "400": + description: "Request could not be processed (see detail)" + schema: + $ref: "#/definitions/Status" + "404": + description: "Namespace (owner) or repository not found" + schema: + $ref: "#/definitions/Status" + "422": + description: "Missing or invalid parameters (see detail)" + schema: + $ref: "#/definitions/Status" + /packages/{owner}/{repo}/validate-upload/vagrant/: + post: + tags: + - "packages" + summary: "Validate parameters for create Vagrant package" + description: "Validate parameters for create Vagrant package" + operationId: "packages_validate-upload_vagrant" + consumes: + - "application/json" + parameters: + - name: "owner" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Owner" + - name: "repo" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Repo" + - in: "body" + name: "data" + required: false + schema: + $ref: "#/definitions/PackagesValidateuploadVagrant" + x-exportParamName: "Data" + security: + - token: [] + - apikey: [] + - csrf_token: [] + responses: + "204": + description: "Validation was successful, parameters are OK" + "400": + description: "Request could not be processed (see detail)" + schema: + $ref: "#/definitions/Status" + "404": + description: "Namespace (owner) or repository not found" + schema: + $ref: "#/definitions/Status" + "422": + description: "Missing or invalid parameters (see detail)" + schema: + $ref: "#/definitions/Status" + /packages/{owner}/{repo}/{identifier}/: + get: + tags: + - "packages" + summary: "Get a specific package in a repository." + description: "Get a specific package in a repository." + operationId: "packages_read" + parameters: + - name: "owner" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Owner" + - name: "repo" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Repo" + - name: "identifier" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Identifier" + security: + - token: [] + - apikey: [] + - csrf_token: [] + responses: + "200": + description: "Retrieved the specified package successfully" + schema: + $ref: "#/definitions/Package" + "400": + description: "Request could not be processed (see detail)" + schema: + $ref: "#/definitions/Status" + "422": + description: "Missing or invalid parameters (see detail)" + schema: + $ref: "#/definitions/Status" + delete: + tags: + - "packages" + summary: "Delete a specific package in a repository." + description: "Delete a specific package in a repository." + operationId: "packages_delete" + parameters: + - name: "owner" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Owner" + - name: "repo" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Repo" + - name: "identifier" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Identifier" + security: + - token: [] + - apikey: [] + - csrf_token: [] + responses: + "204": + description: "Deleted the specified package successfully" + "400": + description: "The package cannot be deleted" + schema: + $ref: "#/definitions/Status" + "422": + description: "Missing or invalid parameters (see detail)" + schema: + $ref: "#/definitions/Status" + /packages/{owner}/{repo}/{identifier}/copy/: + post: + tags: + - "packages" + summary: "Copy a package to another repository." + description: "Copy a package to another repository." + operationId: "packages_copy" + consumes: + - "application/json" + parameters: + - name: "owner" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Owner" + - name: "repo" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Repo" + - name: "identifier" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Identifier" + - in: "body" + name: "data" + required: false + schema: + $ref: "#/definitions/PackagesCopy" + x-exportParamName: "Data" + security: + - token: [] + - apikey: [] + - csrf_token: [] + responses: + "200": + description: "Copied specified package to destination repository" + schema: + $ref: "#/definitions/PackageCopy" + "400": + description: "Request could not be processed (see detail)" + schema: + $ref: "#/definitions/Status" + "422": + description: "Missing or invalid parameters (see detail)" + schema: + $ref: "#/definitions/Status" + /packages/{owner}/{repo}/{identifier}/dependencies/: + get: + tags: + - "packages" + summary: "Get the direct (non-transitive) dependencies list for a package." + description: "Get the direct (non-transitive) dependencies list for a package." + operationId: "packages_dependencies" + parameters: + - name: "owner" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Owner" + - name: "repo" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Repo" + - name: "identifier" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Identifier" + security: + - token: [] + - apikey: [] + - csrf_token: [] + responses: + "200": + description: "Retrieved direct dependencies for specified package" + schema: + $ref: "#/definitions/PackageDependencies" + "400": + description: "Request could not be processed (see detail)" + schema: + $ref: "#/definitions/Status" + "422": + description: "Missing or invalid parameters (see detail)" + schema: + $ref: "#/definitions/Status" + /packages/{owner}/{repo}/{identifier}/move/: + post: + tags: + - "packages" + summary: "Move a package to another repository." + description: "Move a package to another repository." + operationId: "packages_move" + consumes: + - "application/json" + parameters: + - name: "owner" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Owner" + - name: "repo" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Repo" + - name: "identifier" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Identifier" + - in: "body" + name: "data" + required: false + schema: + $ref: "#/definitions/PackagesMove" + x-exportParamName: "Data" + security: + - token: [] + - apikey: [] + - csrf_token: [] + responses: + "200": + description: "Moved specified package to destination repository" + schema: + $ref: "#/definitions/PackageMove" + "400": + description: "Request could not be processed (see detail)" + schema: + $ref: "#/definitions/Status" + "422": + description: "Missing or invalid parameters (see detail)" + schema: + $ref: "#/definitions/Status" + /packages/{owner}/{repo}/{identifier}/resync/: + post: + tags: + - "packages" + summary: "Schedule a package for resynchronisation." + description: "Schedule a package for resynchronisation." + operationId: "packages_resync" + parameters: + - name: "owner" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Owner" + - name: "repo" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Repo" + - name: "identifier" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Identifier" + security: + - token: [] + - apikey: [] + - csrf_token: [] + responses: + "200": + description: "Scheduled the package for resynchronisation" + schema: + $ref: "#/definitions/Package" + "400": + description: "Request could not be processed (see detail)" + schema: + $ref: "#/definitions/Status" + "422": + description: "Missing or invalid parameters (see detail)" + schema: + $ref: "#/definitions/Status" + /packages/{owner}/{repo}/{identifier}/scan/: + post: + tags: + - "packages" + summary: "Schedule a package for scanning." + description: "Schedule a package for scanning." + operationId: "packages_scan" + parameters: + - name: "owner" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Owner" + - name: "repo" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Repo" + - name: "identifier" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Identifier" + security: + - token: [] + - apikey: [] + - csrf_token: [] + responses: + "200": + description: "Scheduled the package for scanning" + schema: + $ref: "#/definitions/Package" + "400": + description: "Request could not be processed (see detail)" + schema: + $ref: "#/definitions/Status" + "422": + description: "Missing or invalid parameters (see detail)" + schema: + $ref: "#/definitions/Status" + /packages/{owner}/{repo}/{identifier}/status/: + get: + tags: + - "packages" + summary: "Get the synchronisation status for a package." + description: "Get the synchronisation status for a package." + operationId: "packages_status" + parameters: + - name: "owner" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Owner" + - name: "repo" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Repo" + - name: "identifier" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Identifier" + security: + - token: [] + - apikey: [] + - csrf_token: [] + responses: + "200": + description: "Retrieved status for specified package" + schema: + $ref: "#/definitions/PackageStatus" + "400": + description: "Request could not be processed (see detail)" + schema: + $ref: "#/definitions/Status" + "422": + description: "Missing or invalid parameters (see detail)" + schema: + $ref: "#/definitions/Status" + /packages/{owner}/{repo}/{identifier}/tag/: + post: + tags: + - "packages" + summary: "Add/Replace/Remove tags for a package." + description: "Add/Replace/Remove tags for a package." + operationId: "packages_tag" + consumes: + - "application/json" + parameters: + - name: "owner" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Owner" + - name: "repo" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Repo" + - name: "identifier" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Identifier" + - in: "body" + name: "data" + required: false + schema: + $ref: "#/definitions/PackagesTag" + x-exportParamName: "Data" + security: + - token: [] + - apikey: [] + - csrf_token: [] + responses: + "200": + description: "Modified tags for the package" + schema: + $ref: "#/definitions/Package" + "400": + description: "Request could not be processed (see detail)" + schema: + $ref: "#/definitions/Status" + "422": + description: "Missing or invalid parameters (see detail)" + schema: + $ref: "#/definitions/Status" + /quota/history/{owner}/: + get: + tags: + - "quota" + summary: "Quota history for a given namespace." + description: "Quota history for a given namespace." + operationId: "quota_history_read" + parameters: + - name: "owner" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Owner" + security: + - token: [] + - apikey: [] + - csrf_token: [] + responses: + "200": + description: "OK" + schema: + $ref: "#/definitions/QuotaHistory" + "400": + description: "Request could not be processed (see detail)" + schema: + $ref: "#/definitions/Status" + "422": + description: "Missing or invalid parameters (see detail)" + schema: + $ref: "#/definitions/Status" + /quota/oss/history/{owner}/: + get: + tags: + - "quota" + summary: "Open-source Quota history for a given namespace." + description: "Open-source Quota history for a given namespace." + operationId: "quota_oss_history_read" + parameters: + - name: "owner" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Owner" + security: + - token: [] + - apikey: [] + - csrf_token: [] + responses: + "200": + description: "OK" + schema: + $ref: "#/definitions/QuotaHistory" + "400": + description: "Request could not be processed (see detail)" + schema: + $ref: "#/definitions/Status" + "422": + description: "Missing or invalid parameters (see detail)" + schema: + $ref: "#/definitions/Status" + /quota/oss/{owner}/: + get: + tags: + - "quota" + summary: "Open-source Quota usage for a given namespace." + description: "Open-source Quota usage for a given namespace." + operationId: "quota_oss_read" + parameters: + - name: "owner" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Owner" + security: + - token: [] + - apikey: [] + - csrf_token: [] + responses: + "200": + description: "OK" + schema: + $ref: "#/definitions/Quota" + "400": + description: "Request could not be processed (see detail)" + schema: + $ref: "#/definitions/Status" + "422": + description: "Missing or invalid parameters (see detail)" + schema: + $ref: "#/definitions/Status" + /quota/{owner}/: + get: + tags: + - "quota" + summary: "Quota usage for a given namespace." + description: "Quota usage for a given namespace." + operationId: "quota_read" + parameters: + - name: "owner" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Owner" + security: + - token: [] + - apikey: [] + - csrf_token: [] + responses: + "200": + description: "OK" + schema: + $ref: "#/definitions/Quota" + "400": + description: "Request could not be processed (see detail)" + schema: + $ref: "#/definitions/Status" + "422": + description: "Missing or invalid parameters (see detail)" + schema: + $ref: "#/definitions/Status" + /rates/limits/: + get: + tags: + - "rates" + summary: "Endpoint to check rate limits for current user." + description: "Endpoint to check rate limits for current user." + operationId: "rates_limits_list" + parameters: [] + security: + - token: [] + - apikey: [] + - csrf_token: [] + responses: + "200": + description: "Rate check was successful" + schema: + $ref: "#/definitions/ResourcesRateCheck" + "400": + description: "Request could not be processed (see detail)" + schema: + $ref: "#/definitions/Status" + "422": + description: "Missing or invalid parameters (see detail)" + schema: + $ref: "#/definitions/Status" + /repos/: + get: + tags: + - "repos" + summary: "Get a list of all repositories associated with current user." + description: "Get a list of all repositories associated with current user." + operationId: "repos_all_list" + parameters: + - name: "page" + in: "query" + description: "A page number within the paginated result set." + required: false + type: "integer" + x-exportParamName: "Page" + x-optionalDataType: "Int32" + - name: "page_size" + in: "query" + description: "Number of results to return per page." + required: false + type: "integer" + x-exportParamName: "PageSize" + x-optionalDataType: "Int32" + security: + - token: [] + - apikey: [] + - csrf_token: [] + responses: + "200": + description: "Retrieved the list of repositories" + schema: + type: "array" + items: + $ref: "#/definitions/Repository" + "400": + description: "Request could not be processed (see detail)" + schema: + $ref: "#/definitions/Status" + "422": + description: "Missing or invalid parameters (see detail)" + schema: + $ref: "#/definitions/Status" + /repos/{owner}/: + get: + tags: + - "repos" + summary: "Get a list of all repositories within a namespace." + description: "Get a list of all repositories within a namespace." + operationId: "repos_list" + parameters: + - name: "owner" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Owner" + - name: "page" + in: "query" + description: "A page number within the paginated result set." + required: false + type: "integer" + x-exportParamName: "Page" + x-optionalDataType: "Int32" + - name: "page_size" + in: "query" + description: "Number of results to return per page." + required: false + type: "integer" + x-exportParamName: "PageSize" + x-optionalDataType: "Int32" + security: + - token: [] + - apikey: [] + - csrf_token: [] + responses: + "200": + description: "Retrieved the list of repositories" + schema: + type: "array" + items: + $ref: "#/definitions/Repository" + "400": + description: "Request could not be processed (see detail)" + schema: + $ref: "#/definitions/Status" + "404": + description: "Owner namespace not found" + schema: + $ref: "#/definitions/Status" + "422": + description: "Missing or invalid parameters (see detail)" + schema: + $ref: "#/definitions/Status" + post: + tags: + - "repos" + summary: "Create a new repository in a given namespace." + description: "Create a new repository in a given namespace." + operationId: "repos_create" + consumes: + - "application/json" + parameters: + - name: "owner" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Owner" + - in: "body" + name: "data" + required: false + schema: + $ref: "#/definitions/ReposCreate" + x-exportParamName: "Data" + security: + - token: [] + - apikey: [] + - csrf_token: [] + responses: + "201": + description: "The repository was created" + schema: + $ref: "#/definitions/Repository" + "400": + description: "Request could not be processed (see detail)" + schema: + $ref: "#/definitions/Status" + "404": + description: "Owner namespace not found" + schema: + $ref: "#/definitions/Status" + "422": + description: "Missing or invalid parameters (see detail)" + schema: + $ref: "#/definitions/Status" + /repos/{owner}/{identifier}/: + get: + tags: + - "repos" + summary: "Get a specific repository." + description: "Get a specific repository." + operationId: "repos_read" + parameters: + - name: "owner" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Owner" + - name: "identifier" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Identifier" + security: + - token: [] + - apikey: [] + - csrf_token: [] + responses: + "200": + description: "Retrieved the specified repository" + schema: + $ref: "#/definitions/Repository" + "400": + description: "Request could not be processed (see detail)" + schema: + $ref: "#/definitions/Status" + "404": + description: "Owner namespace or repository not found" + schema: + $ref: "#/definitions/Status" + "422": + description: "Missing or invalid parameters (see detail)" + schema: + $ref: "#/definitions/Status" + delete: + tags: + - "repos" + summary: "Delete a repository in a given namespace." + description: "Delete a repository in a given namespace." + operationId: "repos_delete" + parameters: + - name: "owner" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Owner" + - name: "identifier" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Identifier" + security: + - token: [] + - apikey: [] + - csrf_token: [] + responses: + "200": + description: "The repository has been scheduled for deletion" + "400": + description: "Request could not be processed (see detail)" + schema: + $ref: "#/definitions/Status" + "404": + description: "Unable to find repository with that name in the provided namespace" + schema: + $ref: "#/definitions/Status" + "422": + description: "Missing or invalid parameters (see detail)" + schema: + $ref: "#/definitions/Status" + patch: + tags: + - "repos" + summary: "Update details about a repository in a given namespace." + description: "Update details about a repository in a given namespace." + operationId: "repos_partial_update" + consumes: + - "application/json" + parameters: + - name: "owner" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Owner" + - name: "identifier" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Identifier" + - in: "body" + name: "data" + required: false + schema: + $ref: "#/definitions/ReposPartialUpdate" + x-exportParamName: "Data" + security: + - token: [] + - apikey: [] + - csrf_token: [] + responses: + "200": + description: "The repository was updated" + schema: + $ref: "#/definitions/Repository" + "400": + description: "Request could not be processed (see detail)" + schema: + $ref: "#/definitions/Status" + "404": + description: "Unable to find repository with that name in the provided namespace" + schema: + $ref: "#/definitions/Status" + "422": + description: "Missing or invalid parameters (see detail)" + schema: + $ref: "#/definitions/Status" + /status/check/basic/: + get: + tags: + - "status" + summary: "Endpoint to check basic API connectivity." + description: "Endpoint to check basic API connectivity." + operationId: "status_check_basic" + parameters: [] + security: [] + responses: + "200": + description: "Status check was successful" + schema: + $ref: "#/definitions/StatusBasic" + "400": + description: "Request could not be processed (see detail)" + schema: + $ref: "#/definitions/Status" + "422": + description: "Missing or invalid parameters (see detail)" + schema: + $ref: "#/definitions/Status" + /storage-regions/: + get: + tags: + - "storage-regions" + summary: "Get a list of all available storage regions." + description: "Get a list of all available storage regions." + operationId: "storage-regions_list" + parameters: [] + security: + - token: [] + - apikey: [] + - csrf_token: [] + responses: + "200": + description: "Available storage regions retrieved" + schema: + type: "array" + items: + $ref: "#/definitions/StorageRegion" + "400": + description: "Request could not be processed (see detail)" + schema: + $ref: "#/definitions/Status" + "422": + description: "Missing or invalid parameters (see detail)" + schema: + $ref: "#/definitions/Status" + /storage-regions/{slug}/: + get: + tags: + - "storage-regions" + summary: "Get a specific storage region." + description: "Get a specific storage region." + operationId: "storage-regions_read" + parameters: + - name: "slug" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Slug" + security: + - token: [] + - apikey: [] + - csrf_token: [] + responses: + "200": + description: "OK" + schema: + $ref: "#/definitions/StorageRegion" + "400": + description: "Request could not be processed (see detail)" + schema: + $ref: "#/definitions/Status" + "422": + description: "Missing or invalid parameters (see detail)" + schema: + $ref: "#/definitions/Status" + /user/self/: + get: + tags: + - "user" + summary: "Provide a brief for the current user (if any)." + description: "Provide a brief for the current user (if any)." + operationId: "user_self" + parameters: [] + security: + - token: [] + - apikey: [] + - csrf_token: [] + responses: + "200": + description: "Retrieved brief for the current user" + schema: + $ref: "#/definitions/UserBrief" + "400": + description: "Request could not be processed (see detail)" + schema: + $ref: "#/definitions/Status" + "422": + description: "Missing or invalid parameters (see detail)" + schema: + $ref: "#/definitions/Status" + /user/token/: + post: + tags: + - "user" + summary: "Retrieve the API key/token for the authenticated user." + description: "Retrieve the API key/token for the authenticated user." + operationId: "user_token_create" + consumes: + - "application/json" + parameters: + - in: "body" + name: "data" + required: false + schema: + $ref: "#/definitions/UserTokenCreate" + x-exportParamName: "Data" + security: + - token: [] + - apikey: [] + - csrf_token: [] + responses: + "201": + description: "Retrieved/created user API token/key" + schema: + $ref: "#/definitions/UserAuthToken" + "400": + description: "Request could not be processed (see detail)" + schema: + $ref: "#/definitions/Status" + "403": + description: "Locked out" + schema: + $ref: "#/definitions/Status" + "422": + description: "Failed to authenticate" + schema: + $ref: "#/definitions/Status" + /users/profile/{slug}/: + get: + tags: + - "users" + summary: "Provide a brief for the specified user (if any)." + description: "Provide a brief for the specified user (if any)." + operationId: "users_profile_read" + parameters: + - name: "slug" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Slug" + security: + - token: [] + - apikey: [] + - csrf_token: [] + responses: + "200": + description: "Retrieved details for the specified user (or current user,\ + \ if none was specified)" + schema: + $ref: "#/definitions/UserProfile" + "400": + description: "Request could not be processed (see detail)" + schema: + $ref: "#/definitions/Status" + "422": + description: "Missing or invalid parameters (see detail)" + schema: + $ref: "#/definitions/Status" + /vulnerabilities/{owner}/: + get: + tags: + - "vulnerabilities" + summary: "Lists scan results for a specific namespace." + description: "Lists scan results for a specific namespace." + operationId: "vulnerabilities_list" + parameters: + - name: "owner" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Owner" + - name: "page" + in: "query" + description: "A page number within the paginated result set." + required: false + type: "integer" + x-exportParamName: "Page" + x-optionalDataType: "Int32" + - name: "page_size" + in: "query" + description: "Number of results to return per page." + required: false + type: "integer" + x-exportParamName: "PageSize" + x-optionalDataType: "Int32" + security: + - token: [] + - apikey: [] + - csrf_token: [] + responses: + "200": + description: "OK" + schema: + type: "array" + items: + $ref: "#/definitions/VulnerabilityScanResultsList" + "400": + description: "Request could not be processed (see detail)" + schema: + $ref: "#/definitions/Status" + "422": + description: "Missing or invalid parameters (see detail)" + schema: + $ref: "#/definitions/Status" + /vulnerabilities/{owner}/{repo}/: + get: + tags: + - "vulnerabilities" + summary: "Lists scan results for a specific repository." + description: "Lists scan results for a specific repository." + operationId: "vulnerabilities_list_0" + parameters: + - name: "owner" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Owner" + - name: "repo" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Repo" + - name: "page" + in: "query" + description: "A page number within the paginated result set." + required: false + type: "integer" + x-exportParamName: "Page" + x-optionalDataType: "Int32" + - name: "page_size" + in: "query" + description: "Number of results to return per page." + required: false + type: "integer" + x-exportParamName: "PageSize" + x-optionalDataType: "Int32" + security: + - token: [] + - apikey: [] + - csrf_token: [] + responses: + "200": + description: "OK" + schema: + type: "array" + items: + $ref: "#/definitions/VulnerabilityScanResultsList" + "400": + description: "Request could not be processed (see detail)" + schema: + $ref: "#/definitions/Status" + "422": + description: "Missing or invalid parameters (see detail)" + schema: + $ref: "#/definitions/Status" + /vulnerabilities/{owner}/{repo}/{package}/: + get: + tags: + - "vulnerabilities" + summary: "Lists scan results for a specific package." + description: "Lists scan results for a specific package." + operationId: "vulnerabilities_list_1" + parameters: + - name: "owner" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Owner" + - name: "repo" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Repo" + - name: "package" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Package_" + - name: "page" + in: "query" + description: "A page number within the paginated result set." + required: false + type: "integer" + x-exportParamName: "Page" + x-optionalDataType: "Int32" + - name: "page_size" + in: "query" + description: "Number of results to return per page." + required: false + type: "integer" + x-exportParamName: "PageSize" + x-optionalDataType: "Int32" + security: + - token: [] + - apikey: [] + - csrf_token: [] + responses: + "200": + description: "OK" + schema: + type: "array" + items: + $ref: "#/definitions/VulnerabilityScanResultsList" + "400": + description: "Request could not be processed (see detail)" + schema: + $ref: "#/definitions/Status" + "422": + description: "Missing or invalid parameters (see detail)" + schema: + $ref: "#/definitions/Status" + /vulnerabilities/{owner}/{repo}/{package}/{scan_id}/: + get: + tags: + - "vulnerabilities" + summary: "Returns a Scan Result." + description: "Returns a Scan Result." + operationId: "vulnerabilities_read" + parameters: + - name: "owner" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Owner" + - name: "repo" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Repo" + - name: "package" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Package_" + - name: "scan_id" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "ScanId" + security: + - token: [] + - apikey: [] + - csrf_token: [] + responses: + "200": + description: "OK" + schema: + $ref: "#/definitions/VulnerabilityScanResults" + "400": + description: "Request could not be processed (see detail)" + schema: + $ref: "#/definitions/Status" + "422": + description: "Missing or invalid parameters (see detail)" + schema: + $ref: "#/definitions/Status" + /webhooks/{owner}/{repo}/: + get: + tags: + - "webhooks" + summary: "Get a list of all webhooks in a repository." + description: "Get a list of all webhooks in a repository." + operationId: "webhooks_list" + parameters: + - name: "owner" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Owner" + - name: "repo" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Repo" + - name: "page" + in: "query" + description: "A page number within the paginated result set." + required: false + type: "integer" + x-exportParamName: "Page" + x-optionalDataType: "Int32" + - name: "page_size" + in: "query" + description: "Number of results to return per page." + required: false + type: "integer" + x-exportParamName: "PageSize" + x-optionalDataType: "Int32" + security: + - token: [] + - apikey: [] + - csrf_token: [] + responses: + "200": + description: "Retrieved the list of webhooks" + schema: + type: "array" + items: + $ref: "#/definitions/RepositoryWebhook" + "400": + description: "Request could not be processed (see detail)" + schema: + $ref: "#/definitions/Status" + "404": + description: "Owner namespace or repository not found" + schema: + $ref: "#/definitions/Status" + "422": + description: "Missing or invalid parameters (see detail)" + schema: + $ref: "#/definitions/Status" + post: + tags: + - "webhooks" + summary: "Create a specific webhook in a repository." + description: "Create a specific webhook in a repository." + operationId: "webhooks_create" + consumes: + - "application/json" + parameters: + - name: "owner" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Owner" + - name: "repo" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Repo" + - in: "body" + name: "data" + required: false + schema: + $ref: "#/definitions/WebhooksCreate" + x-exportParamName: "Data" + security: + - token: [] + - apikey: [] + - csrf_token: [] + responses: + "201": + description: "Created the specified webhook" + schema: + $ref: "#/definitions/RepositoryWebhook" + "400": + description: "Request could not be processed (see detail)" + schema: + $ref: "#/definitions/Status" + "404": + description: "Owner namespace or repository not found" + schema: + $ref: "#/definitions/Status" + "422": + description: "Missing or invalid parameters (see detail)" + schema: + $ref: "#/definitions/Status" + /webhooks/{owner}/{repo}/{identifier}/: + get: + tags: + - "webhooks" + summary: "Views for working with repository webhooks." + description: "Views for working with repository webhooks." + operationId: "webhooks_read" + parameters: + - name: "owner" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Owner" + - name: "repo" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Repo" + - name: "identifier" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Identifier" + security: + - token: [] + - apikey: [] + - csrf_token: [] + responses: + "200": + description: "OK" + schema: + $ref: "#/definitions/RepositoryWebhook" + "400": + description: "Request could not be processed (see detail)" + schema: + $ref: "#/definitions/Status" + "422": + description: "Missing or invalid parameters (see detail)" + schema: + $ref: "#/definitions/Status" + delete: + tags: + - "webhooks" + summary: "Delete a specific webhook in a repository." + description: "Delete a specific webhook in a repository." + operationId: "webhooks_delete" + parameters: + - name: "owner" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Owner" + - name: "repo" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Repo" + - name: "identifier" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Identifier" + security: + - token: [] + - apikey: [] + - csrf_token: [] + responses: + "204": + description: "Deleted the specified webhook successfully" + "400": + description: "The webhook cannot be deleted" + schema: + $ref: "#/definitions/Status" + "422": + description: "Missing or invalid parameters (see detail)" + schema: + $ref: "#/definitions/Status" + patch: + tags: + - "webhooks" + summary: "Update a specific webhook in a repository." + description: "Update a specific webhook in a repository." + operationId: "webhooks_partial_update" + consumes: + - "application/json" + parameters: + - name: "owner" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Owner" + - name: "repo" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Repo" + - name: "identifier" + in: "path" + description: "" + required: true + type: "string" + x-exportParamName: "Identifier" + - in: "body" + name: "data" + required: false + schema: + $ref: "#/definitions/WebhooksPartialUpdate" + x-exportParamName: "Data" + security: + - token: [] + - apikey: [] + - csrf_token: [] + responses: + "200": + description: "Updated the specified webhook" + schema: + $ref: "#/definitions/RepositoryWebhook" + "400": + description: "Request could not be processed (see detail)" + schema: + $ref: "#/definitions/Status" + "404": + description: "Owner namespace or repository not found" + schema: + $ref: "#/definitions/Status" + "422": + description: "Missing or invalid parameters (see detail)" + schema: + $ref: "#/definitions/Status" +securityDefinitions: + apikey: + type: "apiKey" + name: "X-Api-Key" + in: "header" + basic: + type: "basic" +definitions: + OrganizationMembership: + type: "object" + properties: + email: + type: "string" + description: "" + has_two_factor: + type: "boolean" + description: "" + joined_at: + type: "string" + description: "" + last_login_at: + type: "string" + description: "" + role: + type: "string" + description: "" + user: + type: "string" + description: "" + user_id: + type: "string" + description: "" + user_name: + type: "string" + description: "" + user_url: + type: "string" + description: "" + visibility: + type: "string" + description: "" + example: + joined_at: "joined_at" + last_login_at: "last_login_at" + role: "role" + visibility: "visibility" + user_id: "user_id" + user_name: "user_name" + user_url: "user_url" + user: "user" + email: "email" + has_two_factor: true + PackagesUploadConan: + type: "object" + required: + - "info_file" + - "manifest_file" + - "metadata_file" + - "package_file" + properties: + conan_channel: + type: "string" + example: "alpha" + description: "Conan channel." + conan_prefix: + type: "string" + example: "my-repository" + description: "Conan prefix (User)." + info_file: + type: "string" + example: "y1234456789b" + description: "The info file is an python file containing the package metadata." + manifest_file: + type: "string" + example: "y1234456789c" + description: "The info file is an python file containing the package metadata." + metadata_file: + type: "string" + example: "y1234456789a" + description: "The conan file is an python file containing the package metadata." + name: + type: "string" + example: "conan_package.tgz" + description: "The name of this package." + package_file: + type: "string" + example: "x123456789a" + description: "The primary file for the package." + republish: + type: "boolean" + description: "If true, the uploaded package will overwrite any others with\ + \ the same attributes (e.g. same version); otherwise, it will be flagged\ + \ as a duplicate." + tags: + type: "string" + description: "A comma-separated values list of tags to add to the package." + version: + type: "string" + example: "1.0.0" + description: "The raw version for this package." + title: "PackagesUploadConan" + example: + republish: true + name: "conan_package.tgz" + metadata_file: "y1234456789a" + package_file: "x123456789a" + conan_prefix: "my-repository" + version: "1.0.0" + conan_channel: "alpha" + info_file: "y1234456789b" + manifest_file: "y1234456789c" + tags: "tags" + ConanPackageUpload: + type: "object" + properties: + architectures: + type: "array" + description: "" + title: "ArchitecturesList" + items: + $ref: "#/definitions/packagesownerrepo_architectures" + cdn_url: + type: "string" + description: "" + checksum_md5: + type: "string" + description: "" + checksum_sha1: + type: "string" + description: "" + checksum_sha256: + type: "string" + description: "" + checksum_sha512: + type: "string" + description: "" + conan_channel: + type: "string" + example: "alpha" + description: "Conan channel." + conan_prefix: + type: "string" + example: "my-repository" + description: "Conan prefix (User)." + dependencies_checksum_md5: + type: "string" + description: "A checksum of all of the package's dependencies." + dependencies_url: + type: "string" + description: "" + description: + type: "string" + description: "A textual description of this package." + distro: + type: "object" + description: "" + properties: {} + distro_version: + type: "object" + description: "" + properties: {} + downloads: + type: "integer" + description: "" + epoch: + type: "integer" + description: "The epoch of the package version (if any)." + extension: + type: "string" + description: "" + filename: + type: "string" + description: "" + files: + type: "array" + description: "" + title: "FilesList" + items: + $ref: "#/definitions/packagesownerrepo_files" + format: + type: "string" + description: "" + format_url: + type: "string" + description: "" + identifier_perm: + type: "string" + description: "Unique and permanent identifier for the package." + indexed: + type: "boolean" + description: "" + is_sync_awaiting: + type: "boolean" + description: "" + is_sync_completed: + type: "boolean" + description: "" + is_sync_failed: + type: "boolean" + description: "" + is_sync_in_flight: + type: "boolean" + description: "" + is_sync_in_progress: + type: "boolean" + description: "" + license: + type: "string" + description: "The license of this package." + name: + type: "string" + example: "conan_package.tgz" + description: "The name of this package." + namespace: + type: "string" + description: "" + namespace_url: + type: "string" + description: "" + num_files: + type: "integer" + description: "" + package_type: + type: "string" + description: "The type of package contents." + release: + type: "string" + description: "The release of the package version (if any)." + repository: + type: "string" + description: "" + repository_url: + type: "string" + description: "" + security_scan_completed_at: + type: "string" + description: "The datetime the security scanning was completed." + security_scan_started_at: + type: "string" + description: "The datetime the security scanning was started." + security_scan_status: + type: "string" + description: "" + security_scan_status_updated_at: + type: "string" + description: "The datetime the security scanning status was updated." + self_html_url: + type: "string" + description: "" + self_url: + type: "string" + description: "" + signature_url: + type: "string" + description: "" + size: + type: "integer" + description: "The calculated size of the package." + slug: + type: "string" + description: "The public unique identifier for the package." + slug_perm: + type: "string" + description: "" + stage: + type: "string" + description: "The synchronisation (in progress) stage of the package." + stage_str: + type: "string" + description: "" + stage_updated_at: + type: "string" + description: "The datetime the package stage was updated at." + status: + type: "string" + description: "The synchronisation status of the package." + status_reason: + type: "string" + description: "A textual description for the synchronous status reason (if\ + \ any" + status_str: + type: "string" + description: "" + status_updated_at: + type: "string" + description: "The datetime the package status was updated at." + status_url: + type: "string" + description: "" + subtype: + type: "string" + description: "" + summary: + type: "string" + description: "A one-liner synopsis of this package." + sync_finished_at: + type: "string" + description: "The datetime the package sync was finished at." + sync_progress: + type: "integer" + description: "Synchronisation progress (from 0-100)" + tags_immutable: + type: "object" + description: "All immutable tags on the package, grouped by tag type. Immutable\ + \ tags cannot be (easily) deleted." + properties: {} + type_display: + type: "string" + description: "" + uploaded_at: + type: "string" + description: "The date this package was uploaded." + uploader: + type: "string" + description: "" + uploader_url: + type: "string" + description: "" + version: + type: "string" + example: "1.0.0" + description: "The raw version for this package." + version_orig: + type: "string" + description: "" + vulnerability_scan_results_url: + type: "string" + description: "" + example: + architectures: + - name: "name" + description: "description" + - name: "name" + description: "description" + security_scan_status_updated_at: "security_scan_status_updated_at" + checksum_sha256: "checksum_sha256" + release: "release" + package_type: "package_type" + repository: "repository" + identifier_perm: "identifier_perm" + stage_updated_at: "stage_updated_at" + tags_immutable: "{}" + slug: "slug" + security_scan_started_at: "security_scan_started_at" + security_scan_status: "security_scan_status" + indexed: true + format: "format" + status_str: "status_str" + version_orig: "version_orig" + namespace_url: "namespace_url" + slug_perm: "slug_perm" + version: "1.0.0" + license: "license" + filename: "filename" + size: 5 + cdn_url: "cdn_url" + uploaded_at: "uploaded_at" + name: "conan_package.tgz" + sync_finished_at: "sync_finished_at" + files: + - checksum_sha512: "checksum_sha512" + checksum_sha1: "checksum_sha1" + checksum_sha256: "checksum_sha256" + is_primary: true + checksum_md5: "checksum_md5" + slug_perm: "slug_perm" + filename: "filename" + size: 5 + cdn_url: "cdn_url" + downloads: 1 + is_synchronised: true + is_downloadable: true + signature_url: "signature_url" + tag: "tag" + - checksum_sha512: "checksum_sha512" + checksum_sha1: "checksum_sha1" + checksum_sha256: "checksum_sha256" + is_primary: true + checksum_md5: "checksum_md5" + slug_perm: "slug_perm" + filename: "filename" + size: 5 + cdn_url: "cdn_url" + downloads: 1 + is_synchronised: true + is_downloadable: true + signature_url: "signature_url" + tag: "tag" + conan_prefix: "my-repository" + num_files: 1 + conan_channel: "alpha" + status: "status" + checksum_sha512: "checksum_sha512" + distro: "{}" + extension: "extension" + description: "description" + epoch: 6 + is_sync_completed: true + distro_version: "{}" + type_display: "type_display" + vulnerability_scan_results_url: "vulnerability_scan_results_url" + dependencies_checksum_md5: "dependencies_checksum_md5" + downloads: 0 + subtype: "subtype" + uploader: "uploader" + signature_url: "signature_url" + repository_url: "repository_url" + status_reason: "status_reason" + status_updated_at: "status_updated_at" + summary: "summary" + checksum_sha1: "checksum_sha1" + checksum_md5: "checksum_md5" + sync_progress: 5 + is_sync_awaiting: true + uploader_url: "uploader_url" + self_html_url: "self_html_url" + self_url: "self_url" + status_url: "status_url" + is_sync_in_flight: true + security_scan_completed_at: "security_scan_completed_at" + is_sync_in_progress: true + stage_str: "stage_str" + stage: "stage" + format_url: "format_url" + dependencies_url: "dependencies_url" + namespace: "namespace" + is_sync_failed: true + VulnerabilityScanResultsList: + type: "object" + required: + - "identifier" + - "package" + - "scan_id" + properties: + created_at: + type: "string" + example: "2020-01-01T12:00:00.000000Z" + description: "The time this scan result was stored." + has_vulnerabilities: + type: "boolean" + example: true + description: "Do the results contain any known vulnerabilities?" + identifier: + type: "string" + example: "HKmoU6OHbyj4ha3u" + description: "" + max_severity: + type: "string" + example: "HIGH" + description: "" + num_vulnerabilities: + type: "integer" + example: 2 + description: "" + package: + type: "object" + example: + identifier: "XEtJh5CTzcr3" + name: "insecure-image" + version: "452fcef2bd33e962aa77c2adc65eb022c566c3e01759c432f7c2f9ec838a6b05" + description: "" + properties: {} + scan_id: + type: "integer" + example: 1 + description: "" + example: + identifier: "HKmoU6OHbyj4ha3u" + max_severity: "HIGH" + package: + identifier: "XEtJh5CTzcr3" + name: "insecure-image" + version: "452fcef2bd33e962aa77c2adc65eb022c566c3e01759c432f7c2f9ec838a6b05" + has_vulnerabilities: true + created_at: "2020-01-01T12:00:00.000000Z" + num_vulnerabilities: 2 + scan_id: 1 + repos_gpg_keys: + type: "object" + properties: + active: + type: "boolean" + description: "If selected this is the active key for this repository." + comment: + type: "string" + description: "" + created_at: + type: "string" + description: "" + default: + type: "boolean" + description: "If selected this is the default key for this repository." + fingerprint: + type: "string" + description: "The long identifier used by GPG for this key." + fingerprint_short: + type: "string" + description: "" + public_key: + type: "string" + description: "The public key given to repository users." + example: + public_key: "public_key" + default: true + fingerprint: "fingerprint" + active: true + created_at: "created_at" + comment: "comment" + fingerprint_short: "fingerprint_short" + PackagesUploadNpm: + type: "object" + required: + - "package_file" + properties: + npm_dist_tag: + type: "string" + example: "latest" + description: "The default npm dist-tag for this package/version - This will\ + \ replace any other package/version if they are using the same tag." + package_file: + type: "string" + example: "y123456789" + description: "The primary file for the package." + republish: + type: "boolean" + description: "If true, the uploaded package will overwrite any others with\ + \ the same attributes (e.g. same version); otherwise, it will be flagged\ + \ as a duplicate." + tags: + type: "string" + description: "A comma-separated values list of tags to add to the package." + title: "PackagesUploadNpm" + example: + republish: true + npm_dist_tag: "latest" + package_file: "y123456789" + tags: "tags" + PackagesValidateuploadConda: + type: "object" + required: + - "package_file" + properties: + package_file: + type: "string" + example: "x123456789a" + description: "The primary file for the package." + republish: + type: "boolean" + description: "If true, the uploaded package will overwrite any others with\ + \ the same attributes (e.g. same version); otherwise, it will be flagged\ + \ as a duplicate." + tags: + type: "string" + description: "A comma-separated values list of tags to add to the package." + title: "PackagesValidate-uploadConda" + example: + republish: true + package_file: "x123456789a" + tags: "tags" + Status: + type: "object" + required: + - "detail" + properties: + detail: + type: "string" + description: "An extended message for the response." + PackagesValidateuploadNpm: + type: "object" + required: + - "package_file" + properties: + npm_dist_tag: + type: "string" + example: "latest" + description: "The default npm dist-tag for this package/version - This will\ + \ replace any other package/version if they are using the same tag." + package_file: + type: "string" + example: "y123456789" + description: "The primary file for the package." + republish: + type: "boolean" + description: "If true, the uploaded package will overwrite any others with\ + \ the same attributes (e.g. same version); otherwise, it will be flagged\ + \ as a duplicate." + tags: + type: "string" + description: "A comma-separated values list of tags to add to the package." + title: "PackagesValidate-uploadNpm" + example: + republish: true + npm_dist_tag: "latest" + package_file: "y123456789" + tags: "tags" + PackagesUploadPython: + type: "object" + required: + - "package_file" + properties: + package_file: + type: "string" + example: "y123456789" + description: "The primary file for the package." + republish: + type: "boolean" + description: "If true, the uploaded package will overwrite any others with\ + \ the same attributes (e.g. same version); otherwise, it will be flagged\ + \ as a duplicate." + tags: + type: "string" + description: "A comma-separated values list of tags to add to the package." + title: "PackagesUploadPython" + example: + republish: true + package_file: "y123456789" + tags: "tags" + PackagesValidateuploadDart: + type: "object" + required: + - "package_file" + properties: + package_file: + type: "string" + example: "x123456789a" + description: "The primary file for the package." + republish: + type: "boolean" + description: "If true, the uploaded package will overwrite any others with\ + \ the same attributes (e.g. same version); otherwise, it will be flagged\ + \ as a duplicate." + tags: + type: "string" + description: "A comma-separated values list of tags to add to the package." + title: "PackagesValidate-uploadDart" + example: + republish: true + package_file: "x123456789a" + tags: "tags" + PackagesUploadTerraform: + type: "object" + required: + - "package_file" + properties: + package_file: + type: "string" + example: "z123456789a" + description: "The primary file for the package." + republish: + type: "boolean" + description: "If true, the uploaded package will overwrite any others with\ + \ the same attributes (e.g. same version); otherwise, it will be flagged\ + \ as a duplicate." + tags: + type: "string" + description: "A comma-separated values list of tags to add to the package." + title: "PackagesUploadTerraform" + example: + republish: true + package_file: "z123456789a" + tags: "tags" + PackagesValidateuploadRpm: + type: "object" + required: + - "distribution" + - "package_file" + properties: + distribution: + type: "string" + example: "el/7" + description: "The distribution to store the package for." + package_file: + type: "string" + example: "y123456789" + description: "The primary file for the package." + republish: + type: "boolean" + description: "If true, the uploaded package will overwrite any others with\ + \ the same attributes (e.g. same version); otherwise, it will be flagged\ + \ as a duplicate." + tags: + type: "string" + description: "A comma-separated values list of tags to add to the package." + title: "PackagesValidate-uploadRpm" + example: + republish: true + distribution: "el/7" + package_file: "y123456789" + tags: "tags" + PackagesUploadRpm: + type: "object" + required: + - "distribution" + - "package_file" + properties: + distribution: + type: "string" + example: "el/7" + description: "The distribution to store the package for." + package_file: + type: "string" + example: "y123456789" + description: "The primary file for the package." + republish: + type: "boolean" + description: "If true, the uploaded package will overwrite any others with\ + \ the same attributes (e.g. same version); otherwise, it will be flagged\ + \ as a duplicate." + tags: + type: "string" + description: "A comma-separated values list of tags to add to the package." + title: "PackagesUploadRpm" + example: + republish: true + distribution: "el/7" + package_file: "y123456789" + tags: "tags" + Namespace: + type: "object" + properties: + name: + type: "string" + description: "" + slug: + type: "string" + description: "" + slug_perm: + type: "string" + description: "" + type_name: + type: "string" + description: "" + example: + type_name: "type_name" + name: "name" + slug_perm: "slug_perm" + slug: "slug" + EntitlementUsageMetrics: + type: "object" + required: + - "tokens" + properties: + tokens: + type: "object" + example: + active: 1 + bandwidth: + average: + display: "11 B" + units: "bytes" + value: 11 + highest: + display: "11 B" + units: "bytes" + value: 11 + lowest: + display: "11 B" + units: "bytes" + value: 11 + total: + display: "11 B" + units: "bytes" + value: 11 + downloads: + average: + value: 5 + highest: + value: 5 + lowest: + value: 5 + total: + value: 5 + inactive: 0 + total: 0 + description: "" + properties: {} + example: + tokens: + active: 1 + bandwidth: + average: + display: "11 B" + units: "bytes" + value: 11 + highest: + display: "11 B" + units: "bytes" + value: 11 + lowest: + display: "11 B" + units: "bytes" + value: 11 + total: + display: "11 B" + units: "bytes" + value: 11 + downloads: + average: + value: 5 + highest: + value: 5 + lowest: + value: 5 + total: + value: 5 + inactive: 0 + total: 0 + PackageCopy: + type: "object" + properties: + architectures: + type: "array" + description: "" + title: "ArchitecturesList" + items: + $ref: "#/definitions/packagesownerrepo_architectures" + cdn_url: + type: "string" + description: "" + checksum_md5: + type: "string" + description: "" + checksum_sha1: + type: "string" + description: "" + checksum_sha256: + type: "string" + description: "" + checksum_sha512: + type: "string" + description: "" + dependencies_checksum_md5: + type: "string" + description: "A checksum of all of the package's dependencies." + dependencies_url: + type: "string" + description: "" + description: + type: "string" + description: "A textual description of this package." + distro: + type: "object" + description: "" + properties: {} + distro_version: + type: "object" + description: "" + properties: {} + downloads: + type: "integer" + description: "" + epoch: + type: "integer" + description: "The epoch of the package version (if any)." + extension: + type: "string" + description: "" + filename: + type: "string" + description: "" + files: + type: "array" + description: "" + title: "FilesList" + items: + $ref: "#/definitions/packagesownerrepo_files" + format: + type: "string" + description: "" + format_url: + type: "string" + description: "" + identifier_perm: + type: "string" + description: "Unique and permanent identifier for the package." + indexed: + type: "boolean" + description: "" + is_sync_awaiting: + type: "boolean" + description: "" + is_sync_completed: + type: "boolean" + description: "" + is_sync_failed: + type: "boolean" + description: "" + is_sync_in_flight: + type: "boolean" + description: "" + is_sync_in_progress: + type: "boolean" + description: "" + license: + type: "string" + description: "The license of this package." + name: + type: "string" + description: "The name of this package." + namespace: + type: "string" + description: "" + namespace_url: + type: "string" + description: "" + num_files: + type: "integer" + description: "" + package_type: + type: "string" + description: "The type of package contents." + release: + type: "string" + description: "The release of the package version (if any)." + repository: + type: "string" + description: "The repository the package will be copied to." + repository_url: + type: "string" + description: "" + security_scan_completed_at: + type: "string" + description: "The datetime the security scanning was completed." + security_scan_started_at: + type: "string" + description: "The datetime the security scanning was started." + security_scan_status: + type: "string" + description: "" + security_scan_status_updated_at: + type: "string" + description: "The datetime the security scanning status was updated." + self_html_url: + type: "string" + description: "" + self_url: + type: "string" + description: "" + signature_url: + type: "string" + description: "" + size: + type: "integer" + description: "The calculated size of the package." + slug: + type: "string" + description: "The public unique identifier for the package." + slug_perm: + type: "string" + description: "" + stage: + type: "string" + description: "The synchronisation (in progress) stage of the package." + stage_str: + type: "string" + description: "" + stage_updated_at: + type: "string" + description: "The datetime the package stage was updated at." + status: + type: "string" + description: "The synchronisation status of the package." + status_reason: + type: "string" + description: "A textual description for the synchronous status reason (if\ + \ any" + status_str: + type: "string" + description: "" + status_updated_at: + type: "string" + description: "The datetime the package status was updated at." + status_url: + type: "string" + description: "" + subtype: + type: "string" + description: "" + summary: + type: "string" + description: "A one-liner synopsis of this package." + sync_finished_at: + type: "string" + description: "The datetime the package sync was finished at." + sync_progress: + type: "integer" + description: "Synchronisation progress (from 0-100)" + tags: + type: "object" + description: "All tags on the package, grouped by tag type. This includes\ + \ immutable tags, but doesn't distinguish them from mutable. To see which\ + \ tags are immutable specifically, see the tags_immutable field." + properties: {} + tags_immutable: + type: "object" + description: "All immutable tags on the package, grouped by tag type. Immutable\ + \ tags cannot be (easily) deleted." + properties: {} + type_display: + type: "string" + description: "" + uploaded_at: + type: "string" + description: "The date this package was uploaded." + uploader: + type: "string" + description: "" + uploader_url: + type: "string" + description: "" + version: + type: "string" + description: "The raw version for this package." + version_orig: + type: "string" + description: "" + vulnerability_scan_results_url: + type: "string" + description: "" + example: + architectures: + - name: "name" + description: "description" + - name: "name" + description: "description" + security_scan_status_updated_at: "security_scan_status_updated_at" + checksum_sha256: "checksum_sha256" + release: "release" + package_type: "package_type" + repository: "repository" + identifier_perm: "identifier_perm" + stage_updated_at: "stage_updated_at" + tags_immutable: "{}" + slug: "slug" + security_scan_started_at: "security_scan_started_at" + security_scan_status: "security_scan_status" + indexed: true + format: "format" + status_str: "status_str" + version_orig: "version_orig" + namespace_url: "namespace_url" + slug_perm: "slug_perm" + version: "version" + tags: "{}" + license: "license" + filename: "filename" + size: 5 + cdn_url: "cdn_url" + uploaded_at: "uploaded_at" + name: "name" + sync_finished_at: "sync_finished_at" + files: + - checksum_sha512: "checksum_sha512" + checksum_sha1: "checksum_sha1" + checksum_sha256: "checksum_sha256" + is_primary: true + checksum_md5: "checksum_md5" + slug_perm: "slug_perm" + filename: "filename" + size: 5 + cdn_url: "cdn_url" + downloads: 1 + is_synchronised: true + is_downloadable: true + signature_url: "signature_url" + tag: "tag" + - checksum_sha512: "checksum_sha512" + checksum_sha1: "checksum_sha1" + checksum_sha256: "checksum_sha256" + is_primary: true + checksum_md5: "checksum_md5" + slug_perm: "slug_perm" + filename: "filename" + size: 5 + cdn_url: "cdn_url" + downloads: 1 + is_synchronised: true + is_downloadable: true + signature_url: "signature_url" + tag: "tag" + num_files: 1 + status: "status" + checksum_sha512: "checksum_sha512" + distro: "{}" + extension: "extension" + description: "description" + epoch: 6 + is_sync_completed: true + distro_version: "{}" + type_display: "type_display" + vulnerability_scan_results_url: "vulnerability_scan_results_url" + dependencies_checksum_md5: "dependencies_checksum_md5" + downloads: 0 + subtype: "subtype" + uploader: "uploader" + signature_url: "signature_url" + repository_url: "repository_url" + status_reason: "status_reason" + status_updated_at: "status_updated_at" + summary: "summary" + checksum_sha1: "checksum_sha1" + checksum_md5: "checksum_md5" + sync_progress: 5 + is_sync_awaiting: true + uploader_url: "uploader_url" + self_html_url: "self_html_url" + self_url: "self_url" + status_url: "status_url" + is_sync_in_flight: true + security_scan_completed_at: "security_scan_completed_at" + is_sync_in_progress: true + stage_str: "stage_str" + stage: "stage" + format_url: "format_url" + dependencies_url: "dependencies_url" + namespace: "namespace" + is_sync_failed: true + Distribution: + type: "object" + required: + - "name" + properties: + format: + type: "string" + description: "" + format_url: + type: "string" + description: "" + name: + type: "string" + description: "" + self_url: + type: "string" + description: "" + slug: + type: "string" + description: "The slug identifier for this distribution" + variants: + type: "string" + description: "" + versions: + type: "array" + description: "A list of the versions for this distribution" + title: "VersionsList" + items: + $ref: "#/definitions/distros_versions" + example: + format_url: "format_url" + versions: + - name: "name" + slug: "slug" + - name: "name" + slug: "slug" + format: "format" + name: "name" + variants: "variants" + self_url: "self_url" + slug: "slug" + PackagesUploadDeb: + type: "object" + required: + - "distribution" + - "package_file" + properties: + changes_file: + type: "string" + example: "y123456789" + description: "The changes archive containing the changes made to the source\ + \ and debian packaging files" + distribution: + type: "string" + example: "ubuntu/xenial" + description: "The distribution to store the package for." + package_file: + type: "string" + example: "y123456789" + description: "The primary file for the package." + republish: + type: "boolean" + description: "If true, the uploaded package will overwrite any others with\ + \ the same attributes (e.g. same version); otherwise, it will be flagged\ + \ as a duplicate." + sources_file: + type: "string" + example: "y123456789" + description: "The sources archive containing the source code for the binary" + tags: + type: "string" + description: "A comma-separated values list of tags to add to the package." + title: "PackagesUploadDeb" + example: + sources_file: "y123456789" + republish: true + changes_file: "y123456789" + distribution: "ubuntu/xenial" + package_file: "y123456789" + tags: "tags" + PackagesUploadHelm: + type: "object" + required: + - "package_file" + properties: + package_file: + type: "string" + example: "x123456789a" + description: "The primary file for the package." + republish: + type: "boolean" + description: "If true, the uploaded package will overwrite any others with\ + \ the same attributes (e.g. same version); otherwise, it will be flagged\ + \ as a duplicate." + tags: + type: "string" + description: "A comma-separated values list of tags to add to the package." + title: "PackagesUploadHelm" + example: + republish: true + package_file: "x123456789a" + tags: "tags" + PackagesValidateuploadDeb: + type: "object" + required: + - "distribution" + - "package_file" + properties: + changes_file: + type: "string" + example: "y123456789" + description: "The changes archive containing the changes made to the source\ + \ and debian packaging files" + distribution: + type: "string" + example: "ubuntu/xenial" + description: "The distribution to store the package for." + package_file: + type: "string" + example: "y123456789" + description: "The primary file for the package." + republish: + type: "boolean" + description: "If true, the uploaded package will overwrite any others with\ + \ the same attributes (e.g. same version); otherwise, it will be flagged\ + \ as a duplicate." + sources_file: + type: "string" + example: "y123456789" + description: "The sources archive containing the source code for the binary" + tags: + type: "string" + description: "A comma-separated values list of tags to add to the package." + title: "PackagesValidate-uploadDeb" + example: + sources_file: "y123456789" + republish: true + changes_file: "y123456789" + distribution: "ubuntu/xenial" + package_file: "y123456789" + tags: "tags" + Package: + type: "object" + properties: + architectures: + type: "array" + description: "" + title: "ArchitecturesList" + items: + $ref: "#/definitions/packagesownerrepo_architectures" + cdn_url: + type: "string" + description: "" + checksum_md5: + type: "string" + description: "" + checksum_sha1: + type: "string" + description: "" + checksum_sha256: + type: "string" + description: "" + checksum_sha512: + type: "string" + description: "" + dependencies_checksum_md5: + type: "string" + description: "A checksum of all of the package's dependencies." + dependencies_url: + type: "string" + description: "" + description: + type: "string" + description: "A textual description of this package." + distro: + type: "object" + description: "" + properties: {} + distro_version: + type: "object" + description: "" + properties: {} + downloads: + type: "integer" + description: "" + epoch: + type: "integer" + description: "The epoch of the package version (if any)." + extension: + type: "string" + description: "" + filename: + type: "string" + description: "" + files: + type: "array" + description: "" + title: "FilesList" + items: + $ref: "#/definitions/packagesownerrepo_files" + format: + type: "string" + description: "" + format_url: + type: "string" + description: "" + identifier_perm: + type: "string" + description: "Unique and permanent identifier for the package." + indexed: + type: "boolean" + description: "" + is_sync_awaiting: + type: "boolean" + description: "" + is_sync_completed: + type: "boolean" + description: "" + is_sync_failed: + type: "boolean" + description: "" + is_sync_in_flight: + type: "boolean" + description: "" + is_sync_in_progress: + type: "boolean" + description: "" + license: + type: "string" + description: "The license of this package." + name: + type: "string" + description: "The name of this package." + namespace: + type: "string" + description: "" + namespace_url: + type: "string" + description: "" + num_files: + type: "integer" + description: "" + package_type: + type: "string" + description: "The type of package contents." + release: + type: "string" + description: "The release of the package version (if any)." + repository: + type: "string" + description: "" + repository_url: + type: "string" + description: "" + security_scan_completed_at: + type: "string" + description: "The datetime the security scanning was completed." + security_scan_started_at: + type: "string" + description: "The datetime the security scanning was started." + security_scan_status: + type: "string" + description: "" + security_scan_status_updated_at: + type: "string" + description: "The datetime the security scanning status was updated." + self_html_url: + type: "string" + description: "" + self_url: + type: "string" + description: "" + signature_url: + type: "string" + description: "" + size: + type: "integer" + description: "The calculated size of the package." + slug: + type: "string" + description: "The public unique identifier for the package." + slug_perm: + type: "string" + description: "" + stage: + type: "string" + description: "The synchronisation (in progress) stage of the package." + stage_str: + type: "string" + description: "" + stage_updated_at: + type: "string" + description: "The datetime the package stage was updated at." + status: + type: "string" + description: "The synchronisation status of the package." + status_reason: + type: "string" + description: "A textual description for the synchronous status reason (if\ + \ any" + status_str: + type: "string" + description: "" + status_updated_at: + type: "string" + description: "The datetime the package status was updated at." + status_url: + type: "string" + description: "" + subtype: + type: "string" + description: "" + summary: + type: "string" + description: "A one-liner synopsis of this package." + sync_finished_at: + type: "string" + description: "The datetime the package sync was finished at." + sync_progress: + type: "integer" + description: "Synchronisation progress (from 0-100)" + tags: + type: "object" + description: "All tags on the package, grouped by tag type. This includes\ + \ immutable tags, but doesn't distinguish them from mutable. To see which\ + \ tags are immutable specifically, see the tags_immutable field." + properties: {} + tags_immutable: + type: "object" + description: "All immutable tags on the package, grouped by tag type. Immutable\ + \ tags cannot be (easily) deleted." + properties: {} + type_display: + type: "string" + description: "" + uploaded_at: + type: "string" + description: "The date this package was uploaded." + uploader: + type: "string" + description: "" + uploader_url: + type: "string" + description: "" + version: + type: "string" + description: "The raw version for this package." + version_orig: + type: "string" + description: "" + vulnerability_scan_results_url: + type: "string" + description: "" + example: + architectures: + - name: "name" + description: "description" + - name: "name" + description: "description" + security_scan_status_updated_at: "security_scan_status_updated_at" + checksum_sha256: "checksum_sha256" + release: "release" + package_type: "package_type" + repository: "repository" + identifier_perm: "identifier_perm" + stage_updated_at: "stage_updated_at" + tags_immutable: "{}" + slug: "slug" + security_scan_started_at: "security_scan_started_at" + security_scan_status: "security_scan_status" + indexed: true + format: "format" + status_str: "status_str" + version_orig: "version_orig" + namespace_url: "namespace_url" + slug_perm: "slug_perm" + version: "version" + tags: "{}" + license: "license" + filename: "filename" + size: 2 + cdn_url: "cdn_url" + uploaded_at: "uploaded_at" + name: "name" + sync_finished_at: "sync_finished_at" + files: + - checksum_sha512: "checksum_sha512" + checksum_sha1: "checksum_sha1" + checksum_sha256: "checksum_sha256" + is_primary: true + checksum_md5: "checksum_md5" + slug_perm: "slug_perm" + filename: "filename" + size: 5 + cdn_url: "cdn_url" + downloads: 1 + is_synchronised: true + is_downloadable: true + signature_url: "signature_url" + tag: "tag" + - checksum_sha512: "checksum_sha512" + checksum_sha1: "checksum_sha1" + checksum_sha256: "checksum_sha256" + is_primary: true + checksum_md5: "checksum_md5" + slug_perm: "slug_perm" + filename: "filename" + size: 5 + cdn_url: "cdn_url" + downloads: 1 + is_synchronised: true + is_downloadable: true + signature_url: "signature_url" + tag: "tag" + num_files: 5 + status: "status" + checksum_sha512: "checksum_sha512" + distro: "{}" + extension: "extension" + description: "description" + epoch: 6 + is_sync_completed: true + distro_version: "{}" + type_display: "type_display" + vulnerability_scan_results_url: "vulnerability_scan_results_url" + dependencies_checksum_md5: "dependencies_checksum_md5" + downloads: 0 + subtype: "subtype" + uploader: "uploader" + signature_url: "signature_url" + repository_url: "repository_url" + status_reason: "status_reason" + status_updated_at: "status_updated_at" + summary: "summary" + checksum_sha1: "checksum_sha1" + checksum_md5: "checksum_md5" + sync_progress: 7 + is_sync_awaiting: true + uploader_url: "uploader_url" + self_html_url: "self_html_url" + self_url: "self_url" + status_url: "status_url" + is_sync_in_flight: true + security_scan_completed_at: "security_scan_completed_at" + is_sync_in_progress: true + stage_str: "stage_str" + stage: "stage" + format_url: "format_url" + dependencies_url: "dependencies_url" + namespace: "namespace" + is_sync_failed: true + UserTokenCreate: + type: "object" + properties: + email: + type: "string" + description: "Email address to authenticate with" + password: + type: "string" + description: "Password to authenticate with" + title: "UserTokenCreate" + example: + password: "password" + email: "email" + PackagesValidateuploadConan: + type: "object" + required: + - "info_file" + - "manifest_file" + - "metadata_file" + - "package_file" + properties: + conan_channel: + type: "string" + example: "alpha" + description: "Conan channel." + conan_prefix: + type: "string" + example: "my-repository" + description: "Conan prefix (User)." + info_file: + type: "string" + example: "y1234456789b" + description: "The info file is an python file containing the package metadata." + manifest_file: + type: "string" + example: "y1234456789c" + description: "The info file is an python file containing the package metadata." + metadata_file: + type: "string" + example: "y1234456789a" + description: "The conan file is an python file containing the package metadata." + name: + type: "string" + example: "conan_package.tgz" + description: "The name of this package." + package_file: + type: "string" + example: "x123456789a" + description: "The primary file for the package." + republish: + type: "boolean" + description: "If true, the uploaded package will overwrite any others with\ + \ the same attributes (e.g. same version); otherwise, it will be flagged\ + \ as a duplicate." + tags: + type: "string" + description: "A comma-separated values list of tags to add to the package." + version: + type: "string" + example: "1.0.0" + description: "The raw version for this package." + title: "PackagesValidate-uploadConan" + example: + republish: true + name: "conan_package.tgz" + metadata_file: "y1234456789a" + package_file: "x123456789a" + conan_prefix: "my-repository" + version: "1.0.0" + conan_channel: "alpha" + info_file: "y1234456789b" + manifest_file: "y1234456789c" + tags: "tags" + Organization: + type: "object" + properties: + country: + type: "string" + description: "" + created_at: + type: "string" + description: "" + location: + type: "string" + description: "The city/town/area your organization is based in." + name: + type: "string" + description: "A descriptive name for your organization." + slug: + type: "string" + description: "" + slug_perm: + type: "string" + description: "" + tagline: + type: "string" + description: "A short public descriptive for your organization." + example: + country: "country" + name: "name" + created_at: "created_at" + tagline: "tagline" + location: "location" + slug_perm: "slug_perm" + slug: "slug" + QuotaHistory: + type: "object" + required: + - "history" + properties: + history: + type: "array" + example: + - days: 30 + display: + downloaded: + limit: "2 TB" + percentage: "0.0%" + used: "0 B" + storage_used: + limit: "1 TB" + percentage: "0.109%" + used: "1.1 GB" + uploaded: + limit: "Unlimited" + percentage: "∞" + used: "0 B" + end: "2020-10-10 12:35:23+00:00" + plan: "Package (Velocity)" + raw: + downloaded: + limit: 2199023255552 + percentage: 0.0 + used: 0 + storage_used: + limit: 1099511627776 + percentage: 0.109 + used: 1197653687 + uploaded: + limit: "" + percentage: 0.0 + used: 0 + start: "2020-09-10 12:35:23+00:00" + description: "" + title: "HistoryList" + items: + $ref: "#/definitions/QuotaHistory_history" + example: + history: + - days: 30 + display: + downloaded: + limit: "2 TB" + percentage: "0.0%" + used: "0 B" + storage_used: + limit: "1 TB" + percentage: "0.109%" + used: "1.1 GB" + uploaded: + limit: "Unlimited" + percentage: "∞" + used: "0 B" + end: "2020-10-10 12:35:23+00:00" + plan: "Package (Velocity)" + raw: + downloaded: + limit: 2199023255552 + percentage: 0.0 + used: 0 + storage_used: + limit: 1099511627776 + percentage: 0.109 + used: 1197653687 + uploaded: + limit: "" + percentage: 0.0 + used: 0 + start: "2020-09-10 12:35:23+00:00" + PackagesValidateuploadPython: + type: "object" + required: + - "package_file" + properties: + package_file: + type: "string" + example: "y123456789" + description: "The primary file for the package." + republish: + type: "boolean" + description: "If true, the uploaded package will overwrite any others with\ + \ the same attributes (e.g. same version); otherwise, it will be flagged\ + \ as a duplicate." + tags: + type: "string" + description: "A comma-separated values list of tags to add to the package." + title: "PackagesValidate-uploadPython" + example: + republish: true + package_file: "y123456789" + tags: "tags" + VagrantPackageUpload: + type: "object" + required: + - "name" + - "provider" + - "version" + properties: + architectures: + type: "array" + description: "" + title: "ArchitecturesList" + items: + $ref: "#/definitions/packagesownerrepo_architectures" + cdn_url: + type: "string" + description: "" + checksum_md5: + type: "string" + description: "" + checksum_sha1: + type: "string" + description: "" + checksum_sha256: + type: "string" + description: "" + checksum_sha512: + type: "string" + description: "" + dependencies_checksum_md5: + type: "string" + description: "A checksum of all of the package's dependencies." + dependencies_url: + type: "string" + description: "" + description: + type: "string" + description: "A textual description of this package." + distro: + type: "object" + description: "" + properties: {} + distro_version: + type: "object" + description: "" + properties: {} + downloads: + type: "integer" + description: "" + epoch: + type: "integer" + description: "The epoch of the package version (if any)." + extension: + type: "string" + description: "" + filename: + type: "string" + description: "" + files: + type: "array" + description: "" + title: "FilesList" + items: + $ref: "#/definitions/packagesownerrepo_files" + format: + type: "string" + description: "" + format_url: + type: "string" + description: "" + identifier_perm: + type: "string" + description: "Unique and permanent identifier for the package." + indexed: + type: "boolean" + description: "" + is_sync_awaiting: + type: "boolean" + description: "" + is_sync_completed: + type: "boolean" + description: "" + is_sync_failed: + type: "boolean" + description: "" + is_sync_in_flight: + type: "boolean" + description: "" + is_sync_in_progress: + type: "boolean" + description: "" + license: + type: "string" + description: "The license of this package." + name: + type: "string" + example: "tcl" + description: "The name of this package." + namespace: + type: "string" + description: "" + namespace_url: + type: "string" + description: "" + num_files: + type: "integer" + description: "" + package_type: + type: "string" + description: "The type of package contents." + provider: + type: "string" + example: "virtualbox" + description: "The virtual machine provider for the box." + release: + type: "string" + description: "The release of the package version (if any)." + repository: + type: "string" + description: "" + repository_url: + type: "string" + description: "" + security_scan_completed_at: + type: "string" + description: "The datetime the security scanning was completed." + security_scan_started_at: + type: "string" + description: "The datetime the security scanning was started." + security_scan_status: + type: "string" + description: "" + security_scan_status_updated_at: + type: "string" + description: "The datetime the security scanning status was updated." + self_html_url: + type: "string" + description: "" + self_url: + type: "string" + description: "" + signature_url: + type: "string" + description: "" + size: + type: "integer" + description: "The calculated size of the package." + slug: + type: "string" + description: "The public unique identifier for the package." + slug_perm: + type: "string" + description: "" + stage: + type: "string" + description: "The synchronisation (in progress) stage of the package." + stage_str: + type: "string" + description: "" + stage_updated_at: + type: "string" + description: "The datetime the package stage was updated at." + status: + type: "string" + description: "The synchronisation status of the package." + status_reason: + type: "string" + description: "A textual description for the synchronous status reason (if\ + \ any" + status_str: + type: "string" + description: "" + status_updated_at: + type: "string" + description: "The datetime the package status was updated at." + status_url: + type: "string" + description: "" + subtype: + type: "string" + description: "" + summary: + type: "string" + description: "A one-liner synopsis of this package." + sync_finished_at: + type: "string" + description: "The datetime the package sync was finished at." + sync_progress: + type: "integer" + description: "Synchronisation progress (from 0-100)" + tags_immutable: + type: "object" + description: "All immutable tags on the package, grouped by tag type. Immutable\ + \ tags cannot be (easily) deleted." + properties: {} + type_display: + type: "string" + description: "" + uploaded_at: + type: "string" + description: "The date this package was uploaded." + uploader: + type: "string" + description: "" + uploader_url: + type: "string" + description: "" + version: + type: "string" + example: "1.0" + description: "The raw version for this package." + version_orig: + type: "string" + description: "" + vulnerability_scan_results_url: + type: "string" + description: "" + example: + architectures: + - name: "name" + description: "description" + - name: "name" + description: "description" + security_scan_status_updated_at: "security_scan_status_updated_at" + checksum_sha256: "checksum_sha256" + release: "release" + package_type: "package_type" + repository: "repository" + identifier_perm: "identifier_perm" + stage_updated_at: "stage_updated_at" + tags_immutable: "{}" + slug: "slug" + security_scan_started_at: "security_scan_started_at" + security_scan_status: "security_scan_status" + indexed: true + format: "format" + status_str: "status_str" + version_orig: "version_orig" + namespace_url: "namespace_url" + slug_perm: "slug_perm" + version: "1.0" + license: "license" + filename: "filename" + size: 5 + cdn_url: "cdn_url" + uploaded_at: "uploaded_at" + name: "tcl" + sync_finished_at: "sync_finished_at" + files: + - checksum_sha512: "checksum_sha512" + checksum_sha1: "checksum_sha1" + checksum_sha256: "checksum_sha256" + is_primary: true + checksum_md5: "checksum_md5" + slug_perm: "slug_perm" + filename: "filename" + size: 5 + cdn_url: "cdn_url" + downloads: 1 + is_synchronised: true + is_downloadable: true + signature_url: "signature_url" + tag: "tag" + - checksum_sha512: "checksum_sha512" + checksum_sha1: "checksum_sha1" + checksum_sha256: "checksum_sha256" + is_primary: true + checksum_md5: "checksum_md5" + slug_perm: "slug_perm" + filename: "filename" + size: 5 + cdn_url: "cdn_url" + downloads: 1 + is_synchronised: true + is_downloadable: true + signature_url: "signature_url" + tag: "tag" + num_files: 1 + status: "status" + checksum_sha512: "checksum_sha512" + distro: "{}" + extension: "extension" + description: "description" + epoch: 6 + is_sync_completed: true + distro_version: "{}" + type_display: "type_display" + vulnerability_scan_results_url: "vulnerability_scan_results_url" + dependencies_checksum_md5: "dependencies_checksum_md5" + downloads: 0 + provider: "virtualbox" + subtype: "subtype" + uploader: "uploader" + signature_url: "signature_url" + repository_url: "repository_url" + status_reason: "status_reason" + status_updated_at: "status_updated_at" + summary: "summary" + checksum_sha1: "checksum_sha1" + checksum_md5: "checksum_md5" + sync_progress: 5 + is_sync_awaiting: true + uploader_url: "uploader_url" + self_html_url: "self_html_url" + self_url: "self_url" + status_url: "status_url" + is_sync_in_flight: true + security_scan_completed_at: "security_scan_completed_at" + is_sync_in_progress: true + stage_str: "stage_str" + stage: "stage" + format_url: "format_url" + dependencies_url: "dependencies_url" + namespace: "namespace" + is_sync_failed: true + PackageStatus: + type: "object" + properties: + is_sync_awaiting: + type: "boolean" + description: "" + is_sync_completed: + type: "boolean" + description: "" + is_sync_failed: + type: "boolean" + description: "" + is_sync_in_flight: + type: "boolean" + description: "" + is_sync_in_progress: + type: "boolean" + description: "" + self_url: + type: "string" + description: "" + stage: + type: "string" + description: "The synchronisation (in progress) stage of the package." + stage_str: + type: "string" + description: "" + stage_updated_at: + type: "string" + description: "The datetime the package stage was updated at." + status: + type: "string" + description: "The synchronisation status of the package." + status_reason: + type: "string" + description: "A textual description for the synchronous status reason (if\ + \ any" + status_str: + type: "string" + description: "" + status_updated_at: + type: "string" + description: "The datetime the package status was updated at." + sync_finished_at: + type: "string" + description: "The datetime the package sync was finished at." + sync_progress: + type: "integer" + description: "Synchronisation progress (from 0-100)" + example: + status_str: "status_str" + sync_progress: 0 + is_sync_awaiting: true + is_sync_completed: true + self_url: "self_url" + is_sync_in_flight: true + is_sync_in_progress: true + stage_str: "stage_str" + stage_updated_at: "stage_updated_at" + stage: "stage" + sync_finished_at: "sync_finished_at" + is_sync_failed: true + status_reason: "status_reason" + status: "status" + status_updated_at: "status_updated_at" + PackagesValidateuploadP2: + type: "object" + required: + - "package_file" + properties: + package_file: + type: "string" + description: "The primary file for the package." + republish: + type: "boolean" + description: "If true, the uploaded package will overwrite any others with\ + \ the same attributes (e.g. same version); otherwise, it will be flagged\ + \ as a duplicate." + tags: + type: "string" + description: "A comma-separated values list of tags to add to the package." + title: "PackagesValidate-uploadP2" + example: + republish: true + package_file: "package_file" + tags: "tags" + PackagesUploadAlpine: + type: "object" + required: + - "distribution" + - "package_file" + properties: + distribution: + type: "string" + example: "alpine/v3.8" + description: "The distribution to store the package for." + package_file: + type: "string" + example: "a123456789" + description: "The primary file for the package." + republish: + type: "boolean" + description: "If true, the uploaded package will overwrite any others with\ + \ the same attributes (e.g. same version); otherwise, it will be flagged\ + \ as a duplicate." + tags: + type: "string" + description: "A comma-separated values list of tags to add to the package." + title: "PackagesUploadAlpine" + example: + republish: true + distribution: "alpine/v3.8" + package_file: "a123456789" + tags: "tags" + VulnerabilityScanResults: + type: "object" + required: + - "identifier" + - "package" + - "scan" + - "scan_id" + properties: + created_at: + type: "string" + example: "2020-01-01T12:00:00.000000Z" + description: "The time this scan result was stored." + has_vulnerabilities: + type: "boolean" + example: true + description: "Do the results contain any known vulnerabilities?" + identifier: + type: "string" + example: "HKmoU6OHbyj4ha3u" + description: "" + max_severity: + type: "string" + example: "HIGH" + description: "" + num_vulnerabilities: + type: "integer" + example: 2 + description: "" + package: + type: "object" + example: + identifier: "XEtJh5CTzcr3" + name: "insecure-image" + version: "d391c46c9c1a3b9a4c772213bc07e8d9e283775fddf6c7931f702f65cf7e6469" + description: "" + properties: {} + scan: + type: "object" + example: + results: + - affected_version: "4.19.67-2+deb10u2" + description: "A memory leak in the rsi_send_beacon() function in drivers/net/wireless/rsi/rsi_91x_mgmt.c\ + \ in the Linux kernel through 5.3.11 allows attackers to cause a denial\ + \ of service (memory consumption) by triggering rsi_prepare_beacon()\ + \ failures, aka CID-d563131ef23c." + fixed_version: "4.19.98-1" + package_name: "linux-libc-dev" + references: + - "https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-19071" + - "https://github.com/torvalds/linux/commit/d563131ef23cbc756026f839a82598c8445bc45f" + - "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/O3PSDE6PTOTVBK2YTKB2TFQP2SUBVSNF/" + - "https://security.netapp.com/advisory/ntap-20191205-0001/" + - "https://usn.ubuntu.com/4258-1/" + - "https://usn.ubuntu.com/usn/usn-4258-1" + severity: "HIGH" + severity_source: "debian" + vulnerability_id: "CVE-2019-19071" + - affected_version: "5.0-4" + description: "" + fixed_version: "" + package_name: "bash" + references: [] + severity: "LOW" + severity_source: "debian" + vulnerability_id: "TEMP-0841856-B18BAF" + target: "/oci (debian 10.2)" + type: "debian" + description: "" + properties: {} + scan_id: + type: "integer" + example: 1 + description: "" + example: + identifier: "HKmoU6OHbyj4ha3u" + max_severity: "HIGH" + package: + identifier: "XEtJh5CTzcr3" + name: "insecure-image" + version: "d391c46c9c1a3b9a4c772213bc07e8d9e283775fddf6c7931f702f65cf7e6469" + has_vulnerabilities: true + scan: + results: + - affected_version: "4.19.67-2+deb10u2" + description: "A memory leak in the rsi_send_beacon() function in drivers/net/wireless/rsi/rsi_91x_mgmt.c\ + \ in the Linux kernel through 5.3.11 allows attackers to cause a denial\ + \ of service (memory consumption) by triggering rsi_prepare_beacon() failures,\ + \ aka CID-d563131ef23c." + fixed_version: "4.19.98-1" + package_name: "linux-libc-dev" + references: + - "https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-19071" + - "https://github.com/torvalds/linux/commit/d563131ef23cbc756026f839a82598c8445bc45f" + - "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/O3PSDE6PTOTVBK2YTKB2TFQP2SUBVSNF/" + - "https://security.netapp.com/advisory/ntap-20191205-0001/" + - "https://usn.ubuntu.com/4258-1/" + - "https://usn.ubuntu.com/usn/usn-4258-1" + severity: "HIGH" + severity_source: "debian" + vulnerability_id: "CVE-2019-19071" + - affected_version: "5.0-4" + description: "" + fixed_version: "" + package_name: "bash" + references: [] + severity: "LOW" + severity_source: "debian" + vulnerability_id: "TEMP-0841856-B18BAF" + target: "/oci (debian 10.2)" + type: "debian" + created_at: "2020-01-01T12:00:00.000000Z" + num_vulnerabilities: 2 + scan_id: 1 + PackagesUploadRaw: + type: "object" + required: + - "package_file" + properties: + content_type: + type: "string" + description: "A custom content/media (also known as MIME) type to be sent\ + \ when downloading this file. By default Cloudsmith will attempt to detect\ + \ the type, but if you need to override it, you can specify it here." + description: + type: "string" + example: "Everything about packaging files." + description: "A textual description of this package." + name: + type: "string" + example: "my-package" + description: "The name of this package." + package_file: + type: "string" + example: "y123456789" + description: "The primary file for the package." + republish: + type: "boolean" + description: "If true, the uploaded package will overwrite any others with\ + \ the same attributes (e.g. same version); otherwise, it will be flagged\ + \ as a duplicate." + summary: + type: "string" + example: "My Package File" + description: "A one-liner synopsis of this package." + tags: + type: "string" + description: "A comma-separated values list of tags to add to the package." + version: + type: "string" + example: "1.0" + description: "The raw version for this package." + title: "PackagesUploadRaw" + example: + summary: "My Package File" + content_type: "content_type" + republish: true + name: "my-package" + description: "Everything about packaging files." + package_file: "y123456789" + version: "1.0" + tags: "tags" + PackagesUploadMaven: + type: "object" + required: + - "package_file" + properties: + artifact_id: + type: "string" + example: "cloudsmith-example" + description: "The ID of the artifact." + group_id: + type: "string" + example: "io.cloudsmith.example" + description: "Artifact's group ID." + javadoc_file: + type: "string" + example: "y1234456789c" + description: "Adds bundled Java documentation to the Maven package" + package_file: + type: "string" + example: "y1234456789a" + description: "The primary file for the package." + packaging: + type: "string" + description: "Artifact's Maven packaging type." + pom_file: + type: "string" + example: "y1234456789b" + description: "The POM file is an XML file containing the Maven coordinates." + republish: + type: "boolean" + description: "If true, the uploaded package will overwrite any others with\ + \ the same attributes (e.g. same version); otherwise, it will be flagged\ + \ as a duplicate." + sources_file: + type: "string" + example: "y1234456789d" + description: "Adds bundled Java source code to the Maven package." + tags: + type: "string" + description: "A comma-separated values list of tags to add to the package." + tests_file: + type: "string" + example: "y1234456789e" + description: "Adds bundled Java tests to the Maven package." + version: + type: "string" + description: "The raw version for this package." + title: "PackagesUploadMaven" + example: + sources_file: "y1234456789d" + tests_file: "y1234456789e" + republish: true + group_id: "io.cloudsmith.example" + javadoc_file: "y1234456789c" + packaging: "packaging" + artifact_id: "cloudsmith-example" + package_file: "y1234456789a" + version: "version" + pom_file: "y1234456789b" + tags: "tags" + ResourcesRateCheck: + type: "object" + properties: + resources: + type: "object" + example: + core: + interval: 5.123456789 + limit: 3600 + remaining: 3595 + reset: 1646245156 + reset_iso_8601: "2022-03-02T18:19:16.259727+00:00" + throttled: false + description: "Rate limit values per resource" + properties: {} + example: + resources: + core: + interval: 5.123456789 + limit: 3600 + remaining: 3595 + reset: 1646245156 + reset_iso_8601: "2022-03-02T18:19:16.259727+00:00" + throttled: false + UserBrief: + type: "object" + properties: + authenticated: + type: "boolean" + example: true + description: "If true then you're logged in as a user." + email: + type: "string" + example: "user@example.com" + description: "Your email address that we use to contact you. This is only\ + \ visible to you." + name: + type: "string" + example: "Example User" + description: "The full name of the user (if any)." + profile_url: + type: "string" + description: "The URL for the full profile of the user." + self_url: + type: "string" + description: "" + slug: + type: "string" + example: "example-user" + description: "" + slug_perm: + type: "string" + example: "x1y2z3z4y" + description: "" + example: + authenticated: true + profile_url: "profile_url" + name: "Example User" + slug_perm: "x1y2z3z4y" + email: "user@example.com" + self_url: "self_url" + slug: "example-user" + PackagesValidateuploadCocoapods: + type: "object" + required: + - "package_file" + properties: + package_file: + type: "string" + example: "z123456789" + description: "The primary file for the package." + republish: + type: "boolean" + description: "If true, the uploaded package will overwrite any others with\ + \ the same attributes (e.g. same version); otherwise, it will be flagged\ + \ as a duplicate." + tags: + type: "string" + description: "A comma-separated values list of tags to add to the package." + title: "PackagesValidate-uploadCocoapods" + example: + republish: true + package_file: "z123456789" + tags: "tags" + PackagesUploadNuget: + type: "object" + required: + - "package_file" + properties: + package_file: + type: "string" + example: "y1234456789a" + description: "The primary file for the package." + republish: + type: "boolean" + description: "If true, the uploaded package will overwrite any others with\ + \ the same attributes (e.g. same version); otherwise, it will be flagged\ + \ as a duplicate." + symbols_file: + type: "string" + example: "y1234456789b" + description: "Attaches a symbols file to the package." + tags: + type: "string" + description: "A comma-separated values list of tags to add to the package." + title: "PackagesUploadNuget" + example: + republish: true + symbols_file: "y1234456789b" + package_file: "y1234456789a" + tags: "tags" + PackagesUploadVagrant: + type: "object" + required: + - "name" + - "package_file" + - "provider" + - "version" + properties: + name: + type: "string" + example: "tcl" + description: "The name of this package." + package_file: + type: "string" + example: "y123456789x" + description: "The primary file for the package." + provider: + type: "string" + example: "virtualbox" + description: "The virtual machine provider for the box." + republish: + type: "boolean" + description: "If true, the uploaded package will overwrite any others with\ + \ the same attributes (e.g. same version); otherwise, it will be flagged\ + \ as a duplicate." + tags: + type: "string" + description: "A comma-separated values list of tags to add to the package." + version: + type: "string" + example: "1.0" + description: "The raw version for this package." + title: "PackagesUploadVagrant" + example: + republish: true + provider: "virtualbox" + name: "tcl" + package_file: "y123456789x" + version: "1.0" + tags: "tags" + RepositoryTokenSync_tokens: + type: "object" + properties: + clients: + type: "integer" + description: "" + created_at: + type: "string" + description: "The datetime the token was updated at." + created_by: + type: "string" + description: "" + created_by_url: + type: "string" + description: "" + default: + type: "boolean" + description: "If selected this is the default token for this repository." + disable_url: + type: "string" + description: "" + downloads: + type: "integer" + description: "" + enable_url: + type: "string" + description: "" + eula_accepted: + type: "object" + description: "" + properties: {} + eula_accepted_at: + type: "string" + description: "The datetime the EULA was accepted at." + eula_accepted_from: + type: "string" + description: "" + eula_required: + type: "boolean" + description: "If checked, a EULA acceptance is required for this token." + has_limits: + type: "boolean" + description: "" + identifier: + type: "integer" + description: "" + is_active: + type: "boolean" + description: "If enabled, the token will allow downloads based on configured\ + \ restrictions (if any)." + is_limited: + type: "boolean" + description: "" + limit_bandwidth: + type: "integer" + description: "The maximum download bandwidth allowed for the token. Values\ + \ are expressed as the selected unit of bandwidth. Please note that since\ + \ downloads are calculated asynchronously (after the download happens),\ + \ the limit may not be imposed immediately but at a later point. " + limit_bandwidth_unit: + type: "string" + description: "" + limit_date_range_from: + type: "string" + description: "The starting date/time the token is allowed to be used from." + limit_date_range_to: + type: "string" + description: "The ending date/time the token is allowed to be used until." + limit_num_clients: + type: "integer" + description: "The maximum number of unique clients allowed for the token.\ + \ Please note that since clients are calculated asynchronously (after the\ + \ download happens), the limit may not be imposed immediately but at a later\ + \ point." + limit_num_downloads: + type: "integer" + description: "The maximum number of downloads allowed for the token. Please\ + \ note that since downloads are calculated asynchronously (after the download\ + \ happens), the limit may not be imposed immediately but at a later point." + limit_package_query: + type: "string" + description: "The package-based search query to apply to restrict downloads\ + \ to. This uses the same syntax as the standard search used for repositories,\ + \ and also supports boolean logic operators such as OR/AND/NOT and parentheses\ + \ for grouping. This will still allow access to non-package files, such\ + \ as metadata." + limit_path_query: + type: "string" + description: "The path-based search query to apply to restrict downloads to.\ + \ This supports boolean logic operators such as OR/AND/NOT and parentheses\ + \ for grouping. The path evaluated does not include the domain name, the\ + \ namespace, the entitlement code used, the package format, etc. and it\ + \ always starts with a forward slash." + metadata: + type: "string" + description: "" + name: + type: "string" + description: "" + refresh_url: + type: "string" + description: "" + reset_url: + type: "string" + description: "" + scheduled_reset_at: + type: "string" + description: "The time at which the scheduled reset period has elapsed and\ + \ the token limits were automatically reset to zero." + scheduled_reset_period: + type: "string" + description: "" + self_url: + type: "string" + description: "" + slug_perm: + type: "string" + description: "" + token: + type: "string" + description: "" + updated_at: + type: "string" + description: "The datetime the token was updated at." + updated_by: + type: "string" + description: "" + updated_by_url: + type: "string" + description: "" + usage: + type: "string" + description: "" + user: + type: "string" + description: "" + user_url: + type: "string" + description: "" + example: + limit_date_range_to: "limit_date_range_to" + metadata: "metadata" + clients: 0 + limit_bandwidth_unit: "limit_bandwidth_unit" + scheduled_reset_at: "scheduled_reset_at" + usage: "usage" + limit_bandwidth: 5 + created_at: "created_at" + limit_num_clients: 5 + eula_accepted_at: "eula_accepted_at" + limit_package_query: "limit_package_query" + limit_path_query: "limit_path_query" + default: true + updated_at: "updated_at" + downloads: 6 + user_url: "user_url" + limit_date_range_from: "limit_date_range_from" + reset_url: "reset_url" + limit_num_downloads: 2 + eula_required: true + refresh_url: "refresh_url" + scheduled_reset_period: "scheduled_reset_period" + identifier: 1 + is_active: true + eula_accepted: "{}" + eula_accepted_from: "eula_accepted_from" + created_by_url: "created_by_url" + is_limited: true + slug_perm: "slug_perm" + created_by: "created_by" + enable_url: "enable_url" + self_url: "self_url" + token: "token" + updated_by_url: "updated_by_url" + disable_url: "disable_url" + name: "name" + updated_by: "updated_by" + has_limits: true + user: "user" + PackagesValidateuploadComposer: + type: "object" + required: + - "package_file" + properties: + package_file: + type: "string" + example: "y123456789" + description: "The primary file for the package." + republish: + type: "boolean" + description: "If true, the uploaded package will overwrite any others with\ + \ the same attributes (e.g. same version); otherwise, it will be flagged\ + \ as a duplicate." + tags: + type: "string" + description: "A comma-separated values list of tags to add to the package." + title: "PackagesValidate-uploadComposer" + example: + republish: true + package_file: "y123456789" + tags: "tags" + EntitlementsRefresh: + type: "object" + properties: + eula_required: + type: "boolean" + description: "If checked, a EULA acceptance is required for this token." + is_active: + type: "boolean" + description: "If enabled, the token will allow downloads based on configured\ + \ restrictions (if any)." + limit_bandwidth: + type: "integer" + description: "The maximum download bandwidth allowed for the token. Values\ + \ are expressed as the selected unit of bandwidth. Please note that since\ + \ downloads are calculated asynchronously (after the download happens),\ + \ the limit may not be imposed immediately but at a later point. " + limit_bandwidth_unit: + type: "string" + description: "None" + limit_date_range_from: + type: "string" + description: "The starting date/time the token is allowed to be used from." + limit_date_range_to: + type: "string" + description: "The ending date/time the token is allowed to be used until." + limit_num_clients: + type: "integer" + description: "The maximum number of unique clients allowed for the token.\ + \ Please note that since clients are calculated asynchronously (after the\ + \ download happens), the limit may not be imposed immediately but at a later\ + \ point." + limit_num_downloads: + type: "integer" + description: "The maximum number of downloads allowed for the token. Please\ + \ note that since downloads are calculated asynchronously (after the download\ + \ happens), the limit may not be imposed immediately but at a later point." + limit_package_query: + type: "string" + description: "The package-based search query to apply to restrict downloads\ + \ to. This uses the same syntax as the standard search used for repositories,\ + \ and also supports boolean logic operators such as OR/AND/NOT and parentheses\ + \ for grouping. This will still allow access to non-package files, such\ + \ as metadata." + limit_path_query: + type: "string" + description: "The path-based search query to apply to restrict downloads to.\ + \ This supports boolean logic operators such as OR/AND/NOT and parentheses\ + \ for grouping. The path evaluated does not include the domain name, the\ + \ namespace, the entitlement code used, the package format, etc. and it\ + \ always starts with a forward slash." + metadata: + type: "object" + description: "None" + properties: {} + scheduled_reset_at: + type: "string" + description: "The time at which the scheduled reset period has elapsed and\ + \ the token limits were automatically reset to zero." + scheduled_reset_period: + type: "string" + description: "None" + token: + type: "string" + description: "None" + title: "EntitlementsRefresh" + example: + limit_date_range_to: "limit_date_range_to" + metadata: "{}" + is_active: true + limit_bandwidth_unit: "limit_bandwidth_unit" + scheduled_reset_at: "scheduled_reset_at" + limit_bandwidth: 0 + limit_num_clients: 6 + limit_package_query: "limit_package_query" + limit_path_query: "limit_path_query" + token: "token" + limit_date_range_from: "limit_date_range_from" + limit_num_downloads: 1 + eula_required: true + scheduled_reset_period: "scheduled_reset_period" + PackagesValidateuploadRuby: + type: "object" + required: + - "package_file" + properties: + package_file: + type: "string" + example: "y123456789" + description: "The primary file for the package." + republish: + type: "boolean" + description: "If true, the uploaded package will overwrite any others with\ + \ the same attributes (e.g. same version); otherwise, it will be flagged\ + \ as a duplicate." + tags: + type: "string" + description: "A comma-separated values list of tags to add to the package." + title: "PackagesValidate-uploadRuby" + example: + republish: true + package_file: "y123456789" + tags: "tags" + PackageFilePartsUpload: + type: "object" + properties: + identifier: + type: "string" + description: "The identifier for the file to use uploading parts." + upload_querystring: + type: "string" + description: "The querystring to use for the next-step PUT upload." + upload_url: + type: "string" + description: "The URL to use for the next-step PUT upload" + example: + identifier: "identifier" + upload_querystring: "upload_querystring" + upload_url: "upload_url" + Repository: + type: "object" + required: + - "name" + properties: + cdn_url: + type: "string" + description: "Base URL from which packages and other artifacts are downloaded." + created_at: + type: "string" + description: "" + deleted_at: + type: "string" + description: "" + description: + type: "string" + description: "A description of the repository's purpose/contents." + gpg_keys: + type: "array" + description: "" + title: "Gpg keysList" + items: + $ref: "#/definitions/repos_gpg_keys" + index_files: + type: "boolean" + description: "If checked, files contained in packages will be indexed, which\ + \ increase the synchronisation time required for packages. Note that it\ + \ is recommended you keep this enabled unless the synchronisation time is\ + \ significantly impacted." + is_open_source: + type: "boolean" + description: "" + is_private: + type: "boolean" + description: "" + is_public: + type: "boolean" + description: "" + name: + type: "string" + description: "A descriptive name for the repository." + namespace: + type: "string" + description: "Namespace to which this repository belongs." + namespace_url: + type: "string" + description: "API endpoint where data about this namespace can be retrieved." + num_downloads: + type: "integer" + description: "The number of downloads for packages in the repository." + package_count: + type: "integer" + description: "The number of packages in the repository." + package_group_count: + type: "integer" + description: "The number of groups in the repository." + repository_type: + type: "string" + description: "The repository type changes how it is accessed and billed. Private\ + \ repositories can only be used on paid plans, but are visible only to you\ + \ or authorised delegates. Open-Source repositories are always visible to\ + \ everyone and are restricted by licensing, but are free to use and come\ + \ with generous bandwidth/storage. You can only select Open-Source at repository\ + \ creation time." + repository_type_str: + type: "string" + description: "The repository type changes how it is accessed and billed. Private\ + \ repositories can only be used on paid plans, but are visible only to you\ + \ or authorised delegates. Public repositories are free to use on all plans\ + \ and visible to all Cloudsmith users." + self_html_url: + type: "string" + description: "Website URL for this repository." + self_url: + type: "string" + description: "API endpoint where data about this repository can be retrieved." + size: + type: "integer" + description: "The calculated size of the repository." + size_str: + type: "string" + description: "The calculated size of the repository (human readable)." + slug: + type: "string" + description: "The slug identifies the repository in URIs." + slug_perm: + type: "string" + description: "The slug_perm immutably identifies the repository. It will never\ + \ change once a repository has been created." + storage_region: + type: "string" + description: "The Cloudsmith region in which package files are stored." + example: + is_private: true + created_at: "created_at" + description: "description" + namespace_url: "namespace_url" + self_html_url: "self_html_url" + slug_perm: "slug_perm" + deleted_at: "deleted_at" + index_files: true + num_downloads: 0 + repository_type: "repository_type" + self_url: "self_url" + package_count: 6 + storage_region: "storage_region" + size_str: "size_str" + package_group_count: 1 + size: 5 + cdn_url: "cdn_url" + repository_type_str: "repository_type_str" + gpg_keys: + - public_key: "public_key" + default: true + fingerprint: "fingerprint" + active: true + created_at: "created_at" + comment: "comment" + fingerprint_short: "fingerprint_short" + - public_key: "public_key" + default: true + fingerprint: "fingerprint" + active: true + created_at: "created_at" + comment: "comment" + fingerprint_short: "fingerprint_short" + is_open_source: true + is_public: true + name: "name" + namespace: "namespace" + slug: "slug" + PackageUsageMetrics: + type: "object" + required: + - "packages" + properties: + packages: + type: "object" + example: + active: 1 + bandwidth: + average: + display: "11 B" + units: "bytes" + value: 11 + highest: + display: "11 B" + units: "bytes" + value: 11 + lowest: + display: "11 B" + units: "bytes" + value: 11 + total: + display: "11 B" + units: "bytes" + value: 11 + downloads: + average: + value: 5 + highest: + value: 5 + lowest: + value: 5 + total: + value: 5 + inactive: 0 + total: 0 + description: "" + properties: {} + example: + packages: + active: 1 + bandwidth: + average: + display: "11 B" + units: "bytes" + value: 11 + highest: + display: "11 B" + units: "bytes" + value: 11 + lowest: + display: "11 B" + units: "bytes" + value: 11 + total: + display: "11 B" + units: "bytes" + value: 11 + downloads: + average: + value: 5 + highest: + value: 5 + lowest: + value: 5 + total: + value: 5 + inactive: 0 + total: 0 + ReposCreate: + type: "object" + required: + - "name" + properties: + description: + type: "string" + description: "A description of the repository's purpose/contents." + index_files: + type: "boolean" + description: "If checked, files contained in packages will be indexed, which\ + \ increase the synchronisation time required for packages. Note that it\ + \ is recommended you keep this enabled unless the synchronisation time is\ + \ significantly impacted." + name: + type: "string" + description: "A descriptive name for the repository." + repository_type_str: + type: "string" + description: "The repository type changes how it is accessed and billed. Private\ + \ repositories can only be used on paid plans, but are visible only to you\ + \ or authorised delegates. Public repositories are free to use on all plans\ + \ and visible to all Cloudsmith users." + slug: + type: "string" + description: "The slug identifies the repository in URIs." + storage_region: + type: "string" + description: "The Cloudsmith region in which package files are stored." + title: "ReposCreate" + example: + storage_region: "storage_region" + repository_type_str: "repository_type_str" + name: "name" + description: "description" + index_files: true + slug: "slug" + formats_distributions: + type: "object" + properties: + name: + type: "string" + description: "" + self_url: + type: "string" + description: "" + slug: + type: "string" + description: "The slug identifier for this distribution" + variants: + type: "string" + description: "" + example: + name: "name" + variants: "variants" + self_url: "self_url" + slug: "slug" + PackagesValidateuploadDocker: + type: "object" + required: + - "package_file" + properties: + package_file: + type: "string" + example: "y123456789" + description: "The primary file for the package." + republish: + type: "boolean" + description: "If true, the uploaded package will overwrite any others with\ + \ the same attributes (e.g. same version); otherwise, it will be flagged\ + \ as a duplicate." + tags: + type: "string" + description: "A comma-separated values list of tags to add to the package." + title: "PackagesValidate-uploadDocker" + example: + republish: true + package_file: "y123456789" + tags: "tags" + PackageDependencies: + type: "object" + required: + - "dependencies" + properties: + dependencies: + type: "array" + description: "" + title: "DependenciesList" + items: + $ref: "#/definitions/PackageDependencies_dependencies" + example: + dependencies: + - dep_type: "dep_type" + name: "name" + version: "version" + operator: "operator" + - dep_type: "dep_type" + name: "name" + version: "version" + operator: "operator" + PackageMove: + type: "object" + properties: + architectures: + type: "array" + description: "" + title: "ArchitecturesList" + items: + $ref: "#/definitions/packagesownerrepo_architectures" + cdn_url: + type: "string" + description: "" + checksum_md5: + type: "string" + description: "" + checksum_sha1: + type: "string" + description: "" + checksum_sha256: + type: "string" + description: "" + checksum_sha512: + type: "string" + description: "" + dependencies_checksum_md5: + type: "string" + description: "A checksum of all of the package's dependencies." + dependencies_url: + type: "string" + description: "" + description: + type: "string" + description: "A textual description of this package." + distro: + type: "object" + description: "" + properties: {} + distro_version: + type: "object" + description: "" + properties: {} + downloads: + type: "integer" + description: "" + epoch: + type: "integer" + description: "The epoch of the package version (if any)." + extension: + type: "string" + description: "" + filename: + type: "string" + description: "" + files: + type: "array" + description: "" + title: "FilesList" + items: + $ref: "#/definitions/packagesownerrepo_files" + format: + type: "string" + description: "" + format_url: + type: "string" + description: "" + identifier_perm: + type: "string" + description: "Unique and permanent identifier for the package." + indexed: + type: "boolean" + description: "" + is_sync_awaiting: + type: "boolean" + description: "" + is_sync_completed: + type: "boolean" + description: "" + is_sync_failed: + type: "boolean" + description: "" + is_sync_in_flight: + type: "boolean" + description: "" + is_sync_in_progress: + type: "boolean" + description: "" + license: + type: "string" + description: "The license of this package." + name: + type: "string" + description: "The name of this package." + namespace: + type: "string" + description: "" + namespace_url: + type: "string" + description: "" + num_files: + type: "integer" + description: "" + package_type: + type: "string" + description: "The type of package contents." + release: + type: "string" + description: "The release of the package version (if any)." + repository: + type: "string" + description: "The repository the package will be moved to." + repository_url: + type: "string" + description: "" + security_scan_completed_at: + type: "string" + description: "The datetime the security scanning was completed." + security_scan_started_at: + type: "string" + description: "The datetime the security scanning was started." + security_scan_status: + type: "string" + description: "" + security_scan_status_updated_at: + type: "string" + description: "The datetime the security scanning status was updated." + self_html_url: + type: "string" + description: "" + self_url: + type: "string" + description: "" + signature_url: + type: "string" + description: "" + size: + type: "integer" + description: "The calculated size of the package." + slug: + type: "string" + description: "The public unique identifier for the package." + slug_perm: + type: "string" + description: "" + stage: + type: "string" + description: "The synchronisation (in progress) stage of the package." + stage_str: + type: "string" + description: "" + stage_updated_at: + type: "string" + description: "The datetime the package stage was updated at." + status: + type: "string" + description: "The synchronisation status of the package." + status_reason: + type: "string" + description: "A textual description for the synchronous status reason (if\ + \ any" + status_str: + type: "string" + description: "" + status_updated_at: + type: "string" + description: "The datetime the package status was updated at." + status_url: + type: "string" + description: "" + subtype: + type: "string" + description: "" + summary: + type: "string" + description: "A one-liner synopsis of this package." + sync_finished_at: + type: "string" + description: "The datetime the package sync was finished at." + sync_progress: + type: "integer" + description: "Synchronisation progress (from 0-100)" + tags: + type: "object" + description: "All tags on the package, grouped by tag type. This includes\ + \ immutable tags, but doesn't distinguish them from mutable. To see which\ + \ tags are immutable specifically, see the tags_immutable field." + properties: {} + tags_immutable: + type: "object" + description: "All immutable tags on the package, grouped by tag type. Immutable\ + \ tags cannot be (easily) deleted." + properties: {} + type_display: + type: "string" + description: "" + uploaded_at: + type: "string" + description: "The date this package was uploaded." + uploader: + type: "string" + description: "" + uploader_url: + type: "string" + description: "" + version: + type: "string" + description: "The raw version for this package." + version_orig: + type: "string" + description: "" + vulnerability_scan_results_url: + type: "string" + description: "" + example: + architectures: + - name: "name" + description: "description" + - name: "name" + description: "description" + security_scan_status_updated_at: "security_scan_status_updated_at" + checksum_sha256: "checksum_sha256" + release: "release" + package_type: "package_type" + repository: "repository" + identifier_perm: "identifier_perm" + stage_updated_at: "stage_updated_at" + tags_immutable: "{}" + slug: "slug" + security_scan_started_at: "security_scan_started_at" + security_scan_status: "security_scan_status" + indexed: true + format: "format" + status_str: "status_str" + version_orig: "version_orig" + namespace_url: "namespace_url" + slug_perm: "slug_perm" + version: "version" + tags: "{}" + license: "license" + filename: "filename" + size: 5 + cdn_url: "cdn_url" + uploaded_at: "uploaded_at" + name: "name" + sync_finished_at: "sync_finished_at" + files: + - checksum_sha512: "checksum_sha512" + checksum_sha1: "checksum_sha1" + checksum_sha256: "checksum_sha256" + is_primary: true + checksum_md5: "checksum_md5" + slug_perm: "slug_perm" + filename: "filename" + size: 5 + cdn_url: "cdn_url" + downloads: 1 + is_synchronised: true + is_downloadable: true + signature_url: "signature_url" + tag: "tag" + - checksum_sha512: "checksum_sha512" + checksum_sha1: "checksum_sha1" + checksum_sha256: "checksum_sha256" + is_primary: true + checksum_md5: "checksum_md5" + slug_perm: "slug_perm" + filename: "filename" + size: 5 + cdn_url: "cdn_url" + downloads: 1 + is_synchronised: true + is_downloadable: true + signature_url: "signature_url" + tag: "tag" + num_files: 1 + status: "status" + checksum_sha512: "checksum_sha512" + distro: "{}" + extension: "extension" + description: "description" + epoch: 6 + is_sync_completed: true + distro_version: "{}" + type_display: "type_display" + vulnerability_scan_results_url: "vulnerability_scan_results_url" + dependencies_checksum_md5: "dependencies_checksum_md5" + downloads: 0 + subtype: "subtype" + uploader: "uploader" + signature_url: "signature_url" + repository_url: "repository_url" + status_reason: "status_reason" + status_updated_at: "status_updated_at" + summary: "summary" + checksum_sha1: "checksum_sha1" + checksum_md5: "checksum_md5" + sync_progress: 5 + is_sync_awaiting: true + uploader_url: "uploader_url" + self_html_url: "self_html_url" + self_url: "self_url" + status_url: "status_url" + is_sync_in_flight: true + security_scan_completed_at: "security_scan_completed_at" + is_sync_in_progress: true + stage_str: "stage_str" + stage: "stage" + format_url: "format_url" + dependencies_url: "dependencies_url" + namespace: "namespace" + is_sync_failed: true + FilesValidate: + type: "object" + required: + - "filename" + properties: + filename: + type: "string" + description: "Filename for the package file upload." + md5_checksum: + type: "string" + description: "MD5 checksum for a POST-based package file upload." + method: + type: "string" + description: "The method to use for package file upload." + sha256_checksum: + type: "string" + description: "SHA256 checksum for a PUT-based package file upload." + title: "FilesValidate" + example: + sha256_checksum: "sha256_checksum" + filename: "filename" + method: "method" + md5_checksum: "md5_checksum" + AlpinePackageUpload: + type: "object" + properties: + architectures: + type: "array" + description: "" + title: "ArchitecturesList" + items: + $ref: "#/definitions/packagesownerrepo_architectures" + cdn_url: + type: "string" + description: "" + checksum_md5: + type: "string" + description: "" + checksum_sha1: + type: "string" + description: "" + checksum_sha256: + type: "string" + description: "" + checksum_sha512: + type: "string" + description: "" + dependencies_checksum_md5: + type: "string" + description: "A checksum of all of the package's dependencies." + dependencies_url: + type: "string" + description: "" + description: + type: "string" + description: "A textual description of this package." + distro: + type: "object" + description: "" + properties: {} + distro_version: + type: "object" + description: "" + properties: {} + downloads: + type: "integer" + description: "" + epoch: + type: "integer" + description: "The epoch of the package version (if any)." + extension: + type: "string" + description: "" + filename: + type: "string" + description: "" + files: + type: "array" + description: "" + title: "FilesList" + items: + $ref: "#/definitions/packagesownerrepo_files" + format: + type: "string" + description: "" + format_url: + type: "string" + description: "" + identifier_perm: + type: "string" + description: "Unique and permanent identifier for the package." + indexed: + type: "boolean" + description: "" + is_sync_awaiting: + type: "boolean" + description: "" + is_sync_completed: + type: "boolean" + description: "" + is_sync_failed: + type: "boolean" + description: "" + is_sync_in_flight: + type: "boolean" + description: "" + is_sync_in_progress: + type: "boolean" + description: "" + license: + type: "string" + description: "The license of this package." + name: + type: "string" + description: "The name of this package." + namespace: + type: "string" + description: "" + namespace_url: + type: "string" + description: "" + num_files: + type: "integer" + description: "" + package_type: + type: "string" + description: "The type of package contents." + release: + type: "string" + description: "The release of the package version (if any)." + repository: + type: "string" + description: "" + repository_url: + type: "string" + description: "" + security_scan_completed_at: + type: "string" + description: "The datetime the security scanning was completed." + security_scan_started_at: + type: "string" + description: "The datetime the security scanning was started." + security_scan_status: + type: "string" + description: "" + security_scan_status_updated_at: + type: "string" + description: "The datetime the security scanning status was updated." + self_html_url: + type: "string" + description: "" + self_url: + type: "string" + description: "" + signature_url: + type: "string" + description: "" + size: + type: "integer" + description: "The calculated size of the package." + slug: + type: "string" + description: "The public unique identifier for the package." + slug_perm: + type: "string" + description: "" + stage: + type: "string" + description: "The synchronisation (in progress) stage of the package." + stage_str: + type: "string" + description: "" + stage_updated_at: + type: "string" + description: "The datetime the package stage was updated at." + status: + type: "string" + description: "The synchronisation status of the package." + status_reason: + type: "string" + description: "A textual description for the synchronous status reason (if\ + \ any" + status_str: + type: "string" + description: "" + status_updated_at: + type: "string" + description: "The datetime the package status was updated at." + status_url: + type: "string" + description: "" + subtype: + type: "string" + description: "" + summary: + type: "string" + description: "A one-liner synopsis of this package." + sync_finished_at: + type: "string" + description: "The datetime the package sync was finished at." + sync_progress: + type: "integer" + description: "Synchronisation progress (from 0-100)" + tags_immutable: + type: "object" + description: "All immutable tags on the package, grouped by tag type. Immutable\ + \ tags cannot be (easily) deleted." + properties: {} + type_display: + type: "string" + description: "" + uploaded_at: + type: "string" + description: "The date this package was uploaded." + uploader: + type: "string" + description: "" + uploader_url: + type: "string" + description: "" + version: + type: "string" + description: "The raw version for this package." + version_orig: + type: "string" + description: "" + vulnerability_scan_results_url: + type: "string" + description: "" + example: + architectures: + - name: "name" + description: "description" + - name: "name" + description: "description" + security_scan_status_updated_at: "security_scan_status_updated_at" + checksum_sha256: "checksum_sha256" + release: "release" + package_type: "package_type" + repository: "repository" + identifier_perm: "identifier_perm" + stage_updated_at: "stage_updated_at" + tags_immutable: "{}" + slug: "slug" + security_scan_started_at: "security_scan_started_at" + security_scan_status: "security_scan_status" + indexed: true + format: "format" + status_str: "status_str" + version_orig: "version_orig" + namespace_url: "namespace_url" + slug_perm: "slug_perm" + version: "version" + license: "license" + filename: "filename" + size: 5 + cdn_url: "cdn_url" + uploaded_at: "uploaded_at" + name: "name" + sync_finished_at: "sync_finished_at" + files: + - checksum_sha512: "checksum_sha512" + checksum_sha1: "checksum_sha1" + checksum_sha256: "checksum_sha256" + is_primary: true + checksum_md5: "checksum_md5" + slug_perm: "slug_perm" + filename: "filename" + size: 5 + cdn_url: "cdn_url" + downloads: 1 + is_synchronised: true + is_downloadable: true + signature_url: "signature_url" + tag: "tag" + - checksum_sha512: "checksum_sha512" + checksum_sha1: "checksum_sha1" + checksum_sha256: "checksum_sha256" + is_primary: true + checksum_md5: "checksum_md5" + slug_perm: "slug_perm" + filename: "filename" + size: 5 + cdn_url: "cdn_url" + downloads: 1 + is_synchronised: true + is_downloadable: true + signature_url: "signature_url" + tag: "tag" + num_files: 1 + status: "status" + checksum_sha512: "checksum_sha512" + distro: "{}" + extension: "extension" + description: "description" + epoch: 6 + is_sync_completed: true + distro_version: "{}" + type_display: "type_display" + vulnerability_scan_results_url: "vulnerability_scan_results_url" + dependencies_checksum_md5: "dependencies_checksum_md5" + downloads: 0 + subtype: "subtype" + uploader: "uploader" + signature_url: "signature_url" + repository_url: "repository_url" + status_reason: "status_reason" + status_updated_at: "status_updated_at" + summary: "summary" + checksum_sha1: "checksum_sha1" + checksum_md5: "checksum_md5" + sync_progress: 5 + is_sync_awaiting: true + uploader_url: "uploader_url" + self_html_url: "self_html_url" + self_url: "self_url" + status_url: "status_url" + is_sync_in_flight: true + security_scan_completed_at: "security_scan_completed_at" + is_sync_in_progress: true + stage_str: "stage_str" + stage: "stage" + format_url: "format_url" + dependencies_url: "dependencies_url" + namespace: "namespace" + is_sync_failed: true + PackagesValidateuploadCran: + type: "object" + required: + - "package_file" + properties: + package_file: + type: "string" + example: "x123456789a" + description: "The primary file for the package." + republish: + type: "boolean" + description: "If true, the uploaded package will overwrite any others with\ + \ the same attributes (e.g. same version); otherwise, it will be flagged\ + \ as a duplicate." + tags: + type: "string" + description: "A comma-separated values list of tags to add to the package." + title: "PackagesValidate-uploadCran" + example: + republish: true + package_file: "x123456789a" + tags: "tags" + PackagesMove: + type: "object" + required: + - "destination" + properties: + destination: + type: "string" + description: "None" + title: "PackagesMove" + example: + destination: "destination" + PackagesUploadP2: + type: "object" + required: + - "package_file" + properties: + package_file: + type: "string" + description: "The primary file for the package." + republish: + type: "boolean" + description: "If true, the uploaded package will overwrite any others with\ + \ the same attributes (e.g. same version); otherwise, it will be flagged\ + \ as a duplicate." + tags: + type: "string" + description: "A comma-separated values list of tags to add to the package." + title: "PackagesUploadP2" + example: + republish: true + package_file: "package_file" + tags: "tags" + PackagesUploadRuby: + type: "object" + required: + - "package_file" + properties: + package_file: + type: "string" + example: "y123456789" + description: "The primary file for the package." + republish: + type: "boolean" + description: "If true, the uploaded package will overwrite any others with\ + \ the same attributes (e.g. same version); otherwise, it will be flagged\ + \ as a duplicate." + tags: + type: "string" + description: "A comma-separated values list of tags to add to the package." + title: "PackagesUploadRuby" + example: + republish: true + package_file: "y123456789" + tags: "tags" + webhooksownerrepo_templates: + type: "object" + properties: + event: + type: "string" + description: "" + template: + type: "string" + description: "" + example: + template: "template" + event: "event" + PackagesUploadDocker: + type: "object" + required: + - "package_file" + properties: + package_file: + type: "string" + example: "y123456789" + description: "The primary file for the package." + republish: + type: "boolean" + description: "If true, the uploaded package will overwrite any others with\ + \ the same attributes (e.g. same version); otherwise, it will be flagged\ + \ as a duplicate." + tags: + type: "string" + description: "A comma-separated values list of tags to add to the package." + title: "PackagesUploadDocker" + example: + republish: true + package_file: "y123456789" + tags: "tags" + packagesownerrepo_architectures: + type: "object" + properties: + description: + type: "string" + description: "" + name: + type: "string" + description: "" + example: + name: "name" + description: "description" + StatusBasic: + type: "object" + properties: + detail: + type: "string" + example: "Cloudsmith API is operational." + description: "The message describing the state of the API." + version: + type: "string" + example: "1.33.7" + description: "The current version for the Cloudsmith service." + example: + detail: "Cloudsmith API is operational." + version: "1.33.7" + ReposPartialUpdate: + type: "object" + properties: + description: + type: "string" + description: "A description of the repository's purpose/contents." + index_files: + type: "boolean" + description: "If checked, files contained in packages will be indexed, which\ + \ increase the synchronisation time required for packages. Note that it\ + \ is recommended you keep this enabled unless the synchronisation time is\ + \ significantly impacted." + name: + type: "string" + description: "A descriptive name for the repository." + repository_type_str: + type: "string" + description: "The repository type changes how it is accessed and billed. Private\ + \ repositories can only be used on paid plans, but are visible only to you\ + \ or authorised delegates. Public repositories are free to use on all plans\ + \ and visible to all Cloudsmith users." + slug: + type: "string" + description: "The slug identifies the repository in URIs." + title: "ReposPartialUpdate" + example: + repository_type_str: "repository_type_str" + name: "name" + description: "description" + index_files: true + slug: "slug" + PackagesUploadCran: + type: "object" + required: + - "package_file" + properties: + package_file: + type: "string" + example: "x123456789a" + description: "The primary file for the package." + republish: + type: "boolean" + description: "If true, the uploaded package will overwrite any others with\ + \ the same attributes (e.g. same version); otherwise, it will be flagged\ + \ as a duplicate." + tags: + type: "string" + description: "A comma-separated values list of tags to add to the package." + title: "PackagesUploadCran" + example: + republish: true + package_file: "x123456789a" + tags: "tags" + RawPackageUpload: + type: "object" + properties: + architectures: + type: "array" + description: "" + title: "ArchitecturesList" + items: + $ref: "#/definitions/packagesownerrepo_architectures" + cdn_url: + type: "string" + description: "" + checksum_md5: + type: "string" + description: "" + checksum_sha1: + type: "string" + description: "" + checksum_sha256: + type: "string" + description: "" + checksum_sha512: + type: "string" + description: "" + dependencies_checksum_md5: + type: "string" + description: "A checksum of all of the package's dependencies." + dependencies_url: + type: "string" + description: "" + description: + type: "string" + example: "Everything about packaging files." + description: "A textual description of this package." + distro: + type: "object" + description: "" + properties: {} + distro_version: + type: "object" + description: "" + properties: {} + downloads: + type: "integer" + description: "" + epoch: + type: "integer" + description: "The epoch of the package version (if any)." + extension: + type: "string" + description: "" + filename: + type: "string" + description: "" + files: + type: "array" + description: "" + title: "FilesList" + items: + $ref: "#/definitions/packagesownerrepo_files" + format: + type: "string" + description: "" + format_url: + type: "string" + description: "" + identifier_perm: + type: "string" + description: "Unique and permanent identifier for the package." + indexed: + type: "boolean" + description: "" + is_sync_awaiting: + type: "boolean" + description: "" + is_sync_completed: + type: "boolean" + description: "" + is_sync_failed: + type: "boolean" + description: "" + is_sync_in_flight: + type: "boolean" + description: "" + is_sync_in_progress: + type: "boolean" + description: "" + license: + type: "string" + description: "The license of this package." + name: + type: "string" + example: "my-package" + description: "The name of this package." + namespace: + type: "string" + description: "" + namespace_url: + type: "string" + description: "" + num_files: + type: "integer" + description: "" + package_type: + type: "string" + description: "The type of package contents." + release: + type: "string" + description: "The release of the package version (if any)." + repository: + type: "string" + description: "" + repository_url: + type: "string" + description: "" + security_scan_completed_at: + type: "string" + description: "The datetime the security scanning was completed." + security_scan_started_at: + type: "string" + description: "The datetime the security scanning was started." + security_scan_status: + type: "string" + description: "" + security_scan_status_updated_at: + type: "string" + description: "The datetime the security scanning status was updated." + self_html_url: + type: "string" + description: "" + self_url: + type: "string" + description: "" + signature_url: + type: "string" + description: "" + size: + type: "integer" + description: "The calculated size of the package." + slug: + type: "string" + description: "The public unique identifier for the package." + slug_perm: + type: "string" + description: "" + stage: + type: "string" + description: "The synchronisation (in progress) stage of the package." + stage_str: + type: "string" + description: "" + stage_updated_at: + type: "string" + description: "The datetime the package stage was updated at." + status: + type: "string" + description: "The synchronisation status of the package." + status_reason: + type: "string" + description: "A textual description for the synchronous status reason (if\ + \ any" + status_str: + type: "string" + description: "" + status_updated_at: + type: "string" + description: "The datetime the package status was updated at." + status_url: + type: "string" + description: "" + subtype: + type: "string" + description: "" + summary: + type: "string" + example: "My Package File" + description: "A one-liner synopsis of this package." + sync_finished_at: + type: "string" + description: "The datetime the package sync was finished at." + sync_progress: + type: "integer" + description: "Synchronisation progress (from 0-100)" + tags_immutable: + type: "object" + description: "All immutable tags on the package, grouped by tag type. Immutable\ + \ tags cannot be (easily) deleted." + properties: {} + type_display: + type: "string" + description: "" + uploaded_at: + type: "string" + description: "The date this package was uploaded." + uploader: + type: "string" + description: "" + uploader_url: + type: "string" + description: "" + version: + type: "string" + example: "1.0" + description: "The raw version for this package." + version_orig: + type: "string" + description: "" + vulnerability_scan_results_url: + type: "string" + description: "" + example: + architectures: + - name: "name" + description: "description" + - name: "name" + description: "description" + security_scan_status_updated_at: "security_scan_status_updated_at" + checksum_sha256: "checksum_sha256" + release: "release" + package_type: "package_type" + repository: "repository" + identifier_perm: "identifier_perm" + stage_updated_at: "stage_updated_at" + tags_immutable: "{}" + slug: "slug" + security_scan_started_at: "security_scan_started_at" + security_scan_status: "security_scan_status" + indexed: true + format: "format" + status_str: "status_str" + version_orig: "version_orig" + namespace_url: "namespace_url" + slug_perm: "slug_perm" + version: "1.0" + license: "license" + filename: "filename" + size: 5 + cdn_url: "cdn_url" + uploaded_at: "uploaded_at" + name: "my-package" + sync_finished_at: "sync_finished_at" + files: + - checksum_sha512: "checksum_sha512" + checksum_sha1: "checksum_sha1" + checksum_sha256: "checksum_sha256" + is_primary: true + checksum_md5: "checksum_md5" + slug_perm: "slug_perm" + filename: "filename" + size: 5 + cdn_url: "cdn_url" + downloads: 1 + is_synchronised: true + is_downloadable: true + signature_url: "signature_url" + tag: "tag" + - checksum_sha512: "checksum_sha512" + checksum_sha1: "checksum_sha1" + checksum_sha256: "checksum_sha256" + is_primary: true + checksum_md5: "checksum_md5" + slug_perm: "slug_perm" + filename: "filename" + size: 5 + cdn_url: "cdn_url" + downloads: 1 + is_synchronised: true + is_downloadable: true + signature_url: "signature_url" + tag: "tag" + num_files: 1 + status: "status" + checksum_sha512: "checksum_sha512" + distro: "{}" + extension: "extension" + description: "Everything about packaging files." + epoch: 6 + is_sync_completed: true + distro_version: "{}" + type_display: "type_display" + vulnerability_scan_results_url: "vulnerability_scan_results_url" + dependencies_checksum_md5: "dependencies_checksum_md5" + downloads: 0 + subtype: "subtype" + uploader: "uploader" + signature_url: "signature_url" + repository_url: "repository_url" + status_reason: "status_reason" + status_updated_at: "status_updated_at" + summary: "My Package File" + checksum_sha1: "checksum_sha1" + checksum_md5: "checksum_md5" + sync_progress: 5 + is_sync_awaiting: true + uploader_url: "uploader_url" + self_html_url: "self_html_url" + self_url: "self_url" + status_url: "status_url" + is_sync_in_flight: true + security_scan_completed_at: "security_scan_completed_at" + is_sync_in_progress: true + stage_str: "stage_str" + stage: "stage" + format_url: "format_url" + dependencies_url: "dependencies_url" + namespace: "namespace" + is_sync_failed: true + UserAuthToken: + type: "object" + properties: + token: + type: "string" + example: "y4682jh19cqf0b2ty4682jh19cqf0b2t" + description: "API token for the authenticated user" + example: + token: "y4682jh19cqf0b2ty4682jh19cqf0b2t" + PackagesUploadComposer: + type: "object" + required: + - "package_file" + properties: + package_file: + type: "string" + example: "y123456789" + description: "The primary file for the package." + republish: + type: "boolean" + description: "If true, the uploaded package will overwrite any others with\ + \ the same attributes (e.g. same version); otherwise, it will be flagged\ + \ as a duplicate." + tags: + type: "string" + description: "A comma-separated values list of tags to add to the package." + title: "PackagesUploadComposer" + example: + republish: true + package_file: "y123456789" + tags: "tags" + PackagesValidateuploadGo: + type: "object" + required: + - "package_file" + properties: + package_file: + type: "string" + example: "x123456789a" + description: "The primary file for the package." + republish: + type: "boolean" + description: "If true, the uploaded package will overwrite any others with\ + \ the same attributes (e.g. same version); otherwise, it will be flagged\ + \ as a duplicate." + tags: + type: "string" + description: "A comma-separated values list of tags to add to the package." + title: "PackagesValidate-uploadGo" + example: + republish: true + package_file: "x123456789a" + tags: "tags" + FilesCreate: + type: "object" + required: + - "filename" + properties: + filename: + type: "string" + description: "Filename for the package file upload." + md5_checksum: + type: "string" + description: "MD5 checksum for a POST-based package file upload." + method: + type: "string" + description: "The method to use for package file upload." + sha256_checksum: + type: "string" + description: "SHA256 checksum for a PUT-based package file upload." + title: "FilesCreate" + example: + sha256_checksum: "sha256_checksum" + filename: "filename" + method: "method" + md5_checksum: "md5_checksum" + PackagesUploadGo: + type: "object" + required: + - "package_file" + properties: + package_file: + type: "string" + example: "x123456789a" + description: "The primary file for the package." + republish: + type: "boolean" + description: "If true, the uploaded package will overwrite any others with\ + \ the same attributes (e.g. same version); otherwise, it will be flagged\ + \ as a duplicate." + tags: + type: "string" + description: "A comma-separated values list of tags to add to the package." + title: "PackagesUploadGo" + example: + republish: true + package_file: "x123456789a" + tags: "tags" + FilesComplete: + type: "object" + required: + - "filename" + properties: + filename: + type: "string" + description: "Filename for the package file upload." + md5_checksum: + type: "string" + description: "MD5 checksum for a POST-based package file upload." + method: + type: "string" + description: "The method to use for package file upload." + sha256_checksum: + type: "string" + description: "SHA256 checksum for a PUT-based package file upload." + title: "FilesComplete" + example: + sha256_checksum: "sha256_checksum" + filename: "filename" + method: "method" + md5_checksum: "md5_checksum" + packagesownerrepo_files: + type: "object" + properties: + cdn_url: + type: "string" + description: "" + checksum_md5: + type: "string" + description: "" + checksum_sha1: + type: "string" + description: "" + checksum_sha256: + type: "string" + description: "" + checksum_sha512: + type: "string" + description: "" + downloads: + type: "integer" + description: "" + filename: + type: "string" + description: "" + is_downloadable: + type: "boolean" + description: "" + is_primary: + type: "boolean" + description: "" + is_synchronised: + type: "boolean" + description: "" + signature_url: + type: "string" + description: "" + size: + type: "integer" + description: "The calculated size of the file." + slug_perm: + type: "string" + description: "" + tag: + type: "string" + description: "Freeform descriptor that describes what the file is." + example: + checksum_sha512: "checksum_sha512" + checksum_sha1: "checksum_sha1" + checksum_sha256: "checksum_sha256" + is_primary: true + checksum_md5: "checksum_md5" + slug_perm: "slug_perm" + filename: "filename" + size: 5 + cdn_url: "cdn_url" + downloads: 1 + is_synchronised: true + is_downloadable: true + signature_url: "signature_url" + tag: "tag" + PackagesUploadCargo: + type: "object" + required: + - "package_file" + properties: + package_file: + type: "string" + example: "x123456789a" + description: "The primary file for the package." + republish: + type: "boolean" + description: "If true, the uploaded package will overwrite any others with\ + \ the same attributes (e.g. same version); otherwise, it will be flagged\ + \ as a duplicate." + tags: + type: "string" + description: "A comma-separated values list of tags to add to the package." + title: "PackagesUploadCargo" + example: + republish: true + package_file: "x123456789a" + tags: "tags" + PackagesValidateuploadMaven: + type: "object" + required: + - "package_file" + properties: + artifact_id: + type: "string" + example: "cloudsmith-example" + description: "The ID of the artifact." + group_id: + type: "string" + example: "io.cloudsmith.example" + description: "Artifact's group ID." + javadoc_file: + type: "string" + example: "y1234456789c" + description: "Adds bundled Java documentation to the Maven package" + package_file: + type: "string" + example: "y1234456789a" + description: "The primary file for the package." + packaging: + type: "string" + description: "Artifact's Maven packaging type." + pom_file: + type: "string" + example: "y1234456789b" + description: "The POM file is an XML file containing the Maven coordinates." + republish: + type: "boolean" + description: "If true, the uploaded package will overwrite any others with\ + \ the same attributes (e.g. same version); otherwise, it will be flagged\ + \ as a duplicate." + sources_file: + type: "string" + example: "y1234456789d" + description: "Adds bundled Java source code to the Maven package." + tags: + type: "string" + description: "A comma-separated values list of tags to add to the package." + tests_file: + type: "string" + example: "y1234456789e" + description: "Adds bundled Java tests to the Maven package." + version: + type: "string" + description: "The raw version for this package." + title: "PackagesValidate-uploadMaven" + example: + sources_file: "y1234456789d" + tests_file: "y1234456789e" + republish: true + group_id: "io.cloudsmith.example" + javadoc_file: "y1234456789c" + packaging: "packaging" + artifact_id: "cloudsmith-example" + package_file: "y1234456789a" + version: "version" + pom_file: "y1234456789b" + tags: "tags" + PackagesUploadLuarocks: + type: "object" + required: + - "package_file" + properties: + package_file: + type: "string" + example: "x123456789a" + description: "The primary file for the package." + republish: + type: "boolean" + description: "If true, the uploaded package will overwrite any others with\ + \ the same attributes (e.g. same version); otherwise, it will be flagged\ + \ as a duplicate." + tags: + type: "string" + description: "A comma-separated values list of tags to add to the package." + title: "PackagesUploadLuarocks" + example: + republish: true + package_file: "x123456789a" + tags: "tags" + EntitlementsPartialUpdate: + type: "object" + properties: + eula_required: + type: "boolean" + description: "If checked, a EULA acceptance is required for this token." + is_active: + type: "boolean" + description: "If enabled, the token will allow downloads based on configured\ + \ restrictions (if any)." + limit_bandwidth: + type: "integer" + description: "The maximum download bandwidth allowed for the token. Values\ + \ are expressed as the selected unit of bandwidth. Please note that since\ + \ downloads are calculated asynchronously (after the download happens),\ + \ the limit may not be imposed immediately but at a later point. " + limit_bandwidth_unit: + type: "string" + description: "None" + limit_date_range_from: + type: "string" + description: "The starting date/time the token is allowed to be used from." + limit_date_range_to: + type: "string" + description: "The ending date/time the token is allowed to be used until." + limit_num_clients: + type: "integer" + description: "The maximum number of unique clients allowed for the token.\ + \ Please note that since clients are calculated asynchronously (after the\ + \ download happens), the limit may not be imposed immediately but at a later\ + \ point." + limit_num_downloads: + type: "integer" + description: "The maximum number of downloads allowed for the token. Please\ + \ note that since downloads are calculated asynchronously (after the download\ + \ happens), the limit may not be imposed immediately but at a later point." + limit_package_query: + type: "string" + description: "The package-based search query to apply to restrict downloads\ + \ to. This uses the same syntax as the standard search used for repositories,\ + \ and also supports boolean logic operators such as OR/AND/NOT and parentheses\ + \ for grouping. This will still allow access to non-package files, such\ + \ as metadata." + limit_path_query: + type: "string" + description: "The path-based search query to apply to restrict downloads to.\ + \ This supports boolean logic operators such as OR/AND/NOT and parentheses\ + \ for grouping. The path evaluated does not include the domain name, the\ + \ namespace, the entitlement code used, the package format, etc. and it\ + \ always starts with a forward slash." + metadata: + type: "object" + description: "None" + properties: {} + name: + type: "string" + description: "None" + scheduled_reset_at: + type: "string" + description: "The time at which the scheduled reset period has elapsed and\ + \ the token limits were automatically reset to zero." + scheduled_reset_period: + type: "string" + description: "None" + token: + type: "string" + description: "None" + title: "EntitlementsPartialUpdate" + example: + limit_date_range_to: "limit_date_range_to" + metadata: "{}" + is_active: true + limit_bandwidth_unit: "limit_bandwidth_unit" + scheduled_reset_at: "scheduled_reset_at" + limit_bandwidth: 0 + limit_num_clients: 6 + limit_package_query: "limit_package_query" + limit_path_query: "limit_path_query" + token: "token" + name: "name" + limit_date_range_from: "limit_date_range_from" + limit_num_downloads: 1 + eula_required: true + scheduled_reset_period: "scheduled_reset_period" + MavenPackageUpload: + type: "object" + properties: + architectures: + type: "array" + description: "" + title: "ArchitecturesList" + items: + $ref: "#/definitions/packagesownerrepo_architectures" + artifact_id: + type: "string" + example: "cloudsmith-example" + description: "The ID of the artifact." + cdn_url: + type: "string" + description: "" + checksum_md5: + type: "string" + description: "" + checksum_sha1: + type: "string" + description: "" + checksum_sha256: + type: "string" + description: "" + checksum_sha512: + type: "string" + description: "" + dependencies_checksum_md5: + type: "string" + description: "A checksum of all of the package's dependencies." + dependencies_url: + type: "string" + description: "" + description: + type: "string" + description: "A textual description of this package." + distro: + type: "object" + description: "" + properties: {} + distro_version: + type: "object" + description: "" + properties: {} + downloads: + type: "integer" + description: "" + epoch: + type: "integer" + description: "The epoch of the package version (if any)." + extension: + type: "string" + description: "" + filename: + type: "string" + description: "" + files: + type: "array" + description: "" + title: "FilesList" + items: + $ref: "#/definitions/packagesownerrepo_files" + format: + type: "string" + description: "" + format_url: + type: "string" + description: "" + group_id: + type: "string" + example: "io.cloudsmith.example" + description: "Artifact's group ID." + identifier_perm: + type: "string" + description: "Unique and permanent identifier for the package." + indexed: + type: "boolean" + description: "" + is_sync_awaiting: + type: "boolean" + description: "" + is_sync_completed: + type: "boolean" + description: "" + is_sync_failed: + type: "boolean" + description: "" + is_sync_in_flight: + type: "boolean" + description: "" + is_sync_in_progress: + type: "boolean" + description: "" + license: + type: "string" + description: "The license of this package." + name: + type: "string" + description: "The name of this package." + namespace: + type: "string" + description: "" + namespace_url: + type: "string" + description: "" + num_files: + type: "integer" + description: "" + package_type: + type: "string" + description: "The type of package contents." + packaging: + type: "string" + description: "Artifact's Maven packaging type." + release: + type: "string" + description: "The release of the package version (if any)." + repository: + type: "string" + description: "" + repository_url: + type: "string" + description: "" + security_scan_completed_at: + type: "string" + description: "The datetime the security scanning was completed." + security_scan_started_at: + type: "string" + description: "The datetime the security scanning was started." + security_scan_status: + type: "string" + description: "" + security_scan_status_updated_at: + type: "string" + description: "The datetime the security scanning status was updated." + self_html_url: + type: "string" + description: "" + self_url: + type: "string" + description: "" + signature_url: + type: "string" + description: "" + size: + type: "integer" + description: "The calculated size of the package." + slug: + type: "string" + description: "The public unique identifier for the package." + slug_perm: + type: "string" + description: "" + stage: + type: "string" + description: "The synchronisation (in progress) stage of the package." + stage_str: + type: "string" + description: "" + stage_updated_at: + type: "string" + description: "The datetime the package stage was updated at." + status: + type: "string" + description: "The synchronisation status of the package." + status_reason: + type: "string" + description: "A textual description for the synchronous status reason (if\ + \ any" + status_str: + type: "string" + description: "" + status_updated_at: + type: "string" + description: "The datetime the package status was updated at." + status_url: + type: "string" + description: "" + subtype: + type: "string" + description: "" + summary: + type: "string" + description: "A one-liner synopsis of this package." + sync_finished_at: + type: "string" + description: "The datetime the package sync was finished at." + sync_progress: + type: "integer" + description: "Synchronisation progress (from 0-100)" + tags_immutable: + type: "object" + description: "All immutable tags on the package, grouped by tag type. Immutable\ + \ tags cannot be (easily) deleted." + properties: {} + type_display: + type: "string" + description: "" + uploaded_at: + type: "string" + description: "The date this package was uploaded." + uploader: + type: "string" + description: "" + uploader_url: + type: "string" + description: "" + version: + type: "string" + description: "The raw version for this package." + version_orig: + type: "string" + description: "" + vulnerability_scan_results_url: + type: "string" + description: "" + example: + architectures: + - name: "name" + description: "description" + - name: "name" + description: "description" + security_scan_status_updated_at: "security_scan_status_updated_at" + checksum_sha256: "checksum_sha256" + release: "release" + artifact_id: "cloudsmith-example" + package_type: "package_type" + repository: "repository" + identifier_perm: "identifier_perm" + stage_updated_at: "stage_updated_at" + tags_immutable: "{}" + slug: "slug" + security_scan_started_at: "security_scan_started_at" + security_scan_status: "security_scan_status" + indexed: true + format: "format" + status_str: "status_str" + version_orig: "version_orig" + namespace_url: "namespace_url" + slug_perm: "slug_perm" + version: "version" + license: "license" + filename: "filename" + size: 5 + cdn_url: "cdn_url" + uploaded_at: "uploaded_at" + name: "name" + sync_finished_at: "sync_finished_at" + files: + - checksum_sha512: "checksum_sha512" + checksum_sha1: "checksum_sha1" + checksum_sha256: "checksum_sha256" + is_primary: true + checksum_md5: "checksum_md5" + slug_perm: "slug_perm" + filename: "filename" + size: 5 + cdn_url: "cdn_url" + downloads: 1 + is_synchronised: true + is_downloadable: true + signature_url: "signature_url" + tag: "tag" + - checksum_sha512: "checksum_sha512" + checksum_sha1: "checksum_sha1" + checksum_sha256: "checksum_sha256" + is_primary: true + checksum_md5: "checksum_md5" + slug_perm: "slug_perm" + filename: "filename" + size: 5 + cdn_url: "cdn_url" + downloads: 1 + is_synchronised: true + is_downloadable: true + signature_url: "signature_url" + tag: "tag" + num_files: 1 + status: "status" + checksum_sha512: "checksum_sha512" + distro: "{}" + extension: "extension" + description: "description" + epoch: 6 + is_sync_completed: true + distro_version: "{}" + type_display: "type_display" + vulnerability_scan_results_url: "vulnerability_scan_results_url" + dependencies_checksum_md5: "dependencies_checksum_md5" + downloads: 0 + subtype: "subtype" + uploader: "uploader" + signature_url: "signature_url" + repository_url: "repository_url" + status_reason: "status_reason" + status_updated_at: "status_updated_at" + summary: "summary" + checksum_sha1: "checksum_sha1" + checksum_md5: "checksum_md5" + sync_progress: 5 + is_sync_awaiting: true + packaging: "packaging" + uploader_url: "uploader_url" + self_html_url: "self_html_url" + self_url: "self_url" + status_url: "status_url" + is_sync_in_flight: true + security_scan_completed_at: "security_scan_completed_at" + is_sync_in_progress: true + stage_str: "stage_str" + stage: "stage" + format_url: "format_url" + group_id: "io.cloudsmith.example" + dependencies_url: "dependencies_url" + namespace: "namespace" + is_sync_failed: true + PackagesValidateuploadLuarocks: + type: "object" + required: + - "package_file" + properties: + package_file: + type: "string" + example: "x123456789a" + description: "The primary file for the package." + republish: + type: "boolean" + description: "If true, the uploaded package will overwrite any others with\ + \ the same attributes (e.g. same version); otherwise, it will be flagged\ + \ as a duplicate." + tags: + type: "string" + description: "A comma-separated values list of tags to add to the package." + title: "PackagesValidate-uploadLuarocks" + example: + republish: true + package_file: "x123456789a" + tags: "tags" + UserProfile: + type: "object" + required: + - "first_name" + - "last_name" + properties: + company: + type: "string" + description: "" + first_name: + type: "string" + description: "" + job_title: + type: "string" + description: "" + joined_at: + type: "string" + description: "" + last_name: + type: "string" + description: "" + name: + type: "string" + description: "" + slug: + type: "string" + description: "" + slug_perm: + type: "string" + description: "" + tagline: + type: "string" + description: "Your tagline is a sentence about you. Make it funny. Make it\ + \ professional. Either way, it's public and it represents who you are." + url: + type: "string" + description: "" + example: + joined_at: "joined_at" + name: "name" + last_name: "last_name" + tagline: "tagline" + company: "company" + slug_perm: "slug_perm" + first_name: "first_name" + job_title: "job_title" + slug: "slug" + url: "url" + PackageFileUpload: + type: "object" + properties: + identifier: + type: "string" + description: "The identifier for the file to use when creating packages" + upload_fields: + type: "object" + description: "The dictionary of fields that must be sent with POST uploads" + properties: {} + upload_headers: + type: "object" + description: "The dictionary of headers that must be sent with uploads" + properties: {} + upload_querystring: + type: "string" + description: "The querystring to use for the next-step POST or PUT upload" + upload_url: + type: "string" + description: "The URL to use for the next-step POST or PUT upload" + example: + identifier: "identifier" + upload_fields: "{}" + upload_querystring: "upload_querystring" + upload_headers: "{}" + upload_url: "upload_url" + RepositoryWebhook: + type: "object" + required: + - "events" + - "target_url" + - "templates" + properties: + created_at: + type: "string" + description: "" + created_by: + type: "string" + description: "" + created_by_url: + type: "string" + description: "" + disable_reason: + type: "string" + description: "" + disable_reason_str: + type: "string" + description: "" + events: + type: "array" + description: "" + title: "EventsList" + items: + type: "string" + description: "" + identifier: + type: "integer" + description: "" + is_active: + type: "boolean" + description: "If enabled, the webhook will trigger on events and send payloads\ + \ to the configured target URL." + is_last_response_bad: + type: "boolean" + description: "" + last_response_status: + type: "integer" + description: "" + last_response_status_str: + type: "string" + description: "" + num_sent: + type: "integer" + description: "" + package_query: + type: "string" + description: "The package-based search query for webhooks to fire. This uses\ + \ the same syntax as the standard search used for repositories, and also\ + \ supports boolean logic operators such as OR/AND/NOT and parentheses for\ + \ grouping. If a package does not match, the webhook will not fire." + request_body_format: + type: "string" + description: "The format of the payloads for webhook requests." + request_body_format_str: + type: "string" + description: "" + request_body_template_format: + type: "string" + description: "The format of the payloads for webhook requests." + request_body_template_format_str: + type: "string" + description: "" + request_content_type: + type: "string" + description: "The value that will be sent for the 'Content Type' header. " + secret_header: + type: "string" + description: "The header to send the predefined secret in. This must be unique\ + \ from existing headers or it won't be sent. You can use this as a form\ + \ of authentication on the endpoint side." + self_url: + type: "string" + description: "" + slug_perm: + type: "string" + description: "" + target_url: + type: "string" + description: "The destination URL that webhook payloads will be POST'ed to." + templates: + type: "array" + description: "" + title: "TemplatesList" + items: + $ref: "#/definitions/webhooksownerrepo_templates" + updated_at: + type: "string" + description: "" + updated_by: + type: "string" + description: "" + updated_by_url: + type: "string" + description: "" + verify_ssl: + type: "boolean" + description: "If enabled, SSL certificates is verified when webhooks are sent.\ + \ It's recommended to leave this enabled as not verifying the integrity\ + \ of SSL certificates leaves you susceptible to Man-in-the-Middle (MITM)\ + \ attacks." + example: + is_last_response_bad: true + last_response_status_str: "last_response_status_str" + target_url: "target_url" + created_at: "created_at" + last_response_status: 6 + request_body_template_format_str: "request_body_template_format_str" + request_content_type: "request_content_type" + updated_at: "updated_at" + request_body_format_str: "request_body_format_str" + num_sent: 1 + request_body_template_format: "request_body_template_format" + events: + - "events" + - "events" + disable_reason_str: "disable_reason_str" + identifier: 0 + package_query: "package_query" + is_active: true + disable_reason: "disable_reason" + created_by_url: "created_by_url" + templates: + - template: "template" + event: "event" + - template: "template" + event: "event" + request_body_format: "request_body_format" + slug_perm: "slug_perm" + created_by: "created_by" + self_url: "self_url" + updated_by_url: "updated_by_url" + verify_ssl: true + secret_header: "secret_header" + updated_by: "updated_by" + PackagesValidateuploadAlpine: + type: "object" + required: + - "distribution" + - "package_file" + properties: + distribution: + type: "string" + example: "alpine/v3.8" + description: "The distribution to store the package for." + package_file: + type: "string" + example: "a123456789" + description: "The primary file for the package." + republish: + type: "boolean" + description: "If true, the uploaded package will overwrite any others with\ + \ the same attributes (e.g. same version); otherwise, it will be flagged\ + \ as a duplicate." + tags: + type: "string" + description: "A comma-separated values list of tags to add to the package." + title: "PackagesValidate-uploadAlpine" + example: + republish: true + distribution: "alpine/v3.8" + package_file: "a123456789" + tags: "tags" + PackagesCopy: + type: "object" + required: + - "destination" + properties: + destination: + type: "string" + description: "None" + republish: + type: "boolean" + description: "If true, the package will overwrite any others with the same\ + \ attributes (e.g. same version); otherwise, it will be flagged as a duplicate." + title: "PackagesCopy" + example: + republish: true + destination: "destination" + WebhooksCreate: + type: "object" + required: + - "events" + - "target_url" + - "templates" + properties: + events: + type: "array" + description: "None" + title: "EventsList" + items: + type: "string" + description: "" + is_active: + type: "boolean" + description: "If enabled, the webhook will trigger on events and send payloads\ + \ to the configured target URL." + package_query: + type: "string" + description: "The package-based search query for webhooks to fire. This uses\ + \ the same syntax as the standard search used for repositories, and also\ + \ supports boolean logic operators such as OR/AND/NOT and parentheses for\ + \ grouping. If a package does not match, the webhook will not fire." + request_body_format: + type: "string" + description: "The format of the payloads for webhook requests." + request_body_template_format: + type: "string" + description: "The format of the payloads for webhook requests." + request_content_type: + type: "string" + description: "The value that will be sent for the 'Content Type' header. " + secret_header: + type: "string" + description: "The header to send the predefined secret in. This must be unique\ + \ from existing headers or it won't be sent. You can use this as a form\ + \ of authentication on the endpoint side." + secret_value: + type: "string" + description: "The value for the predefined secret (note: this is treated as\ + \ a passphrase and is encrypted when we store it). You can use this as a\ + \ form of authentication on the endpoint side." + signature_key: + type: "string" + description: "The value for the signature key - This is used to generate an\ + \ HMAC-based hex digest of the request body, which we send as the X-Cloudsmith-Signature\ + \ header so that you can ensure that the request wasn't modified by a malicious\ + \ party (note: this is treated as a passphrase and is encrypted when we\ + \ store it)." + target_url: + type: "string" + description: "The destination URL that webhook payloads will be POST'ed to." + templates: + type: "array" + description: "None" + title: "TemplatesList" + items: + $ref: "#/definitions/webhooksownerrepo_templates" + verify_ssl: + type: "boolean" + description: "If enabled, SSL certificates is verified when webhooks are sent.\ + \ It's recommended to leave this enabled as not verifying the integrity\ + \ of SSL certificates leaves you susceptible to Man-in-the-Middle (MITM)\ + \ attacks." + title: "WebhooksCreate" + example: + package_query: "package_query" + request_content_type: "request_content_type" + is_active: true + verify_ssl: true + signature_key: "signature_key" + target_url: "target_url" + templates: + - template: "template" + event: "event" + - template: "template" + event: "event" + secret_header: "secret_header" + secret_value: "secret_value" + request_body_format: "request_body_format" + request_body_template_format: "request_body_template_format" + events: + - "events" + - "events" + StorageRegion: + type: "object" + required: + - "label" + - "slug" + properties: + label: + type: "string" + description: "Name of the storage region" + slug: + type: "string" + description: "Slug for the storage region" + example: + label: "label" + slug: "slug" + QuotaHistory_history: + type: "object" + properties: + days: + type: "integer" + description: "" + display: + type: "object" + description: "" + properties: {} + end: + type: "string" + description: "" + plan: + type: "string" + description: "" + raw: + type: "object" + description: "" + properties: {} + start: + type: "string" + description: "" + PackagesUploadConda: + type: "object" + required: + - "package_file" + properties: + package_file: + type: "string" + example: "x123456789a" + description: "The primary file for the package." + republish: + type: "boolean" + description: "If true, the uploaded package will overwrite any others with\ + \ the same attributes (e.g. same version); otherwise, it will be flagged\ + \ as a duplicate." + tags: + type: "string" + description: "A comma-separated values list of tags to add to the package." + title: "PackagesUploadConda" + example: + republish: true + package_file: "x123456789a" + tags: "tags" + Format: + type: "object" + required: + - "description" + - "extensions" + - "name" + - "premium" + - "slug" + - "supports" + properties: + description: + type: "string" + description: "Description of the package format" + distributions: + type: "array" + description: "The distributions supported by this package format" + title: "DistributionsList" + items: + $ref: "#/definitions/formats_distributions" + extensions: + type: "array" + description: "A non-exhaustive list of extensions supported" + title: "ExtensionsList" + items: + type: "string" + description: "" + name: + type: "string" + description: "Name for the package format" + premium: + type: "boolean" + description: "If true the package format is a premium-only feature" + premium_plan_id: + type: "string" + description: "The minimum plan id required for this package format" + premium_plan_name: + type: "string" + description: "The minimum plan name required for this package format" + slug: + type: "string" + description: "Slug for the package format" + supports: + type: "object" + description: "A set of what the package format supports" + properties: {} + example: + extensions: + - "extensions" + - "extensions" + premium: true + name: "name" + description: "description" + supports: "{}" + premium_plan_name: "premium_plan_name" + distributions: + - name: "name" + variants: "variants" + self_url: "self_url" + slug: "slug" + - name: "name" + variants: "variants" + self_url: "self_url" + slug: "slug" + premium_plan_id: "premium_plan_id" + slug: "slug" + WebhooksPartialUpdate: + type: "object" + properties: + events: + type: "array" + description: "None" + title: "EventsList" + items: + type: "string" + description: "" + is_active: + type: "boolean" + description: "If enabled, the webhook will trigger on events and send payloads\ + \ to the configured target URL." + package_query: + type: "string" + description: "The package-based search query for webhooks to fire. This uses\ + \ the same syntax as the standard search used for repositories, and also\ + \ supports boolean logic operators such as OR/AND/NOT and parentheses for\ + \ grouping. If a package does not match, the webhook will not fire." + request_body_format: + type: "string" + description: "The format of the payloads for webhook requests." + request_body_template_format: + type: "string" + description: "The format of the payloads for webhook requests." + request_content_type: + type: "string" + description: "The value that will be sent for the 'Content Type' header. " + secret_header: + type: "string" + description: "The header to send the predefined secret in. This must be unique\ + \ from existing headers or it won't be sent. You can use this as a form\ + \ of authentication on the endpoint side." + secret_value: + type: "string" + description: "The value for the predefined secret (note: this is treated as\ + \ a passphrase and is encrypted when we store it). You can use this as a\ + \ form of authentication on the endpoint side." + signature_key: + type: "string" + description: "The value for the signature key - This is used to generate an\ + \ HMAC-based hex digest of the request body, which we send as the X-Cloudsmith-Signature\ + \ header so that you can ensure that the request wasn't modified by a malicious\ + \ party (note: this is treated as a passphrase and is encrypted when we\ + \ store it)." + target_url: + type: "string" + description: "The destination URL that webhook payloads will be POST'ed to." + templates: + type: "array" + description: "None" + title: "TemplatesList" + items: + $ref: "#/definitions/webhooksownerrepo_templates" + verify_ssl: + type: "boolean" + description: "If enabled, SSL certificates is verified when webhooks are sent.\ + \ It's recommended to leave this enabled as not verifying the integrity\ + \ of SSL certificates leaves you susceptible to Man-in-the-Middle (MITM)\ + \ attacks." + title: "WebhooksPartialUpdate" + example: + package_query: "package_query" + request_content_type: "request_content_type" + is_active: true + verify_ssl: true + signature_key: "signature_key" + target_url: "target_url" + templates: + - template: "template" + event: "event" + - template: "template" + event: "event" + secret_header: "secret_header" + secret_value: "secret_value" + request_body_format: "request_body_format" + request_body_template_format: "request_body_template_format" + events: + - "events" + - "events" + RepositoryToken: + type: "object" + required: + - "name" + properties: + clients: + type: "integer" + description: "" + created_at: + type: "string" + description: "The datetime the token was updated at." + created_by: + type: "string" + description: "" + created_by_url: + type: "string" + description: "" + default: + type: "boolean" + description: "If selected this is the default token for this repository." + disable_url: + type: "string" + description: "" + downloads: + type: "integer" + description: "" + enable_url: + type: "string" + description: "" + eula_accepted: + type: "object" + description: "" + properties: {} + eula_accepted_at: + type: "string" + description: "The datetime the EULA was accepted at." + eula_accepted_from: + type: "string" + description: "" + eula_required: + type: "boolean" + description: "If checked, a EULA acceptance is required for this token." + has_limits: + type: "boolean" + description: "" + identifier: + type: "integer" + description: "" + is_active: + type: "boolean" + description: "If enabled, the token will allow downloads based on configured\ + \ restrictions (if any)." + is_limited: + type: "boolean" + description: "" + limit_bandwidth: + type: "integer" + description: "The maximum download bandwidth allowed for the token. Values\ + \ are expressed as the selected unit of bandwidth. Please note that since\ + \ downloads are calculated asynchronously (after the download happens),\ + \ the limit may not be imposed immediately but at a later point. " + limit_bandwidth_unit: + type: "string" + description: "" + limit_date_range_from: + type: "string" + description: "The starting date/time the token is allowed to be used from." + limit_date_range_to: + type: "string" + description: "The ending date/time the token is allowed to be used until." + limit_num_clients: + type: "integer" + description: "The maximum number of unique clients allowed for the token.\ + \ Please note that since clients are calculated asynchronously (after the\ + \ download happens), the limit may not be imposed immediately but at a later\ + \ point." + limit_num_downloads: + type: "integer" + description: "The maximum number of downloads allowed for the token. Please\ + \ note that since downloads are calculated asynchronously (after the download\ + \ happens), the limit may not be imposed immediately but at a later point." + limit_package_query: + type: "string" + description: "The package-based search query to apply to restrict downloads\ + \ to. This uses the same syntax as the standard search used for repositories,\ + \ and also supports boolean logic operators such as OR/AND/NOT and parentheses\ + \ for grouping. This will still allow access to non-package files, such\ + \ as metadata." + limit_path_query: + type: "string" + description: "The path-based search query to apply to restrict downloads to.\ + \ This supports boolean logic operators such as OR/AND/NOT and parentheses\ + \ for grouping. The path evaluated does not include the domain name, the\ + \ namespace, the entitlement code used, the package format, etc. and it\ + \ always starts with a forward slash." + metadata: + type: "object" + description: "" + properties: {} + name: + type: "string" + description: "" + refresh_url: + type: "string" + description: "" + reset_url: + type: "string" + description: "" + scheduled_reset_at: + type: "string" + description: "The time at which the scheduled reset period has elapsed and\ + \ the token limits were automatically reset to zero." + scheduled_reset_period: + type: "string" + description: "" + self_url: + type: "string" + description: "" + slug_perm: + type: "string" + description: "" + token: + type: "string" + description: "" + updated_at: + type: "string" + description: "The datetime the token was updated at." + updated_by: + type: "string" + description: "" + updated_by_url: + type: "string" + description: "" + usage: + type: "string" + description: "" + user: + type: "string" + description: "" + user_url: + type: "string" + description: "" + example: + limit_date_range_to: "limit_date_range_to" + metadata: "{}" + clients: 0 + limit_bandwidth_unit: "limit_bandwidth_unit" + scheduled_reset_at: "scheduled_reset_at" + usage: "usage" + limit_bandwidth: 5 + created_at: "created_at" + limit_num_clients: 5 + eula_accepted_at: "eula_accepted_at" + limit_package_query: "limit_package_query" + limit_path_query: "limit_path_query" + default: true + updated_at: "updated_at" + downloads: 6 + user_url: "user_url" + limit_date_range_from: "limit_date_range_from" + reset_url: "reset_url" + limit_num_downloads: 2 + eula_required: true + refresh_url: "refresh_url" + scheduled_reset_period: "scheduled_reset_period" + identifier: 1 + is_active: true + eula_accepted: "{}" + eula_accepted_from: "eula_accepted_from" + created_by_url: "created_by_url" + is_limited: true + slug_perm: "slug_perm" + created_by: "created_by" + enable_url: "enable_url" + self_url: "self_url" + token: "token" + updated_by_url: "updated_by_url" + disable_url: "disable_url" + name: "name" + updated_by: "updated_by" + has_limits: true + user: "user" + PackagesValidateuploadVagrant: + type: "object" + required: + - "name" + - "package_file" + - "provider" + - "version" + properties: + name: + type: "string" + example: "tcl" + description: "The name of this package." + package_file: + type: "string" + example: "y123456789x" + description: "The primary file for the package." + provider: + type: "string" + example: "virtualbox" + description: "The virtual machine provider for the box." + republish: + type: "boolean" + description: "If true, the uploaded package will overwrite any others with\ + \ the same attributes (e.g. same version); otherwise, it will be flagged\ + \ as a duplicate." + tags: + type: "string" + description: "A comma-separated values list of tags to add to the package." + version: + type: "string" + example: "1.0" + description: "The raw version for this package." + title: "PackagesValidate-uploadVagrant" + example: + republish: true + provider: "virtualbox" + name: "tcl" + package_file: "y123456789x" + version: "1.0" + tags: "tags" + PackageDependencies_dependencies: + type: "object" + properties: + dep_type: + type: "string" + description: "" + name: + type: "string" + description: "The name of the package dependency." + operator: + type: "string" + description: "" + version: + type: "string" + description: "The raw dependency version (if any)." + example: + dep_type: "dep_type" + name: "name" + version: "version" + operator: "operator" + distros_versions: + type: "object" + properties: + name: + type: "string" + description: "The textual name for this version." + slug: + type: "string" + description: "The slug identifier for this version" + example: + name: "name" + slug: "slug" + PackagesUploadCocoapods: + type: "object" + required: + - "package_file" + properties: + package_file: + type: "string" + example: "z123456789" + description: "The primary file for the package." + republish: + type: "boolean" + description: "If true, the uploaded package will overwrite any others with\ + \ the same attributes (e.g. same version); otherwise, it will be flagged\ + \ as a duplicate." + tags: + type: "string" + description: "A comma-separated values list of tags to add to the package." + title: "PackagesUploadCocoapods" + example: + republish: true + package_file: "z123456789" + tags: "tags" + PackagesValidateuploadCargo: + type: "object" + required: + - "package_file" + properties: + package_file: + type: "string" + example: "x123456789a" + description: "The primary file for the package." + republish: + type: "boolean" + description: "If true, the uploaded package will overwrite any others with\ + \ the same attributes (e.g. same version); otherwise, it will be flagged\ + \ as a duplicate." + tags: + type: "string" + description: "A comma-separated values list of tags to add to the package." + title: "PackagesValidate-uploadCargo" + example: + republish: true + package_file: "x123456789a" + tags: "tags" + EntitlementsSync: + type: "object" + required: + - "source" + properties: + source: + type: "string" + description: "The source repository slug (in the same owner namespace)." + title: "EntitlementsSync" + example: + source: "source" + EntitlementsCreate: + type: "object" + required: + - "name" + properties: + eula_required: + type: "boolean" + description: "If checked, a EULA acceptance is required for this token." + is_active: + type: "boolean" + description: "If enabled, the token will allow downloads based on configured\ + \ restrictions (if any)." + limit_bandwidth: + type: "integer" + description: "The maximum download bandwidth allowed for the token. Values\ + \ are expressed as the selected unit of bandwidth. Please note that since\ + \ downloads are calculated asynchronously (after the download happens),\ + \ the limit may not be imposed immediately but at a later point. " + limit_bandwidth_unit: + type: "string" + description: "None" + limit_date_range_from: + type: "string" + description: "The starting date/time the token is allowed to be used from." + limit_date_range_to: + type: "string" + description: "The ending date/time the token is allowed to be used until." + limit_num_clients: + type: "integer" + description: "The maximum number of unique clients allowed for the token.\ + \ Please note that since clients are calculated asynchronously (after the\ + \ download happens), the limit may not be imposed immediately but at a later\ + \ point." + limit_num_downloads: + type: "integer" + description: "The maximum number of downloads allowed for the token. Please\ + \ note that since downloads are calculated asynchronously (after the download\ + \ happens), the limit may not be imposed immediately but at a later point." + limit_package_query: + type: "string" + description: "The package-based search query to apply to restrict downloads\ + \ to. This uses the same syntax as the standard search used for repositories,\ + \ and also supports boolean logic operators such as OR/AND/NOT and parentheses\ + \ for grouping. This will still allow access to non-package files, such\ + \ as metadata." + limit_path_query: + type: "string" + description: "The path-based search query to apply to restrict downloads to.\ + \ This supports boolean logic operators such as OR/AND/NOT and parentheses\ + \ for grouping. The path evaluated does not include the domain name, the\ + \ namespace, the entitlement code used, the package format, etc. and it\ + \ always starts with a forward slash." + metadata: + type: "object" + description: "None" + properties: {} + name: + type: "string" + description: "None" + scheduled_reset_at: + type: "string" + description: "The time at which the scheduled reset period has elapsed and\ + \ the token limits were automatically reset to zero." + scheduled_reset_period: + type: "string" + description: "None" + token: + type: "string" + description: "None" + title: "EntitlementsCreate" + example: + limit_date_range_to: "limit_date_range_to" + metadata: "{}" + is_active: true + limit_bandwidth_unit: "limit_bandwidth_unit" + scheduled_reset_at: "scheduled_reset_at" + limit_bandwidth: 0 + limit_num_clients: 6 + limit_package_query: "limit_package_query" + limit_path_query: "limit_path_query" + token: "token" + name: "name" + limit_date_range_from: "limit_date_range_from" + limit_num_downloads: 1 + eula_required: true + scheduled_reset_period: "scheduled_reset_period" + FilesAbort: + type: "object" + required: + - "filename" + properties: + filename: + type: "string" + description: "Filename for the package file upload." + md5_checksum: + type: "string" + description: "MD5 checksum for a POST-based package file upload." + method: + type: "string" + description: "The method to use for package file upload." + sha256_checksum: + type: "string" + description: "SHA256 checksum for a PUT-based package file upload." + title: "FilesAbort" + example: + sha256_checksum: "sha256_checksum" + filename: "filename" + method: "method" + md5_checksum: "md5_checksum" + PackagesValidateuploadNuget: + type: "object" + required: + - "package_file" + properties: + package_file: + type: "string" + example: "y1234456789a" + description: "The primary file for the package." + republish: + type: "boolean" + description: "If true, the uploaded package will overwrite any others with\ + \ the same attributes (e.g. same version); otherwise, it will be flagged\ + \ as a duplicate." + symbols_file: + type: "string" + example: "y1234456789b" + description: "Attaches a symbols file to the package." + tags: + type: "string" + description: "A comma-separated values list of tags to add to the package." + title: "PackagesValidate-uploadNuget" + example: + republish: true + symbols_file: "y1234456789b" + package_file: "y1234456789a" + tags: "tags" + PackagesValidateuploadRaw: + type: "object" + required: + - "package_file" + properties: + content_type: + type: "string" + description: "A custom content/media (also known as MIME) type to be sent\ + \ when downloading this file. By default Cloudsmith will attempt to detect\ + \ the type, but if you need to override it, you can specify it here." + description: + type: "string" + example: "Everything about packaging files." + description: "A textual description of this package." + name: + type: "string" + example: "my-package" + description: "The name of this package." + package_file: + type: "string" + example: "y123456789" + description: "The primary file for the package." + republish: + type: "boolean" + description: "If true, the uploaded package will overwrite any others with\ + \ the same attributes (e.g. same version); otherwise, it will be flagged\ + \ as a duplicate." + summary: + type: "string" + example: "My Package File" + description: "A one-liner synopsis of this package." + tags: + type: "string" + description: "A comma-separated values list of tags to add to the package." + version: + type: "string" + example: "1.0" + description: "The raw version for this package." + title: "PackagesValidate-uploadRaw" + example: + summary: "My Package File" + content_type: "content_type" + republish: true + name: "my-package" + description: "Everything about packaging files." + package_file: "y123456789" + version: "1.0" + tags: "tags" + RepositoryTokenSync: + type: "object" + properties: + tokens: + type: "array" + description: "The entitlements that have been synchronised." + title: "TokensList" + items: + $ref: "#/definitions/RepositoryTokenSync_tokens" + example: + tokens: + - limit_date_range_to: "limit_date_range_to" + metadata: "metadata" + clients: 0 + limit_bandwidth_unit: "limit_bandwidth_unit" + scheduled_reset_at: "scheduled_reset_at" + usage: "usage" + limit_bandwidth: 5 + created_at: "created_at" + limit_num_clients: 5 + eula_accepted_at: "eula_accepted_at" + limit_package_query: "limit_package_query" + limit_path_query: "limit_path_query" + default: true + updated_at: "updated_at" + downloads: 6 + user_url: "user_url" + limit_date_range_from: "limit_date_range_from" + reset_url: "reset_url" + limit_num_downloads: 2 + eula_required: true + refresh_url: "refresh_url" + scheduled_reset_period: "scheduled_reset_period" + identifier: 1 + is_active: true + eula_accepted: "{}" + eula_accepted_from: "eula_accepted_from" + created_by_url: "created_by_url" + is_limited: true + slug_perm: "slug_perm" + created_by: "created_by" + enable_url: "enable_url" + self_url: "self_url" + token: "token" + updated_by_url: "updated_by_url" + disable_url: "disable_url" + name: "name" + updated_by: "updated_by" + has_limits: true + user: "user" + - limit_date_range_to: "limit_date_range_to" + metadata: "metadata" + clients: 0 + limit_bandwidth_unit: "limit_bandwidth_unit" + scheduled_reset_at: "scheduled_reset_at" + usage: "usage" + limit_bandwidth: 5 + created_at: "created_at" + limit_num_clients: 5 + eula_accepted_at: "eula_accepted_at" + limit_package_query: "limit_package_query" + limit_path_query: "limit_path_query" + default: true + updated_at: "updated_at" + downloads: 6 + user_url: "user_url" + limit_date_range_from: "limit_date_range_from" + reset_url: "reset_url" + limit_num_downloads: 2 + eula_required: true + refresh_url: "refresh_url" + scheduled_reset_period: "scheduled_reset_period" + identifier: 1 + is_active: true + eula_accepted: "{}" + eula_accepted_from: "eula_accepted_from" + created_by_url: "created_by_url" + is_limited: true + slug_perm: "slug_perm" + created_by: "created_by" + enable_url: "enable_url" + self_url: "self_url" + token: "token" + updated_by_url: "updated_by_url" + disable_url: "disable_url" + name: "name" + updated_by: "updated_by" + has_limits: true + user: "user" + PackagesTag: + type: "object" + properties: + action: + type: "string" + description: "None" + is_immutable: + type: "boolean" + description: "If true, created tags will be immutable. An immutable flag is\ + \ a tag that cannot be removed from a package." + tags: + type: "array" + description: "A list of tags to apply the action to. Not required for clears." + title: "TagsList" + items: + type: "string" + description: "" + title: "PackagesTag" + example: + is_immutable: true + action: "action" + tags: + - "tags" + - "tags" + PackagesValidateuploadHelm: + type: "object" + required: + - "package_file" + properties: + package_file: + type: "string" + example: "x123456789a" + description: "The primary file for the package." + republish: + type: "boolean" + description: "If true, the uploaded package will overwrite any others with\ + \ the same attributes (e.g. same version); otherwise, it will be flagged\ + \ as a duplicate." + tags: + type: "string" + description: "A comma-separated values list of tags to add to the package." + title: "PackagesValidate-uploadHelm" + example: + republish: true + package_file: "x123456789a" + tags: "tags" + Quota: + type: "object" + required: + - "usage" + properties: + usage: + type: "object" + example: + display: + bandwidth: + configured: "60 GB" + percentage_used: "0.0%" + plan_limit: "2 TB" + used: "0 B" + storage: + configured: "30 GB" + percentage_used: "0.109%" + plan_limit: "1 TB" + used: "1.1 GB" + raw: + bandwidth: + configured: 64424509440 + percentage_used: 0.0 + plan_limit: 2199023255552 + used: 0 + storage: + configured: 32212254720 + percentage_used: 0.109 + plan_limit: 1099511627776 + used: 1197653687 + description: "" + properties: {} + example: + usage: + display: + bandwidth: + configured: "60 GB" + percentage_used: "0.0%" + plan_limit: "2 TB" + used: "0 B" + storage: + configured: "30 GB" + percentage_used: "0.109%" + plan_limit: "1 TB" + used: "1.1 GB" + raw: + bandwidth: + configured: 64424509440 + percentage_used: 0.0 + plan_limit: 2199023255552 + used: 0 + storage: + configured: 32212254720 + percentage_used: 0.109 + plan_limit: 1099511627776 + used: 1197653687 + PackagesValidateuploadTerraform: + type: "object" + required: + - "package_file" + properties: + package_file: + type: "string" + example: "z123456789a" + description: "The primary file for the package." + republish: + type: "boolean" + description: "If true, the uploaded package will overwrite any others with\ + \ the same attributes (e.g. same version); otherwise, it will be flagged\ + \ as a duplicate." + tags: + type: "string" + description: "A comma-separated values list of tags to add to the package." + title: "PackagesValidate-uploadTerraform" + example: + republish: true + package_file: "z123456789a" + tags: "tags" + RepositoryTokenRefresh: + type: "object" + properties: + clients: + type: "integer" + description: "" + created_at: + type: "string" + description: "The datetime the token was updated at." + created_by: + type: "string" + description: "" + created_by_url: + type: "string" + description: "" + default: + type: "boolean" + description: "If selected this is the default token for this repository." + disable_url: + type: "string" + description: "" + downloads: + type: "integer" + description: "" + enable_url: + type: "string" + description: "" + eula_accepted: + type: "object" + description: "" + properties: {} + eula_accepted_at: + type: "string" + description: "The datetime the EULA was accepted at." + eula_accepted_from: + type: "string" + description: "" + eula_required: + type: "boolean" + description: "If checked, a EULA acceptance is required for this token." + has_limits: + type: "boolean" + description: "" + identifier: + type: "integer" + description: "" + is_active: + type: "boolean" + description: "If enabled, the token will allow downloads based on configured\ + \ restrictions (if any)." + is_limited: + type: "boolean" + description: "" + limit_bandwidth: + type: "integer" + description: "The maximum download bandwidth allowed for the token. Values\ + \ are expressed as the selected unit of bandwidth. Please note that since\ + \ downloads are calculated asynchronously (after the download happens),\ + \ the limit may not be imposed immediately but at a later point. " + limit_bandwidth_unit: + type: "string" + description: "" + limit_date_range_from: + type: "string" + description: "The starting date/time the token is allowed to be used from." + limit_date_range_to: + type: "string" + description: "The ending date/time the token is allowed to be used until." + limit_num_clients: + type: "integer" + description: "The maximum number of unique clients allowed for the token.\ + \ Please note that since clients are calculated asynchronously (after the\ + \ download happens), the limit may not be imposed immediately but at a later\ + \ point." + limit_num_downloads: + type: "integer" + description: "The maximum number of downloads allowed for the token. Please\ + \ note that since downloads are calculated asynchronously (after the download\ + \ happens), the limit may not be imposed immediately but at a later point." + limit_package_query: + type: "string" + description: "The package-based search query to apply to restrict downloads\ + \ to. This uses the same syntax as the standard search used for repositories,\ + \ and also supports boolean logic operators such as OR/AND/NOT and parentheses\ + \ for grouping. This will still allow access to non-package files, such\ + \ as metadata." + limit_path_query: + type: "string" + description: "The path-based search query to apply to restrict downloads to.\ + \ This supports boolean logic operators such as OR/AND/NOT and parentheses\ + \ for grouping. The path evaluated does not include the domain name, the\ + \ namespace, the entitlement code used, the package format, etc. and it\ + \ always starts with a forward slash." + metadata: + type: "object" + description: "" + properties: {} + name: + type: "string" + description: "" + refresh_url: + type: "string" + description: "" + reset_url: + type: "string" + description: "" + scheduled_reset_at: + type: "string" + description: "The time at which the scheduled reset period has elapsed and\ + \ the token limits were automatically reset to zero." + scheduled_reset_period: + type: "string" + description: "" + self_url: + type: "string" + description: "" + slug_perm: + type: "string" + description: "" + token: + type: "string" + description: "" + updated_at: + type: "string" + description: "The datetime the token was updated at." + updated_by: + type: "string" + description: "" + updated_by_url: + type: "string" + description: "" + usage: + type: "string" + description: "" + user: + type: "string" + description: "" + user_url: + type: "string" + description: "" + example: + limit_date_range_to: "limit_date_range_to" + metadata: "{}" + clients: 0 + limit_bandwidth_unit: "limit_bandwidth_unit" + scheduled_reset_at: "scheduled_reset_at" + usage: "usage" + limit_bandwidth: 5 + created_at: "created_at" + limit_num_clients: 5 + eula_accepted_at: "eula_accepted_at" + limit_package_query: "limit_package_query" + limit_path_query: "limit_path_query" + default: true + updated_at: "updated_at" + downloads: 6 + user_url: "user_url" + limit_date_range_from: "limit_date_range_from" + reset_url: "reset_url" + limit_num_downloads: 2 + eula_required: true + refresh_url: "refresh_url" + scheduled_reset_period: "scheduled_reset_period" + identifier: 1 + is_active: true + eula_accepted: "{}" + eula_accepted_from: "eula_accepted_from" + created_by_url: "created_by_url" + is_limited: true + slug_perm: "slug_perm" + created_by: "created_by" + enable_url: "enable_url" + self_url: "self_url" + token: "token" + updated_by_url: "updated_by_url" + disable_url: "disable_url" + name: "name" + updated_by: "updated_by" + has_limits: true + user: "user" + PackagesUploadDart: + type: "object" + required: + - "package_file" + properties: + package_file: + type: "string" + example: "x123456789a" + description: "The primary file for the package." + republish: + type: "boolean" + description: "If true, the uploaded package will overwrite any others with\ + \ the same attributes (e.g. same version); otherwise, it will be flagged\ + \ as a duplicate." + tags: + type: "string" + description: "A comma-separated values list of tags to add to the package." + title: "PackagesUploadDart" + example: + republish: true + package_file: "x123456789a" + tags: "tags" +externalDocs: + description: "Find out more info at the Cloudsmith Help Website" + url: "https://help.cloudsmith.io" +x-readme: + explorer-enabled: true + proxy-enabled: false + samples-enabled: true diff --git a/bindings/go/src/api_badges.go b/bindings/go/src/api_badges.go new file mode 100644 index 00000000..636b588f --- /dev/null +++ b/bindings/go/src/api_badges.go @@ -0,0 +1,222 @@ + +/* + * Cloudsmith API + * + * The API to the Cloudsmith Service + * + * API version: v1 + * Contact: support@cloudsmith.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package cloudsmith_api + +import ( + "context" + "io/ioutil" + "net/http" + "net/url" + "strings" + "fmt" + "github.com/antihax/optional" +) + +// Linger please +var ( + _ context.Context +) + +type BadgesApiService service + +/* +BadgesApiService Get latest package version for a package or package group. +Get latest package version for a package or package group. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param owner + * @param repo + * @param packageFormat + * @param packageName + * @param packageVersion + * @param packageIdentifiers + * @param optional nil or *BadgesApiBadgesVersionListOpts - Optional Parameters: + * @param "BadgeToken" (optional.String) - Badge token to authenticate for private packages + * @param "CacheSeconds" (optional.String) - Override the shields.io badge cacheSeconds value. + * @param "Color" (optional.String) - Override the shields.io badge color value. + * @param "Label" (optional.String) - Override the shields.io badge label value. + * @param "LabelColor" (optional.String) - Override the shields.io badge labelColor value. + * @param "LogoColor" (optional.String) - Override the shields.io badge logoColor value. + * @param "LogoWidth" (optional.String) - Override the shields.io badge logoWidth value. + * @param "Render" (optional.Bool) - If true, badge will be rendered + * @param "Shields" (optional.Bool) - If true, a shields response will be generated + * @param "ShowLatest" (optional.Bool) - If true, for latest version badges a '(latest)' suffix is added + * @param "Style" (optional.String) - Override the shields.io badge style value. + +@return interface{} +*/ + +type BadgesApiBadgesVersionListOpts struct { + BadgeToken optional.String + CacheSeconds optional.String + Color optional.String + Label optional.String + LabelColor optional.String + LogoColor optional.String + LogoWidth optional.String + Render optional.Bool + Shields optional.Bool + ShowLatest optional.Bool + Style optional.String +} + +func (a *BadgesApiService) BadgesVersionList(ctx context.Context, owner string, repo string, packageFormat string, packageName string, packageVersion string, packageIdentifiers string, localVarOptionals *BadgesApiBadgesVersionListOpts) (interface{}, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue interface{} + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/badges/version/{owner}/{repo}/{package_format}/{package_name}/{package_version}/{package_identifiers}/" + localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) + localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) + localVarPath = strings.Replace(localVarPath, "{"+"package_format"+"}", fmt.Sprintf("%v", packageFormat), -1) + localVarPath = strings.Replace(localVarPath, "{"+"package_name"+"}", fmt.Sprintf("%v", packageName), -1) + localVarPath = strings.Replace(localVarPath, "{"+"package_version"+"}", fmt.Sprintf("%v", packageVersion), -1) + localVarPath = strings.Replace(localVarPath, "{"+"package_identifiers"+"}", fmt.Sprintf("%v", packageIdentifiers), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.BadgeToken.IsSet() { + localVarQueryParams.Add("badge_token", parameterToString(localVarOptionals.BadgeToken.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.CacheSeconds.IsSet() { + localVarQueryParams.Add("cacheSeconds", parameterToString(localVarOptionals.CacheSeconds.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Color.IsSet() { + localVarQueryParams.Add("color", parameterToString(localVarOptionals.Color.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Label.IsSet() { + localVarQueryParams.Add("label", parameterToString(localVarOptionals.Label.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.LabelColor.IsSet() { + localVarQueryParams.Add("labelColor", parameterToString(localVarOptionals.LabelColor.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.LogoColor.IsSet() { + localVarQueryParams.Add("logoColor", parameterToString(localVarOptionals.LogoColor.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.LogoWidth.IsSet() { + localVarQueryParams.Add("logoWidth", parameterToString(localVarOptionals.LogoWidth.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Render.IsSet() { + localVarQueryParams.Add("render", parameterToString(localVarOptionals.Render.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Shields.IsSet() { + localVarQueryParams.Add("shields", parameterToString(localVarOptionals.Shields.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.ShowLatest.IsSet() { + localVarQueryParams.Add("show_latest", parameterToString(localVarOptionals.ShowLatest.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Style.IsSet() { + localVarQueryParams.Add("style", parameterToString(localVarOptionals.Style.Value(), "")) + } + // 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{} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["X-Api-Key"] = key + + } + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, 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 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v interface{} + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 400 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 422 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + diff --git a/bindings/go/src/api_client.go b/bindings/go/src/api_client.go deleted file mode 100644 index 6eff7527..00000000 --- a/bindings/go/src/api_client.go +++ /dev/null @@ -1,164 +0,0 @@ -/* - * Cloudsmith API - * - * The API to the Cloudsmith Service - * - * OpenAPI spec version: v1 - * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -package cloudsmith_api - -import ( - "bytes" - "fmt" - "path/filepath" - "reflect" - "strings" - "net/url" - "io/ioutil" - "gopkg.in/go-resty/resty.v0" -) - -type APIClient struct { - config *Configuration -} - -func (c *APIClient) SelectHeaderContentType(contentTypes []string) string { - - if len(contentTypes) == 0 { - return "" - } - if contains(contentTypes, "application/json") { - return "application/json" - } - return contentTypes[0] // use the first content type specified in 'consumes' -} - -func (c *APIClient) SelectHeaderAccept(accepts []string) string { - - if len(accepts) == 0 { - return "" - } - if contains(accepts, "application/json") { - return "application/json" - } - return strings.Join(accepts, ",") -} - -func contains(haystack []string, needle string) bool { - for _, a := range haystack { - if strings.ToLower(a) == strings.ToLower(needle) { - return true - } - } - return false -} - -func (c *APIClient) CallAPI(path string, method string, - postBody interface{}, - headerParams map[string]string, - queryParams url.Values, - formParams map[string]string, - fileName string, - fileBytes []byte) (*resty.Response, error) { - - rClient := c.prepareClient() - request := c.prepareRequest(rClient, postBody, headerParams, queryParams, formParams, fileName, fileBytes) - - switch strings.ToUpper(method) { - case "GET": - response, err := request.Get(path) - return response, err - case "POST": - response, err := request.Post(path) - return response, err - case "PUT": - response, err := request.Put(path) - return response, err - case "PATCH": - response, err := request.Patch(path) - return response, err - case "DELETE": - response, err := request.Delete(path) - return response, err - } - - return nil, fmt.Errorf("invalid method %v", method) -} - -func (c *APIClient) ParameterToString(obj interface{}, collectionFormat string) string { - delimiter := "" - switch collectionFormat { - case "pipes": - delimiter = "|" - case "ssv": - delimiter = " " - case "tsv": - delimiter = "\t" - case "csv": - delimiter = "," - } - - if reflect.TypeOf(obj).Kind() == reflect.Slice { - return strings.Trim(strings.Replace(fmt.Sprint(obj), " ", delimiter, -1), "[]") - } - - return fmt.Sprintf("%v", obj) -} - -func (c *APIClient) prepareClient() *resty.Client { - - rClient := resty.New() - - rClient.SetDebug(c.config.Debug) - if c.config.Transport != nil { - rClient.SetTransport(c.config.Transport) - } - - if c.config.Timeout != nil { - rClient.SetTimeout(*c.config.Timeout) - } - rClient.SetLogger(ioutil.Discard) - return rClient -} - -func (c *APIClient) prepareRequest( - rClient *resty.Client, - postBody interface{}, - headerParams map[string]string, - queryParams url.Values, - formParams map[string]string, - fileName string, - fileBytes []byte) *resty.Request { - - - request := rClient.R() - request.SetBody(postBody) - - if c.config.UserAgent != "" { - request.SetHeader("User-Agent", c.config.UserAgent) - } - - // add header parameter, if any - if len(headerParams) > 0 { - request.SetHeaders(headerParams) - } - - // add query parameter, if any - if len(queryParams) > 0 { - request.SetMultiValueQueryParams(queryParams) - } - - // add form parameter, if any - if len(formParams) > 0 { - request.SetFormData(formParams) - } - - if len(fileBytes) > 0 && fileName != "" { - _, fileNm := filepath.Split(fileName) - request.SetFileReader("file", fileNm, bytes.NewReader(fileBytes)) - } - return request -} diff --git a/bindings/go/src/api_distros.go b/bindings/go/src/api_distros.go new file mode 100644 index 00000000..fe1d20e7 --- /dev/null +++ b/bindings/go/src/api_distros.go @@ -0,0 +1,271 @@ + +/* + * Cloudsmith API + * + * The API to the Cloudsmith Service + * + * API version: v1 + * Contact: support@cloudsmith.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package cloudsmith_api + +import ( + "context" + "io/ioutil" + "net/http" + "net/url" + "strings" + "fmt" +) + +// Linger please +var ( + _ context.Context +) + +type DistrosApiService service + +/* +DistrosApiService Get a list of all supported distributions. +Get a list of all supported distributions. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + +@return []Distribution +*/ +func (a *DistrosApiService) DistrosList(ctx context.Context) ([]Distribution, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue []Distribution + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/distros/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.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{} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["X-Api-Key"] = key + + } + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, 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 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v []Distribution + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 400 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 422 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +DistrosApiService View for viewing/listing distributions. +View for viewing/listing distributions. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param slug + +@return Distribution +*/ +func (a *DistrosApiService) DistrosRead(ctx context.Context, slug string) (Distribution, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue Distribution + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/distros/{slug}/" + localVarPath = strings.Replace(localVarPath, "{"+"slug"+"}", fmt.Sprintf("%v", slug), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.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{} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["X-Api-Key"] = key + + } + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, 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 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v Distribution + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 400 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 422 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + diff --git a/bindings/go/src/api_entitlements.go b/bindings/go/src/api_entitlements.go new file mode 100644 index 00000000..31f5a08e --- /dev/null +++ b/bindings/go/src/api_entitlements.go @@ -0,0 +1,1399 @@ + +/* + * Cloudsmith API + * + * The API to the Cloudsmith Service + * + * API version: v1 + * Contact: support@cloudsmith.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package cloudsmith_api + +import ( + "context" + "io/ioutil" + "net/http" + "net/url" + "strings" + "fmt" + "github.com/antihax/optional" +) + +// Linger please +var ( + _ context.Context +) + +type EntitlementsApiService service + +/* +EntitlementsApiService Create a specific entitlement in a repository. +Create a specific entitlement in a repository. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param owner + * @param repo + * @param optional nil or *EntitlementsApiEntitlementsCreateOpts - Optional Parameters: + * @param "ShowTokens" (optional.Bool) - Show entitlement token strings in results + * @param "Data" (optional.Interface of EntitlementsCreate) - + +@return RepositoryToken +*/ + +type EntitlementsApiEntitlementsCreateOpts struct { + ShowTokens optional.Bool + Data optional.Interface +} + +func (a *EntitlementsApiService) EntitlementsCreate(ctx context.Context, owner string, repo string, localVarOptionals *EntitlementsApiEntitlementsCreateOpts) (RepositoryToken, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue RepositoryToken + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/entitlements/{owner}/{repo}/" + localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) + localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.ShowTokens.IsSet() { + localVarQueryParams.Add("show_tokens", parameterToString(localVarOptionals.ShowTokens.Value(), "")) + } + // 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{} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + if localVarOptionals != nil && localVarOptionals.Data.IsSet() { + + localVarOptionalData, localVarOptionalDataok := localVarOptionals.Data.Value().(EntitlementsCreate) + if !localVarOptionalDataok { + return localVarReturnValue, nil, reportError("data should be EntitlementsCreate") + } + localVarPostBody = &localVarOptionalData + } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["X-Api-Key"] = key + + } + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, 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 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v RepositoryToken + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 400 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 404 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 422 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +EntitlementsApiService Delete a specific entitlement in a repository. +Delete a specific entitlement in a repository. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param owner + * @param repo + * @param identifier + + +*/ +func (a *EntitlementsApiService) EntitlementsDelete(ctx context.Context, owner string, repo string, identifier string) (*http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Delete") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/entitlements/{owner}/{repo}/{identifier}/" + localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) + localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) + localVarPath = strings.Replace(localVarPath, "{"+"identifier"+"}", fmt.Sprintf("%v", identifier), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.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{} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["X-Api-Key"] = key + + } + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarHttpResponse, err + } + + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 400 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 422 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, nil +} + +/* +EntitlementsApiService Disable an entitlement token in a repository. +Disable an entitlement token in a repository. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param owner + * @param repo + * @param identifier + + +*/ +func (a *EntitlementsApiService) EntitlementsDisable(ctx context.Context, owner string, repo string, identifier string) (*http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/entitlements/{owner}/{repo}/{identifier}/disable/" + localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) + localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) + localVarPath = strings.Replace(localVarPath, "{"+"identifier"+"}", fmt.Sprintf("%v", identifier), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.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{} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["X-Api-Key"] = key + + } + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarHttpResponse, err + } + + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 400 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 422 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, nil +} + +/* +EntitlementsApiService Enable an entitlement token in a repository. +Enable an entitlement token in a repository. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param owner + * @param repo + * @param identifier + + +*/ +func (a *EntitlementsApiService) EntitlementsEnable(ctx context.Context, owner string, repo string, identifier string) (*http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/entitlements/{owner}/{repo}/{identifier}/enable/" + localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) + localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) + localVarPath = strings.Replace(localVarPath, "{"+"identifier"+"}", fmt.Sprintf("%v", identifier), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.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{} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["X-Api-Key"] = key + + } + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarHttpResponse, err + } + + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 400 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 422 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, nil +} + +/* +EntitlementsApiService Get a list of all entitlements in a repository. +Get a list of all entitlements in a repository. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param owner + * @param repo + * @param optional nil or *EntitlementsApiEntitlementsListOpts - Optional Parameters: + * @param "Page" (optional.Int32) - A page number within the paginated result set. + * @param "PageSize" (optional.Int32) - Number of results to return per page. + * @param "ShowTokens" (optional.Bool) - Show entitlement token strings in results + +@return []RepositoryToken +*/ + +type EntitlementsApiEntitlementsListOpts struct { + Page optional.Int32 + PageSize optional.Int32 + ShowTokens optional.Bool +} + +func (a *EntitlementsApiService) EntitlementsList(ctx context.Context, owner string, repo string, localVarOptionals *EntitlementsApiEntitlementsListOpts) ([]RepositoryToken, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue []RepositoryToken + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/entitlements/{owner}/{repo}/" + localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) + localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.Page.IsSet() { + localVarQueryParams.Add("page", parameterToString(localVarOptionals.Page.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.PageSize.IsSet() { + localVarQueryParams.Add("page_size", parameterToString(localVarOptionals.PageSize.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.ShowTokens.IsSet() { + localVarQueryParams.Add("show_tokens", parameterToString(localVarOptionals.ShowTokens.Value(), "")) + } + // 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{} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["X-Api-Key"] = key + + } + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, 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 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v []RepositoryToken + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 400 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 404 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 422 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +EntitlementsApiService Update a specific entitlement in a repository. +Update a specific entitlement in a repository. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param owner + * @param repo + * @param identifier + * @param optional nil or *EntitlementsApiEntitlementsPartialUpdateOpts - Optional Parameters: + * @param "ShowTokens" (optional.Bool) - Show entitlement token strings in results + * @param "Data" (optional.Interface of EntitlementsPartialUpdate) - + +@return RepositoryToken +*/ + +type EntitlementsApiEntitlementsPartialUpdateOpts struct { + ShowTokens optional.Bool + Data optional.Interface +} + +func (a *EntitlementsApiService) EntitlementsPartialUpdate(ctx context.Context, owner string, repo string, identifier string, localVarOptionals *EntitlementsApiEntitlementsPartialUpdateOpts) (RepositoryToken, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Patch") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue RepositoryToken + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/entitlements/{owner}/{repo}/{identifier}/" + localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) + localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) + localVarPath = strings.Replace(localVarPath, "{"+"identifier"+"}", fmt.Sprintf("%v", identifier), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.ShowTokens.IsSet() { + localVarQueryParams.Add("show_tokens", parameterToString(localVarOptionals.ShowTokens.Value(), "")) + } + // 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{} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + if localVarOptionals != nil && localVarOptionals.Data.IsSet() { + + localVarOptionalData, localVarOptionalDataok := localVarOptionals.Data.Value().(EntitlementsPartialUpdate) + if !localVarOptionalDataok { + return localVarReturnValue, nil, reportError("data should be EntitlementsPartialUpdate") + } + localVarPostBody = &localVarOptionalData + } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["X-Api-Key"] = key + + } + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, 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 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v RepositoryToken + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 400 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 404 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 422 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +EntitlementsApiService Get a specific entitlement in a repository. +Get a specific entitlement in a repository. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param owner + * @param repo + * @param identifier + * @param optional nil or *EntitlementsApiEntitlementsReadOpts - Optional Parameters: + * @param "ShowTokens" (optional.Bool) - Show entitlement token strings in results + +@return RepositoryToken +*/ + +type EntitlementsApiEntitlementsReadOpts struct { + ShowTokens optional.Bool +} + +func (a *EntitlementsApiService) EntitlementsRead(ctx context.Context, owner string, repo string, identifier string, localVarOptionals *EntitlementsApiEntitlementsReadOpts) (RepositoryToken, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue RepositoryToken + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/entitlements/{owner}/{repo}/{identifier}/" + localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) + localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) + localVarPath = strings.Replace(localVarPath, "{"+"identifier"+"}", fmt.Sprintf("%v", identifier), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.ShowTokens.IsSet() { + localVarQueryParams.Add("show_tokens", parameterToString(localVarOptionals.ShowTokens.Value(), "")) + } + // 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{} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["X-Api-Key"] = key + + } + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, 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 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v RepositoryToken + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 400 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 404 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 422 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +EntitlementsApiService Refresh an entitlement token in a repository. +Refresh an entitlement token in a repository. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param owner + * @param repo + * @param identifier + * @param optional nil or *EntitlementsApiEntitlementsRefreshOpts - Optional Parameters: + * @param "ShowTokens" (optional.Bool) - Show entitlement token strings in results + * @param "Data" (optional.Interface of EntitlementsRefresh) - + +@return RepositoryTokenRefresh +*/ + +type EntitlementsApiEntitlementsRefreshOpts struct { + ShowTokens optional.Bool + Data optional.Interface +} + +func (a *EntitlementsApiService) EntitlementsRefresh(ctx context.Context, owner string, repo string, identifier string, localVarOptionals *EntitlementsApiEntitlementsRefreshOpts) (RepositoryTokenRefresh, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue RepositoryTokenRefresh + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/entitlements/{owner}/{repo}/{identifier}/refresh/" + localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) + localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) + localVarPath = strings.Replace(localVarPath, "{"+"identifier"+"}", fmt.Sprintf("%v", identifier), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.ShowTokens.IsSet() { + localVarQueryParams.Add("show_tokens", parameterToString(localVarOptionals.ShowTokens.Value(), "")) + } + // 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{} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + if localVarOptionals != nil && localVarOptionals.Data.IsSet() { + + localVarOptionalData, localVarOptionalDataok := localVarOptionals.Data.Value().(EntitlementsRefresh) + if !localVarOptionalDataok { + return localVarReturnValue, nil, reportError("data should be EntitlementsRefresh") + } + localVarPostBody = &localVarOptionalData + } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["X-Api-Key"] = key + + } + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, 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 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v RepositoryTokenRefresh + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 400 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 422 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +EntitlementsApiService Reset the statistics for an entitlement token in a repository. +Reset the statistics for an entitlement token in a repository. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param owner + * @param repo + * @param identifier + * @param optional nil or *EntitlementsApiEntitlementsResetOpts - Optional Parameters: + * @param "ShowTokens" (optional.Bool) - Show entitlement token strings in results + + +*/ + +type EntitlementsApiEntitlementsResetOpts struct { + ShowTokens optional.Bool +} + +func (a *EntitlementsApiService) EntitlementsReset(ctx context.Context, owner string, repo string, identifier string, localVarOptionals *EntitlementsApiEntitlementsResetOpts) (*http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/entitlements/{owner}/{repo}/{identifier}/reset/" + localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) + localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) + localVarPath = strings.Replace(localVarPath, "{"+"identifier"+"}", fmt.Sprintf("%v", identifier), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.ShowTokens.IsSet() { + localVarQueryParams.Add("show_tokens", parameterToString(localVarOptionals.ShowTokens.Value(), "")) + } + // 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{} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["X-Api-Key"] = key + + } + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarHttpResponse, err + } + + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 400 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 422 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, nil +} + +/* +EntitlementsApiService Synchronise tokens from a source repository. +Synchronise tokens from a source repository. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param owner + * @param repo + * @param optional nil or *EntitlementsApiEntitlementsSyncOpts - Optional Parameters: + * @param "ShowTokens" (optional.Bool) - Show entitlement token strings in results + * @param "Data" (optional.Interface of EntitlementsSync) - + +@return RepositoryTokenSync +*/ + +type EntitlementsApiEntitlementsSyncOpts struct { + ShowTokens optional.Bool + Data optional.Interface +} + +func (a *EntitlementsApiService) EntitlementsSync(ctx context.Context, owner string, repo string, localVarOptionals *EntitlementsApiEntitlementsSyncOpts) (RepositoryTokenSync, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue RepositoryTokenSync + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/entitlements/{owner}/{repo}/sync/" + localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) + localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.ShowTokens.IsSet() { + localVarQueryParams.Add("show_tokens", parameterToString(localVarOptionals.ShowTokens.Value(), "")) + } + // 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{} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + if localVarOptionals != nil && localVarOptionals.Data.IsSet() { + + localVarOptionalData, localVarOptionalDataok := localVarOptionals.Data.Value().(EntitlementsSync) + if !localVarOptionalDataok { + return localVarReturnValue, nil, reportError("data should be EntitlementsSync") + } + localVarPostBody = &localVarOptionalData + } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["X-Api-Key"] = key + + } + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, 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 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v RepositoryTokenSync + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 400 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 404 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 422 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + diff --git a/bindings/go/src/api_files.go b/bindings/go/src/api_files.go new file mode 100644 index 00000000..2363f9e0 --- /dev/null +++ b/bindings/go/src/api_files.go @@ -0,0 +1,743 @@ + +/* + * Cloudsmith API + * + * The API to the Cloudsmith Service + * + * API version: v1 + * Contact: support@cloudsmith.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package cloudsmith_api + +import ( + "context" + "io/ioutil" + "net/http" + "net/url" + "strings" + "fmt" + "github.com/antihax/optional" +) + +// Linger please +var ( + _ context.Context +) + +type FilesApiService service + +/* +FilesApiService Abort a multipart file upload. +Abort a multipart file upload. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param owner + * @param repo + * @param identifier + * @param optional nil or *FilesApiFilesAbortOpts - Optional Parameters: + * @param "Data" (optional.Interface of FilesAbort) - + + +*/ + +type FilesApiFilesAbortOpts struct { + Data optional.Interface +} + +func (a *FilesApiService) FilesAbort(ctx context.Context, owner string, repo string, identifier string, localVarOptionals *FilesApiFilesAbortOpts) (*http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/files/{owner}/{repo}/{identifier}/abort/" + localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) + localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) + localVarPath = strings.Replace(localVarPath, "{"+"identifier"+"}", fmt.Sprintf("%v", identifier), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.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{} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + if localVarOptionals != nil && localVarOptionals.Data.IsSet() { + + localVarOptionalData, localVarOptionalDataok := localVarOptionals.Data.Value().(FilesAbort) + if !localVarOptionalDataok { + return nil, reportError("data should be FilesAbort") + } + localVarPostBody = &localVarOptionalData + } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["X-Api-Key"] = key + + } + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarHttpResponse, err + } + + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 400 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 404 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 422 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, nil +} + +/* +FilesApiService Complete a multipart file upload. +Complete a multipart file upload. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param owner + * @param repo + * @param identifier + * @param optional nil or *FilesApiFilesCompleteOpts - Optional Parameters: + * @param "Data" (optional.Interface of FilesComplete) - + +@return PackageFileUpload +*/ + +type FilesApiFilesCompleteOpts struct { + Data optional.Interface +} + +func (a *FilesApiService) FilesComplete(ctx context.Context, owner string, repo string, identifier string, localVarOptionals *FilesApiFilesCompleteOpts) (PackageFileUpload, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue PackageFileUpload + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/files/{owner}/{repo}/{identifier}/complete/" + localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) + localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) + localVarPath = strings.Replace(localVarPath, "{"+"identifier"+"}", fmt.Sprintf("%v", identifier), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.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{} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + if localVarOptionals != nil && localVarOptionals.Data.IsSet() { + + localVarOptionalData, localVarOptionalDataok := localVarOptionals.Data.Value().(FilesComplete) + if !localVarOptionalDataok { + return localVarReturnValue, nil, reportError("data should be FilesComplete") + } + localVarPostBody = &localVarOptionalData + } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["X-Api-Key"] = key + + } + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, 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 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 201 { + var v PackageFileUpload + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 400 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 404 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 422 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +FilesApiService Request URL(s) to upload new package file upload(s) to. +Request URL(s) to upload new package file upload(s) to. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param owner + * @param repo + * @param optional nil or *FilesApiFilesCreateOpts - Optional Parameters: + * @param "Data" (optional.Interface of FilesCreate) - + +@return PackageFileUpload +*/ + +type FilesApiFilesCreateOpts struct { + Data optional.Interface +} + +func (a *FilesApiService) FilesCreate(ctx context.Context, owner string, repo string, localVarOptionals *FilesApiFilesCreateOpts) (PackageFileUpload, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue PackageFileUpload + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/files/{owner}/{repo}/" + localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) + localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.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{} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + if localVarOptionals != nil && localVarOptionals.Data.IsSet() { + + localVarOptionalData, localVarOptionalDataok := localVarOptionals.Data.Value().(FilesCreate) + if !localVarOptionalDataok { + return localVarReturnValue, nil, reportError("data should be FilesCreate") + } + localVarPostBody = &localVarOptionalData + } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["X-Api-Key"] = key + + } + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, 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 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 202 { + var v PackageFileUpload + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 400 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 404 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 422 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +FilesApiService Get upload information for a multipart file upload. +Get upload information for a multipart file upload. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param owner + * @param repo + * @param identifier + +@return PackageFilePartsUpload +*/ +func (a *FilesApiService) FilesInfo(ctx context.Context, owner string, repo string, identifier string) (PackageFilePartsUpload, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue PackageFilePartsUpload + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/files/{owner}/{repo}/{identifier}/info/" + localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) + localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) + localVarPath = strings.Replace(localVarPath, "{"+"identifier"+"}", fmt.Sprintf("%v", identifier), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.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{} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["X-Api-Key"] = key + + } + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, 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 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v PackageFilePartsUpload + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 400 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 404 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 422 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +FilesApiService Validate parameters used for create. +Validate parameters used for create. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param owner + * @param repo + * @param optional nil or *FilesApiFilesValidateOpts - Optional Parameters: + * @param "Data" (optional.Interface of FilesValidate) - + + +*/ + +type FilesApiFilesValidateOpts struct { + Data optional.Interface +} + +func (a *FilesApiService) FilesValidate(ctx context.Context, owner string, repo string, localVarOptionals *FilesApiFilesValidateOpts) (*http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/files/{owner}/{repo}/validate/" + localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) + localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.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{} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + if localVarOptionals != nil && localVarOptionals.Data.IsSet() { + + localVarOptionalData, localVarOptionalDataok := localVarOptionals.Data.Value().(FilesValidate) + if !localVarOptionalDataok { + return nil, reportError("data should be FilesValidate") + } + localVarPostBody = &localVarOptionalData + } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["X-Api-Key"] = key + + } + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarHttpResponse, err + } + + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 400 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 404 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 422 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, nil +} + diff --git a/bindings/go/src/api_formats.go b/bindings/go/src/api_formats.go new file mode 100644 index 00000000..93bd9870 --- /dev/null +++ b/bindings/go/src/api_formats.go @@ -0,0 +1,271 @@ + +/* + * Cloudsmith API + * + * The API to the Cloudsmith Service + * + * API version: v1 + * Contact: support@cloudsmith.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package cloudsmith_api + +import ( + "context" + "io/ioutil" + "net/http" + "net/url" + "strings" + "fmt" +) + +// Linger please +var ( + _ context.Context +) + +type FormatsApiService service + +/* +FormatsApiService Get a list of all supported package formats. +Get a list of all supported package formats. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + +@return []Format +*/ +func (a *FormatsApiService) FormatsList(ctx context.Context) ([]Format, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue []Format + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/formats/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.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{} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["X-Api-Key"] = key + + } + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, 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 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v []Format + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 400 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 422 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +FormatsApiService Get a specific supported package format. +Get a specific supported package format. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param slug + +@return Format +*/ +func (a *FormatsApiService) FormatsRead(ctx context.Context, slug string) (Format, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue Format + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/formats/{slug}/" + localVarPath = strings.Replace(localVarPath, "{"+"slug"+"}", fmt.Sprintf("%v", slug), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.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{} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["X-Api-Key"] = key + + } + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, 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 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v Format + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 400 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 422 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + diff --git a/bindings/go/src/api_metrics.go b/bindings/go/src/api_metrics.go new file mode 100644 index 00000000..e2dc7ddf --- /dev/null +++ b/bindings/go/src/api_metrics.go @@ -0,0 +1,490 @@ + +/* + * Cloudsmith API + * + * The API to the Cloudsmith Service + * + * API version: v1 + * Contact: support@cloudsmith.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package cloudsmith_api + +import ( + "context" + "io/ioutil" + "net/http" + "net/url" + "strings" + "fmt" + "github.com/antihax/optional" +) + +// Linger please +var ( + _ context.Context +) + +type MetricsApiService service + +/* +MetricsApiService View for listing entitlement token metrics, across an account. +View for listing entitlement token metrics, across an account. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param owner + * @param optional nil or *MetricsApiMetricsEntitlementsListOpts - Optional Parameters: + * @param "Page" (optional.Int32) - A page number within the paginated result set. + * @param "PageSize" (optional.Int32) - Number of results to return per page. + * @param "Finish" (optional.String) - Include metrics upto and including this UTC date or UTC datetime. For example '2020-12-31' or '2021-12-13T00:00:00Z'. + * @param "Start" (optional.String) - Include metrics from and including this UTC date or UTC datetime. For example '2020-12-31' or '2021-12-13T00:00:00Z'. + * @param "Tokens" (optional.String) - A comma seperated list of tokens (slug perm) to include in the results. + +@return EntitlementUsageMetrics +*/ + +type MetricsApiMetricsEntitlementsListOpts struct { + Page optional.Int32 + PageSize optional.Int32 + Finish optional.String + Start optional.String + Tokens optional.String +} + +func (a *MetricsApiService) MetricsEntitlementsList(ctx context.Context, owner string, localVarOptionals *MetricsApiMetricsEntitlementsListOpts) (EntitlementUsageMetrics, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue EntitlementUsageMetrics + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/metrics/entitlements/{owner}/" + localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.Page.IsSet() { + localVarQueryParams.Add("page", parameterToString(localVarOptionals.Page.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.PageSize.IsSet() { + localVarQueryParams.Add("page_size", parameterToString(localVarOptionals.PageSize.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Finish.IsSet() { + localVarQueryParams.Add("finish", parameterToString(localVarOptionals.Finish.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Start.IsSet() { + localVarQueryParams.Add("start", parameterToString(localVarOptionals.Start.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Tokens.IsSet() { + localVarQueryParams.Add("tokens", parameterToString(localVarOptionals.Tokens.Value(), "")) + } + // 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{} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["X-Api-Key"] = key + + } + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, 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 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v EntitlementUsageMetrics + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 400 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 422 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +MetricsApiService View for listing entitlement token metrics, for a repository. +View for listing entitlement token metrics, for a repository. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param owner + * @param repo + * @param optional nil or *MetricsApiMetricsEntitlementsList0Opts - Optional Parameters: + * @param "Page" (optional.Int32) - A page number within the paginated result set. + * @param "PageSize" (optional.Int32) - Number of results to return per page. + * @param "Finish" (optional.String) - Include metrics upto and including this UTC date or UTC datetime. For example '2020-12-31' or '2021-12-13T00:00:00Z'. + * @param "Start" (optional.String) - Include metrics from and including this UTC date or UTC datetime. For example '2020-12-31' or '2021-12-13T00:00:00Z'. + * @param "Tokens" (optional.String) - A comma seperated list of tokens (slug perm) to include in the results. + +@return EntitlementUsageMetrics +*/ + +type MetricsApiMetricsEntitlementsList0Opts struct { + Page optional.Int32 + PageSize optional.Int32 + Finish optional.String + Start optional.String + Tokens optional.String +} + +func (a *MetricsApiService) MetricsEntitlementsList0(ctx context.Context, owner string, repo string, localVarOptionals *MetricsApiMetricsEntitlementsList0Opts) (EntitlementUsageMetrics, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue EntitlementUsageMetrics + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/metrics/entitlements/{owner}/{repo}/" + localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) + localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.Page.IsSet() { + localVarQueryParams.Add("page", parameterToString(localVarOptionals.Page.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.PageSize.IsSet() { + localVarQueryParams.Add("page_size", parameterToString(localVarOptionals.PageSize.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Finish.IsSet() { + localVarQueryParams.Add("finish", parameterToString(localVarOptionals.Finish.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Start.IsSet() { + localVarQueryParams.Add("start", parameterToString(localVarOptionals.Start.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Tokens.IsSet() { + localVarQueryParams.Add("tokens", parameterToString(localVarOptionals.Tokens.Value(), "")) + } + // 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{} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["X-Api-Key"] = key + + } + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, 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 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v EntitlementUsageMetrics + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 400 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 422 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +MetricsApiService View for listing package usage metrics, for a repository. +View for listing package usage metrics, for a repository. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param owner + * @param repo + * @param optional nil or *MetricsApiMetricsPackagesListOpts - Optional Parameters: + * @param "Page" (optional.Int32) - A page number within the paginated result set. + * @param "PageSize" (optional.Int32) - Number of results to return per page. + * @param "Finish" (optional.String) - Include metrics upto and including this UTC date or UTC datetime. For example '2020-12-31' or '2021-12-13T00:00:00Z'. + * @param "Packages" (optional.String) - A comma seperated list of packages (slug perm) to include in the results. + * @param "Start" (optional.String) - Include metrics from and including this UTC date or UTC datetime. For example '2020-12-31' or '2021-12-13T00:00:00Z'. + +@return PackageUsageMetrics +*/ + +type MetricsApiMetricsPackagesListOpts struct { + Page optional.Int32 + PageSize optional.Int32 + Finish optional.String + Packages optional.String + Start optional.String +} + +func (a *MetricsApiService) MetricsPackagesList(ctx context.Context, owner string, repo string, localVarOptionals *MetricsApiMetricsPackagesListOpts) (PackageUsageMetrics, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue PackageUsageMetrics + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/metrics/packages/{owner}/{repo}/" + localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) + localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.Page.IsSet() { + localVarQueryParams.Add("page", parameterToString(localVarOptionals.Page.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.PageSize.IsSet() { + localVarQueryParams.Add("page_size", parameterToString(localVarOptionals.PageSize.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Finish.IsSet() { + localVarQueryParams.Add("finish", parameterToString(localVarOptionals.Finish.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Packages.IsSet() { + localVarQueryParams.Add("packages", parameterToString(localVarOptionals.Packages.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Start.IsSet() { + localVarQueryParams.Add("start", parameterToString(localVarOptionals.Start.Value(), "")) + } + // 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{} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["X-Api-Key"] = key + + } + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, 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 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v PackageUsageMetrics + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 400 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 422 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + diff --git a/bindings/go/src/api_namespaces.go b/bindings/go/src/api_namespaces.go new file mode 100644 index 00000000..bedcc6f1 --- /dev/null +++ b/bindings/go/src/api_namespaces.go @@ -0,0 +1,287 @@ + +/* + * Cloudsmith API + * + * The API to the Cloudsmith Service + * + * API version: v1 + * Contact: support@cloudsmith.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package cloudsmith_api + +import ( + "context" + "io/ioutil" + "net/http" + "net/url" + "strings" + "fmt" + "github.com/antihax/optional" +) + +// Linger please +var ( + _ context.Context +) + +type NamespacesApiService service + +/* +NamespacesApiService Get a list of all namespaces the user belongs to. +Get a list of all namespaces the user belongs to. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param optional nil or *NamespacesApiNamespacesListOpts - Optional Parameters: + * @param "Page" (optional.Int32) - A page number within the paginated result set. + * @param "PageSize" (optional.Int32) - Number of results to return per page. + +@return []Namespace +*/ + +type NamespacesApiNamespacesListOpts struct { + Page optional.Int32 + PageSize optional.Int32 +} + +func (a *NamespacesApiService) NamespacesList(ctx context.Context, localVarOptionals *NamespacesApiNamespacesListOpts) ([]Namespace, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue []Namespace + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/namespaces/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.Page.IsSet() { + localVarQueryParams.Add("page", parameterToString(localVarOptionals.Page.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.PageSize.IsSet() { + localVarQueryParams.Add("page_size", parameterToString(localVarOptionals.PageSize.Value(), "")) + } + // 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{} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["X-Api-Key"] = key + + } + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, 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 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v []Namespace + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 400 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 422 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +NamespacesApiService Views for working with namespaces. +Views for working with namespaces. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param slug + +@return Namespace +*/ +func (a *NamespacesApiService) NamespacesRead(ctx context.Context, slug string) (Namespace, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue Namespace + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/namespaces/{slug}/" + localVarPath = strings.Replace(localVarPath, "{"+"slug"+"}", fmt.Sprintf("%v", slug), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.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{} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["X-Api-Key"] = key + + } + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, 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 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v Namespace + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 400 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 422 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + diff --git a/bindings/go/src/api_orgs.go b/bindings/go/src/api_orgs.go new file mode 100644 index 00000000..02ddf56c --- /dev/null +++ b/bindings/go/src/api_orgs.go @@ -0,0 +1,672 @@ + +/* + * Cloudsmith API + * + * The API to the Cloudsmith Service + * + * API version: v1 + * Contact: support@cloudsmith.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package cloudsmith_api + +import ( + "context" + "io/ioutil" + "net/http" + "net/url" + "strings" + "fmt" + "github.com/antihax/optional" +) + +// Linger please +var ( + _ context.Context +) + +type OrgsApiService service + +/* +OrgsApiService Get a list of all the organizations you are associated with. +Get a list of all the organizations you are associated with. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param optional nil or *OrgsApiOrgsListOpts - Optional Parameters: + * @param "Page" (optional.Int32) - A page number within the paginated result set. + * @param "PageSize" (optional.Int32) - Number of results to return per page. + +@return []Organization +*/ + +type OrgsApiOrgsListOpts struct { + Page optional.Int32 + PageSize optional.Int32 +} + +func (a *OrgsApiService) OrgsList(ctx context.Context, localVarOptionals *OrgsApiOrgsListOpts) ([]Organization, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue []Organization + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/orgs/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.Page.IsSet() { + localVarQueryParams.Add("page", parameterToString(localVarOptionals.Page.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.PageSize.IsSet() { + localVarQueryParams.Add("page_size", parameterToString(localVarOptionals.PageSize.Value(), "")) + } + // 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{} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["X-Api-Key"] = key + + } + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, 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 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v []Organization + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 400 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 422 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +OrgsApiService Get the details for all organization members. +Get the details for all organization members. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param org + * @param optional nil or *OrgsApiOrgsMembersListOpts - Optional Parameters: + * @param "Page" (optional.Int32) - A page number within the paginated result set. + * @param "PageSize" (optional.Int32) - Number of results to return per page. + +@return []OrganizationMembership +*/ + +type OrgsApiOrgsMembersListOpts struct { + Page optional.Int32 + PageSize optional.Int32 +} + +func (a *OrgsApiService) OrgsMembersList(ctx context.Context, org string, localVarOptionals *OrgsApiOrgsMembersListOpts) ([]OrganizationMembership, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue []OrganizationMembership + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/orgs/{org}/members/" + localVarPath = strings.Replace(localVarPath, "{"+"org"+"}", fmt.Sprintf("%v", org), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.Page.IsSet() { + localVarQueryParams.Add("page", parameterToString(localVarOptionals.Page.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.PageSize.IsSet() { + localVarQueryParams.Add("page_size", parameterToString(localVarOptionals.PageSize.Value(), "")) + } + // 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{} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["X-Api-Key"] = key + + } + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, 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 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v []OrganizationMembership + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 400 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 422 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +OrgsApiService Get the details for a specific organization member. +Get the details for a specific organization member. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param org + * @param member + +@return OrganizationMembership +*/ +func (a *OrgsApiService) OrgsMembersRead(ctx context.Context, org string, member string) (OrganizationMembership, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue OrganizationMembership + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/orgs/{org}/members/{member}/" + localVarPath = strings.Replace(localVarPath, "{"+"org"+"}", fmt.Sprintf("%v", org), -1) + localVarPath = strings.Replace(localVarPath, "{"+"member"+"}", fmt.Sprintf("%v", member), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.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{} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["X-Api-Key"] = key + + } + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, 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 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v OrganizationMembership + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 400 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 422 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +OrgsApiService Removes a member from the organization. +Removes a member from the organization. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param org + * @param member + +@return OrganizationMembership +*/ +func (a *OrgsApiService) OrgsMembersRemove(ctx context.Context, org string, member string) (OrganizationMembership, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue OrganizationMembership + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/orgs/{org}/members/{member}/remove/" + localVarPath = strings.Replace(localVarPath, "{"+"org"+"}", fmt.Sprintf("%v", org), -1) + localVarPath = strings.Replace(localVarPath, "{"+"member"+"}", fmt.Sprintf("%v", member), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.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{} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["X-Api-Key"] = key + + } + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, 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 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v OrganizationMembership + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 400 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 422 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +OrgsApiService Get the details for the specific organization. +Get the details for the specific organization. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param org + +@return Organization +*/ +func (a *OrgsApiService) OrgsRead(ctx context.Context, org string) (Organization, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue Organization + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/orgs/{org}/" + localVarPath = strings.Replace(localVarPath, "{"+"org"+"}", fmt.Sprintf("%v", org), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.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{} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["X-Api-Key"] = key + + } + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, 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 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v Organization + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 400 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 422 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + diff --git a/bindings/go/src/api_packages.go b/bindings/go/src/api_packages.go new file mode 100644 index 00000000..968840d0 --- /dev/null +++ b/bindings/go/src/api_packages.go @@ -0,0 +1,7923 @@ + +/* + * Cloudsmith API + * + * The API to the Cloudsmith Service + * + * API version: v1 + * Contact: support@cloudsmith.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package cloudsmith_api + +import ( + "context" + "io/ioutil" + "net/http" + "net/url" + "strings" + "fmt" + "github.com/antihax/optional" +) + +// Linger please +var ( + _ context.Context +) + +type PackagesApiService service + +/* +PackagesApiService Copy a package to another repository. +Copy a package to another repository. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param owner + * @param repo + * @param identifier + * @param optional nil or *PackagesApiPackagesCopyOpts - Optional Parameters: + * @param "Data" (optional.Interface of PackagesCopy) - + +@return PackageCopy +*/ + +type PackagesApiPackagesCopyOpts struct { + Data optional.Interface +} + +func (a *PackagesApiService) PackagesCopy(ctx context.Context, owner string, repo string, identifier string, localVarOptionals *PackagesApiPackagesCopyOpts) (PackageCopy, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue PackageCopy + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/packages/{owner}/{repo}/{identifier}/copy/" + localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) + localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) + localVarPath = strings.Replace(localVarPath, "{"+"identifier"+"}", fmt.Sprintf("%v", identifier), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.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{} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + if localVarOptionals != nil && localVarOptionals.Data.IsSet() { + + localVarOptionalData, localVarOptionalDataok := localVarOptionals.Data.Value().(PackagesCopy) + if !localVarOptionalDataok { + return localVarReturnValue, nil, reportError("data should be PackagesCopy") + } + localVarPostBody = &localVarOptionalData + } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["X-Api-Key"] = key + + } + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, 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 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v PackageCopy + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 400 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 422 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +PackagesApiService Delete a specific package in a repository. +Delete a specific package in a repository. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param owner + * @param repo + * @param identifier + + +*/ +func (a *PackagesApiService) PackagesDelete(ctx context.Context, owner string, repo string, identifier string) (*http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Delete") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/packages/{owner}/{repo}/{identifier}/" + localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) + localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) + localVarPath = strings.Replace(localVarPath, "{"+"identifier"+"}", fmt.Sprintf("%v", identifier), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.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{} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["X-Api-Key"] = key + + } + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarHttpResponse, err + } + + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 400 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 422 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, nil +} + +/* +PackagesApiService Get the direct (non-transitive) dependencies list for a package. +Get the direct (non-transitive) dependencies list for a package. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param owner + * @param repo + * @param identifier + +@return PackageDependencies +*/ +func (a *PackagesApiService) PackagesDependencies(ctx context.Context, owner string, repo string, identifier string) (PackageDependencies, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue PackageDependencies + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/packages/{owner}/{repo}/{identifier}/dependencies/" + localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) + localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) + localVarPath = strings.Replace(localVarPath, "{"+"identifier"+"}", fmt.Sprintf("%v", identifier), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.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{} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["X-Api-Key"] = key + + } + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, 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 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v PackageDependencies + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 400 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 422 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +PackagesApiService Get a list of all packages associated with repository. +Get a list of all packages associated with repository. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param owner + * @param repo + * @param optional nil or *PackagesApiPackagesListOpts - Optional Parameters: + * @param "Page" (optional.Int32) - A page number within the paginated result set. + * @param "PageSize" (optional.Int32) - Number of results to return per page. + * @param "Query" (optional.String) - A search term for querying names, filenames, versions, distributions, architectures, formats or statuses of packages. + * @param "Sort" (optional.String) - A field for sorting objects in ascending or descending order. + +@return []ModelPackage +*/ + +type PackagesApiPackagesListOpts struct { + Page optional.Int32 + PageSize optional.Int32 + Query optional.String + Sort optional.String +} + +func (a *PackagesApiService) PackagesList(ctx context.Context, owner string, repo string, localVarOptionals *PackagesApiPackagesListOpts) ([]ModelPackage, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue []ModelPackage + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/packages/{owner}/{repo}/" + localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) + localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.Page.IsSet() { + localVarQueryParams.Add("page", parameterToString(localVarOptionals.Page.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.PageSize.IsSet() { + localVarQueryParams.Add("page_size", parameterToString(localVarOptionals.PageSize.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Query.IsSet() { + localVarQueryParams.Add("query", parameterToString(localVarOptionals.Query.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.Sort.IsSet() { + localVarQueryParams.Add("sort", parameterToString(localVarOptionals.Sort.Value(), "")) + } + // 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{} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["X-Api-Key"] = key + + } + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, 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 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v []ModelPackage + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 400 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 422 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +PackagesApiService Move a package to another repository. +Move a package to another repository. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param owner + * @param repo + * @param identifier + * @param optional nil or *PackagesApiPackagesMoveOpts - Optional Parameters: + * @param "Data" (optional.Interface of PackagesMove) - + +@return PackageMove +*/ + +type PackagesApiPackagesMoveOpts struct { + Data optional.Interface +} + +func (a *PackagesApiService) PackagesMove(ctx context.Context, owner string, repo string, identifier string, localVarOptionals *PackagesApiPackagesMoveOpts) (PackageMove, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue PackageMove + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/packages/{owner}/{repo}/{identifier}/move/" + localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) + localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) + localVarPath = strings.Replace(localVarPath, "{"+"identifier"+"}", fmt.Sprintf("%v", identifier), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.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{} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + if localVarOptionals != nil && localVarOptionals.Data.IsSet() { + + localVarOptionalData, localVarOptionalDataok := localVarOptionals.Data.Value().(PackagesMove) + if !localVarOptionalDataok { + return localVarReturnValue, nil, reportError("data should be PackagesMove") + } + localVarPostBody = &localVarOptionalData + } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["X-Api-Key"] = key + + } + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, 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 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v PackageMove + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 400 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 422 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +PackagesApiService Get a specific package in a repository. +Get a specific package in a repository. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param owner + * @param repo + * @param identifier + +@return ModelPackage +*/ +func (a *PackagesApiService) PackagesRead(ctx context.Context, owner string, repo string, identifier string) (ModelPackage, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue ModelPackage + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/packages/{owner}/{repo}/{identifier}/" + localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) + localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) + localVarPath = strings.Replace(localVarPath, "{"+"identifier"+"}", fmt.Sprintf("%v", identifier), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.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{} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["X-Api-Key"] = key + + } + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, 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 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v ModelPackage + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 400 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 422 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +PackagesApiService Schedule a package for resynchronisation. +Schedule a package for resynchronisation. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param owner + * @param repo + * @param identifier + +@return ModelPackage +*/ +func (a *PackagesApiService) PackagesResync(ctx context.Context, owner string, repo string, identifier string) (ModelPackage, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue ModelPackage + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/packages/{owner}/{repo}/{identifier}/resync/" + localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) + localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) + localVarPath = strings.Replace(localVarPath, "{"+"identifier"+"}", fmt.Sprintf("%v", identifier), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.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{} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["X-Api-Key"] = key + + } + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, 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 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v ModelPackage + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 400 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 422 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +PackagesApiService Schedule a package for scanning. +Schedule a package for scanning. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param owner + * @param repo + * @param identifier + +@return ModelPackage +*/ +func (a *PackagesApiService) PackagesScan(ctx context.Context, owner string, repo string, identifier string) (ModelPackage, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue ModelPackage + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/packages/{owner}/{repo}/{identifier}/scan/" + localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) + localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) + localVarPath = strings.Replace(localVarPath, "{"+"identifier"+"}", fmt.Sprintf("%v", identifier), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.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{} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["X-Api-Key"] = key + + } + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, 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 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v ModelPackage + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 400 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 422 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +PackagesApiService Get the synchronisation status for a package. +Get the synchronisation status for a package. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param owner + * @param repo + * @param identifier + +@return PackageStatus +*/ +func (a *PackagesApiService) PackagesStatus(ctx context.Context, owner string, repo string, identifier string) (PackageStatus, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue PackageStatus + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/packages/{owner}/{repo}/{identifier}/status/" + localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) + localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) + localVarPath = strings.Replace(localVarPath, "{"+"identifier"+"}", fmt.Sprintf("%v", identifier), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.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{} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["X-Api-Key"] = key + + } + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, 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 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v PackageStatus + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 400 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 422 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +PackagesApiService Add/Replace/Remove tags for a package. +Add/Replace/Remove tags for a package. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param owner + * @param repo + * @param identifier + * @param optional nil or *PackagesApiPackagesTagOpts - Optional Parameters: + * @param "Data" (optional.Interface of PackagesTag) - + +@return ModelPackage +*/ + +type PackagesApiPackagesTagOpts struct { + Data optional.Interface +} + +func (a *PackagesApiService) PackagesTag(ctx context.Context, owner string, repo string, identifier string, localVarOptionals *PackagesApiPackagesTagOpts) (ModelPackage, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue ModelPackage + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/packages/{owner}/{repo}/{identifier}/tag/" + localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) + localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) + localVarPath = strings.Replace(localVarPath, "{"+"identifier"+"}", fmt.Sprintf("%v", identifier), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.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{} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + if localVarOptionals != nil && localVarOptionals.Data.IsSet() { + + localVarOptionalData, localVarOptionalDataok := localVarOptionals.Data.Value().(PackagesTag) + if !localVarOptionalDataok { + return localVarReturnValue, nil, reportError("data should be PackagesTag") + } + localVarPostBody = &localVarOptionalData + } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["X-Api-Key"] = key + + } + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, 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 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v ModelPackage + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 400 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 422 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +PackagesApiService Create a new Alpine package +Create a new Alpine package + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param owner + * @param repo + * @param optional nil or *PackagesApiPackagesUploadAlpineOpts - Optional Parameters: + * @param "Data" (optional.Interface of PackagesUploadAlpine) - + +@return AlpinePackageUpload +*/ + +type PackagesApiPackagesUploadAlpineOpts struct { + Data optional.Interface +} + +func (a *PackagesApiService) PackagesUploadAlpine(ctx context.Context, owner string, repo string, localVarOptionals *PackagesApiPackagesUploadAlpineOpts) (AlpinePackageUpload, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AlpinePackageUpload + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/packages/{owner}/{repo}/upload/alpine/" + localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) + localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.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{} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + if localVarOptionals != nil && localVarOptionals.Data.IsSet() { + + localVarOptionalData, localVarOptionalDataok := localVarOptionals.Data.Value().(PackagesUploadAlpine) + if !localVarOptionalDataok { + return localVarReturnValue, nil, reportError("data should be PackagesUploadAlpine") + } + localVarPostBody = &localVarOptionalData + } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["X-Api-Key"] = key + + } + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, 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 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 201 { + var v AlpinePackageUpload + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 400 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 404 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 422 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +PackagesApiService Create a new Cargo package +Create a new Cargo package + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param owner + * @param repo + * @param optional nil or *PackagesApiPackagesUploadCargoOpts - Optional Parameters: + * @param "Data" (optional.Interface of PackagesUploadCargo) - + +@return AlpinePackageUpload +*/ + +type PackagesApiPackagesUploadCargoOpts struct { + Data optional.Interface +} + +func (a *PackagesApiService) PackagesUploadCargo(ctx context.Context, owner string, repo string, localVarOptionals *PackagesApiPackagesUploadCargoOpts) (AlpinePackageUpload, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AlpinePackageUpload + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/packages/{owner}/{repo}/upload/cargo/" + localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) + localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.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{} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + if localVarOptionals != nil && localVarOptionals.Data.IsSet() { + + localVarOptionalData, localVarOptionalDataok := localVarOptionals.Data.Value().(PackagesUploadCargo) + if !localVarOptionalDataok { + return localVarReturnValue, nil, reportError("data should be PackagesUploadCargo") + } + localVarPostBody = &localVarOptionalData + } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["X-Api-Key"] = key + + } + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, 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 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 201 { + var v AlpinePackageUpload + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 400 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 404 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 422 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +PackagesApiService Create a new CocoaPods package +Create a new CocoaPods package + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param owner + * @param repo + * @param optional nil or *PackagesApiPackagesUploadCocoapodsOpts - Optional Parameters: + * @param "Data" (optional.Interface of PackagesUploadCocoapods) - + +@return AlpinePackageUpload +*/ + +type PackagesApiPackagesUploadCocoapodsOpts struct { + Data optional.Interface +} + +func (a *PackagesApiService) PackagesUploadCocoapods(ctx context.Context, owner string, repo string, localVarOptionals *PackagesApiPackagesUploadCocoapodsOpts) (AlpinePackageUpload, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AlpinePackageUpload + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/packages/{owner}/{repo}/upload/cocoapods/" + localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) + localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.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{} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + if localVarOptionals != nil && localVarOptionals.Data.IsSet() { + + localVarOptionalData, localVarOptionalDataok := localVarOptionals.Data.Value().(PackagesUploadCocoapods) + if !localVarOptionalDataok { + return localVarReturnValue, nil, reportError("data should be PackagesUploadCocoapods") + } + localVarPostBody = &localVarOptionalData + } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["X-Api-Key"] = key + + } + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, 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 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 201 { + var v AlpinePackageUpload + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 400 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 404 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 422 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +PackagesApiService Create a new Composer package +Create a new Composer package + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param owner + * @param repo + * @param optional nil or *PackagesApiPackagesUploadComposerOpts - Optional Parameters: + * @param "Data" (optional.Interface of PackagesUploadComposer) - + +@return AlpinePackageUpload +*/ + +type PackagesApiPackagesUploadComposerOpts struct { + Data optional.Interface +} + +func (a *PackagesApiService) PackagesUploadComposer(ctx context.Context, owner string, repo string, localVarOptionals *PackagesApiPackagesUploadComposerOpts) (AlpinePackageUpload, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AlpinePackageUpload + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/packages/{owner}/{repo}/upload/composer/" + localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) + localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.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{} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + if localVarOptionals != nil && localVarOptionals.Data.IsSet() { + + localVarOptionalData, localVarOptionalDataok := localVarOptionals.Data.Value().(PackagesUploadComposer) + if !localVarOptionalDataok { + return localVarReturnValue, nil, reportError("data should be PackagesUploadComposer") + } + localVarPostBody = &localVarOptionalData + } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["X-Api-Key"] = key + + } + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, 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 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 201 { + var v AlpinePackageUpload + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 400 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 404 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 422 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +PackagesApiService Create a new Conan package +Create a new Conan package + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param owner + * @param repo + * @param optional nil or *PackagesApiPackagesUploadConanOpts - Optional Parameters: + * @param "Data" (optional.Interface of PackagesUploadConan) - + +@return ConanPackageUpload +*/ + +type PackagesApiPackagesUploadConanOpts struct { + Data optional.Interface +} + +func (a *PackagesApiService) PackagesUploadConan(ctx context.Context, owner string, repo string, localVarOptionals *PackagesApiPackagesUploadConanOpts) (ConanPackageUpload, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue ConanPackageUpload + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/packages/{owner}/{repo}/upload/conan/" + localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) + localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.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{} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + if localVarOptionals != nil && localVarOptionals.Data.IsSet() { + + localVarOptionalData, localVarOptionalDataok := localVarOptionals.Data.Value().(PackagesUploadConan) + if !localVarOptionalDataok { + return localVarReturnValue, nil, reportError("data should be PackagesUploadConan") + } + localVarPostBody = &localVarOptionalData + } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["X-Api-Key"] = key + + } + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, 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 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 201 { + var v ConanPackageUpload + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 400 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 404 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 422 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +PackagesApiService Create a new Conda package +Create a new Conda package + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param owner + * @param repo + * @param optional nil or *PackagesApiPackagesUploadCondaOpts - Optional Parameters: + * @param "Data" (optional.Interface of PackagesUploadConda) - + +@return AlpinePackageUpload +*/ + +type PackagesApiPackagesUploadCondaOpts struct { + Data optional.Interface +} + +func (a *PackagesApiService) PackagesUploadConda(ctx context.Context, owner string, repo string, localVarOptionals *PackagesApiPackagesUploadCondaOpts) (AlpinePackageUpload, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AlpinePackageUpload + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/packages/{owner}/{repo}/upload/conda/" + localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) + localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.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{} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + if localVarOptionals != nil && localVarOptionals.Data.IsSet() { + + localVarOptionalData, localVarOptionalDataok := localVarOptionals.Data.Value().(PackagesUploadConda) + if !localVarOptionalDataok { + return localVarReturnValue, nil, reportError("data should be PackagesUploadConda") + } + localVarPostBody = &localVarOptionalData + } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["X-Api-Key"] = key + + } + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, 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 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 201 { + var v AlpinePackageUpload + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 400 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 404 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 422 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +PackagesApiService Create a new CRAN package +Create a new CRAN package + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param owner + * @param repo + * @param optional nil or *PackagesApiPackagesUploadCranOpts - Optional Parameters: + * @param "Data" (optional.Interface of PackagesUploadCran) - + +@return AlpinePackageUpload +*/ + +type PackagesApiPackagesUploadCranOpts struct { + Data optional.Interface +} + +func (a *PackagesApiService) PackagesUploadCran(ctx context.Context, owner string, repo string, localVarOptionals *PackagesApiPackagesUploadCranOpts) (AlpinePackageUpload, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AlpinePackageUpload + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/packages/{owner}/{repo}/upload/cran/" + localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) + localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.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{} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + if localVarOptionals != nil && localVarOptionals.Data.IsSet() { + + localVarOptionalData, localVarOptionalDataok := localVarOptionals.Data.Value().(PackagesUploadCran) + if !localVarOptionalDataok { + return localVarReturnValue, nil, reportError("data should be PackagesUploadCran") + } + localVarPostBody = &localVarOptionalData + } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["X-Api-Key"] = key + + } + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, 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 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 201 { + var v AlpinePackageUpload + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 400 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 404 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 422 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +PackagesApiService Create a new Dart package +Create a new Dart package + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param owner + * @param repo + * @param optional nil or *PackagesApiPackagesUploadDartOpts - Optional Parameters: + * @param "Data" (optional.Interface of PackagesUploadDart) - + +@return AlpinePackageUpload +*/ + +type PackagesApiPackagesUploadDartOpts struct { + Data optional.Interface +} + +func (a *PackagesApiService) PackagesUploadDart(ctx context.Context, owner string, repo string, localVarOptionals *PackagesApiPackagesUploadDartOpts) (AlpinePackageUpload, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AlpinePackageUpload + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/packages/{owner}/{repo}/upload/dart/" + localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) + localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.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{} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + if localVarOptionals != nil && localVarOptionals.Data.IsSet() { + + localVarOptionalData, localVarOptionalDataok := localVarOptionals.Data.Value().(PackagesUploadDart) + if !localVarOptionalDataok { + return localVarReturnValue, nil, reportError("data should be PackagesUploadDart") + } + localVarPostBody = &localVarOptionalData + } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["X-Api-Key"] = key + + } + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, 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 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 201 { + var v AlpinePackageUpload + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 400 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 404 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 422 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +PackagesApiService Create a new Debian package +Create a new Debian package + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param owner + * @param repo + * @param optional nil or *PackagesApiPackagesUploadDebOpts - Optional Parameters: + * @param "Data" (optional.Interface of PackagesUploadDeb) - + +@return AlpinePackageUpload +*/ + +type PackagesApiPackagesUploadDebOpts struct { + Data optional.Interface +} + +func (a *PackagesApiService) PackagesUploadDeb(ctx context.Context, owner string, repo string, localVarOptionals *PackagesApiPackagesUploadDebOpts) (AlpinePackageUpload, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AlpinePackageUpload + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/packages/{owner}/{repo}/upload/deb/" + localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) + localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.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{} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + if localVarOptionals != nil && localVarOptionals.Data.IsSet() { + + localVarOptionalData, localVarOptionalDataok := localVarOptionals.Data.Value().(PackagesUploadDeb) + if !localVarOptionalDataok { + return localVarReturnValue, nil, reportError("data should be PackagesUploadDeb") + } + localVarPostBody = &localVarOptionalData + } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["X-Api-Key"] = key + + } + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, 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 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 201 { + var v AlpinePackageUpload + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 400 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 404 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 422 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +PackagesApiService Create a new Docker package +Create a new Docker package + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param owner + * @param repo + * @param optional nil or *PackagesApiPackagesUploadDockerOpts - Optional Parameters: + * @param "Data" (optional.Interface of PackagesUploadDocker) - + +@return AlpinePackageUpload +*/ + +type PackagesApiPackagesUploadDockerOpts struct { + Data optional.Interface +} + +func (a *PackagesApiService) PackagesUploadDocker(ctx context.Context, owner string, repo string, localVarOptionals *PackagesApiPackagesUploadDockerOpts) (AlpinePackageUpload, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AlpinePackageUpload + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/packages/{owner}/{repo}/upload/docker/" + localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) + localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.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{} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + if localVarOptionals != nil && localVarOptionals.Data.IsSet() { + + localVarOptionalData, localVarOptionalDataok := localVarOptionals.Data.Value().(PackagesUploadDocker) + if !localVarOptionalDataok { + return localVarReturnValue, nil, reportError("data should be PackagesUploadDocker") + } + localVarPostBody = &localVarOptionalData + } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["X-Api-Key"] = key + + } + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, 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 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 201 { + var v AlpinePackageUpload + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 400 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 404 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 422 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +PackagesApiService Create a new Go package +Create a new Go package + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param owner + * @param repo + * @param optional nil or *PackagesApiPackagesUploadGoOpts - Optional Parameters: + * @param "Data" (optional.Interface of PackagesUploadGo) - + +@return AlpinePackageUpload +*/ + +type PackagesApiPackagesUploadGoOpts struct { + Data optional.Interface +} + +func (a *PackagesApiService) PackagesUploadGo(ctx context.Context, owner string, repo string, localVarOptionals *PackagesApiPackagesUploadGoOpts) (AlpinePackageUpload, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AlpinePackageUpload + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/packages/{owner}/{repo}/upload/go/" + localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) + localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.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{} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + if localVarOptionals != nil && localVarOptionals.Data.IsSet() { + + localVarOptionalData, localVarOptionalDataok := localVarOptionals.Data.Value().(PackagesUploadGo) + if !localVarOptionalDataok { + return localVarReturnValue, nil, reportError("data should be PackagesUploadGo") + } + localVarPostBody = &localVarOptionalData + } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["X-Api-Key"] = key + + } + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, 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 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 201 { + var v AlpinePackageUpload + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 400 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 404 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 422 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +PackagesApiService Create a new Helm package +Create a new Helm package + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param owner + * @param repo + * @param optional nil or *PackagesApiPackagesUploadHelmOpts - Optional Parameters: + * @param "Data" (optional.Interface of PackagesUploadHelm) - + +@return AlpinePackageUpload +*/ + +type PackagesApiPackagesUploadHelmOpts struct { + Data optional.Interface +} + +func (a *PackagesApiService) PackagesUploadHelm(ctx context.Context, owner string, repo string, localVarOptionals *PackagesApiPackagesUploadHelmOpts) (AlpinePackageUpload, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AlpinePackageUpload + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/packages/{owner}/{repo}/upload/helm/" + localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) + localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.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{} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + if localVarOptionals != nil && localVarOptionals.Data.IsSet() { + + localVarOptionalData, localVarOptionalDataok := localVarOptionals.Data.Value().(PackagesUploadHelm) + if !localVarOptionalDataok { + return localVarReturnValue, nil, reportError("data should be PackagesUploadHelm") + } + localVarPostBody = &localVarOptionalData + } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["X-Api-Key"] = key + + } + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, 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 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 201 { + var v AlpinePackageUpload + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 400 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 404 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 422 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +PackagesApiService Create a new LuaRocks package +Create a new LuaRocks package + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param owner + * @param repo + * @param optional nil or *PackagesApiPackagesUploadLuarocksOpts - Optional Parameters: + * @param "Data" (optional.Interface of PackagesUploadLuarocks) - + +@return AlpinePackageUpload +*/ + +type PackagesApiPackagesUploadLuarocksOpts struct { + Data optional.Interface +} + +func (a *PackagesApiService) PackagesUploadLuarocks(ctx context.Context, owner string, repo string, localVarOptionals *PackagesApiPackagesUploadLuarocksOpts) (AlpinePackageUpload, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AlpinePackageUpload + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/packages/{owner}/{repo}/upload/luarocks/" + localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) + localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.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{} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + if localVarOptionals != nil && localVarOptionals.Data.IsSet() { + + localVarOptionalData, localVarOptionalDataok := localVarOptionals.Data.Value().(PackagesUploadLuarocks) + if !localVarOptionalDataok { + return localVarReturnValue, nil, reportError("data should be PackagesUploadLuarocks") + } + localVarPostBody = &localVarOptionalData + } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["X-Api-Key"] = key + + } + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, 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 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 201 { + var v AlpinePackageUpload + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 400 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 404 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 422 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +PackagesApiService Create a new Maven package +Create a new Maven package + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param owner + * @param repo + * @param optional nil or *PackagesApiPackagesUploadMavenOpts - Optional Parameters: + * @param "Data" (optional.Interface of PackagesUploadMaven) - + +@return MavenPackageUpload +*/ + +type PackagesApiPackagesUploadMavenOpts struct { + Data optional.Interface +} + +func (a *PackagesApiService) PackagesUploadMaven(ctx context.Context, owner string, repo string, localVarOptionals *PackagesApiPackagesUploadMavenOpts) (MavenPackageUpload, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue MavenPackageUpload + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/packages/{owner}/{repo}/upload/maven/" + localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) + localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.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{} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + if localVarOptionals != nil && localVarOptionals.Data.IsSet() { + + localVarOptionalData, localVarOptionalDataok := localVarOptionals.Data.Value().(PackagesUploadMaven) + if !localVarOptionalDataok { + return localVarReturnValue, nil, reportError("data should be PackagesUploadMaven") + } + localVarPostBody = &localVarOptionalData + } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["X-Api-Key"] = key + + } + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, 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 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 201 { + var v MavenPackageUpload + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 400 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 404 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 422 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +PackagesApiService Create a new npm package +Create a new npm package + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param owner + * @param repo + * @param optional nil or *PackagesApiPackagesUploadNpmOpts - Optional Parameters: + * @param "Data" (optional.Interface of PackagesUploadNpm) - + +@return AlpinePackageUpload +*/ + +type PackagesApiPackagesUploadNpmOpts struct { + Data optional.Interface +} + +func (a *PackagesApiService) PackagesUploadNpm(ctx context.Context, owner string, repo string, localVarOptionals *PackagesApiPackagesUploadNpmOpts) (AlpinePackageUpload, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AlpinePackageUpload + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/packages/{owner}/{repo}/upload/npm/" + localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) + localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.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{} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + if localVarOptionals != nil && localVarOptionals.Data.IsSet() { + + localVarOptionalData, localVarOptionalDataok := localVarOptionals.Data.Value().(PackagesUploadNpm) + if !localVarOptionalDataok { + return localVarReturnValue, nil, reportError("data should be PackagesUploadNpm") + } + localVarPostBody = &localVarOptionalData + } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["X-Api-Key"] = key + + } + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, 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 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 201 { + var v AlpinePackageUpload + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 400 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 404 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 422 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +PackagesApiService Create a new NuGet package +Create a new NuGet package + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param owner + * @param repo + * @param optional nil or *PackagesApiPackagesUploadNugetOpts - Optional Parameters: + * @param "Data" (optional.Interface of PackagesUploadNuget) - + +@return AlpinePackageUpload +*/ + +type PackagesApiPackagesUploadNugetOpts struct { + Data optional.Interface +} + +func (a *PackagesApiService) PackagesUploadNuget(ctx context.Context, owner string, repo string, localVarOptionals *PackagesApiPackagesUploadNugetOpts) (AlpinePackageUpload, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AlpinePackageUpload + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/packages/{owner}/{repo}/upload/nuget/" + localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) + localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.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{} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + if localVarOptionals != nil && localVarOptionals.Data.IsSet() { + + localVarOptionalData, localVarOptionalDataok := localVarOptionals.Data.Value().(PackagesUploadNuget) + if !localVarOptionalDataok { + return localVarReturnValue, nil, reportError("data should be PackagesUploadNuget") + } + localVarPostBody = &localVarOptionalData + } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["X-Api-Key"] = key + + } + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, 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 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 201 { + var v AlpinePackageUpload + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 400 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 404 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 422 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +PackagesApiService Create a new P2 package +Create a new P2 package + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param owner + * @param repo + * @param optional nil or *PackagesApiPackagesUploadP2Opts - Optional Parameters: + * @param "Data" (optional.Interface of PackagesUploadP2) - + +@return AlpinePackageUpload +*/ + +type PackagesApiPackagesUploadP2Opts struct { + Data optional.Interface +} + +func (a *PackagesApiService) PackagesUploadP2(ctx context.Context, owner string, repo string, localVarOptionals *PackagesApiPackagesUploadP2Opts) (AlpinePackageUpload, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AlpinePackageUpload + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/packages/{owner}/{repo}/upload/p2/" + localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) + localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.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{} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + if localVarOptionals != nil && localVarOptionals.Data.IsSet() { + + localVarOptionalData, localVarOptionalDataok := localVarOptionals.Data.Value().(PackagesUploadP2) + if !localVarOptionalDataok { + return localVarReturnValue, nil, reportError("data should be PackagesUploadP2") + } + localVarPostBody = &localVarOptionalData + } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["X-Api-Key"] = key + + } + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, 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 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 201 { + var v AlpinePackageUpload + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 400 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 404 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 422 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +PackagesApiService Create a new Python package +Create a new Python package + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param owner + * @param repo + * @param optional nil or *PackagesApiPackagesUploadPythonOpts - Optional Parameters: + * @param "Data" (optional.Interface of PackagesUploadPython) - + +@return AlpinePackageUpload +*/ + +type PackagesApiPackagesUploadPythonOpts struct { + Data optional.Interface +} + +func (a *PackagesApiService) PackagesUploadPython(ctx context.Context, owner string, repo string, localVarOptionals *PackagesApiPackagesUploadPythonOpts) (AlpinePackageUpload, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AlpinePackageUpload + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/packages/{owner}/{repo}/upload/python/" + localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) + localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.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{} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + if localVarOptionals != nil && localVarOptionals.Data.IsSet() { + + localVarOptionalData, localVarOptionalDataok := localVarOptionals.Data.Value().(PackagesUploadPython) + if !localVarOptionalDataok { + return localVarReturnValue, nil, reportError("data should be PackagesUploadPython") + } + localVarPostBody = &localVarOptionalData + } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["X-Api-Key"] = key + + } + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, 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 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 201 { + var v AlpinePackageUpload + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 400 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 404 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 422 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +PackagesApiService Create a new Raw package +Create a new Raw package + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param owner + * @param repo + * @param optional nil or *PackagesApiPackagesUploadRawOpts - Optional Parameters: + * @param "Data" (optional.Interface of PackagesUploadRaw) - + +@return RawPackageUpload +*/ + +type PackagesApiPackagesUploadRawOpts struct { + Data optional.Interface +} + +func (a *PackagesApiService) PackagesUploadRaw(ctx context.Context, owner string, repo string, localVarOptionals *PackagesApiPackagesUploadRawOpts) (RawPackageUpload, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue RawPackageUpload + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/packages/{owner}/{repo}/upload/raw/" + localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) + localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.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{} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + if localVarOptionals != nil && localVarOptionals.Data.IsSet() { + + localVarOptionalData, localVarOptionalDataok := localVarOptionals.Data.Value().(PackagesUploadRaw) + if !localVarOptionalDataok { + return localVarReturnValue, nil, reportError("data should be PackagesUploadRaw") + } + localVarPostBody = &localVarOptionalData + } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["X-Api-Key"] = key + + } + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, 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 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 201 { + var v RawPackageUpload + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 400 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 404 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 422 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +PackagesApiService Create a new RedHat package +Create a new RedHat package + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param owner + * @param repo + * @param optional nil or *PackagesApiPackagesUploadRpmOpts - Optional Parameters: + * @param "Data" (optional.Interface of PackagesUploadRpm) - + +@return AlpinePackageUpload +*/ + +type PackagesApiPackagesUploadRpmOpts struct { + Data optional.Interface +} + +func (a *PackagesApiService) PackagesUploadRpm(ctx context.Context, owner string, repo string, localVarOptionals *PackagesApiPackagesUploadRpmOpts) (AlpinePackageUpload, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AlpinePackageUpload + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/packages/{owner}/{repo}/upload/rpm/" + localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) + localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.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{} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + if localVarOptionals != nil && localVarOptionals.Data.IsSet() { + + localVarOptionalData, localVarOptionalDataok := localVarOptionals.Data.Value().(PackagesUploadRpm) + if !localVarOptionalDataok { + return localVarReturnValue, nil, reportError("data should be PackagesUploadRpm") + } + localVarPostBody = &localVarOptionalData + } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["X-Api-Key"] = key + + } + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, 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 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 201 { + var v AlpinePackageUpload + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 400 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 404 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 422 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +PackagesApiService Create a new Ruby package +Create a new Ruby package + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param owner + * @param repo + * @param optional nil or *PackagesApiPackagesUploadRubyOpts - Optional Parameters: + * @param "Data" (optional.Interface of PackagesUploadRuby) - + +@return AlpinePackageUpload +*/ + +type PackagesApiPackagesUploadRubyOpts struct { + Data optional.Interface +} + +func (a *PackagesApiService) PackagesUploadRuby(ctx context.Context, owner string, repo string, localVarOptionals *PackagesApiPackagesUploadRubyOpts) (AlpinePackageUpload, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AlpinePackageUpload + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/packages/{owner}/{repo}/upload/ruby/" + localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) + localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.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{} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + if localVarOptionals != nil && localVarOptionals.Data.IsSet() { + + localVarOptionalData, localVarOptionalDataok := localVarOptionals.Data.Value().(PackagesUploadRuby) + if !localVarOptionalDataok { + return localVarReturnValue, nil, reportError("data should be PackagesUploadRuby") + } + localVarPostBody = &localVarOptionalData + } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["X-Api-Key"] = key + + } + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, 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 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 201 { + var v AlpinePackageUpload + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 400 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 404 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 422 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +PackagesApiService Create a new Terraform package +Create a new Terraform package + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param owner + * @param repo + * @param optional nil or *PackagesApiPackagesUploadTerraformOpts - Optional Parameters: + * @param "Data" (optional.Interface of PackagesUploadTerraform) - + +@return AlpinePackageUpload +*/ + +type PackagesApiPackagesUploadTerraformOpts struct { + Data optional.Interface +} + +func (a *PackagesApiService) PackagesUploadTerraform(ctx context.Context, owner string, repo string, localVarOptionals *PackagesApiPackagesUploadTerraformOpts) (AlpinePackageUpload, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue AlpinePackageUpload + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/packages/{owner}/{repo}/upload/terraform/" + localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) + localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.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{} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + if localVarOptionals != nil && localVarOptionals.Data.IsSet() { + + localVarOptionalData, localVarOptionalDataok := localVarOptionals.Data.Value().(PackagesUploadTerraform) + if !localVarOptionalDataok { + return localVarReturnValue, nil, reportError("data should be PackagesUploadTerraform") + } + localVarPostBody = &localVarOptionalData + } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["X-Api-Key"] = key + + } + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, 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 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 201 { + var v AlpinePackageUpload + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 400 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 404 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 422 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +PackagesApiService Create a new Vagrant package +Create a new Vagrant package + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param owner + * @param repo + * @param optional nil or *PackagesApiPackagesUploadVagrantOpts - Optional Parameters: + * @param "Data" (optional.Interface of PackagesUploadVagrant) - + +@return VagrantPackageUpload +*/ + +type PackagesApiPackagesUploadVagrantOpts struct { + Data optional.Interface +} + +func (a *PackagesApiService) PackagesUploadVagrant(ctx context.Context, owner string, repo string, localVarOptionals *PackagesApiPackagesUploadVagrantOpts) (VagrantPackageUpload, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue VagrantPackageUpload + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/packages/{owner}/{repo}/upload/vagrant/" + localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) + localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.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{} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + if localVarOptionals != nil && localVarOptionals.Data.IsSet() { + + localVarOptionalData, localVarOptionalDataok := localVarOptionals.Data.Value().(PackagesUploadVagrant) + if !localVarOptionalDataok { + return localVarReturnValue, nil, reportError("data should be PackagesUploadVagrant") + } + localVarPostBody = &localVarOptionalData + } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["X-Api-Key"] = key + + } + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, 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 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 201 { + var v VagrantPackageUpload + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 400 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 404 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 422 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +PackagesApiService Validate parameters for create Alpine package +Validate parameters for create Alpine package + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param owner + * @param repo + * @param optional nil or *PackagesApiPackagesValidateUploadAlpineOpts - Optional Parameters: + * @param "Data" (optional.Interface of PackagesValidateuploadAlpine) - + + +*/ + +type PackagesApiPackagesValidateUploadAlpineOpts struct { + Data optional.Interface +} + +func (a *PackagesApiService) PackagesValidateUploadAlpine(ctx context.Context, owner string, repo string, localVarOptionals *PackagesApiPackagesValidateUploadAlpineOpts) (*http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/packages/{owner}/{repo}/validate-upload/alpine/" + localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) + localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.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{} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + if localVarOptionals != nil && localVarOptionals.Data.IsSet() { + + localVarOptionalData, localVarOptionalDataok := localVarOptionals.Data.Value().(PackagesValidateuploadAlpine) + if !localVarOptionalDataok { + return nil, reportError("data should be PackagesValidateuploadAlpine") + } + localVarPostBody = &localVarOptionalData + } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["X-Api-Key"] = key + + } + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarHttpResponse, err + } + + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 400 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 404 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 422 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, nil +} + +/* +PackagesApiService Validate parameters for create Cargo package +Validate parameters for create Cargo package + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param owner + * @param repo + * @param optional nil or *PackagesApiPackagesValidateUploadCargoOpts - Optional Parameters: + * @param "Data" (optional.Interface of PackagesValidateuploadCargo) - + + +*/ + +type PackagesApiPackagesValidateUploadCargoOpts struct { + Data optional.Interface +} + +func (a *PackagesApiService) PackagesValidateUploadCargo(ctx context.Context, owner string, repo string, localVarOptionals *PackagesApiPackagesValidateUploadCargoOpts) (*http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/packages/{owner}/{repo}/validate-upload/cargo/" + localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) + localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.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{} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + if localVarOptionals != nil && localVarOptionals.Data.IsSet() { + + localVarOptionalData, localVarOptionalDataok := localVarOptionals.Data.Value().(PackagesValidateuploadCargo) + if !localVarOptionalDataok { + return nil, reportError("data should be PackagesValidateuploadCargo") + } + localVarPostBody = &localVarOptionalData + } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["X-Api-Key"] = key + + } + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarHttpResponse, err + } + + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 400 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 404 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 422 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, nil +} + +/* +PackagesApiService Validate parameters for create CocoaPods package +Validate parameters for create CocoaPods package + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param owner + * @param repo + * @param optional nil or *PackagesApiPackagesValidateUploadCocoapodsOpts - Optional Parameters: + * @param "Data" (optional.Interface of PackagesValidateuploadCocoapods) - + + +*/ + +type PackagesApiPackagesValidateUploadCocoapodsOpts struct { + Data optional.Interface +} + +func (a *PackagesApiService) PackagesValidateUploadCocoapods(ctx context.Context, owner string, repo string, localVarOptionals *PackagesApiPackagesValidateUploadCocoapodsOpts) (*http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/packages/{owner}/{repo}/validate-upload/cocoapods/" + localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) + localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.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{} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + if localVarOptionals != nil && localVarOptionals.Data.IsSet() { + + localVarOptionalData, localVarOptionalDataok := localVarOptionals.Data.Value().(PackagesValidateuploadCocoapods) + if !localVarOptionalDataok { + return nil, reportError("data should be PackagesValidateuploadCocoapods") + } + localVarPostBody = &localVarOptionalData + } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["X-Api-Key"] = key + + } + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarHttpResponse, err + } + + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 400 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 404 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 422 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, nil +} + +/* +PackagesApiService Validate parameters for create Composer package +Validate parameters for create Composer package + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param owner + * @param repo + * @param optional nil or *PackagesApiPackagesValidateUploadComposerOpts - Optional Parameters: + * @param "Data" (optional.Interface of PackagesValidateuploadComposer) - + + +*/ + +type PackagesApiPackagesValidateUploadComposerOpts struct { + Data optional.Interface +} + +func (a *PackagesApiService) PackagesValidateUploadComposer(ctx context.Context, owner string, repo string, localVarOptionals *PackagesApiPackagesValidateUploadComposerOpts) (*http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/packages/{owner}/{repo}/validate-upload/composer/" + localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) + localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.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{} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + if localVarOptionals != nil && localVarOptionals.Data.IsSet() { + + localVarOptionalData, localVarOptionalDataok := localVarOptionals.Data.Value().(PackagesValidateuploadComposer) + if !localVarOptionalDataok { + return nil, reportError("data should be PackagesValidateuploadComposer") + } + localVarPostBody = &localVarOptionalData + } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["X-Api-Key"] = key + + } + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarHttpResponse, err + } + + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 400 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 404 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 422 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, nil +} + +/* +PackagesApiService Validate parameters for create Conan package +Validate parameters for create Conan package + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param owner + * @param repo + * @param optional nil or *PackagesApiPackagesValidateUploadConanOpts - Optional Parameters: + * @param "Data" (optional.Interface of PackagesValidateuploadConan) - + + +*/ + +type PackagesApiPackagesValidateUploadConanOpts struct { + Data optional.Interface +} + +func (a *PackagesApiService) PackagesValidateUploadConan(ctx context.Context, owner string, repo string, localVarOptionals *PackagesApiPackagesValidateUploadConanOpts) (*http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/packages/{owner}/{repo}/validate-upload/conan/" + localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) + localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.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{} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + if localVarOptionals != nil && localVarOptionals.Data.IsSet() { + + localVarOptionalData, localVarOptionalDataok := localVarOptionals.Data.Value().(PackagesValidateuploadConan) + if !localVarOptionalDataok { + return nil, reportError("data should be PackagesValidateuploadConan") + } + localVarPostBody = &localVarOptionalData + } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["X-Api-Key"] = key + + } + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarHttpResponse, err + } + + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 400 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 404 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 422 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, nil +} + +/* +PackagesApiService Validate parameters for create Conda package +Validate parameters for create Conda package + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param owner + * @param repo + * @param optional nil or *PackagesApiPackagesValidateUploadCondaOpts - Optional Parameters: + * @param "Data" (optional.Interface of PackagesValidateuploadConda) - + + +*/ + +type PackagesApiPackagesValidateUploadCondaOpts struct { + Data optional.Interface +} + +func (a *PackagesApiService) PackagesValidateUploadConda(ctx context.Context, owner string, repo string, localVarOptionals *PackagesApiPackagesValidateUploadCondaOpts) (*http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/packages/{owner}/{repo}/validate-upload/conda/" + localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) + localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.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{} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + if localVarOptionals != nil && localVarOptionals.Data.IsSet() { + + localVarOptionalData, localVarOptionalDataok := localVarOptionals.Data.Value().(PackagesValidateuploadConda) + if !localVarOptionalDataok { + return nil, reportError("data should be PackagesValidateuploadConda") + } + localVarPostBody = &localVarOptionalData + } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["X-Api-Key"] = key + + } + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarHttpResponse, err + } + + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 400 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 404 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 422 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, nil +} + +/* +PackagesApiService Validate parameters for create CRAN package +Validate parameters for create CRAN package + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param owner + * @param repo + * @param optional nil or *PackagesApiPackagesValidateUploadCranOpts - Optional Parameters: + * @param "Data" (optional.Interface of PackagesValidateuploadCran) - + + +*/ + +type PackagesApiPackagesValidateUploadCranOpts struct { + Data optional.Interface +} + +func (a *PackagesApiService) PackagesValidateUploadCran(ctx context.Context, owner string, repo string, localVarOptionals *PackagesApiPackagesValidateUploadCranOpts) (*http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/packages/{owner}/{repo}/validate-upload/cran/" + localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) + localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.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{} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + if localVarOptionals != nil && localVarOptionals.Data.IsSet() { + + localVarOptionalData, localVarOptionalDataok := localVarOptionals.Data.Value().(PackagesValidateuploadCran) + if !localVarOptionalDataok { + return nil, reportError("data should be PackagesValidateuploadCran") + } + localVarPostBody = &localVarOptionalData + } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["X-Api-Key"] = key + + } + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarHttpResponse, err + } + + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 400 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 404 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 422 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, nil +} + +/* +PackagesApiService Validate parameters for create Dart package +Validate parameters for create Dart package + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param owner + * @param repo + * @param optional nil or *PackagesApiPackagesValidateUploadDartOpts - Optional Parameters: + * @param "Data" (optional.Interface of PackagesValidateuploadDart) - + + +*/ + +type PackagesApiPackagesValidateUploadDartOpts struct { + Data optional.Interface +} + +func (a *PackagesApiService) PackagesValidateUploadDart(ctx context.Context, owner string, repo string, localVarOptionals *PackagesApiPackagesValidateUploadDartOpts) (*http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/packages/{owner}/{repo}/validate-upload/dart/" + localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) + localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.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{} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + if localVarOptionals != nil && localVarOptionals.Data.IsSet() { + + localVarOptionalData, localVarOptionalDataok := localVarOptionals.Data.Value().(PackagesValidateuploadDart) + if !localVarOptionalDataok { + return nil, reportError("data should be PackagesValidateuploadDart") + } + localVarPostBody = &localVarOptionalData + } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["X-Api-Key"] = key + + } + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarHttpResponse, err + } + + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 400 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 404 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 422 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, nil +} + +/* +PackagesApiService Validate parameters for create Debian package +Validate parameters for create Debian package + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param owner + * @param repo + * @param optional nil or *PackagesApiPackagesValidateUploadDebOpts - Optional Parameters: + * @param "Data" (optional.Interface of PackagesValidateuploadDeb) - + + +*/ + +type PackagesApiPackagesValidateUploadDebOpts struct { + Data optional.Interface +} + +func (a *PackagesApiService) PackagesValidateUploadDeb(ctx context.Context, owner string, repo string, localVarOptionals *PackagesApiPackagesValidateUploadDebOpts) (*http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/packages/{owner}/{repo}/validate-upload/deb/" + localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) + localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.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{} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + if localVarOptionals != nil && localVarOptionals.Data.IsSet() { + + localVarOptionalData, localVarOptionalDataok := localVarOptionals.Data.Value().(PackagesValidateuploadDeb) + if !localVarOptionalDataok { + return nil, reportError("data should be PackagesValidateuploadDeb") + } + localVarPostBody = &localVarOptionalData + } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["X-Api-Key"] = key + + } + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarHttpResponse, err + } + + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 400 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 404 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 422 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, nil +} + +/* +PackagesApiService Validate parameters for create Docker package +Validate parameters for create Docker package + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param owner + * @param repo + * @param optional nil or *PackagesApiPackagesValidateUploadDockerOpts - Optional Parameters: + * @param "Data" (optional.Interface of PackagesValidateuploadDocker) - + + +*/ + +type PackagesApiPackagesValidateUploadDockerOpts struct { + Data optional.Interface +} + +func (a *PackagesApiService) PackagesValidateUploadDocker(ctx context.Context, owner string, repo string, localVarOptionals *PackagesApiPackagesValidateUploadDockerOpts) (*http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/packages/{owner}/{repo}/validate-upload/docker/" + localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) + localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.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{} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + if localVarOptionals != nil && localVarOptionals.Data.IsSet() { + + localVarOptionalData, localVarOptionalDataok := localVarOptionals.Data.Value().(PackagesValidateuploadDocker) + if !localVarOptionalDataok { + return nil, reportError("data should be PackagesValidateuploadDocker") + } + localVarPostBody = &localVarOptionalData + } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["X-Api-Key"] = key + + } + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarHttpResponse, err + } + + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 400 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 404 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 422 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, nil +} + +/* +PackagesApiService Validate parameters for create Go package +Validate parameters for create Go package + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param owner + * @param repo + * @param optional nil or *PackagesApiPackagesValidateUploadGoOpts - Optional Parameters: + * @param "Data" (optional.Interface of PackagesValidateuploadGo) - + + +*/ + +type PackagesApiPackagesValidateUploadGoOpts struct { + Data optional.Interface +} + +func (a *PackagesApiService) PackagesValidateUploadGo(ctx context.Context, owner string, repo string, localVarOptionals *PackagesApiPackagesValidateUploadGoOpts) (*http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/packages/{owner}/{repo}/validate-upload/go/" + localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) + localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.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{} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + if localVarOptionals != nil && localVarOptionals.Data.IsSet() { + + localVarOptionalData, localVarOptionalDataok := localVarOptionals.Data.Value().(PackagesValidateuploadGo) + if !localVarOptionalDataok { + return nil, reportError("data should be PackagesValidateuploadGo") + } + localVarPostBody = &localVarOptionalData + } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["X-Api-Key"] = key + + } + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarHttpResponse, err + } + + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 400 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 404 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 422 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, nil +} + +/* +PackagesApiService Validate parameters for create Helm package +Validate parameters for create Helm package + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param owner + * @param repo + * @param optional nil or *PackagesApiPackagesValidateUploadHelmOpts - Optional Parameters: + * @param "Data" (optional.Interface of PackagesValidateuploadHelm) - + + +*/ + +type PackagesApiPackagesValidateUploadHelmOpts struct { + Data optional.Interface +} + +func (a *PackagesApiService) PackagesValidateUploadHelm(ctx context.Context, owner string, repo string, localVarOptionals *PackagesApiPackagesValidateUploadHelmOpts) (*http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/packages/{owner}/{repo}/validate-upload/helm/" + localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) + localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.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{} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + if localVarOptionals != nil && localVarOptionals.Data.IsSet() { + + localVarOptionalData, localVarOptionalDataok := localVarOptionals.Data.Value().(PackagesValidateuploadHelm) + if !localVarOptionalDataok { + return nil, reportError("data should be PackagesValidateuploadHelm") + } + localVarPostBody = &localVarOptionalData + } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["X-Api-Key"] = key + + } + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarHttpResponse, err + } + + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 400 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 404 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 422 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, nil +} + +/* +PackagesApiService Validate parameters for create LuaRocks package +Validate parameters for create LuaRocks package + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param owner + * @param repo + * @param optional nil or *PackagesApiPackagesValidateUploadLuarocksOpts - Optional Parameters: + * @param "Data" (optional.Interface of PackagesValidateuploadLuarocks) - + + +*/ + +type PackagesApiPackagesValidateUploadLuarocksOpts struct { + Data optional.Interface +} + +func (a *PackagesApiService) PackagesValidateUploadLuarocks(ctx context.Context, owner string, repo string, localVarOptionals *PackagesApiPackagesValidateUploadLuarocksOpts) (*http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/packages/{owner}/{repo}/validate-upload/luarocks/" + localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) + localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.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{} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + if localVarOptionals != nil && localVarOptionals.Data.IsSet() { + + localVarOptionalData, localVarOptionalDataok := localVarOptionals.Data.Value().(PackagesValidateuploadLuarocks) + if !localVarOptionalDataok { + return nil, reportError("data should be PackagesValidateuploadLuarocks") + } + localVarPostBody = &localVarOptionalData + } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["X-Api-Key"] = key + + } + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarHttpResponse, err + } + + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 400 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 404 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 422 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, nil +} + +/* +PackagesApiService Validate parameters for create Maven package +Validate parameters for create Maven package + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param owner + * @param repo + * @param optional nil or *PackagesApiPackagesValidateUploadMavenOpts - Optional Parameters: + * @param "Data" (optional.Interface of PackagesValidateuploadMaven) - + + +*/ + +type PackagesApiPackagesValidateUploadMavenOpts struct { + Data optional.Interface +} + +func (a *PackagesApiService) PackagesValidateUploadMaven(ctx context.Context, owner string, repo string, localVarOptionals *PackagesApiPackagesValidateUploadMavenOpts) (*http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/packages/{owner}/{repo}/validate-upload/maven/" + localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) + localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.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{} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + if localVarOptionals != nil && localVarOptionals.Data.IsSet() { + + localVarOptionalData, localVarOptionalDataok := localVarOptionals.Data.Value().(PackagesValidateuploadMaven) + if !localVarOptionalDataok { + return nil, reportError("data should be PackagesValidateuploadMaven") + } + localVarPostBody = &localVarOptionalData + } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["X-Api-Key"] = key + + } + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarHttpResponse, err + } + + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 400 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 404 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 422 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, nil +} + +/* +PackagesApiService Validate parameters for create npm package +Validate parameters for create npm package + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param owner + * @param repo + * @param optional nil or *PackagesApiPackagesValidateUploadNpmOpts - Optional Parameters: + * @param "Data" (optional.Interface of PackagesValidateuploadNpm) - + + +*/ + +type PackagesApiPackagesValidateUploadNpmOpts struct { + Data optional.Interface +} + +func (a *PackagesApiService) PackagesValidateUploadNpm(ctx context.Context, owner string, repo string, localVarOptionals *PackagesApiPackagesValidateUploadNpmOpts) (*http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/packages/{owner}/{repo}/validate-upload/npm/" + localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) + localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.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{} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + if localVarOptionals != nil && localVarOptionals.Data.IsSet() { + + localVarOptionalData, localVarOptionalDataok := localVarOptionals.Data.Value().(PackagesValidateuploadNpm) + if !localVarOptionalDataok { + return nil, reportError("data should be PackagesValidateuploadNpm") + } + localVarPostBody = &localVarOptionalData + } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["X-Api-Key"] = key + + } + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarHttpResponse, err + } + + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 400 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 404 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 422 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, nil +} + +/* +PackagesApiService Validate parameters for create NuGet package +Validate parameters for create NuGet package + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param owner + * @param repo + * @param optional nil or *PackagesApiPackagesValidateUploadNugetOpts - Optional Parameters: + * @param "Data" (optional.Interface of PackagesValidateuploadNuget) - + + +*/ + +type PackagesApiPackagesValidateUploadNugetOpts struct { + Data optional.Interface +} + +func (a *PackagesApiService) PackagesValidateUploadNuget(ctx context.Context, owner string, repo string, localVarOptionals *PackagesApiPackagesValidateUploadNugetOpts) (*http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/packages/{owner}/{repo}/validate-upload/nuget/" + localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) + localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.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{} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + if localVarOptionals != nil && localVarOptionals.Data.IsSet() { + + localVarOptionalData, localVarOptionalDataok := localVarOptionals.Data.Value().(PackagesValidateuploadNuget) + if !localVarOptionalDataok { + return nil, reportError("data should be PackagesValidateuploadNuget") + } + localVarPostBody = &localVarOptionalData + } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["X-Api-Key"] = key + + } + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarHttpResponse, err + } + + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 400 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 404 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 422 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, nil +} + +/* +PackagesApiService Validate parameters for create P2 package +Validate parameters for create P2 package + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param owner + * @param repo + * @param optional nil or *PackagesApiPackagesValidateUploadP2Opts - Optional Parameters: + * @param "Data" (optional.Interface of PackagesValidateuploadP2) - + + +*/ + +type PackagesApiPackagesValidateUploadP2Opts struct { + Data optional.Interface +} + +func (a *PackagesApiService) PackagesValidateUploadP2(ctx context.Context, owner string, repo string, localVarOptionals *PackagesApiPackagesValidateUploadP2Opts) (*http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/packages/{owner}/{repo}/validate-upload/p2/" + localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) + localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.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{} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + if localVarOptionals != nil && localVarOptionals.Data.IsSet() { + + localVarOptionalData, localVarOptionalDataok := localVarOptionals.Data.Value().(PackagesValidateuploadP2) + if !localVarOptionalDataok { + return nil, reportError("data should be PackagesValidateuploadP2") + } + localVarPostBody = &localVarOptionalData + } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["X-Api-Key"] = key + + } + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarHttpResponse, err + } + + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 400 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 404 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 422 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, nil +} + +/* +PackagesApiService Validate parameters for create Python package +Validate parameters for create Python package + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param owner + * @param repo + * @param optional nil or *PackagesApiPackagesValidateUploadPythonOpts - Optional Parameters: + * @param "Data" (optional.Interface of PackagesValidateuploadPython) - + + +*/ + +type PackagesApiPackagesValidateUploadPythonOpts struct { + Data optional.Interface +} + +func (a *PackagesApiService) PackagesValidateUploadPython(ctx context.Context, owner string, repo string, localVarOptionals *PackagesApiPackagesValidateUploadPythonOpts) (*http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/packages/{owner}/{repo}/validate-upload/python/" + localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) + localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.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{} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + if localVarOptionals != nil && localVarOptionals.Data.IsSet() { + + localVarOptionalData, localVarOptionalDataok := localVarOptionals.Data.Value().(PackagesValidateuploadPython) + if !localVarOptionalDataok { + return nil, reportError("data should be PackagesValidateuploadPython") + } + localVarPostBody = &localVarOptionalData + } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["X-Api-Key"] = key + + } + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarHttpResponse, err + } + + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 400 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 404 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 422 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, nil +} + +/* +PackagesApiService Validate parameters for create Raw package +Validate parameters for create Raw package + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param owner + * @param repo + * @param optional nil or *PackagesApiPackagesValidateUploadRawOpts - Optional Parameters: + * @param "Data" (optional.Interface of PackagesValidateuploadRaw) - + + +*/ + +type PackagesApiPackagesValidateUploadRawOpts struct { + Data optional.Interface +} + +func (a *PackagesApiService) PackagesValidateUploadRaw(ctx context.Context, owner string, repo string, localVarOptionals *PackagesApiPackagesValidateUploadRawOpts) (*http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/packages/{owner}/{repo}/validate-upload/raw/" + localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) + localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.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{} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + if localVarOptionals != nil && localVarOptionals.Data.IsSet() { + + localVarOptionalData, localVarOptionalDataok := localVarOptionals.Data.Value().(PackagesValidateuploadRaw) + if !localVarOptionalDataok { + return nil, reportError("data should be PackagesValidateuploadRaw") + } + localVarPostBody = &localVarOptionalData + } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["X-Api-Key"] = key + + } + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarHttpResponse, err + } + + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 400 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 404 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 422 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, nil +} + +/* +PackagesApiService Validate parameters for create RedHat package +Validate parameters for create RedHat package + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param owner + * @param repo + * @param optional nil or *PackagesApiPackagesValidateUploadRpmOpts - Optional Parameters: + * @param "Data" (optional.Interface of PackagesValidateuploadRpm) - + + +*/ + +type PackagesApiPackagesValidateUploadRpmOpts struct { + Data optional.Interface +} + +func (a *PackagesApiService) PackagesValidateUploadRpm(ctx context.Context, owner string, repo string, localVarOptionals *PackagesApiPackagesValidateUploadRpmOpts) (*http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/packages/{owner}/{repo}/validate-upload/rpm/" + localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) + localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.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{} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + if localVarOptionals != nil && localVarOptionals.Data.IsSet() { + + localVarOptionalData, localVarOptionalDataok := localVarOptionals.Data.Value().(PackagesValidateuploadRpm) + if !localVarOptionalDataok { + return nil, reportError("data should be PackagesValidateuploadRpm") + } + localVarPostBody = &localVarOptionalData + } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["X-Api-Key"] = key + + } + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarHttpResponse, err + } + + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 400 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 404 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 422 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, nil +} + +/* +PackagesApiService Validate parameters for create Ruby package +Validate parameters for create Ruby package + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param owner + * @param repo + * @param optional nil or *PackagesApiPackagesValidateUploadRubyOpts - Optional Parameters: + * @param "Data" (optional.Interface of PackagesValidateuploadRuby) - + + +*/ + +type PackagesApiPackagesValidateUploadRubyOpts struct { + Data optional.Interface +} + +func (a *PackagesApiService) PackagesValidateUploadRuby(ctx context.Context, owner string, repo string, localVarOptionals *PackagesApiPackagesValidateUploadRubyOpts) (*http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/packages/{owner}/{repo}/validate-upload/ruby/" + localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) + localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.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{} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + if localVarOptionals != nil && localVarOptionals.Data.IsSet() { + + localVarOptionalData, localVarOptionalDataok := localVarOptionals.Data.Value().(PackagesValidateuploadRuby) + if !localVarOptionalDataok { + return nil, reportError("data should be PackagesValidateuploadRuby") + } + localVarPostBody = &localVarOptionalData + } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["X-Api-Key"] = key + + } + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarHttpResponse, err + } + + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 400 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 404 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 422 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, nil +} + +/* +PackagesApiService Validate parameters for create Terraform package +Validate parameters for create Terraform package + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param owner + * @param repo + * @param optional nil or *PackagesApiPackagesValidateUploadTerraformOpts - Optional Parameters: + * @param "Data" (optional.Interface of PackagesValidateuploadTerraform) - + + +*/ + +type PackagesApiPackagesValidateUploadTerraformOpts struct { + Data optional.Interface +} + +func (a *PackagesApiService) PackagesValidateUploadTerraform(ctx context.Context, owner string, repo string, localVarOptionals *PackagesApiPackagesValidateUploadTerraformOpts) (*http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/packages/{owner}/{repo}/validate-upload/terraform/" + localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) + localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.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{} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + if localVarOptionals != nil && localVarOptionals.Data.IsSet() { + + localVarOptionalData, localVarOptionalDataok := localVarOptionals.Data.Value().(PackagesValidateuploadTerraform) + if !localVarOptionalDataok { + return nil, reportError("data should be PackagesValidateuploadTerraform") + } + localVarPostBody = &localVarOptionalData + } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["X-Api-Key"] = key + + } + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarHttpResponse, err + } + + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 400 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 404 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 422 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, nil +} + +/* +PackagesApiService Validate parameters for create Vagrant package +Validate parameters for create Vagrant package + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param owner + * @param repo + * @param optional nil or *PackagesApiPackagesValidateUploadVagrantOpts - Optional Parameters: + * @param "Data" (optional.Interface of PackagesValidateuploadVagrant) - + + +*/ + +type PackagesApiPackagesValidateUploadVagrantOpts struct { + Data optional.Interface +} + +func (a *PackagesApiService) PackagesValidateUploadVagrant(ctx context.Context, owner string, repo string, localVarOptionals *PackagesApiPackagesValidateUploadVagrantOpts) (*http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/packages/{owner}/{repo}/validate-upload/vagrant/" + localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) + localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.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{} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + if localVarOptionals != nil && localVarOptionals.Data.IsSet() { + + localVarOptionalData, localVarOptionalDataok := localVarOptionals.Data.Value().(PackagesValidateuploadVagrant) + if !localVarOptionalDataok { + return nil, reportError("data should be PackagesValidateuploadVagrant") + } + localVarPostBody = &localVarOptionalData + } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["X-Api-Key"] = key + + } + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarHttpResponse, err + } + + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 400 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 404 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 422 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, nil +} + diff --git a/bindings/go/src/api_quota.go b/bindings/go/src/api_quota.go new file mode 100644 index 00000000..49cb3586 --- /dev/null +++ b/bindings/go/src/api_quota.go @@ -0,0 +1,517 @@ + +/* + * Cloudsmith API + * + * The API to the Cloudsmith Service + * + * API version: v1 + * Contact: support@cloudsmith.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package cloudsmith_api + +import ( + "context" + "io/ioutil" + "net/http" + "net/url" + "strings" + "fmt" +) + +// Linger please +var ( + _ context.Context +) + +type QuotaApiService service + +/* +QuotaApiService Quota history for a given namespace. +Quota history for a given namespace. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param owner + +@return QuotaHistory +*/ +func (a *QuotaApiService) QuotaHistoryRead(ctx context.Context, owner string) (QuotaHistory, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue QuotaHistory + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/quota/history/{owner}/" + localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.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{} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["X-Api-Key"] = key + + } + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, 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 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v QuotaHistory + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 400 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 422 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +QuotaApiService Open-source Quota history for a given namespace. +Open-source Quota history for a given namespace. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param owner + +@return QuotaHistory +*/ +func (a *QuotaApiService) QuotaOssHistoryRead(ctx context.Context, owner string) (QuotaHistory, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue QuotaHistory + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/quota/oss/history/{owner}/" + localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.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{} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["X-Api-Key"] = key + + } + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, 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 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v QuotaHistory + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 400 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 422 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +QuotaApiService Open-source Quota usage for a given namespace. +Open-source Quota usage for a given namespace. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param owner + +@return Quota +*/ +func (a *QuotaApiService) QuotaOssRead(ctx context.Context, owner string) (Quota, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue Quota + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/quota/oss/{owner}/" + localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.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{} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["X-Api-Key"] = key + + } + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, 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 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v Quota + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 400 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 422 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +QuotaApiService Quota usage for a given namespace. +Quota usage for a given namespace. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param owner + +@return Quota +*/ +func (a *QuotaApiService) QuotaRead(ctx context.Context, owner string) (Quota, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue Quota + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/quota/{owner}/" + localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.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{} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["X-Api-Key"] = key + + } + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, 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 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v Quota + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 400 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 422 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + diff --git a/bindings/go/src/api_rates.go b/bindings/go/src/api_rates.go new file mode 100644 index 00000000..673337be --- /dev/null +++ b/bindings/go/src/api_rates.go @@ -0,0 +1,148 @@ + +/* + * Cloudsmith API + * + * The API to the Cloudsmith Service + * + * API version: v1 + * Contact: support@cloudsmith.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package cloudsmith_api + +import ( + "context" + "io/ioutil" + "net/http" + "net/url" + "strings" +) + +// Linger please +var ( + _ context.Context +) + +type RatesApiService service + +/* +RatesApiService Endpoint to check rate limits for current user. +Endpoint to check rate limits for current user. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + +@return ResourcesRateCheck +*/ +func (a *RatesApiService) RatesLimitsList(ctx context.Context) (ResourcesRateCheck, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue ResourcesRateCheck + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/rates/limits/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.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{} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["X-Api-Key"] = key + + } + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, 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 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v ResourcesRateCheck + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 400 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 422 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + diff --git a/bindings/go/src/api_repos.go b/bindings/go/src/api_repos.go new file mode 100644 index 00000000..eb7d2436 --- /dev/null +++ b/bindings/go/src/api_repos.go @@ -0,0 +1,867 @@ + +/* + * Cloudsmith API + * + * The API to the Cloudsmith Service + * + * API version: v1 + * Contact: support@cloudsmith.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package cloudsmith_api + +import ( + "context" + "io/ioutil" + "net/http" + "net/url" + "strings" + "fmt" + "github.com/antihax/optional" +) + +// Linger please +var ( + _ context.Context +) + +type ReposApiService service + +/* +ReposApiService Get a list of all repositories associated with current user. +Get a list of all repositories associated with current user. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param optional nil or *ReposApiReposAllListOpts - Optional Parameters: + * @param "Page" (optional.Int32) - A page number within the paginated result set. + * @param "PageSize" (optional.Int32) - Number of results to return per page. + +@return []Repository +*/ + +type ReposApiReposAllListOpts struct { + Page optional.Int32 + PageSize optional.Int32 +} + +func (a *ReposApiService) ReposAllList(ctx context.Context, localVarOptionals *ReposApiReposAllListOpts) ([]Repository, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue []Repository + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/repos/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.Page.IsSet() { + localVarQueryParams.Add("page", parameterToString(localVarOptionals.Page.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.PageSize.IsSet() { + localVarQueryParams.Add("page_size", parameterToString(localVarOptionals.PageSize.Value(), "")) + } + // 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{} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["X-Api-Key"] = key + + } + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, 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 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v []Repository + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 400 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 422 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +ReposApiService Create a new repository in a given namespace. +Create a new repository in a given namespace. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param owner + * @param optional nil or *ReposApiReposCreateOpts - Optional Parameters: + * @param "Data" (optional.Interface of ReposCreate) - + +@return Repository +*/ + +type ReposApiReposCreateOpts struct { + Data optional.Interface +} + +func (a *ReposApiService) ReposCreate(ctx context.Context, owner string, localVarOptionals *ReposApiReposCreateOpts) (Repository, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue Repository + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/repos/{owner}/" + localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.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{} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + if localVarOptionals != nil && localVarOptionals.Data.IsSet() { + + localVarOptionalData, localVarOptionalDataok := localVarOptionals.Data.Value().(ReposCreate) + if !localVarOptionalDataok { + return localVarReturnValue, nil, reportError("data should be ReposCreate") + } + localVarPostBody = &localVarOptionalData + } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["X-Api-Key"] = key + + } + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, 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 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 201 { + var v Repository + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 400 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 404 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 422 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +ReposApiService Delete a repository in a given namespace. +Delete a repository in a given namespace. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param owner + * @param identifier + + +*/ +func (a *ReposApiService) ReposDelete(ctx context.Context, owner string, identifier string) (*http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Delete") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/repos/{owner}/{identifier}/" + localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) + localVarPath = strings.Replace(localVarPath, "{"+"identifier"+"}", fmt.Sprintf("%v", identifier), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.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{} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["X-Api-Key"] = key + + } + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarHttpResponse, err + } + + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 400 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 404 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 422 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, nil +} + +/* +ReposApiService Get a list of all repositories within a namespace. +Get a list of all repositories within a namespace. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param owner + * @param optional nil or *ReposApiReposListOpts - Optional Parameters: + * @param "Page" (optional.Int32) - A page number within the paginated result set. + * @param "PageSize" (optional.Int32) - Number of results to return per page. + +@return []Repository +*/ + +type ReposApiReposListOpts struct { + Page optional.Int32 + PageSize optional.Int32 +} + +func (a *ReposApiService) ReposList(ctx context.Context, owner string, localVarOptionals *ReposApiReposListOpts) ([]Repository, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue []Repository + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/repos/{owner}/" + localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.Page.IsSet() { + localVarQueryParams.Add("page", parameterToString(localVarOptionals.Page.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.PageSize.IsSet() { + localVarQueryParams.Add("page_size", parameterToString(localVarOptionals.PageSize.Value(), "")) + } + // 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{} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["X-Api-Key"] = key + + } + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, 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 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v []Repository + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 400 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 404 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 422 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +ReposApiService Update details about a repository in a given namespace. +Update details about a repository in a given namespace. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param owner + * @param identifier + * @param optional nil or *ReposApiReposPartialUpdateOpts - Optional Parameters: + * @param "Data" (optional.Interface of ReposPartialUpdate) - + +@return Repository +*/ + +type ReposApiReposPartialUpdateOpts struct { + Data optional.Interface +} + +func (a *ReposApiService) ReposPartialUpdate(ctx context.Context, owner string, identifier string, localVarOptionals *ReposApiReposPartialUpdateOpts) (Repository, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Patch") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue Repository + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/repos/{owner}/{identifier}/" + localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) + localVarPath = strings.Replace(localVarPath, "{"+"identifier"+"}", fmt.Sprintf("%v", identifier), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.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{} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + if localVarOptionals != nil && localVarOptionals.Data.IsSet() { + + localVarOptionalData, localVarOptionalDataok := localVarOptionals.Data.Value().(ReposPartialUpdate) + if !localVarOptionalDataok { + return localVarReturnValue, nil, reportError("data should be ReposPartialUpdate") + } + localVarPostBody = &localVarOptionalData + } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["X-Api-Key"] = key + + } + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, 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 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v Repository + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 400 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 404 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 422 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +ReposApiService Get a specific repository. +Get a specific repository. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param owner + * @param identifier + +@return Repository +*/ +func (a *ReposApiService) ReposRead(ctx context.Context, owner string, identifier string) (Repository, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue Repository + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/repos/{owner}/{identifier}/" + localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) + localVarPath = strings.Replace(localVarPath, "{"+"identifier"+"}", fmt.Sprintf("%v", identifier), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.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{} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["X-Api-Key"] = key + + } + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, 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 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v Repository + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 400 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 404 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 422 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + diff --git a/bindings/go/src/api_status.go b/bindings/go/src/api_status.go new file mode 100644 index 00000000..9cbfc77c --- /dev/null +++ b/bindings/go/src/api_status.go @@ -0,0 +1,135 @@ + +/* + * Cloudsmith API + * + * The API to the Cloudsmith Service + * + * API version: v1 + * Contact: support@cloudsmith.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package cloudsmith_api + +import ( + "context" + "io/ioutil" + "net/http" + "net/url" + "strings" +) + +// Linger please +var ( + _ context.Context +) + +type StatusApiService service + +/* +StatusApiService Endpoint to check basic API connectivity. +Endpoint to check basic API connectivity. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + +@return StatusBasic +*/ +func (a *StatusApiService) StatusCheckBasic(ctx context.Context) (StatusBasic, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue StatusBasic + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/status/check/basic/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.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{} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, 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 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v StatusBasic + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 400 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 422 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + diff --git a/bindings/go/src/api_storage_regions.go b/bindings/go/src/api_storage_regions.go new file mode 100644 index 00000000..603635f8 --- /dev/null +++ b/bindings/go/src/api_storage_regions.go @@ -0,0 +1,271 @@ + +/* + * Cloudsmith API + * + * The API to the Cloudsmith Service + * + * API version: v1 + * Contact: support@cloudsmith.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package cloudsmith_api + +import ( + "context" + "io/ioutil" + "net/http" + "net/url" + "strings" + "fmt" +) + +// Linger please +var ( + _ context.Context +) + +type StorageRegionsApiService service + +/* +StorageRegionsApiService Get a list of all available storage regions. +Get a list of all available storage regions. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + +@return []StorageRegion +*/ +func (a *StorageRegionsApiService) StorageRegionsList(ctx context.Context) ([]StorageRegion, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue []StorageRegion + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/storage-regions/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.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{} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["X-Api-Key"] = key + + } + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, 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 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v []StorageRegion + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 400 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 422 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +StorageRegionsApiService Get a specific storage region. +Get a specific storage region. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param slug + +@return StorageRegion +*/ +func (a *StorageRegionsApiService) StorageRegionsRead(ctx context.Context, slug string) (StorageRegion, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue StorageRegion + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/storage-regions/{slug}/" + localVarPath = strings.Replace(localVarPath, "{"+"slug"+"}", fmt.Sprintf("%v", slug), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.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{} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["X-Api-Key"] = key + + } + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, 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 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v StorageRegion + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 400 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 422 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + diff --git a/bindings/go/src/api_user.go b/bindings/go/src/api_user.go new file mode 100644 index 00000000..0356c2b6 --- /dev/null +++ b/bindings/go/src/api_user.go @@ -0,0 +1,296 @@ + +/* + * Cloudsmith API + * + * The API to the Cloudsmith Service + * + * API version: v1 + * Contact: support@cloudsmith.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package cloudsmith_api + +import ( + "context" + "io/ioutil" + "net/http" + "net/url" + "strings" + "github.com/antihax/optional" +) + +// Linger please +var ( + _ context.Context +) + +type UserApiService service + +/* +UserApiService Provide a brief for the current user (if any). +Provide a brief for the current user (if any). + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + +@return UserBrief +*/ +func (a *UserApiService) UserSelf(ctx context.Context) (UserBrief, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue UserBrief + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/user/self/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.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{} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["X-Api-Key"] = key + + } + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, 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 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v UserBrief + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 400 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 422 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +UserApiService Retrieve the API key/token for the authenticated user. +Retrieve the API key/token for the authenticated user. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param optional nil or *UserApiUserTokenCreateOpts - Optional Parameters: + * @param "Data" (optional.Interface of UserTokenCreate) - + +@return UserAuthToken +*/ + +type UserApiUserTokenCreateOpts struct { + Data optional.Interface +} + +func (a *UserApiService) UserTokenCreate(ctx context.Context, localVarOptionals *UserApiUserTokenCreateOpts) (UserAuthToken, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue UserAuthToken + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/user/token/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.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{} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + if localVarOptionals != nil && localVarOptionals.Data.IsSet() { + + localVarOptionalData, localVarOptionalDataok := localVarOptionals.Data.Value().(UserTokenCreate) + if !localVarOptionalDataok { + return localVarReturnValue, nil, reportError("data should be UserTokenCreate") + } + localVarPostBody = &localVarOptionalData + } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["X-Api-Key"] = key + + } + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, 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 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 201 { + var v UserAuthToken + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 400 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 403 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 422 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + diff --git a/bindings/go/src/api_users.go b/bindings/go/src/api_users.go new file mode 100644 index 00000000..e29d24df --- /dev/null +++ b/bindings/go/src/api_users.go @@ -0,0 +1,151 @@ + +/* + * Cloudsmith API + * + * The API to the Cloudsmith Service + * + * API version: v1 + * Contact: support@cloudsmith.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package cloudsmith_api + +import ( + "context" + "io/ioutil" + "net/http" + "net/url" + "strings" + "fmt" +) + +// Linger please +var ( + _ context.Context +) + +type UsersApiService service + +/* +UsersApiService Provide a brief for the specified user (if any). +Provide a brief for the specified user (if any). + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param slug + +@return UserProfile +*/ +func (a *UsersApiService) UsersProfileRead(ctx context.Context, slug string) (UserProfile, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue UserProfile + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/users/profile/{slug}/" + localVarPath = strings.Replace(localVarPath, "{"+"slug"+"}", fmt.Sprintf("%v", slug), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.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{} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["X-Api-Key"] = key + + } + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, 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 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v UserProfile + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 400 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 422 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + diff --git a/bindings/go/src/api_vulnerabilities.go b/bindings/go/src/api_vulnerabilities.go new file mode 100644 index 00000000..75d92169 --- /dev/null +++ b/bindings/go/src/api_vulnerabilities.go @@ -0,0 +1,575 @@ + +/* + * Cloudsmith API + * + * The API to the Cloudsmith Service + * + * API version: v1 + * Contact: support@cloudsmith.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package cloudsmith_api + +import ( + "context" + "io/ioutil" + "net/http" + "net/url" + "strings" + "fmt" + "github.com/antihax/optional" +) + +// Linger please +var ( + _ context.Context +) + +type VulnerabilitiesApiService service + +/* +VulnerabilitiesApiService Lists scan results for a specific namespace. +Lists scan results for a specific namespace. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param owner + * @param optional nil or *VulnerabilitiesApiVulnerabilitiesListOpts - Optional Parameters: + * @param "Page" (optional.Int32) - A page number within the paginated result set. + * @param "PageSize" (optional.Int32) - Number of results to return per page. + +@return []VulnerabilityScanResultsList +*/ + +type VulnerabilitiesApiVulnerabilitiesListOpts struct { + Page optional.Int32 + PageSize optional.Int32 +} + +func (a *VulnerabilitiesApiService) VulnerabilitiesList(ctx context.Context, owner string, localVarOptionals *VulnerabilitiesApiVulnerabilitiesListOpts) ([]VulnerabilityScanResultsList, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue []VulnerabilityScanResultsList + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/vulnerabilities/{owner}/" + localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.Page.IsSet() { + localVarQueryParams.Add("page", parameterToString(localVarOptionals.Page.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.PageSize.IsSet() { + localVarQueryParams.Add("page_size", parameterToString(localVarOptionals.PageSize.Value(), "")) + } + // 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{} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["X-Api-Key"] = key + + } + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, 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 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v []VulnerabilityScanResultsList + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 400 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 422 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +VulnerabilitiesApiService Lists scan results for a specific repository. +Lists scan results for a specific repository. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param owner + * @param repo + * @param optional nil or *VulnerabilitiesApiVulnerabilitiesList0Opts - Optional Parameters: + * @param "Page" (optional.Int32) - A page number within the paginated result set. + * @param "PageSize" (optional.Int32) - Number of results to return per page. + +@return []VulnerabilityScanResultsList +*/ + +type VulnerabilitiesApiVulnerabilitiesList0Opts struct { + Page optional.Int32 + PageSize optional.Int32 +} + +func (a *VulnerabilitiesApiService) VulnerabilitiesList0(ctx context.Context, owner string, repo string, localVarOptionals *VulnerabilitiesApiVulnerabilitiesList0Opts) ([]VulnerabilityScanResultsList, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue []VulnerabilityScanResultsList + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/vulnerabilities/{owner}/{repo}/" + localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) + localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.Page.IsSet() { + localVarQueryParams.Add("page", parameterToString(localVarOptionals.Page.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.PageSize.IsSet() { + localVarQueryParams.Add("page_size", parameterToString(localVarOptionals.PageSize.Value(), "")) + } + // 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{} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["X-Api-Key"] = key + + } + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, 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 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v []VulnerabilityScanResultsList + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 400 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 422 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +VulnerabilitiesApiService Lists scan results for a specific package. +Lists scan results for a specific package. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param owner + * @param repo + * @param package_ + * @param optional nil or *VulnerabilitiesApiVulnerabilitiesList1Opts - Optional Parameters: + * @param "Page" (optional.Int32) - A page number within the paginated result set. + * @param "PageSize" (optional.Int32) - Number of results to return per page. + +@return []VulnerabilityScanResultsList +*/ + +type VulnerabilitiesApiVulnerabilitiesList1Opts struct { + Page optional.Int32 + PageSize optional.Int32 +} + +func (a *VulnerabilitiesApiService) VulnerabilitiesList1(ctx context.Context, owner string, repo string, package_ string, localVarOptionals *VulnerabilitiesApiVulnerabilitiesList1Opts) ([]VulnerabilityScanResultsList, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue []VulnerabilityScanResultsList + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/vulnerabilities/{owner}/{repo}/{package}/" + localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) + localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) + localVarPath = strings.Replace(localVarPath, "{"+"package"+"}", fmt.Sprintf("%v", package_), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.Page.IsSet() { + localVarQueryParams.Add("page", parameterToString(localVarOptionals.Page.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.PageSize.IsSet() { + localVarQueryParams.Add("page_size", parameterToString(localVarOptionals.PageSize.Value(), "")) + } + // 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{} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["X-Api-Key"] = key + + } + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, 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 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v []VulnerabilityScanResultsList + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 400 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 422 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +VulnerabilitiesApiService Returns a Scan Result. +Returns a Scan Result. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param owner + * @param repo + * @param package_ + * @param scanId + +@return VulnerabilityScanResults +*/ +func (a *VulnerabilitiesApiService) VulnerabilitiesRead(ctx context.Context, owner string, repo string, package_ string, scanId string) (VulnerabilityScanResults, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue VulnerabilityScanResults + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/vulnerabilities/{owner}/{repo}/{package}/{scan_id}/" + localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) + localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) + localVarPath = strings.Replace(localVarPath, "{"+"package"+"}", fmt.Sprintf("%v", package_), -1) + localVarPath = strings.Replace(localVarPath, "{"+"scan_id"+"}", fmt.Sprintf("%v", scanId), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.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{} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["X-Api-Key"] = key + + } + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, 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 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v VulnerabilityScanResults + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 400 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 422 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + diff --git a/bindings/go/src/api_webhooks.go b/bindings/go/src/api_webhooks.go new file mode 100644 index 00000000..be8e35f3 --- /dev/null +++ b/bindings/go/src/api_webhooks.go @@ -0,0 +1,720 @@ + +/* + * Cloudsmith API + * + * The API to the Cloudsmith Service + * + * API version: v1 + * Contact: support@cloudsmith.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package cloudsmith_api + +import ( + "context" + "io/ioutil" + "net/http" + "net/url" + "strings" + "fmt" + "github.com/antihax/optional" +) + +// Linger please +var ( + _ context.Context +) + +type WebhooksApiService service + +/* +WebhooksApiService Create a specific webhook in a repository. +Create a specific webhook in a repository. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param owner + * @param repo + * @param optional nil or *WebhooksApiWebhooksCreateOpts - Optional Parameters: + * @param "Data" (optional.Interface of WebhooksCreate) - + +@return RepositoryWebhook +*/ + +type WebhooksApiWebhooksCreateOpts struct { + Data optional.Interface +} + +func (a *WebhooksApiService) WebhooksCreate(ctx context.Context, owner string, repo string, localVarOptionals *WebhooksApiWebhooksCreateOpts) (RepositoryWebhook, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue RepositoryWebhook + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/webhooks/{owner}/{repo}/" + localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) + localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.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{} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + if localVarOptionals != nil && localVarOptionals.Data.IsSet() { + + localVarOptionalData, localVarOptionalDataok := localVarOptionals.Data.Value().(WebhooksCreate) + if !localVarOptionalDataok { + return localVarReturnValue, nil, reportError("data should be WebhooksCreate") + } + localVarPostBody = &localVarOptionalData + } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["X-Api-Key"] = key + + } + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, 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 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 201 { + var v RepositoryWebhook + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 400 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 404 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 422 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +WebhooksApiService Delete a specific webhook in a repository. +Delete a specific webhook in a repository. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param owner + * @param repo + * @param identifier + + +*/ +func (a *WebhooksApiService) WebhooksDelete(ctx context.Context, owner string, repo string, identifier string) (*http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Delete") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/webhooks/{owner}/{repo}/{identifier}/" + localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) + localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) + localVarPath = strings.Replace(localVarPath, "{"+"identifier"+"}", fmt.Sprintf("%v", identifier), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.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{} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["X-Api-Key"] = key + + } + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarHttpResponse, err + } + + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 400 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 422 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarHttpResponse, newErr + } + newErr.model = v + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, nil +} + +/* +WebhooksApiService Get a list of all webhooks in a repository. +Get a list of all webhooks in a repository. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param owner + * @param repo + * @param optional nil or *WebhooksApiWebhooksListOpts - Optional Parameters: + * @param "Page" (optional.Int32) - A page number within the paginated result set. + * @param "PageSize" (optional.Int32) - Number of results to return per page. + +@return []RepositoryWebhook +*/ + +type WebhooksApiWebhooksListOpts struct { + Page optional.Int32 + PageSize optional.Int32 +} + +func (a *WebhooksApiService) WebhooksList(ctx context.Context, owner string, repo string, localVarOptionals *WebhooksApiWebhooksListOpts) ([]RepositoryWebhook, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue []RepositoryWebhook + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/webhooks/{owner}/{repo}/" + localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) + localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.Page.IsSet() { + localVarQueryParams.Add("page", parameterToString(localVarOptionals.Page.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.PageSize.IsSet() { + localVarQueryParams.Add("page_size", parameterToString(localVarOptionals.PageSize.Value(), "")) + } + // 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{} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["X-Api-Key"] = key + + } + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, 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 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v []RepositoryWebhook + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 400 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 404 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 422 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +WebhooksApiService Update a specific webhook in a repository. +Update a specific webhook in a repository. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param owner + * @param repo + * @param identifier + * @param optional nil or *WebhooksApiWebhooksPartialUpdateOpts - Optional Parameters: + * @param "Data" (optional.Interface of WebhooksPartialUpdate) - + +@return RepositoryWebhook +*/ + +type WebhooksApiWebhooksPartialUpdateOpts struct { + Data optional.Interface +} + +func (a *WebhooksApiService) WebhooksPartialUpdate(ctx context.Context, owner string, repo string, identifier string, localVarOptionals *WebhooksApiWebhooksPartialUpdateOpts) (RepositoryWebhook, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Patch") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue RepositoryWebhook + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/webhooks/{owner}/{repo}/{identifier}/" + localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) + localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) + localVarPath = strings.Replace(localVarPath, "{"+"identifier"+"}", fmt.Sprintf("%v", identifier), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.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{} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + if localVarOptionals != nil && localVarOptionals.Data.IsSet() { + + localVarOptionalData, localVarOptionalDataok := localVarOptionals.Data.Value().(WebhooksPartialUpdate) + if !localVarOptionalDataok { + return localVarReturnValue, nil, reportError("data should be WebhooksPartialUpdate") + } + localVarPostBody = &localVarOptionalData + } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["X-Api-Key"] = key + + } + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, 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 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v RepositoryWebhook + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 400 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 404 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 422 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +WebhooksApiService Views for working with repository webhooks. +Views for working with repository webhooks. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param owner + * @param repo + * @param identifier + +@return RepositoryWebhook +*/ +func (a *WebhooksApiService) WebhooksRead(ctx context.Context, owner string, repo string, identifier string) (RepositoryWebhook, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue RepositoryWebhook + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/webhooks/{owner}/{repo}/{identifier}/" + localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) + localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) + localVarPath = strings.Replace(localVarPath, "{"+"identifier"+"}", fmt.Sprintf("%v", identifier), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.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{} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + if ctx != nil { + // API Key Authentication + if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok { + var key string + if auth.Prefix != "" { + key = auth.Prefix + " " + auth.Key + } else { + key = auth.Key + } + localVarHeaderParams["X-Api-Key"] = key + + } + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, 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 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v RepositoryWebhook + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 400 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 422 { + var v Status + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + diff --git a/bindings/go/src/badges_api.go b/bindings/go/src/badges_api.go deleted file mode 100644 index aebffd13..00000000 --- a/bindings/go/src/badges_api.go +++ /dev/null @@ -1,131 +0,0 @@ -/* - * Cloudsmith API - * - * The API to the Cloudsmith Service - * - * OpenAPI spec version: v1 - * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -package cloudsmith_api - -import ( - "net/url" - "strings" - "fmt" -) - -type BadgesApi struct { - Configuration *Configuration -} - -func NewBadgesApi() *BadgesApi { - configuration := NewConfiguration() - return &BadgesApi{ - Configuration: configuration, - } -} - -func NewBadgesApiWithBasePath(basePath string) *BadgesApi { - configuration := NewConfiguration() - configuration.BasePath = basePath - - return &BadgesApi{ - Configuration: configuration, - } -} - -/** - * Get latest package version for a package or package group. - * Get latest package version for a package or package group. - * - * @param owner - * @param repo - * @param packageFormat - * @param packageName - * @param packageVersion - * @param packageIdentifiers - * @param badgeToken Badge token to authenticate for private packages - * @param cacheSeconds Override the shields.io badge cacheSeconds value. - * @param color Override the shields.io badge color value. - * @param label Override the shields.io badge label value. - * @param labelColor Override the shields.io badge labelColor value. - * @param logoColor Override the shields.io badge logoColor value. - * @param logoWidth Override the shields.io badge logoWidth value. - * @param render If true, badge will be rendered - * @param shields If true, a shields response will be generated - * @param showLatest If true, for latest version badges a '(latest)' suffix is added - * @param style Override the shields.io badge style value. - * @return void - */ -func (a BadgesApi) BadgesVersionList(owner string, repo string, packageFormat string, packageName string, packageVersion string, packageIdentifiers string, badgeToken string, cacheSeconds string, color string, label string, labelColor string, logoColor string, logoWidth string, render bool, shields bool, showLatest bool, style string) (*APIResponse, error) { - - var localVarHttpMethod = strings.ToUpper("Get") - // create path and map variables - localVarPath := a.Configuration.BasePath + "/badges/version/{owner}/{repo}/{package_format}/{package_name}/{package_version}/{package_identifiers}/" - localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) - localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) - localVarPath = strings.Replace(localVarPath, "{"+"package_format"+"}", fmt.Sprintf("%v", packageFormat), -1) - localVarPath = strings.Replace(localVarPath, "{"+"package_name"+"}", fmt.Sprintf("%v", packageName), -1) - localVarPath = strings.Replace(localVarPath, "{"+"package_version"+"}", fmt.Sprintf("%v", packageVersion), -1) - localVarPath = strings.Replace(localVarPath, "{"+"package_identifiers"+"}", fmt.Sprintf("%v", packageIdentifiers), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := make(map[string]string) - var localVarPostBody interface{} - var localVarFileName string - var localVarFileBytes []byte - // authentication '(apikey)' required - // set key with prefix in header - localVarHeaderParams["X-Api-Key"] = a.Configuration.GetAPIKeyWithPrefix("X-Api-Key") - // add default headers if any - for key := range a.Configuration.DefaultHeader { - localVarHeaderParams[key] = a.Configuration.DefaultHeader[key] - } - localVarQueryParams.Add("badge_token", a.Configuration.APIClient.ParameterToString(badgeToken, "")) - localVarQueryParams.Add("cacheSeconds", a.Configuration.APIClient.ParameterToString(cacheSeconds, "")) - localVarQueryParams.Add("color", a.Configuration.APIClient.ParameterToString(color, "")) - localVarQueryParams.Add("label", a.Configuration.APIClient.ParameterToString(label, "")) - localVarQueryParams.Add("labelColor", a.Configuration.APIClient.ParameterToString(labelColor, "")) - localVarQueryParams.Add("logoColor", a.Configuration.APIClient.ParameterToString(logoColor, "")) - localVarQueryParams.Add("logoWidth", a.Configuration.APIClient.ParameterToString(logoWidth, "")) - localVarQueryParams.Add("render", a.Configuration.APIClient.ParameterToString(render, "")) - localVarQueryParams.Add("shields", a.Configuration.APIClient.ParameterToString(shields, "")) - localVarQueryParams.Add("show_latest", a.Configuration.APIClient.ParameterToString(showLatest, "")) - localVarQueryParams.Add("style", a.Configuration.APIClient.ParameterToString(style, "")) - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - localVarHttpResponse, err := a.Configuration.APIClient.CallAPI(localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - - var localVarURL, _ = url.Parse(localVarPath) - localVarURL.RawQuery = localVarQueryParams.Encode() - var localVarAPIResponse = &APIResponse{Operation: "BadgesVersionList", Method: localVarHttpMethod, RequestURL: localVarURL.String()} - if localVarHttpResponse != nil { - localVarAPIResponse.Response = localVarHttpResponse.RawResponse - localVarAPIResponse.Payload = localVarHttpResponse.Body() - } - - if err != nil { - return localVarAPIResponse, err - } - return localVarAPIResponse, err -} - diff --git a/bindings/go/src/build.json b/bindings/go/src/build.json index e46cdac6..141b4c72 100644 --- a/bindings/go/src/build.json +++ b/bindings/go/src/build.json @@ -1,5 +1,5 @@ { "hideGenerationTimestamp": true, "packageName": "cloudsmith_api", - "packageVersion": "1.30.0" + "packageVersion": "1.33.7" } diff --git a/bindings/go/src/client.go b/bindings/go/src/client.go new file mode 100644 index 00000000..370bc4b7 --- /dev/null +++ b/bindings/go/src/client.go @@ -0,0 +1,526 @@ +/* + * Cloudsmith API + * + * The API to the Cloudsmith Service + * + * API version: v1 + * Contact: support@cloudsmith.io + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package cloudsmith_api + +import ( + "bytes" + "context" + "encoding/json" + "encoding/xml" + "errors" + "fmt" + "io" + "mime/multipart" + "net/http" + "net/url" + "os" + "path/filepath" + "reflect" + "regexp" + "strconv" + "strings" + "time" + "unicode/utf8" + + "golang.org/x/oauth2" +) + +var ( + jsonCheck = regexp.MustCompile("(?i:(?:application|text)/json)") + xmlCheck = regexp.MustCompile("(?i:(?:application|text)/xml)") +) + +// APIClient manages communication with the Cloudsmith API API vv1 +// In most cases there should be only one, shared, APIClient. +type APIClient struct { + cfg *Configuration + common service // Reuse a single struct instead of allocating one for each service on the heap. + + // API Services + + BadgesApi *BadgesApiService + + DistrosApi *DistrosApiService + + EntitlementsApi *EntitlementsApiService + + FilesApi *FilesApiService + + FormatsApi *FormatsApiService + + MetricsApi *MetricsApiService + + NamespacesApi *NamespacesApiService + + OrgsApi *OrgsApiService + + PackagesApi *PackagesApiService + + QuotaApi *QuotaApiService + + RatesApi *RatesApiService + + ReposApi *ReposApiService + + StatusApi *StatusApiService + + StorageRegionsApi *StorageRegionsApiService + + UserApi *UserApiService + + UsersApi *UsersApiService + + VulnerabilitiesApi *VulnerabilitiesApiService + + WebhooksApi *WebhooksApiService +} + +type service struct { + client *APIClient +} + +// NewAPIClient creates a new API client. Requires a userAgent string describing your application. +// optionally a custom http.Client to allow for advanced features such as caching. +func NewAPIClient(cfg *Configuration) *APIClient { + if cfg.HTTPClient == nil { + cfg.HTTPClient = http.DefaultClient + } + + c := &APIClient{} + c.cfg = cfg + c.common.client = c + + // API Services + c.BadgesApi = (*BadgesApiService)(&c.common) + c.DistrosApi = (*DistrosApiService)(&c.common) + c.EntitlementsApi = (*EntitlementsApiService)(&c.common) + c.FilesApi = (*FilesApiService)(&c.common) + c.FormatsApi = (*FormatsApiService)(&c.common) + c.MetricsApi = (*MetricsApiService)(&c.common) + c.NamespacesApi = (*NamespacesApiService)(&c.common) + c.OrgsApi = (*OrgsApiService)(&c.common) + c.PackagesApi = (*PackagesApiService)(&c.common) + c.QuotaApi = (*QuotaApiService)(&c.common) + c.RatesApi = (*RatesApiService)(&c.common) + c.ReposApi = (*ReposApiService)(&c.common) + c.StatusApi = (*StatusApiService)(&c.common) + c.StorageRegionsApi = (*StorageRegionsApiService)(&c.common) + c.UserApi = (*UserApiService)(&c.common) + c.UsersApi = (*UsersApiService)(&c.common) + c.VulnerabilitiesApi = (*VulnerabilitiesApiService)(&c.common) + c.WebhooksApi = (*WebhooksApiService)(&c.common) + + return c +} + +func atoi(in string) (int, error) { + return strconv.Atoi(in) +} + +// selectHeaderContentType select a content type from the available list. +func selectHeaderContentType(contentTypes []string) string { + if len(contentTypes) == 0 { + return "" + } + if contains(contentTypes, "application/json") { + return "application/json" + } + return contentTypes[0] // use the first content type specified in 'consumes' +} + +// selectHeaderAccept join all accept types and return +func selectHeaderAccept(accepts []string) string { + if len(accepts) == 0 { + return "" + } + + if contains(accepts, "application/json") { + return "application/json" + } + + return strings.Join(accepts, ",") +} + +// contains is a case insenstive match, finding needle in a haystack +func contains(haystack []string, needle string) bool { + for _, a := range haystack { + if strings.ToLower(a) == strings.ToLower(needle) { + return true + } + } + return false +} + +// Verify optional parameters are of the correct type. +func typeCheckParameter(obj interface{}, expected string, name string) error { + // Make sure there is an object. + if obj == nil { + return nil + } + + // Check the type is as expected. + if reflect.TypeOf(obj).String() != expected { + return fmt.Errorf("Expected %s to be of type %s but received %s.", name, expected, reflect.TypeOf(obj).String()) + } + return nil +} + +// parameterToString convert interface{} parameters to string, using a delimiter if format is provided. +func parameterToString(obj interface{}, collectionFormat string) string { + var delimiter string + + switch collectionFormat { + case "pipes": + delimiter = "|" + case "ssv": + delimiter = " " + case "tsv": + delimiter = "\t" + case "csv": + delimiter = "," + } + + if reflect.TypeOf(obj).Kind() == reflect.Slice { + return strings.Trim(strings.Replace(fmt.Sprint(obj), " ", delimiter, -1), "[]") + } + + return fmt.Sprintf("%v", obj) +} + +// callAPI do the request. +func (c *APIClient) callAPI(request *http.Request) (*http.Response, error) { + return c.cfg.HTTPClient.Do(request) +} + +// Change base path to allow switching to mocks +func (c *APIClient) ChangeBasePath(path string) { + c.cfg.BasePath = path +} + +// prepareRequest build the request +func (c *APIClient) prepareRequest( + ctx context.Context, + path string, method string, + postBody interface{}, + headerParams map[string]string, + queryParams url.Values, + formParams url.Values, + fileName string, + fileBytes []byte) (localVarRequest *http.Request, err error) { + + var body *bytes.Buffer + + // Detect postBody type and post. + if postBody != nil { + contentType := headerParams["Content-Type"] + if contentType == "" { + contentType = detectContentType(postBody) + headerParams["Content-Type"] = contentType + } + + body, err = setBody(postBody, contentType) + if err != nil { + return nil, err + } + } + + // add form parameters and file if available. + if strings.HasPrefix(headerParams["Content-Type"], "multipart/form-data") && len(formParams) > 0 || (len(fileBytes) > 0 && fileName != "") { + if body != nil { + return nil, errors.New("Cannot specify postBody and multipart form at the same time.") + } + body = &bytes.Buffer{} + w := multipart.NewWriter(body) + + for k, v := range formParams { + for _, iv := range v { + if strings.HasPrefix(k, "@") { // file + err = addFile(w, k[1:], iv) + if err != nil { + return nil, err + } + } else { // form value + w.WriteField(k, iv) + } + } + } + if len(fileBytes) > 0 && fileName != "" { + w.Boundary() + //_, fileNm := filepath.Split(fileName) + part, err := w.CreateFormFile("file", filepath.Base(fileName)) + if err != nil { + return nil, err + } + _, err = part.Write(fileBytes) + if err != nil { + return nil, err + } + // Set the Boundary in the Content-Type + headerParams["Content-Type"] = w.FormDataContentType() + } + + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + w.Close() + } + + if strings.HasPrefix(headerParams["Content-Type"], "application/x-www-form-urlencoded") && len(formParams) > 0 { + if body != nil { + return nil, errors.New("Cannot specify postBody and x-www-form-urlencoded form at the same time.") + } + body = &bytes.Buffer{} + body.WriteString(formParams.Encode()) + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + } + + // Setup path and query parameters + url, err := url.Parse(path) + if err != nil { + return nil, err + } + + // Adding Query Param + query := url.Query() + for k, v := range queryParams { + for _, iv := range v { + query.Add(k, iv) + } + } + + // Encode the parameters. + url.RawQuery = query.Encode() + + // Generate a new request + if body != nil { + localVarRequest, err = http.NewRequest(method, url.String(), body) + } else { + localVarRequest, err = http.NewRequest(method, url.String(), nil) + } + if err != nil { + return nil, err + } + + // add header parameters, if any + if len(headerParams) > 0 { + headers := http.Header{} + for h, v := range headerParams { + headers.Set(h, v) + } + localVarRequest.Header = headers + } + + // Override request host, if applicable + if c.cfg.Host != "" { + localVarRequest.Host = c.cfg.Host + } + + // Add the user agent to the request. + localVarRequest.Header.Add("User-Agent", c.cfg.UserAgent) + + if ctx != nil { + // add context to the request + localVarRequest = localVarRequest.WithContext(ctx) + + // Walk through any authentication. + + // OAuth2 authentication + if tok, ok := ctx.Value(ContextOAuth2).(oauth2.TokenSource); ok { + // We were able to grab an oauth2 token from the context + var latestToken *oauth2.Token + if latestToken, err = tok.Token(); err != nil { + return nil, err + } + + latestToken.SetAuthHeader(localVarRequest) + } + + // Basic HTTP Authentication + if auth, ok := ctx.Value(ContextBasicAuth).(BasicAuth); ok { + localVarRequest.SetBasicAuth(auth.UserName, auth.Password) + } + + // AccessToken Authentication + if auth, ok := ctx.Value(ContextAccessToken).(string); ok { + localVarRequest.Header.Add("Authorization", "Bearer "+auth) + } + } + + for header, value := range c.cfg.DefaultHeader { + localVarRequest.Header.Add(header, value) + } + + return localVarRequest, nil +} + +func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err error) { + if strings.Contains(contentType, "application/xml") { + if err = xml.Unmarshal(b, v); err != nil { + return err + } + return nil + } else if strings.Contains(contentType, "application/json") { + if err = json.Unmarshal(b, v); err != nil { + return err + } + return nil + } + return errors.New("undefined response type") +} + +// Add a file to the multipart request +func addFile(w *multipart.Writer, fieldName, path string) error { + file, err := os.Open(path) + if err != nil { + return err + } + defer file.Close() + + part, err := w.CreateFormFile(fieldName, filepath.Base(path)) + if err != nil { + return err + } + _, err = io.Copy(part, file) + + return err +} + +// Prevent trying to import "fmt" +func reportError(format string, a ...interface{}) error { + return fmt.Errorf(format, a...) +} + +// Set request body from an interface{} +func setBody(body interface{}, contentType string) (bodyBuf *bytes.Buffer, err error) { + if bodyBuf == nil { + bodyBuf = &bytes.Buffer{} + } + + if reader, ok := body.(io.Reader); ok { + _, err = bodyBuf.ReadFrom(reader) + } else if b, ok := body.([]byte); ok { + _, err = bodyBuf.Write(b) + } else if s, ok := body.(string); ok { + _, err = bodyBuf.WriteString(s) + } else if s, ok := body.(*string); ok { + _, err = bodyBuf.WriteString(*s) + } else if jsonCheck.MatchString(contentType) { + err = json.NewEncoder(bodyBuf).Encode(body) + } else if xmlCheck.MatchString(contentType) { + xml.NewEncoder(bodyBuf).Encode(body) + } + + if err != nil { + return nil, err + } + + if bodyBuf.Len() == 0 { + err = fmt.Errorf("Invalid body type %s\n", contentType) + return nil, err + } + return bodyBuf, nil +} + +// detectContentType method is used to figure out `Request.Body` content type for request header +func detectContentType(body interface{}) string { + contentType := "text/plain; charset=utf-8" + kind := reflect.TypeOf(body).Kind() + + switch kind { + case reflect.Struct, reflect.Map, reflect.Ptr: + contentType = "application/json; charset=utf-8" + case reflect.String: + contentType = "text/plain; charset=utf-8" + default: + if b, ok := body.([]byte); ok { + contentType = http.DetectContentType(b) + } else if kind == reflect.Slice { + contentType = "application/json; charset=utf-8" + } + } + + return contentType +} + +// Ripped from https://github.com/gregjones/httpcache/blob/master/httpcache.go +type cacheControl map[string]string + +func parseCacheControl(headers http.Header) cacheControl { + cc := cacheControl{} + ccHeader := headers.Get("Cache-Control") + for _, part := range strings.Split(ccHeader, ",") { + part = strings.Trim(part, " ") + if part == "" { + continue + } + if strings.ContainsRune(part, '=') { + keyval := strings.Split(part, "=") + cc[strings.Trim(keyval[0], " ")] = strings.Trim(keyval[1], ",") + } else { + cc[part] = "" + } + } + return cc +} + +// CacheExpires helper function to determine remaining time before repeating a request. +func CacheExpires(r *http.Response) time.Time { + // Figure out when the cache expires. + var expires time.Time + now, err := time.Parse(time.RFC1123, r.Header.Get("date")) + if err != nil { + return time.Now() + } + respCacheControl := parseCacheControl(r.Header) + + if maxAge, ok := respCacheControl["max-age"]; ok { + lifetime, err := time.ParseDuration(maxAge + "s") + if err != nil { + expires = now + } + expires = now.Add(lifetime) + } else { + expiresHeader := r.Header.Get("Expires") + if expiresHeader != "" { + expires, err = time.Parse(time.RFC1123, expiresHeader) + if err != nil { + expires = now + } + } + } + return expires +} + +func strlen(s string) int { + return utf8.RuneCountInString(s) +} + +// GenericSwaggerError Provides access to the body, error and model on returned errors. +type GenericSwaggerError struct { + body []byte + error string + model interface{} +} + +// Error returns non-empty string if there was an error. +func (e GenericSwaggerError) Error() string { + return e.error +} + +// Body returns the raw bytes of the response +func (e GenericSwaggerError) Body() []byte { + return e.body +} + +// Model returns the unpacked model of the error +func (e GenericSwaggerError) Model() interface{} { + return e.model +} diff --git a/bindings/go/src/configuration.go b/bindings/go/src/configuration.go index e980ac2f..ee1c83bb 100644 --- a/bindings/go/src/configuration.go +++ b/bindings/go/src/configuration.go @@ -1,67 +1,73 @@ -/* +/* * Cloudsmith API * * The API to the Cloudsmith Service * - * OpenAPI spec version: v1 + * API version: v1 * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package cloudsmith_api import ( - "encoding/base64" "net/http" - "time" ) +// contextKeys are used to identify the type of value in the context. +// Since these are string, it is possible to get a short description of the +// context key for logging and debugging using key.String(). + +type contextKey string + +func (c contextKey) String() string { + return "auth " + string(c) +} + +var ( + // ContextOAuth2 takes a oauth2.TokenSource as authentication for the request. + ContextOAuth2 = contextKey("token") + + // ContextBasicAuth takes BasicAuth as authentication for the request. + ContextBasicAuth = contextKey("basic") + + // 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") +) + +// BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth +type BasicAuth struct { + UserName string `json:"userName,omitempty"` + Password string `json:"password,omitempty"` +} + +// APIKey provides API key based authentication to a request passed via context using ContextAPIKey +type APIKey struct { + Key string + Prefix string +} type Configuration struct { - Username string `json:"userName,omitempty"` - Password string `json:"password,omitempty"` - APIKeyPrefix map[string]string `json:"APIKeyPrefix,omitempty"` - APIKey map[string]string `json:"APIKey,omitempty"` - Debug bool `json:"debug,omitempty"` - DebugFile string `json:"debugFile,omitempty"` - OAuthToken string `json:"oAuthToken,omitempty"` BasePath string `json:"basePath,omitempty"` Host string `json:"host,omitempty"` Scheme string `json:"scheme,omitempty"` - AccessToken string `json:"accessToken,omitempty"` DefaultHeader map[string]string `json:"defaultHeader,omitempty"` UserAgent string `json:"userAgent,omitempty"` - APIClient *APIClient - Transport *http.Transport - Timeout *time.Duration `json:"timeout,omitempty"` + HTTPClient *http.Client } func NewConfiguration() *Configuration { cfg := &Configuration{ BasePath: "https://api.cloudsmith.io/v1", DefaultHeader: make(map[string]string), - APIKey: make(map[string]string), - APIKeyPrefix: make(map[string]string), - UserAgent: "Swagger-Codegen/1.30.0/go", - APIClient: &APIClient{}, + UserAgent: "Swagger-Codegen/1.33.7/go", } - - cfg.APIClient.config = cfg return cfg } -func (c *Configuration) GetBasicAuthEncodedString() string { - return base64.StdEncoding.EncodeToString([]byte(c.Username + ":" + c.Password)) -} - func (c *Configuration) AddDefaultHeader(key string, value string) { c.DefaultHeader[key] = value } - -func (c *Configuration) GetAPIKeyWithPrefix(APIKeyIdentifier string) string { - if c.APIKeyPrefix[APIKeyIdentifier] != "" { - return c.APIKeyPrefix[APIKeyIdentifier] + " " + c.APIKey[APIKeyIdentifier] - } - - return c.APIKey[APIKeyIdentifier] -} diff --git a/bindings/go/src/distros_api.go b/bindings/go/src/distros_api.go deleted file mode 100644 index 908cbbc6..00000000 --- a/bindings/go/src/distros_api.go +++ /dev/null @@ -1,163 +0,0 @@ -/* - * Cloudsmith API - * - * The API to the Cloudsmith Service - * - * OpenAPI spec version: v1 - * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -package cloudsmith_api - -import ( - "net/url" - "strings" - "encoding/json" - "fmt" -) - -type DistrosApi struct { - Configuration *Configuration -} - -func NewDistrosApi() *DistrosApi { - configuration := NewConfiguration() - return &DistrosApi{ - Configuration: configuration, - } -} - -func NewDistrosApiWithBasePath(basePath string) *DistrosApi { - configuration := NewConfiguration() - configuration.BasePath = basePath - - return &DistrosApi{ - Configuration: configuration, - } -} - -/** - * Get a list of all supported distributions. - * Get a list of all supported distributions. - * - * @return []Distribution - */ -func (a DistrosApi) DistrosList() ([]Distribution, *APIResponse, error) { - - var localVarHttpMethod = strings.ToUpper("Get") - // create path and map variables - localVarPath := a.Configuration.BasePath + "/distros/" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := make(map[string]string) - var localVarPostBody interface{} - var localVarFileName string - var localVarFileBytes []byte - // authentication '(apikey)' required - // set key with prefix in header - localVarHeaderParams["X-Api-Key"] = a.Configuration.GetAPIKeyWithPrefix("X-Api-Key") - // add default headers if any - for key := range a.Configuration.DefaultHeader { - localVarHeaderParams[key] = a.Configuration.DefaultHeader[key] - } - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload = new([]Distribution) - localVarHttpResponse, err := a.Configuration.APIClient.CallAPI(localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - - var localVarURL, _ = url.Parse(localVarPath) - localVarURL.RawQuery = localVarQueryParams.Encode() - var localVarAPIResponse = &APIResponse{Operation: "DistrosList", Method: localVarHttpMethod, RequestURL: localVarURL.String()} - if localVarHttpResponse != nil { - localVarAPIResponse.Response = localVarHttpResponse.RawResponse - localVarAPIResponse.Payload = localVarHttpResponse.Body() - } - - if err != nil { - return *successPayload, localVarAPIResponse, err - } - err = json.Unmarshal(localVarHttpResponse.Body(), &successPayload) - return *successPayload, localVarAPIResponse, err -} - -/** - * View for viewing/listing distributions. - * View for viewing/listing distributions. - * - * @param slug - * @return *Distribution - */ -func (a DistrosApi) DistrosRead(slug string) (*Distribution, *APIResponse, error) { - - var localVarHttpMethod = strings.ToUpper("Get") - // create path and map variables - localVarPath := a.Configuration.BasePath + "/distros/{slug}/" - localVarPath = strings.Replace(localVarPath, "{"+"slug"+"}", fmt.Sprintf("%v", slug), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := make(map[string]string) - var localVarPostBody interface{} - var localVarFileName string - var localVarFileBytes []byte - // authentication '(apikey)' required - // set key with prefix in header - localVarHeaderParams["X-Api-Key"] = a.Configuration.GetAPIKeyWithPrefix("X-Api-Key") - // add default headers if any - for key := range a.Configuration.DefaultHeader { - localVarHeaderParams[key] = a.Configuration.DefaultHeader[key] - } - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload = new(Distribution) - localVarHttpResponse, err := a.Configuration.APIClient.CallAPI(localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - - var localVarURL, _ = url.Parse(localVarPath) - localVarURL.RawQuery = localVarQueryParams.Encode() - var localVarAPIResponse = &APIResponse{Operation: "DistrosRead", Method: localVarHttpMethod, RequestURL: localVarURL.String()} - if localVarHttpResponse != nil { - localVarAPIResponse.Response = localVarHttpResponse.RawResponse - localVarAPIResponse.Payload = localVarHttpResponse.Body() - } - - if err != nil { - return successPayload, localVarAPIResponse, err - } - err = json.Unmarshal(localVarHttpResponse.Body(), &successPayload) - return successPayload, localVarAPIResponse, err -} - diff --git a/bindings/go/src/docs/AlpinePackageUpload.md b/bindings/go/src/docs/AlpinePackageUpload.md index 7ec5aa16..578acdb9 100644 --- a/bindings/go/src/docs/AlpinePackageUpload.md +++ b/bindings/go/src/docs/AlpinePackageUpload.md @@ -12,8 +12,8 @@ Name | Type | Description | Notes **DependenciesChecksumMd5** | **string** | A checksum of all of the package's dependencies. | [optional] [default to null] **DependenciesUrl** | **string** | | [optional] [default to null] **Description** | **string** | A textual description of this package. | [optional] [default to null] -**Distro** | [**interface{}**](interface{}.md) | | [optional] [default to null] -**DistroVersion** | [**interface{}**](interface{}.md) | | [optional] [default to null] +**Distro** | **interface{}** | | [optional] [default to null] +**DistroVersion** | **interface{}** | | [optional] [default to null] **Downloads** | **int32** | | [optional] [default to null] **Epoch** | **int32** | The epoch of the package version (if any). | [optional] [default to null] **Extension** | **string** | | [optional] [default to null] @@ -59,7 +59,7 @@ Name | Type | Description | Notes **Summary** | **string** | A one-liner synopsis of this package. | [optional] [default to null] **SyncFinishedAt** | **string** | The datetime the package sync was finished at. | [optional] [default to null] **SyncProgress** | **int32** | Synchronisation progress (from 0-100) | [optional] [default to null] -**TagsImmutable** | [**interface{}**](interface{}.md) | All immutable tags on the package, grouped by tag type. Immutable tags cannot be (easily) deleted. | [optional] [default to null] +**TagsImmutable** | **interface{}** | All immutable tags on the package, grouped by tag type. Immutable tags cannot be (easily) deleted. | [optional] [default to null] **TypeDisplay** | **string** | | [optional] [default to null] **UploadedAt** | **string** | The date this package was uploaded. | [optional] [default to null] **Uploader** | **string** | | [optional] [default to null] diff --git a/bindings/go/src/docs/BadgesApi.md b/bindings/go/src/docs/BadgesApi.md index 62d4557e..281b428e 100644 --- a/bindings/go/src/docs/BadgesApi.md +++ b/bindings/go/src/docs/BadgesApi.md @@ -8,38 +8,50 @@ Method | HTTP request | Description # **BadgesVersionList** -> BadgesVersionList($owner, $repo, $packageFormat, $packageName, $packageVersion, $packageIdentifiers, $badgeToken, $cacheSeconds, $color, $label, $labelColor, $logoColor, $logoWidth, $render, $shields, $showLatest, $style) - +> interface{} BadgesVersionList(ctx, owner, repo, packageFormat, packageName, packageVersion, packageIdentifiers, optional) Get latest package version for a package or package group. Get latest package version for a package or package group. +### Required Parameters -### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **owner** | **string**| | + **repo** | **string**| | + **packageFormat** | **string**| | + **packageName** | **string**| | + **packageVersion** | **string**| | + **packageIdentifiers** | **string**| | + **optional** | ***BadgesApiBadgesVersionListOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a BadgesApiBadgesVersionListOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **owner** | **string**| | - **repo** | **string**| | - **packageFormat** | **string**| | - **packageName** | **string**| | - **packageVersion** | **string**| | - **packageIdentifiers** | **string**| | - **badgeToken** | **string**| Badge token to authenticate for private packages | [optional] - **cacheSeconds** | **string**| Override the shields.io badge cacheSeconds value. | [optional] - **color** | **string**| Override the shields.io badge color value. | [optional] - **label** | **string**| Override the shields.io badge label value. | [optional] - **labelColor** | **string**| Override the shields.io badge labelColor value. | [optional] - **logoColor** | **string**| Override the shields.io badge logoColor value. | [optional] - **logoWidth** | **string**| Override the shields.io badge logoWidth value. | [optional] - **render** | **bool**| If true, badge will be rendered | [optional] - **shields** | **bool**| If true, a shields response will be generated | [optional] - **showLatest** | **bool**| If true, for latest version badges a '(latest)' suffix is added | [optional] - **style** | **string**| Override the shields.io badge style value. | [optional] + + + + + + + **badgeToken** | **optional.String**| Badge token to authenticate for private packages | + **cacheSeconds** | **optional.String**| Override the shields.io badge cacheSeconds value. | + **color** | **optional.String**| Override the shields.io badge color value. | + **label** | **optional.String**| Override the shields.io badge label value. | + **labelColor** | **optional.String**| Override the shields.io badge labelColor value. | + **logoColor** | **optional.String**| Override the shields.io badge logoColor value. | + **logoWidth** | **optional.String**| Override the shields.io badge logoWidth value. | + **render** | **optional.Bool**| If true, badge will be rendered | + **shields** | **optional.Bool**| If true, a shields response will be generated | + **showLatest** | **optional.Bool**| If true, for latest version badges a '(latest)' suffix is added | + **style** | **optional.String**| Override the shields.io badge style value. | ### Return type -void (empty response body) +**interface{}** ### Authorization diff --git a/bindings/go/src/docs/ConanPackageUpload.md b/bindings/go/src/docs/ConanPackageUpload.md index d6223970..ea0c6964 100644 --- a/bindings/go/src/docs/ConanPackageUpload.md +++ b/bindings/go/src/docs/ConanPackageUpload.md @@ -14,8 +14,8 @@ Name | Type | Description | Notes **DependenciesChecksumMd5** | **string** | A checksum of all of the package's dependencies. | [optional] [default to null] **DependenciesUrl** | **string** | | [optional] [default to null] **Description** | **string** | A textual description of this package. | [optional] [default to null] -**Distro** | [**interface{}**](interface{}.md) | | [optional] [default to null] -**DistroVersion** | [**interface{}**](interface{}.md) | | [optional] [default to null] +**Distro** | **interface{}** | | [optional] [default to null] +**DistroVersion** | **interface{}** | | [optional] [default to null] **Downloads** | **int32** | | [optional] [default to null] **Epoch** | **int32** | The epoch of the package version (if any). | [optional] [default to null] **Extension** | **string** | | [optional] [default to null] @@ -61,7 +61,7 @@ Name | Type | Description | Notes **Summary** | **string** | A one-liner synopsis of this package. | [optional] [default to null] **SyncFinishedAt** | **string** | The datetime the package sync was finished at. | [optional] [default to null] **SyncProgress** | **int32** | Synchronisation progress (from 0-100) | [optional] [default to null] -**TagsImmutable** | [**interface{}**](interface{}.md) | All immutable tags on the package, grouped by tag type. Immutable tags cannot be (easily) deleted. | [optional] [default to null] +**TagsImmutable** | **interface{}** | All immutable tags on the package, grouped by tag type. Immutable tags cannot be (easily) deleted. | [optional] [default to null] **TypeDisplay** | **string** | | [optional] [default to null] **UploadedAt** | **string** | The date this package was uploaded. | [optional] [default to null] **Uploader** | **string** | | [optional] [default to null] diff --git a/bindings/go/src/docs/DistrosApi.md b/bindings/go/src/docs/DistrosApi.md index 4a222e9b..374aaa0a 100644 --- a/bindings/go/src/docs/DistrosApi.md +++ b/bindings/go/src/docs/DistrosApi.md @@ -9,14 +9,12 @@ Method | HTTP request | Description # **DistrosList** -> []Distribution DistrosList() - +> []Distribution DistrosList(ctx, ) Get a list of all supported distributions. Get a list of all supported distributions. - -### Parameters +### Required Parameters This endpoint does not need any parameter. ### Return type @@ -35,18 +33,17 @@ This endpoint does not need any parameter. [[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) # **DistrosRead** -> Distribution DistrosRead($slug) - +> Distribution DistrosRead(ctx, slug) View for viewing/listing distributions. View for viewing/listing distributions. - -### Parameters +### Required Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **slug** | **string**| | + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **slug** | **string**| | ### Return type diff --git a/bindings/go/src/docs/EntitlementUsageMetrics.md b/bindings/go/src/docs/EntitlementUsageMetrics.md index a9ab3cb1..f5e8c0e5 100644 --- a/bindings/go/src/docs/EntitlementUsageMetrics.md +++ b/bindings/go/src/docs/EntitlementUsageMetrics.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Tokens** | [**interface{}**](interface{}.md) | | [default to null] +**Tokens** | **interface{}** | | [default to null] [[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/bindings/go/src/docs/EntitlementsApi.md b/bindings/go/src/docs/EntitlementsApi.md index 68824c5b..d57c1cee 100644 --- a/bindings/go/src/docs/EntitlementsApi.md +++ b/bindings/go/src/docs/EntitlementsApi.md @@ -17,21 +17,29 @@ Method | HTTP request | Description # **EntitlementsCreate** -> RepositoryToken EntitlementsCreate($owner, $repo, $showTokens, $data) - +> RepositoryToken EntitlementsCreate(ctx, owner, repo, optional) Create a specific entitlement in a repository. Create a specific entitlement in a repository. +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **owner** | **string**| | + **repo** | **string**| | + **optional** | ***EntitlementsApiEntitlementsCreateOpts** | optional parameters | nil if no parameters -### Parameters +### Optional Parameters +Optional parameters are passed through a pointer to a EntitlementsApiEntitlementsCreateOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **owner** | **string**| | - **repo** | **string**| | - **showTokens** | **bool**| Show entitlement token strings in results | [optional] - **data** | [**EntitlementsCreate**](EntitlementsCreate.md)| | [optional] + + + **showTokens** | **optional.Bool**| Show entitlement token strings in results | + **data** | [**optional.Interface of EntitlementsCreate**](EntitlementsCreate.md)| | ### Return type @@ -49,24 +57,23 @@ Name | Type | Description | Notes [[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) # **EntitlementsDelete** -> EntitlementsDelete($owner, $repo, $identifier) - +> EntitlementsDelete(ctx, owner, repo, identifier) Delete a specific entitlement in a repository. Delete a specific entitlement in a repository. - -### Parameters +### Required Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **owner** | **string**| | - **repo** | **string**| | - **identifier** | **string**| | + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **owner** | **string**| | + **repo** | **string**| | + **identifier** | **string**| | ### Return type -void (empty response body) + (empty response body) ### Authorization @@ -80,24 +87,23 @@ void (empty response body) [[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) # **EntitlementsDisable** -> EntitlementsDisable($owner, $repo, $identifier) - +> EntitlementsDisable(ctx, owner, repo, identifier) Disable an entitlement token in a repository. Disable an entitlement token in a repository. - -### Parameters +### Required Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **owner** | **string**| | - **repo** | **string**| | - **identifier** | **string**| | + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **owner** | **string**| | + **repo** | **string**| | + **identifier** | **string**| | ### Return type -void (empty response body) + (empty response body) ### Authorization @@ -111,24 +117,23 @@ void (empty response body) [[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) # **EntitlementsEnable** -> EntitlementsEnable($owner, $repo, $identifier) - +> EntitlementsEnable(ctx, owner, repo, identifier) Enable an entitlement token in a repository. Enable an entitlement token in a repository. - -### Parameters +### Required Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **owner** | **string**| | - **repo** | **string**| | - **identifier** | **string**| | + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **owner** | **string**| | + **repo** | **string**| | + **identifier** | **string**| | ### Return type -void (empty response body) + (empty response body) ### Authorization @@ -142,22 +147,30 @@ void (empty response body) [[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) # **EntitlementsList** -> []RepositoryToken EntitlementsList($owner, $repo, $page, $pageSize, $showTokens) - +> []RepositoryToken EntitlementsList(ctx, owner, repo, optional) Get a list of all entitlements in a repository. Get a list of all entitlements in a repository. +### Required Parameters -### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **owner** | **string**| | + **repo** | **string**| | + **optional** | ***EntitlementsApiEntitlementsListOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a EntitlementsApiEntitlementsListOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **owner** | **string**| | - **repo** | **string**| | - **page** | **int32**| A page number within the paginated result set. | [optional] - **pageSize** | **int32**| Number of results to return per page. | [optional] - **showTokens** | **bool**| Show entitlement token strings in results | [optional] + + + **page** | **optional.Int32**| A page number within the paginated result set. | + **pageSize** | **optional.Int32**| Number of results to return per page. | + **showTokens** | **optional.Bool**| Show entitlement token strings in results | ### Return type @@ -175,22 +188,31 @@ Name | Type | Description | Notes [[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) # **EntitlementsPartialUpdate** -> RepositoryToken EntitlementsPartialUpdate($owner, $repo, $identifier, $showTokens, $data) - +> RepositoryToken EntitlementsPartialUpdate(ctx, owner, repo, identifier, optional) Update a specific entitlement in a repository. Update a specific entitlement in a repository. +### Required Parameters -### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **owner** | **string**| | + **repo** | **string**| | + **identifier** | **string**| | + **optional** | ***EntitlementsApiEntitlementsPartialUpdateOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a EntitlementsApiEntitlementsPartialUpdateOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **owner** | **string**| | - **repo** | **string**| | - **identifier** | **string**| | - **showTokens** | **bool**| Show entitlement token strings in results | [optional] - **data** | [**EntitlementsPartialUpdate**](EntitlementsPartialUpdate.md)| | [optional] + + + + **showTokens** | **optional.Bool**| Show entitlement token strings in results | + **data** | [**optional.Interface of EntitlementsPartialUpdate**](EntitlementsPartialUpdate.md)| | ### Return type @@ -208,21 +230,30 @@ Name | Type | Description | Notes [[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) # **EntitlementsRead** -> RepositoryToken EntitlementsRead($owner, $repo, $identifier, $showTokens) - +> RepositoryToken EntitlementsRead(ctx, owner, repo, identifier, optional) Get a specific entitlement in a repository. Get a specific entitlement in a repository. +### Required Parameters -### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **owner** | **string**| | + **repo** | **string**| | + **identifier** | **string**| | + **optional** | ***EntitlementsApiEntitlementsReadOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a EntitlementsApiEntitlementsReadOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **owner** | **string**| | - **repo** | **string**| | - **identifier** | **string**| | - **showTokens** | **bool**| Show entitlement token strings in results | [optional] + + + + **showTokens** | **optional.Bool**| Show entitlement token strings in results | ### Return type @@ -240,22 +271,31 @@ Name | Type | Description | Notes [[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) # **EntitlementsRefresh** -> RepositoryTokenRefresh EntitlementsRefresh($owner, $repo, $identifier, $showTokens, $data) - +> RepositoryTokenRefresh EntitlementsRefresh(ctx, owner, repo, identifier, optional) Refresh an entitlement token in a repository. Refresh an entitlement token in a repository. +### Required Parameters -### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **owner** | **string**| | + **repo** | **string**| | + **identifier** | **string**| | + **optional** | ***EntitlementsApiEntitlementsRefreshOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a EntitlementsApiEntitlementsRefreshOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **owner** | **string**| | - **repo** | **string**| | - **identifier** | **string**| | - **showTokens** | **bool**| Show entitlement token strings in results | [optional] - **data** | [**EntitlementsRefresh**](EntitlementsRefresh.md)| | [optional] + + + + **showTokens** | **optional.Bool**| Show entitlement token strings in results | + **data** | [**optional.Interface of EntitlementsRefresh**](EntitlementsRefresh.md)| | ### Return type @@ -273,25 +313,34 @@ Name | Type | Description | Notes [[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) # **EntitlementsReset** -> EntitlementsReset($owner, $repo, $identifier, $showTokens) - +> EntitlementsReset(ctx, owner, repo, identifier, optional) Reset the statistics for an entitlement token in a repository. Reset the statistics for an entitlement token in a repository. +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **owner** | **string**| | + **repo** | **string**| | + **identifier** | **string**| | + **optional** | ***EntitlementsApiEntitlementsResetOpts** | optional parameters | nil if no parameters -### Parameters +### Optional Parameters +Optional parameters are passed through a pointer to a EntitlementsApiEntitlementsResetOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **owner** | **string**| | - **repo** | **string**| | - **identifier** | **string**| | - **showTokens** | **bool**| Show entitlement token strings in results | [optional] + + + + **showTokens** | **optional.Bool**| Show entitlement token strings in results | ### Return type -void (empty response body) + (empty response body) ### Authorization @@ -305,21 +354,29 @@ void (empty response body) [[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) # **EntitlementsSync** -> RepositoryTokenSync EntitlementsSync($owner, $repo, $showTokens, $data) - +> RepositoryTokenSync EntitlementsSync(ctx, owner, repo, optional) Synchronise tokens from a source repository. Synchronise tokens from a source repository. +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **owner** | **string**| | + **repo** | **string**| | + **optional** | ***EntitlementsApiEntitlementsSyncOpts** | optional parameters | nil if no parameters -### Parameters +### Optional Parameters +Optional parameters are passed through a pointer to a EntitlementsApiEntitlementsSyncOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **owner** | **string**| | - **repo** | **string**| | - **showTokens** | **bool**| Show entitlement token strings in results | [optional] - **data** | [**EntitlementsSync**](EntitlementsSync.md)| | [optional] + + + **showTokens** | **optional.Bool**| Show entitlement token strings in results | + **data** | [**optional.Interface of EntitlementsSync**](EntitlementsSync.md)| | ### Return type diff --git a/bindings/go/src/docs/EntitlementsCreate.md b/bindings/go/src/docs/EntitlementsCreate.md index 35daa8bb..29726feb 100644 --- a/bindings/go/src/docs/EntitlementsCreate.md +++ b/bindings/go/src/docs/EntitlementsCreate.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes **LimitNumDownloads** | **int32** | The maximum number of downloads allowed for the token. Please note that since downloads are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point. | [optional] [default to null] **LimitPackageQuery** | **string** | The package-based search query to apply to restrict downloads to. This uses the same syntax as the standard search used for repositories, and also supports boolean logic operators such as OR/AND/NOT and parentheses for grouping. This will still allow access to non-package files, such as metadata. | [optional] [default to null] **LimitPathQuery** | **string** | The path-based search query to apply to restrict downloads to. This supports boolean logic operators such as OR/AND/NOT and parentheses for grouping. The path evaluated does not include the domain name, the namespace, the entitlement code used, the package format, etc. and it always starts with a forward slash. | [optional] [default to null] -**Metadata** | [**interface{}**](interface{}.md) | None | [optional] [default to null] +**Metadata** | **interface{}** | None | [optional] [default to null] **Name** | **string** | None | [default to null] **ScheduledResetAt** | **string** | The time at which the scheduled reset period has elapsed and the token limits were automatically reset to zero. | [optional] [default to null] **ScheduledResetPeriod** | **string** | None | [optional] [default to null] diff --git a/bindings/go/src/docs/EntitlementsPartialUpdate.md b/bindings/go/src/docs/EntitlementsPartialUpdate.md index 7a362187..fd7367ab 100644 --- a/bindings/go/src/docs/EntitlementsPartialUpdate.md +++ b/bindings/go/src/docs/EntitlementsPartialUpdate.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes **LimitNumDownloads** | **int32** | The maximum number of downloads allowed for the token. Please note that since downloads are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point. | [optional] [default to null] **LimitPackageQuery** | **string** | The package-based search query to apply to restrict downloads to. This uses the same syntax as the standard search used for repositories, and also supports boolean logic operators such as OR/AND/NOT and parentheses for grouping. This will still allow access to non-package files, such as metadata. | [optional] [default to null] **LimitPathQuery** | **string** | The path-based search query to apply to restrict downloads to. This supports boolean logic operators such as OR/AND/NOT and parentheses for grouping. The path evaluated does not include the domain name, the namespace, the entitlement code used, the package format, etc. and it always starts with a forward slash. | [optional] [default to null] -**Metadata** | [**interface{}**](interface{}.md) | None | [optional] [default to null] +**Metadata** | **interface{}** | None | [optional] [default to null] **Name** | **string** | None | [optional] [default to null] **ScheduledResetAt** | **string** | The time at which the scheduled reset period has elapsed and the token limits were automatically reset to zero. | [optional] [default to null] **ScheduledResetPeriod** | **string** | None | [optional] [default to null] diff --git a/bindings/go/src/docs/EntitlementsRefresh.md b/bindings/go/src/docs/EntitlementsRefresh.md index 903b310b..c8b9d5b9 100644 --- a/bindings/go/src/docs/EntitlementsRefresh.md +++ b/bindings/go/src/docs/EntitlementsRefresh.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes **LimitNumDownloads** | **int32** | The maximum number of downloads allowed for the token. Please note that since downloads are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point. | [optional] [default to null] **LimitPackageQuery** | **string** | The package-based search query to apply to restrict downloads to. This uses the same syntax as the standard search used for repositories, and also supports boolean logic operators such as OR/AND/NOT and parentheses for grouping. This will still allow access to non-package files, such as metadata. | [optional] [default to null] **LimitPathQuery** | **string** | The path-based search query to apply to restrict downloads to. This supports boolean logic operators such as OR/AND/NOT and parentheses for grouping. The path evaluated does not include the domain name, the namespace, the entitlement code used, the package format, etc. and it always starts with a forward slash. | [optional] [default to null] -**Metadata** | [**interface{}**](interface{}.md) | None | [optional] [default to null] +**Metadata** | **interface{}** | None | [optional] [default to null] **ScheduledResetAt** | **string** | The time at which the scheduled reset period has elapsed and the token limits were automatically reset to zero. | [optional] [default to null] **ScheduledResetPeriod** | **string** | None | [optional] [default to null] **Token** | **string** | None | [optional] [default to null] diff --git a/bindings/go/src/docs/FilesApi.md b/bindings/go/src/docs/FilesApi.md index 32d68dc8..cfa1f0ca 100644 --- a/bindings/go/src/docs/FilesApi.md +++ b/bindings/go/src/docs/FilesApi.md @@ -12,25 +12,34 @@ Method | HTTP request | Description # **FilesAbort** -> FilesAbort($owner, $repo, $identifier, $data) - +> FilesAbort(ctx, owner, repo, identifier, optional) Abort a multipart file upload. Abort a multipart file upload. +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **owner** | **string**| | + **repo** | **string**| | + **identifier** | **string**| | + **optional** | ***FilesApiFilesAbortOpts** | optional parameters | nil if no parameters -### Parameters +### Optional Parameters +Optional parameters are passed through a pointer to a FilesApiFilesAbortOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **owner** | **string**| | - **repo** | **string**| | - **identifier** | **string**| | - **data** | [**FilesAbort**](FilesAbort.md)| | [optional] + + + + **data** | [**optional.Interface of FilesAbort**](FilesAbort.md)| | ### Return type -void (empty response body) + (empty response body) ### Authorization @@ -44,21 +53,30 @@ void (empty response body) [[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) # **FilesComplete** -> PackageFileUpload FilesComplete($owner, $repo, $identifier, $data) - +> PackageFileUpload FilesComplete(ctx, owner, repo, identifier, optional) Complete a multipart file upload. Complete a multipart file upload. +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **owner** | **string**| | + **repo** | **string**| | + **identifier** | **string**| | + **optional** | ***FilesApiFilesCompleteOpts** | optional parameters | nil if no parameters -### Parameters +### Optional Parameters +Optional parameters are passed through a pointer to a FilesApiFilesCompleteOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **owner** | **string**| | - **repo** | **string**| | - **identifier** | **string**| | - **data** | [**FilesComplete**](FilesComplete.md)| | [optional] + + + + **data** | [**optional.Interface of FilesComplete**](FilesComplete.md)| | ### Return type @@ -76,20 +94,28 @@ Name | Type | Description | Notes [[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) # **FilesCreate** -> PackageFileUpload FilesCreate($owner, $repo, $data) - +> PackageFileUpload FilesCreate(ctx, owner, repo, optional) Request URL(s) to upload new package file upload(s) to. Request URL(s) to upload new package file upload(s) to. +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **owner** | **string**| | + **repo** | **string**| | + **optional** | ***FilesApiFilesCreateOpts** | optional parameters | nil if no parameters -### Parameters +### Optional Parameters +Optional parameters are passed through a pointer to a FilesApiFilesCreateOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **owner** | **string**| | - **repo** | **string**| | - **data** | [**FilesCreate**](FilesCreate.md)| | [optional] + + + **data** | [**optional.Interface of FilesCreate**](FilesCreate.md)| | ### Return type @@ -107,20 +133,19 @@ Name | Type | Description | Notes [[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) # **FilesInfo** -> PackageFilePartsUpload FilesInfo($owner, $repo, $identifier) - +> PackageFilePartsUpload FilesInfo(ctx, owner, repo, identifier) Get upload information for a multipart file upload. Get upload information for a multipart file upload. - -### Parameters +### Required Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **owner** | **string**| | - **repo** | **string**| | - **identifier** | **string**| | + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **owner** | **string**| | + **repo** | **string**| | + **identifier** | **string**| | ### Return type @@ -138,24 +163,32 @@ Name | Type | Description | Notes [[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) # **FilesValidate** -> FilesValidate($owner, $repo, $data) - +> FilesValidate(ctx, owner, repo, optional) Validate parameters used for create. Validate parameters used for create. +### Required Parameters -### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **owner** | **string**| | + **repo** | **string**| | + **optional** | ***FilesApiFilesValidateOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a FilesApiFilesValidateOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **owner** | **string**| | - **repo** | **string**| | - **data** | [**FilesValidate**](FilesValidate.md)| | [optional] + + + **data** | [**optional.Interface of FilesValidate**](FilesValidate.md)| | ### Return type -void (empty response body) + (empty response body) ### Authorization diff --git a/bindings/go/src/docs/Format.md b/bindings/go/src/docs/Format.md index 13a5cd77..0a33440b 100644 --- a/bindings/go/src/docs/Format.md +++ b/bindings/go/src/docs/Format.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes **PremiumPlanId** | **string** | The minimum plan id required for this package format | [optional] [default to null] **PremiumPlanName** | **string** | The minimum plan name required for this package format | [optional] [default to null] **Slug** | **string** | Slug for the package format | [default to null] -**Supports** | [**interface{}**](interface{}.md) | A set of what the package format supports | [default to null] +**Supports** | **interface{}** | A set of what the package format supports | [default to null] [[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/bindings/go/src/docs/FormatsApi.md b/bindings/go/src/docs/FormatsApi.md index efdb2f66..957b4d00 100644 --- a/bindings/go/src/docs/FormatsApi.md +++ b/bindings/go/src/docs/FormatsApi.md @@ -9,14 +9,12 @@ Method | HTTP request | Description # **FormatsList** -> []Format FormatsList() - +> []Format FormatsList(ctx, ) Get a list of all supported package formats. Get a list of all supported package formats. - -### Parameters +### Required Parameters This endpoint does not need any parameter. ### Return type @@ -35,18 +33,17 @@ This endpoint does not need any parameter. [[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) # **FormatsRead** -> Format FormatsRead($slug) - +> Format FormatsRead(ctx, slug) Get a specific supported package format. Get a specific supported package format. - -### Parameters +### Required Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **slug** | **string**| | + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **slug** | **string**| | ### Return type diff --git a/bindings/go/src/docs/MavenPackageUpload.md b/bindings/go/src/docs/MavenPackageUpload.md index a3d79a59..51d2d072 100644 --- a/bindings/go/src/docs/MavenPackageUpload.md +++ b/bindings/go/src/docs/MavenPackageUpload.md @@ -13,8 +13,8 @@ Name | Type | Description | Notes **DependenciesChecksumMd5** | **string** | A checksum of all of the package's dependencies. | [optional] [default to null] **DependenciesUrl** | **string** | | [optional] [default to null] **Description** | **string** | A textual description of this package. | [optional] [default to null] -**Distro** | [**interface{}**](interface{}.md) | | [optional] [default to null] -**DistroVersion** | [**interface{}**](interface{}.md) | | [optional] [default to null] +**Distro** | **interface{}** | | [optional] [default to null] +**DistroVersion** | **interface{}** | | [optional] [default to null] **Downloads** | **int32** | | [optional] [default to null] **Epoch** | **int32** | The epoch of the package version (if any). | [optional] [default to null] **Extension** | **string** | | [optional] [default to null] @@ -62,7 +62,7 @@ Name | Type | Description | Notes **Summary** | **string** | A one-liner synopsis of this package. | [optional] [default to null] **SyncFinishedAt** | **string** | The datetime the package sync was finished at. | [optional] [default to null] **SyncProgress** | **int32** | Synchronisation progress (from 0-100) | [optional] [default to null] -**TagsImmutable** | [**interface{}**](interface{}.md) | All immutable tags on the package, grouped by tag type. Immutable tags cannot be (easily) deleted. | [optional] [default to null] +**TagsImmutable** | **interface{}** | All immutable tags on the package, grouped by tag type. Immutable tags cannot be (easily) deleted. | [optional] [default to null] **TypeDisplay** | **string** | | [optional] [default to null] **UploadedAt** | **string** | The date this package was uploaded. | [optional] [default to null] **Uploader** | **string** | | [optional] [default to null] diff --git a/bindings/go/src/docs/MetricsApi.md b/bindings/go/src/docs/MetricsApi.md index 6434daf9..9da2407d 100644 --- a/bindings/go/src/docs/MetricsApi.md +++ b/bindings/go/src/docs/MetricsApi.md @@ -10,23 +10,30 @@ Method | HTTP request | Description # **MetricsEntitlementsList** -> EntitlementUsageMetrics MetricsEntitlementsList($owner, $page, $pageSize, $finish, $start, $tokens) - +> EntitlementUsageMetrics MetricsEntitlementsList(ctx, owner, optional) View for listing entitlement token metrics, across an account. View for listing entitlement token metrics, across an account. +### Required Parameters -### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **owner** | **string**| | + **optional** | ***MetricsApiMetricsEntitlementsListOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a MetricsApiMetricsEntitlementsListOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **owner** | **string**| | - **page** | **int32**| A page number within the paginated result set. | [optional] - **pageSize** | **int32**| Number of results to return per page. | [optional] - **finish** | **string**| Include metrics upto and including this UTC date or UTC datetime. For example '2020-12-31' or '2021-12-13T00:00:00Z'. | [optional] - **start** | **string**| Include metrics from and including this UTC date or UTC datetime. For example '2020-12-31' or '2021-12-13T00:00:00Z'. | [optional] - **tokens** | **string**| A comma seperated list of tokens (slug perm) to include in the results. | [optional] + + **page** | **optional.Int32**| A page number within the paginated result set. | + **pageSize** | **optional.Int32**| Number of results to return per page. | + **finish** | **optional.String**| Include metrics upto and including this UTC date or UTC datetime. For example '2020-12-31' or '2021-12-13T00:00:00Z'. | + **start** | **optional.String**| Include metrics from and including this UTC date or UTC datetime. For example '2020-12-31' or '2021-12-13T00:00:00Z'. | + **tokens** | **optional.String**| A comma seperated list of tokens (slug perm) to include in the results. | ### Return type @@ -44,24 +51,32 @@ Name | Type | Description | Notes [[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) # **MetricsEntitlementsList0** -> EntitlementUsageMetrics MetricsEntitlementsList0($owner, $repo, $page, $pageSize, $finish, $start, $tokens) - +> EntitlementUsageMetrics MetricsEntitlementsList0(ctx, owner, repo, optional) View for listing entitlement token metrics, for a repository. View for listing entitlement token metrics, for a repository. +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **owner** | **string**| | + **repo** | **string**| | + **optional** | ***MetricsApiMetricsEntitlementsList0Opts** | optional parameters | nil if no parameters -### Parameters +### Optional Parameters +Optional parameters are passed through a pointer to a MetricsApiMetricsEntitlementsList0Opts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **owner** | **string**| | - **repo** | **string**| | - **page** | **int32**| A page number within the paginated result set. | [optional] - **pageSize** | **int32**| Number of results to return per page. | [optional] - **finish** | **string**| Include metrics upto and including this UTC date or UTC datetime. For example '2020-12-31' or '2021-12-13T00:00:00Z'. | [optional] - **start** | **string**| Include metrics from and including this UTC date or UTC datetime. For example '2020-12-31' or '2021-12-13T00:00:00Z'. | [optional] - **tokens** | **string**| A comma seperated list of tokens (slug perm) to include in the results. | [optional] + + + **page** | **optional.Int32**| A page number within the paginated result set. | + **pageSize** | **optional.Int32**| Number of results to return per page. | + **finish** | **optional.String**| Include metrics upto and including this UTC date or UTC datetime. For example '2020-12-31' or '2021-12-13T00:00:00Z'. | + **start** | **optional.String**| Include metrics from and including this UTC date or UTC datetime. For example '2020-12-31' or '2021-12-13T00:00:00Z'. | + **tokens** | **optional.String**| A comma seperated list of tokens (slug perm) to include in the results. | ### Return type @@ -79,24 +94,32 @@ Name | Type | Description | Notes [[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) # **MetricsPackagesList** -> PackageUsageMetrics MetricsPackagesList($owner, $repo, $page, $pageSize, $finish, $packages, $start) - +> PackageUsageMetrics MetricsPackagesList(ctx, owner, repo, optional) View for listing package usage metrics, for a repository. View for listing package usage metrics, for a repository. +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **owner** | **string**| | + **repo** | **string**| | + **optional** | ***MetricsApiMetricsPackagesListOpts** | optional parameters | nil if no parameters -### Parameters +### Optional Parameters +Optional parameters are passed through a pointer to a MetricsApiMetricsPackagesListOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **owner** | **string**| | - **repo** | **string**| | - **page** | **int32**| A page number within the paginated result set. | [optional] - **pageSize** | **int32**| Number of results to return per page. | [optional] - **finish** | **string**| Include metrics upto and including this UTC date or UTC datetime. For example '2020-12-31' or '2021-12-13T00:00:00Z'. | [optional] - **packages** | **string**| A comma seperated list of packages (slug perm) to include in the results. | [optional] - **start** | **string**| Include metrics from and including this UTC date or UTC datetime. For example '2020-12-31' or '2021-12-13T00:00:00Z'. | [optional] + + + **page** | **optional.Int32**| A page number within the paginated result set. | + **pageSize** | **optional.Int32**| Number of results to return per page. | + **finish** | **optional.String**| Include metrics upto and including this UTC date or UTC datetime. For example '2020-12-31' or '2021-12-13T00:00:00Z'. | + **packages** | **optional.String**| A comma seperated list of packages (slug perm) to include in the results. | + **start** | **optional.String**| Include metrics from and including this UTC date or UTC datetime. For example '2020-12-31' or '2021-12-13T00:00:00Z'. | ### Return type diff --git a/bindings/go/src/docs/ModelPackage.md b/bindings/go/src/docs/ModelPackage.md index c0356de4..74f306c9 100644 --- a/bindings/go/src/docs/ModelPackage.md +++ b/bindings/go/src/docs/ModelPackage.md @@ -12,8 +12,8 @@ Name | Type | Description | Notes **DependenciesChecksumMd5** | **string** | A checksum of all of the package's dependencies. | [optional] [default to null] **DependenciesUrl** | **string** | | [optional] [default to null] **Description** | **string** | A textual description of this package. | [optional] [default to null] -**Distro** | [**interface{}**](interface{}.md) | | [optional] [default to null] -**DistroVersion** | [**interface{}**](interface{}.md) | | [optional] [default to null] +**Distro** | **interface{}** | | [optional] [default to null] +**DistroVersion** | **interface{}** | | [optional] [default to null] **Downloads** | **int32** | | [optional] [default to null] **Epoch** | **int32** | The epoch of the package version (if any). | [optional] [default to null] **Extension** | **string** | | [optional] [default to null] @@ -59,8 +59,8 @@ Name | Type | Description | Notes **Summary** | **string** | A one-liner synopsis of this package. | [optional] [default to null] **SyncFinishedAt** | **string** | The datetime the package sync was finished at. | [optional] [default to null] **SyncProgress** | **int32** | Synchronisation progress (from 0-100) | [optional] [default to null] -**Tags** | [**interface{}**](interface{}.md) | All tags on the package, grouped by tag type. This includes immutable tags, but doesn't distinguish them from mutable. To see which tags are immutable specifically, see the tags_immutable field. | [optional] [default to null] -**TagsImmutable** | [**interface{}**](interface{}.md) | All immutable tags on the package, grouped by tag type. Immutable tags cannot be (easily) deleted. | [optional] [default to null] +**Tags** | **interface{}** | All tags on the package, grouped by tag type. This includes immutable tags, but doesn't distinguish them from mutable. To see which tags are immutable specifically, see the tags_immutable field. | [optional] [default to null] +**TagsImmutable** | **interface{}** | All immutable tags on the package, grouped by tag type. Immutable tags cannot be (easily) deleted. | [optional] [default to null] **TypeDisplay** | **string** | | [optional] [default to null] **UploadedAt** | **string** | The date this package was uploaded. | [optional] [default to null] **Uploader** | **string** | | [optional] [default to null] diff --git a/bindings/go/src/docs/NamespacesApi.md b/bindings/go/src/docs/NamespacesApi.md index f1db910b..84c66b4b 100644 --- a/bindings/go/src/docs/NamespacesApi.md +++ b/bindings/go/src/docs/NamespacesApi.md @@ -9,19 +9,25 @@ Method | HTTP request | Description # **NamespacesList** -> []Namespace NamespacesList($page, $pageSize) - +> []Namespace NamespacesList(ctx, optional) Get a list of all namespaces the user belongs to. Get a list of all namespaces the user belongs to. +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***NamespacesApiNamespacesListOpts** | optional parameters | nil if no parameters -### Parameters +### Optional Parameters +Optional parameters are passed through a pointer to a NamespacesApiNamespacesListOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **page** | **int32**| A page number within the paginated result set. | [optional] - **pageSize** | **int32**| Number of results to return per page. | [optional] + **page** | **optional.Int32**| A page number within the paginated result set. | + **pageSize** | **optional.Int32**| Number of results to return per page. | ### Return type @@ -39,18 +45,17 @@ Name | Type | Description | Notes [[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) # **NamespacesRead** -> Namespace NamespacesRead($slug) - +> Namespace NamespacesRead(ctx, slug) Views for working with namespaces. Views for working with namespaces. - -### Parameters +### Required Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **slug** | **string**| | + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **slug** | **string**| | ### Return type diff --git a/bindings/go/src/docs/OrgsApi.md b/bindings/go/src/docs/OrgsApi.md index 41fdaf56..8c56fc12 100644 --- a/bindings/go/src/docs/OrgsApi.md +++ b/bindings/go/src/docs/OrgsApi.md @@ -12,19 +12,25 @@ Method | HTTP request | Description # **OrgsList** -> []Organization OrgsList($page, $pageSize) - +> []Organization OrgsList(ctx, optional) Get a list of all the organizations you are associated with. Get a list of all the organizations you are associated with. +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***OrgsApiOrgsListOpts** | optional parameters | nil if no parameters -### Parameters +### Optional Parameters +Optional parameters are passed through a pointer to a OrgsApiOrgsListOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **page** | **int32**| A page number within the paginated result set. | [optional] - **pageSize** | **int32**| Number of results to return per page. | [optional] + **page** | **optional.Int32**| A page number within the paginated result set. | + **pageSize** | **optional.Int32**| Number of results to return per page. | ### Return type @@ -42,20 +48,27 @@ Name | Type | Description | Notes [[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) # **OrgsMembersList** -> []OrganizationMembership OrgsMembersList($org, $page, $pageSize) - +> []OrganizationMembership OrgsMembersList(ctx, org, optional) Get the details for all organization members. Get the details for all organization members. +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **org** | **string**| | + **optional** | ***OrgsApiOrgsMembersListOpts** | optional parameters | nil if no parameters -### Parameters +### Optional Parameters +Optional parameters are passed through a pointer to a OrgsApiOrgsMembersListOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **org** | **string**| | - **page** | **int32**| A page number within the paginated result set. | [optional] - **pageSize** | **int32**| Number of results to return per page. | [optional] + + **page** | **optional.Int32**| A page number within the paginated result set. | + **pageSize** | **optional.Int32**| Number of results to return per page. | ### Return type @@ -73,19 +86,18 @@ Name | Type | Description | Notes [[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) # **OrgsMembersRead** -> OrganizationMembership OrgsMembersRead($org, $member) - +> OrganizationMembership OrgsMembersRead(ctx, org, member) Get the details for a specific organization member. Get the details for a specific organization member. - -### Parameters +### Required Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **org** | **string**| | - **member** | **string**| | + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **org** | **string**| | + **member** | **string**| | ### Return type @@ -103,19 +115,18 @@ Name | Type | Description | Notes [[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) # **OrgsMembersRemove** -> OrganizationMembership OrgsMembersRemove($org, $member) - +> OrganizationMembership OrgsMembersRemove(ctx, org, member) Removes a member from the organization. Removes a member from the organization. - -### Parameters +### Required Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **org** | **string**| | - **member** | **string**| | + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **org** | **string**| | + **member** | **string**| | ### Return type @@ -133,18 +144,17 @@ Name | Type | Description | Notes [[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) # **OrgsRead** -> Organization OrgsRead($org) - +> Organization OrgsRead(ctx, org) Get the details for the specific organization. Get the details for the specific organization. - -### Parameters +### Required Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **org** | **string**| | + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **org** | **string**| | ### Return type diff --git a/bindings/go/src/docs/PackageCopy.md b/bindings/go/src/docs/PackageCopy.md index 5ec56c61..f85f25e0 100644 --- a/bindings/go/src/docs/PackageCopy.md +++ b/bindings/go/src/docs/PackageCopy.md @@ -12,8 +12,8 @@ Name | Type | Description | Notes **DependenciesChecksumMd5** | **string** | A checksum of all of the package's dependencies. | [optional] [default to null] **DependenciesUrl** | **string** | | [optional] [default to null] **Description** | **string** | A textual description of this package. | [optional] [default to null] -**Distro** | [**interface{}**](interface{}.md) | | [optional] [default to null] -**DistroVersion** | [**interface{}**](interface{}.md) | | [optional] [default to null] +**Distro** | **interface{}** | | [optional] [default to null] +**DistroVersion** | **interface{}** | | [optional] [default to null] **Downloads** | **int32** | | [optional] [default to null] **Epoch** | **int32** | The epoch of the package version (if any). | [optional] [default to null] **Extension** | **string** | | [optional] [default to null] @@ -59,8 +59,8 @@ Name | Type | Description | Notes **Summary** | **string** | A one-liner synopsis of this package. | [optional] [default to null] **SyncFinishedAt** | **string** | The datetime the package sync was finished at. | [optional] [default to null] **SyncProgress** | **int32** | Synchronisation progress (from 0-100) | [optional] [default to null] -**Tags** | [**interface{}**](interface{}.md) | All tags on the package, grouped by tag type. This includes immutable tags, but doesn't distinguish them from mutable. To see which tags are immutable specifically, see the tags_immutable field. | [optional] [default to null] -**TagsImmutable** | [**interface{}**](interface{}.md) | All immutable tags on the package, grouped by tag type. Immutable tags cannot be (easily) deleted. | [optional] [default to null] +**Tags** | **interface{}** | All tags on the package, grouped by tag type. This includes immutable tags, but doesn't distinguish them from mutable. To see which tags are immutable specifically, see the tags_immutable field. | [optional] [default to null] +**TagsImmutable** | **interface{}** | All immutable tags on the package, grouped by tag type. Immutable tags cannot be (easily) deleted. | [optional] [default to null] **TypeDisplay** | **string** | | [optional] [default to null] **UploadedAt** | **string** | The date this package was uploaded. | [optional] [default to null] **Uploader** | **string** | | [optional] [default to null] diff --git a/bindings/go/src/docs/PackageFileUpload.md b/bindings/go/src/docs/PackageFileUpload.md index 51b032a3..4633bc36 100644 --- a/bindings/go/src/docs/PackageFileUpload.md +++ b/bindings/go/src/docs/PackageFileUpload.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Identifier** | **string** | The identifier for the file to use when creating packages | [optional] [default to null] -**UploadFields** | [**interface{}**](interface{}.md) | The dictionary of fields that must be sent with POST uploads | [optional] [default to null] -**UploadHeaders** | [**interface{}**](interface{}.md) | The dictionary of headers that must be sent with uploads | [optional] [default to null] +**UploadFields** | **interface{}** | The dictionary of fields that must be sent with POST uploads | [optional] [default to null] +**UploadHeaders** | **interface{}** | The dictionary of headers that must be sent with uploads | [optional] [default to null] **UploadQuerystring** | **string** | The querystring to use for the next-step POST or PUT upload | [optional] [default to null] **UploadUrl** | **string** | The URL to use for the next-step POST or PUT upload | [optional] [default to null] diff --git a/bindings/go/src/docs/PackageMove.md b/bindings/go/src/docs/PackageMove.md index 88558722..4e8d9260 100644 --- a/bindings/go/src/docs/PackageMove.md +++ b/bindings/go/src/docs/PackageMove.md @@ -12,8 +12,8 @@ Name | Type | Description | Notes **DependenciesChecksumMd5** | **string** | A checksum of all of the package's dependencies. | [optional] [default to null] **DependenciesUrl** | **string** | | [optional] [default to null] **Description** | **string** | A textual description of this package. | [optional] [default to null] -**Distro** | [**interface{}**](interface{}.md) | | [optional] [default to null] -**DistroVersion** | [**interface{}**](interface{}.md) | | [optional] [default to null] +**Distro** | **interface{}** | | [optional] [default to null] +**DistroVersion** | **interface{}** | | [optional] [default to null] **Downloads** | **int32** | | [optional] [default to null] **Epoch** | **int32** | The epoch of the package version (if any). | [optional] [default to null] **Extension** | **string** | | [optional] [default to null] @@ -59,8 +59,8 @@ Name | Type | Description | Notes **Summary** | **string** | A one-liner synopsis of this package. | [optional] [default to null] **SyncFinishedAt** | **string** | The datetime the package sync was finished at. | [optional] [default to null] **SyncProgress** | **int32** | Synchronisation progress (from 0-100) | [optional] [default to null] -**Tags** | [**interface{}**](interface{}.md) | All tags on the package, grouped by tag type. This includes immutable tags, but doesn't distinguish them from mutable. To see which tags are immutable specifically, see the tags_immutable field. | [optional] [default to null] -**TagsImmutable** | [**interface{}**](interface{}.md) | All immutable tags on the package, grouped by tag type. Immutable tags cannot be (easily) deleted. | [optional] [default to null] +**Tags** | **interface{}** | All tags on the package, grouped by tag type. This includes immutable tags, but doesn't distinguish them from mutable. To see which tags are immutable specifically, see the tags_immutable field. | [optional] [default to null] +**TagsImmutable** | **interface{}** | All immutable tags on the package, grouped by tag type. Immutable tags cannot be (easily) deleted. | [optional] [default to null] **TypeDisplay** | **string** | | [optional] [default to null] **UploadedAt** | **string** | The date this package was uploaded. | [optional] [default to null] **Uploader** | **string** | | [optional] [default to null] diff --git a/bindings/go/src/docs/PackageUsageMetrics.md b/bindings/go/src/docs/PackageUsageMetrics.md index 78b75851..0257a641 100644 --- a/bindings/go/src/docs/PackageUsageMetrics.md +++ b/bindings/go/src/docs/PackageUsageMetrics.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Packages** | [**interface{}**](interface{}.md) | | [default to null] +**Packages** | **interface{}** | | [default to null] [[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/bindings/go/src/docs/PackagesApi.md b/bindings/go/src/docs/PackagesApi.md index 5d67bde9..3de7a627 100644 --- a/bindings/go/src/docs/PackagesApi.md +++ b/bindings/go/src/docs/PackagesApi.md @@ -63,21 +63,30 @@ Method | HTTP request | Description # **PackagesCopy** -> PackageCopy PackagesCopy($owner, $repo, $identifier, $data) - +> PackageCopy PackagesCopy(ctx, owner, repo, identifier, optional) Copy a package to another repository. Copy a package to another repository. +### Required Parameters -### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **owner** | **string**| | + **repo** | **string**| | + **identifier** | **string**| | + **optional** | ***PackagesApiPackagesCopyOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a PackagesApiPackagesCopyOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **owner** | **string**| | - **repo** | **string**| | - **identifier** | **string**| | - **data** | [**PackagesCopy**](PackagesCopy.md)| | [optional] + + + + **data** | [**optional.Interface of PackagesCopy**](PackagesCopy.md)| | ### Return type @@ -95,24 +104,23 @@ Name | Type | Description | Notes [[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) # **PackagesDelete** -> PackagesDelete($owner, $repo, $identifier) - +> PackagesDelete(ctx, owner, repo, identifier) Delete a specific package in a repository. Delete a specific package in a repository. - -### Parameters +### Required Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **owner** | **string**| | - **repo** | **string**| | - **identifier** | **string**| | + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **owner** | **string**| | + **repo** | **string**| | + **identifier** | **string**| | ### Return type -void (empty response body) + (empty response body) ### Authorization @@ -126,20 +134,19 @@ void (empty response body) [[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) # **PackagesDependencies** -> PackageDependencies PackagesDependencies($owner, $repo, $identifier) - +> PackageDependencies PackagesDependencies(ctx, owner, repo, identifier) Get the direct (non-transitive) dependencies list for a package. Get the direct (non-transitive) dependencies list for a package. - -### Parameters +### Required Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **owner** | **string**| | - **repo** | **string**| | - **identifier** | **string**| | + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **owner** | **string**| | + **repo** | **string**| | + **identifier** | **string**| | ### Return type @@ -157,23 +164,31 @@ Name | Type | Description | Notes [[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) # **PackagesList** -> []ModelPackage PackagesList($owner, $repo, $page, $pageSize, $query, $sort) - +> []ModelPackage PackagesList(ctx, owner, repo, optional) Get a list of all packages associated with repository. Get a list of all packages associated with repository. +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **owner** | **string**| | + **repo** | **string**| | + **optional** | ***PackagesApiPackagesListOpts** | optional parameters | nil if no parameters -### Parameters +### Optional Parameters +Optional parameters are passed through a pointer to a PackagesApiPackagesListOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **owner** | **string**| | - **repo** | **string**| | - **page** | **int32**| A page number within the paginated result set. | [optional] - **pageSize** | **int32**| Number of results to return per page. | [optional] - **query** | **string**| A search term for querying names, filenames, versions, distributions, architectures, formats or statuses of packages. | [optional] - **sort** | **string**| A field for sorting objects in ascending or descending order. | [optional] + + + **page** | **optional.Int32**| A page number within the paginated result set. | + **pageSize** | **optional.Int32**| Number of results to return per page. | + **query** | **optional.String**| A search term for querying names, filenames, versions, distributions, architectures, formats or statuses of packages. | + **sort** | **optional.String**| A field for sorting objects in ascending or descending order. | ### Return type @@ -191,21 +206,30 @@ Name | Type | Description | Notes [[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) # **PackagesMove** -> PackageMove PackagesMove($owner, $repo, $identifier, $data) - +> PackageMove PackagesMove(ctx, owner, repo, identifier, optional) Move a package to another repository. Move a package to another repository. +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **owner** | **string**| | + **repo** | **string**| | + **identifier** | **string**| | + **optional** | ***PackagesApiPackagesMoveOpts** | optional parameters | nil if no parameters -### Parameters +### Optional Parameters +Optional parameters are passed through a pointer to a PackagesApiPackagesMoveOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **owner** | **string**| | - **repo** | **string**| | - **identifier** | **string**| | - **data** | [**PackagesMove**](PackagesMove.md)| | [optional] + + + + **data** | [**optional.Interface of PackagesMove**](PackagesMove.md)| | ### Return type @@ -223,20 +247,19 @@ Name | Type | Description | Notes [[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) # **PackagesRead** -> ModelPackage PackagesRead($owner, $repo, $identifier) - +> ModelPackage PackagesRead(ctx, owner, repo, identifier) Get a specific package in a repository. Get a specific package in a repository. - -### Parameters +### Required Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **owner** | **string**| | - **repo** | **string**| | - **identifier** | **string**| | + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **owner** | **string**| | + **repo** | **string**| | + **identifier** | **string**| | ### Return type @@ -254,20 +277,19 @@ Name | Type | Description | Notes [[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) # **PackagesResync** -> ModelPackage PackagesResync($owner, $repo, $identifier) - +> ModelPackage PackagesResync(ctx, owner, repo, identifier) Schedule a package for resynchronisation. Schedule a package for resynchronisation. - -### Parameters +### Required Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **owner** | **string**| | - **repo** | **string**| | - **identifier** | **string**| | + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **owner** | **string**| | + **repo** | **string**| | + **identifier** | **string**| | ### Return type @@ -285,20 +307,19 @@ Name | Type | Description | Notes [[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) # **PackagesScan** -> ModelPackage PackagesScan($owner, $repo, $identifier) - +> ModelPackage PackagesScan(ctx, owner, repo, identifier) Schedule a package for scanning. Schedule a package for scanning. - -### Parameters +### Required Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **owner** | **string**| | - **repo** | **string**| | - **identifier** | **string**| | + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **owner** | **string**| | + **repo** | **string**| | + **identifier** | **string**| | ### Return type @@ -316,20 +337,19 @@ Name | Type | Description | Notes [[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) # **PackagesStatus** -> PackageStatus PackagesStatus($owner, $repo, $identifier) - +> PackageStatus PackagesStatus(ctx, owner, repo, identifier) Get the synchronisation status for a package. Get the synchronisation status for a package. - -### Parameters +### Required Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **owner** | **string**| | - **repo** | **string**| | - **identifier** | **string**| | + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **owner** | **string**| | + **repo** | **string**| | + **identifier** | **string**| | ### Return type @@ -347,21 +367,30 @@ Name | Type | Description | Notes [[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) # **PackagesTag** -> ModelPackage PackagesTag($owner, $repo, $identifier, $data) - +> ModelPackage PackagesTag(ctx, owner, repo, identifier, optional) Add/Replace/Remove tags for a package. Add/Replace/Remove tags for a package. +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **owner** | **string**| | + **repo** | **string**| | + **identifier** | **string**| | + **optional** | ***PackagesApiPackagesTagOpts** | optional parameters | nil if no parameters -### Parameters +### Optional Parameters +Optional parameters are passed through a pointer to a PackagesApiPackagesTagOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **owner** | **string**| | - **repo** | **string**| | - **identifier** | **string**| | - **data** | [**PackagesTag**](PackagesTag.md)| | [optional] + + + + **data** | [**optional.Interface of PackagesTag**](PackagesTag.md)| | ### Return type @@ -379,20 +408,28 @@ Name | Type | Description | Notes [[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) # **PackagesUploadAlpine** -> AlpinePackageUpload PackagesUploadAlpine($owner, $repo, $data) - +> AlpinePackageUpload PackagesUploadAlpine(ctx, owner, repo, optional) Create a new Alpine package Create a new Alpine package +### Required Parameters -### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **owner** | **string**| | + **repo** | **string**| | + **optional** | ***PackagesApiPackagesUploadAlpineOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a PackagesApiPackagesUploadAlpineOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **owner** | **string**| | - **repo** | **string**| | - **data** | [**PackagesUploadAlpine**](PackagesUploadAlpine.md)| | [optional] + + + **data** | [**optional.Interface of PackagesUploadAlpine**](PackagesUploadAlpine.md)| | ### Return type @@ -410,20 +447,28 @@ Name | Type | Description | Notes [[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) # **PackagesUploadCargo** -> AlpinePackageUpload PackagesUploadCargo($owner, $repo, $data) - +> AlpinePackageUpload PackagesUploadCargo(ctx, owner, repo, optional) Create a new Cargo package Create a new Cargo package +### Required Parameters -### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **owner** | **string**| | + **repo** | **string**| | + **optional** | ***PackagesApiPackagesUploadCargoOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a PackagesApiPackagesUploadCargoOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **owner** | **string**| | - **repo** | **string**| | - **data** | [**PackagesUploadCargo**](PackagesUploadCargo.md)| | [optional] + + + **data** | [**optional.Interface of PackagesUploadCargo**](PackagesUploadCargo.md)| | ### Return type @@ -441,20 +486,28 @@ Name | Type | Description | Notes [[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) # **PackagesUploadCocoapods** -> AlpinePackageUpload PackagesUploadCocoapods($owner, $repo, $data) - +> AlpinePackageUpload PackagesUploadCocoapods(ctx, owner, repo, optional) Create a new CocoaPods package Create a new CocoaPods package +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **owner** | **string**| | + **repo** | **string**| | + **optional** | ***PackagesApiPackagesUploadCocoapodsOpts** | optional parameters | nil if no parameters -### Parameters +### Optional Parameters +Optional parameters are passed through a pointer to a PackagesApiPackagesUploadCocoapodsOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **owner** | **string**| | - **repo** | **string**| | - **data** | [**PackagesUploadCocoapods**](PackagesUploadCocoapods.md)| | [optional] + + + **data** | [**optional.Interface of PackagesUploadCocoapods**](PackagesUploadCocoapods.md)| | ### Return type @@ -472,20 +525,28 @@ Name | Type | Description | Notes [[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) # **PackagesUploadComposer** -> AlpinePackageUpload PackagesUploadComposer($owner, $repo, $data) - +> AlpinePackageUpload PackagesUploadComposer(ctx, owner, repo, optional) Create a new Composer package Create a new Composer package +### Required Parameters -### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **owner** | **string**| | + **repo** | **string**| | + **optional** | ***PackagesApiPackagesUploadComposerOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a PackagesApiPackagesUploadComposerOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **owner** | **string**| | - **repo** | **string**| | - **data** | [**PackagesUploadComposer**](PackagesUploadComposer.md)| | [optional] + + + **data** | [**optional.Interface of PackagesUploadComposer**](PackagesUploadComposer.md)| | ### Return type @@ -503,20 +564,28 @@ Name | Type | Description | Notes [[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) # **PackagesUploadConan** -> ConanPackageUpload PackagesUploadConan($owner, $repo, $data) - +> ConanPackageUpload PackagesUploadConan(ctx, owner, repo, optional) Create a new Conan package Create a new Conan package +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **owner** | **string**| | + **repo** | **string**| | + **optional** | ***PackagesApiPackagesUploadConanOpts** | optional parameters | nil if no parameters -### Parameters +### Optional Parameters +Optional parameters are passed through a pointer to a PackagesApiPackagesUploadConanOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **owner** | **string**| | - **repo** | **string**| | - **data** | [**PackagesUploadConan**](PackagesUploadConan.md)| | [optional] + + + **data** | [**optional.Interface of PackagesUploadConan**](PackagesUploadConan.md)| | ### Return type @@ -534,20 +603,28 @@ Name | Type | Description | Notes [[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) # **PackagesUploadConda** -> AlpinePackageUpload PackagesUploadConda($owner, $repo, $data) - +> AlpinePackageUpload PackagesUploadConda(ctx, owner, repo, optional) Create a new Conda package Create a new Conda package +### Required Parameters -### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **owner** | **string**| | + **repo** | **string**| | + **optional** | ***PackagesApiPackagesUploadCondaOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a PackagesApiPackagesUploadCondaOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **owner** | **string**| | - **repo** | **string**| | - **data** | [**PackagesUploadConda**](PackagesUploadConda.md)| | [optional] + + + **data** | [**optional.Interface of PackagesUploadConda**](PackagesUploadConda.md)| | ### Return type @@ -565,20 +642,28 @@ Name | Type | Description | Notes [[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) # **PackagesUploadCran** -> AlpinePackageUpload PackagesUploadCran($owner, $repo, $data) - +> AlpinePackageUpload PackagesUploadCran(ctx, owner, repo, optional) Create a new CRAN package Create a new CRAN package +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **owner** | **string**| | + **repo** | **string**| | + **optional** | ***PackagesApiPackagesUploadCranOpts** | optional parameters | nil if no parameters -### Parameters +### Optional Parameters +Optional parameters are passed through a pointer to a PackagesApiPackagesUploadCranOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **owner** | **string**| | - **repo** | **string**| | - **data** | [**PackagesUploadCran**](PackagesUploadCran.md)| | [optional] + + + **data** | [**optional.Interface of PackagesUploadCran**](PackagesUploadCran.md)| | ### Return type @@ -596,20 +681,28 @@ Name | Type | Description | Notes [[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) # **PackagesUploadDart** -> AlpinePackageUpload PackagesUploadDart($owner, $repo, $data) - +> AlpinePackageUpload PackagesUploadDart(ctx, owner, repo, optional) Create a new Dart package Create a new Dart package +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **owner** | **string**| | + **repo** | **string**| | + **optional** | ***PackagesApiPackagesUploadDartOpts** | optional parameters | nil if no parameters -### Parameters +### Optional Parameters +Optional parameters are passed through a pointer to a PackagesApiPackagesUploadDartOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **owner** | **string**| | - **repo** | **string**| | - **data** | [**PackagesUploadDart**](PackagesUploadDart.md)| | [optional] + + + **data** | [**optional.Interface of PackagesUploadDart**](PackagesUploadDart.md)| | ### Return type @@ -627,20 +720,28 @@ Name | Type | Description | Notes [[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) # **PackagesUploadDeb** -> AlpinePackageUpload PackagesUploadDeb($owner, $repo, $data) - +> AlpinePackageUpload PackagesUploadDeb(ctx, owner, repo, optional) Create a new Debian package Create a new Debian package +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **owner** | **string**| | + **repo** | **string**| | + **optional** | ***PackagesApiPackagesUploadDebOpts** | optional parameters | nil if no parameters -### Parameters +### Optional Parameters +Optional parameters are passed through a pointer to a PackagesApiPackagesUploadDebOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **owner** | **string**| | - **repo** | **string**| | - **data** | [**PackagesUploadDeb**](PackagesUploadDeb.md)| | [optional] + + + **data** | [**optional.Interface of PackagesUploadDeb**](PackagesUploadDeb.md)| | ### Return type @@ -658,20 +759,28 @@ Name | Type | Description | Notes [[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) # **PackagesUploadDocker** -> AlpinePackageUpload PackagesUploadDocker($owner, $repo, $data) - +> AlpinePackageUpload PackagesUploadDocker(ctx, owner, repo, optional) Create a new Docker package Create a new Docker package +### Required Parameters -### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **owner** | **string**| | + **repo** | **string**| | + **optional** | ***PackagesApiPackagesUploadDockerOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a PackagesApiPackagesUploadDockerOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **owner** | **string**| | - **repo** | **string**| | - **data** | [**PackagesUploadDocker**](PackagesUploadDocker.md)| | [optional] + + + **data** | [**optional.Interface of PackagesUploadDocker**](PackagesUploadDocker.md)| | ### Return type @@ -689,20 +798,28 @@ Name | Type | Description | Notes [[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) # **PackagesUploadGo** -> AlpinePackageUpload PackagesUploadGo($owner, $repo, $data) - +> AlpinePackageUpload PackagesUploadGo(ctx, owner, repo, optional) Create a new Go package Create a new Go package +### Required Parameters -### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **owner** | **string**| | + **repo** | **string**| | + **optional** | ***PackagesApiPackagesUploadGoOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a PackagesApiPackagesUploadGoOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **owner** | **string**| | - **repo** | **string**| | - **data** | [**PackagesUploadGo**](PackagesUploadGo.md)| | [optional] + + + **data** | [**optional.Interface of PackagesUploadGo**](PackagesUploadGo.md)| | ### Return type @@ -720,20 +837,28 @@ Name | Type | Description | Notes [[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) # **PackagesUploadHelm** -> AlpinePackageUpload PackagesUploadHelm($owner, $repo, $data) - +> AlpinePackageUpload PackagesUploadHelm(ctx, owner, repo, optional) Create a new Helm package Create a new Helm package +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **owner** | **string**| | + **repo** | **string**| | + **optional** | ***PackagesApiPackagesUploadHelmOpts** | optional parameters | nil if no parameters -### Parameters +### Optional Parameters +Optional parameters are passed through a pointer to a PackagesApiPackagesUploadHelmOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **owner** | **string**| | - **repo** | **string**| | - **data** | [**PackagesUploadHelm**](PackagesUploadHelm.md)| | [optional] + + + **data** | [**optional.Interface of PackagesUploadHelm**](PackagesUploadHelm.md)| | ### Return type @@ -751,20 +876,28 @@ Name | Type | Description | Notes [[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) # **PackagesUploadLuarocks** -> AlpinePackageUpload PackagesUploadLuarocks($owner, $repo, $data) - +> AlpinePackageUpload PackagesUploadLuarocks(ctx, owner, repo, optional) Create a new LuaRocks package Create a new LuaRocks package +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **owner** | **string**| | + **repo** | **string**| | + **optional** | ***PackagesApiPackagesUploadLuarocksOpts** | optional parameters | nil if no parameters -### Parameters +### Optional Parameters +Optional parameters are passed through a pointer to a PackagesApiPackagesUploadLuarocksOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **owner** | **string**| | - **repo** | **string**| | - **data** | [**PackagesUploadLuarocks**](PackagesUploadLuarocks.md)| | [optional] + + + **data** | [**optional.Interface of PackagesUploadLuarocks**](PackagesUploadLuarocks.md)| | ### Return type @@ -782,20 +915,28 @@ Name | Type | Description | Notes [[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) # **PackagesUploadMaven** -> MavenPackageUpload PackagesUploadMaven($owner, $repo, $data) - +> MavenPackageUpload PackagesUploadMaven(ctx, owner, repo, optional) Create a new Maven package Create a new Maven package +### Required Parameters -### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **owner** | **string**| | + **repo** | **string**| | + **optional** | ***PackagesApiPackagesUploadMavenOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a PackagesApiPackagesUploadMavenOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **owner** | **string**| | - **repo** | **string**| | - **data** | [**PackagesUploadMaven**](PackagesUploadMaven.md)| | [optional] + + + **data** | [**optional.Interface of PackagesUploadMaven**](PackagesUploadMaven.md)| | ### Return type @@ -813,20 +954,28 @@ Name | Type | Description | Notes [[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) # **PackagesUploadNpm** -> AlpinePackageUpload PackagesUploadNpm($owner, $repo, $data) - +> AlpinePackageUpload PackagesUploadNpm(ctx, owner, repo, optional) Create a new npm package Create a new npm package +### Required Parameters -### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **owner** | **string**| | + **repo** | **string**| | + **optional** | ***PackagesApiPackagesUploadNpmOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a PackagesApiPackagesUploadNpmOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **owner** | **string**| | - **repo** | **string**| | - **data** | [**PackagesUploadNpm**](PackagesUploadNpm.md)| | [optional] + + + **data** | [**optional.Interface of PackagesUploadNpm**](PackagesUploadNpm.md)| | ### Return type @@ -844,20 +993,28 @@ Name | Type | Description | Notes [[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) # **PackagesUploadNuget** -> AlpinePackageUpload PackagesUploadNuget($owner, $repo, $data) - +> AlpinePackageUpload PackagesUploadNuget(ctx, owner, repo, optional) Create a new NuGet package Create a new NuGet package +### Required Parameters -### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **owner** | **string**| | + **repo** | **string**| | + **optional** | ***PackagesApiPackagesUploadNugetOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a PackagesApiPackagesUploadNugetOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **owner** | **string**| | - **repo** | **string**| | - **data** | [**PackagesUploadNuget**](PackagesUploadNuget.md)| | [optional] + + + **data** | [**optional.Interface of PackagesUploadNuget**](PackagesUploadNuget.md)| | ### Return type @@ -875,20 +1032,28 @@ Name | Type | Description | Notes [[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) # **PackagesUploadP2** -> AlpinePackageUpload PackagesUploadP2($owner, $repo, $data) - +> AlpinePackageUpload PackagesUploadP2(ctx, owner, repo, optional) Create a new P2 package Create a new P2 package +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **owner** | **string**| | + **repo** | **string**| | + **optional** | ***PackagesApiPackagesUploadP2Opts** | optional parameters | nil if no parameters -### Parameters +### Optional Parameters +Optional parameters are passed through a pointer to a PackagesApiPackagesUploadP2Opts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **owner** | **string**| | - **repo** | **string**| | - **data** | [**PackagesUploadP2**](PackagesUploadP2.md)| | [optional] + + + **data** | [**optional.Interface of PackagesUploadP2**](PackagesUploadP2.md)| | ### Return type @@ -906,20 +1071,28 @@ Name | Type | Description | Notes [[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) # **PackagesUploadPython** -> AlpinePackageUpload PackagesUploadPython($owner, $repo, $data) - +> AlpinePackageUpload PackagesUploadPython(ctx, owner, repo, optional) Create a new Python package Create a new Python package +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **owner** | **string**| | + **repo** | **string**| | + **optional** | ***PackagesApiPackagesUploadPythonOpts** | optional parameters | nil if no parameters -### Parameters +### Optional Parameters +Optional parameters are passed through a pointer to a PackagesApiPackagesUploadPythonOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **owner** | **string**| | - **repo** | **string**| | - **data** | [**PackagesUploadPython**](PackagesUploadPython.md)| | [optional] + + + **data** | [**optional.Interface of PackagesUploadPython**](PackagesUploadPython.md)| | ### Return type @@ -937,20 +1110,28 @@ Name | Type | Description | Notes [[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) # **PackagesUploadRaw** -> RawPackageUpload PackagesUploadRaw($owner, $repo, $data) - +> RawPackageUpload PackagesUploadRaw(ctx, owner, repo, optional) Create a new Raw package Create a new Raw package +### Required Parameters -### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **owner** | **string**| | + **repo** | **string**| | + **optional** | ***PackagesApiPackagesUploadRawOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a PackagesApiPackagesUploadRawOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **owner** | **string**| | - **repo** | **string**| | - **data** | [**PackagesUploadRaw**](PackagesUploadRaw.md)| | [optional] + + + **data** | [**optional.Interface of PackagesUploadRaw**](PackagesUploadRaw.md)| | ### Return type @@ -968,20 +1149,28 @@ Name | Type | Description | Notes [[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) # **PackagesUploadRpm** -> AlpinePackageUpload PackagesUploadRpm($owner, $repo, $data) - +> AlpinePackageUpload PackagesUploadRpm(ctx, owner, repo, optional) Create a new RedHat package Create a new RedHat package +### Required Parameters -### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **owner** | **string**| | + **repo** | **string**| | + **optional** | ***PackagesApiPackagesUploadRpmOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a PackagesApiPackagesUploadRpmOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **owner** | **string**| | - **repo** | **string**| | - **data** | [**PackagesUploadRpm**](PackagesUploadRpm.md)| | [optional] + + + **data** | [**optional.Interface of PackagesUploadRpm**](PackagesUploadRpm.md)| | ### Return type @@ -999,20 +1188,28 @@ Name | Type | Description | Notes [[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) # **PackagesUploadRuby** -> AlpinePackageUpload PackagesUploadRuby($owner, $repo, $data) - +> AlpinePackageUpload PackagesUploadRuby(ctx, owner, repo, optional) Create a new Ruby package Create a new Ruby package +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **owner** | **string**| | + **repo** | **string**| | + **optional** | ***PackagesApiPackagesUploadRubyOpts** | optional parameters | nil if no parameters -### Parameters +### Optional Parameters +Optional parameters are passed through a pointer to a PackagesApiPackagesUploadRubyOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **owner** | **string**| | - **repo** | **string**| | - **data** | [**PackagesUploadRuby**](PackagesUploadRuby.md)| | [optional] + + + **data** | [**optional.Interface of PackagesUploadRuby**](PackagesUploadRuby.md)| | ### Return type @@ -1030,20 +1227,28 @@ Name | Type | Description | Notes [[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) # **PackagesUploadTerraform** -> AlpinePackageUpload PackagesUploadTerraform($owner, $repo, $data) - +> AlpinePackageUpload PackagesUploadTerraform(ctx, owner, repo, optional) Create a new Terraform package Create a new Terraform package +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **owner** | **string**| | + **repo** | **string**| | + **optional** | ***PackagesApiPackagesUploadTerraformOpts** | optional parameters | nil if no parameters -### Parameters +### Optional Parameters +Optional parameters are passed through a pointer to a PackagesApiPackagesUploadTerraformOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **owner** | **string**| | - **repo** | **string**| | - **data** | [**PackagesUploadTerraform**](PackagesUploadTerraform.md)| | [optional] + + + **data** | [**optional.Interface of PackagesUploadTerraform**](PackagesUploadTerraform.md)| | ### Return type @@ -1061,20 +1266,28 @@ Name | Type | Description | Notes [[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) # **PackagesUploadVagrant** -> VagrantPackageUpload PackagesUploadVagrant($owner, $repo, $data) - +> VagrantPackageUpload PackagesUploadVagrant(ctx, owner, repo, optional) Create a new Vagrant package Create a new Vagrant package +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **owner** | **string**| | + **repo** | **string**| | + **optional** | ***PackagesApiPackagesUploadVagrantOpts** | optional parameters | nil if no parameters -### Parameters +### Optional Parameters +Optional parameters are passed through a pointer to a PackagesApiPackagesUploadVagrantOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **owner** | **string**| | - **repo** | **string**| | - **data** | [**PackagesUploadVagrant**](PackagesUploadVagrant.md)| | [optional] + + + **data** | [**optional.Interface of PackagesUploadVagrant**](PackagesUploadVagrant.md)| | ### Return type @@ -1092,24 +1305,32 @@ Name | Type | Description | Notes [[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) # **PackagesValidateUploadAlpine** -> PackagesValidateUploadAlpine($owner, $repo, $data) - +> PackagesValidateUploadAlpine(ctx, owner, repo, optional) Validate parameters for create Alpine package Validate parameters for create Alpine package +### Required Parameters -### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **owner** | **string**| | + **repo** | **string**| | + **optional** | ***PackagesApiPackagesValidateUploadAlpineOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a PackagesApiPackagesValidateUploadAlpineOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **owner** | **string**| | - **repo** | **string**| | - **data** | [**PackagesValidateuploadAlpine**](PackagesValidateuploadAlpine.md)| | [optional] + + + **data** | [**optional.Interface of PackagesValidateuploadAlpine**](PackagesValidateuploadAlpine.md)| | ### Return type -void (empty response body) + (empty response body) ### Authorization @@ -1123,24 +1344,32 @@ void (empty response body) [[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) # **PackagesValidateUploadCargo** -> PackagesValidateUploadCargo($owner, $repo, $data) - +> PackagesValidateUploadCargo(ctx, owner, repo, optional) Validate parameters for create Cargo package Validate parameters for create Cargo package +### Required Parameters -### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **owner** | **string**| | + **repo** | **string**| | + **optional** | ***PackagesApiPackagesValidateUploadCargoOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a PackagesApiPackagesValidateUploadCargoOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **owner** | **string**| | - **repo** | **string**| | - **data** | [**PackagesValidateuploadCargo**](PackagesValidateuploadCargo.md)| | [optional] + + + **data** | [**optional.Interface of PackagesValidateuploadCargo**](PackagesValidateuploadCargo.md)| | ### Return type -void (empty response body) + (empty response body) ### Authorization @@ -1154,24 +1383,32 @@ void (empty response body) [[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) # **PackagesValidateUploadCocoapods** -> PackagesValidateUploadCocoapods($owner, $repo, $data) - +> PackagesValidateUploadCocoapods(ctx, owner, repo, optional) Validate parameters for create CocoaPods package Validate parameters for create CocoaPods package +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **owner** | **string**| | + **repo** | **string**| | + **optional** | ***PackagesApiPackagesValidateUploadCocoapodsOpts** | optional parameters | nil if no parameters -### Parameters +### Optional Parameters +Optional parameters are passed through a pointer to a PackagesApiPackagesValidateUploadCocoapodsOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **owner** | **string**| | - **repo** | **string**| | - **data** | [**PackagesValidateuploadCocoapods**](PackagesValidateuploadCocoapods.md)| | [optional] + + + **data** | [**optional.Interface of PackagesValidateuploadCocoapods**](PackagesValidateuploadCocoapods.md)| | ### Return type -void (empty response body) + (empty response body) ### Authorization @@ -1185,24 +1422,32 @@ void (empty response body) [[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) # **PackagesValidateUploadComposer** -> PackagesValidateUploadComposer($owner, $repo, $data) - +> PackagesValidateUploadComposer(ctx, owner, repo, optional) Validate parameters for create Composer package Validate parameters for create Composer package +### Required Parameters -### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **owner** | **string**| | + **repo** | **string**| | + **optional** | ***PackagesApiPackagesValidateUploadComposerOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a PackagesApiPackagesValidateUploadComposerOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **owner** | **string**| | - **repo** | **string**| | - **data** | [**PackagesValidateuploadComposer**](PackagesValidateuploadComposer.md)| | [optional] + + + **data** | [**optional.Interface of PackagesValidateuploadComposer**](PackagesValidateuploadComposer.md)| | ### Return type -void (empty response body) + (empty response body) ### Authorization @@ -1216,24 +1461,32 @@ void (empty response body) [[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) # **PackagesValidateUploadConan** -> PackagesValidateUploadConan($owner, $repo, $data) - +> PackagesValidateUploadConan(ctx, owner, repo, optional) Validate parameters for create Conan package Validate parameters for create Conan package +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **owner** | **string**| | + **repo** | **string**| | + **optional** | ***PackagesApiPackagesValidateUploadConanOpts** | optional parameters | nil if no parameters -### Parameters +### Optional Parameters +Optional parameters are passed through a pointer to a PackagesApiPackagesValidateUploadConanOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **owner** | **string**| | - **repo** | **string**| | - **data** | [**PackagesValidateuploadConan**](PackagesValidateuploadConan.md)| | [optional] + + + **data** | [**optional.Interface of PackagesValidateuploadConan**](PackagesValidateuploadConan.md)| | ### Return type -void (empty response body) + (empty response body) ### Authorization @@ -1247,24 +1500,32 @@ void (empty response body) [[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) # **PackagesValidateUploadConda** -> PackagesValidateUploadConda($owner, $repo, $data) - +> PackagesValidateUploadConda(ctx, owner, repo, optional) Validate parameters for create Conda package Validate parameters for create Conda package +### Required Parameters -### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **owner** | **string**| | + **repo** | **string**| | + **optional** | ***PackagesApiPackagesValidateUploadCondaOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a PackagesApiPackagesValidateUploadCondaOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **owner** | **string**| | - **repo** | **string**| | - **data** | [**PackagesValidateuploadConda**](PackagesValidateuploadConda.md)| | [optional] + + + **data** | [**optional.Interface of PackagesValidateuploadConda**](PackagesValidateuploadConda.md)| | ### Return type -void (empty response body) + (empty response body) ### Authorization @@ -1278,24 +1539,32 @@ void (empty response body) [[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) # **PackagesValidateUploadCran** -> PackagesValidateUploadCran($owner, $repo, $data) - +> PackagesValidateUploadCran(ctx, owner, repo, optional) Validate parameters for create CRAN package Validate parameters for create CRAN package +### Required Parameters -### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **owner** | **string**| | + **repo** | **string**| | + **optional** | ***PackagesApiPackagesValidateUploadCranOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a PackagesApiPackagesValidateUploadCranOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **owner** | **string**| | - **repo** | **string**| | - **data** | [**PackagesValidateuploadCran**](PackagesValidateuploadCran.md)| | [optional] + + + **data** | [**optional.Interface of PackagesValidateuploadCran**](PackagesValidateuploadCran.md)| | ### Return type -void (empty response body) + (empty response body) ### Authorization @@ -1309,24 +1578,32 @@ void (empty response body) [[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) # **PackagesValidateUploadDart** -> PackagesValidateUploadDart($owner, $repo, $data) - +> PackagesValidateUploadDart(ctx, owner, repo, optional) Validate parameters for create Dart package Validate parameters for create Dart package +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **owner** | **string**| | + **repo** | **string**| | + **optional** | ***PackagesApiPackagesValidateUploadDartOpts** | optional parameters | nil if no parameters -### Parameters +### Optional Parameters +Optional parameters are passed through a pointer to a PackagesApiPackagesValidateUploadDartOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **owner** | **string**| | - **repo** | **string**| | - **data** | [**PackagesValidateuploadDart**](PackagesValidateuploadDart.md)| | [optional] + + + **data** | [**optional.Interface of PackagesValidateuploadDart**](PackagesValidateuploadDart.md)| | ### Return type -void (empty response body) + (empty response body) ### Authorization @@ -1340,24 +1617,32 @@ void (empty response body) [[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) # **PackagesValidateUploadDeb** -> PackagesValidateUploadDeb($owner, $repo, $data) - +> PackagesValidateUploadDeb(ctx, owner, repo, optional) Validate parameters for create Debian package Validate parameters for create Debian package +### Required Parameters -### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **owner** | **string**| | + **repo** | **string**| | + **optional** | ***PackagesApiPackagesValidateUploadDebOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a PackagesApiPackagesValidateUploadDebOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **owner** | **string**| | - **repo** | **string**| | - **data** | [**PackagesValidateuploadDeb**](PackagesValidateuploadDeb.md)| | [optional] + + + **data** | [**optional.Interface of PackagesValidateuploadDeb**](PackagesValidateuploadDeb.md)| | ### Return type -void (empty response body) + (empty response body) ### Authorization @@ -1371,24 +1656,32 @@ void (empty response body) [[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) # **PackagesValidateUploadDocker** -> PackagesValidateUploadDocker($owner, $repo, $data) - +> PackagesValidateUploadDocker(ctx, owner, repo, optional) Validate parameters for create Docker package Validate parameters for create Docker package +### Required Parameters -### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **owner** | **string**| | + **repo** | **string**| | + **optional** | ***PackagesApiPackagesValidateUploadDockerOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a PackagesApiPackagesValidateUploadDockerOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **owner** | **string**| | - **repo** | **string**| | - **data** | [**PackagesValidateuploadDocker**](PackagesValidateuploadDocker.md)| | [optional] + + + **data** | [**optional.Interface of PackagesValidateuploadDocker**](PackagesValidateuploadDocker.md)| | ### Return type -void (empty response body) + (empty response body) ### Authorization @@ -1402,24 +1695,32 @@ void (empty response body) [[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) # **PackagesValidateUploadGo** -> PackagesValidateUploadGo($owner, $repo, $data) - +> PackagesValidateUploadGo(ctx, owner, repo, optional) Validate parameters for create Go package Validate parameters for create Go package +### Required Parameters -### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **owner** | **string**| | + **repo** | **string**| | + **optional** | ***PackagesApiPackagesValidateUploadGoOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a PackagesApiPackagesValidateUploadGoOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **owner** | **string**| | - **repo** | **string**| | - **data** | [**PackagesValidateuploadGo**](PackagesValidateuploadGo.md)| | [optional] + + + **data** | [**optional.Interface of PackagesValidateuploadGo**](PackagesValidateuploadGo.md)| | ### Return type -void (empty response body) + (empty response body) ### Authorization @@ -1433,24 +1734,32 @@ void (empty response body) [[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) # **PackagesValidateUploadHelm** -> PackagesValidateUploadHelm($owner, $repo, $data) - +> PackagesValidateUploadHelm(ctx, owner, repo, optional) Validate parameters for create Helm package Validate parameters for create Helm package +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **owner** | **string**| | + **repo** | **string**| | + **optional** | ***PackagesApiPackagesValidateUploadHelmOpts** | optional parameters | nil if no parameters -### Parameters +### Optional Parameters +Optional parameters are passed through a pointer to a PackagesApiPackagesValidateUploadHelmOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **owner** | **string**| | - **repo** | **string**| | - **data** | [**PackagesValidateuploadHelm**](PackagesValidateuploadHelm.md)| | [optional] + + + **data** | [**optional.Interface of PackagesValidateuploadHelm**](PackagesValidateuploadHelm.md)| | ### Return type -void (empty response body) + (empty response body) ### Authorization @@ -1464,24 +1773,32 @@ void (empty response body) [[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) # **PackagesValidateUploadLuarocks** -> PackagesValidateUploadLuarocks($owner, $repo, $data) - +> PackagesValidateUploadLuarocks(ctx, owner, repo, optional) Validate parameters for create LuaRocks package Validate parameters for create LuaRocks package +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **owner** | **string**| | + **repo** | **string**| | + **optional** | ***PackagesApiPackagesValidateUploadLuarocksOpts** | optional parameters | nil if no parameters -### Parameters +### Optional Parameters +Optional parameters are passed through a pointer to a PackagesApiPackagesValidateUploadLuarocksOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **owner** | **string**| | - **repo** | **string**| | - **data** | [**PackagesValidateuploadLuarocks**](PackagesValidateuploadLuarocks.md)| | [optional] + + + **data** | [**optional.Interface of PackagesValidateuploadLuarocks**](PackagesValidateuploadLuarocks.md)| | ### Return type -void (empty response body) + (empty response body) ### Authorization @@ -1495,24 +1812,32 @@ void (empty response body) [[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) # **PackagesValidateUploadMaven** -> PackagesValidateUploadMaven($owner, $repo, $data) - +> PackagesValidateUploadMaven(ctx, owner, repo, optional) Validate parameters for create Maven package Validate parameters for create Maven package +### Required Parameters -### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **owner** | **string**| | + **repo** | **string**| | + **optional** | ***PackagesApiPackagesValidateUploadMavenOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a PackagesApiPackagesValidateUploadMavenOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **owner** | **string**| | - **repo** | **string**| | - **data** | [**PackagesValidateuploadMaven**](PackagesValidateuploadMaven.md)| | [optional] + + + **data** | [**optional.Interface of PackagesValidateuploadMaven**](PackagesValidateuploadMaven.md)| | ### Return type -void (empty response body) + (empty response body) ### Authorization @@ -1526,24 +1851,32 @@ void (empty response body) [[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) # **PackagesValidateUploadNpm** -> PackagesValidateUploadNpm($owner, $repo, $data) - +> PackagesValidateUploadNpm(ctx, owner, repo, optional) Validate parameters for create npm package Validate parameters for create npm package +### Required Parameters -### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **owner** | **string**| | + **repo** | **string**| | + **optional** | ***PackagesApiPackagesValidateUploadNpmOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a PackagesApiPackagesValidateUploadNpmOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **owner** | **string**| | - **repo** | **string**| | - **data** | [**PackagesValidateuploadNpm**](PackagesValidateuploadNpm.md)| | [optional] + + + **data** | [**optional.Interface of PackagesValidateuploadNpm**](PackagesValidateuploadNpm.md)| | ### Return type -void (empty response body) + (empty response body) ### Authorization @@ -1557,24 +1890,32 @@ void (empty response body) [[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) # **PackagesValidateUploadNuget** -> PackagesValidateUploadNuget($owner, $repo, $data) - +> PackagesValidateUploadNuget(ctx, owner, repo, optional) Validate parameters for create NuGet package Validate parameters for create NuGet package +### Required Parameters -### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **owner** | **string**| | + **repo** | **string**| | + **optional** | ***PackagesApiPackagesValidateUploadNugetOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a PackagesApiPackagesValidateUploadNugetOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **owner** | **string**| | - **repo** | **string**| | - **data** | [**PackagesValidateuploadNuget**](PackagesValidateuploadNuget.md)| | [optional] + + + **data** | [**optional.Interface of PackagesValidateuploadNuget**](PackagesValidateuploadNuget.md)| | ### Return type -void (empty response body) + (empty response body) ### Authorization @@ -1588,24 +1929,32 @@ void (empty response body) [[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) # **PackagesValidateUploadP2** -> PackagesValidateUploadP2($owner, $repo, $data) - +> PackagesValidateUploadP2(ctx, owner, repo, optional) Validate parameters for create P2 package Validate parameters for create P2 package +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **owner** | **string**| | + **repo** | **string**| | + **optional** | ***PackagesApiPackagesValidateUploadP2Opts** | optional parameters | nil if no parameters -### Parameters +### Optional Parameters +Optional parameters are passed through a pointer to a PackagesApiPackagesValidateUploadP2Opts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **owner** | **string**| | - **repo** | **string**| | - **data** | [**PackagesValidateuploadP2**](PackagesValidateuploadP2.md)| | [optional] + + + **data** | [**optional.Interface of PackagesValidateuploadP2**](PackagesValidateuploadP2.md)| | ### Return type -void (empty response body) + (empty response body) ### Authorization @@ -1619,24 +1968,32 @@ void (empty response body) [[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) # **PackagesValidateUploadPython** -> PackagesValidateUploadPython($owner, $repo, $data) - +> PackagesValidateUploadPython(ctx, owner, repo, optional) Validate parameters for create Python package Validate parameters for create Python package +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **owner** | **string**| | + **repo** | **string**| | + **optional** | ***PackagesApiPackagesValidateUploadPythonOpts** | optional parameters | nil if no parameters -### Parameters +### Optional Parameters +Optional parameters are passed through a pointer to a PackagesApiPackagesValidateUploadPythonOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **owner** | **string**| | - **repo** | **string**| | - **data** | [**PackagesValidateuploadPython**](PackagesValidateuploadPython.md)| | [optional] + + + **data** | [**optional.Interface of PackagesValidateuploadPython**](PackagesValidateuploadPython.md)| | ### Return type -void (empty response body) + (empty response body) ### Authorization @@ -1650,24 +2007,32 @@ void (empty response body) [[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) # **PackagesValidateUploadRaw** -> PackagesValidateUploadRaw($owner, $repo, $data) - +> PackagesValidateUploadRaw(ctx, owner, repo, optional) Validate parameters for create Raw package Validate parameters for create Raw package +### Required Parameters -### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **owner** | **string**| | + **repo** | **string**| | + **optional** | ***PackagesApiPackagesValidateUploadRawOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a PackagesApiPackagesValidateUploadRawOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **owner** | **string**| | - **repo** | **string**| | - **data** | [**PackagesValidateuploadRaw**](PackagesValidateuploadRaw.md)| | [optional] + + + **data** | [**optional.Interface of PackagesValidateuploadRaw**](PackagesValidateuploadRaw.md)| | ### Return type -void (empty response body) + (empty response body) ### Authorization @@ -1681,24 +2046,32 @@ void (empty response body) [[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) # **PackagesValidateUploadRpm** -> PackagesValidateUploadRpm($owner, $repo, $data) - +> PackagesValidateUploadRpm(ctx, owner, repo, optional) Validate parameters for create RedHat package Validate parameters for create RedHat package +### Required Parameters -### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **owner** | **string**| | + **repo** | **string**| | + **optional** | ***PackagesApiPackagesValidateUploadRpmOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a PackagesApiPackagesValidateUploadRpmOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **owner** | **string**| | - **repo** | **string**| | - **data** | [**PackagesValidateuploadRpm**](PackagesValidateuploadRpm.md)| | [optional] + + + **data** | [**optional.Interface of PackagesValidateuploadRpm**](PackagesValidateuploadRpm.md)| | ### Return type -void (empty response body) + (empty response body) ### Authorization @@ -1712,24 +2085,32 @@ void (empty response body) [[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) # **PackagesValidateUploadRuby** -> PackagesValidateUploadRuby($owner, $repo, $data) - +> PackagesValidateUploadRuby(ctx, owner, repo, optional) Validate parameters for create Ruby package Validate parameters for create Ruby package +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **owner** | **string**| | + **repo** | **string**| | + **optional** | ***PackagesApiPackagesValidateUploadRubyOpts** | optional parameters | nil if no parameters -### Parameters +### Optional Parameters +Optional parameters are passed through a pointer to a PackagesApiPackagesValidateUploadRubyOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **owner** | **string**| | - **repo** | **string**| | - **data** | [**PackagesValidateuploadRuby**](PackagesValidateuploadRuby.md)| | [optional] + + + **data** | [**optional.Interface of PackagesValidateuploadRuby**](PackagesValidateuploadRuby.md)| | ### Return type -void (empty response body) + (empty response body) ### Authorization @@ -1743,24 +2124,32 @@ void (empty response body) [[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) # **PackagesValidateUploadTerraform** -> PackagesValidateUploadTerraform($owner, $repo, $data) - +> PackagesValidateUploadTerraform(ctx, owner, repo, optional) Validate parameters for create Terraform package Validate parameters for create Terraform package +### Required Parameters -### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **owner** | **string**| | + **repo** | **string**| | + **optional** | ***PackagesApiPackagesValidateUploadTerraformOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a PackagesApiPackagesValidateUploadTerraformOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **owner** | **string**| | - **repo** | **string**| | - **data** | [**PackagesValidateuploadTerraform**](PackagesValidateuploadTerraform.md)| | [optional] + + + **data** | [**optional.Interface of PackagesValidateuploadTerraform**](PackagesValidateuploadTerraform.md)| | ### Return type -void (empty response body) + (empty response body) ### Authorization @@ -1774,24 +2163,32 @@ void (empty response body) [[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) # **PackagesValidateUploadVagrant** -> PackagesValidateUploadVagrant($owner, $repo, $data) - +> PackagesValidateUploadVagrant(ctx, owner, repo, optional) Validate parameters for create Vagrant package Validate parameters for create Vagrant package +### Required Parameters -### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **owner** | **string**| | + **repo** | **string**| | + **optional** | ***PackagesApiPackagesValidateUploadVagrantOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a PackagesApiPackagesValidateUploadVagrantOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **owner** | **string**| | - **repo** | **string**| | - **data** | [**PackagesValidateuploadVagrant**](PackagesValidateuploadVagrant.md)| | [optional] + + + **data** | [**optional.Interface of PackagesValidateuploadVagrant**](PackagesValidateuploadVagrant.md)| | ### Return type -void (empty response body) + (empty response body) ### Authorization diff --git a/bindings/go/src/docs/Quota.md b/bindings/go/src/docs/Quota.md index a7c87cc0..5098f535 100644 --- a/bindings/go/src/docs/Quota.md +++ b/bindings/go/src/docs/Quota.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Usage** | [**interface{}**](interface{}.md) | | [default to null] +**Usage** | **interface{}** | | [default to null] [[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/bindings/go/src/docs/QuotaApi.md b/bindings/go/src/docs/QuotaApi.md index 749b0551..09c51678 100644 --- a/bindings/go/src/docs/QuotaApi.md +++ b/bindings/go/src/docs/QuotaApi.md @@ -11,18 +11,17 @@ Method | HTTP request | Description # **QuotaHistoryRead** -> QuotaHistory QuotaHistoryRead($owner) - +> QuotaHistory QuotaHistoryRead(ctx, owner) Quota history for a given namespace. Quota history for a given namespace. - -### Parameters +### Required Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **owner** | **string**| | + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **owner** | **string**| | ### Return type @@ -40,18 +39,17 @@ Name | Type | Description | Notes [[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) # **QuotaOssHistoryRead** -> QuotaHistory QuotaOssHistoryRead($owner) - +> QuotaHistory QuotaOssHistoryRead(ctx, owner) Open-source Quota history for a given namespace. Open-source Quota history for a given namespace. - -### Parameters +### Required Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **owner** | **string**| | + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **owner** | **string**| | ### Return type @@ -69,18 +67,17 @@ Name | Type | Description | Notes [[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) # **QuotaOssRead** -> Quota QuotaOssRead($owner) - +> Quota QuotaOssRead(ctx, owner) Open-source Quota usage for a given namespace. Open-source Quota usage for a given namespace. - -### Parameters +### Required Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **owner** | **string**| | + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **owner** | **string**| | ### Return type @@ -98,18 +95,17 @@ Name | Type | Description | Notes [[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) # **QuotaRead** -> Quota QuotaRead($owner) - +> Quota QuotaRead(ctx, owner) Quota usage for a given namespace. Quota usage for a given namespace. - -### Parameters +### Required Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **owner** | **string**| | + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **owner** | **string**| | ### Return type diff --git a/bindings/go/src/docs/QuotaHistoryHistory.md b/bindings/go/src/docs/QuotaHistoryHistory.md index 97c0951d..c93d3dce 100644 --- a/bindings/go/src/docs/QuotaHistoryHistory.md +++ b/bindings/go/src/docs/QuotaHistoryHistory.md @@ -4,10 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Days** | **int32** | | [optional] [default to null] -**Display** | [**interface{}**](interface{}.md) | | [optional] [default to null] +**Display** | **interface{}** | | [optional] [default to null] **End** | **string** | | [optional] [default to null] **Plan** | **string** | | [optional] [default to null] -**Raw** | [**interface{}**](interface{}.md) | | [optional] [default to null] +**Raw** | **interface{}** | | [optional] [default to null] **Start** | **string** | | [optional] [default to null] [[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/bindings/go/src/docs/RatesApi.md b/bindings/go/src/docs/RatesApi.md index 97fbfe53..58b8a1cb 100644 --- a/bindings/go/src/docs/RatesApi.md +++ b/bindings/go/src/docs/RatesApi.md @@ -8,14 +8,12 @@ Method | HTTP request | Description # **RatesLimitsList** -> ResourcesRateCheck RatesLimitsList() - +> ResourcesRateCheck RatesLimitsList(ctx, ) Endpoint to check rate limits for current user. Endpoint to check rate limits for current user. - -### Parameters +### Required Parameters This endpoint does not need any parameter. ### Return type diff --git a/bindings/go/src/docs/RawPackageUpload.md b/bindings/go/src/docs/RawPackageUpload.md index 2b841cad..da4d7788 100644 --- a/bindings/go/src/docs/RawPackageUpload.md +++ b/bindings/go/src/docs/RawPackageUpload.md @@ -12,8 +12,8 @@ Name | Type | Description | Notes **DependenciesChecksumMd5** | **string** | A checksum of all of the package's dependencies. | [optional] [default to null] **DependenciesUrl** | **string** | | [optional] [default to null] **Description** | **string** | A textual description of this package. | [optional] [default to null] -**Distro** | [**interface{}**](interface{}.md) | | [optional] [default to null] -**DistroVersion** | [**interface{}**](interface{}.md) | | [optional] [default to null] +**Distro** | **interface{}** | | [optional] [default to null] +**DistroVersion** | **interface{}** | | [optional] [default to null] **Downloads** | **int32** | | [optional] [default to null] **Epoch** | **int32** | The epoch of the package version (if any). | [optional] [default to null] **Extension** | **string** | | [optional] [default to null] @@ -59,7 +59,7 @@ Name | Type | Description | Notes **Summary** | **string** | A one-liner synopsis of this package. | [optional] [default to null] **SyncFinishedAt** | **string** | The datetime the package sync was finished at. | [optional] [default to null] **SyncProgress** | **int32** | Synchronisation progress (from 0-100) | [optional] [default to null] -**TagsImmutable** | [**interface{}**](interface{}.md) | All immutable tags on the package, grouped by tag type. Immutable tags cannot be (easily) deleted. | [optional] [default to null] +**TagsImmutable** | **interface{}** | All immutable tags on the package, grouped by tag type. Immutable tags cannot be (easily) deleted. | [optional] [default to null] **TypeDisplay** | **string** | | [optional] [default to null] **UploadedAt** | **string** | The date this package was uploaded. | [optional] [default to null] **Uploader** | **string** | | [optional] [default to null] diff --git a/bindings/go/src/docs/ReposApi.md b/bindings/go/src/docs/ReposApi.md index 72797c41..73bfcb6b 100644 --- a/bindings/go/src/docs/ReposApi.md +++ b/bindings/go/src/docs/ReposApi.md @@ -13,19 +13,25 @@ Method | HTTP request | Description # **ReposAllList** -> []Repository ReposAllList($page, $pageSize) - +> []Repository ReposAllList(ctx, optional) Get a list of all repositories associated with current user. Get a list of all repositories associated with current user. +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***ReposApiReposAllListOpts** | optional parameters | nil if no parameters -### Parameters +### Optional Parameters +Optional parameters are passed through a pointer to a ReposApiReposAllListOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **page** | **int32**| A page number within the paginated result set. | [optional] - **pageSize** | **int32**| Number of results to return per page. | [optional] + **page** | **optional.Int32**| A page number within the paginated result set. | + **pageSize** | **optional.Int32**| Number of results to return per page. | ### Return type @@ -43,19 +49,26 @@ Name | Type | Description | Notes [[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) # **ReposCreate** -> Repository ReposCreate($owner, $data) - +> Repository ReposCreate(ctx, owner, optional) Create a new repository in a given namespace. Create a new repository in a given namespace. +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **owner** | **string**| | + **optional** | ***ReposApiReposCreateOpts** | optional parameters | nil if no parameters -### Parameters +### Optional Parameters +Optional parameters are passed through a pointer to a ReposApiReposCreateOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **owner** | **string**| | - **data** | [**ReposCreate**](ReposCreate.md)| | [optional] + + **data** | [**optional.Interface of ReposCreate**](ReposCreate.md)| | ### Return type @@ -73,23 +86,22 @@ Name | Type | Description | Notes [[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) # **ReposDelete** -> ReposDelete($owner, $identifier) - +> ReposDelete(ctx, owner, identifier) Delete a repository in a given namespace. Delete a repository in a given namespace. - -### Parameters +### Required Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **owner** | **string**| | - **identifier** | **string**| | + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **owner** | **string**| | + **identifier** | **string**| | ### Return type -void (empty response body) + (empty response body) ### Authorization @@ -103,20 +115,27 @@ void (empty response body) [[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) # **ReposList** -> []Repository ReposList($owner, $page, $pageSize) - +> []Repository ReposList(ctx, owner, optional) Get a list of all repositories within a namespace. Get a list of all repositories within a namespace. +### Required Parameters -### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **owner** | **string**| | + **optional** | ***ReposApiReposListOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a ReposApiReposListOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **owner** | **string**| | - **page** | **int32**| A page number within the paginated result set. | [optional] - **pageSize** | **int32**| Number of results to return per page. | [optional] + + **page** | **optional.Int32**| A page number within the paginated result set. | + **pageSize** | **optional.Int32**| Number of results to return per page. | ### Return type @@ -134,20 +153,28 @@ Name | Type | Description | Notes [[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) # **ReposPartialUpdate** -> Repository ReposPartialUpdate($owner, $identifier, $data) - +> Repository ReposPartialUpdate(ctx, owner, identifier, optional) Update details about a repository in a given namespace. Update details about a repository in a given namespace. +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **owner** | **string**| | + **identifier** | **string**| | + **optional** | ***ReposApiReposPartialUpdateOpts** | optional parameters | nil if no parameters -### Parameters +### Optional Parameters +Optional parameters are passed through a pointer to a ReposApiReposPartialUpdateOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **owner** | **string**| | - **identifier** | **string**| | - **data** | [**ReposPartialUpdate**](ReposPartialUpdate.md)| | [optional] + + + **data** | [**optional.Interface of ReposPartialUpdate**](ReposPartialUpdate.md)| | ### Return type @@ -165,19 +192,18 @@ Name | Type | Description | Notes [[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) # **ReposRead** -> Repository ReposRead($owner, $identifier) - +> Repository ReposRead(ctx, owner, identifier) Get a specific repository. Get a specific repository. - -### Parameters +### Required Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **owner** | **string**| | - **identifier** | **string**| | + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **owner** | **string**| | + **identifier** | **string**| | ### Return type diff --git a/bindings/go/src/docs/RepositoryToken.md b/bindings/go/src/docs/RepositoryToken.md index d1791bc0..01f2cfed 100644 --- a/bindings/go/src/docs/RepositoryToken.md +++ b/bindings/go/src/docs/RepositoryToken.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes **DisableUrl** | **string** | | [optional] [default to null] **Downloads** | **int32** | | [optional] [default to null] **EnableUrl** | **string** | | [optional] [default to null] -**EulaAccepted** | [**interface{}**](interface{}.md) | | [optional] [default to null] +**EulaAccepted** | **interface{}** | | [optional] [default to null] **EulaAcceptedAt** | **string** | The datetime the EULA was accepted at. | [optional] [default to null] **EulaAcceptedFrom** | **string** | | [optional] [default to null] **EulaRequired** | **bool** | If checked, a EULA acceptance is required for this token. | [optional] [default to null] @@ -27,7 +27,7 @@ Name | Type | Description | Notes **LimitNumDownloads** | **int32** | The maximum number of downloads allowed for the token. Please note that since downloads are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point. | [optional] [default to null] **LimitPackageQuery** | **string** | The package-based search query to apply to restrict downloads to. This uses the same syntax as the standard search used for repositories, and also supports boolean logic operators such as OR/AND/NOT and parentheses for grouping. This will still allow access to non-package files, such as metadata. | [optional] [default to null] **LimitPathQuery** | **string** | The path-based search query to apply to restrict downloads to. This supports boolean logic operators such as OR/AND/NOT and parentheses for grouping. The path evaluated does not include the domain name, the namespace, the entitlement code used, the package format, etc. and it always starts with a forward slash. | [optional] [default to null] -**Metadata** | [**interface{}**](interface{}.md) | | [optional] [default to null] +**Metadata** | **interface{}** | | [optional] [default to null] **Name** | **string** | | [default to null] **RefreshUrl** | **string** | | [optional] [default to null] **ResetUrl** | **string** | | [optional] [default to null] diff --git a/bindings/go/src/docs/RepositoryTokenRefresh.md b/bindings/go/src/docs/RepositoryTokenRefresh.md index 01c8abe5..63654ecb 100644 --- a/bindings/go/src/docs/RepositoryTokenRefresh.md +++ b/bindings/go/src/docs/RepositoryTokenRefresh.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes **DisableUrl** | **string** | | [optional] [default to null] **Downloads** | **int32** | | [optional] [default to null] **EnableUrl** | **string** | | [optional] [default to null] -**EulaAccepted** | [**interface{}**](interface{}.md) | | [optional] [default to null] +**EulaAccepted** | **interface{}** | | [optional] [default to null] **EulaAcceptedAt** | **string** | The datetime the EULA was accepted at. | [optional] [default to null] **EulaAcceptedFrom** | **string** | | [optional] [default to null] **EulaRequired** | **bool** | If checked, a EULA acceptance is required for this token. | [optional] [default to null] @@ -27,7 +27,7 @@ Name | Type | Description | Notes **LimitNumDownloads** | **int32** | The maximum number of downloads allowed for the token. Please note that since downloads are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point. | [optional] [default to null] **LimitPackageQuery** | **string** | The package-based search query to apply to restrict downloads to. This uses the same syntax as the standard search used for repositories, and also supports boolean logic operators such as OR/AND/NOT and parentheses for grouping. This will still allow access to non-package files, such as metadata. | [optional] [default to null] **LimitPathQuery** | **string** | The path-based search query to apply to restrict downloads to. This supports boolean logic operators such as OR/AND/NOT and parentheses for grouping. The path evaluated does not include the domain name, the namespace, the entitlement code used, the package format, etc. and it always starts with a forward slash. | [optional] [default to null] -**Metadata** | [**interface{}**](interface{}.md) | | [optional] [default to null] +**Metadata** | **interface{}** | | [optional] [default to null] **Name** | **string** | | [optional] [default to null] **RefreshUrl** | **string** | | [optional] [default to null] **ResetUrl** | **string** | | [optional] [default to null] diff --git a/bindings/go/src/docs/RepositoryTokenSyncTokens.md b/bindings/go/src/docs/RepositoryTokenSyncTokens.md index 9fe17fd8..20c4e937 100644 --- a/bindings/go/src/docs/RepositoryTokenSyncTokens.md +++ b/bindings/go/src/docs/RepositoryTokenSyncTokens.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes **DisableUrl** | **string** | | [optional] [default to null] **Downloads** | **int32** | | [optional] [default to null] **EnableUrl** | **string** | | [optional] [default to null] -**EulaAccepted** | [**interface{}**](interface{}.md) | | [optional] [default to null] +**EulaAccepted** | **interface{}** | | [optional] [default to null] **EulaAcceptedAt** | **string** | The datetime the EULA was accepted at. | [optional] [default to null] **EulaAcceptedFrom** | **string** | | [optional] [default to null] **EulaRequired** | **bool** | If checked, a EULA acceptance is required for this token. | [optional] [default to null] diff --git a/bindings/go/src/docs/ResourcesRateCheck.md b/bindings/go/src/docs/ResourcesRateCheck.md index b75c7263..4bc7b715 100644 --- a/bindings/go/src/docs/ResourcesRateCheck.md +++ b/bindings/go/src/docs/ResourcesRateCheck.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Resources** | [**interface{}**](interface{}.md) | Rate limit values per resource | [optional] [default to null] +**Resources** | **interface{}** | Rate limit values per resource | [optional] [default to null] [[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/bindings/go/src/docs/StatusApi.md b/bindings/go/src/docs/StatusApi.md index 63d62c23..7bd2edf0 100644 --- a/bindings/go/src/docs/StatusApi.md +++ b/bindings/go/src/docs/StatusApi.md @@ -8,14 +8,12 @@ Method | HTTP request | Description # **StatusCheckBasic** -> StatusBasic StatusCheckBasic() - +> StatusBasic StatusCheckBasic(ctx, ) Endpoint to check basic API connectivity. Endpoint to check basic API connectivity. - -### Parameters +### Required Parameters This endpoint does not need any parameter. ### Return type diff --git a/bindings/go/src/docs/StorageregionsApi.md b/bindings/go/src/docs/StorageregionsApi.md index cb5da21b..82690ad3 100644 --- a/bindings/go/src/docs/StorageregionsApi.md +++ b/bindings/go/src/docs/StorageregionsApi.md @@ -1,22 +1,20 @@ -# \StorageregionsApi +# \StorageRegionsApi All URIs are relative to *https://api.cloudsmith.io/v1* Method | HTTP request | Description ------------- | ------------- | ------------- -[**StorageRegionsList**](StorageregionsApi.md#StorageRegionsList) | **Get** /storage-regions/ | Get a list of all available storage regions. -[**StorageRegionsRead**](StorageregionsApi.md#StorageRegionsRead) | **Get** /storage-regions/{slug}/ | Get a specific storage region. +[**StorageRegionsList**](StorageRegionsApi.md#StorageRegionsList) | **Get** /storage-regions/ | Get a list of all available storage regions. +[**StorageRegionsRead**](StorageRegionsApi.md#StorageRegionsRead) | **Get** /storage-regions/{slug}/ | Get a specific storage region. # **StorageRegionsList** -> []StorageRegion StorageRegionsList() - +> []StorageRegion StorageRegionsList(ctx, ) Get a list of all available storage regions. Get a list of all available storage regions. - -### Parameters +### Required Parameters This endpoint does not need any parameter. ### Return type @@ -35,18 +33,17 @@ This endpoint does not need any parameter. [[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) # **StorageRegionsRead** -> StorageRegion StorageRegionsRead($slug) - +> StorageRegion StorageRegionsRead(ctx, slug) Get a specific storage region. Get a specific storage region. - -### Parameters +### Required Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **slug** | **string**| | + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **slug** | **string**| | ### Return type diff --git a/bindings/go/src/docs/UserApi.md b/bindings/go/src/docs/UserApi.md index 35a4349a..052d501e 100644 --- a/bindings/go/src/docs/UserApi.md +++ b/bindings/go/src/docs/UserApi.md @@ -9,14 +9,12 @@ Method | HTTP request | Description # **UserSelf** -> UserBrief UserSelf() - +> UserBrief UserSelf(ctx, ) Provide a brief for the current user (if any). Provide a brief for the current user (if any). - -### Parameters +### Required Parameters This endpoint does not need any parameter. ### Return type @@ -35,18 +33,24 @@ This endpoint does not need any parameter. [[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) # **UserTokenCreate** -> UserAuthToken UserTokenCreate($data) - +> UserAuthToken UserTokenCreate(ctx, optional) Retrieve the API key/token for the authenticated user. Retrieve the API key/token for the authenticated user. +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***UserApiUserTokenCreateOpts** | optional parameters | nil if no parameters -### Parameters +### Optional Parameters +Optional parameters are passed through a pointer to a UserApiUserTokenCreateOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **data** | [**UserTokenCreate**](UserTokenCreate.md)| | [optional] + **data** | [**optional.Interface of UserTokenCreate**](UserTokenCreate.md)| | ### Return type diff --git a/bindings/go/src/docs/UsersApi.md b/bindings/go/src/docs/UsersApi.md index a1d78a61..cb5c2e76 100644 --- a/bindings/go/src/docs/UsersApi.md +++ b/bindings/go/src/docs/UsersApi.md @@ -8,18 +8,17 @@ Method | HTTP request | Description # **UsersProfileRead** -> UserProfile UsersProfileRead($slug) - +> UserProfile UsersProfileRead(ctx, slug) Provide a brief for the specified user (if any). Provide a brief for the specified user (if any). - -### Parameters +### Required Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **slug** | **string**| | + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **slug** | **string**| | ### Return type diff --git a/bindings/go/src/docs/VagrantPackageUpload.md b/bindings/go/src/docs/VagrantPackageUpload.md index 272dd87d..c4ba4ccd 100644 --- a/bindings/go/src/docs/VagrantPackageUpload.md +++ b/bindings/go/src/docs/VagrantPackageUpload.md @@ -12,8 +12,8 @@ Name | Type | Description | Notes **DependenciesChecksumMd5** | **string** | A checksum of all of the package's dependencies. | [optional] [default to null] **DependenciesUrl** | **string** | | [optional] [default to null] **Description** | **string** | A textual description of this package. | [optional] [default to null] -**Distro** | [**interface{}**](interface{}.md) | | [optional] [default to null] -**DistroVersion** | [**interface{}**](interface{}.md) | | [optional] [default to null] +**Distro** | **interface{}** | | [optional] [default to null] +**DistroVersion** | **interface{}** | | [optional] [default to null] **Downloads** | **int32** | | [optional] [default to null] **Epoch** | **int32** | The epoch of the package version (if any). | [optional] [default to null] **Extension** | **string** | | [optional] [default to null] @@ -60,7 +60,7 @@ Name | Type | Description | Notes **Summary** | **string** | A one-liner synopsis of this package. | [optional] [default to null] **SyncFinishedAt** | **string** | The datetime the package sync was finished at. | [optional] [default to null] **SyncProgress** | **int32** | Synchronisation progress (from 0-100) | [optional] [default to null] -**TagsImmutable** | [**interface{}**](interface{}.md) | All immutable tags on the package, grouped by tag type. Immutable tags cannot be (easily) deleted. | [optional] [default to null] +**TagsImmutable** | **interface{}** | All immutable tags on the package, grouped by tag type. Immutable tags cannot be (easily) deleted. | [optional] [default to null] **TypeDisplay** | **string** | | [optional] [default to null] **UploadedAt** | **string** | The date this package was uploaded. | [optional] [default to null] **Uploader** | **string** | | [optional] [default to null] diff --git a/bindings/go/src/docs/VulnerabilitiesApi.md b/bindings/go/src/docs/VulnerabilitiesApi.md index c7134528..b9911fb2 100644 --- a/bindings/go/src/docs/VulnerabilitiesApi.md +++ b/bindings/go/src/docs/VulnerabilitiesApi.md @@ -11,20 +11,27 @@ Method | HTTP request | Description # **VulnerabilitiesList** -> []VulnerabilityScanResultsList VulnerabilitiesList($owner, $page, $pageSize) - +> []VulnerabilityScanResultsList VulnerabilitiesList(ctx, owner, optional) Lists scan results for a specific namespace. Lists scan results for a specific namespace. +### Required Parameters -### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **owner** | **string**| | + **optional** | ***VulnerabilitiesApiVulnerabilitiesListOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a VulnerabilitiesApiVulnerabilitiesListOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **owner** | **string**| | - **page** | **int32**| A page number within the paginated result set. | [optional] - **pageSize** | **int32**| Number of results to return per page. | [optional] + + **page** | **optional.Int32**| A page number within the paginated result set. | + **pageSize** | **optional.Int32**| Number of results to return per page. | ### Return type @@ -42,21 +49,29 @@ Name | Type | Description | Notes [[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) # **VulnerabilitiesList0** -> []VulnerabilityScanResultsList VulnerabilitiesList0($owner, $repo, $page, $pageSize) - +> []VulnerabilityScanResultsList VulnerabilitiesList0(ctx, owner, repo, optional) Lists scan results for a specific repository. Lists scan results for a specific repository. +### Required Parameters -### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **owner** | **string**| | + **repo** | **string**| | + **optional** | ***VulnerabilitiesApiVulnerabilitiesList0Opts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a VulnerabilitiesApiVulnerabilitiesList0Opts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **owner** | **string**| | - **repo** | **string**| | - **page** | **int32**| A page number within the paginated result set. | [optional] - **pageSize** | **int32**| Number of results to return per page. | [optional] + + + **page** | **optional.Int32**| A page number within the paginated result set. | + **pageSize** | **optional.Int32**| Number of results to return per page. | ### Return type @@ -74,22 +89,31 @@ Name | Type | Description | Notes [[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) # **VulnerabilitiesList1** -> []VulnerabilityScanResultsList VulnerabilitiesList1($owner, $repo, $package_, $page, $pageSize) - +> []VulnerabilityScanResultsList VulnerabilitiesList1(ctx, owner, repo, package_, optional) Lists scan results for a specific package. Lists scan results for a specific package. +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **owner** | **string**| | + **repo** | **string**| | + **package_** | **string**| | + **optional** | ***VulnerabilitiesApiVulnerabilitiesList1Opts** | optional parameters | nil if no parameters -### Parameters +### Optional Parameters +Optional parameters are passed through a pointer to a VulnerabilitiesApiVulnerabilitiesList1Opts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **owner** | **string**| | - **repo** | **string**| | - **package_** | **string**| | - **page** | **int32**| A page number within the paginated result set. | [optional] - **pageSize** | **int32**| Number of results to return per page. | [optional] + + + + **page** | **optional.Int32**| A page number within the paginated result set. | + **pageSize** | **optional.Int32**| Number of results to return per page. | ### Return type @@ -107,21 +131,20 @@ Name | Type | Description | Notes [[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) # **VulnerabilitiesRead** -> VulnerabilityScanResults VulnerabilitiesRead($owner, $repo, $package_, $scanId) - +> VulnerabilityScanResults VulnerabilitiesRead(ctx, owner, repo, package_, scanId) Returns a Scan Result. Returns a Scan Result. - -### Parameters +### Required Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **owner** | **string**| | - **repo** | **string**| | - **package_** | **string**| | - **scanId** | **string**| | + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **owner** | **string**| | + **repo** | **string**| | + **package_** | **string**| | + **scanId** | **string**| | ### Return type diff --git a/bindings/go/src/docs/VulnerabilityScanResults.md b/bindings/go/src/docs/VulnerabilityScanResults.md index e2029aa7..af98809f 100644 --- a/bindings/go/src/docs/VulnerabilityScanResults.md +++ b/bindings/go/src/docs/VulnerabilityScanResults.md @@ -8,8 +8,8 @@ Name | Type | Description | Notes **Identifier** | **string** | | [default to null] **MaxSeverity** | **string** | | [optional] [default to null] **NumVulnerabilities** | **int32** | | [optional] [default to null] -**Package_** | [**interface{}**](interface{}.md) | | [default to null] -**Scan** | [**interface{}**](interface{}.md) | | [default to null] +**Package_** | **interface{}** | | [default to null] +**Scan** | **interface{}** | | [default to null] **ScanId** | **int32** | | [default to null] [[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/bindings/go/src/docs/VulnerabilityScanResultsList.md b/bindings/go/src/docs/VulnerabilityScanResultsList.md index f61a56ee..d08ce762 100644 --- a/bindings/go/src/docs/VulnerabilityScanResultsList.md +++ b/bindings/go/src/docs/VulnerabilityScanResultsList.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **Identifier** | **string** | | [default to null] **MaxSeverity** | **string** | | [optional] [default to null] **NumVulnerabilities** | **int32** | | [optional] [default to null] -**Package_** | [**interface{}**](interface{}.md) | | [default to null] +**Package_** | **interface{}** | | [default to null] **ScanId** | **int32** | | [default to null] [[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/bindings/go/src/docs/WebhooksApi.md b/bindings/go/src/docs/WebhooksApi.md index bcbfda77..f60cd10e 100644 --- a/bindings/go/src/docs/WebhooksApi.md +++ b/bindings/go/src/docs/WebhooksApi.md @@ -12,20 +12,28 @@ Method | HTTP request | Description # **WebhooksCreate** -> RepositoryWebhook WebhooksCreate($owner, $repo, $data) - +> RepositoryWebhook WebhooksCreate(ctx, owner, repo, optional) Create a specific webhook in a repository. Create a specific webhook in a repository. +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **owner** | **string**| | + **repo** | **string**| | + **optional** | ***WebhooksApiWebhooksCreateOpts** | optional parameters | nil if no parameters -### Parameters +### Optional Parameters +Optional parameters are passed through a pointer to a WebhooksApiWebhooksCreateOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **owner** | **string**| | - **repo** | **string**| | - **data** | [**WebhooksCreate**](WebhooksCreate.md)| | [optional] + + + **data** | [**optional.Interface of WebhooksCreate**](WebhooksCreate.md)| | ### Return type @@ -43,24 +51,23 @@ Name | Type | Description | Notes [[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) # **WebhooksDelete** -> WebhooksDelete($owner, $repo, $identifier) - +> WebhooksDelete(ctx, owner, repo, identifier) Delete a specific webhook in a repository. Delete a specific webhook in a repository. - -### Parameters +### Required Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **owner** | **string**| | - **repo** | **string**| | - **identifier** | **string**| | + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **owner** | **string**| | + **repo** | **string**| | + **identifier** | **string**| | ### Return type -void (empty response body) + (empty response body) ### Authorization @@ -74,21 +81,29 @@ void (empty response body) [[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) # **WebhooksList** -> []RepositoryWebhook WebhooksList($owner, $repo, $page, $pageSize) - +> []RepositoryWebhook WebhooksList(ctx, owner, repo, optional) Get a list of all webhooks in a repository. Get a list of all webhooks in a repository. +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **owner** | **string**| | + **repo** | **string**| | + **optional** | ***WebhooksApiWebhooksListOpts** | optional parameters | nil if no parameters -### Parameters +### Optional Parameters +Optional parameters are passed through a pointer to a WebhooksApiWebhooksListOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **owner** | **string**| | - **repo** | **string**| | - **page** | **int32**| A page number within the paginated result set. | [optional] - **pageSize** | **int32**| Number of results to return per page. | [optional] + + + **page** | **optional.Int32**| A page number within the paginated result set. | + **pageSize** | **optional.Int32**| Number of results to return per page. | ### Return type @@ -106,21 +121,30 @@ Name | Type | Description | Notes [[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) # **WebhooksPartialUpdate** -> RepositoryWebhook WebhooksPartialUpdate($owner, $repo, $identifier, $data) - +> RepositoryWebhook WebhooksPartialUpdate(ctx, owner, repo, identifier, optional) Update a specific webhook in a repository. Update a specific webhook in a repository. +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **owner** | **string**| | + **repo** | **string**| | + **identifier** | **string**| | + **optional** | ***WebhooksApiWebhooksPartialUpdateOpts** | optional parameters | nil if no parameters -### Parameters +### Optional Parameters +Optional parameters are passed through a pointer to a WebhooksApiWebhooksPartialUpdateOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **owner** | **string**| | - **repo** | **string**| | - **identifier** | **string**| | - **data** | [**WebhooksPartialUpdate**](WebhooksPartialUpdate.md)| | [optional] + + + + **data** | [**optional.Interface of WebhooksPartialUpdate**](WebhooksPartialUpdate.md)| | ### Return type @@ -138,20 +162,19 @@ Name | Type | Description | Notes [[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) # **WebhooksRead** -> RepositoryWebhook WebhooksRead($owner, $repo, $identifier) - +> RepositoryWebhook WebhooksRead(ctx, owner, repo, identifier) Views for working with repository webhooks. Views for working with repository webhooks. - -### Parameters +### Required Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **owner** | **string**| | - **repo** | **string**| | - **identifier** | **string**| | + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **owner** | **string**| | + **repo** | **string**| | + **identifier** | **string**| | ### Return type diff --git a/bindings/go/src/entitlements_api.go b/bindings/go/src/entitlements_api.go deleted file mode 100644 index 915c2cb3..00000000 --- a/bindings/go/src/entitlements_api.go +++ /dev/null @@ -1,725 +0,0 @@ -/* - * Cloudsmith API - * - * The API to the Cloudsmith Service - * - * OpenAPI spec version: v1 - * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -package cloudsmith_api - -import ( - "net/url" - "strings" - "encoding/json" - "fmt" -) - -type EntitlementsApi struct { - Configuration *Configuration -} - -func NewEntitlementsApi() *EntitlementsApi { - configuration := NewConfiguration() - return &EntitlementsApi{ - Configuration: configuration, - } -} - -func NewEntitlementsApiWithBasePath(basePath string) *EntitlementsApi { - configuration := NewConfiguration() - configuration.BasePath = basePath - - return &EntitlementsApi{ - Configuration: configuration, - } -} - -/** - * Create a specific entitlement in a repository. - * Create a specific entitlement in a repository. - * - * @param owner - * @param repo - * @param showTokens Show entitlement token strings in results - * @param data - * @return *RepositoryToken - */ -func (a EntitlementsApi) EntitlementsCreate(owner string, repo string, showTokens bool, data EntitlementsCreate) (*RepositoryToken, *APIResponse, error) { - - var localVarHttpMethod = strings.ToUpper("Post") - // create path and map variables - localVarPath := a.Configuration.BasePath + "/entitlements/{owner}/{repo}/" - localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) - localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := make(map[string]string) - var localVarPostBody interface{} - var localVarFileName string - var localVarFileBytes []byte - // authentication '(apikey)' required - // set key with prefix in header - localVarHeaderParams["X-Api-Key"] = a.Configuration.GetAPIKeyWithPrefix("X-Api-Key") - // add default headers if any - for key := range a.Configuration.DefaultHeader { - localVarHeaderParams[key] = a.Configuration.DefaultHeader[key] - } - localVarQueryParams.Add("show_tokens", a.Configuration.APIClient.ParameterToString(showTokens, "")) - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - // body params - localVarPostBody = &data - var successPayload = new(RepositoryToken) - localVarHttpResponse, err := a.Configuration.APIClient.CallAPI(localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - - var localVarURL, _ = url.Parse(localVarPath) - localVarURL.RawQuery = localVarQueryParams.Encode() - var localVarAPIResponse = &APIResponse{Operation: "EntitlementsCreate", Method: localVarHttpMethod, RequestURL: localVarURL.String()} - if localVarHttpResponse != nil { - localVarAPIResponse.Response = localVarHttpResponse.RawResponse - localVarAPIResponse.Payload = localVarHttpResponse.Body() - } - - if err != nil { - return successPayload, localVarAPIResponse, err - } - err = json.Unmarshal(localVarHttpResponse.Body(), &successPayload) - return successPayload, localVarAPIResponse, err -} - -/** - * Delete a specific entitlement in a repository. - * Delete a specific entitlement in a repository. - * - * @param owner - * @param repo - * @param identifier - * @return void - */ -func (a EntitlementsApi) EntitlementsDelete(owner string, repo string, identifier string) (*APIResponse, error) { - - var localVarHttpMethod = strings.ToUpper("Delete") - // create path and map variables - localVarPath := a.Configuration.BasePath + "/entitlements/{owner}/{repo}/{identifier}/" - localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) - localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) - localVarPath = strings.Replace(localVarPath, "{"+"identifier"+"}", fmt.Sprintf("%v", identifier), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := make(map[string]string) - var localVarPostBody interface{} - var localVarFileName string - var localVarFileBytes []byte - // authentication '(apikey)' required - // set key with prefix in header - localVarHeaderParams["X-Api-Key"] = a.Configuration.GetAPIKeyWithPrefix("X-Api-Key") - // add default headers if any - for key := range a.Configuration.DefaultHeader { - localVarHeaderParams[key] = a.Configuration.DefaultHeader[key] - } - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - localVarHttpResponse, err := a.Configuration.APIClient.CallAPI(localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - - var localVarURL, _ = url.Parse(localVarPath) - localVarURL.RawQuery = localVarQueryParams.Encode() - var localVarAPIResponse = &APIResponse{Operation: "EntitlementsDelete", Method: localVarHttpMethod, RequestURL: localVarURL.String()} - if localVarHttpResponse != nil { - localVarAPIResponse.Response = localVarHttpResponse.RawResponse - localVarAPIResponse.Payload = localVarHttpResponse.Body() - } - - if err != nil { - return localVarAPIResponse, err - } - return localVarAPIResponse, err -} - -/** - * Disable an entitlement token in a repository. - * Disable an entitlement token in a repository. - * - * @param owner - * @param repo - * @param identifier - * @return void - */ -func (a EntitlementsApi) EntitlementsDisable(owner string, repo string, identifier string) (*APIResponse, error) { - - var localVarHttpMethod = strings.ToUpper("Post") - // create path and map variables - localVarPath := a.Configuration.BasePath + "/entitlements/{owner}/{repo}/{identifier}/disable/" - localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) - localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) - localVarPath = strings.Replace(localVarPath, "{"+"identifier"+"}", fmt.Sprintf("%v", identifier), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := make(map[string]string) - var localVarPostBody interface{} - var localVarFileName string - var localVarFileBytes []byte - // authentication '(apikey)' required - // set key with prefix in header - localVarHeaderParams["X-Api-Key"] = a.Configuration.GetAPIKeyWithPrefix("X-Api-Key") - // add default headers if any - for key := range a.Configuration.DefaultHeader { - localVarHeaderParams[key] = a.Configuration.DefaultHeader[key] - } - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - localVarHttpResponse, err := a.Configuration.APIClient.CallAPI(localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - - var localVarURL, _ = url.Parse(localVarPath) - localVarURL.RawQuery = localVarQueryParams.Encode() - var localVarAPIResponse = &APIResponse{Operation: "EntitlementsDisable", Method: localVarHttpMethod, RequestURL: localVarURL.String()} - if localVarHttpResponse != nil { - localVarAPIResponse.Response = localVarHttpResponse.RawResponse - localVarAPIResponse.Payload = localVarHttpResponse.Body() - } - - if err != nil { - return localVarAPIResponse, err - } - return localVarAPIResponse, err -} - -/** - * Enable an entitlement token in a repository. - * Enable an entitlement token in a repository. - * - * @param owner - * @param repo - * @param identifier - * @return void - */ -func (a EntitlementsApi) EntitlementsEnable(owner string, repo string, identifier string) (*APIResponse, error) { - - var localVarHttpMethod = strings.ToUpper("Post") - // create path and map variables - localVarPath := a.Configuration.BasePath + "/entitlements/{owner}/{repo}/{identifier}/enable/" - localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) - localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) - localVarPath = strings.Replace(localVarPath, "{"+"identifier"+"}", fmt.Sprintf("%v", identifier), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := make(map[string]string) - var localVarPostBody interface{} - var localVarFileName string - var localVarFileBytes []byte - // authentication '(apikey)' required - // set key with prefix in header - localVarHeaderParams["X-Api-Key"] = a.Configuration.GetAPIKeyWithPrefix("X-Api-Key") - // add default headers if any - for key := range a.Configuration.DefaultHeader { - localVarHeaderParams[key] = a.Configuration.DefaultHeader[key] - } - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - localVarHttpResponse, err := a.Configuration.APIClient.CallAPI(localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - - var localVarURL, _ = url.Parse(localVarPath) - localVarURL.RawQuery = localVarQueryParams.Encode() - var localVarAPIResponse = &APIResponse{Operation: "EntitlementsEnable", Method: localVarHttpMethod, RequestURL: localVarURL.String()} - if localVarHttpResponse != nil { - localVarAPIResponse.Response = localVarHttpResponse.RawResponse - localVarAPIResponse.Payload = localVarHttpResponse.Body() - } - - if err != nil { - return localVarAPIResponse, err - } - return localVarAPIResponse, err -} - -/** - * Get a list of all entitlements in a repository. - * Get a list of all entitlements in a repository. - * - * @param owner - * @param repo - * @param page A page number within the paginated result set. - * @param pageSize Number of results to return per page. - * @param showTokens Show entitlement token strings in results - * @return []RepositoryToken - */ -func (a EntitlementsApi) EntitlementsList(owner string, repo string, page int32, pageSize int32, showTokens bool) ([]RepositoryToken, *APIResponse, error) { - - var localVarHttpMethod = strings.ToUpper("Get") - // create path and map variables - localVarPath := a.Configuration.BasePath + "/entitlements/{owner}/{repo}/" - localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) - localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := make(map[string]string) - var localVarPostBody interface{} - var localVarFileName string - var localVarFileBytes []byte - // authentication '(apikey)' required - // set key with prefix in header - localVarHeaderParams["X-Api-Key"] = a.Configuration.GetAPIKeyWithPrefix("X-Api-Key") - // add default headers if any - for key := range a.Configuration.DefaultHeader { - localVarHeaderParams[key] = a.Configuration.DefaultHeader[key] - } - localVarQueryParams.Add("page", a.Configuration.APIClient.ParameterToString(page, "")) - localVarQueryParams.Add("page_size", a.Configuration.APIClient.ParameterToString(pageSize, "")) - localVarQueryParams.Add("show_tokens", a.Configuration.APIClient.ParameterToString(showTokens, "")) - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload = new([]RepositoryToken) - localVarHttpResponse, err := a.Configuration.APIClient.CallAPI(localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - - var localVarURL, _ = url.Parse(localVarPath) - localVarURL.RawQuery = localVarQueryParams.Encode() - var localVarAPIResponse = &APIResponse{Operation: "EntitlementsList", Method: localVarHttpMethod, RequestURL: localVarURL.String()} - if localVarHttpResponse != nil { - localVarAPIResponse.Response = localVarHttpResponse.RawResponse - localVarAPIResponse.Payload = localVarHttpResponse.Body() - } - - if err != nil { - return *successPayload, localVarAPIResponse, err - } - err = json.Unmarshal(localVarHttpResponse.Body(), &successPayload) - return *successPayload, localVarAPIResponse, err -} - -/** - * Update a specific entitlement in a repository. - * Update a specific entitlement in a repository. - * - * @param owner - * @param repo - * @param identifier - * @param showTokens Show entitlement token strings in results - * @param data - * @return *RepositoryToken - */ -func (a EntitlementsApi) EntitlementsPartialUpdate(owner string, repo string, identifier string, showTokens bool, data EntitlementsPartialUpdate) (*RepositoryToken, *APIResponse, error) { - - var localVarHttpMethod = strings.ToUpper("Patch") - // create path and map variables - localVarPath := a.Configuration.BasePath + "/entitlements/{owner}/{repo}/{identifier}/" - localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) - localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) - localVarPath = strings.Replace(localVarPath, "{"+"identifier"+"}", fmt.Sprintf("%v", identifier), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := make(map[string]string) - var localVarPostBody interface{} - var localVarFileName string - var localVarFileBytes []byte - // authentication '(apikey)' required - // set key with prefix in header - localVarHeaderParams["X-Api-Key"] = a.Configuration.GetAPIKeyWithPrefix("X-Api-Key") - // add default headers if any - for key := range a.Configuration.DefaultHeader { - localVarHeaderParams[key] = a.Configuration.DefaultHeader[key] - } - localVarQueryParams.Add("show_tokens", a.Configuration.APIClient.ParameterToString(showTokens, "")) - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - // body params - localVarPostBody = &data - var successPayload = new(RepositoryToken) - localVarHttpResponse, err := a.Configuration.APIClient.CallAPI(localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - - var localVarURL, _ = url.Parse(localVarPath) - localVarURL.RawQuery = localVarQueryParams.Encode() - var localVarAPIResponse = &APIResponse{Operation: "EntitlementsPartialUpdate", Method: localVarHttpMethod, RequestURL: localVarURL.String()} - if localVarHttpResponse != nil { - localVarAPIResponse.Response = localVarHttpResponse.RawResponse - localVarAPIResponse.Payload = localVarHttpResponse.Body() - } - - if err != nil { - return successPayload, localVarAPIResponse, err - } - err = json.Unmarshal(localVarHttpResponse.Body(), &successPayload) - return successPayload, localVarAPIResponse, err -} - -/** - * Get a specific entitlement in a repository. - * Get a specific entitlement in a repository. - * - * @param owner - * @param repo - * @param identifier - * @param showTokens Show entitlement token strings in results - * @return *RepositoryToken - */ -func (a EntitlementsApi) EntitlementsRead(owner string, repo string, identifier string, showTokens bool) (*RepositoryToken, *APIResponse, error) { - - var localVarHttpMethod = strings.ToUpper("Get") - // create path and map variables - localVarPath := a.Configuration.BasePath + "/entitlements/{owner}/{repo}/{identifier}/" - localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) - localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) - localVarPath = strings.Replace(localVarPath, "{"+"identifier"+"}", fmt.Sprintf("%v", identifier), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := make(map[string]string) - var localVarPostBody interface{} - var localVarFileName string - var localVarFileBytes []byte - // authentication '(apikey)' required - // set key with prefix in header - localVarHeaderParams["X-Api-Key"] = a.Configuration.GetAPIKeyWithPrefix("X-Api-Key") - // add default headers if any - for key := range a.Configuration.DefaultHeader { - localVarHeaderParams[key] = a.Configuration.DefaultHeader[key] - } - localVarQueryParams.Add("show_tokens", a.Configuration.APIClient.ParameterToString(showTokens, "")) - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload = new(RepositoryToken) - localVarHttpResponse, err := a.Configuration.APIClient.CallAPI(localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - - var localVarURL, _ = url.Parse(localVarPath) - localVarURL.RawQuery = localVarQueryParams.Encode() - var localVarAPIResponse = &APIResponse{Operation: "EntitlementsRead", Method: localVarHttpMethod, RequestURL: localVarURL.String()} - if localVarHttpResponse != nil { - localVarAPIResponse.Response = localVarHttpResponse.RawResponse - localVarAPIResponse.Payload = localVarHttpResponse.Body() - } - - if err != nil { - return successPayload, localVarAPIResponse, err - } - err = json.Unmarshal(localVarHttpResponse.Body(), &successPayload) - return successPayload, localVarAPIResponse, err -} - -/** - * Refresh an entitlement token in a repository. - * Refresh an entitlement token in a repository. - * - * @param owner - * @param repo - * @param identifier - * @param showTokens Show entitlement token strings in results - * @param data - * @return *RepositoryTokenRefresh - */ -func (a EntitlementsApi) EntitlementsRefresh(owner string, repo string, identifier string, showTokens bool, data EntitlementsRefresh) (*RepositoryTokenRefresh, *APIResponse, error) { - - var localVarHttpMethod = strings.ToUpper("Post") - // create path and map variables - localVarPath := a.Configuration.BasePath + "/entitlements/{owner}/{repo}/{identifier}/refresh/" - localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) - localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) - localVarPath = strings.Replace(localVarPath, "{"+"identifier"+"}", fmt.Sprintf("%v", identifier), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := make(map[string]string) - var localVarPostBody interface{} - var localVarFileName string - var localVarFileBytes []byte - // authentication '(apikey)' required - // set key with prefix in header - localVarHeaderParams["X-Api-Key"] = a.Configuration.GetAPIKeyWithPrefix("X-Api-Key") - // add default headers if any - for key := range a.Configuration.DefaultHeader { - localVarHeaderParams[key] = a.Configuration.DefaultHeader[key] - } - localVarQueryParams.Add("show_tokens", a.Configuration.APIClient.ParameterToString(showTokens, "")) - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - // body params - localVarPostBody = &data - var successPayload = new(RepositoryTokenRefresh) - localVarHttpResponse, err := a.Configuration.APIClient.CallAPI(localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - - var localVarURL, _ = url.Parse(localVarPath) - localVarURL.RawQuery = localVarQueryParams.Encode() - var localVarAPIResponse = &APIResponse{Operation: "EntitlementsRefresh", Method: localVarHttpMethod, RequestURL: localVarURL.String()} - if localVarHttpResponse != nil { - localVarAPIResponse.Response = localVarHttpResponse.RawResponse - localVarAPIResponse.Payload = localVarHttpResponse.Body() - } - - if err != nil { - return successPayload, localVarAPIResponse, err - } - err = json.Unmarshal(localVarHttpResponse.Body(), &successPayload) - return successPayload, localVarAPIResponse, err -} - -/** - * Reset the statistics for an entitlement token in a repository. - * Reset the statistics for an entitlement token in a repository. - * - * @param owner - * @param repo - * @param identifier - * @param showTokens Show entitlement token strings in results - * @return void - */ -func (a EntitlementsApi) EntitlementsReset(owner string, repo string, identifier string, showTokens bool) (*APIResponse, error) { - - var localVarHttpMethod = strings.ToUpper("Post") - // create path and map variables - localVarPath := a.Configuration.BasePath + "/entitlements/{owner}/{repo}/{identifier}/reset/" - localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) - localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) - localVarPath = strings.Replace(localVarPath, "{"+"identifier"+"}", fmt.Sprintf("%v", identifier), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := make(map[string]string) - var localVarPostBody interface{} - var localVarFileName string - var localVarFileBytes []byte - // authentication '(apikey)' required - // set key with prefix in header - localVarHeaderParams["X-Api-Key"] = a.Configuration.GetAPIKeyWithPrefix("X-Api-Key") - // add default headers if any - for key := range a.Configuration.DefaultHeader { - localVarHeaderParams[key] = a.Configuration.DefaultHeader[key] - } - localVarQueryParams.Add("show_tokens", a.Configuration.APIClient.ParameterToString(showTokens, "")) - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - localVarHttpResponse, err := a.Configuration.APIClient.CallAPI(localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - - var localVarURL, _ = url.Parse(localVarPath) - localVarURL.RawQuery = localVarQueryParams.Encode() - var localVarAPIResponse = &APIResponse{Operation: "EntitlementsReset", Method: localVarHttpMethod, RequestURL: localVarURL.String()} - if localVarHttpResponse != nil { - localVarAPIResponse.Response = localVarHttpResponse.RawResponse - localVarAPIResponse.Payload = localVarHttpResponse.Body() - } - - if err != nil { - return localVarAPIResponse, err - } - return localVarAPIResponse, err -} - -/** - * Synchronise tokens from a source repository. - * Synchronise tokens from a source repository. - * - * @param owner - * @param repo - * @param showTokens Show entitlement token strings in results - * @param data - * @return *RepositoryTokenSync - */ -func (a EntitlementsApi) EntitlementsSync(owner string, repo string, showTokens bool, data EntitlementsSync) (*RepositoryTokenSync, *APIResponse, error) { - - var localVarHttpMethod = strings.ToUpper("Post") - // create path and map variables - localVarPath := a.Configuration.BasePath + "/entitlements/{owner}/{repo}/sync/" - localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) - localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := make(map[string]string) - var localVarPostBody interface{} - var localVarFileName string - var localVarFileBytes []byte - // authentication '(apikey)' required - // set key with prefix in header - localVarHeaderParams["X-Api-Key"] = a.Configuration.GetAPIKeyWithPrefix("X-Api-Key") - // add default headers if any - for key := range a.Configuration.DefaultHeader { - localVarHeaderParams[key] = a.Configuration.DefaultHeader[key] - } - localVarQueryParams.Add("show_tokens", a.Configuration.APIClient.ParameterToString(showTokens, "")) - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - // body params - localVarPostBody = &data - var successPayload = new(RepositoryTokenSync) - localVarHttpResponse, err := a.Configuration.APIClient.CallAPI(localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - - var localVarURL, _ = url.Parse(localVarPath) - localVarURL.RawQuery = localVarQueryParams.Encode() - var localVarAPIResponse = &APIResponse{Operation: "EntitlementsSync", Method: localVarHttpMethod, RequestURL: localVarURL.String()} - if localVarHttpResponse != nil { - localVarAPIResponse.Response = localVarHttpResponse.RawResponse - localVarAPIResponse.Payload = localVarHttpResponse.Body() - } - - if err != nil { - return successPayload, localVarAPIResponse, err - } - err = json.Unmarshal(localVarHttpResponse.Body(), &successPayload) - return successPayload, localVarAPIResponse, err -} - diff --git a/bindings/go/src/files_api.go b/bindings/go/src/files_api.go deleted file mode 100644 index 3442f19e..00000000 --- a/bindings/go/src/files_api.go +++ /dev/null @@ -1,378 +0,0 @@ -/* - * Cloudsmith API - * - * The API to the Cloudsmith Service - * - * OpenAPI spec version: v1 - * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -package cloudsmith_api - -import ( - "net/url" - "strings" - "encoding/json" - "fmt" -) - -type FilesApi struct { - Configuration *Configuration -} - -func NewFilesApi() *FilesApi { - configuration := NewConfiguration() - return &FilesApi{ - Configuration: configuration, - } -} - -func NewFilesApiWithBasePath(basePath string) *FilesApi { - configuration := NewConfiguration() - configuration.BasePath = basePath - - return &FilesApi{ - Configuration: configuration, - } -} - -/** - * Abort a multipart file upload. - * Abort a multipart file upload. - * - * @param owner - * @param repo - * @param identifier - * @param data - * @return void - */ -func (a FilesApi) FilesAbort(owner string, repo string, identifier string, data FilesAbort) (*APIResponse, error) { - - var localVarHttpMethod = strings.ToUpper("Post") - // create path and map variables - localVarPath := a.Configuration.BasePath + "/files/{owner}/{repo}/{identifier}/abort/" - localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) - localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) - localVarPath = strings.Replace(localVarPath, "{"+"identifier"+"}", fmt.Sprintf("%v", identifier), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := make(map[string]string) - var localVarPostBody interface{} - var localVarFileName string - var localVarFileBytes []byte - // authentication '(apikey)' required - // set key with prefix in header - localVarHeaderParams["X-Api-Key"] = a.Configuration.GetAPIKeyWithPrefix("X-Api-Key") - // add default headers if any - for key := range a.Configuration.DefaultHeader { - localVarHeaderParams[key] = a.Configuration.DefaultHeader[key] - } - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - // body params - localVarPostBody = &data - localVarHttpResponse, err := a.Configuration.APIClient.CallAPI(localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - - var localVarURL, _ = url.Parse(localVarPath) - localVarURL.RawQuery = localVarQueryParams.Encode() - var localVarAPIResponse = &APIResponse{Operation: "FilesAbort", Method: localVarHttpMethod, RequestURL: localVarURL.String()} - if localVarHttpResponse != nil { - localVarAPIResponse.Response = localVarHttpResponse.RawResponse - localVarAPIResponse.Payload = localVarHttpResponse.Body() - } - - if err != nil { - return localVarAPIResponse, err - } - return localVarAPIResponse, err -} - -/** - * Complete a multipart file upload. - * Complete a multipart file upload. - * - * @param owner - * @param repo - * @param identifier - * @param data - * @return *PackageFileUpload - */ -func (a FilesApi) FilesComplete(owner string, repo string, identifier string, data FilesComplete) (*PackageFileUpload, *APIResponse, error) { - - var localVarHttpMethod = strings.ToUpper("Post") - // create path and map variables - localVarPath := a.Configuration.BasePath + "/files/{owner}/{repo}/{identifier}/complete/" - localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) - localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) - localVarPath = strings.Replace(localVarPath, "{"+"identifier"+"}", fmt.Sprintf("%v", identifier), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := make(map[string]string) - var localVarPostBody interface{} - var localVarFileName string - var localVarFileBytes []byte - // authentication '(apikey)' required - // set key with prefix in header - localVarHeaderParams["X-Api-Key"] = a.Configuration.GetAPIKeyWithPrefix("X-Api-Key") - // add default headers if any - for key := range a.Configuration.DefaultHeader { - localVarHeaderParams[key] = a.Configuration.DefaultHeader[key] - } - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - // body params - localVarPostBody = &data - var successPayload = new(PackageFileUpload) - localVarHttpResponse, err := a.Configuration.APIClient.CallAPI(localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - - var localVarURL, _ = url.Parse(localVarPath) - localVarURL.RawQuery = localVarQueryParams.Encode() - var localVarAPIResponse = &APIResponse{Operation: "FilesComplete", Method: localVarHttpMethod, RequestURL: localVarURL.String()} - if localVarHttpResponse != nil { - localVarAPIResponse.Response = localVarHttpResponse.RawResponse - localVarAPIResponse.Payload = localVarHttpResponse.Body() - } - - if err != nil { - return successPayload, localVarAPIResponse, err - } - err = json.Unmarshal(localVarHttpResponse.Body(), &successPayload) - return successPayload, localVarAPIResponse, err -} - -/** - * Request URL(s) to upload new package file upload(s) to. - * Request URL(s) to upload new package file upload(s) to. - * - * @param owner - * @param repo - * @param data - * @return *PackageFileUpload - */ -func (a FilesApi) FilesCreate(owner string, repo string, data FilesCreate) (*PackageFileUpload, *APIResponse, error) { - - var localVarHttpMethod = strings.ToUpper("Post") - // create path and map variables - localVarPath := a.Configuration.BasePath + "/files/{owner}/{repo}/" - localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) - localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := make(map[string]string) - var localVarPostBody interface{} - var localVarFileName string - var localVarFileBytes []byte - // authentication '(apikey)' required - // set key with prefix in header - localVarHeaderParams["X-Api-Key"] = a.Configuration.GetAPIKeyWithPrefix("X-Api-Key") - // add default headers if any - for key := range a.Configuration.DefaultHeader { - localVarHeaderParams[key] = a.Configuration.DefaultHeader[key] - } - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - // body params - localVarPostBody = &data - var successPayload = new(PackageFileUpload) - localVarHttpResponse, err := a.Configuration.APIClient.CallAPI(localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - - var localVarURL, _ = url.Parse(localVarPath) - localVarURL.RawQuery = localVarQueryParams.Encode() - var localVarAPIResponse = &APIResponse{Operation: "FilesCreate", Method: localVarHttpMethod, RequestURL: localVarURL.String()} - if localVarHttpResponse != nil { - localVarAPIResponse.Response = localVarHttpResponse.RawResponse - localVarAPIResponse.Payload = localVarHttpResponse.Body() - } - - if err != nil { - return successPayload, localVarAPIResponse, err - } - err = json.Unmarshal(localVarHttpResponse.Body(), &successPayload) - return successPayload, localVarAPIResponse, err -} - -/** - * Get upload information for a multipart file upload. - * Get upload information for a multipart file upload. - * - * @param owner - * @param repo - * @param identifier - * @return *PackageFilePartsUpload - */ -func (a FilesApi) FilesInfo(owner string, repo string, identifier string) (*PackageFilePartsUpload, *APIResponse, error) { - - var localVarHttpMethod = strings.ToUpper("Get") - // create path and map variables - localVarPath := a.Configuration.BasePath + "/files/{owner}/{repo}/{identifier}/info/" - localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) - localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) - localVarPath = strings.Replace(localVarPath, "{"+"identifier"+"}", fmt.Sprintf("%v", identifier), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := make(map[string]string) - var localVarPostBody interface{} - var localVarFileName string - var localVarFileBytes []byte - // authentication '(apikey)' required - // set key with prefix in header - localVarHeaderParams["X-Api-Key"] = a.Configuration.GetAPIKeyWithPrefix("X-Api-Key") - // add default headers if any - for key := range a.Configuration.DefaultHeader { - localVarHeaderParams[key] = a.Configuration.DefaultHeader[key] - } - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload = new(PackageFilePartsUpload) - localVarHttpResponse, err := a.Configuration.APIClient.CallAPI(localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - - var localVarURL, _ = url.Parse(localVarPath) - localVarURL.RawQuery = localVarQueryParams.Encode() - var localVarAPIResponse = &APIResponse{Operation: "FilesInfo", Method: localVarHttpMethod, RequestURL: localVarURL.String()} - if localVarHttpResponse != nil { - localVarAPIResponse.Response = localVarHttpResponse.RawResponse - localVarAPIResponse.Payload = localVarHttpResponse.Body() - } - - if err != nil { - return successPayload, localVarAPIResponse, err - } - err = json.Unmarshal(localVarHttpResponse.Body(), &successPayload) - return successPayload, localVarAPIResponse, err -} - -/** - * Validate parameters used for create. - * Validate parameters used for create. - * - * @param owner - * @param repo - * @param data - * @return void - */ -func (a FilesApi) FilesValidate(owner string, repo string, data FilesValidate) (*APIResponse, error) { - - var localVarHttpMethod = strings.ToUpper("Post") - // create path and map variables - localVarPath := a.Configuration.BasePath + "/files/{owner}/{repo}/validate/" - localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) - localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := make(map[string]string) - var localVarPostBody interface{} - var localVarFileName string - var localVarFileBytes []byte - // authentication '(apikey)' required - // set key with prefix in header - localVarHeaderParams["X-Api-Key"] = a.Configuration.GetAPIKeyWithPrefix("X-Api-Key") - // add default headers if any - for key := range a.Configuration.DefaultHeader { - localVarHeaderParams[key] = a.Configuration.DefaultHeader[key] - } - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - // body params - localVarPostBody = &data - localVarHttpResponse, err := a.Configuration.APIClient.CallAPI(localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - - var localVarURL, _ = url.Parse(localVarPath) - localVarURL.RawQuery = localVarQueryParams.Encode() - var localVarAPIResponse = &APIResponse{Operation: "FilesValidate", Method: localVarHttpMethod, RequestURL: localVarURL.String()} - if localVarHttpResponse != nil { - localVarAPIResponse.Response = localVarHttpResponse.RawResponse - localVarAPIResponse.Payload = localVarHttpResponse.Body() - } - - if err != nil { - return localVarAPIResponse, err - } - return localVarAPIResponse, err -} - diff --git a/bindings/go/src/formats_api.go b/bindings/go/src/formats_api.go deleted file mode 100644 index ee13228a..00000000 --- a/bindings/go/src/formats_api.go +++ /dev/null @@ -1,163 +0,0 @@ -/* - * Cloudsmith API - * - * The API to the Cloudsmith Service - * - * OpenAPI spec version: v1 - * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -package cloudsmith_api - -import ( - "net/url" - "strings" - "encoding/json" - "fmt" -) - -type FormatsApi struct { - Configuration *Configuration -} - -func NewFormatsApi() *FormatsApi { - configuration := NewConfiguration() - return &FormatsApi{ - Configuration: configuration, - } -} - -func NewFormatsApiWithBasePath(basePath string) *FormatsApi { - configuration := NewConfiguration() - configuration.BasePath = basePath - - return &FormatsApi{ - Configuration: configuration, - } -} - -/** - * Get a list of all supported package formats. - * Get a list of all supported package formats. - * - * @return []Format - */ -func (a FormatsApi) FormatsList() ([]Format, *APIResponse, error) { - - var localVarHttpMethod = strings.ToUpper("Get") - // create path and map variables - localVarPath := a.Configuration.BasePath + "/formats/" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := make(map[string]string) - var localVarPostBody interface{} - var localVarFileName string - var localVarFileBytes []byte - // authentication '(apikey)' required - // set key with prefix in header - localVarHeaderParams["X-Api-Key"] = a.Configuration.GetAPIKeyWithPrefix("X-Api-Key") - // add default headers if any - for key := range a.Configuration.DefaultHeader { - localVarHeaderParams[key] = a.Configuration.DefaultHeader[key] - } - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload = new([]Format) - localVarHttpResponse, err := a.Configuration.APIClient.CallAPI(localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - - var localVarURL, _ = url.Parse(localVarPath) - localVarURL.RawQuery = localVarQueryParams.Encode() - var localVarAPIResponse = &APIResponse{Operation: "FormatsList", Method: localVarHttpMethod, RequestURL: localVarURL.String()} - if localVarHttpResponse != nil { - localVarAPIResponse.Response = localVarHttpResponse.RawResponse - localVarAPIResponse.Payload = localVarHttpResponse.Body() - } - - if err != nil { - return *successPayload, localVarAPIResponse, err - } - err = json.Unmarshal(localVarHttpResponse.Body(), &successPayload) - return *successPayload, localVarAPIResponse, err -} - -/** - * Get a specific supported package format. - * Get a specific supported package format. - * - * @param slug - * @return *Format - */ -func (a FormatsApi) FormatsRead(slug string) (*Format, *APIResponse, error) { - - var localVarHttpMethod = strings.ToUpper("Get") - // create path and map variables - localVarPath := a.Configuration.BasePath + "/formats/{slug}/" - localVarPath = strings.Replace(localVarPath, "{"+"slug"+"}", fmt.Sprintf("%v", slug), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := make(map[string]string) - var localVarPostBody interface{} - var localVarFileName string - var localVarFileBytes []byte - // authentication '(apikey)' required - // set key with prefix in header - localVarHeaderParams["X-Api-Key"] = a.Configuration.GetAPIKeyWithPrefix("X-Api-Key") - // add default headers if any - for key := range a.Configuration.DefaultHeader { - localVarHeaderParams[key] = a.Configuration.DefaultHeader[key] - } - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload = new(Format) - localVarHttpResponse, err := a.Configuration.APIClient.CallAPI(localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - - var localVarURL, _ = url.Parse(localVarPath) - localVarURL.RawQuery = localVarQueryParams.Encode() - var localVarAPIResponse = &APIResponse{Operation: "FormatsRead", Method: localVarHttpMethod, RequestURL: localVarURL.String()} - if localVarHttpResponse != nil { - localVarAPIResponse.Response = localVarHttpResponse.RawResponse - localVarAPIResponse.Payload = localVarHttpResponse.Body() - } - - if err != nil { - return successPayload, localVarAPIResponse, err - } - err = json.Unmarshal(localVarHttpResponse.Body(), &successPayload) - return successPayload, localVarAPIResponse, err -} - diff --git a/bindings/go/src/git_push.sh b/bindings/go/src/git_push.sh index bb3f01ed..4fda2ff0 100644 --- a/bindings/go/src/git_push.sh +++ b/bindings/go/src/git_push.sh @@ -36,7 +36,7 @@ git_remote=`git remote` if [ "$git_remote" = "" ]; then # git remote not defined if [ "$GIT_TOKEN" = "" ]; then - echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git crediential in your environment." + echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git else git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git diff --git a/bindings/go/src/metrics_api.go b/bindings/go/src/metrics_api.go deleted file mode 100644 index 539d8fb6..00000000 --- a/bindings/go/src/metrics_api.go +++ /dev/null @@ -1,262 +0,0 @@ -/* - * Cloudsmith API - * - * The API to the Cloudsmith Service - * - * OpenAPI spec version: v1 - * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -package cloudsmith_api - -import ( - "net/url" - "strings" - "encoding/json" - "fmt" -) - -type MetricsApi struct { - Configuration *Configuration -} - -func NewMetricsApi() *MetricsApi { - configuration := NewConfiguration() - return &MetricsApi{ - Configuration: configuration, - } -} - -func NewMetricsApiWithBasePath(basePath string) *MetricsApi { - configuration := NewConfiguration() - configuration.BasePath = basePath - - return &MetricsApi{ - Configuration: configuration, - } -} - -/** - * View for listing entitlement token metrics, across an account. - * View for listing entitlement token metrics, across an account. - * - * @param owner - * @param page A page number within the paginated result set. - * @param pageSize Number of results to return per page. - * @param finish Include metrics upto and including this UTC date or UTC datetime. For example '2020-12-31' or '2021-12-13T00:00:00Z'. - * @param start Include metrics from and including this UTC date or UTC datetime. For example '2020-12-31' or '2021-12-13T00:00:00Z'. - * @param tokens A comma seperated list of tokens (slug perm) to include in the results. - * @return *EntitlementUsageMetrics - */ -func (a MetricsApi) MetricsEntitlementsList(owner string, page int32, pageSize int32, finish string, start string, tokens string) (*EntitlementUsageMetrics, *APIResponse, error) { - - var localVarHttpMethod = strings.ToUpper("Get") - // create path and map variables - localVarPath := a.Configuration.BasePath + "/metrics/entitlements/{owner}/" - localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := make(map[string]string) - var localVarPostBody interface{} - var localVarFileName string - var localVarFileBytes []byte - // authentication '(apikey)' required - // set key with prefix in header - localVarHeaderParams["X-Api-Key"] = a.Configuration.GetAPIKeyWithPrefix("X-Api-Key") - // add default headers if any - for key := range a.Configuration.DefaultHeader { - localVarHeaderParams[key] = a.Configuration.DefaultHeader[key] - } - localVarQueryParams.Add("page", a.Configuration.APIClient.ParameterToString(page, "")) - localVarQueryParams.Add("page_size", a.Configuration.APIClient.ParameterToString(pageSize, "")) - localVarQueryParams.Add("finish", a.Configuration.APIClient.ParameterToString(finish, "")) - localVarQueryParams.Add("start", a.Configuration.APIClient.ParameterToString(start, "")) - localVarQueryParams.Add("tokens", a.Configuration.APIClient.ParameterToString(tokens, "")) - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload = new(EntitlementUsageMetrics) - localVarHttpResponse, err := a.Configuration.APIClient.CallAPI(localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - - var localVarURL, _ = url.Parse(localVarPath) - localVarURL.RawQuery = localVarQueryParams.Encode() - var localVarAPIResponse = &APIResponse{Operation: "MetricsEntitlementsList", Method: localVarHttpMethod, RequestURL: localVarURL.String()} - if localVarHttpResponse != nil { - localVarAPIResponse.Response = localVarHttpResponse.RawResponse - localVarAPIResponse.Payload = localVarHttpResponse.Body() - } - - if err != nil { - return successPayload, localVarAPIResponse, err - } - err = json.Unmarshal(localVarHttpResponse.Body(), &successPayload) - return successPayload, localVarAPIResponse, err -} - -/** - * View for listing entitlement token metrics, for a repository. - * View for listing entitlement token metrics, for a repository. - * - * @param owner - * @param repo - * @param page A page number within the paginated result set. - * @param pageSize Number of results to return per page. - * @param finish Include metrics upto and including this UTC date or UTC datetime. For example '2020-12-31' or '2021-12-13T00:00:00Z'. - * @param start Include metrics from and including this UTC date or UTC datetime. For example '2020-12-31' or '2021-12-13T00:00:00Z'. - * @param tokens A comma seperated list of tokens (slug perm) to include in the results. - * @return *EntitlementUsageMetrics - */ -func (a MetricsApi) MetricsEntitlementsList0(owner string, repo string, page int32, pageSize int32, finish string, start string, tokens string) (*EntitlementUsageMetrics, *APIResponse, error) { - - var localVarHttpMethod = strings.ToUpper("Get") - // create path and map variables - localVarPath := a.Configuration.BasePath + "/metrics/entitlements/{owner}/{repo}/" - localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) - localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := make(map[string]string) - var localVarPostBody interface{} - var localVarFileName string - var localVarFileBytes []byte - // authentication '(apikey)' required - // set key with prefix in header - localVarHeaderParams["X-Api-Key"] = a.Configuration.GetAPIKeyWithPrefix("X-Api-Key") - // add default headers if any - for key := range a.Configuration.DefaultHeader { - localVarHeaderParams[key] = a.Configuration.DefaultHeader[key] - } - localVarQueryParams.Add("page", a.Configuration.APIClient.ParameterToString(page, "")) - localVarQueryParams.Add("page_size", a.Configuration.APIClient.ParameterToString(pageSize, "")) - localVarQueryParams.Add("finish", a.Configuration.APIClient.ParameterToString(finish, "")) - localVarQueryParams.Add("start", a.Configuration.APIClient.ParameterToString(start, "")) - localVarQueryParams.Add("tokens", a.Configuration.APIClient.ParameterToString(tokens, "")) - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload = new(EntitlementUsageMetrics) - localVarHttpResponse, err := a.Configuration.APIClient.CallAPI(localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - - var localVarURL, _ = url.Parse(localVarPath) - localVarURL.RawQuery = localVarQueryParams.Encode() - var localVarAPIResponse = &APIResponse{Operation: "MetricsEntitlementsList0", Method: localVarHttpMethod, RequestURL: localVarURL.String()} - if localVarHttpResponse != nil { - localVarAPIResponse.Response = localVarHttpResponse.RawResponse - localVarAPIResponse.Payload = localVarHttpResponse.Body() - } - - if err != nil { - return successPayload, localVarAPIResponse, err - } - err = json.Unmarshal(localVarHttpResponse.Body(), &successPayload) - return successPayload, localVarAPIResponse, err -} - -/** - * View for listing package usage metrics, for a repository. - * View for listing package usage metrics, for a repository. - * - * @param owner - * @param repo - * @param page A page number within the paginated result set. - * @param pageSize Number of results to return per page. - * @param finish Include metrics upto and including this UTC date or UTC datetime. For example '2020-12-31' or '2021-12-13T00:00:00Z'. - * @param packages A comma seperated list of packages (slug perm) to include in the results. - * @param start Include metrics from and including this UTC date or UTC datetime. For example '2020-12-31' or '2021-12-13T00:00:00Z'. - * @return *PackageUsageMetrics - */ -func (a MetricsApi) MetricsPackagesList(owner string, repo string, page int32, pageSize int32, finish string, packages string, start string) (*PackageUsageMetrics, *APIResponse, error) { - - var localVarHttpMethod = strings.ToUpper("Get") - // create path and map variables - localVarPath := a.Configuration.BasePath + "/metrics/packages/{owner}/{repo}/" - localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) - localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := make(map[string]string) - var localVarPostBody interface{} - var localVarFileName string - var localVarFileBytes []byte - // authentication '(apikey)' required - // set key with prefix in header - localVarHeaderParams["X-Api-Key"] = a.Configuration.GetAPIKeyWithPrefix("X-Api-Key") - // add default headers if any - for key := range a.Configuration.DefaultHeader { - localVarHeaderParams[key] = a.Configuration.DefaultHeader[key] - } - localVarQueryParams.Add("page", a.Configuration.APIClient.ParameterToString(page, "")) - localVarQueryParams.Add("page_size", a.Configuration.APIClient.ParameterToString(pageSize, "")) - localVarQueryParams.Add("finish", a.Configuration.APIClient.ParameterToString(finish, "")) - localVarQueryParams.Add("packages", a.Configuration.APIClient.ParameterToString(packages, "")) - localVarQueryParams.Add("start", a.Configuration.APIClient.ParameterToString(start, "")) - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload = new(PackageUsageMetrics) - localVarHttpResponse, err := a.Configuration.APIClient.CallAPI(localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - - var localVarURL, _ = url.Parse(localVarPath) - localVarURL.RawQuery = localVarQueryParams.Encode() - var localVarAPIResponse = &APIResponse{Operation: "MetricsPackagesList", Method: localVarHttpMethod, RequestURL: localVarURL.String()} - if localVarHttpResponse != nil { - localVarAPIResponse.Response = localVarHttpResponse.RawResponse - localVarAPIResponse.Payload = localVarHttpResponse.Body() - } - - if err != nil { - return successPayload, localVarAPIResponse, err - } - err = json.Unmarshal(localVarHttpResponse.Body(), &successPayload) - return successPayload, localVarAPIResponse, err -} - diff --git a/bindings/go/src/alpine_package_upload.go b/bindings/go/src/model_alpine_package_upload.go similarity index 96% rename from bindings/go/src/alpine_package_upload.go rename to bindings/go/src/model_alpine_package_upload.go index f3d34bdc..ca49e011 100644 --- a/bindings/go/src/alpine_package_upload.go +++ b/bindings/go/src/model_alpine_package_upload.go @@ -1,206 +1,142 @@ -/* +/* * Cloudsmith API * * The API to the Cloudsmith Service * - * OpenAPI spec version: v1 + * API version: v1 * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package cloudsmith_api type AlpinePackageUpload struct { - // Architectures []PackagesownerrepoArchitectures `json:"architectures,omitempty"` - // CdnUrl string `json:"cdn_url,omitempty"` - // ChecksumMd5 string `json:"checksum_md5,omitempty"` - // ChecksumSha1 string `json:"checksum_sha1,omitempty"` - // ChecksumSha256 string `json:"checksum_sha256,omitempty"` - // ChecksumSha512 string `json:"checksum_sha512,omitempty"` - // A checksum of all of the package's dependencies. DependenciesChecksumMd5 string `json:"dependencies_checksum_md5,omitempty"` - // DependenciesUrl string `json:"dependencies_url,omitempty"` - // A textual description of this package. Description string `json:"description,omitempty"` - // Distro interface{} `json:"distro,omitempty"` - // DistroVersion interface{} `json:"distro_version,omitempty"` - // Downloads int32 `json:"downloads,omitempty"` - // The epoch of the package version (if any). Epoch int32 `json:"epoch,omitempty"` - // Extension string `json:"extension,omitempty"` - // Filename string `json:"filename,omitempty"` - // Files []PackagesownerrepoFiles `json:"files,omitempty"` - // Format string `json:"format,omitempty"` - // FormatUrl string `json:"format_url,omitempty"` - // Unique and permanent identifier for the package. IdentifierPerm string `json:"identifier_perm,omitempty"` - // Indexed bool `json:"indexed,omitempty"` - // IsSyncAwaiting bool `json:"is_sync_awaiting,omitempty"` - // IsSyncCompleted bool `json:"is_sync_completed,omitempty"` - // IsSyncFailed bool `json:"is_sync_failed,omitempty"` - // IsSyncInFlight bool `json:"is_sync_in_flight,omitempty"` - // IsSyncInProgress bool `json:"is_sync_in_progress,omitempty"` - // The license of this package. License string `json:"license,omitempty"` - // The name of this package. Name string `json:"name,omitempty"` - // Namespace string `json:"namespace,omitempty"` - // NamespaceUrl string `json:"namespace_url,omitempty"` - // NumFiles int32 `json:"num_files,omitempty"` - // The type of package contents. PackageType string `json:"package_type,omitempty"` - // The release of the package version (if any). Release string `json:"release,omitempty"` - // Repository string `json:"repository,omitempty"` - // RepositoryUrl string `json:"repository_url,omitempty"` - // The datetime the security scanning was completed. SecurityScanCompletedAt string `json:"security_scan_completed_at,omitempty"` - // The datetime the security scanning was started. SecurityScanStartedAt string `json:"security_scan_started_at,omitempty"` - // SecurityScanStatus string `json:"security_scan_status,omitempty"` - // The datetime the security scanning status was updated. SecurityScanStatusUpdatedAt string `json:"security_scan_status_updated_at,omitempty"` - // SelfHtmlUrl string `json:"self_html_url,omitempty"` - // SelfUrl string `json:"self_url,omitempty"` - // SignatureUrl string `json:"signature_url,omitempty"` - // The calculated size of the package. Size int32 `json:"size,omitempty"` - // The public unique identifier for the package. Slug string `json:"slug,omitempty"` - // SlugPerm string `json:"slug_perm,omitempty"` - // The synchronisation (in progress) stage of the package. Stage string `json:"stage,omitempty"` - // StageStr string `json:"stage_str,omitempty"` - // The datetime the package stage was updated at. StageUpdatedAt string `json:"stage_updated_at,omitempty"` - // The synchronisation status of the package. Status string `json:"status,omitempty"` - // A textual description for the synchronous status reason (if any StatusReason string `json:"status_reason,omitempty"` - // StatusStr string `json:"status_str,omitempty"` - // The datetime the package status was updated at. StatusUpdatedAt string `json:"status_updated_at,omitempty"` - // StatusUrl string `json:"status_url,omitempty"` - // Subtype string `json:"subtype,omitempty"` - // A one-liner synopsis of this package. Summary string `json:"summary,omitempty"` - // The datetime the package sync was finished at. SyncFinishedAt string `json:"sync_finished_at,omitempty"` - // Synchronisation progress (from 0-100) SyncProgress int32 `json:"sync_progress,omitempty"` - // All immutable tags on the package, grouped by tag type. Immutable tags cannot be (easily) deleted. TagsImmutable interface{} `json:"tags_immutable,omitempty"` - // TypeDisplay string `json:"type_display,omitempty"` - // The date this package was uploaded. UploadedAt string `json:"uploaded_at,omitempty"` - // Uploader string `json:"uploader,omitempty"` - // UploaderUrl string `json:"uploader_url,omitempty"` - // The raw version for this package. Version string `json:"version,omitempty"` - // VersionOrig string `json:"version_orig,omitempty"` - // VulnerabilityScanResultsUrl string `json:"vulnerability_scan_results_url,omitempty"` } diff --git a/bindings/go/src/conan_package_upload.go b/bindings/go/src/model_conan_package_upload.go similarity index 96% rename from bindings/go/src/conan_package_upload.go rename to bindings/go/src/model_conan_package_upload.go index 0b6a2e08..d1828592 100644 --- a/bindings/go/src/conan_package_upload.go +++ b/bindings/go/src/model_conan_package_upload.go @@ -1,212 +1,146 @@ -/* +/* * Cloudsmith API * * The API to the Cloudsmith Service * - * OpenAPI spec version: v1 + * API version: v1 * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package cloudsmith_api type ConanPackageUpload struct { - // Architectures []PackagesownerrepoArchitectures `json:"architectures,omitempty"` - // CdnUrl string `json:"cdn_url,omitempty"` - // ChecksumMd5 string `json:"checksum_md5,omitempty"` - // ChecksumSha1 string `json:"checksum_sha1,omitempty"` - // ChecksumSha256 string `json:"checksum_sha256,omitempty"` - // ChecksumSha512 string `json:"checksum_sha512,omitempty"` - // Conan channel. ConanChannel string `json:"conan_channel,omitempty"` - // Conan prefix (User). ConanPrefix string `json:"conan_prefix,omitempty"` - // A checksum of all of the package's dependencies. DependenciesChecksumMd5 string `json:"dependencies_checksum_md5,omitempty"` - // DependenciesUrl string `json:"dependencies_url,omitempty"` - // A textual description of this package. Description string `json:"description,omitempty"` - // Distro interface{} `json:"distro,omitempty"` - // DistroVersion interface{} `json:"distro_version,omitempty"` - // Downloads int32 `json:"downloads,omitempty"` - // The epoch of the package version (if any). Epoch int32 `json:"epoch,omitempty"` - // Extension string `json:"extension,omitempty"` - // Filename string `json:"filename,omitempty"` - // Files []PackagesownerrepoFiles `json:"files,omitempty"` - // Format string `json:"format,omitempty"` - // FormatUrl string `json:"format_url,omitempty"` - // Unique and permanent identifier for the package. IdentifierPerm string `json:"identifier_perm,omitempty"` - // Indexed bool `json:"indexed,omitempty"` - // IsSyncAwaiting bool `json:"is_sync_awaiting,omitempty"` - // IsSyncCompleted bool `json:"is_sync_completed,omitempty"` - // IsSyncFailed bool `json:"is_sync_failed,omitempty"` - // IsSyncInFlight bool `json:"is_sync_in_flight,omitempty"` - // IsSyncInProgress bool `json:"is_sync_in_progress,omitempty"` - // The license of this package. License string `json:"license,omitempty"` - // The name of this package. Name string `json:"name,omitempty"` - // Namespace string `json:"namespace,omitempty"` - // NamespaceUrl string `json:"namespace_url,omitempty"` - // NumFiles int32 `json:"num_files,omitempty"` - // The type of package contents. PackageType string `json:"package_type,omitempty"` - // The release of the package version (if any). Release string `json:"release,omitempty"` - // Repository string `json:"repository,omitempty"` - // RepositoryUrl string `json:"repository_url,omitempty"` - // The datetime the security scanning was completed. SecurityScanCompletedAt string `json:"security_scan_completed_at,omitempty"` - // The datetime the security scanning was started. SecurityScanStartedAt string `json:"security_scan_started_at,omitempty"` - // SecurityScanStatus string `json:"security_scan_status,omitempty"` - // The datetime the security scanning status was updated. SecurityScanStatusUpdatedAt string `json:"security_scan_status_updated_at,omitempty"` - // SelfHtmlUrl string `json:"self_html_url,omitempty"` - // SelfUrl string `json:"self_url,omitempty"` - // SignatureUrl string `json:"signature_url,omitempty"` - // The calculated size of the package. Size int32 `json:"size,omitempty"` - // The public unique identifier for the package. Slug string `json:"slug,omitempty"` - // SlugPerm string `json:"slug_perm,omitempty"` - // The synchronisation (in progress) stage of the package. Stage string `json:"stage,omitempty"` - // StageStr string `json:"stage_str,omitempty"` - // The datetime the package stage was updated at. StageUpdatedAt string `json:"stage_updated_at,omitempty"` - // The synchronisation status of the package. Status string `json:"status,omitempty"` - // A textual description for the synchronous status reason (if any StatusReason string `json:"status_reason,omitempty"` - // StatusStr string `json:"status_str,omitempty"` - // The datetime the package status was updated at. StatusUpdatedAt string `json:"status_updated_at,omitempty"` - // StatusUrl string `json:"status_url,omitempty"` - // Subtype string `json:"subtype,omitempty"` - // A one-liner synopsis of this package. Summary string `json:"summary,omitempty"` - // The datetime the package sync was finished at. SyncFinishedAt string `json:"sync_finished_at,omitempty"` - // Synchronisation progress (from 0-100) SyncProgress int32 `json:"sync_progress,omitempty"` - // All immutable tags on the package, grouped by tag type. Immutable tags cannot be (easily) deleted. TagsImmutable interface{} `json:"tags_immutable,omitempty"` - // TypeDisplay string `json:"type_display,omitempty"` - // The date this package was uploaded. UploadedAt string `json:"uploaded_at,omitempty"` - // Uploader string `json:"uploader,omitempty"` - // UploaderUrl string `json:"uploader_url,omitempty"` - // The raw version for this package. Version string `json:"version,omitempty"` - // VersionOrig string `json:"version_orig,omitempty"` - // VulnerabilityScanResultsUrl string `json:"vulnerability_scan_results_url,omitempty"` } diff --git a/bindings/go/src/distribution.go b/bindings/go/src/model_distribution.go similarity index 84% rename from bindings/go/src/distribution.go rename to bindings/go/src/model_distribution.go index 26bf10c0..515509c8 100644 --- a/bindings/go/src/distribution.go +++ b/bindings/go/src/model_distribution.go @@ -1,35 +1,28 @@ -/* +/* * Cloudsmith API * * The API to the Cloudsmith Service * - * OpenAPI spec version: v1 + * API version: v1 * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package cloudsmith_api type Distribution struct { - // Format string `json:"format,omitempty"` - // FormatUrl string `json:"format_url,omitempty"` - // Name string `json:"name"` - // SelfUrl string `json:"self_url,omitempty"` - // The slug identifier for this distribution Slug string `json:"slug,omitempty"` - // Variants string `json:"variants,omitempty"` - // A list of the versions for this distribution Versions []DistrosVersions `json:"versions,omitempty"` } diff --git a/bindings/go/src/distros_versions.go b/bindings/go/src/model_distros_versions.go similarity index 74% rename from bindings/go/src/distros_versions.go rename to bindings/go/src/model_distros_versions.go index 0dc3184b..2deabf91 100644 --- a/bindings/go/src/distros_versions.go +++ b/bindings/go/src/model_distros_versions.go @@ -1,20 +1,18 @@ -/* +/* * Cloudsmith API * * The API to the Cloudsmith Service * - * OpenAPI spec version: v1 + * API version: v1 * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package cloudsmith_api type DistrosVersions struct { - // The textual name for this version. Name string `json:"name,omitempty"` - // The slug identifier for this version Slug string `json:"slug,omitempty"` } diff --git a/bindings/go/src/entitlement_usage_metrics.go b/bindings/go/src/model_entitlement_usage_metrics.go similarity index 65% rename from bindings/go/src/entitlement_usage_metrics.go rename to bindings/go/src/model_entitlement_usage_metrics.go index f70e2b5c..113358aa 100644 --- a/bindings/go/src/entitlement_usage_metrics.go +++ b/bindings/go/src/model_entitlement_usage_metrics.go @@ -1,17 +1,16 @@ -/* +/* * Cloudsmith API * * The API to the Cloudsmith Service * - * OpenAPI spec version: v1 + * API version: v1 * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package cloudsmith_api type EntitlementUsageMetrics struct { - // Tokens interface{} `json:"tokens"` } diff --git a/bindings/go/src/entitlements_create.go b/bindings/go/src/model_entitlements_create.go similarity index 96% rename from bindings/go/src/entitlements_create.go rename to bindings/go/src/model_entitlements_create.go index 13d447a3..803fd26b 100644 --- a/bindings/go/src/entitlements_create.go +++ b/bindings/go/src/model_entitlements_create.go @@ -1,59 +1,44 @@ -/* +/* * Cloudsmith API * * The API to the Cloudsmith Service * - * OpenAPI spec version: v1 + * API version: v1 * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package cloudsmith_api type EntitlementsCreate struct { - // If checked, a EULA acceptance is required for this token. EulaRequired bool `json:"eula_required,omitempty"` - // If enabled, the token will allow downloads based on configured restrictions (if any). IsActive bool `json:"is_active,omitempty"` - // The maximum download bandwidth allowed for the token. Values are expressed as the selected unit of bandwidth. Please note that since downloads are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point. LimitBandwidth int32 `json:"limit_bandwidth,omitempty"` - // None LimitBandwidthUnit string `json:"limit_bandwidth_unit,omitempty"` - // The starting date/time the token is allowed to be used from. LimitDateRangeFrom string `json:"limit_date_range_from,omitempty"` - // The ending date/time the token is allowed to be used until. LimitDateRangeTo string `json:"limit_date_range_to,omitempty"` - // The maximum number of unique clients allowed for the token. Please note that since clients are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point. LimitNumClients int32 `json:"limit_num_clients,omitempty"` - // The maximum number of downloads allowed for the token. Please note that since downloads are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point. LimitNumDownloads int32 `json:"limit_num_downloads,omitempty"` - // The package-based search query to apply to restrict downloads to. This uses the same syntax as the standard search used for repositories, and also supports boolean logic operators such as OR/AND/NOT and parentheses for grouping. This will still allow access to non-package files, such as metadata. LimitPackageQuery string `json:"limit_package_query,omitempty"` - // The path-based search query to apply to restrict downloads to. This supports boolean logic operators such as OR/AND/NOT and parentheses for grouping. The path evaluated does not include the domain name, the namespace, the entitlement code used, the package format, etc. and it always starts with a forward slash. LimitPathQuery string `json:"limit_path_query,omitempty"` - // None Metadata interface{} `json:"metadata,omitempty"` - // None Name string `json:"name"` - // The time at which the scheduled reset period has elapsed and the token limits were automatically reset to zero. ScheduledResetAt string `json:"scheduled_reset_at,omitempty"` - // None ScheduledResetPeriod string `json:"scheduled_reset_period,omitempty"` - // None Token string `json:"token,omitempty"` } diff --git a/bindings/go/src/entitlements_partial_update.go b/bindings/go/src/model_entitlements_partial_update.go similarity index 96% rename from bindings/go/src/entitlements_partial_update.go rename to bindings/go/src/model_entitlements_partial_update.go index 4a4b4c86..f9a2d4b2 100644 --- a/bindings/go/src/entitlements_partial_update.go +++ b/bindings/go/src/model_entitlements_partial_update.go @@ -1,59 +1,44 @@ -/* +/* * Cloudsmith API * * The API to the Cloudsmith Service * - * OpenAPI spec version: v1 + * API version: v1 * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package cloudsmith_api type EntitlementsPartialUpdate struct { - // If checked, a EULA acceptance is required for this token. EulaRequired bool `json:"eula_required,omitempty"` - // If enabled, the token will allow downloads based on configured restrictions (if any). IsActive bool `json:"is_active,omitempty"` - // The maximum download bandwidth allowed for the token. Values are expressed as the selected unit of bandwidth. Please note that since downloads are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point. LimitBandwidth int32 `json:"limit_bandwidth,omitempty"` - // None LimitBandwidthUnit string `json:"limit_bandwidth_unit,omitempty"` - // The starting date/time the token is allowed to be used from. LimitDateRangeFrom string `json:"limit_date_range_from,omitempty"` - // The ending date/time the token is allowed to be used until. LimitDateRangeTo string `json:"limit_date_range_to,omitempty"` - // The maximum number of unique clients allowed for the token. Please note that since clients are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point. LimitNumClients int32 `json:"limit_num_clients,omitempty"` - // The maximum number of downloads allowed for the token. Please note that since downloads are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point. LimitNumDownloads int32 `json:"limit_num_downloads,omitempty"` - // The package-based search query to apply to restrict downloads to. This uses the same syntax as the standard search used for repositories, and also supports boolean logic operators such as OR/AND/NOT and parentheses for grouping. This will still allow access to non-package files, such as metadata. LimitPackageQuery string `json:"limit_package_query,omitempty"` - // The path-based search query to apply to restrict downloads to. This supports boolean logic operators such as OR/AND/NOT and parentheses for grouping. The path evaluated does not include the domain name, the namespace, the entitlement code used, the package format, etc. and it always starts with a forward slash. LimitPathQuery string `json:"limit_path_query,omitempty"` - // None Metadata interface{} `json:"metadata,omitempty"` - // None Name string `json:"name,omitempty"` - // The time at which the scheduled reset period has elapsed and the token limits were automatically reset to zero. ScheduledResetAt string `json:"scheduled_reset_at,omitempty"` - // None ScheduledResetPeriod string `json:"scheduled_reset_period,omitempty"` - // None Token string `json:"token,omitempty"` } diff --git a/bindings/go/src/entitlements_refresh.go b/bindings/go/src/model_entitlements_refresh.go similarity index 96% rename from bindings/go/src/entitlements_refresh.go rename to bindings/go/src/model_entitlements_refresh.go index dec84291..ce785854 100644 --- a/bindings/go/src/entitlements_refresh.go +++ b/bindings/go/src/model_entitlements_refresh.go @@ -1,56 +1,42 @@ -/* +/* * Cloudsmith API * * The API to the Cloudsmith Service * - * OpenAPI spec version: v1 + * API version: v1 * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package cloudsmith_api type EntitlementsRefresh struct { - // If checked, a EULA acceptance is required for this token. EulaRequired bool `json:"eula_required,omitempty"` - // If enabled, the token will allow downloads based on configured restrictions (if any). IsActive bool `json:"is_active,omitempty"` - // The maximum download bandwidth allowed for the token. Values are expressed as the selected unit of bandwidth. Please note that since downloads are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point. LimitBandwidth int32 `json:"limit_bandwidth,omitempty"` - // None LimitBandwidthUnit string `json:"limit_bandwidth_unit,omitempty"` - // The starting date/time the token is allowed to be used from. LimitDateRangeFrom string `json:"limit_date_range_from,omitempty"` - // The ending date/time the token is allowed to be used until. LimitDateRangeTo string `json:"limit_date_range_to,omitempty"` - // The maximum number of unique clients allowed for the token. Please note that since clients are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point. LimitNumClients int32 `json:"limit_num_clients,omitempty"` - // The maximum number of downloads allowed for the token. Please note that since downloads are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point. LimitNumDownloads int32 `json:"limit_num_downloads,omitempty"` - // The package-based search query to apply to restrict downloads to. This uses the same syntax as the standard search used for repositories, and also supports boolean logic operators such as OR/AND/NOT and parentheses for grouping. This will still allow access to non-package files, such as metadata. LimitPackageQuery string `json:"limit_package_query,omitempty"` - // The path-based search query to apply to restrict downloads to. This supports boolean logic operators such as OR/AND/NOT and parentheses for grouping. The path evaluated does not include the domain name, the namespace, the entitlement code used, the package format, etc. and it always starts with a forward slash. LimitPathQuery string `json:"limit_path_query,omitempty"` - // None Metadata interface{} `json:"metadata,omitempty"` - // The time at which the scheduled reset period has elapsed and the token limits were automatically reset to zero. ScheduledResetAt string `json:"scheduled_reset_at,omitempty"` - // None ScheduledResetPeriod string `json:"scheduled_reset_period,omitempty"` - // None Token string `json:"token,omitempty"` } diff --git a/bindings/go/src/entitlements_sync.go b/bindings/go/src/model_entitlements_sync.go similarity index 69% rename from bindings/go/src/entitlements_sync.go rename to bindings/go/src/model_entitlements_sync.go index 6c79904f..ec9f4af7 100644 --- a/bindings/go/src/entitlements_sync.go +++ b/bindings/go/src/model_entitlements_sync.go @@ -1,17 +1,16 @@ -/* +/* * Cloudsmith API * * The API to the Cloudsmith Service * - * OpenAPI spec version: v1 + * API version: v1 * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package cloudsmith_api type EntitlementsSync struct { - // The source repository slug (in the same owner namespace). Source string `json:"source"` } diff --git a/bindings/go/src/files_abort.go b/bindings/go/src/model_files_abort.go similarity index 83% rename from bindings/go/src/files_abort.go rename to bindings/go/src/model_files_abort.go index 81be90de..725b0298 100644 --- a/bindings/go/src/files_abort.go +++ b/bindings/go/src/model_files_abort.go @@ -1,26 +1,22 @@ -/* +/* * Cloudsmith API * * The API to the Cloudsmith Service * - * OpenAPI spec version: v1 + * API version: v1 * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package cloudsmith_api type FilesAbort struct { - // Filename for the package file upload. Filename string `json:"filename"` - // MD5 checksum for a POST-based package file upload. Md5Checksum string `json:"md5_checksum,omitempty"` - // The method to use for package file upload. Method string `json:"method,omitempty"` - // SHA256 checksum for a PUT-based package file upload. Sha256Checksum string `json:"sha256_checksum,omitempty"` } diff --git a/bindings/go/src/files_complete.go b/bindings/go/src/model_files_complete.go similarity index 83% rename from bindings/go/src/files_complete.go rename to bindings/go/src/model_files_complete.go index 332f254b..538e36d6 100644 --- a/bindings/go/src/files_complete.go +++ b/bindings/go/src/model_files_complete.go @@ -1,26 +1,22 @@ -/* +/* * Cloudsmith API * * The API to the Cloudsmith Service * - * OpenAPI spec version: v1 + * API version: v1 * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package cloudsmith_api type FilesComplete struct { - // Filename for the package file upload. Filename string `json:"filename"` - // MD5 checksum for a POST-based package file upload. Md5Checksum string `json:"md5_checksum,omitempty"` - // The method to use for package file upload. Method string `json:"method,omitempty"` - // SHA256 checksum for a PUT-based package file upload. Sha256Checksum string `json:"sha256_checksum,omitempty"` } diff --git a/bindings/go/src/files_create.go b/bindings/go/src/model_files_create.go similarity index 83% rename from bindings/go/src/files_create.go rename to bindings/go/src/model_files_create.go index 2bcf6d46..5079b9d1 100644 --- a/bindings/go/src/files_create.go +++ b/bindings/go/src/model_files_create.go @@ -1,26 +1,22 @@ -/* +/* * Cloudsmith API * * The API to the Cloudsmith Service * - * OpenAPI spec version: v1 + * API version: v1 * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package cloudsmith_api type FilesCreate struct { - // Filename for the package file upload. Filename string `json:"filename"` - // MD5 checksum for a POST-based package file upload. Md5Checksum string `json:"md5_checksum,omitempty"` - // The method to use for package file upload. Method string `json:"method,omitempty"` - // SHA256 checksum for a PUT-based package file upload. Sha256Checksum string `json:"sha256_checksum,omitempty"` } diff --git a/bindings/go/src/files_validate.go b/bindings/go/src/model_files_validate.go similarity index 83% rename from bindings/go/src/files_validate.go rename to bindings/go/src/model_files_validate.go index 6caecc25..7e2ecce4 100644 --- a/bindings/go/src/files_validate.go +++ b/bindings/go/src/model_files_validate.go @@ -1,26 +1,22 @@ -/* +/* * Cloudsmith API * * The API to the Cloudsmith Service * - * OpenAPI spec version: v1 + * API version: v1 * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package cloudsmith_api type FilesValidate struct { - // Filename for the package file upload. Filename string `json:"filename"` - // MD5 checksum for a POST-based package file upload. Md5Checksum string `json:"md5_checksum,omitempty"` - // The method to use for package file upload. Method string `json:"method,omitempty"` - // SHA256 checksum for a PUT-based package file upload. Sha256Checksum string `json:"sha256_checksum,omitempty"` } diff --git a/bindings/go/src/format.go b/bindings/go/src/model_format.go similarity index 89% rename from bindings/go/src/format.go rename to bindings/go/src/model_format.go index 3c72d0e9..888345f1 100644 --- a/bindings/go/src/format.go +++ b/bindings/go/src/model_format.go @@ -1,41 +1,32 @@ -/* +/* * Cloudsmith API * * The API to the Cloudsmith Service * - * OpenAPI spec version: v1 + * API version: v1 * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package cloudsmith_api type Format struct { - // Description of the package format Description string `json:"description"` - // The distributions supported by this package format Distributions []FormatsDistributions `json:"distributions,omitempty"` - // A non-exhaustive list of extensions supported Extensions []string `json:"extensions"` - // Name for the package format Name string `json:"name"` - // If true the package format is a premium-only feature Premium bool `json:"premium"` - // The minimum plan id required for this package format PremiumPlanId string `json:"premium_plan_id,omitempty"` - // The minimum plan name required for this package format PremiumPlanName string `json:"premium_plan_name,omitempty"` - // Slug for the package format Slug string `json:"slug"` - // A set of what the package format supports Supports interface{} `json:"supports"` } diff --git a/bindings/go/src/formats_distributions.go b/bindings/go/src/model_formats_distributions.go similarity index 78% rename from bindings/go/src/formats_distributions.go rename to bindings/go/src/model_formats_distributions.go index 45f18909..f0ccedad 100644 --- a/bindings/go/src/formats_distributions.go +++ b/bindings/go/src/model_formats_distributions.go @@ -1,26 +1,22 @@ -/* +/* * Cloudsmith API * * The API to the Cloudsmith Service * - * OpenAPI spec version: v1 + * API version: v1 * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package cloudsmith_api type FormatsDistributions struct { - // Name string `json:"name,omitempty"` - // SelfUrl string `json:"self_url,omitempty"` - // The slug identifier for this distribution Slug string `json:"slug,omitempty"` - // Variants string `json:"variants,omitempty"` } diff --git a/bindings/go/src/maven_package_upload.go b/bindings/go/src/model_maven_package_upload.go similarity index 96% rename from bindings/go/src/maven_package_upload.go rename to bindings/go/src/model_maven_package_upload.go index 73cd9932..cc494182 100644 --- a/bindings/go/src/maven_package_upload.go +++ b/bindings/go/src/model_maven_package_upload.go @@ -1,215 +1,148 @@ -/* +/* * Cloudsmith API * * The API to the Cloudsmith Service * - * OpenAPI spec version: v1 + * API version: v1 * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package cloudsmith_api type MavenPackageUpload struct { - // Architectures []PackagesownerrepoArchitectures `json:"architectures,omitempty"` - // The ID of the artifact. ArtifactId string `json:"artifact_id,omitempty"` - // CdnUrl string `json:"cdn_url,omitempty"` - // ChecksumMd5 string `json:"checksum_md5,omitempty"` - // ChecksumSha1 string `json:"checksum_sha1,omitempty"` - // ChecksumSha256 string `json:"checksum_sha256,omitempty"` - // ChecksumSha512 string `json:"checksum_sha512,omitempty"` - // A checksum of all of the package's dependencies. DependenciesChecksumMd5 string `json:"dependencies_checksum_md5,omitempty"` - // DependenciesUrl string `json:"dependencies_url,omitempty"` - // A textual description of this package. Description string `json:"description,omitempty"` - // Distro interface{} `json:"distro,omitempty"` - // DistroVersion interface{} `json:"distro_version,omitempty"` - // Downloads int32 `json:"downloads,omitempty"` - // The epoch of the package version (if any). Epoch int32 `json:"epoch,omitempty"` - // Extension string `json:"extension,omitempty"` - // Filename string `json:"filename,omitempty"` - // Files []PackagesownerrepoFiles `json:"files,omitempty"` - // Format string `json:"format,omitempty"` - // FormatUrl string `json:"format_url,omitempty"` - // Artifact's group ID. GroupId string `json:"group_id,omitempty"` - // Unique and permanent identifier for the package. IdentifierPerm string `json:"identifier_perm,omitempty"` - // Indexed bool `json:"indexed,omitempty"` - // IsSyncAwaiting bool `json:"is_sync_awaiting,omitempty"` - // IsSyncCompleted bool `json:"is_sync_completed,omitempty"` - // IsSyncFailed bool `json:"is_sync_failed,omitempty"` - // IsSyncInFlight bool `json:"is_sync_in_flight,omitempty"` - // IsSyncInProgress bool `json:"is_sync_in_progress,omitempty"` - // The license of this package. License string `json:"license,omitempty"` - // The name of this package. Name string `json:"name,omitempty"` - // Namespace string `json:"namespace,omitempty"` - // NamespaceUrl string `json:"namespace_url,omitempty"` - // NumFiles int32 `json:"num_files,omitempty"` - // The type of package contents. PackageType string `json:"package_type,omitempty"` - // Artifact's Maven packaging type. Packaging string `json:"packaging,omitempty"` - // The release of the package version (if any). Release string `json:"release,omitempty"` - // Repository string `json:"repository,omitempty"` - // RepositoryUrl string `json:"repository_url,omitempty"` - // The datetime the security scanning was completed. SecurityScanCompletedAt string `json:"security_scan_completed_at,omitempty"` - // The datetime the security scanning was started. SecurityScanStartedAt string `json:"security_scan_started_at,omitempty"` - // SecurityScanStatus string `json:"security_scan_status,omitempty"` - // The datetime the security scanning status was updated. SecurityScanStatusUpdatedAt string `json:"security_scan_status_updated_at,omitempty"` - // SelfHtmlUrl string `json:"self_html_url,omitempty"` - // SelfUrl string `json:"self_url,omitempty"` - // SignatureUrl string `json:"signature_url,omitempty"` - // The calculated size of the package. Size int32 `json:"size,omitempty"` - // The public unique identifier for the package. Slug string `json:"slug,omitempty"` - // SlugPerm string `json:"slug_perm,omitempty"` - // The synchronisation (in progress) stage of the package. Stage string `json:"stage,omitempty"` - // StageStr string `json:"stage_str,omitempty"` - // The datetime the package stage was updated at. StageUpdatedAt string `json:"stage_updated_at,omitempty"` - // The synchronisation status of the package. Status string `json:"status,omitempty"` - // A textual description for the synchronous status reason (if any StatusReason string `json:"status_reason,omitempty"` - // StatusStr string `json:"status_str,omitempty"` - // The datetime the package status was updated at. StatusUpdatedAt string `json:"status_updated_at,omitempty"` - // StatusUrl string `json:"status_url,omitempty"` - // Subtype string `json:"subtype,omitempty"` - // A one-liner synopsis of this package. Summary string `json:"summary,omitempty"` - // The datetime the package sync was finished at. SyncFinishedAt string `json:"sync_finished_at,omitempty"` - // Synchronisation progress (from 0-100) SyncProgress int32 `json:"sync_progress,omitempty"` - // All immutable tags on the package, grouped by tag type. Immutable tags cannot be (easily) deleted. TagsImmutable interface{} `json:"tags_immutable,omitempty"` - // TypeDisplay string `json:"type_display,omitempty"` - // The date this package was uploaded. UploadedAt string `json:"uploaded_at,omitempty"` - // Uploader string `json:"uploader,omitempty"` - // UploaderUrl string `json:"uploader_url,omitempty"` - // The raw version for this package. Version string `json:"version,omitempty"` - // VersionOrig string `json:"version_orig,omitempty"` - // VulnerabilityScanResultsUrl string `json:"vulnerability_scan_results_url,omitempty"` } diff --git a/bindings/go/src/namespace.go b/bindings/go/src/model_namespace.go similarity index 75% rename from bindings/go/src/namespace.go rename to bindings/go/src/model_namespace.go index 089e72cf..202a484d 100644 --- a/bindings/go/src/namespace.go +++ b/bindings/go/src/model_namespace.go @@ -1,26 +1,22 @@ -/* +/* * Cloudsmith API * * The API to the Cloudsmith Service * - * OpenAPI spec version: v1 + * API version: v1 * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package cloudsmith_api type Namespace struct { - // Name string `json:"name,omitempty"` - // Slug string `json:"slug,omitempty"` - // SlugPerm string `json:"slug_perm,omitempty"` - // TypeName string `json:"type_name,omitempty"` } diff --git a/bindings/go/src/organization.go b/bindings/go/src/model_organization.go similarity index 85% rename from bindings/go/src/organization.go rename to bindings/go/src/model_organization.go index 92e8a0c3..65151360 100644 --- a/bindings/go/src/organization.go +++ b/bindings/go/src/model_organization.go @@ -1,35 +1,28 @@ -/* +/* * Cloudsmith API * * The API to the Cloudsmith Service * - * OpenAPI spec version: v1 + * API version: v1 * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package cloudsmith_api type Organization struct { - // Country string `json:"country,omitempty"` - // CreatedAt string `json:"created_at,omitempty"` - // The city/town/area your organization is based in. Location string `json:"location,omitempty"` - // A descriptive name for your organization. Name string `json:"name,omitempty"` - // Slug string `json:"slug,omitempty"` - // SlugPerm string `json:"slug_perm,omitempty"` - // A short public descriptive for your organization. Tagline string `json:"tagline,omitempty"` } diff --git a/bindings/go/src/organization_membership.go b/bindings/go/src/model_organization_membership.go similarity index 85% rename from bindings/go/src/organization_membership.go rename to bindings/go/src/model_organization_membership.go index a0c77c8c..472436b9 100644 --- a/bindings/go/src/organization_membership.go +++ b/bindings/go/src/model_organization_membership.go @@ -1,44 +1,34 @@ -/* +/* * Cloudsmith API * * The API to the Cloudsmith Service * - * OpenAPI spec version: v1 + * API version: v1 * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package cloudsmith_api type OrganizationMembership struct { - // Email string `json:"email,omitempty"` - // HasTwoFactor bool `json:"has_two_factor,omitempty"` - // JoinedAt string `json:"joined_at,omitempty"` - // LastLoginAt string `json:"last_login_at,omitempty"` - // Role string `json:"role,omitempty"` - // User string `json:"user,omitempty"` - // UserId string `json:"user_id,omitempty"` - // UserName string `json:"user_name,omitempty"` - // UserUrl string `json:"user_url,omitempty"` - // Visibility string `json:"visibility,omitempty"` } diff --git a/bindings/go/src/model_package.go b/bindings/go/src/model_package.go index f02c68ae..c067a911 100644 --- a/bindings/go/src/model_package.go +++ b/bindings/go/src/model_package.go @@ -1,209 +1,144 @@ -/* +/* * Cloudsmith API * * The API to the Cloudsmith Service * - * OpenAPI spec version: v1 + * API version: v1 * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package cloudsmith_api type ModelPackage struct { - // Architectures []PackagesownerrepoArchitectures `json:"architectures,omitempty"` - // CdnUrl string `json:"cdn_url,omitempty"` - // ChecksumMd5 string `json:"checksum_md5,omitempty"` - // ChecksumSha1 string `json:"checksum_sha1,omitempty"` - // ChecksumSha256 string `json:"checksum_sha256,omitempty"` - // ChecksumSha512 string `json:"checksum_sha512,omitempty"` - // A checksum of all of the package's dependencies. DependenciesChecksumMd5 string `json:"dependencies_checksum_md5,omitempty"` - // DependenciesUrl string `json:"dependencies_url,omitempty"` - // A textual description of this package. Description string `json:"description,omitempty"` - // Distro interface{} `json:"distro,omitempty"` - // DistroVersion interface{} `json:"distro_version,omitempty"` - // Downloads int32 `json:"downloads,omitempty"` - // The epoch of the package version (if any). Epoch int32 `json:"epoch,omitempty"` - // Extension string `json:"extension,omitempty"` - // Filename string `json:"filename,omitempty"` - // Files []PackagesownerrepoFiles `json:"files,omitempty"` - // Format string `json:"format,omitempty"` - // FormatUrl string `json:"format_url,omitempty"` - // Unique and permanent identifier for the package. IdentifierPerm string `json:"identifier_perm,omitempty"` - // Indexed bool `json:"indexed,omitempty"` - // IsSyncAwaiting bool `json:"is_sync_awaiting,omitempty"` - // IsSyncCompleted bool `json:"is_sync_completed,omitempty"` - // IsSyncFailed bool `json:"is_sync_failed,omitempty"` - // IsSyncInFlight bool `json:"is_sync_in_flight,omitempty"` - // IsSyncInProgress bool `json:"is_sync_in_progress,omitempty"` - // The license of this package. License string `json:"license,omitempty"` - // The name of this package. Name string `json:"name,omitempty"` - // Namespace string `json:"namespace,omitempty"` - // NamespaceUrl string `json:"namespace_url,omitempty"` - // NumFiles int32 `json:"num_files,omitempty"` - // The type of package contents. PackageType string `json:"package_type,omitempty"` - // The release of the package version (if any). Release string `json:"release,omitempty"` - // Repository string `json:"repository,omitempty"` - // RepositoryUrl string `json:"repository_url,omitempty"` - // The datetime the security scanning was completed. SecurityScanCompletedAt string `json:"security_scan_completed_at,omitempty"` - // The datetime the security scanning was started. SecurityScanStartedAt string `json:"security_scan_started_at,omitempty"` - // SecurityScanStatus string `json:"security_scan_status,omitempty"` - // The datetime the security scanning status was updated. SecurityScanStatusUpdatedAt string `json:"security_scan_status_updated_at,omitempty"` - // SelfHtmlUrl string `json:"self_html_url,omitempty"` - // SelfUrl string `json:"self_url,omitempty"` - // SignatureUrl string `json:"signature_url,omitempty"` - // The calculated size of the package. Size int32 `json:"size,omitempty"` - // The public unique identifier for the package. Slug string `json:"slug,omitempty"` - // SlugPerm string `json:"slug_perm,omitempty"` - // The synchronisation (in progress) stage of the package. Stage string `json:"stage,omitempty"` - // StageStr string `json:"stage_str,omitempty"` - // The datetime the package stage was updated at. StageUpdatedAt string `json:"stage_updated_at,omitempty"` - // The synchronisation status of the package. Status string `json:"status,omitempty"` - // A textual description for the synchronous status reason (if any StatusReason string `json:"status_reason,omitempty"` - // StatusStr string `json:"status_str,omitempty"` - // The datetime the package status was updated at. StatusUpdatedAt string `json:"status_updated_at,omitempty"` - // StatusUrl string `json:"status_url,omitempty"` - // Subtype string `json:"subtype,omitempty"` - // A one-liner synopsis of this package. Summary string `json:"summary,omitempty"` - // The datetime the package sync was finished at. SyncFinishedAt string `json:"sync_finished_at,omitempty"` - // Synchronisation progress (from 0-100) SyncProgress int32 `json:"sync_progress,omitempty"` - // All tags on the package, grouped by tag type. This includes immutable tags, but doesn't distinguish them from mutable. To see which tags are immutable specifically, see the tags_immutable field. Tags interface{} `json:"tags,omitempty"` - // All immutable tags on the package, grouped by tag type. Immutable tags cannot be (easily) deleted. TagsImmutable interface{} `json:"tags_immutable,omitempty"` - // TypeDisplay string `json:"type_display,omitempty"` - // The date this package was uploaded. UploadedAt string `json:"uploaded_at,omitempty"` - // Uploader string `json:"uploader,omitempty"` - // UploaderUrl string `json:"uploader_url,omitempty"` - // The raw version for this package. Version string `json:"version,omitempty"` - // VersionOrig string `json:"version_orig,omitempty"` - // VulnerabilityScanResultsUrl string `json:"vulnerability_scan_results_url,omitempty"` } diff --git a/bindings/go/src/package_copy.go b/bindings/go/src/model_package_copy.go similarity index 96% rename from bindings/go/src/package_copy.go rename to bindings/go/src/model_package_copy.go index 522f154f..c7a116d7 100644 --- a/bindings/go/src/package_copy.go +++ b/bindings/go/src/model_package_copy.go @@ -1,209 +1,144 @@ -/* +/* * Cloudsmith API * * The API to the Cloudsmith Service * - * OpenAPI spec version: v1 + * API version: v1 * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package cloudsmith_api type PackageCopy struct { - // Architectures []PackagesownerrepoArchitectures `json:"architectures,omitempty"` - // CdnUrl string `json:"cdn_url,omitempty"` - // ChecksumMd5 string `json:"checksum_md5,omitempty"` - // ChecksumSha1 string `json:"checksum_sha1,omitempty"` - // ChecksumSha256 string `json:"checksum_sha256,omitempty"` - // ChecksumSha512 string `json:"checksum_sha512,omitempty"` - // A checksum of all of the package's dependencies. DependenciesChecksumMd5 string `json:"dependencies_checksum_md5,omitempty"` - // DependenciesUrl string `json:"dependencies_url,omitempty"` - // A textual description of this package. Description string `json:"description,omitempty"` - // Distro interface{} `json:"distro,omitempty"` - // DistroVersion interface{} `json:"distro_version,omitempty"` - // Downloads int32 `json:"downloads,omitempty"` - // The epoch of the package version (if any). Epoch int32 `json:"epoch,omitempty"` - // Extension string `json:"extension,omitempty"` - // Filename string `json:"filename,omitempty"` - // Files []PackagesownerrepoFiles `json:"files,omitempty"` - // Format string `json:"format,omitempty"` - // FormatUrl string `json:"format_url,omitempty"` - // Unique and permanent identifier for the package. IdentifierPerm string `json:"identifier_perm,omitempty"` - // Indexed bool `json:"indexed,omitempty"` - // IsSyncAwaiting bool `json:"is_sync_awaiting,omitempty"` - // IsSyncCompleted bool `json:"is_sync_completed,omitempty"` - // IsSyncFailed bool `json:"is_sync_failed,omitempty"` - // IsSyncInFlight bool `json:"is_sync_in_flight,omitempty"` - // IsSyncInProgress bool `json:"is_sync_in_progress,omitempty"` - // The license of this package. License string `json:"license,omitempty"` - // The name of this package. Name string `json:"name,omitempty"` - // Namespace string `json:"namespace,omitempty"` - // NamespaceUrl string `json:"namespace_url,omitempty"` - // NumFiles int32 `json:"num_files,omitempty"` - // The type of package contents. PackageType string `json:"package_type,omitempty"` - // The release of the package version (if any). Release string `json:"release,omitempty"` - // The repository the package will be copied to. Repository string `json:"repository,omitempty"` - // RepositoryUrl string `json:"repository_url,omitempty"` - // The datetime the security scanning was completed. SecurityScanCompletedAt string `json:"security_scan_completed_at,omitempty"` - // The datetime the security scanning was started. SecurityScanStartedAt string `json:"security_scan_started_at,omitempty"` - // SecurityScanStatus string `json:"security_scan_status,omitempty"` - // The datetime the security scanning status was updated. SecurityScanStatusUpdatedAt string `json:"security_scan_status_updated_at,omitempty"` - // SelfHtmlUrl string `json:"self_html_url,omitempty"` - // SelfUrl string `json:"self_url,omitempty"` - // SignatureUrl string `json:"signature_url,omitempty"` - // The calculated size of the package. Size int32 `json:"size,omitempty"` - // The public unique identifier for the package. Slug string `json:"slug,omitempty"` - // SlugPerm string `json:"slug_perm,omitempty"` - // The synchronisation (in progress) stage of the package. Stage string `json:"stage,omitempty"` - // StageStr string `json:"stage_str,omitempty"` - // The datetime the package stage was updated at. StageUpdatedAt string `json:"stage_updated_at,omitempty"` - // The synchronisation status of the package. Status string `json:"status,omitempty"` - // A textual description for the synchronous status reason (if any StatusReason string `json:"status_reason,omitempty"` - // StatusStr string `json:"status_str,omitempty"` - // The datetime the package status was updated at. StatusUpdatedAt string `json:"status_updated_at,omitempty"` - // StatusUrl string `json:"status_url,omitempty"` - // Subtype string `json:"subtype,omitempty"` - // A one-liner synopsis of this package. Summary string `json:"summary,omitempty"` - // The datetime the package sync was finished at. SyncFinishedAt string `json:"sync_finished_at,omitempty"` - // Synchronisation progress (from 0-100) SyncProgress int32 `json:"sync_progress,omitempty"` - // All tags on the package, grouped by tag type. This includes immutable tags, but doesn't distinguish them from mutable. To see which tags are immutable specifically, see the tags_immutable field. Tags interface{} `json:"tags,omitempty"` - // All immutable tags on the package, grouped by tag type. Immutable tags cannot be (easily) deleted. TagsImmutable interface{} `json:"tags_immutable,omitempty"` - // TypeDisplay string `json:"type_display,omitempty"` - // The date this package was uploaded. UploadedAt string `json:"uploaded_at,omitempty"` - // Uploader string `json:"uploader,omitempty"` - // UploaderUrl string `json:"uploader_url,omitempty"` - // The raw version for this package. Version string `json:"version,omitempty"` - // VersionOrig string `json:"version_orig,omitempty"` - // VulnerabilityScanResultsUrl string `json:"vulnerability_scan_results_url,omitempty"` } diff --git a/bindings/go/src/package_dependencies.go b/bindings/go/src/model_package_dependencies.go similarity index 68% rename from bindings/go/src/package_dependencies.go rename to bindings/go/src/model_package_dependencies.go index c0fb4bff..3c125011 100644 --- a/bindings/go/src/package_dependencies.go +++ b/bindings/go/src/model_package_dependencies.go @@ -1,17 +1,16 @@ -/* +/* * Cloudsmith API * * The API to the Cloudsmith Service * - * OpenAPI spec version: v1 + * API version: v1 * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package cloudsmith_api type PackageDependencies struct { - // Dependencies []PackageDependenciesDependencies `json:"dependencies"` } diff --git a/bindings/go/src/package_dependencies_dependencies.go b/bindings/go/src/model_package_dependencies_dependencies.go similarity index 80% rename from bindings/go/src/package_dependencies_dependencies.go rename to bindings/go/src/model_package_dependencies_dependencies.go index b2adeb2c..e64f5d01 100644 --- a/bindings/go/src/package_dependencies_dependencies.go +++ b/bindings/go/src/model_package_dependencies_dependencies.go @@ -1,26 +1,22 @@ -/* +/* * Cloudsmith API * * The API to the Cloudsmith Service * - * OpenAPI spec version: v1 + * API version: v1 * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package cloudsmith_api type PackageDependenciesDependencies struct { - // DepType string `json:"dep_type,omitempty"` - // The name of the package dependency. Name string `json:"name,omitempty"` - // Operator string `json:"operator,omitempty"` - // The raw dependency version (if any). Version string `json:"version,omitempty"` } diff --git a/bindings/go/src/package_file_parts_upload.go b/bindings/go/src/model_package_file_parts_upload.go similarity index 81% rename from bindings/go/src/package_file_parts_upload.go rename to bindings/go/src/model_package_file_parts_upload.go index 22f4a418..bf9fe49f 100644 --- a/bindings/go/src/package_file_parts_upload.go +++ b/bindings/go/src/model_package_file_parts_upload.go @@ -1,23 +1,20 @@ -/* +/* * Cloudsmith API * * The API to the Cloudsmith Service * - * OpenAPI spec version: v1 + * API version: v1 * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package cloudsmith_api type PackageFilePartsUpload struct { - // The identifier for the file to use uploading parts. Identifier string `json:"identifier,omitempty"` - // The querystring to use for the next-step PUT upload. UploadQuerystring string `json:"upload_querystring,omitempty"` - // The URL to use for the next-step PUT upload UploadUrl string `json:"upload_url,omitempty"` } diff --git a/bindings/go/src/package_file_upload.go b/bindings/go/src/model_package_file_upload.go similarity index 87% rename from bindings/go/src/package_file_upload.go rename to bindings/go/src/model_package_file_upload.go index 220ec5ef..1474b06d 100644 --- a/bindings/go/src/package_file_upload.go +++ b/bindings/go/src/model_package_file_upload.go @@ -1,29 +1,24 @@ -/* +/* * Cloudsmith API * * The API to the Cloudsmith Service * - * OpenAPI spec version: v1 + * API version: v1 * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package cloudsmith_api type PackageFileUpload struct { - // The identifier for the file to use when creating packages Identifier string `json:"identifier,omitempty"` - // The dictionary of fields that must be sent with POST uploads UploadFields interface{} `json:"upload_fields,omitempty"` - // The dictionary of headers that must be sent with uploads UploadHeaders interface{} `json:"upload_headers,omitempty"` - // The querystring to use for the next-step POST or PUT upload UploadQuerystring string `json:"upload_querystring,omitempty"` - // The URL to use for the next-step POST or PUT upload UploadUrl string `json:"upload_url,omitempty"` } diff --git a/bindings/go/src/package_move.go b/bindings/go/src/model_package_move.go similarity index 96% rename from bindings/go/src/package_move.go rename to bindings/go/src/model_package_move.go index de202855..9c2eed1d 100644 --- a/bindings/go/src/package_move.go +++ b/bindings/go/src/model_package_move.go @@ -1,209 +1,144 @@ -/* +/* * Cloudsmith API * * The API to the Cloudsmith Service * - * OpenAPI spec version: v1 + * API version: v1 * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package cloudsmith_api type PackageMove struct { - // Architectures []PackagesownerrepoArchitectures `json:"architectures,omitempty"` - // CdnUrl string `json:"cdn_url,omitempty"` - // ChecksumMd5 string `json:"checksum_md5,omitempty"` - // ChecksumSha1 string `json:"checksum_sha1,omitempty"` - // ChecksumSha256 string `json:"checksum_sha256,omitempty"` - // ChecksumSha512 string `json:"checksum_sha512,omitempty"` - // A checksum of all of the package's dependencies. DependenciesChecksumMd5 string `json:"dependencies_checksum_md5,omitempty"` - // DependenciesUrl string `json:"dependencies_url,omitempty"` - // A textual description of this package. Description string `json:"description,omitempty"` - // Distro interface{} `json:"distro,omitempty"` - // DistroVersion interface{} `json:"distro_version,omitempty"` - // Downloads int32 `json:"downloads,omitempty"` - // The epoch of the package version (if any). Epoch int32 `json:"epoch,omitempty"` - // Extension string `json:"extension,omitempty"` - // Filename string `json:"filename,omitempty"` - // Files []PackagesownerrepoFiles `json:"files,omitempty"` - // Format string `json:"format,omitempty"` - // FormatUrl string `json:"format_url,omitempty"` - // Unique and permanent identifier for the package. IdentifierPerm string `json:"identifier_perm,omitempty"` - // Indexed bool `json:"indexed,omitempty"` - // IsSyncAwaiting bool `json:"is_sync_awaiting,omitempty"` - // IsSyncCompleted bool `json:"is_sync_completed,omitempty"` - // IsSyncFailed bool `json:"is_sync_failed,omitempty"` - // IsSyncInFlight bool `json:"is_sync_in_flight,omitempty"` - // IsSyncInProgress bool `json:"is_sync_in_progress,omitempty"` - // The license of this package. License string `json:"license,omitempty"` - // The name of this package. Name string `json:"name,omitempty"` - // Namespace string `json:"namespace,omitempty"` - // NamespaceUrl string `json:"namespace_url,omitempty"` - // NumFiles int32 `json:"num_files,omitempty"` - // The type of package contents. PackageType string `json:"package_type,omitempty"` - // The release of the package version (if any). Release string `json:"release,omitempty"` - // The repository the package will be moved to. Repository string `json:"repository,omitempty"` - // RepositoryUrl string `json:"repository_url,omitempty"` - // The datetime the security scanning was completed. SecurityScanCompletedAt string `json:"security_scan_completed_at,omitempty"` - // The datetime the security scanning was started. SecurityScanStartedAt string `json:"security_scan_started_at,omitempty"` - // SecurityScanStatus string `json:"security_scan_status,omitempty"` - // The datetime the security scanning status was updated. SecurityScanStatusUpdatedAt string `json:"security_scan_status_updated_at,omitempty"` - // SelfHtmlUrl string `json:"self_html_url,omitempty"` - // SelfUrl string `json:"self_url,omitempty"` - // SignatureUrl string `json:"signature_url,omitempty"` - // The calculated size of the package. Size int32 `json:"size,omitempty"` - // The public unique identifier for the package. Slug string `json:"slug,omitempty"` - // SlugPerm string `json:"slug_perm,omitempty"` - // The synchronisation (in progress) stage of the package. Stage string `json:"stage,omitempty"` - // StageStr string `json:"stage_str,omitempty"` - // The datetime the package stage was updated at. StageUpdatedAt string `json:"stage_updated_at,omitempty"` - // The synchronisation status of the package. Status string `json:"status,omitempty"` - // A textual description for the synchronous status reason (if any StatusReason string `json:"status_reason,omitempty"` - // StatusStr string `json:"status_str,omitempty"` - // The datetime the package status was updated at. StatusUpdatedAt string `json:"status_updated_at,omitempty"` - // StatusUrl string `json:"status_url,omitempty"` - // Subtype string `json:"subtype,omitempty"` - // A one-liner synopsis of this package. Summary string `json:"summary,omitempty"` - // The datetime the package sync was finished at. SyncFinishedAt string `json:"sync_finished_at,omitempty"` - // Synchronisation progress (from 0-100) SyncProgress int32 `json:"sync_progress,omitempty"` - // All tags on the package, grouped by tag type. This includes immutable tags, but doesn't distinguish them from mutable. To see which tags are immutable specifically, see the tags_immutable field. Tags interface{} `json:"tags,omitempty"` - // All immutable tags on the package, grouped by tag type. Immutable tags cannot be (easily) deleted. TagsImmutable interface{} `json:"tags_immutable,omitempty"` - // TypeDisplay string `json:"type_display,omitempty"` - // The date this package was uploaded. UploadedAt string `json:"uploaded_at,omitempty"` - // Uploader string `json:"uploader,omitempty"` - // UploaderUrl string `json:"uploader_url,omitempty"` - // The raw version for this package. Version string `json:"version,omitempty"` - // VersionOrig string `json:"version_orig,omitempty"` - // VulnerabilityScanResultsUrl string `json:"vulnerability_scan_results_url,omitempty"` } diff --git a/bindings/go/src/package_status.go b/bindings/go/src/model_package_status.go similarity index 92% rename from bindings/go/src/package_status.go rename to bindings/go/src/model_package_status.go index 319c00d3..169d34b7 100644 --- a/bindings/go/src/package_status.go +++ b/bindings/go/src/model_package_status.go @@ -1,59 +1,44 @@ -/* +/* * Cloudsmith API * * The API to the Cloudsmith Service * - * OpenAPI spec version: v1 + * API version: v1 * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package cloudsmith_api type PackageStatus struct { - // IsSyncAwaiting bool `json:"is_sync_awaiting,omitempty"` - // IsSyncCompleted bool `json:"is_sync_completed,omitempty"` - // IsSyncFailed bool `json:"is_sync_failed,omitempty"` - // IsSyncInFlight bool `json:"is_sync_in_flight,omitempty"` - // IsSyncInProgress bool `json:"is_sync_in_progress,omitempty"` - // SelfUrl string `json:"self_url,omitempty"` - // The synchronisation (in progress) stage of the package. Stage string `json:"stage,omitempty"` - // StageStr string `json:"stage_str,omitempty"` - // The datetime the package stage was updated at. StageUpdatedAt string `json:"stage_updated_at,omitempty"` - // The synchronisation status of the package. Status string `json:"status,omitempty"` - // A textual description for the synchronous status reason (if any StatusReason string `json:"status_reason,omitempty"` - // StatusStr string `json:"status_str,omitempty"` - // The datetime the package status was updated at. StatusUpdatedAt string `json:"status_updated_at,omitempty"` - // The datetime the package sync was finished at. SyncFinishedAt string `json:"sync_finished_at,omitempty"` - // Synchronisation progress (from 0-100) SyncProgress int32 `json:"sync_progress,omitempty"` } diff --git a/bindings/go/src/package_usage_metrics.go b/bindings/go/src/model_package_usage_metrics.go similarity index 65% rename from bindings/go/src/package_usage_metrics.go rename to bindings/go/src/model_package_usage_metrics.go index af33ffc7..a2cf490b 100644 --- a/bindings/go/src/package_usage_metrics.go +++ b/bindings/go/src/model_package_usage_metrics.go @@ -1,17 +1,16 @@ -/* +/* * Cloudsmith API * * The API to the Cloudsmith Service * - * OpenAPI spec version: v1 + * API version: v1 * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package cloudsmith_api type PackageUsageMetrics struct { - // Packages interface{} `json:"packages"` } diff --git a/bindings/go/src/packages_copy.go b/bindings/go/src/model_packages_copy.go similarity index 78% rename from bindings/go/src/packages_copy.go rename to bindings/go/src/model_packages_copy.go index c6fdcdb5..e70e3871 100644 --- a/bindings/go/src/packages_copy.go +++ b/bindings/go/src/model_packages_copy.go @@ -1,20 +1,18 @@ -/* +/* * Cloudsmith API * * The API to the Cloudsmith Service * - * OpenAPI spec version: v1 + * API version: v1 * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package cloudsmith_api type PackagesCopy struct { - // None Destination string `json:"destination"` - // If true, the package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. Republish bool `json:"republish,omitempty"` } diff --git a/bindings/go/src/packages_move.go b/bindings/go/src/model_packages_move.go similarity index 65% rename from bindings/go/src/packages_move.go rename to bindings/go/src/model_packages_move.go index 274661a2..a4fc6c28 100644 --- a/bindings/go/src/packages_move.go +++ b/bindings/go/src/model_packages_move.go @@ -1,17 +1,16 @@ -/* +/* * Cloudsmith API * * The API to the Cloudsmith Service * - * OpenAPI spec version: v1 + * API version: v1 * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package cloudsmith_api type PackagesMove struct { - // None Destination string `json:"destination"` } diff --git a/bindings/go/src/packages_tag.go b/bindings/go/src/model_packages_tag.go similarity index 81% rename from bindings/go/src/packages_tag.go rename to bindings/go/src/model_packages_tag.go index 79693809..417c79c3 100644 --- a/bindings/go/src/packages_tag.go +++ b/bindings/go/src/model_packages_tag.go @@ -1,23 +1,20 @@ -/* +/* * Cloudsmith API * * The API to the Cloudsmith Service * - * OpenAPI spec version: v1 + * API version: v1 * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package cloudsmith_api type PackagesTag struct { - // None Action string `json:"action,omitempty"` - // If true, created tags will be immutable. An immutable flag is a tag that cannot be removed from a package. IsImmutable bool `json:"is_immutable,omitempty"` - // A list of tags to apply the action to. Not required for clears. Tags []string `json:"tags,omitempty"` } diff --git a/bindings/go/src/packages_upload_alpine.go b/bindings/go/src/model_packages_upload_alpine.go similarity index 85% rename from bindings/go/src/packages_upload_alpine.go rename to bindings/go/src/model_packages_upload_alpine.go index fc645d50..d46b4b67 100644 --- a/bindings/go/src/packages_upload_alpine.go +++ b/bindings/go/src/model_packages_upload_alpine.go @@ -1,26 +1,22 @@ -/* +/* * Cloudsmith API * * The API to the Cloudsmith Service * - * OpenAPI spec version: v1 + * API version: v1 * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package cloudsmith_api type PackagesUploadAlpine struct { - // The distribution to store the package for. Distribution string `json:"distribution"` - // The primary file for the package. PackageFile string `json:"package_file"` - // If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. Republish bool `json:"republish,omitempty"` - // A comma-separated values list of tags to add to the package. Tags string `json:"tags,omitempty"` } diff --git a/bindings/go/src/packages_upload_cargo.go b/bindings/go/src/model_packages_upload_cargo.go similarity index 83% rename from bindings/go/src/packages_upload_cargo.go rename to bindings/go/src/model_packages_upload_cargo.go index 0b5ae487..c2a9c59c 100644 --- a/bindings/go/src/packages_upload_cargo.go +++ b/bindings/go/src/model_packages_upload_cargo.go @@ -1,23 +1,20 @@ -/* +/* * Cloudsmith API * * The API to the Cloudsmith Service * - * OpenAPI spec version: v1 + * API version: v1 * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package cloudsmith_api type PackagesUploadCargo struct { - // The primary file for the package. PackageFile string `json:"package_file"` - // If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. Republish bool `json:"republish,omitempty"` - // A comma-separated values list of tags to add to the package. Tags string `json:"tags,omitempty"` } diff --git a/bindings/go/src/packages_upload_cocoapods.go b/bindings/go/src/model_packages_upload_cocoapods.go similarity index 83% rename from bindings/go/src/packages_upload_cocoapods.go rename to bindings/go/src/model_packages_upload_cocoapods.go index 3a475239..bba5ae2f 100644 --- a/bindings/go/src/packages_upload_cocoapods.go +++ b/bindings/go/src/model_packages_upload_cocoapods.go @@ -1,23 +1,20 @@ -/* +/* * Cloudsmith API * * The API to the Cloudsmith Service * - * OpenAPI spec version: v1 + * API version: v1 * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package cloudsmith_api type PackagesUploadCocoapods struct { - // The primary file for the package. PackageFile string `json:"package_file"` - // If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. Republish bool `json:"republish,omitempty"` - // A comma-separated values list of tags to add to the package. Tags string `json:"tags,omitempty"` } diff --git a/bindings/go/src/packages_upload_composer.go b/bindings/go/src/model_packages_upload_composer.go similarity index 83% rename from bindings/go/src/packages_upload_composer.go rename to bindings/go/src/model_packages_upload_composer.go index 74571ed0..87d52aed 100644 --- a/bindings/go/src/packages_upload_composer.go +++ b/bindings/go/src/model_packages_upload_composer.go @@ -1,23 +1,20 @@ -/* +/* * Cloudsmith API * * The API to the Cloudsmith Service * - * OpenAPI spec version: v1 + * API version: v1 * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package cloudsmith_api type PackagesUploadComposer struct { - // The primary file for the package. PackageFile string `json:"package_file"` - // If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. Republish bool `json:"republish,omitempty"` - // A comma-separated values list of tags to add to the package. Tags string `json:"tags,omitempty"` } diff --git a/bindings/go/src/packages_upload_conan.go b/bindings/go/src/model_packages_upload_conan.go similarity index 91% rename from bindings/go/src/packages_upload_conan.go rename to bindings/go/src/model_packages_upload_conan.go index 71292531..4cad9bd0 100644 --- a/bindings/go/src/packages_upload_conan.go +++ b/bindings/go/src/model_packages_upload_conan.go @@ -1,44 +1,34 @@ -/* +/* * Cloudsmith API * * The API to the Cloudsmith Service * - * OpenAPI spec version: v1 + * API version: v1 * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package cloudsmith_api type PackagesUploadConan struct { - // Conan channel. ConanChannel string `json:"conan_channel,omitempty"` - // Conan prefix (User). ConanPrefix string `json:"conan_prefix,omitempty"` - // The info file is an python file containing the package metadata. InfoFile string `json:"info_file"` - // The info file is an python file containing the package metadata. ManifestFile string `json:"manifest_file"` - // The conan file is an python file containing the package metadata. MetadataFile string `json:"metadata_file"` - // The name of this package. Name string `json:"name,omitempty"` - // The primary file for the package. PackageFile string `json:"package_file"` - // If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. Republish bool `json:"republish,omitempty"` - // A comma-separated values list of tags to add to the package. Tags string `json:"tags,omitempty"` - // The raw version for this package. Version string `json:"version,omitempty"` } diff --git a/bindings/go/src/packages_upload_conda.go b/bindings/go/src/model_packages_upload_conda.go similarity index 83% rename from bindings/go/src/packages_upload_conda.go rename to bindings/go/src/model_packages_upload_conda.go index f31955f5..cba6d11e 100644 --- a/bindings/go/src/packages_upload_conda.go +++ b/bindings/go/src/model_packages_upload_conda.go @@ -1,23 +1,20 @@ -/* +/* * Cloudsmith API * * The API to the Cloudsmith Service * - * OpenAPI spec version: v1 + * API version: v1 * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package cloudsmith_api type PackagesUploadConda struct { - // The primary file for the package. PackageFile string `json:"package_file"` - // If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. Republish bool `json:"republish,omitempty"` - // A comma-separated values list of tags to add to the package. Tags string `json:"tags,omitempty"` } diff --git a/bindings/go/src/packages_upload_cran.go b/bindings/go/src/model_packages_upload_cran.go similarity index 83% rename from bindings/go/src/packages_upload_cran.go rename to bindings/go/src/model_packages_upload_cran.go index 74f86688..d93ab386 100644 --- a/bindings/go/src/packages_upload_cran.go +++ b/bindings/go/src/model_packages_upload_cran.go @@ -1,23 +1,20 @@ -/* +/* * Cloudsmith API * * The API to the Cloudsmith Service * - * OpenAPI spec version: v1 + * API version: v1 * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package cloudsmith_api type PackagesUploadCran struct { - // The primary file for the package. PackageFile string `json:"package_file"` - // If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. Republish bool `json:"republish,omitempty"` - // A comma-separated values list of tags to add to the package. Tags string `json:"tags,omitempty"` } diff --git a/bindings/go/src/packages_upload_dart.go b/bindings/go/src/model_packages_upload_dart.go similarity index 83% rename from bindings/go/src/packages_upload_dart.go rename to bindings/go/src/model_packages_upload_dart.go index 5cc6eb8f..801f3885 100644 --- a/bindings/go/src/packages_upload_dart.go +++ b/bindings/go/src/model_packages_upload_dart.go @@ -1,23 +1,20 @@ -/* +/* * Cloudsmith API * * The API to the Cloudsmith Service * - * OpenAPI spec version: v1 + * API version: v1 * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package cloudsmith_api type PackagesUploadDart struct { - // The primary file for the package. PackageFile string `json:"package_file"` - // If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. Republish bool `json:"republish,omitempty"` - // A comma-separated values list of tags to add to the package. Tags string `json:"tags,omitempty"` } diff --git a/bindings/go/src/packages_upload_deb.go b/bindings/go/src/model_packages_upload_deb.go similarity index 89% rename from bindings/go/src/packages_upload_deb.go rename to bindings/go/src/model_packages_upload_deb.go index 5debcb8e..26a76597 100644 --- a/bindings/go/src/packages_upload_deb.go +++ b/bindings/go/src/model_packages_upload_deb.go @@ -1,32 +1,26 @@ -/* +/* * Cloudsmith API * * The API to the Cloudsmith Service * - * OpenAPI spec version: v1 + * API version: v1 * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package cloudsmith_api type PackagesUploadDeb struct { - // The changes archive containing the changes made to the source and debian packaging files ChangesFile string `json:"changes_file,omitempty"` - // The distribution to store the package for. Distribution string `json:"distribution"` - // The primary file for the package. PackageFile string `json:"package_file"` - // If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. Republish bool `json:"republish,omitempty"` - // The sources archive containing the source code for the binary SourcesFile string `json:"sources_file,omitempty"` - // A comma-separated values list of tags to add to the package. Tags string `json:"tags,omitempty"` } diff --git a/bindings/go/src/packages_upload_docker.go b/bindings/go/src/model_packages_upload_docker.go similarity index 83% rename from bindings/go/src/packages_upload_docker.go rename to bindings/go/src/model_packages_upload_docker.go index e28f879a..de6348b9 100644 --- a/bindings/go/src/packages_upload_docker.go +++ b/bindings/go/src/model_packages_upload_docker.go @@ -1,23 +1,20 @@ -/* +/* * Cloudsmith API * * The API to the Cloudsmith Service * - * OpenAPI spec version: v1 + * API version: v1 * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package cloudsmith_api type PackagesUploadDocker struct { - // The primary file for the package. PackageFile string `json:"package_file"` - // If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. Republish bool `json:"republish,omitempty"` - // A comma-separated values list of tags to add to the package. Tags string `json:"tags,omitempty"` } diff --git a/bindings/go/src/packages_upload_go.go b/bindings/go/src/model_packages_upload_go.go similarity index 83% rename from bindings/go/src/packages_upload_go.go rename to bindings/go/src/model_packages_upload_go.go index 650e7882..c24ae987 100644 --- a/bindings/go/src/packages_upload_go.go +++ b/bindings/go/src/model_packages_upload_go.go @@ -1,23 +1,20 @@ -/* +/* * Cloudsmith API * * The API to the Cloudsmith Service * - * OpenAPI spec version: v1 + * API version: v1 * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package cloudsmith_api type PackagesUploadGo struct { - // The primary file for the package. PackageFile string `json:"package_file"` - // If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. Republish bool `json:"republish,omitempty"` - // A comma-separated values list of tags to add to the package. Tags string `json:"tags,omitempty"` } diff --git a/bindings/go/src/packages_upload_helm.go b/bindings/go/src/model_packages_upload_helm.go similarity index 83% rename from bindings/go/src/packages_upload_helm.go rename to bindings/go/src/model_packages_upload_helm.go index d50fae8a..c974f3a4 100644 --- a/bindings/go/src/packages_upload_helm.go +++ b/bindings/go/src/model_packages_upload_helm.go @@ -1,23 +1,20 @@ -/* +/* * Cloudsmith API * * The API to the Cloudsmith Service * - * OpenAPI spec version: v1 + * API version: v1 * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package cloudsmith_api type PackagesUploadHelm struct { - // The primary file for the package. PackageFile string `json:"package_file"` - // If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. Republish bool `json:"republish,omitempty"` - // A comma-separated values list of tags to add to the package. Tags string `json:"tags,omitempty"` } diff --git a/bindings/go/src/packages_upload_luarocks.go b/bindings/go/src/model_packages_upload_luarocks.go similarity index 83% rename from bindings/go/src/packages_upload_luarocks.go rename to bindings/go/src/model_packages_upload_luarocks.go index d2cfc798..836f56fd 100644 --- a/bindings/go/src/packages_upload_luarocks.go +++ b/bindings/go/src/model_packages_upload_luarocks.go @@ -1,23 +1,20 @@ -/* +/* * Cloudsmith API * * The API to the Cloudsmith Service * - * OpenAPI spec version: v1 + * API version: v1 * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package cloudsmith_api type PackagesUploadLuarocks struct { - // The primary file for the package. PackageFile string `json:"package_file"` - // If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. Republish bool `json:"republish,omitempty"` - // A comma-separated values list of tags to add to the package. Tags string `json:"tags,omitempty"` } diff --git a/bindings/go/src/packages_upload_maven.go b/bindings/go/src/model_packages_upload_maven.go similarity index 91% rename from bindings/go/src/packages_upload_maven.go rename to bindings/go/src/model_packages_upload_maven.go index 6f68cc4b..4e38ab10 100644 --- a/bindings/go/src/packages_upload_maven.go +++ b/bindings/go/src/model_packages_upload_maven.go @@ -1,47 +1,36 @@ -/* +/* * Cloudsmith API * * The API to the Cloudsmith Service * - * OpenAPI spec version: v1 + * API version: v1 * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package cloudsmith_api type PackagesUploadMaven struct { - // The ID of the artifact. ArtifactId string `json:"artifact_id,omitempty"` - // Artifact's group ID. GroupId string `json:"group_id,omitempty"` - // Adds bundled Java documentation to the Maven package JavadocFile string `json:"javadoc_file,omitempty"` - // The primary file for the package. PackageFile string `json:"package_file"` - // Artifact's Maven packaging type. Packaging string `json:"packaging,omitempty"` - // The POM file is an XML file containing the Maven coordinates. PomFile string `json:"pom_file,omitempty"` - // If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. Republish bool `json:"republish,omitempty"` - // Adds bundled Java source code to the Maven package. SourcesFile string `json:"sources_file,omitempty"` - // A comma-separated values list of tags to add to the package. Tags string `json:"tags,omitempty"` - // Adds bundled Java tests to the Maven package. TestsFile string `json:"tests_file,omitempty"` - // The raw version for this package. Version string `json:"version,omitempty"` } diff --git a/bindings/go/src/packages_upload_npm.go b/bindings/go/src/model_packages_upload_npm.go similarity index 86% rename from bindings/go/src/packages_upload_npm.go rename to bindings/go/src/model_packages_upload_npm.go index 08513a73..e4ccdad1 100644 --- a/bindings/go/src/packages_upload_npm.go +++ b/bindings/go/src/model_packages_upload_npm.go @@ -1,26 +1,22 @@ -/* +/* * Cloudsmith API * * The API to the Cloudsmith Service * - * OpenAPI spec version: v1 + * API version: v1 * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package cloudsmith_api type PackagesUploadNpm struct { - // The default npm dist-tag for this package/version - This will replace any other package/version if they are using the same tag. NpmDistTag string `json:"npm_dist_tag,omitempty"` - // The primary file for the package. PackageFile string `json:"package_file"` - // If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. Republish bool `json:"republish,omitempty"` - // A comma-separated values list of tags to add to the package. Tags string `json:"tags,omitempty"` } diff --git a/bindings/go/src/packages_upload_nuget.go b/bindings/go/src/model_packages_upload_nuget.go similarity index 85% rename from bindings/go/src/packages_upload_nuget.go rename to bindings/go/src/model_packages_upload_nuget.go index 5d4ac772..8eef6d24 100644 --- a/bindings/go/src/packages_upload_nuget.go +++ b/bindings/go/src/model_packages_upload_nuget.go @@ -1,26 +1,22 @@ -/* +/* * Cloudsmith API * * The API to the Cloudsmith Service * - * OpenAPI spec version: v1 + * API version: v1 * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package cloudsmith_api type PackagesUploadNuget struct { - // The primary file for the package. PackageFile string `json:"package_file"` - // If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. Republish bool `json:"republish,omitempty"` - // Attaches a symbols file to the package. SymbolsFile string `json:"symbols_file,omitempty"` - // A comma-separated values list of tags to add to the package. Tags string `json:"tags,omitempty"` } diff --git a/bindings/go/src/packages_upload_p2.go b/bindings/go/src/model_packages_upload_p2.go similarity index 83% rename from bindings/go/src/packages_upload_p2.go rename to bindings/go/src/model_packages_upload_p2.go index 2bdef620..2267f2fa 100644 --- a/bindings/go/src/packages_upload_p2.go +++ b/bindings/go/src/model_packages_upload_p2.go @@ -1,23 +1,20 @@ -/* +/* * Cloudsmith API * * The API to the Cloudsmith Service * - * OpenAPI spec version: v1 + * API version: v1 * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package cloudsmith_api type PackagesUploadP2 struct { - // The primary file for the package. PackageFile string `json:"package_file"` - // If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. Republish bool `json:"republish,omitempty"` - // A comma-separated values list of tags to add to the package. Tags string `json:"tags,omitempty"` } diff --git a/bindings/go/src/packages_upload_python.go b/bindings/go/src/model_packages_upload_python.go similarity index 83% rename from bindings/go/src/packages_upload_python.go rename to bindings/go/src/model_packages_upload_python.go index dd1e73d1..4e13743c 100644 --- a/bindings/go/src/packages_upload_python.go +++ b/bindings/go/src/model_packages_upload_python.go @@ -1,23 +1,20 @@ -/* +/* * Cloudsmith API * * The API to the Cloudsmith Service * - * OpenAPI spec version: v1 + * API version: v1 * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package cloudsmith_api type PackagesUploadPython struct { - // The primary file for the package. PackageFile string `json:"package_file"` - // If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. Republish bool `json:"republish,omitempty"` - // A comma-separated values list of tags to add to the package. Tags string `json:"tags,omitempty"` } diff --git a/bindings/go/src/packages_upload_raw.go b/bindings/go/src/model_packages_upload_raw.go similarity index 91% rename from bindings/go/src/packages_upload_raw.go rename to bindings/go/src/model_packages_upload_raw.go index 0e18a838..a325766b 100644 --- a/bindings/go/src/packages_upload_raw.go +++ b/bindings/go/src/model_packages_upload_raw.go @@ -1,38 +1,30 @@ -/* +/* * Cloudsmith API * * The API to the Cloudsmith Service * - * OpenAPI spec version: v1 + * API version: v1 * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package cloudsmith_api type PackagesUploadRaw struct { - // A custom content/media (also known as MIME) type to be sent when downloading this file. By default Cloudsmith will attempt to detect the type, but if you need to override it, you can specify it here. ContentType string `json:"content_type,omitempty"` - // A textual description of this package. Description string `json:"description,omitempty"` - // The name of this package. Name string `json:"name,omitempty"` - // The primary file for the package. PackageFile string `json:"package_file"` - // If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. Republish bool `json:"republish,omitempty"` - // A one-liner synopsis of this package. Summary string `json:"summary,omitempty"` - // A comma-separated values list of tags to add to the package. Tags string `json:"tags,omitempty"` - // The raw version for this package. Version string `json:"version,omitempty"` } diff --git a/bindings/go/src/packages_upload_rpm.go b/bindings/go/src/model_packages_upload_rpm.go similarity index 85% rename from bindings/go/src/packages_upload_rpm.go rename to bindings/go/src/model_packages_upload_rpm.go index 2ebf45a6..53af919c 100644 --- a/bindings/go/src/packages_upload_rpm.go +++ b/bindings/go/src/model_packages_upload_rpm.go @@ -1,26 +1,22 @@ -/* +/* * Cloudsmith API * * The API to the Cloudsmith Service * - * OpenAPI spec version: v1 + * API version: v1 * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package cloudsmith_api type PackagesUploadRpm struct { - // The distribution to store the package for. Distribution string `json:"distribution"` - // The primary file for the package. PackageFile string `json:"package_file"` - // If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. Republish bool `json:"republish,omitempty"` - // A comma-separated values list of tags to add to the package. Tags string `json:"tags,omitempty"` } diff --git a/bindings/go/src/packages_upload_ruby.go b/bindings/go/src/model_packages_upload_ruby.go similarity index 83% rename from bindings/go/src/packages_upload_ruby.go rename to bindings/go/src/model_packages_upload_ruby.go index 814e0a83..f7d8ba08 100644 --- a/bindings/go/src/packages_upload_ruby.go +++ b/bindings/go/src/model_packages_upload_ruby.go @@ -1,23 +1,20 @@ -/* +/* * Cloudsmith API * * The API to the Cloudsmith Service * - * OpenAPI spec version: v1 + * API version: v1 * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package cloudsmith_api type PackagesUploadRuby struct { - // The primary file for the package. PackageFile string `json:"package_file"` - // If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. Republish bool `json:"republish,omitempty"` - // A comma-separated values list of tags to add to the package. Tags string `json:"tags,omitempty"` } diff --git a/bindings/go/src/packages_upload_terraform.go b/bindings/go/src/model_packages_upload_terraform.go similarity index 83% rename from bindings/go/src/packages_upload_terraform.go rename to bindings/go/src/model_packages_upload_terraform.go index c91acf73..1724820b 100644 --- a/bindings/go/src/packages_upload_terraform.go +++ b/bindings/go/src/model_packages_upload_terraform.go @@ -1,23 +1,20 @@ -/* +/* * Cloudsmith API * * The API to the Cloudsmith Service * - * OpenAPI spec version: v1 + * API version: v1 * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package cloudsmith_api type PackagesUploadTerraform struct { - // The primary file for the package. PackageFile string `json:"package_file"` - // If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. Republish bool `json:"republish,omitempty"` - // A comma-separated values list of tags to add to the package. Tags string `json:"tags,omitempty"` } diff --git a/bindings/go/src/packages_upload_vagrant.go b/bindings/go/src/model_packages_upload_vagrant.go similarity index 87% rename from bindings/go/src/packages_upload_vagrant.go rename to bindings/go/src/model_packages_upload_vagrant.go index 74f63065..62a9bf6e 100644 --- a/bindings/go/src/packages_upload_vagrant.go +++ b/bindings/go/src/model_packages_upload_vagrant.go @@ -1,32 +1,26 @@ -/* +/* * Cloudsmith API * * The API to the Cloudsmith Service * - * OpenAPI spec version: v1 + * API version: v1 * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package cloudsmith_api type PackagesUploadVagrant struct { - // The name of this package. Name string `json:"name"` - // The primary file for the package. PackageFile string `json:"package_file"` - // The virtual machine provider for the box. Provider string `json:"provider"` - // If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. Republish bool `json:"republish,omitempty"` - // A comma-separated values list of tags to add to the package. Tags string `json:"tags,omitempty"` - // The raw version for this package. Version string `json:"version"` } diff --git a/bindings/go/src/packages_validateupload_alpine.go b/bindings/go/src/model_packages_validateupload_alpine.go similarity index 85% rename from bindings/go/src/packages_validateupload_alpine.go rename to bindings/go/src/model_packages_validateupload_alpine.go index f232d2c8..c59ad9cf 100644 --- a/bindings/go/src/packages_validateupload_alpine.go +++ b/bindings/go/src/model_packages_validateupload_alpine.go @@ -1,26 +1,22 @@ -/* +/* * Cloudsmith API * * The API to the Cloudsmith Service * - * OpenAPI spec version: v1 + * API version: v1 * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package cloudsmith_api type PackagesValidateuploadAlpine struct { - // The distribution to store the package for. Distribution string `json:"distribution"` - // The primary file for the package. PackageFile string `json:"package_file"` - // If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. Republish bool `json:"republish,omitempty"` - // A comma-separated values list of tags to add to the package. Tags string `json:"tags,omitempty"` } diff --git a/bindings/go/src/packages_validateupload_cargo.go b/bindings/go/src/model_packages_validateupload_cargo.go similarity index 83% rename from bindings/go/src/packages_validateupload_cargo.go rename to bindings/go/src/model_packages_validateupload_cargo.go index 9ae26ada..5309328e 100644 --- a/bindings/go/src/packages_validateupload_cargo.go +++ b/bindings/go/src/model_packages_validateupload_cargo.go @@ -1,23 +1,20 @@ -/* +/* * Cloudsmith API * * The API to the Cloudsmith Service * - * OpenAPI spec version: v1 + * API version: v1 * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package cloudsmith_api type PackagesValidateuploadCargo struct { - // The primary file for the package. PackageFile string `json:"package_file"` - // If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. Republish bool `json:"republish,omitempty"` - // A comma-separated values list of tags to add to the package. Tags string `json:"tags,omitempty"` } diff --git a/bindings/go/src/packages_validateupload_cocoapods.go b/bindings/go/src/model_packages_validateupload_cocoapods.go similarity index 83% rename from bindings/go/src/packages_validateupload_cocoapods.go rename to bindings/go/src/model_packages_validateupload_cocoapods.go index 64306281..85f50902 100644 --- a/bindings/go/src/packages_validateupload_cocoapods.go +++ b/bindings/go/src/model_packages_validateupload_cocoapods.go @@ -1,23 +1,20 @@ -/* +/* * Cloudsmith API * * The API to the Cloudsmith Service * - * OpenAPI spec version: v1 + * API version: v1 * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package cloudsmith_api type PackagesValidateuploadCocoapods struct { - // The primary file for the package. PackageFile string `json:"package_file"` - // If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. Republish bool `json:"republish,omitempty"` - // A comma-separated values list of tags to add to the package. Tags string `json:"tags,omitempty"` } diff --git a/bindings/go/src/packages_validateupload_composer.go b/bindings/go/src/model_packages_validateupload_composer.go similarity index 83% rename from bindings/go/src/packages_validateupload_composer.go rename to bindings/go/src/model_packages_validateupload_composer.go index 5ff09f26..c3ead3fb 100644 --- a/bindings/go/src/packages_validateupload_composer.go +++ b/bindings/go/src/model_packages_validateupload_composer.go @@ -1,23 +1,20 @@ -/* +/* * Cloudsmith API * * The API to the Cloudsmith Service * - * OpenAPI spec version: v1 + * API version: v1 * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package cloudsmith_api type PackagesValidateuploadComposer struct { - // The primary file for the package. PackageFile string `json:"package_file"` - // If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. Republish bool `json:"republish,omitempty"` - // A comma-separated values list of tags to add to the package. Tags string `json:"tags,omitempty"` } diff --git a/bindings/go/src/packages_validateupload_conan.go b/bindings/go/src/model_packages_validateupload_conan.go similarity index 91% rename from bindings/go/src/packages_validateupload_conan.go rename to bindings/go/src/model_packages_validateupload_conan.go index 768bf67a..87e1706d 100644 --- a/bindings/go/src/packages_validateupload_conan.go +++ b/bindings/go/src/model_packages_validateupload_conan.go @@ -1,44 +1,34 @@ -/* +/* * Cloudsmith API * * The API to the Cloudsmith Service * - * OpenAPI spec version: v1 + * API version: v1 * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package cloudsmith_api type PackagesValidateuploadConan struct { - // Conan channel. ConanChannel string `json:"conan_channel,omitempty"` - // Conan prefix (User). ConanPrefix string `json:"conan_prefix,omitempty"` - // The info file is an python file containing the package metadata. InfoFile string `json:"info_file"` - // The info file is an python file containing the package metadata. ManifestFile string `json:"manifest_file"` - // The conan file is an python file containing the package metadata. MetadataFile string `json:"metadata_file"` - // The name of this package. Name string `json:"name,omitempty"` - // The primary file for the package. PackageFile string `json:"package_file"` - // If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. Republish bool `json:"republish,omitempty"` - // A comma-separated values list of tags to add to the package. Tags string `json:"tags,omitempty"` - // The raw version for this package. Version string `json:"version,omitempty"` } diff --git a/bindings/go/src/packages_validateupload_conda.go b/bindings/go/src/model_packages_validateupload_conda.go similarity index 83% rename from bindings/go/src/packages_validateupload_conda.go rename to bindings/go/src/model_packages_validateupload_conda.go index b8ebcbf1..05b0a7cf 100644 --- a/bindings/go/src/packages_validateupload_conda.go +++ b/bindings/go/src/model_packages_validateupload_conda.go @@ -1,23 +1,20 @@ -/* +/* * Cloudsmith API * * The API to the Cloudsmith Service * - * OpenAPI spec version: v1 + * API version: v1 * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package cloudsmith_api type PackagesValidateuploadConda struct { - // The primary file for the package. PackageFile string `json:"package_file"` - // If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. Republish bool `json:"republish,omitempty"` - // A comma-separated values list of tags to add to the package. Tags string `json:"tags,omitempty"` } diff --git a/bindings/go/src/packages_validateupload_cran.go b/bindings/go/src/model_packages_validateupload_cran.go similarity index 83% rename from bindings/go/src/packages_validateupload_cran.go rename to bindings/go/src/model_packages_validateupload_cran.go index 95d71f63..a98a0fef 100644 --- a/bindings/go/src/packages_validateupload_cran.go +++ b/bindings/go/src/model_packages_validateupload_cran.go @@ -1,23 +1,20 @@ -/* +/* * Cloudsmith API * * The API to the Cloudsmith Service * - * OpenAPI spec version: v1 + * API version: v1 * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package cloudsmith_api type PackagesValidateuploadCran struct { - // The primary file for the package. PackageFile string `json:"package_file"` - // If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. Republish bool `json:"republish,omitempty"` - // A comma-separated values list of tags to add to the package. Tags string `json:"tags,omitempty"` } diff --git a/bindings/go/src/packages_validateupload_dart.go b/bindings/go/src/model_packages_validateupload_dart.go similarity index 83% rename from bindings/go/src/packages_validateupload_dart.go rename to bindings/go/src/model_packages_validateupload_dart.go index afbd4720..c06ec70b 100644 --- a/bindings/go/src/packages_validateupload_dart.go +++ b/bindings/go/src/model_packages_validateupload_dart.go @@ -1,23 +1,20 @@ -/* +/* * Cloudsmith API * * The API to the Cloudsmith Service * - * OpenAPI spec version: v1 + * API version: v1 * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package cloudsmith_api type PackagesValidateuploadDart struct { - // The primary file for the package. PackageFile string `json:"package_file"` - // If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. Republish bool `json:"republish,omitempty"` - // A comma-separated values list of tags to add to the package. Tags string `json:"tags,omitempty"` } diff --git a/bindings/go/src/packages_validateupload_deb.go b/bindings/go/src/model_packages_validateupload_deb.go similarity index 89% rename from bindings/go/src/packages_validateupload_deb.go rename to bindings/go/src/model_packages_validateupload_deb.go index 46a4c6e4..33aea4e1 100644 --- a/bindings/go/src/packages_validateupload_deb.go +++ b/bindings/go/src/model_packages_validateupload_deb.go @@ -1,32 +1,26 @@ -/* +/* * Cloudsmith API * * The API to the Cloudsmith Service * - * OpenAPI spec version: v1 + * API version: v1 * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package cloudsmith_api type PackagesValidateuploadDeb struct { - // The changes archive containing the changes made to the source and debian packaging files ChangesFile string `json:"changes_file,omitempty"` - // The distribution to store the package for. Distribution string `json:"distribution"` - // The primary file for the package. PackageFile string `json:"package_file"` - // If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. Republish bool `json:"republish,omitempty"` - // The sources archive containing the source code for the binary SourcesFile string `json:"sources_file,omitempty"` - // A comma-separated values list of tags to add to the package. Tags string `json:"tags,omitempty"` } diff --git a/bindings/go/src/packages_validateupload_docker.go b/bindings/go/src/model_packages_validateupload_docker.go similarity index 83% rename from bindings/go/src/packages_validateupload_docker.go rename to bindings/go/src/model_packages_validateupload_docker.go index 65a2386d..2e9e8b30 100644 --- a/bindings/go/src/packages_validateupload_docker.go +++ b/bindings/go/src/model_packages_validateupload_docker.go @@ -1,23 +1,20 @@ -/* +/* * Cloudsmith API * * The API to the Cloudsmith Service * - * OpenAPI spec version: v1 + * API version: v1 * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package cloudsmith_api type PackagesValidateuploadDocker struct { - // The primary file for the package. PackageFile string `json:"package_file"` - // If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. Republish bool `json:"republish,omitempty"` - // A comma-separated values list of tags to add to the package. Tags string `json:"tags,omitempty"` } diff --git a/bindings/go/src/packages_validateupload_go.go b/bindings/go/src/model_packages_validateupload_go.go similarity index 83% rename from bindings/go/src/packages_validateupload_go.go rename to bindings/go/src/model_packages_validateupload_go.go index 6cdc3acc..87edd83f 100644 --- a/bindings/go/src/packages_validateupload_go.go +++ b/bindings/go/src/model_packages_validateupload_go.go @@ -1,23 +1,20 @@ -/* +/* * Cloudsmith API * * The API to the Cloudsmith Service * - * OpenAPI spec version: v1 + * API version: v1 * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package cloudsmith_api type PackagesValidateuploadGo struct { - // The primary file for the package. PackageFile string `json:"package_file"` - // If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. Republish bool `json:"republish,omitempty"` - // A comma-separated values list of tags to add to the package. Tags string `json:"tags,omitempty"` } diff --git a/bindings/go/src/packages_validateupload_helm.go b/bindings/go/src/model_packages_validateupload_helm.go similarity index 83% rename from bindings/go/src/packages_validateupload_helm.go rename to bindings/go/src/model_packages_validateupload_helm.go index 17c1ff95..14187f7a 100644 --- a/bindings/go/src/packages_validateupload_helm.go +++ b/bindings/go/src/model_packages_validateupload_helm.go @@ -1,23 +1,20 @@ -/* +/* * Cloudsmith API * * The API to the Cloudsmith Service * - * OpenAPI spec version: v1 + * API version: v1 * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package cloudsmith_api type PackagesValidateuploadHelm struct { - // The primary file for the package. PackageFile string `json:"package_file"` - // If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. Republish bool `json:"republish,omitempty"` - // A comma-separated values list of tags to add to the package. Tags string `json:"tags,omitempty"` } diff --git a/bindings/go/src/packages_validateupload_luarocks.go b/bindings/go/src/model_packages_validateupload_luarocks.go similarity index 83% rename from bindings/go/src/packages_validateupload_luarocks.go rename to bindings/go/src/model_packages_validateupload_luarocks.go index 547e122f..589e1c7e 100644 --- a/bindings/go/src/packages_validateupload_luarocks.go +++ b/bindings/go/src/model_packages_validateupload_luarocks.go @@ -1,23 +1,20 @@ -/* +/* * Cloudsmith API * * The API to the Cloudsmith Service * - * OpenAPI spec version: v1 + * API version: v1 * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package cloudsmith_api type PackagesValidateuploadLuarocks struct { - // The primary file for the package. PackageFile string `json:"package_file"` - // If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. Republish bool `json:"republish,omitempty"` - // A comma-separated values list of tags to add to the package. Tags string `json:"tags,omitempty"` } diff --git a/bindings/go/src/packages_validateupload_maven.go b/bindings/go/src/model_packages_validateupload_maven.go similarity index 92% rename from bindings/go/src/packages_validateupload_maven.go rename to bindings/go/src/model_packages_validateupload_maven.go index a6ed732d..74ff9f2c 100644 --- a/bindings/go/src/packages_validateupload_maven.go +++ b/bindings/go/src/model_packages_validateupload_maven.go @@ -1,47 +1,36 @@ -/* +/* * Cloudsmith API * * The API to the Cloudsmith Service * - * OpenAPI spec version: v1 + * API version: v1 * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package cloudsmith_api type PackagesValidateuploadMaven struct { - // The ID of the artifact. ArtifactId string `json:"artifact_id,omitempty"` - // Artifact's group ID. GroupId string `json:"group_id,omitempty"` - // Adds bundled Java documentation to the Maven package JavadocFile string `json:"javadoc_file,omitempty"` - // The primary file for the package. PackageFile string `json:"package_file"` - // Artifact's Maven packaging type. Packaging string `json:"packaging,omitempty"` - // The POM file is an XML file containing the Maven coordinates. PomFile string `json:"pom_file,omitempty"` - // If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. Republish bool `json:"republish,omitempty"` - // Adds bundled Java source code to the Maven package. SourcesFile string `json:"sources_file,omitempty"` - // A comma-separated values list of tags to add to the package. Tags string `json:"tags,omitempty"` - // Adds bundled Java tests to the Maven package. TestsFile string `json:"tests_file,omitempty"` - // The raw version for this package. Version string `json:"version,omitempty"` } diff --git a/bindings/go/src/packages_validateupload_npm.go b/bindings/go/src/model_packages_validateupload_npm.go similarity index 87% rename from bindings/go/src/packages_validateupload_npm.go rename to bindings/go/src/model_packages_validateupload_npm.go index e3fe0c12..b7f617d9 100644 --- a/bindings/go/src/packages_validateupload_npm.go +++ b/bindings/go/src/model_packages_validateupload_npm.go @@ -1,26 +1,22 @@ -/* +/* * Cloudsmith API * * The API to the Cloudsmith Service * - * OpenAPI spec version: v1 + * API version: v1 * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package cloudsmith_api type PackagesValidateuploadNpm struct { - // The default npm dist-tag for this package/version - This will replace any other package/version if they are using the same tag. NpmDistTag string `json:"npm_dist_tag,omitempty"` - // The primary file for the package. PackageFile string `json:"package_file"` - // If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. Republish bool `json:"republish,omitempty"` - // A comma-separated values list of tags to add to the package. Tags string `json:"tags,omitempty"` } diff --git a/bindings/go/src/packages_validateupload_nuget.go b/bindings/go/src/model_packages_validateupload_nuget.go similarity index 85% rename from bindings/go/src/packages_validateupload_nuget.go rename to bindings/go/src/model_packages_validateupload_nuget.go index 5d75ef8b..9e4f5b3e 100644 --- a/bindings/go/src/packages_validateupload_nuget.go +++ b/bindings/go/src/model_packages_validateupload_nuget.go @@ -1,26 +1,22 @@ -/* +/* * Cloudsmith API * * The API to the Cloudsmith Service * - * OpenAPI spec version: v1 + * API version: v1 * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package cloudsmith_api type PackagesValidateuploadNuget struct { - // The primary file for the package. PackageFile string `json:"package_file"` - // If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. Republish bool `json:"republish,omitempty"` - // Attaches a symbols file to the package. SymbolsFile string `json:"symbols_file,omitempty"` - // A comma-separated values list of tags to add to the package. Tags string `json:"tags,omitempty"` } diff --git a/bindings/go/src/packages_validateupload_p2.go b/bindings/go/src/model_packages_validateupload_p2.go similarity index 83% rename from bindings/go/src/packages_validateupload_p2.go rename to bindings/go/src/model_packages_validateupload_p2.go index 297bfb56..03bc241e 100644 --- a/bindings/go/src/packages_validateupload_p2.go +++ b/bindings/go/src/model_packages_validateupload_p2.go @@ -1,23 +1,20 @@ -/* +/* * Cloudsmith API * * The API to the Cloudsmith Service * - * OpenAPI spec version: v1 + * API version: v1 * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package cloudsmith_api type PackagesValidateuploadP2 struct { - // The primary file for the package. PackageFile string `json:"package_file"` - // If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. Republish bool `json:"republish,omitempty"` - // A comma-separated values list of tags to add to the package. Tags string `json:"tags,omitempty"` } diff --git a/bindings/go/src/packages_validateupload_python.go b/bindings/go/src/model_packages_validateupload_python.go similarity index 83% rename from bindings/go/src/packages_validateupload_python.go rename to bindings/go/src/model_packages_validateupload_python.go index c4c92c67..943592b0 100644 --- a/bindings/go/src/packages_validateupload_python.go +++ b/bindings/go/src/model_packages_validateupload_python.go @@ -1,23 +1,20 @@ -/* +/* * Cloudsmith API * * The API to the Cloudsmith Service * - * OpenAPI spec version: v1 + * API version: v1 * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package cloudsmith_api type PackagesValidateuploadPython struct { - // The primary file for the package. PackageFile string `json:"package_file"` - // If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. Republish bool `json:"republish,omitempty"` - // A comma-separated values list of tags to add to the package. Tags string `json:"tags,omitempty"` } diff --git a/bindings/go/src/packages_validateupload_raw.go b/bindings/go/src/model_packages_validateupload_raw.go similarity index 91% rename from bindings/go/src/packages_validateupload_raw.go rename to bindings/go/src/model_packages_validateupload_raw.go index e81f8cf1..4f78a38b 100644 --- a/bindings/go/src/packages_validateupload_raw.go +++ b/bindings/go/src/model_packages_validateupload_raw.go @@ -1,38 +1,30 @@ -/* +/* * Cloudsmith API * * The API to the Cloudsmith Service * - * OpenAPI spec version: v1 + * API version: v1 * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package cloudsmith_api type PackagesValidateuploadRaw struct { - // A custom content/media (also known as MIME) type to be sent when downloading this file. By default Cloudsmith will attempt to detect the type, but if you need to override it, you can specify it here. ContentType string `json:"content_type,omitempty"` - // A textual description of this package. Description string `json:"description,omitempty"` - // The name of this package. Name string `json:"name,omitempty"` - // The primary file for the package. PackageFile string `json:"package_file"` - // If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. Republish bool `json:"republish,omitempty"` - // A one-liner synopsis of this package. Summary string `json:"summary,omitempty"` - // A comma-separated values list of tags to add to the package. Tags string `json:"tags,omitempty"` - // The raw version for this package. Version string `json:"version,omitempty"` } diff --git a/bindings/go/src/packages_validateupload_rpm.go b/bindings/go/src/model_packages_validateupload_rpm.go similarity index 85% rename from bindings/go/src/packages_validateupload_rpm.go rename to bindings/go/src/model_packages_validateupload_rpm.go index c4468fd5..9891b80c 100644 --- a/bindings/go/src/packages_validateupload_rpm.go +++ b/bindings/go/src/model_packages_validateupload_rpm.go @@ -1,26 +1,22 @@ -/* +/* * Cloudsmith API * * The API to the Cloudsmith Service * - * OpenAPI spec version: v1 + * API version: v1 * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package cloudsmith_api type PackagesValidateuploadRpm struct { - // The distribution to store the package for. Distribution string `json:"distribution"` - // The primary file for the package. PackageFile string `json:"package_file"` - // If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. Republish bool `json:"republish,omitempty"` - // A comma-separated values list of tags to add to the package. Tags string `json:"tags,omitempty"` } diff --git a/bindings/go/src/packages_validateupload_ruby.go b/bindings/go/src/model_packages_validateupload_ruby.go similarity index 83% rename from bindings/go/src/packages_validateupload_ruby.go rename to bindings/go/src/model_packages_validateupload_ruby.go index 5509cf3c..741fac80 100644 --- a/bindings/go/src/packages_validateupload_ruby.go +++ b/bindings/go/src/model_packages_validateupload_ruby.go @@ -1,23 +1,20 @@ -/* +/* * Cloudsmith API * * The API to the Cloudsmith Service * - * OpenAPI spec version: v1 + * API version: v1 * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package cloudsmith_api type PackagesValidateuploadRuby struct { - // The primary file for the package. PackageFile string `json:"package_file"` - // If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. Republish bool `json:"republish,omitempty"` - // A comma-separated values list of tags to add to the package. Tags string `json:"tags,omitempty"` } diff --git a/bindings/go/src/packages_validateupload_terraform.go b/bindings/go/src/model_packages_validateupload_terraform.go similarity index 83% rename from bindings/go/src/packages_validateupload_terraform.go rename to bindings/go/src/model_packages_validateupload_terraform.go index fc8697ad..968f94a2 100644 --- a/bindings/go/src/packages_validateupload_terraform.go +++ b/bindings/go/src/model_packages_validateupload_terraform.go @@ -1,23 +1,20 @@ -/* +/* * Cloudsmith API * * The API to the Cloudsmith Service * - * OpenAPI spec version: v1 + * API version: v1 * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package cloudsmith_api type PackagesValidateuploadTerraform struct { - // The primary file for the package. PackageFile string `json:"package_file"` - // If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. Republish bool `json:"republish,omitempty"` - // A comma-separated values list of tags to add to the package. Tags string `json:"tags,omitempty"` } diff --git a/bindings/go/src/packages_validateupload_vagrant.go b/bindings/go/src/model_packages_validateupload_vagrant.go similarity index 87% rename from bindings/go/src/packages_validateupload_vagrant.go rename to bindings/go/src/model_packages_validateupload_vagrant.go index 0465fdc6..5e74bb11 100644 --- a/bindings/go/src/packages_validateupload_vagrant.go +++ b/bindings/go/src/model_packages_validateupload_vagrant.go @@ -1,32 +1,26 @@ -/* +/* * Cloudsmith API * * The API to the Cloudsmith Service * - * OpenAPI spec version: v1 + * API version: v1 * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package cloudsmith_api type PackagesValidateuploadVagrant struct { - // The name of this package. Name string `json:"name"` - // The primary file for the package. PackageFile string `json:"package_file"` - // The virtual machine provider for the box. Provider string `json:"provider"` - // If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. Republish bool `json:"republish,omitempty"` - // A comma-separated values list of tags to add to the package. Tags string `json:"tags,omitempty"` - // The raw version for this package. Version string `json:"version"` } diff --git a/bindings/go/src/packagesownerrepo_architectures.go b/bindings/go/src/model_packagesownerrepo_architectures.go similarity index 71% rename from bindings/go/src/packagesownerrepo_architectures.go rename to bindings/go/src/model_packagesownerrepo_architectures.go index e9d3b526..032d66e4 100644 --- a/bindings/go/src/packagesownerrepo_architectures.go +++ b/bindings/go/src/model_packagesownerrepo_architectures.go @@ -1,20 +1,18 @@ -/* +/* * Cloudsmith API * * The API to the Cloudsmith Service * - * OpenAPI spec version: v1 + * API version: v1 * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package cloudsmith_api type PackagesownerrepoArchitectures struct { - // Description string `json:"description,omitempty"` - // Name string `json:"name,omitempty"` } diff --git a/bindings/go/src/packagesownerrepo_files.go b/bindings/go/src/model_packagesownerrepo_files.go similarity index 89% rename from bindings/go/src/packagesownerrepo_files.go rename to bindings/go/src/model_packagesownerrepo_files.go index 20f8033f..943dbd4c 100644 --- a/bindings/go/src/packagesownerrepo_files.go +++ b/bindings/go/src/model_packagesownerrepo_files.go @@ -1,56 +1,42 @@ -/* +/* * Cloudsmith API * * The API to the Cloudsmith Service * - * OpenAPI spec version: v1 + * API version: v1 * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package cloudsmith_api type PackagesownerrepoFiles struct { - // CdnUrl string `json:"cdn_url,omitempty"` - // ChecksumMd5 string `json:"checksum_md5,omitempty"` - // ChecksumSha1 string `json:"checksum_sha1,omitempty"` - // ChecksumSha256 string `json:"checksum_sha256,omitempty"` - // ChecksumSha512 string `json:"checksum_sha512,omitempty"` - // Downloads int32 `json:"downloads,omitempty"` - // Filename string `json:"filename,omitempty"` - // IsDownloadable bool `json:"is_downloadable,omitempty"` - // IsPrimary bool `json:"is_primary,omitempty"` - // IsSynchronised bool `json:"is_synchronised,omitempty"` - // SignatureUrl string `json:"signature_url,omitempty"` - // The calculated size of the file. Size int32 `json:"size,omitempty"` - // SlugPerm string `json:"slug_perm,omitempty"` - // Freeform descriptor that describes what the file is. Tag string `json:"tag,omitempty"` } diff --git a/bindings/go/src/quota.go b/bindings/go/src/model_quota.go similarity index 63% rename from bindings/go/src/quota.go rename to bindings/go/src/model_quota.go index 1893efc7..976f0f77 100644 --- a/bindings/go/src/quota.go +++ b/bindings/go/src/model_quota.go @@ -1,17 +1,16 @@ -/* +/* * Cloudsmith API * * The API to the Cloudsmith Service * - * OpenAPI spec version: v1 + * API version: v1 * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package cloudsmith_api type Quota struct { - // Usage interface{} `json:"usage"` } diff --git a/bindings/go/src/quota_history.go b/bindings/go/src/model_quota_history.go similarity index 65% rename from bindings/go/src/quota_history.go rename to bindings/go/src/model_quota_history.go index 347b3db6..a3466b74 100644 --- a/bindings/go/src/quota_history.go +++ b/bindings/go/src/model_quota_history.go @@ -1,17 +1,16 @@ -/* +/* * Cloudsmith API * * The API to the Cloudsmith Service * - * OpenAPI spec version: v1 + * API version: v1 * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package cloudsmith_api type QuotaHistory struct { - // History []QuotaHistoryHistory `json:"history"` } diff --git a/bindings/go/src/quota_history_history.go b/bindings/go/src/model_quota_history_history.go similarity index 79% rename from bindings/go/src/quota_history_history.go rename to bindings/go/src/model_quota_history_history.go index 486b294c..6ceb6448 100644 --- a/bindings/go/src/quota_history_history.go +++ b/bindings/go/src/model_quota_history_history.go @@ -1,32 +1,26 @@ -/* +/* * Cloudsmith API * * The API to the Cloudsmith Service * - * OpenAPI spec version: v1 + * API version: v1 * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package cloudsmith_api type QuotaHistoryHistory struct { - // Days int32 `json:"days,omitempty"` - // Display interface{} `json:"display,omitempty"` - // End string `json:"end,omitempty"` - // Plan string `json:"plan,omitempty"` - // Raw interface{} `json:"raw,omitempty"` - // Start string `json:"start,omitempty"` } diff --git a/bindings/go/src/raw_package_upload.go b/bindings/go/src/model_raw_package_upload.go similarity index 96% rename from bindings/go/src/raw_package_upload.go rename to bindings/go/src/model_raw_package_upload.go index ae9d34f9..eb1b4041 100644 --- a/bindings/go/src/raw_package_upload.go +++ b/bindings/go/src/model_raw_package_upload.go @@ -1,206 +1,142 @@ -/* +/* * Cloudsmith API * * The API to the Cloudsmith Service * - * OpenAPI spec version: v1 + * API version: v1 * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package cloudsmith_api type RawPackageUpload struct { - // Architectures []PackagesownerrepoArchitectures `json:"architectures,omitempty"` - // CdnUrl string `json:"cdn_url,omitempty"` - // ChecksumMd5 string `json:"checksum_md5,omitempty"` - // ChecksumSha1 string `json:"checksum_sha1,omitempty"` - // ChecksumSha256 string `json:"checksum_sha256,omitempty"` - // ChecksumSha512 string `json:"checksum_sha512,omitempty"` - // A checksum of all of the package's dependencies. DependenciesChecksumMd5 string `json:"dependencies_checksum_md5,omitempty"` - // DependenciesUrl string `json:"dependencies_url,omitempty"` - // A textual description of this package. Description string `json:"description,omitempty"` - // Distro interface{} `json:"distro,omitempty"` - // DistroVersion interface{} `json:"distro_version,omitempty"` - // Downloads int32 `json:"downloads,omitempty"` - // The epoch of the package version (if any). Epoch int32 `json:"epoch,omitempty"` - // Extension string `json:"extension,omitempty"` - // Filename string `json:"filename,omitempty"` - // Files []PackagesownerrepoFiles `json:"files,omitempty"` - // Format string `json:"format,omitempty"` - // FormatUrl string `json:"format_url,omitempty"` - // Unique and permanent identifier for the package. IdentifierPerm string `json:"identifier_perm,omitempty"` - // Indexed bool `json:"indexed,omitempty"` - // IsSyncAwaiting bool `json:"is_sync_awaiting,omitempty"` - // IsSyncCompleted bool `json:"is_sync_completed,omitempty"` - // IsSyncFailed bool `json:"is_sync_failed,omitempty"` - // IsSyncInFlight bool `json:"is_sync_in_flight,omitempty"` - // IsSyncInProgress bool `json:"is_sync_in_progress,omitempty"` - // The license of this package. License string `json:"license,omitempty"` - // The name of this package. Name string `json:"name,omitempty"` - // Namespace string `json:"namespace,omitempty"` - // NamespaceUrl string `json:"namespace_url,omitempty"` - // NumFiles int32 `json:"num_files,omitempty"` - // The type of package contents. PackageType string `json:"package_type,omitempty"` - // The release of the package version (if any). Release string `json:"release,omitempty"` - // Repository string `json:"repository,omitempty"` - // RepositoryUrl string `json:"repository_url,omitempty"` - // The datetime the security scanning was completed. SecurityScanCompletedAt string `json:"security_scan_completed_at,omitempty"` - // The datetime the security scanning was started. SecurityScanStartedAt string `json:"security_scan_started_at,omitempty"` - // SecurityScanStatus string `json:"security_scan_status,omitempty"` - // The datetime the security scanning status was updated. SecurityScanStatusUpdatedAt string `json:"security_scan_status_updated_at,omitempty"` - // SelfHtmlUrl string `json:"self_html_url,omitempty"` - // SelfUrl string `json:"self_url,omitempty"` - // SignatureUrl string `json:"signature_url,omitempty"` - // The calculated size of the package. Size int32 `json:"size,omitempty"` - // The public unique identifier for the package. Slug string `json:"slug,omitempty"` - // SlugPerm string `json:"slug_perm,omitempty"` - // The synchronisation (in progress) stage of the package. Stage string `json:"stage,omitempty"` - // StageStr string `json:"stage_str,omitempty"` - // The datetime the package stage was updated at. StageUpdatedAt string `json:"stage_updated_at,omitempty"` - // The synchronisation status of the package. Status string `json:"status,omitempty"` - // A textual description for the synchronous status reason (if any StatusReason string `json:"status_reason,omitempty"` - // StatusStr string `json:"status_str,omitempty"` - // The datetime the package status was updated at. StatusUpdatedAt string `json:"status_updated_at,omitempty"` - // StatusUrl string `json:"status_url,omitempty"` - // Subtype string `json:"subtype,omitempty"` - // A one-liner synopsis of this package. Summary string `json:"summary,omitempty"` - // The datetime the package sync was finished at. SyncFinishedAt string `json:"sync_finished_at,omitempty"` - // Synchronisation progress (from 0-100) SyncProgress int32 `json:"sync_progress,omitempty"` - // All immutable tags on the package, grouped by tag type. Immutable tags cannot be (easily) deleted. TagsImmutable interface{} `json:"tags_immutable,omitempty"` - // TypeDisplay string `json:"type_display,omitempty"` - // The date this package was uploaded. UploadedAt string `json:"uploaded_at,omitempty"` - // Uploader string `json:"uploader,omitempty"` - // UploaderUrl string `json:"uploader_url,omitempty"` - // The raw version for this package. Version string `json:"version,omitempty"` - // VersionOrig string `json:"version_orig,omitempty"` - // VulnerabilityScanResultsUrl string `json:"vulnerability_scan_results_url,omitempty"` } diff --git a/bindings/go/src/repos_create.go b/bindings/go/src/model_repos_create.go similarity index 91% rename from bindings/go/src/repos_create.go rename to bindings/go/src/model_repos_create.go index 2a48d58f..85df8fcf 100644 --- a/bindings/go/src/repos_create.go +++ b/bindings/go/src/model_repos_create.go @@ -1,32 +1,26 @@ -/* +/* * Cloudsmith API * * The API to the Cloudsmith Service * - * OpenAPI spec version: v1 + * API version: v1 * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package cloudsmith_api type ReposCreate struct { - // A description of the repository's purpose/contents. Description string `json:"description,omitempty"` - // If checked, files contained in packages will be indexed, which increase the synchronisation time required for packages. Note that it is recommended you keep this enabled unless the synchronisation time is significantly impacted. IndexFiles bool `json:"index_files,omitempty"` - // A descriptive name for the repository. Name string `json:"name"` - // The repository type changes how it is accessed and billed. Private repositories can only be used on paid plans, but are visible only to you or authorised delegates. Public repositories are free to use on all plans and visible to all Cloudsmith users. RepositoryTypeStr string `json:"repository_type_str,omitempty"` - // The slug identifies the repository in URIs. Slug string `json:"slug,omitempty"` - // The Cloudsmith region in which package files are stored. StorageRegion string `json:"storage_region,omitempty"` } diff --git a/bindings/go/src/repos_gpg_keys.go b/bindings/go/src/model_repos_gpg_keys.go similarity index 86% rename from bindings/go/src/repos_gpg_keys.go rename to bindings/go/src/model_repos_gpg_keys.go index 8383c7b9..06c8a7b7 100644 --- a/bindings/go/src/repos_gpg_keys.go +++ b/bindings/go/src/model_repos_gpg_keys.go @@ -1,35 +1,28 @@ -/* +/* * Cloudsmith API * * The API to the Cloudsmith Service * - * OpenAPI spec version: v1 + * API version: v1 * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package cloudsmith_api type ReposGpgKeys struct { - // If selected this is the active key for this repository. Active bool `json:"active,omitempty"` - // Comment string `json:"comment,omitempty"` - // CreatedAt string `json:"created_at,omitempty"` - // If selected this is the default key for this repository. Default_ bool `json:"default,omitempty"` - // The long identifier used by GPG for this key. Fingerprint string `json:"fingerprint,omitempty"` - // FingerprintShort string `json:"fingerprint_short,omitempty"` - // The public key given to repository users. PublicKey string `json:"public_key,omitempty"` } diff --git a/bindings/go/src/repos_partial_update.go b/bindings/go/src/model_repos_partial_update.go similarity index 90% rename from bindings/go/src/repos_partial_update.go rename to bindings/go/src/model_repos_partial_update.go index d6b6dc39..9521ca21 100644 --- a/bindings/go/src/repos_partial_update.go +++ b/bindings/go/src/model_repos_partial_update.go @@ -1,29 +1,24 @@ -/* +/* * Cloudsmith API * * The API to the Cloudsmith Service * - * OpenAPI spec version: v1 + * API version: v1 * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package cloudsmith_api type ReposPartialUpdate struct { - // A description of the repository's purpose/contents. Description string `json:"description,omitempty"` - // If checked, files contained in packages will be indexed, which increase the synchronisation time required for packages. Note that it is recommended you keep this enabled unless the synchronisation time is significantly impacted. IndexFiles bool `json:"index_files,omitempty"` - // A descriptive name for the repository. Name string `json:"name,omitempty"` - // The repository type changes how it is accessed and billed. Private repositories can only be used on paid plans, but are visible only to you or authorised delegates. Public repositories are free to use on all plans and visible to all Cloudsmith users. RepositoryTypeStr string `json:"repository_type_str,omitempty"` - // The slug identifies the repository in URIs. Slug string `json:"slug,omitempty"` } diff --git a/bindings/go/src/repository.go b/bindings/go/src/model_repository.go similarity index 96% rename from bindings/go/src/repository.go rename to bindings/go/src/model_repository.go index e7965d61..273e7edc 100644 --- a/bindings/go/src/repository.go +++ b/bindings/go/src/model_repository.go @@ -1,86 +1,62 @@ -/* +/* * Cloudsmith API * * The API to the Cloudsmith Service * - * OpenAPI spec version: v1 + * API version: v1 * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package cloudsmith_api type Repository struct { - // Base URL from which packages and other artifacts are downloaded. CdnUrl string `json:"cdn_url,omitempty"` - // CreatedAt string `json:"created_at,omitempty"` - // DeletedAt string `json:"deleted_at,omitempty"` - // A description of the repository's purpose/contents. Description string `json:"description,omitempty"` - // GpgKeys []ReposGpgKeys `json:"gpg_keys,omitempty"` - // If checked, files contained in packages will be indexed, which increase the synchronisation time required for packages. Note that it is recommended you keep this enabled unless the synchronisation time is significantly impacted. IndexFiles bool `json:"index_files,omitempty"` - // IsOpenSource bool `json:"is_open_source,omitempty"` - // IsPrivate bool `json:"is_private,omitempty"` - // IsPublic bool `json:"is_public,omitempty"` - // A descriptive name for the repository. Name string `json:"name"` - // Namespace to which this repository belongs. Namespace string `json:"namespace,omitempty"` - // API endpoint where data about this namespace can be retrieved. NamespaceUrl string `json:"namespace_url,omitempty"` - // The number of downloads for packages in the repository. NumDownloads int32 `json:"num_downloads,omitempty"` - // The number of packages in the repository. PackageCount int32 `json:"package_count,omitempty"` - // The number of groups in the repository. PackageGroupCount int32 `json:"package_group_count,omitempty"` - // The repository type changes how it is accessed and billed. Private repositories can only be used on paid plans, but are visible only to you or authorised delegates. Open-Source repositories are always visible to everyone and are restricted by licensing, but are free to use and come with generous bandwidth/storage. You can only select Open-Source at repository creation time. RepositoryType string `json:"repository_type,omitempty"` - // The repository type changes how it is accessed and billed. Private repositories can only be used on paid plans, but are visible only to you or authorised delegates. Public repositories are free to use on all plans and visible to all Cloudsmith users. RepositoryTypeStr string `json:"repository_type_str,omitempty"` - // Website URL for this repository. SelfHtmlUrl string `json:"self_html_url,omitempty"` - // API endpoint where data about this repository can be retrieved. SelfUrl string `json:"self_url,omitempty"` - // The calculated size of the repository. Size int32 `json:"size,omitempty"` - // The calculated size of the repository (human readable). SizeStr string `json:"size_str,omitempty"` - // The slug identifies the repository in URIs. Slug string `json:"slug,omitempty"` - // The slug_perm immutably identifies the repository. It will never change once a repository has been created. SlugPerm string `json:"slug_perm,omitempty"` - // The Cloudsmith region in which package files are stored. StorageRegion string `json:"storage_region,omitempty"` } diff --git a/bindings/go/src/repository_token.go b/bindings/go/src/model_repository_token.go similarity index 96% rename from bindings/go/src/repository_token.go rename to bindings/go/src/model_repository_token.go index 1b6c3ec8..58a143ea 100644 --- a/bindings/go/src/repository_token.go +++ b/bindings/go/src/model_repository_token.go @@ -1,131 +1,92 @@ -/* +/* * Cloudsmith API * * The API to the Cloudsmith Service * - * OpenAPI spec version: v1 + * API version: v1 * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package cloudsmith_api type RepositoryToken struct { - // Clients int32 `json:"clients,omitempty"` - // The datetime the token was updated at. CreatedAt string `json:"created_at,omitempty"` - // CreatedBy string `json:"created_by,omitempty"` - // CreatedByUrl string `json:"created_by_url,omitempty"` - // If selected this is the default token for this repository. Default_ bool `json:"default,omitempty"` - // DisableUrl string `json:"disable_url,omitempty"` - // Downloads int32 `json:"downloads,omitempty"` - // EnableUrl string `json:"enable_url,omitempty"` - // EulaAccepted interface{} `json:"eula_accepted,omitempty"` - // The datetime the EULA was accepted at. EulaAcceptedAt string `json:"eula_accepted_at,omitempty"` - // EulaAcceptedFrom string `json:"eula_accepted_from,omitempty"` - // If checked, a EULA acceptance is required for this token. EulaRequired bool `json:"eula_required,omitempty"` - // HasLimits bool `json:"has_limits,omitempty"` - // Identifier int32 `json:"identifier,omitempty"` - // If enabled, the token will allow downloads based on configured restrictions (if any). IsActive bool `json:"is_active,omitempty"` - // IsLimited bool `json:"is_limited,omitempty"` - // The maximum download bandwidth allowed for the token. Values are expressed as the selected unit of bandwidth. Please note that since downloads are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point. LimitBandwidth int32 `json:"limit_bandwidth,omitempty"` - // LimitBandwidthUnit string `json:"limit_bandwidth_unit,omitempty"` - // The starting date/time the token is allowed to be used from. LimitDateRangeFrom string `json:"limit_date_range_from,omitempty"` - // The ending date/time the token is allowed to be used until. LimitDateRangeTo string `json:"limit_date_range_to,omitempty"` - // The maximum number of unique clients allowed for the token. Please note that since clients are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point. LimitNumClients int32 `json:"limit_num_clients,omitempty"` - // The maximum number of downloads allowed for the token. Please note that since downloads are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point. LimitNumDownloads int32 `json:"limit_num_downloads,omitempty"` - // The package-based search query to apply to restrict downloads to. This uses the same syntax as the standard search used for repositories, and also supports boolean logic operators such as OR/AND/NOT and parentheses for grouping. This will still allow access to non-package files, such as metadata. LimitPackageQuery string `json:"limit_package_query,omitempty"` - // The path-based search query to apply to restrict downloads to. This supports boolean logic operators such as OR/AND/NOT and parentheses for grouping. The path evaluated does not include the domain name, the namespace, the entitlement code used, the package format, etc. and it always starts with a forward slash. LimitPathQuery string `json:"limit_path_query,omitempty"` - // Metadata interface{} `json:"metadata,omitempty"` - // Name string `json:"name"` - // RefreshUrl string `json:"refresh_url,omitempty"` - // ResetUrl string `json:"reset_url,omitempty"` - // The time at which the scheduled reset period has elapsed and the token limits were automatically reset to zero. ScheduledResetAt string `json:"scheduled_reset_at,omitempty"` - // ScheduledResetPeriod string `json:"scheduled_reset_period,omitempty"` - // SelfUrl string `json:"self_url,omitempty"` - // SlugPerm string `json:"slug_perm,omitempty"` - // Token string `json:"token,omitempty"` - // The datetime the token was updated at. UpdatedAt string `json:"updated_at,omitempty"` - // UpdatedBy string `json:"updated_by,omitempty"` - // UpdatedByUrl string `json:"updated_by_url,omitempty"` - // Usage string `json:"usage,omitempty"` - // User string `json:"user,omitempty"` - // UserUrl string `json:"user_url,omitempty"` } diff --git a/bindings/go/src/repository_token_refresh.go b/bindings/go/src/model_repository_token_refresh.go similarity index 96% rename from bindings/go/src/repository_token_refresh.go rename to bindings/go/src/model_repository_token_refresh.go index 7d9fcdfa..3b7a5357 100644 --- a/bindings/go/src/repository_token_refresh.go +++ b/bindings/go/src/model_repository_token_refresh.go @@ -1,131 +1,92 @@ -/* +/* * Cloudsmith API * * The API to the Cloudsmith Service * - * OpenAPI spec version: v1 + * API version: v1 * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package cloudsmith_api type RepositoryTokenRefresh struct { - // Clients int32 `json:"clients,omitempty"` - // The datetime the token was updated at. CreatedAt string `json:"created_at,omitempty"` - // CreatedBy string `json:"created_by,omitempty"` - // CreatedByUrl string `json:"created_by_url,omitempty"` - // If selected this is the default token for this repository. Default_ bool `json:"default,omitempty"` - // DisableUrl string `json:"disable_url,omitempty"` - // Downloads int32 `json:"downloads,omitempty"` - // EnableUrl string `json:"enable_url,omitempty"` - // EulaAccepted interface{} `json:"eula_accepted,omitempty"` - // The datetime the EULA was accepted at. EulaAcceptedAt string `json:"eula_accepted_at,omitempty"` - // EulaAcceptedFrom string `json:"eula_accepted_from,omitempty"` - // If checked, a EULA acceptance is required for this token. EulaRequired bool `json:"eula_required,omitempty"` - // HasLimits bool `json:"has_limits,omitempty"` - // Identifier int32 `json:"identifier,omitempty"` - // If enabled, the token will allow downloads based on configured restrictions (if any). IsActive bool `json:"is_active,omitempty"` - // IsLimited bool `json:"is_limited,omitempty"` - // The maximum download bandwidth allowed for the token. Values are expressed as the selected unit of bandwidth. Please note that since downloads are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point. LimitBandwidth int32 `json:"limit_bandwidth,omitempty"` - // LimitBandwidthUnit string `json:"limit_bandwidth_unit,omitempty"` - // The starting date/time the token is allowed to be used from. LimitDateRangeFrom string `json:"limit_date_range_from,omitempty"` - // The ending date/time the token is allowed to be used until. LimitDateRangeTo string `json:"limit_date_range_to,omitempty"` - // The maximum number of unique clients allowed for the token. Please note that since clients are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point. LimitNumClients int32 `json:"limit_num_clients,omitempty"` - // The maximum number of downloads allowed for the token. Please note that since downloads are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point. LimitNumDownloads int32 `json:"limit_num_downloads,omitempty"` - // The package-based search query to apply to restrict downloads to. This uses the same syntax as the standard search used for repositories, and also supports boolean logic operators such as OR/AND/NOT and parentheses for grouping. This will still allow access to non-package files, such as metadata. LimitPackageQuery string `json:"limit_package_query,omitempty"` - // The path-based search query to apply to restrict downloads to. This supports boolean logic operators such as OR/AND/NOT and parentheses for grouping. The path evaluated does not include the domain name, the namespace, the entitlement code used, the package format, etc. and it always starts with a forward slash. LimitPathQuery string `json:"limit_path_query,omitempty"` - // Metadata interface{} `json:"metadata,omitempty"` - // Name string `json:"name,omitempty"` - // RefreshUrl string `json:"refresh_url,omitempty"` - // ResetUrl string `json:"reset_url,omitempty"` - // The time at which the scheduled reset period has elapsed and the token limits were automatically reset to zero. ScheduledResetAt string `json:"scheduled_reset_at,omitempty"` - // ScheduledResetPeriod string `json:"scheduled_reset_period,omitempty"` - // SelfUrl string `json:"self_url,omitempty"` - // SlugPerm string `json:"slug_perm,omitempty"` - // Token string `json:"token,omitempty"` - // The datetime the token was updated at. UpdatedAt string `json:"updated_at,omitempty"` - // UpdatedBy string `json:"updated_by,omitempty"` - // UpdatedByUrl string `json:"updated_by_url,omitempty"` - // Usage string `json:"usage,omitempty"` - // User string `json:"user,omitempty"` - // UserUrl string `json:"user_url,omitempty"` } diff --git a/bindings/go/src/repository_token_sync.go b/bindings/go/src/model_repository_token_sync.go similarity index 71% rename from bindings/go/src/repository_token_sync.go rename to bindings/go/src/model_repository_token_sync.go index dcf19e79..bde3f61a 100644 --- a/bindings/go/src/repository_token_sync.go +++ b/bindings/go/src/model_repository_token_sync.go @@ -1,17 +1,16 @@ -/* +/* * Cloudsmith API * * The API to the Cloudsmith Service * - * OpenAPI spec version: v1 + * API version: v1 * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package cloudsmith_api type RepositoryTokenSync struct { - // The entitlements that have been synchronised. Tokens []RepositoryTokenSyncTokens `json:"tokens,omitempty"` } diff --git a/bindings/go/src/repository_token_sync_tokens.go b/bindings/go/src/model_repository_token_sync_tokens.go similarity index 96% rename from bindings/go/src/repository_token_sync_tokens.go rename to bindings/go/src/model_repository_token_sync_tokens.go index 86e2745d..1f036acd 100644 --- a/bindings/go/src/repository_token_sync_tokens.go +++ b/bindings/go/src/model_repository_token_sync_tokens.go @@ -1,131 +1,92 @@ -/* +/* * Cloudsmith API * * The API to the Cloudsmith Service * - * OpenAPI spec version: v1 + * API version: v1 * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package cloudsmith_api type RepositoryTokenSyncTokens struct { - // Clients int32 `json:"clients,omitempty"` - // The datetime the token was updated at. CreatedAt string `json:"created_at,omitempty"` - // CreatedBy string `json:"created_by,omitempty"` - // CreatedByUrl string `json:"created_by_url,omitempty"` - // If selected this is the default token for this repository. Default_ bool `json:"default,omitempty"` - // DisableUrl string `json:"disable_url,omitempty"` - // Downloads int32 `json:"downloads,omitempty"` - // EnableUrl string `json:"enable_url,omitempty"` - // EulaAccepted interface{} `json:"eula_accepted,omitempty"` - // The datetime the EULA was accepted at. EulaAcceptedAt string `json:"eula_accepted_at,omitempty"` - // EulaAcceptedFrom string `json:"eula_accepted_from,omitempty"` - // If checked, a EULA acceptance is required for this token. EulaRequired bool `json:"eula_required,omitempty"` - // HasLimits bool `json:"has_limits,omitempty"` - // Identifier int32 `json:"identifier,omitempty"` - // If enabled, the token will allow downloads based on configured restrictions (if any). IsActive bool `json:"is_active,omitempty"` - // IsLimited bool `json:"is_limited,omitempty"` - // The maximum download bandwidth allowed for the token. Values are expressed as the selected unit of bandwidth. Please note that since downloads are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point. LimitBandwidth int32 `json:"limit_bandwidth,omitempty"` - // LimitBandwidthUnit string `json:"limit_bandwidth_unit,omitempty"` - // The starting date/time the token is allowed to be used from. LimitDateRangeFrom string `json:"limit_date_range_from,omitempty"` - // The ending date/time the token is allowed to be used until. LimitDateRangeTo string `json:"limit_date_range_to,omitempty"` - // The maximum number of unique clients allowed for the token. Please note that since clients are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point. LimitNumClients int32 `json:"limit_num_clients,omitempty"` - // The maximum number of downloads allowed for the token. Please note that since downloads are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point. LimitNumDownloads int32 `json:"limit_num_downloads,omitempty"` - // The package-based search query to apply to restrict downloads to. This uses the same syntax as the standard search used for repositories, and also supports boolean logic operators such as OR/AND/NOT and parentheses for grouping. This will still allow access to non-package files, such as metadata. LimitPackageQuery string `json:"limit_package_query,omitempty"` - // The path-based search query to apply to restrict downloads to. This supports boolean logic operators such as OR/AND/NOT and parentheses for grouping. The path evaluated does not include the domain name, the namespace, the entitlement code used, the package format, etc. and it always starts with a forward slash. LimitPathQuery string `json:"limit_path_query,omitempty"` - // Metadata string `json:"metadata,omitempty"` - // Name string `json:"name,omitempty"` - // RefreshUrl string `json:"refresh_url,omitempty"` - // ResetUrl string `json:"reset_url,omitempty"` - // The time at which the scheduled reset period has elapsed and the token limits were automatically reset to zero. ScheduledResetAt string `json:"scheduled_reset_at,omitempty"` - // ScheduledResetPeriod string `json:"scheduled_reset_period,omitempty"` - // SelfUrl string `json:"self_url,omitempty"` - // SlugPerm string `json:"slug_perm,omitempty"` - // Token string `json:"token,omitempty"` - // The datetime the token was updated at. UpdatedAt string `json:"updated_at,omitempty"` - // UpdatedBy string `json:"updated_by,omitempty"` - // UpdatedByUrl string `json:"updated_by_url,omitempty"` - // Usage string `json:"usage,omitempty"` - // User string `json:"user,omitempty"` - // UserUrl string `json:"user_url,omitempty"` } diff --git a/bindings/go/src/repository_webhook.go b/bindings/go/src/model_repository_webhook.go similarity index 95% rename from bindings/go/src/repository_webhook.go rename to bindings/go/src/model_repository_webhook.go index 03859d2e..e584188c 100644 --- a/bindings/go/src/repository_webhook.go +++ b/bindings/go/src/model_repository_webhook.go @@ -1,95 +1,68 @@ -/* +/* * Cloudsmith API * * The API to the Cloudsmith Service * - * OpenAPI spec version: v1 + * API version: v1 * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package cloudsmith_api type RepositoryWebhook struct { - // CreatedAt string `json:"created_at,omitempty"` - // CreatedBy string `json:"created_by,omitempty"` - // CreatedByUrl string `json:"created_by_url,omitempty"` - // DisableReason string `json:"disable_reason,omitempty"` - // DisableReasonStr string `json:"disable_reason_str,omitempty"` - // Events []string `json:"events"` - // Identifier int32 `json:"identifier,omitempty"` - // If enabled, the webhook will trigger on events and send payloads to the configured target URL. IsActive bool `json:"is_active,omitempty"` - // IsLastResponseBad bool `json:"is_last_response_bad,omitempty"` - // LastResponseStatus int32 `json:"last_response_status,omitempty"` - // LastResponseStatusStr string `json:"last_response_status_str,omitempty"` - // NumSent int32 `json:"num_sent,omitempty"` - // The package-based search query for webhooks to fire. This uses the same syntax as the standard search used for repositories, and also supports boolean logic operators such as OR/AND/NOT and parentheses for grouping. If a package does not match, the webhook will not fire. PackageQuery string `json:"package_query,omitempty"` - // The format of the payloads for webhook requests. RequestBodyFormat string `json:"request_body_format,omitempty"` - // RequestBodyFormatStr string `json:"request_body_format_str,omitempty"` - // The format of the payloads for webhook requests. RequestBodyTemplateFormat string `json:"request_body_template_format,omitempty"` - // RequestBodyTemplateFormatStr string `json:"request_body_template_format_str,omitempty"` - // The value that will be sent for the 'Content Type' header. RequestContentType string `json:"request_content_type,omitempty"` - // The header to send the predefined secret in. This must be unique from existing headers or it won't be sent. You can use this as a form of authentication on the endpoint side. SecretHeader string `json:"secret_header,omitempty"` - // SelfUrl string `json:"self_url,omitempty"` - // SlugPerm string `json:"slug_perm,omitempty"` - // The destination URL that webhook payloads will be POST'ed to. TargetUrl string `json:"target_url"` - // Templates []WebhooksownerrepoTemplates `json:"templates"` - // UpdatedAt string `json:"updated_at,omitempty"` - // UpdatedBy string `json:"updated_by,omitempty"` - // UpdatedByUrl string `json:"updated_by_url,omitempty"` - // If enabled, SSL certificates is verified when webhooks are sent. It's recommended to leave this enabled as not verifying the integrity of SSL certificates leaves you susceptible to Man-in-the-Middle (MITM) attacks. VerifySsl bool `json:"verify_ssl,omitempty"` } diff --git a/bindings/go/src/resources_rate_check.go b/bindings/go/src/model_resources_rate_check.go similarity index 69% rename from bindings/go/src/resources_rate_check.go rename to bindings/go/src/model_resources_rate_check.go index c3cfc52f..ea07060c 100644 --- a/bindings/go/src/resources_rate_check.go +++ b/bindings/go/src/model_resources_rate_check.go @@ -1,17 +1,16 @@ -/* +/* * Cloudsmith API * * The API to the Cloudsmith Service * - * OpenAPI spec version: v1 + * API version: v1 * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package cloudsmith_api type ResourcesRateCheck struct { - // Rate limit values per resource Resources interface{} `json:"resources,omitempty"` } diff --git a/bindings/go/src/status.go b/bindings/go/src/model_status.go similarity index 67% rename from bindings/go/src/status.go rename to bindings/go/src/model_status.go index b128974e..baf0e5ea 100644 --- a/bindings/go/src/status.go +++ b/bindings/go/src/model_status.go @@ -1,17 +1,16 @@ -/* +/* * Cloudsmith API * * The API to the Cloudsmith Service * - * OpenAPI spec version: v1 + * API version: v1 * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package cloudsmith_api type Status struct { - // An extended message for the response. Detail string `json:"detail"` } diff --git a/bindings/go/src/status_basic.go b/bindings/go/src/model_status_basic.go similarity index 75% rename from bindings/go/src/status_basic.go rename to bindings/go/src/model_status_basic.go index 8f35b820..56006073 100644 --- a/bindings/go/src/status_basic.go +++ b/bindings/go/src/model_status_basic.go @@ -1,20 +1,18 @@ -/* +/* * Cloudsmith API * * The API to the Cloudsmith Service * - * OpenAPI spec version: v1 + * API version: v1 * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package cloudsmith_api type StatusBasic struct { - // The message describing the state of the API. Detail string `json:"detail,omitempty"` - // The current version for the Cloudsmith service. Version string `json:"version,omitempty"` } diff --git a/bindings/go/src/storage_region.go b/bindings/go/src/model_storage_region.go similarity index 71% rename from bindings/go/src/storage_region.go rename to bindings/go/src/model_storage_region.go index 6714f87e..9c323849 100644 --- a/bindings/go/src/storage_region.go +++ b/bindings/go/src/model_storage_region.go @@ -1,20 +1,18 @@ -/* +/* * Cloudsmith API * * The API to the Cloudsmith Service * - * OpenAPI spec version: v1 + * API version: v1 * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package cloudsmith_api type StorageRegion struct { - // Name of the storage region Label string `json:"label"` - // Slug for the storage region Slug string `json:"slug"` } diff --git a/bindings/go/src/user_auth_token.go b/bindings/go/src/model_user_auth_token.go similarity index 68% rename from bindings/go/src/user_auth_token.go rename to bindings/go/src/model_user_auth_token.go index 921f9918..f940d9aa 100644 --- a/bindings/go/src/user_auth_token.go +++ b/bindings/go/src/model_user_auth_token.go @@ -1,17 +1,16 @@ -/* +/* * Cloudsmith API * * The API to the Cloudsmith Service * - * OpenAPI spec version: v1 + * API version: v1 * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package cloudsmith_api type UserAuthToken struct { - // API token for the authenticated user Token string `json:"token,omitempty"` } diff --git a/bindings/go/src/user_brief.go b/bindings/go/src/model_user_brief.go similarity index 86% rename from bindings/go/src/user_brief.go rename to bindings/go/src/model_user_brief.go index 434c9495..5baaf971 100644 --- a/bindings/go/src/user_brief.go +++ b/bindings/go/src/model_user_brief.go @@ -1,35 +1,28 @@ -/* +/* * Cloudsmith API * * The API to the Cloudsmith Service * - * OpenAPI spec version: v1 + * API version: v1 * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package cloudsmith_api type UserBrief struct { - // If true then you're logged in as a user. Authenticated bool `json:"authenticated,omitempty"` - // Your email address that we use to contact you. This is only visible to you. Email string `json:"email,omitempty"` - // The full name of the user (if any). Name string `json:"name,omitempty"` - // The URL for the full profile of the user. ProfileUrl string `json:"profile_url,omitempty"` - // SelfUrl string `json:"self_url,omitempty"` - // Slug string `json:"slug,omitempty"` - // SlugPerm string `json:"slug_perm,omitempty"` } diff --git a/bindings/go/src/user_profile.go b/bindings/go/src/model_user_profile.go similarity index 87% rename from bindings/go/src/user_profile.go rename to bindings/go/src/model_user_profile.go index a4b44ebc..ec5c2013 100644 --- a/bindings/go/src/user_profile.go +++ b/bindings/go/src/model_user_profile.go @@ -1,44 +1,34 @@ -/* +/* * Cloudsmith API * * The API to the Cloudsmith Service * - * OpenAPI spec version: v1 + * API version: v1 * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package cloudsmith_api type UserProfile struct { - // Company string `json:"company,omitempty"` - // FirstName string `json:"first_name"` - // JobTitle string `json:"job_title,omitempty"` - // JoinedAt string `json:"joined_at,omitempty"` - // LastName string `json:"last_name"` - // Name string `json:"name,omitempty"` - // Slug string `json:"slug,omitempty"` - // SlugPerm string `json:"slug_perm,omitempty"` - // Your tagline is a sentence about you. Make it funny. Make it professional. Either way, it's public and it represents who you are. Tagline string `json:"tagline,omitempty"` - // Url string `json:"url,omitempty"` } diff --git a/bindings/go/src/user_token_create.go b/bindings/go/src/model_user_token_create.go similarity index 74% rename from bindings/go/src/user_token_create.go rename to bindings/go/src/model_user_token_create.go index 1d07706a..82c42617 100644 --- a/bindings/go/src/user_token_create.go +++ b/bindings/go/src/model_user_token_create.go @@ -1,20 +1,18 @@ -/* +/* * Cloudsmith API * * The API to the Cloudsmith Service * - * OpenAPI spec version: v1 + * API version: v1 * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package cloudsmith_api type UserTokenCreate struct { - // Email address to authenticate with Email string `json:"email,omitempty"` - // Password to authenticate with Password string `json:"password,omitempty"` } diff --git a/bindings/go/src/vagrant_package_upload.go b/bindings/go/src/model_vagrant_package_upload.go similarity index 96% rename from bindings/go/src/vagrant_package_upload.go rename to bindings/go/src/model_vagrant_package_upload.go index e371dd20..1f17a3b3 100644 --- a/bindings/go/src/vagrant_package_upload.go +++ b/bindings/go/src/model_vagrant_package_upload.go @@ -1,209 +1,144 @@ -/* +/* * Cloudsmith API * * The API to the Cloudsmith Service * - * OpenAPI spec version: v1 + * API version: v1 * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package cloudsmith_api type VagrantPackageUpload struct { - // Architectures []PackagesownerrepoArchitectures `json:"architectures,omitempty"` - // CdnUrl string `json:"cdn_url,omitempty"` - // ChecksumMd5 string `json:"checksum_md5,omitempty"` - // ChecksumSha1 string `json:"checksum_sha1,omitempty"` - // ChecksumSha256 string `json:"checksum_sha256,omitempty"` - // ChecksumSha512 string `json:"checksum_sha512,omitempty"` - // A checksum of all of the package's dependencies. DependenciesChecksumMd5 string `json:"dependencies_checksum_md5,omitempty"` - // DependenciesUrl string `json:"dependencies_url,omitempty"` - // A textual description of this package. Description string `json:"description,omitempty"` - // Distro interface{} `json:"distro,omitempty"` - // DistroVersion interface{} `json:"distro_version,omitempty"` - // Downloads int32 `json:"downloads,omitempty"` - // The epoch of the package version (if any). Epoch int32 `json:"epoch,omitempty"` - // Extension string `json:"extension,omitempty"` - // Filename string `json:"filename,omitempty"` - // Files []PackagesownerrepoFiles `json:"files,omitempty"` - // Format string `json:"format,omitempty"` - // FormatUrl string `json:"format_url,omitempty"` - // Unique and permanent identifier for the package. IdentifierPerm string `json:"identifier_perm,omitempty"` - // Indexed bool `json:"indexed,omitempty"` - // IsSyncAwaiting bool `json:"is_sync_awaiting,omitempty"` - // IsSyncCompleted bool `json:"is_sync_completed,omitempty"` - // IsSyncFailed bool `json:"is_sync_failed,omitempty"` - // IsSyncInFlight bool `json:"is_sync_in_flight,omitempty"` - // IsSyncInProgress bool `json:"is_sync_in_progress,omitempty"` - // The license of this package. License string `json:"license,omitempty"` - // The name of this package. Name string `json:"name"` - // Namespace string `json:"namespace,omitempty"` - // NamespaceUrl string `json:"namespace_url,omitempty"` - // NumFiles int32 `json:"num_files,omitempty"` - // The type of package contents. PackageType string `json:"package_type,omitempty"` - // The virtual machine provider for the box. Provider string `json:"provider"` - // The release of the package version (if any). Release string `json:"release,omitempty"` - // Repository string `json:"repository,omitempty"` - // RepositoryUrl string `json:"repository_url,omitempty"` - // The datetime the security scanning was completed. SecurityScanCompletedAt string `json:"security_scan_completed_at,omitempty"` - // The datetime the security scanning was started. SecurityScanStartedAt string `json:"security_scan_started_at,omitempty"` - // SecurityScanStatus string `json:"security_scan_status,omitempty"` - // The datetime the security scanning status was updated. SecurityScanStatusUpdatedAt string `json:"security_scan_status_updated_at,omitempty"` - // SelfHtmlUrl string `json:"self_html_url,omitempty"` - // SelfUrl string `json:"self_url,omitempty"` - // SignatureUrl string `json:"signature_url,omitempty"` - // The calculated size of the package. Size int32 `json:"size,omitempty"` - // The public unique identifier for the package. Slug string `json:"slug,omitempty"` - // SlugPerm string `json:"slug_perm,omitempty"` - // The synchronisation (in progress) stage of the package. Stage string `json:"stage,omitempty"` - // StageStr string `json:"stage_str,omitempty"` - // The datetime the package stage was updated at. StageUpdatedAt string `json:"stage_updated_at,omitempty"` - // The synchronisation status of the package. Status string `json:"status,omitempty"` - // A textual description for the synchronous status reason (if any StatusReason string `json:"status_reason,omitempty"` - // StatusStr string `json:"status_str,omitempty"` - // The datetime the package status was updated at. StatusUpdatedAt string `json:"status_updated_at,omitempty"` - // StatusUrl string `json:"status_url,omitempty"` - // Subtype string `json:"subtype,omitempty"` - // A one-liner synopsis of this package. Summary string `json:"summary,omitempty"` - // The datetime the package sync was finished at. SyncFinishedAt string `json:"sync_finished_at,omitempty"` - // Synchronisation progress (from 0-100) SyncProgress int32 `json:"sync_progress,omitempty"` - // All immutable tags on the package, grouped by tag type. Immutable tags cannot be (easily) deleted. TagsImmutable interface{} `json:"tags_immutable,omitempty"` - // TypeDisplay string `json:"type_display,omitempty"` - // The date this package was uploaded. UploadedAt string `json:"uploaded_at,omitempty"` - // Uploader string `json:"uploader,omitempty"` - // UploaderUrl string `json:"uploader_url,omitempty"` - // The raw version for this package. Version string `json:"version"` - // VersionOrig string `json:"version_orig,omitempty"` - // VulnerabilityScanResultsUrl string `json:"vulnerability_scan_results_url,omitempty"` } diff --git a/bindings/go/src/vulnerability_scan_results.go b/bindings/go/src/model_vulnerability_scan_results.go similarity index 85% rename from bindings/go/src/vulnerability_scan_results.go rename to bindings/go/src/model_vulnerability_scan_results.go index 2d5d0b2a..63169943 100644 --- a/bindings/go/src/vulnerability_scan_results.go +++ b/bindings/go/src/model_vulnerability_scan_results.go @@ -1,38 +1,30 @@ -/* +/* * Cloudsmith API * * The API to the Cloudsmith Service * - * OpenAPI spec version: v1 + * API version: v1 * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package cloudsmith_api type VulnerabilityScanResults struct { - // The time this scan result was stored. CreatedAt string `json:"created_at,omitempty"` - // Do the results contain any known vulnerabilities? HasVulnerabilities bool `json:"has_vulnerabilities,omitempty"` - // Identifier string `json:"identifier"` - // MaxSeverity string `json:"max_severity,omitempty"` - // NumVulnerabilities int32 `json:"num_vulnerabilities,omitempty"` - // Package_ interface{} `json:"package"` - // Scan interface{} `json:"scan"` - // ScanId int32 `json:"scan_id"` } diff --git a/bindings/go/src/vulnerability_scan_results_list.go b/bindings/go/src/model_vulnerability_scan_results_list.go similarity index 85% rename from bindings/go/src/vulnerability_scan_results_list.go rename to bindings/go/src/model_vulnerability_scan_results_list.go index b245fc82..c3e45fef 100644 --- a/bindings/go/src/vulnerability_scan_results_list.go +++ b/bindings/go/src/model_vulnerability_scan_results_list.go @@ -1,35 +1,28 @@ -/* +/* * Cloudsmith API * * The API to the Cloudsmith Service * - * OpenAPI spec version: v1 + * API version: v1 * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package cloudsmith_api type VulnerabilityScanResultsList struct { - // The time this scan result was stored. CreatedAt string `json:"created_at,omitempty"` - // Do the results contain any known vulnerabilities? HasVulnerabilities bool `json:"has_vulnerabilities,omitempty"` - // Identifier string `json:"identifier"` - // MaxSeverity string `json:"max_severity,omitempty"` - // NumVulnerabilities int32 `json:"num_vulnerabilities,omitempty"` - // Package_ interface{} `json:"package"` - // ScanId int32 `json:"scan_id"` } diff --git a/bindings/go/src/webhooks_create.go b/bindings/go/src/model_webhooks_create.go similarity index 95% rename from bindings/go/src/webhooks_create.go rename to bindings/go/src/model_webhooks_create.go index 2e44b382..2188d1ed 100644 --- a/bindings/go/src/webhooks_create.go +++ b/bindings/go/src/model_webhooks_create.go @@ -1,50 +1,38 @@ -/* +/* * Cloudsmith API * * The API to the Cloudsmith Service * - * OpenAPI spec version: v1 + * API version: v1 * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package cloudsmith_api type WebhooksCreate struct { - // None Events []string `json:"events"` - // If enabled, the webhook will trigger on events and send payloads to the configured target URL. IsActive bool `json:"is_active,omitempty"` - // The package-based search query for webhooks to fire. This uses the same syntax as the standard search used for repositories, and also supports boolean logic operators such as OR/AND/NOT and parentheses for grouping. If a package does not match, the webhook will not fire. PackageQuery string `json:"package_query,omitempty"` - // The format of the payloads for webhook requests. RequestBodyFormat string `json:"request_body_format,omitempty"` - // The format of the payloads for webhook requests. RequestBodyTemplateFormat string `json:"request_body_template_format,omitempty"` - // The value that will be sent for the 'Content Type' header. RequestContentType string `json:"request_content_type,omitempty"` - // The header to send the predefined secret in. This must be unique from existing headers or it won't be sent. You can use this as a form of authentication on the endpoint side. SecretHeader string `json:"secret_header,omitempty"` - // The value for the predefined secret (note: this is treated as a passphrase and is encrypted when we store it). You can use this as a form of authentication on the endpoint side. SecretValue string `json:"secret_value,omitempty"` - // The value for the signature key - This is used to generate an HMAC-based hex digest of the request body, which we send as the X-Cloudsmith-Signature header so that you can ensure that the request wasn't modified by a malicious party (note: this is treated as a passphrase and is encrypted when we store it). SignatureKey string `json:"signature_key,omitempty"` - // The destination URL that webhook payloads will be POST'ed to. TargetUrl string `json:"target_url"` - // None Templates []WebhooksownerrepoTemplates `json:"templates"` - // If enabled, SSL certificates is verified when webhooks are sent. It's recommended to leave this enabled as not verifying the integrity of SSL certificates leaves you susceptible to Man-in-the-Middle (MITM) attacks. VerifySsl bool `json:"verify_ssl,omitempty"` } diff --git a/bindings/go/src/webhooks_partial_update.go b/bindings/go/src/model_webhooks_partial_update.go similarity index 95% rename from bindings/go/src/webhooks_partial_update.go rename to bindings/go/src/model_webhooks_partial_update.go index c6fc6631..d335b0a2 100644 --- a/bindings/go/src/webhooks_partial_update.go +++ b/bindings/go/src/model_webhooks_partial_update.go @@ -1,50 +1,38 @@ -/* +/* * Cloudsmith API * * The API to the Cloudsmith Service * - * OpenAPI spec version: v1 + * API version: v1 * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package cloudsmith_api type WebhooksPartialUpdate struct { - // None Events []string `json:"events,omitempty"` - // If enabled, the webhook will trigger on events and send payloads to the configured target URL. IsActive bool `json:"is_active,omitempty"` - // The package-based search query for webhooks to fire. This uses the same syntax as the standard search used for repositories, and also supports boolean logic operators such as OR/AND/NOT and parentheses for grouping. If a package does not match, the webhook will not fire. PackageQuery string `json:"package_query,omitempty"` - // The format of the payloads for webhook requests. RequestBodyFormat string `json:"request_body_format,omitempty"` - // The format of the payloads for webhook requests. RequestBodyTemplateFormat string `json:"request_body_template_format,omitempty"` - // The value that will be sent for the 'Content Type' header. RequestContentType string `json:"request_content_type,omitempty"` - // The header to send the predefined secret in. This must be unique from existing headers or it won't be sent. You can use this as a form of authentication on the endpoint side. SecretHeader string `json:"secret_header,omitempty"` - // The value for the predefined secret (note: this is treated as a passphrase and is encrypted when we store it). You can use this as a form of authentication on the endpoint side. SecretValue string `json:"secret_value,omitempty"` - // The value for the signature key - This is used to generate an HMAC-based hex digest of the request body, which we send as the X-Cloudsmith-Signature header so that you can ensure that the request wasn't modified by a malicious party (note: this is treated as a passphrase and is encrypted when we store it). SignatureKey string `json:"signature_key,omitempty"` - // The destination URL that webhook payloads will be POST'ed to. TargetUrl string `json:"target_url,omitempty"` - // None Templates []WebhooksownerrepoTemplates `json:"templates,omitempty"` - // If enabled, SSL certificates is verified when webhooks are sent. It's recommended to leave this enabled as not verifying the integrity of SSL certificates leaves you susceptible to Man-in-the-Middle (MITM) attacks. VerifySsl bool `json:"verify_ssl,omitempty"` } diff --git a/bindings/go/src/webhooksownerrepo_templates.go b/bindings/go/src/model_webhooksownerrepo_templates.go similarity index 70% rename from bindings/go/src/webhooksownerrepo_templates.go rename to bindings/go/src/model_webhooksownerrepo_templates.go index 4b3cb6d6..b584a18f 100644 --- a/bindings/go/src/webhooksownerrepo_templates.go +++ b/bindings/go/src/model_webhooksownerrepo_templates.go @@ -1,20 +1,18 @@ -/* +/* * Cloudsmith API * * The API to the Cloudsmith Service * - * OpenAPI spec version: v1 + * API version: v1 * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package cloudsmith_api type WebhooksownerrepoTemplates struct { - // Event string `json:"event,omitempty"` - // Template string `json:"template,omitempty"` } diff --git a/bindings/go/src/namespaces_api.go b/bindings/go/src/namespaces_api.go deleted file mode 100644 index d1be6e11..00000000 --- a/bindings/go/src/namespaces_api.go +++ /dev/null @@ -1,167 +0,0 @@ -/* - * Cloudsmith API - * - * The API to the Cloudsmith Service - * - * OpenAPI spec version: v1 - * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -package cloudsmith_api - -import ( - "net/url" - "strings" - "encoding/json" - "fmt" -) - -type NamespacesApi struct { - Configuration *Configuration -} - -func NewNamespacesApi() *NamespacesApi { - configuration := NewConfiguration() - return &NamespacesApi{ - Configuration: configuration, - } -} - -func NewNamespacesApiWithBasePath(basePath string) *NamespacesApi { - configuration := NewConfiguration() - configuration.BasePath = basePath - - return &NamespacesApi{ - Configuration: configuration, - } -} - -/** - * Get a list of all namespaces the user belongs to. - * Get a list of all namespaces the user belongs to. - * - * @param page A page number within the paginated result set. - * @param pageSize Number of results to return per page. - * @return []Namespace - */ -func (a NamespacesApi) NamespacesList(page int32, pageSize int32) ([]Namespace, *APIResponse, error) { - - var localVarHttpMethod = strings.ToUpper("Get") - // create path and map variables - localVarPath := a.Configuration.BasePath + "/namespaces/" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := make(map[string]string) - var localVarPostBody interface{} - var localVarFileName string - var localVarFileBytes []byte - // authentication '(apikey)' required - // set key with prefix in header - localVarHeaderParams["X-Api-Key"] = a.Configuration.GetAPIKeyWithPrefix("X-Api-Key") - // add default headers if any - for key := range a.Configuration.DefaultHeader { - localVarHeaderParams[key] = a.Configuration.DefaultHeader[key] - } - localVarQueryParams.Add("page", a.Configuration.APIClient.ParameterToString(page, "")) - localVarQueryParams.Add("page_size", a.Configuration.APIClient.ParameterToString(pageSize, "")) - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload = new([]Namespace) - localVarHttpResponse, err := a.Configuration.APIClient.CallAPI(localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - - var localVarURL, _ = url.Parse(localVarPath) - localVarURL.RawQuery = localVarQueryParams.Encode() - var localVarAPIResponse = &APIResponse{Operation: "NamespacesList", Method: localVarHttpMethod, RequestURL: localVarURL.String()} - if localVarHttpResponse != nil { - localVarAPIResponse.Response = localVarHttpResponse.RawResponse - localVarAPIResponse.Payload = localVarHttpResponse.Body() - } - - if err != nil { - return *successPayload, localVarAPIResponse, err - } - err = json.Unmarshal(localVarHttpResponse.Body(), &successPayload) - return *successPayload, localVarAPIResponse, err -} - -/** - * Views for working with namespaces. - * Views for working with namespaces. - * - * @param slug - * @return *Namespace - */ -func (a NamespacesApi) NamespacesRead(slug string) (*Namespace, *APIResponse, error) { - - var localVarHttpMethod = strings.ToUpper("Get") - // create path and map variables - localVarPath := a.Configuration.BasePath + "/namespaces/{slug}/" - localVarPath = strings.Replace(localVarPath, "{"+"slug"+"}", fmt.Sprintf("%v", slug), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := make(map[string]string) - var localVarPostBody interface{} - var localVarFileName string - var localVarFileBytes []byte - // authentication '(apikey)' required - // set key with prefix in header - localVarHeaderParams["X-Api-Key"] = a.Configuration.GetAPIKeyWithPrefix("X-Api-Key") - // add default headers if any - for key := range a.Configuration.DefaultHeader { - localVarHeaderParams[key] = a.Configuration.DefaultHeader[key] - } - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload = new(Namespace) - localVarHttpResponse, err := a.Configuration.APIClient.CallAPI(localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - - var localVarURL, _ = url.Parse(localVarPath) - localVarURL.RawQuery = localVarQueryParams.Encode() - var localVarAPIResponse = &APIResponse{Operation: "NamespacesRead", Method: localVarHttpMethod, RequestURL: localVarURL.String()} - if localVarHttpResponse != nil { - localVarAPIResponse.Response = localVarHttpResponse.RawResponse - localVarAPIResponse.Payload = localVarHttpResponse.Body() - } - - if err != nil { - return successPayload, localVarAPIResponse, err - } - err = json.Unmarshal(localVarHttpResponse.Body(), &successPayload) - return successPayload, localVarAPIResponse, err -} - diff --git a/bindings/go/src/orgs_api.go b/bindings/go/src/orgs_api.go deleted file mode 100644 index 70078e73..00000000 --- a/bindings/go/src/orgs_api.go +++ /dev/null @@ -1,364 +0,0 @@ -/* - * Cloudsmith API - * - * The API to the Cloudsmith Service - * - * OpenAPI spec version: v1 - * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -package cloudsmith_api - -import ( - "net/url" - "strings" - "encoding/json" - "fmt" -) - -type OrgsApi struct { - Configuration *Configuration -} - -func NewOrgsApi() *OrgsApi { - configuration := NewConfiguration() - return &OrgsApi{ - Configuration: configuration, - } -} - -func NewOrgsApiWithBasePath(basePath string) *OrgsApi { - configuration := NewConfiguration() - configuration.BasePath = basePath - - return &OrgsApi{ - Configuration: configuration, - } -} - -/** - * Get a list of all the organizations you are associated with. - * Get a list of all the organizations you are associated with. - * - * @param page A page number within the paginated result set. - * @param pageSize Number of results to return per page. - * @return []Organization - */ -func (a OrgsApi) OrgsList(page int32, pageSize int32) ([]Organization, *APIResponse, error) { - - var localVarHttpMethod = strings.ToUpper("Get") - // create path and map variables - localVarPath := a.Configuration.BasePath + "/orgs/" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := make(map[string]string) - var localVarPostBody interface{} - var localVarFileName string - var localVarFileBytes []byte - // authentication '(apikey)' required - // set key with prefix in header - localVarHeaderParams["X-Api-Key"] = a.Configuration.GetAPIKeyWithPrefix("X-Api-Key") - // add default headers if any - for key := range a.Configuration.DefaultHeader { - localVarHeaderParams[key] = a.Configuration.DefaultHeader[key] - } - localVarQueryParams.Add("page", a.Configuration.APIClient.ParameterToString(page, "")) - localVarQueryParams.Add("page_size", a.Configuration.APIClient.ParameterToString(pageSize, "")) - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload = new([]Organization) - localVarHttpResponse, err := a.Configuration.APIClient.CallAPI(localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - - var localVarURL, _ = url.Parse(localVarPath) - localVarURL.RawQuery = localVarQueryParams.Encode() - var localVarAPIResponse = &APIResponse{Operation: "OrgsList", Method: localVarHttpMethod, RequestURL: localVarURL.String()} - if localVarHttpResponse != nil { - localVarAPIResponse.Response = localVarHttpResponse.RawResponse - localVarAPIResponse.Payload = localVarHttpResponse.Body() - } - - if err != nil { - return *successPayload, localVarAPIResponse, err - } - err = json.Unmarshal(localVarHttpResponse.Body(), &successPayload) - return *successPayload, localVarAPIResponse, err -} - -/** - * Get the details for all organization members. - * Get the details for all organization members. - * - * @param org - * @param page A page number within the paginated result set. - * @param pageSize Number of results to return per page. - * @return []OrganizationMembership - */ -func (a OrgsApi) OrgsMembersList(org string, page int32, pageSize int32) ([]OrganizationMembership, *APIResponse, error) { - - var localVarHttpMethod = strings.ToUpper("Get") - // create path and map variables - localVarPath := a.Configuration.BasePath + "/orgs/{org}/members/" - localVarPath = strings.Replace(localVarPath, "{"+"org"+"}", fmt.Sprintf("%v", org), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := make(map[string]string) - var localVarPostBody interface{} - var localVarFileName string - var localVarFileBytes []byte - // authentication '(apikey)' required - // set key with prefix in header - localVarHeaderParams["X-Api-Key"] = a.Configuration.GetAPIKeyWithPrefix("X-Api-Key") - // add default headers if any - for key := range a.Configuration.DefaultHeader { - localVarHeaderParams[key] = a.Configuration.DefaultHeader[key] - } - localVarQueryParams.Add("page", a.Configuration.APIClient.ParameterToString(page, "")) - localVarQueryParams.Add("page_size", a.Configuration.APIClient.ParameterToString(pageSize, "")) - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload = new([]OrganizationMembership) - localVarHttpResponse, err := a.Configuration.APIClient.CallAPI(localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - - var localVarURL, _ = url.Parse(localVarPath) - localVarURL.RawQuery = localVarQueryParams.Encode() - var localVarAPIResponse = &APIResponse{Operation: "OrgsMembersList", Method: localVarHttpMethod, RequestURL: localVarURL.String()} - if localVarHttpResponse != nil { - localVarAPIResponse.Response = localVarHttpResponse.RawResponse - localVarAPIResponse.Payload = localVarHttpResponse.Body() - } - - if err != nil { - return *successPayload, localVarAPIResponse, err - } - err = json.Unmarshal(localVarHttpResponse.Body(), &successPayload) - return *successPayload, localVarAPIResponse, err -} - -/** - * Get the details for a specific organization member. - * Get the details for a specific organization member. - * - * @param org - * @param member - * @return *OrganizationMembership - */ -func (a OrgsApi) OrgsMembersRead(org string, member string) (*OrganizationMembership, *APIResponse, error) { - - var localVarHttpMethod = strings.ToUpper("Get") - // create path and map variables - localVarPath := a.Configuration.BasePath + "/orgs/{org}/members/{member}/" - localVarPath = strings.Replace(localVarPath, "{"+"org"+"}", fmt.Sprintf("%v", org), -1) - localVarPath = strings.Replace(localVarPath, "{"+"member"+"}", fmt.Sprintf("%v", member), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := make(map[string]string) - var localVarPostBody interface{} - var localVarFileName string - var localVarFileBytes []byte - // authentication '(apikey)' required - // set key with prefix in header - localVarHeaderParams["X-Api-Key"] = a.Configuration.GetAPIKeyWithPrefix("X-Api-Key") - // add default headers if any - for key := range a.Configuration.DefaultHeader { - localVarHeaderParams[key] = a.Configuration.DefaultHeader[key] - } - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload = new(OrganizationMembership) - localVarHttpResponse, err := a.Configuration.APIClient.CallAPI(localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - - var localVarURL, _ = url.Parse(localVarPath) - localVarURL.RawQuery = localVarQueryParams.Encode() - var localVarAPIResponse = &APIResponse{Operation: "OrgsMembersRead", Method: localVarHttpMethod, RequestURL: localVarURL.String()} - if localVarHttpResponse != nil { - localVarAPIResponse.Response = localVarHttpResponse.RawResponse - localVarAPIResponse.Payload = localVarHttpResponse.Body() - } - - if err != nil { - return successPayload, localVarAPIResponse, err - } - err = json.Unmarshal(localVarHttpResponse.Body(), &successPayload) - return successPayload, localVarAPIResponse, err -} - -/** - * Removes a member from the organization. - * Removes a member from the organization. - * - * @param org - * @param member - * @return *OrganizationMembership - */ -func (a OrgsApi) OrgsMembersRemove(org string, member string) (*OrganizationMembership, *APIResponse, error) { - - var localVarHttpMethod = strings.ToUpper("Get") - // create path and map variables - localVarPath := a.Configuration.BasePath + "/orgs/{org}/members/{member}/remove/" - localVarPath = strings.Replace(localVarPath, "{"+"org"+"}", fmt.Sprintf("%v", org), -1) - localVarPath = strings.Replace(localVarPath, "{"+"member"+"}", fmt.Sprintf("%v", member), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := make(map[string]string) - var localVarPostBody interface{} - var localVarFileName string - var localVarFileBytes []byte - // authentication '(apikey)' required - // set key with prefix in header - localVarHeaderParams["X-Api-Key"] = a.Configuration.GetAPIKeyWithPrefix("X-Api-Key") - // add default headers if any - for key := range a.Configuration.DefaultHeader { - localVarHeaderParams[key] = a.Configuration.DefaultHeader[key] - } - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload = new(OrganizationMembership) - localVarHttpResponse, err := a.Configuration.APIClient.CallAPI(localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - - var localVarURL, _ = url.Parse(localVarPath) - localVarURL.RawQuery = localVarQueryParams.Encode() - var localVarAPIResponse = &APIResponse{Operation: "OrgsMembersRemove", Method: localVarHttpMethod, RequestURL: localVarURL.String()} - if localVarHttpResponse != nil { - localVarAPIResponse.Response = localVarHttpResponse.RawResponse - localVarAPIResponse.Payload = localVarHttpResponse.Body() - } - - if err != nil { - return successPayload, localVarAPIResponse, err - } - err = json.Unmarshal(localVarHttpResponse.Body(), &successPayload) - return successPayload, localVarAPIResponse, err -} - -/** - * Get the details for the specific organization. - * Get the details for the specific organization. - * - * @param org - * @return *Organization - */ -func (a OrgsApi) OrgsRead(org string) (*Organization, *APIResponse, error) { - - var localVarHttpMethod = strings.ToUpper("Get") - // create path and map variables - localVarPath := a.Configuration.BasePath + "/orgs/{org}/" - localVarPath = strings.Replace(localVarPath, "{"+"org"+"}", fmt.Sprintf("%v", org), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := make(map[string]string) - var localVarPostBody interface{} - var localVarFileName string - var localVarFileBytes []byte - // authentication '(apikey)' required - // set key with prefix in header - localVarHeaderParams["X-Api-Key"] = a.Configuration.GetAPIKeyWithPrefix("X-Api-Key") - // add default headers if any - for key := range a.Configuration.DefaultHeader { - localVarHeaderParams[key] = a.Configuration.DefaultHeader[key] - } - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload = new(Organization) - localVarHttpResponse, err := a.Configuration.APIClient.CallAPI(localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - - var localVarURL, _ = url.Parse(localVarPath) - localVarURL.RawQuery = localVarQueryParams.Encode() - var localVarAPIResponse = &APIResponse{Operation: "OrgsRead", Method: localVarHttpMethod, RequestURL: localVarURL.String()} - if localVarHttpResponse != nil { - localVarAPIResponse.Response = localVarHttpResponse.RawResponse - localVarAPIResponse.Payload = localVarHttpResponse.Body() - } - - if err != nil { - return successPayload, localVarAPIResponse, err - } - err = json.Unmarshal(localVarHttpResponse.Body(), &successPayload) - return successPayload, localVarAPIResponse, err -} - diff --git a/bindings/go/src/packages_api.go b/bindings/go/src/packages_api.go deleted file mode 100644 index be83ab50..00000000 --- a/bindings/go/src/packages_api.go +++ /dev/null @@ -1,3804 +0,0 @@ -/* - * Cloudsmith API - * - * The API to the Cloudsmith Service - * - * OpenAPI spec version: v1 - * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -package cloudsmith_api - -import ( - "net/url" - "strings" - "encoding/json" - "fmt" -) - -type PackagesApi struct { - Configuration *Configuration -} - -func NewPackagesApi() *PackagesApi { - configuration := NewConfiguration() - return &PackagesApi{ - Configuration: configuration, - } -} - -func NewPackagesApiWithBasePath(basePath string) *PackagesApi { - configuration := NewConfiguration() - configuration.BasePath = basePath - - return &PackagesApi{ - Configuration: configuration, - } -} - -/** - * Copy a package to another repository. - * Copy a package to another repository. - * - * @param owner - * @param repo - * @param identifier - * @param data - * @return *PackageCopy - */ -func (a PackagesApi) PackagesCopy(owner string, repo string, identifier string, data PackagesCopy) (*PackageCopy, *APIResponse, error) { - - var localVarHttpMethod = strings.ToUpper("Post") - // create path and map variables - localVarPath := a.Configuration.BasePath + "/packages/{owner}/{repo}/{identifier}/copy/" - localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) - localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) - localVarPath = strings.Replace(localVarPath, "{"+"identifier"+"}", fmt.Sprintf("%v", identifier), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := make(map[string]string) - var localVarPostBody interface{} - var localVarFileName string - var localVarFileBytes []byte - // authentication '(apikey)' required - // set key with prefix in header - localVarHeaderParams["X-Api-Key"] = a.Configuration.GetAPIKeyWithPrefix("X-Api-Key") - // add default headers if any - for key := range a.Configuration.DefaultHeader { - localVarHeaderParams[key] = a.Configuration.DefaultHeader[key] - } - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - // body params - localVarPostBody = &data - var successPayload = new(PackageCopy) - localVarHttpResponse, err := a.Configuration.APIClient.CallAPI(localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - - var localVarURL, _ = url.Parse(localVarPath) - localVarURL.RawQuery = localVarQueryParams.Encode() - var localVarAPIResponse = &APIResponse{Operation: "PackagesCopy", Method: localVarHttpMethod, RequestURL: localVarURL.String()} - if localVarHttpResponse != nil { - localVarAPIResponse.Response = localVarHttpResponse.RawResponse - localVarAPIResponse.Payload = localVarHttpResponse.Body() - } - - if err != nil { - return successPayload, localVarAPIResponse, err - } - err = json.Unmarshal(localVarHttpResponse.Body(), &successPayload) - return successPayload, localVarAPIResponse, err -} - -/** - * Delete a specific package in a repository. - * Delete a specific package in a repository. - * - * @param owner - * @param repo - * @param identifier - * @return void - */ -func (a PackagesApi) PackagesDelete(owner string, repo string, identifier string) (*APIResponse, error) { - - var localVarHttpMethod = strings.ToUpper("Delete") - // create path and map variables - localVarPath := a.Configuration.BasePath + "/packages/{owner}/{repo}/{identifier}/" - localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) - localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) - localVarPath = strings.Replace(localVarPath, "{"+"identifier"+"}", fmt.Sprintf("%v", identifier), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := make(map[string]string) - var localVarPostBody interface{} - var localVarFileName string - var localVarFileBytes []byte - // authentication '(apikey)' required - // set key with prefix in header - localVarHeaderParams["X-Api-Key"] = a.Configuration.GetAPIKeyWithPrefix("X-Api-Key") - // add default headers if any - for key := range a.Configuration.DefaultHeader { - localVarHeaderParams[key] = a.Configuration.DefaultHeader[key] - } - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - localVarHttpResponse, err := a.Configuration.APIClient.CallAPI(localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - - var localVarURL, _ = url.Parse(localVarPath) - localVarURL.RawQuery = localVarQueryParams.Encode() - var localVarAPIResponse = &APIResponse{Operation: "PackagesDelete", Method: localVarHttpMethod, RequestURL: localVarURL.String()} - if localVarHttpResponse != nil { - localVarAPIResponse.Response = localVarHttpResponse.RawResponse - localVarAPIResponse.Payload = localVarHttpResponse.Body() - } - - if err != nil { - return localVarAPIResponse, err - } - return localVarAPIResponse, err -} - -/** - * Get the direct (non-transitive) dependencies list for a package. - * Get the direct (non-transitive) dependencies list for a package. - * - * @param owner - * @param repo - * @param identifier - * @return *PackageDependencies - */ -func (a PackagesApi) PackagesDependencies(owner string, repo string, identifier string) (*PackageDependencies, *APIResponse, error) { - - var localVarHttpMethod = strings.ToUpper("Get") - // create path and map variables - localVarPath := a.Configuration.BasePath + "/packages/{owner}/{repo}/{identifier}/dependencies/" - localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) - localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) - localVarPath = strings.Replace(localVarPath, "{"+"identifier"+"}", fmt.Sprintf("%v", identifier), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := make(map[string]string) - var localVarPostBody interface{} - var localVarFileName string - var localVarFileBytes []byte - // authentication '(apikey)' required - // set key with prefix in header - localVarHeaderParams["X-Api-Key"] = a.Configuration.GetAPIKeyWithPrefix("X-Api-Key") - // add default headers if any - for key := range a.Configuration.DefaultHeader { - localVarHeaderParams[key] = a.Configuration.DefaultHeader[key] - } - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload = new(PackageDependencies) - localVarHttpResponse, err := a.Configuration.APIClient.CallAPI(localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - - var localVarURL, _ = url.Parse(localVarPath) - localVarURL.RawQuery = localVarQueryParams.Encode() - var localVarAPIResponse = &APIResponse{Operation: "PackagesDependencies", Method: localVarHttpMethod, RequestURL: localVarURL.String()} - if localVarHttpResponse != nil { - localVarAPIResponse.Response = localVarHttpResponse.RawResponse - localVarAPIResponse.Payload = localVarHttpResponse.Body() - } - - if err != nil { - return successPayload, localVarAPIResponse, err - } - err = json.Unmarshal(localVarHttpResponse.Body(), &successPayload) - return successPayload, localVarAPIResponse, err -} - -/** - * Get a list of all packages associated with repository. - * Get a list of all packages associated with repository. - * - * @param owner - * @param repo - * @param page A page number within the paginated result set. - * @param pageSize Number of results to return per page. - * @param query A search term for querying names, filenames, versions, distributions, architectures, formats or statuses of packages. - * @param sort A field for sorting objects in ascending or descending order. - * @return []ModelPackage - */ -func (a PackagesApi) PackagesList(owner string, repo string, page int32, pageSize int32, query string, sort string) ([]ModelPackage, *APIResponse, error) { - - var localVarHttpMethod = strings.ToUpper("Get") - // create path and map variables - localVarPath := a.Configuration.BasePath + "/packages/{owner}/{repo}/" - localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) - localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := make(map[string]string) - var localVarPostBody interface{} - var localVarFileName string - var localVarFileBytes []byte - // authentication '(apikey)' required - // set key with prefix in header - localVarHeaderParams["X-Api-Key"] = a.Configuration.GetAPIKeyWithPrefix("X-Api-Key") - // add default headers if any - for key := range a.Configuration.DefaultHeader { - localVarHeaderParams[key] = a.Configuration.DefaultHeader[key] - } - localVarQueryParams.Add("page", a.Configuration.APIClient.ParameterToString(page, "")) - localVarQueryParams.Add("page_size", a.Configuration.APIClient.ParameterToString(pageSize, "")) - localVarQueryParams.Add("query", a.Configuration.APIClient.ParameterToString(query, "")) - localVarQueryParams.Add("sort", a.Configuration.APIClient.ParameterToString(sort, "")) - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload = new([]ModelPackage) - localVarHttpResponse, err := a.Configuration.APIClient.CallAPI(localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - - var localVarURL, _ = url.Parse(localVarPath) - localVarURL.RawQuery = localVarQueryParams.Encode() - var localVarAPIResponse = &APIResponse{Operation: "PackagesList", Method: localVarHttpMethod, RequestURL: localVarURL.String()} - if localVarHttpResponse != nil { - localVarAPIResponse.Response = localVarHttpResponse.RawResponse - localVarAPIResponse.Payload = localVarHttpResponse.Body() - } - - if err != nil { - return *successPayload, localVarAPIResponse, err - } - err = json.Unmarshal(localVarHttpResponse.Body(), &successPayload) - return *successPayload, localVarAPIResponse, err -} - -/** - * Move a package to another repository. - * Move a package to another repository. - * - * @param owner - * @param repo - * @param identifier - * @param data - * @return *PackageMove - */ -func (a PackagesApi) PackagesMove(owner string, repo string, identifier string, data PackagesMove) (*PackageMove, *APIResponse, error) { - - var localVarHttpMethod = strings.ToUpper("Post") - // create path and map variables - localVarPath := a.Configuration.BasePath + "/packages/{owner}/{repo}/{identifier}/move/" - localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) - localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) - localVarPath = strings.Replace(localVarPath, "{"+"identifier"+"}", fmt.Sprintf("%v", identifier), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := make(map[string]string) - var localVarPostBody interface{} - var localVarFileName string - var localVarFileBytes []byte - // authentication '(apikey)' required - // set key with prefix in header - localVarHeaderParams["X-Api-Key"] = a.Configuration.GetAPIKeyWithPrefix("X-Api-Key") - // add default headers if any - for key := range a.Configuration.DefaultHeader { - localVarHeaderParams[key] = a.Configuration.DefaultHeader[key] - } - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - // body params - localVarPostBody = &data - var successPayload = new(PackageMove) - localVarHttpResponse, err := a.Configuration.APIClient.CallAPI(localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - - var localVarURL, _ = url.Parse(localVarPath) - localVarURL.RawQuery = localVarQueryParams.Encode() - var localVarAPIResponse = &APIResponse{Operation: "PackagesMove", Method: localVarHttpMethod, RequestURL: localVarURL.String()} - if localVarHttpResponse != nil { - localVarAPIResponse.Response = localVarHttpResponse.RawResponse - localVarAPIResponse.Payload = localVarHttpResponse.Body() - } - - if err != nil { - return successPayload, localVarAPIResponse, err - } - err = json.Unmarshal(localVarHttpResponse.Body(), &successPayload) - return successPayload, localVarAPIResponse, err -} - -/** - * Get a specific package in a repository. - * Get a specific package in a repository. - * - * @param owner - * @param repo - * @param identifier - * @return *ModelPackage - */ -func (a PackagesApi) PackagesRead(owner string, repo string, identifier string) (*ModelPackage, *APIResponse, error) { - - var localVarHttpMethod = strings.ToUpper("Get") - // create path and map variables - localVarPath := a.Configuration.BasePath + "/packages/{owner}/{repo}/{identifier}/" - localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) - localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) - localVarPath = strings.Replace(localVarPath, "{"+"identifier"+"}", fmt.Sprintf("%v", identifier), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := make(map[string]string) - var localVarPostBody interface{} - var localVarFileName string - var localVarFileBytes []byte - // authentication '(apikey)' required - // set key with prefix in header - localVarHeaderParams["X-Api-Key"] = a.Configuration.GetAPIKeyWithPrefix("X-Api-Key") - // add default headers if any - for key := range a.Configuration.DefaultHeader { - localVarHeaderParams[key] = a.Configuration.DefaultHeader[key] - } - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload = new(ModelPackage) - localVarHttpResponse, err := a.Configuration.APIClient.CallAPI(localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - - var localVarURL, _ = url.Parse(localVarPath) - localVarURL.RawQuery = localVarQueryParams.Encode() - var localVarAPIResponse = &APIResponse{Operation: "PackagesRead", Method: localVarHttpMethod, RequestURL: localVarURL.String()} - if localVarHttpResponse != nil { - localVarAPIResponse.Response = localVarHttpResponse.RawResponse - localVarAPIResponse.Payload = localVarHttpResponse.Body() - } - - if err != nil { - return successPayload, localVarAPIResponse, err - } - err = json.Unmarshal(localVarHttpResponse.Body(), &successPayload) - return successPayload, localVarAPIResponse, err -} - -/** - * Schedule a package for resynchronisation. - * Schedule a package for resynchronisation. - * - * @param owner - * @param repo - * @param identifier - * @return *ModelPackage - */ -func (a PackagesApi) PackagesResync(owner string, repo string, identifier string) (*ModelPackage, *APIResponse, error) { - - var localVarHttpMethod = strings.ToUpper("Post") - // create path and map variables - localVarPath := a.Configuration.BasePath + "/packages/{owner}/{repo}/{identifier}/resync/" - localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) - localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) - localVarPath = strings.Replace(localVarPath, "{"+"identifier"+"}", fmt.Sprintf("%v", identifier), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := make(map[string]string) - var localVarPostBody interface{} - var localVarFileName string - var localVarFileBytes []byte - // authentication '(apikey)' required - // set key with prefix in header - localVarHeaderParams["X-Api-Key"] = a.Configuration.GetAPIKeyWithPrefix("X-Api-Key") - // add default headers if any - for key := range a.Configuration.DefaultHeader { - localVarHeaderParams[key] = a.Configuration.DefaultHeader[key] - } - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload = new(ModelPackage) - localVarHttpResponse, err := a.Configuration.APIClient.CallAPI(localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - - var localVarURL, _ = url.Parse(localVarPath) - localVarURL.RawQuery = localVarQueryParams.Encode() - var localVarAPIResponse = &APIResponse{Operation: "PackagesResync", Method: localVarHttpMethod, RequestURL: localVarURL.String()} - if localVarHttpResponse != nil { - localVarAPIResponse.Response = localVarHttpResponse.RawResponse - localVarAPIResponse.Payload = localVarHttpResponse.Body() - } - - if err != nil { - return successPayload, localVarAPIResponse, err - } - err = json.Unmarshal(localVarHttpResponse.Body(), &successPayload) - return successPayload, localVarAPIResponse, err -} - -/** - * Schedule a package for scanning. - * Schedule a package for scanning. - * - * @param owner - * @param repo - * @param identifier - * @return *ModelPackage - */ -func (a PackagesApi) PackagesScan(owner string, repo string, identifier string) (*ModelPackage, *APIResponse, error) { - - var localVarHttpMethod = strings.ToUpper("Post") - // create path and map variables - localVarPath := a.Configuration.BasePath + "/packages/{owner}/{repo}/{identifier}/scan/" - localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) - localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) - localVarPath = strings.Replace(localVarPath, "{"+"identifier"+"}", fmt.Sprintf("%v", identifier), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := make(map[string]string) - var localVarPostBody interface{} - var localVarFileName string - var localVarFileBytes []byte - // authentication '(apikey)' required - // set key with prefix in header - localVarHeaderParams["X-Api-Key"] = a.Configuration.GetAPIKeyWithPrefix("X-Api-Key") - // add default headers if any - for key := range a.Configuration.DefaultHeader { - localVarHeaderParams[key] = a.Configuration.DefaultHeader[key] - } - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload = new(ModelPackage) - localVarHttpResponse, err := a.Configuration.APIClient.CallAPI(localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - - var localVarURL, _ = url.Parse(localVarPath) - localVarURL.RawQuery = localVarQueryParams.Encode() - var localVarAPIResponse = &APIResponse{Operation: "PackagesScan", Method: localVarHttpMethod, RequestURL: localVarURL.String()} - if localVarHttpResponse != nil { - localVarAPIResponse.Response = localVarHttpResponse.RawResponse - localVarAPIResponse.Payload = localVarHttpResponse.Body() - } - - if err != nil { - return successPayload, localVarAPIResponse, err - } - err = json.Unmarshal(localVarHttpResponse.Body(), &successPayload) - return successPayload, localVarAPIResponse, err -} - -/** - * Get the synchronisation status for a package. - * Get the synchronisation status for a package. - * - * @param owner - * @param repo - * @param identifier - * @return *PackageStatus - */ -func (a PackagesApi) PackagesStatus(owner string, repo string, identifier string) (*PackageStatus, *APIResponse, error) { - - var localVarHttpMethod = strings.ToUpper("Get") - // create path and map variables - localVarPath := a.Configuration.BasePath + "/packages/{owner}/{repo}/{identifier}/status/" - localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) - localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) - localVarPath = strings.Replace(localVarPath, "{"+"identifier"+"}", fmt.Sprintf("%v", identifier), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := make(map[string]string) - var localVarPostBody interface{} - var localVarFileName string - var localVarFileBytes []byte - // authentication '(apikey)' required - // set key with prefix in header - localVarHeaderParams["X-Api-Key"] = a.Configuration.GetAPIKeyWithPrefix("X-Api-Key") - // add default headers if any - for key := range a.Configuration.DefaultHeader { - localVarHeaderParams[key] = a.Configuration.DefaultHeader[key] - } - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload = new(PackageStatus) - localVarHttpResponse, err := a.Configuration.APIClient.CallAPI(localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - - var localVarURL, _ = url.Parse(localVarPath) - localVarURL.RawQuery = localVarQueryParams.Encode() - var localVarAPIResponse = &APIResponse{Operation: "PackagesStatus", Method: localVarHttpMethod, RequestURL: localVarURL.String()} - if localVarHttpResponse != nil { - localVarAPIResponse.Response = localVarHttpResponse.RawResponse - localVarAPIResponse.Payload = localVarHttpResponse.Body() - } - - if err != nil { - return successPayload, localVarAPIResponse, err - } - err = json.Unmarshal(localVarHttpResponse.Body(), &successPayload) - return successPayload, localVarAPIResponse, err -} - -/** - * Add/Replace/Remove tags for a package. - * Add/Replace/Remove tags for a package. - * - * @param owner - * @param repo - * @param identifier - * @param data - * @return *ModelPackage - */ -func (a PackagesApi) PackagesTag(owner string, repo string, identifier string, data PackagesTag) (*ModelPackage, *APIResponse, error) { - - var localVarHttpMethod = strings.ToUpper("Post") - // create path and map variables - localVarPath := a.Configuration.BasePath + "/packages/{owner}/{repo}/{identifier}/tag/" - localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) - localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) - localVarPath = strings.Replace(localVarPath, "{"+"identifier"+"}", fmt.Sprintf("%v", identifier), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := make(map[string]string) - var localVarPostBody interface{} - var localVarFileName string - var localVarFileBytes []byte - // authentication '(apikey)' required - // set key with prefix in header - localVarHeaderParams["X-Api-Key"] = a.Configuration.GetAPIKeyWithPrefix("X-Api-Key") - // add default headers if any - for key := range a.Configuration.DefaultHeader { - localVarHeaderParams[key] = a.Configuration.DefaultHeader[key] - } - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - // body params - localVarPostBody = &data - var successPayload = new(ModelPackage) - localVarHttpResponse, err := a.Configuration.APIClient.CallAPI(localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - - var localVarURL, _ = url.Parse(localVarPath) - localVarURL.RawQuery = localVarQueryParams.Encode() - var localVarAPIResponse = &APIResponse{Operation: "PackagesTag", Method: localVarHttpMethod, RequestURL: localVarURL.String()} - if localVarHttpResponse != nil { - localVarAPIResponse.Response = localVarHttpResponse.RawResponse - localVarAPIResponse.Payload = localVarHttpResponse.Body() - } - - if err != nil { - return successPayload, localVarAPIResponse, err - } - err = json.Unmarshal(localVarHttpResponse.Body(), &successPayload) - return successPayload, localVarAPIResponse, err -} - -/** - * Create a new Alpine package - * Create a new Alpine package - * - * @param owner - * @param repo - * @param data - * @return *AlpinePackageUpload - */ -func (a PackagesApi) PackagesUploadAlpine(owner string, repo string, data PackagesUploadAlpine) (*AlpinePackageUpload, *APIResponse, error) { - - var localVarHttpMethod = strings.ToUpper("Post") - // create path and map variables - localVarPath := a.Configuration.BasePath + "/packages/{owner}/{repo}/upload/alpine/" - localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) - localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := make(map[string]string) - var localVarPostBody interface{} - var localVarFileName string - var localVarFileBytes []byte - // authentication '(apikey)' required - // set key with prefix in header - localVarHeaderParams["X-Api-Key"] = a.Configuration.GetAPIKeyWithPrefix("X-Api-Key") - // add default headers if any - for key := range a.Configuration.DefaultHeader { - localVarHeaderParams[key] = a.Configuration.DefaultHeader[key] - } - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - // body params - localVarPostBody = &data - var successPayload = new(AlpinePackageUpload) - localVarHttpResponse, err := a.Configuration.APIClient.CallAPI(localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - - var localVarURL, _ = url.Parse(localVarPath) - localVarURL.RawQuery = localVarQueryParams.Encode() - var localVarAPIResponse = &APIResponse{Operation: "PackagesUploadAlpine", Method: localVarHttpMethod, RequestURL: localVarURL.String()} - if localVarHttpResponse != nil { - localVarAPIResponse.Response = localVarHttpResponse.RawResponse - localVarAPIResponse.Payload = localVarHttpResponse.Body() - } - - if err != nil { - return successPayload, localVarAPIResponse, err - } - err = json.Unmarshal(localVarHttpResponse.Body(), &successPayload) - return successPayload, localVarAPIResponse, err -} - -/** - * Create a new Cargo package - * Create a new Cargo package - * - * @param owner - * @param repo - * @param data - * @return *AlpinePackageUpload - */ -func (a PackagesApi) PackagesUploadCargo(owner string, repo string, data PackagesUploadCargo) (*AlpinePackageUpload, *APIResponse, error) { - - var localVarHttpMethod = strings.ToUpper("Post") - // create path and map variables - localVarPath := a.Configuration.BasePath + "/packages/{owner}/{repo}/upload/cargo/" - localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) - localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := make(map[string]string) - var localVarPostBody interface{} - var localVarFileName string - var localVarFileBytes []byte - // authentication '(apikey)' required - // set key with prefix in header - localVarHeaderParams["X-Api-Key"] = a.Configuration.GetAPIKeyWithPrefix("X-Api-Key") - // add default headers if any - for key := range a.Configuration.DefaultHeader { - localVarHeaderParams[key] = a.Configuration.DefaultHeader[key] - } - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - // body params - localVarPostBody = &data - var successPayload = new(AlpinePackageUpload) - localVarHttpResponse, err := a.Configuration.APIClient.CallAPI(localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - - var localVarURL, _ = url.Parse(localVarPath) - localVarURL.RawQuery = localVarQueryParams.Encode() - var localVarAPIResponse = &APIResponse{Operation: "PackagesUploadCargo", Method: localVarHttpMethod, RequestURL: localVarURL.String()} - if localVarHttpResponse != nil { - localVarAPIResponse.Response = localVarHttpResponse.RawResponse - localVarAPIResponse.Payload = localVarHttpResponse.Body() - } - - if err != nil { - return successPayload, localVarAPIResponse, err - } - err = json.Unmarshal(localVarHttpResponse.Body(), &successPayload) - return successPayload, localVarAPIResponse, err -} - -/** - * Create a new CocoaPods package - * Create a new CocoaPods package - * - * @param owner - * @param repo - * @param data - * @return *AlpinePackageUpload - */ -func (a PackagesApi) PackagesUploadCocoapods(owner string, repo string, data PackagesUploadCocoapods) (*AlpinePackageUpload, *APIResponse, error) { - - var localVarHttpMethod = strings.ToUpper("Post") - // create path and map variables - localVarPath := a.Configuration.BasePath + "/packages/{owner}/{repo}/upload/cocoapods/" - localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) - localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := make(map[string]string) - var localVarPostBody interface{} - var localVarFileName string - var localVarFileBytes []byte - // authentication '(apikey)' required - // set key with prefix in header - localVarHeaderParams["X-Api-Key"] = a.Configuration.GetAPIKeyWithPrefix("X-Api-Key") - // add default headers if any - for key := range a.Configuration.DefaultHeader { - localVarHeaderParams[key] = a.Configuration.DefaultHeader[key] - } - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - // body params - localVarPostBody = &data - var successPayload = new(AlpinePackageUpload) - localVarHttpResponse, err := a.Configuration.APIClient.CallAPI(localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - - var localVarURL, _ = url.Parse(localVarPath) - localVarURL.RawQuery = localVarQueryParams.Encode() - var localVarAPIResponse = &APIResponse{Operation: "PackagesUploadCocoapods", Method: localVarHttpMethod, RequestURL: localVarURL.String()} - if localVarHttpResponse != nil { - localVarAPIResponse.Response = localVarHttpResponse.RawResponse - localVarAPIResponse.Payload = localVarHttpResponse.Body() - } - - if err != nil { - return successPayload, localVarAPIResponse, err - } - err = json.Unmarshal(localVarHttpResponse.Body(), &successPayload) - return successPayload, localVarAPIResponse, err -} - -/** - * Create a new Composer package - * Create a new Composer package - * - * @param owner - * @param repo - * @param data - * @return *AlpinePackageUpload - */ -func (a PackagesApi) PackagesUploadComposer(owner string, repo string, data PackagesUploadComposer) (*AlpinePackageUpload, *APIResponse, error) { - - var localVarHttpMethod = strings.ToUpper("Post") - // create path and map variables - localVarPath := a.Configuration.BasePath + "/packages/{owner}/{repo}/upload/composer/" - localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) - localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := make(map[string]string) - var localVarPostBody interface{} - var localVarFileName string - var localVarFileBytes []byte - // authentication '(apikey)' required - // set key with prefix in header - localVarHeaderParams["X-Api-Key"] = a.Configuration.GetAPIKeyWithPrefix("X-Api-Key") - // add default headers if any - for key := range a.Configuration.DefaultHeader { - localVarHeaderParams[key] = a.Configuration.DefaultHeader[key] - } - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - // body params - localVarPostBody = &data - var successPayload = new(AlpinePackageUpload) - localVarHttpResponse, err := a.Configuration.APIClient.CallAPI(localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - - var localVarURL, _ = url.Parse(localVarPath) - localVarURL.RawQuery = localVarQueryParams.Encode() - var localVarAPIResponse = &APIResponse{Operation: "PackagesUploadComposer", Method: localVarHttpMethod, RequestURL: localVarURL.String()} - if localVarHttpResponse != nil { - localVarAPIResponse.Response = localVarHttpResponse.RawResponse - localVarAPIResponse.Payload = localVarHttpResponse.Body() - } - - if err != nil { - return successPayload, localVarAPIResponse, err - } - err = json.Unmarshal(localVarHttpResponse.Body(), &successPayload) - return successPayload, localVarAPIResponse, err -} - -/** - * Create a new Conan package - * Create a new Conan package - * - * @param owner - * @param repo - * @param data - * @return *ConanPackageUpload - */ -func (a PackagesApi) PackagesUploadConan(owner string, repo string, data PackagesUploadConan) (*ConanPackageUpload, *APIResponse, error) { - - var localVarHttpMethod = strings.ToUpper("Post") - // create path and map variables - localVarPath := a.Configuration.BasePath + "/packages/{owner}/{repo}/upload/conan/" - localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) - localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := make(map[string]string) - var localVarPostBody interface{} - var localVarFileName string - var localVarFileBytes []byte - // authentication '(apikey)' required - // set key with prefix in header - localVarHeaderParams["X-Api-Key"] = a.Configuration.GetAPIKeyWithPrefix("X-Api-Key") - // add default headers if any - for key := range a.Configuration.DefaultHeader { - localVarHeaderParams[key] = a.Configuration.DefaultHeader[key] - } - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - // body params - localVarPostBody = &data - var successPayload = new(ConanPackageUpload) - localVarHttpResponse, err := a.Configuration.APIClient.CallAPI(localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - - var localVarURL, _ = url.Parse(localVarPath) - localVarURL.RawQuery = localVarQueryParams.Encode() - var localVarAPIResponse = &APIResponse{Operation: "PackagesUploadConan", Method: localVarHttpMethod, RequestURL: localVarURL.String()} - if localVarHttpResponse != nil { - localVarAPIResponse.Response = localVarHttpResponse.RawResponse - localVarAPIResponse.Payload = localVarHttpResponse.Body() - } - - if err != nil { - return successPayload, localVarAPIResponse, err - } - err = json.Unmarshal(localVarHttpResponse.Body(), &successPayload) - return successPayload, localVarAPIResponse, err -} - -/** - * Create a new Conda package - * Create a new Conda package - * - * @param owner - * @param repo - * @param data - * @return *AlpinePackageUpload - */ -func (a PackagesApi) PackagesUploadConda(owner string, repo string, data PackagesUploadConda) (*AlpinePackageUpload, *APIResponse, error) { - - var localVarHttpMethod = strings.ToUpper("Post") - // create path and map variables - localVarPath := a.Configuration.BasePath + "/packages/{owner}/{repo}/upload/conda/" - localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) - localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := make(map[string]string) - var localVarPostBody interface{} - var localVarFileName string - var localVarFileBytes []byte - // authentication '(apikey)' required - // set key with prefix in header - localVarHeaderParams["X-Api-Key"] = a.Configuration.GetAPIKeyWithPrefix("X-Api-Key") - // add default headers if any - for key := range a.Configuration.DefaultHeader { - localVarHeaderParams[key] = a.Configuration.DefaultHeader[key] - } - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - // body params - localVarPostBody = &data - var successPayload = new(AlpinePackageUpload) - localVarHttpResponse, err := a.Configuration.APIClient.CallAPI(localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - - var localVarURL, _ = url.Parse(localVarPath) - localVarURL.RawQuery = localVarQueryParams.Encode() - var localVarAPIResponse = &APIResponse{Operation: "PackagesUploadConda", Method: localVarHttpMethod, RequestURL: localVarURL.String()} - if localVarHttpResponse != nil { - localVarAPIResponse.Response = localVarHttpResponse.RawResponse - localVarAPIResponse.Payload = localVarHttpResponse.Body() - } - - if err != nil { - return successPayload, localVarAPIResponse, err - } - err = json.Unmarshal(localVarHttpResponse.Body(), &successPayload) - return successPayload, localVarAPIResponse, err -} - -/** - * Create a new CRAN package - * Create a new CRAN package - * - * @param owner - * @param repo - * @param data - * @return *AlpinePackageUpload - */ -func (a PackagesApi) PackagesUploadCran(owner string, repo string, data PackagesUploadCran) (*AlpinePackageUpload, *APIResponse, error) { - - var localVarHttpMethod = strings.ToUpper("Post") - // create path and map variables - localVarPath := a.Configuration.BasePath + "/packages/{owner}/{repo}/upload/cran/" - localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) - localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := make(map[string]string) - var localVarPostBody interface{} - var localVarFileName string - var localVarFileBytes []byte - // authentication '(apikey)' required - // set key with prefix in header - localVarHeaderParams["X-Api-Key"] = a.Configuration.GetAPIKeyWithPrefix("X-Api-Key") - // add default headers if any - for key := range a.Configuration.DefaultHeader { - localVarHeaderParams[key] = a.Configuration.DefaultHeader[key] - } - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - // body params - localVarPostBody = &data - var successPayload = new(AlpinePackageUpload) - localVarHttpResponse, err := a.Configuration.APIClient.CallAPI(localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - - var localVarURL, _ = url.Parse(localVarPath) - localVarURL.RawQuery = localVarQueryParams.Encode() - var localVarAPIResponse = &APIResponse{Operation: "PackagesUploadCran", Method: localVarHttpMethod, RequestURL: localVarURL.String()} - if localVarHttpResponse != nil { - localVarAPIResponse.Response = localVarHttpResponse.RawResponse - localVarAPIResponse.Payload = localVarHttpResponse.Body() - } - - if err != nil { - return successPayload, localVarAPIResponse, err - } - err = json.Unmarshal(localVarHttpResponse.Body(), &successPayload) - return successPayload, localVarAPIResponse, err -} - -/** - * Create a new Dart package - * Create a new Dart package - * - * @param owner - * @param repo - * @param data - * @return *AlpinePackageUpload - */ -func (a PackagesApi) PackagesUploadDart(owner string, repo string, data PackagesUploadDart) (*AlpinePackageUpload, *APIResponse, error) { - - var localVarHttpMethod = strings.ToUpper("Post") - // create path and map variables - localVarPath := a.Configuration.BasePath + "/packages/{owner}/{repo}/upload/dart/" - localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) - localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := make(map[string]string) - var localVarPostBody interface{} - var localVarFileName string - var localVarFileBytes []byte - // authentication '(apikey)' required - // set key with prefix in header - localVarHeaderParams["X-Api-Key"] = a.Configuration.GetAPIKeyWithPrefix("X-Api-Key") - // add default headers if any - for key := range a.Configuration.DefaultHeader { - localVarHeaderParams[key] = a.Configuration.DefaultHeader[key] - } - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - // body params - localVarPostBody = &data - var successPayload = new(AlpinePackageUpload) - localVarHttpResponse, err := a.Configuration.APIClient.CallAPI(localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - - var localVarURL, _ = url.Parse(localVarPath) - localVarURL.RawQuery = localVarQueryParams.Encode() - var localVarAPIResponse = &APIResponse{Operation: "PackagesUploadDart", Method: localVarHttpMethod, RequestURL: localVarURL.String()} - if localVarHttpResponse != nil { - localVarAPIResponse.Response = localVarHttpResponse.RawResponse - localVarAPIResponse.Payload = localVarHttpResponse.Body() - } - - if err != nil { - return successPayload, localVarAPIResponse, err - } - err = json.Unmarshal(localVarHttpResponse.Body(), &successPayload) - return successPayload, localVarAPIResponse, err -} - -/** - * Create a new Debian package - * Create a new Debian package - * - * @param owner - * @param repo - * @param data - * @return *AlpinePackageUpload - */ -func (a PackagesApi) PackagesUploadDeb(owner string, repo string, data PackagesUploadDeb) (*AlpinePackageUpload, *APIResponse, error) { - - var localVarHttpMethod = strings.ToUpper("Post") - // create path and map variables - localVarPath := a.Configuration.BasePath + "/packages/{owner}/{repo}/upload/deb/" - localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) - localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := make(map[string]string) - var localVarPostBody interface{} - var localVarFileName string - var localVarFileBytes []byte - // authentication '(apikey)' required - // set key with prefix in header - localVarHeaderParams["X-Api-Key"] = a.Configuration.GetAPIKeyWithPrefix("X-Api-Key") - // add default headers if any - for key := range a.Configuration.DefaultHeader { - localVarHeaderParams[key] = a.Configuration.DefaultHeader[key] - } - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - // body params - localVarPostBody = &data - var successPayload = new(AlpinePackageUpload) - localVarHttpResponse, err := a.Configuration.APIClient.CallAPI(localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - - var localVarURL, _ = url.Parse(localVarPath) - localVarURL.RawQuery = localVarQueryParams.Encode() - var localVarAPIResponse = &APIResponse{Operation: "PackagesUploadDeb", Method: localVarHttpMethod, RequestURL: localVarURL.String()} - if localVarHttpResponse != nil { - localVarAPIResponse.Response = localVarHttpResponse.RawResponse - localVarAPIResponse.Payload = localVarHttpResponse.Body() - } - - if err != nil { - return successPayload, localVarAPIResponse, err - } - err = json.Unmarshal(localVarHttpResponse.Body(), &successPayload) - return successPayload, localVarAPIResponse, err -} - -/** - * Create a new Docker package - * Create a new Docker package - * - * @param owner - * @param repo - * @param data - * @return *AlpinePackageUpload - */ -func (a PackagesApi) PackagesUploadDocker(owner string, repo string, data PackagesUploadDocker) (*AlpinePackageUpload, *APIResponse, error) { - - var localVarHttpMethod = strings.ToUpper("Post") - // create path and map variables - localVarPath := a.Configuration.BasePath + "/packages/{owner}/{repo}/upload/docker/" - localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) - localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := make(map[string]string) - var localVarPostBody interface{} - var localVarFileName string - var localVarFileBytes []byte - // authentication '(apikey)' required - // set key with prefix in header - localVarHeaderParams["X-Api-Key"] = a.Configuration.GetAPIKeyWithPrefix("X-Api-Key") - // add default headers if any - for key := range a.Configuration.DefaultHeader { - localVarHeaderParams[key] = a.Configuration.DefaultHeader[key] - } - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - // body params - localVarPostBody = &data - var successPayload = new(AlpinePackageUpload) - localVarHttpResponse, err := a.Configuration.APIClient.CallAPI(localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - - var localVarURL, _ = url.Parse(localVarPath) - localVarURL.RawQuery = localVarQueryParams.Encode() - var localVarAPIResponse = &APIResponse{Operation: "PackagesUploadDocker", Method: localVarHttpMethod, RequestURL: localVarURL.String()} - if localVarHttpResponse != nil { - localVarAPIResponse.Response = localVarHttpResponse.RawResponse - localVarAPIResponse.Payload = localVarHttpResponse.Body() - } - - if err != nil { - return successPayload, localVarAPIResponse, err - } - err = json.Unmarshal(localVarHttpResponse.Body(), &successPayload) - return successPayload, localVarAPIResponse, err -} - -/** - * Create a new Go package - * Create a new Go package - * - * @param owner - * @param repo - * @param data - * @return *AlpinePackageUpload - */ -func (a PackagesApi) PackagesUploadGo(owner string, repo string, data PackagesUploadGo) (*AlpinePackageUpload, *APIResponse, error) { - - var localVarHttpMethod = strings.ToUpper("Post") - // create path and map variables - localVarPath := a.Configuration.BasePath + "/packages/{owner}/{repo}/upload/go/" - localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) - localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := make(map[string]string) - var localVarPostBody interface{} - var localVarFileName string - var localVarFileBytes []byte - // authentication '(apikey)' required - // set key with prefix in header - localVarHeaderParams["X-Api-Key"] = a.Configuration.GetAPIKeyWithPrefix("X-Api-Key") - // add default headers if any - for key := range a.Configuration.DefaultHeader { - localVarHeaderParams[key] = a.Configuration.DefaultHeader[key] - } - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - // body params - localVarPostBody = &data - var successPayload = new(AlpinePackageUpload) - localVarHttpResponse, err := a.Configuration.APIClient.CallAPI(localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - - var localVarURL, _ = url.Parse(localVarPath) - localVarURL.RawQuery = localVarQueryParams.Encode() - var localVarAPIResponse = &APIResponse{Operation: "PackagesUploadGo", Method: localVarHttpMethod, RequestURL: localVarURL.String()} - if localVarHttpResponse != nil { - localVarAPIResponse.Response = localVarHttpResponse.RawResponse - localVarAPIResponse.Payload = localVarHttpResponse.Body() - } - - if err != nil { - return successPayload, localVarAPIResponse, err - } - err = json.Unmarshal(localVarHttpResponse.Body(), &successPayload) - return successPayload, localVarAPIResponse, err -} - -/** - * Create a new Helm package - * Create a new Helm package - * - * @param owner - * @param repo - * @param data - * @return *AlpinePackageUpload - */ -func (a PackagesApi) PackagesUploadHelm(owner string, repo string, data PackagesUploadHelm) (*AlpinePackageUpload, *APIResponse, error) { - - var localVarHttpMethod = strings.ToUpper("Post") - // create path and map variables - localVarPath := a.Configuration.BasePath + "/packages/{owner}/{repo}/upload/helm/" - localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) - localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := make(map[string]string) - var localVarPostBody interface{} - var localVarFileName string - var localVarFileBytes []byte - // authentication '(apikey)' required - // set key with prefix in header - localVarHeaderParams["X-Api-Key"] = a.Configuration.GetAPIKeyWithPrefix("X-Api-Key") - // add default headers if any - for key := range a.Configuration.DefaultHeader { - localVarHeaderParams[key] = a.Configuration.DefaultHeader[key] - } - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - // body params - localVarPostBody = &data - var successPayload = new(AlpinePackageUpload) - localVarHttpResponse, err := a.Configuration.APIClient.CallAPI(localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - - var localVarURL, _ = url.Parse(localVarPath) - localVarURL.RawQuery = localVarQueryParams.Encode() - var localVarAPIResponse = &APIResponse{Operation: "PackagesUploadHelm", Method: localVarHttpMethod, RequestURL: localVarURL.String()} - if localVarHttpResponse != nil { - localVarAPIResponse.Response = localVarHttpResponse.RawResponse - localVarAPIResponse.Payload = localVarHttpResponse.Body() - } - - if err != nil { - return successPayload, localVarAPIResponse, err - } - err = json.Unmarshal(localVarHttpResponse.Body(), &successPayload) - return successPayload, localVarAPIResponse, err -} - -/** - * Create a new LuaRocks package - * Create a new LuaRocks package - * - * @param owner - * @param repo - * @param data - * @return *AlpinePackageUpload - */ -func (a PackagesApi) PackagesUploadLuarocks(owner string, repo string, data PackagesUploadLuarocks) (*AlpinePackageUpload, *APIResponse, error) { - - var localVarHttpMethod = strings.ToUpper("Post") - // create path and map variables - localVarPath := a.Configuration.BasePath + "/packages/{owner}/{repo}/upload/luarocks/" - localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) - localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := make(map[string]string) - var localVarPostBody interface{} - var localVarFileName string - var localVarFileBytes []byte - // authentication '(apikey)' required - // set key with prefix in header - localVarHeaderParams["X-Api-Key"] = a.Configuration.GetAPIKeyWithPrefix("X-Api-Key") - // add default headers if any - for key := range a.Configuration.DefaultHeader { - localVarHeaderParams[key] = a.Configuration.DefaultHeader[key] - } - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - // body params - localVarPostBody = &data - var successPayload = new(AlpinePackageUpload) - localVarHttpResponse, err := a.Configuration.APIClient.CallAPI(localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - - var localVarURL, _ = url.Parse(localVarPath) - localVarURL.RawQuery = localVarQueryParams.Encode() - var localVarAPIResponse = &APIResponse{Operation: "PackagesUploadLuarocks", Method: localVarHttpMethod, RequestURL: localVarURL.String()} - if localVarHttpResponse != nil { - localVarAPIResponse.Response = localVarHttpResponse.RawResponse - localVarAPIResponse.Payload = localVarHttpResponse.Body() - } - - if err != nil { - return successPayload, localVarAPIResponse, err - } - err = json.Unmarshal(localVarHttpResponse.Body(), &successPayload) - return successPayload, localVarAPIResponse, err -} - -/** - * Create a new Maven package - * Create a new Maven package - * - * @param owner - * @param repo - * @param data - * @return *MavenPackageUpload - */ -func (a PackagesApi) PackagesUploadMaven(owner string, repo string, data PackagesUploadMaven) (*MavenPackageUpload, *APIResponse, error) { - - var localVarHttpMethod = strings.ToUpper("Post") - // create path and map variables - localVarPath := a.Configuration.BasePath + "/packages/{owner}/{repo}/upload/maven/" - localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) - localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := make(map[string]string) - var localVarPostBody interface{} - var localVarFileName string - var localVarFileBytes []byte - // authentication '(apikey)' required - // set key with prefix in header - localVarHeaderParams["X-Api-Key"] = a.Configuration.GetAPIKeyWithPrefix("X-Api-Key") - // add default headers if any - for key := range a.Configuration.DefaultHeader { - localVarHeaderParams[key] = a.Configuration.DefaultHeader[key] - } - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - // body params - localVarPostBody = &data - var successPayload = new(MavenPackageUpload) - localVarHttpResponse, err := a.Configuration.APIClient.CallAPI(localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - - var localVarURL, _ = url.Parse(localVarPath) - localVarURL.RawQuery = localVarQueryParams.Encode() - var localVarAPIResponse = &APIResponse{Operation: "PackagesUploadMaven", Method: localVarHttpMethod, RequestURL: localVarURL.String()} - if localVarHttpResponse != nil { - localVarAPIResponse.Response = localVarHttpResponse.RawResponse - localVarAPIResponse.Payload = localVarHttpResponse.Body() - } - - if err != nil { - return successPayload, localVarAPIResponse, err - } - err = json.Unmarshal(localVarHttpResponse.Body(), &successPayload) - return successPayload, localVarAPIResponse, err -} - -/** - * Create a new npm package - * Create a new npm package - * - * @param owner - * @param repo - * @param data - * @return *AlpinePackageUpload - */ -func (a PackagesApi) PackagesUploadNpm(owner string, repo string, data PackagesUploadNpm) (*AlpinePackageUpload, *APIResponse, error) { - - var localVarHttpMethod = strings.ToUpper("Post") - // create path and map variables - localVarPath := a.Configuration.BasePath + "/packages/{owner}/{repo}/upload/npm/" - localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) - localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := make(map[string]string) - var localVarPostBody interface{} - var localVarFileName string - var localVarFileBytes []byte - // authentication '(apikey)' required - // set key with prefix in header - localVarHeaderParams["X-Api-Key"] = a.Configuration.GetAPIKeyWithPrefix("X-Api-Key") - // add default headers if any - for key := range a.Configuration.DefaultHeader { - localVarHeaderParams[key] = a.Configuration.DefaultHeader[key] - } - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - // body params - localVarPostBody = &data - var successPayload = new(AlpinePackageUpload) - localVarHttpResponse, err := a.Configuration.APIClient.CallAPI(localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - - var localVarURL, _ = url.Parse(localVarPath) - localVarURL.RawQuery = localVarQueryParams.Encode() - var localVarAPIResponse = &APIResponse{Operation: "PackagesUploadNpm", Method: localVarHttpMethod, RequestURL: localVarURL.String()} - if localVarHttpResponse != nil { - localVarAPIResponse.Response = localVarHttpResponse.RawResponse - localVarAPIResponse.Payload = localVarHttpResponse.Body() - } - - if err != nil { - return successPayload, localVarAPIResponse, err - } - err = json.Unmarshal(localVarHttpResponse.Body(), &successPayload) - return successPayload, localVarAPIResponse, err -} - -/** - * Create a new NuGet package - * Create a new NuGet package - * - * @param owner - * @param repo - * @param data - * @return *AlpinePackageUpload - */ -func (a PackagesApi) PackagesUploadNuget(owner string, repo string, data PackagesUploadNuget) (*AlpinePackageUpload, *APIResponse, error) { - - var localVarHttpMethod = strings.ToUpper("Post") - // create path and map variables - localVarPath := a.Configuration.BasePath + "/packages/{owner}/{repo}/upload/nuget/" - localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) - localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := make(map[string]string) - var localVarPostBody interface{} - var localVarFileName string - var localVarFileBytes []byte - // authentication '(apikey)' required - // set key with prefix in header - localVarHeaderParams["X-Api-Key"] = a.Configuration.GetAPIKeyWithPrefix("X-Api-Key") - // add default headers if any - for key := range a.Configuration.DefaultHeader { - localVarHeaderParams[key] = a.Configuration.DefaultHeader[key] - } - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - // body params - localVarPostBody = &data - var successPayload = new(AlpinePackageUpload) - localVarHttpResponse, err := a.Configuration.APIClient.CallAPI(localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - - var localVarURL, _ = url.Parse(localVarPath) - localVarURL.RawQuery = localVarQueryParams.Encode() - var localVarAPIResponse = &APIResponse{Operation: "PackagesUploadNuget", Method: localVarHttpMethod, RequestURL: localVarURL.String()} - if localVarHttpResponse != nil { - localVarAPIResponse.Response = localVarHttpResponse.RawResponse - localVarAPIResponse.Payload = localVarHttpResponse.Body() - } - - if err != nil { - return successPayload, localVarAPIResponse, err - } - err = json.Unmarshal(localVarHttpResponse.Body(), &successPayload) - return successPayload, localVarAPIResponse, err -} - -/** - * Create a new P2 package - * Create a new P2 package - * - * @param owner - * @param repo - * @param data - * @return *AlpinePackageUpload - */ -func (a PackagesApi) PackagesUploadP2(owner string, repo string, data PackagesUploadP2) (*AlpinePackageUpload, *APIResponse, error) { - - var localVarHttpMethod = strings.ToUpper("Post") - // create path and map variables - localVarPath := a.Configuration.BasePath + "/packages/{owner}/{repo}/upload/p2/" - localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) - localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := make(map[string]string) - var localVarPostBody interface{} - var localVarFileName string - var localVarFileBytes []byte - // authentication '(apikey)' required - // set key with prefix in header - localVarHeaderParams["X-Api-Key"] = a.Configuration.GetAPIKeyWithPrefix("X-Api-Key") - // add default headers if any - for key := range a.Configuration.DefaultHeader { - localVarHeaderParams[key] = a.Configuration.DefaultHeader[key] - } - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - // body params - localVarPostBody = &data - var successPayload = new(AlpinePackageUpload) - localVarHttpResponse, err := a.Configuration.APIClient.CallAPI(localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - - var localVarURL, _ = url.Parse(localVarPath) - localVarURL.RawQuery = localVarQueryParams.Encode() - var localVarAPIResponse = &APIResponse{Operation: "PackagesUploadP2", Method: localVarHttpMethod, RequestURL: localVarURL.String()} - if localVarHttpResponse != nil { - localVarAPIResponse.Response = localVarHttpResponse.RawResponse - localVarAPIResponse.Payload = localVarHttpResponse.Body() - } - - if err != nil { - return successPayload, localVarAPIResponse, err - } - err = json.Unmarshal(localVarHttpResponse.Body(), &successPayload) - return successPayload, localVarAPIResponse, err -} - -/** - * Create a new Python package - * Create a new Python package - * - * @param owner - * @param repo - * @param data - * @return *AlpinePackageUpload - */ -func (a PackagesApi) PackagesUploadPython(owner string, repo string, data PackagesUploadPython) (*AlpinePackageUpload, *APIResponse, error) { - - var localVarHttpMethod = strings.ToUpper("Post") - // create path and map variables - localVarPath := a.Configuration.BasePath + "/packages/{owner}/{repo}/upload/python/" - localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) - localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := make(map[string]string) - var localVarPostBody interface{} - var localVarFileName string - var localVarFileBytes []byte - // authentication '(apikey)' required - // set key with prefix in header - localVarHeaderParams["X-Api-Key"] = a.Configuration.GetAPIKeyWithPrefix("X-Api-Key") - // add default headers if any - for key := range a.Configuration.DefaultHeader { - localVarHeaderParams[key] = a.Configuration.DefaultHeader[key] - } - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - // body params - localVarPostBody = &data - var successPayload = new(AlpinePackageUpload) - localVarHttpResponse, err := a.Configuration.APIClient.CallAPI(localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - - var localVarURL, _ = url.Parse(localVarPath) - localVarURL.RawQuery = localVarQueryParams.Encode() - var localVarAPIResponse = &APIResponse{Operation: "PackagesUploadPython", Method: localVarHttpMethod, RequestURL: localVarURL.String()} - if localVarHttpResponse != nil { - localVarAPIResponse.Response = localVarHttpResponse.RawResponse - localVarAPIResponse.Payload = localVarHttpResponse.Body() - } - - if err != nil { - return successPayload, localVarAPIResponse, err - } - err = json.Unmarshal(localVarHttpResponse.Body(), &successPayload) - return successPayload, localVarAPIResponse, err -} - -/** - * Create a new Raw package - * Create a new Raw package - * - * @param owner - * @param repo - * @param data - * @return *RawPackageUpload - */ -func (a PackagesApi) PackagesUploadRaw(owner string, repo string, data PackagesUploadRaw) (*RawPackageUpload, *APIResponse, error) { - - var localVarHttpMethod = strings.ToUpper("Post") - // create path and map variables - localVarPath := a.Configuration.BasePath + "/packages/{owner}/{repo}/upload/raw/" - localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) - localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := make(map[string]string) - var localVarPostBody interface{} - var localVarFileName string - var localVarFileBytes []byte - // authentication '(apikey)' required - // set key with prefix in header - localVarHeaderParams["X-Api-Key"] = a.Configuration.GetAPIKeyWithPrefix("X-Api-Key") - // add default headers if any - for key := range a.Configuration.DefaultHeader { - localVarHeaderParams[key] = a.Configuration.DefaultHeader[key] - } - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - // body params - localVarPostBody = &data - var successPayload = new(RawPackageUpload) - localVarHttpResponse, err := a.Configuration.APIClient.CallAPI(localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - - var localVarURL, _ = url.Parse(localVarPath) - localVarURL.RawQuery = localVarQueryParams.Encode() - var localVarAPIResponse = &APIResponse{Operation: "PackagesUploadRaw", Method: localVarHttpMethod, RequestURL: localVarURL.String()} - if localVarHttpResponse != nil { - localVarAPIResponse.Response = localVarHttpResponse.RawResponse - localVarAPIResponse.Payload = localVarHttpResponse.Body() - } - - if err != nil { - return successPayload, localVarAPIResponse, err - } - err = json.Unmarshal(localVarHttpResponse.Body(), &successPayload) - return successPayload, localVarAPIResponse, err -} - -/** - * Create a new RedHat package - * Create a new RedHat package - * - * @param owner - * @param repo - * @param data - * @return *AlpinePackageUpload - */ -func (a PackagesApi) PackagesUploadRpm(owner string, repo string, data PackagesUploadRpm) (*AlpinePackageUpload, *APIResponse, error) { - - var localVarHttpMethod = strings.ToUpper("Post") - // create path and map variables - localVarPath := a.Configuration.BasePath + "/packages/{owner}/{repo}/upload/rpm/" - localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) - localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := make(map[string]string) - var localVarPostBody interface{} - var localVarFileName string - var localVarFileBytes []byte - // authentication '(apikey)' required - // set key with prefix in header - localVarHeaderParams["X-Api-Key"] = a.Configuration.GetAPIKeyWithPrefix("X-Api-Key") - // add default headers if any - for key := range a.Configuration.DefaultHeader { - localVarHeaderParams[key] = a.Configuration.DefaultHeader[key] - } - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - // body params - localVarPostBody = &data - var successPayload = new(AlpinePackageUpload) - localVarHttpResponse, err := a.Configuration.APIClient.CallAPI(localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - - var localVarURL, _ = url.Parse(localVarPath) - localVarURL.RawQuery = localVarQueryParams.Encode() - var localVarAPIResponse = &APIResponse{Operation: "PackagesUploadRpm", Method: localVarHttpMethod, RequestURL: localVarURL.String()} - if localVarHttpResponse != nil { - localVarAPIResponse.Response = localVarHttpResponse.RawResponse - localVarAPIResponse.Payload = localVarHttpResponse.Body() - } - - if err != nil { - return successPayload, localVarAPIResponse, err - } - err = json.Unmarshal(localVarHttpResponse.Body(), &successPayload) - return successPayload, localVarAPIResponse, err -} - -/** - * Create a new Ruby package - * Create a new Ruby package - * - * @param owner - * @param repo - * @param data - * @return *AlpinePackageUpload - */ -func (a PackagesApi) PackagesUploadRuby(owner string, repo string, data PackagesUploadRuby) (*AlpinePackageUpload, *APIResponse, error) { - - var localVarHttpMethod = strings.ToUpper("Post") - // create path and map variables - localVarPath := a.Configuration.BasePath + "/packages/{owner}/{repo}/upload/ruby/" - localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) - localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := make(map[string]string) - var localVarPostBody interface{} - var localVarFileName string - var localVarFileBytes []byte - // authentication '(apikey)' required - // set key with prefix in header - localVarHeaderParams["X-Api-Key"] = a.Configuration.GetAPIKeyWithPrefix("X-Api-Key") - // add default headers if any - for key := range a.Configuration.DefaultHeader { - localVarHeaderParams[key] = a.Configuration.DefaultHeader[key] - } - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - // body params - localVarPostBody = &data - var successPayload = new(AlpinePackageUpload) - localVarHttpResponse, err := a.Configuration.APIClient.CallAPI(localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - - var localVarURL, _ = url.Parse(localVarPath) - localVarURL.RawQuery = localVarQueryParams.Encode() - var localVarAPIResponse = &APIResponse{Operation: "PackagesUploadRuby", Method: localVarHttpMethod, RequestURL: localVarURL.String()} - if localVarHttpResponse != nil { - localVarAPIResponse.Response = localVarHttpResponse.RawResponse - localVarAPIResponse.Payload = localVarHttpResponse.Body() - } - - if err != nil { - return successPayload, localVarAPIResponse, err - } - err = json.Unmarshal(localVarHttpResponse.Body(), &successPayload) - return successPayload, localVarAPIResponse, err -} - -/** - * Create a new Terraform package - * Create a new Terraform package - * - * @param owner - * @param repo - * @param data - * @return *AlpinePackageUpload - */ -func (a PackagesApi) PackagesUploadTerraform(owner string, repo string, data PackagesUploadTerraform) (*AlpinePackageUpload, *APIResponse, error) { - - var localVarHttpMethod = strings.ToUpper("Post") - // create path and map variables - localVarPath := a.Configuration.BasePath + "/packages/{owner}/{repo}/upload/terraform/" - localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) - localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := make(map[string]string) - var localVarPostBody interface{} - var localVarFileName string - var localVarFileBytes []byte - // authentication '(apikey)' required - // set key with prefix in header - localVarHeaderParams["X-Api-Key"] = a.Configuration.GetAPIKeyWithPrefix("X-Api-Key") - // add default headers if any - for key := range a.Configuration.DefaultHeader { - localVarHeaderParams[key] = a.Configuration.DefaultHeader[key] - } - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - // body params - localVarPostBody = &data - var successPayload = new(AlpinePackageUpload) - localVarHttpResponse, err := a.Configuration.APIClient.CallAPI(localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - - var localVarURL, _ = url.Parse(localVarPath) - localVarURL.RawQuery = localVarQueryParams.Encode() - var localVarAPIResponse = &APIResponse{Operation: "PackagesUploadTerraform", Method: localVarHttpMethod, RequestURL: localVarURL.String()} - if localVarHttpResponse != nil { - localVarAPIResponse.Response = localVarHttpResponse.RawResponse - localVarAPIResponse.Payload = localVarHttpResponse.Body() - } - - if err != nil { - return successPayload, localVarAPIResponse, err - } - err = json.Unmarshal(localVarHttpResponse.Body(), &successPayload) - return successPayload, localVarAPIResponse, err -} - -/** - * Create a new Vagrant package - * Create a new Vagrant package - * - * @param owner - * @param repo - * @param data - * @return *VagrantPackageUpload - */ -func (a PackagesApi) PackagesUploadVagrant(owner string, repo string, data PackagesUploadVagrant) (*VagrantPackageUpload, *APIResponse, error) { - - var localVarHttpMethod = strings.ToUpper("Post") - // create path and map variables - localVarPath := a.Configuration.BasePath + "/packages/{owner}/{repo}/upload/vagrant/" - localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) - localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := make(map[string]string) - var localVarPostBody interface{} - var localVarFileName string - var localVarFileBytes []byte - // authentication '(apikey)' required - // set key with prefix in header - localVarHeaderParams["X-Api-Key"] = a.Configuration.GetAPIKeyWithPrefix("X-Api-Key") - // add default headers if any - for key := range a.Configuration.DefaultHeader { - localVarHeaderParams[key] = a.Configuration.DefaultHeader[key] - } - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - // body params - localVarPostBody = &data - var successPayload = new(VagrantPackageUpload) - localVarHttpResponse, err := a.Configuration.APIClient.CallAPI(localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - - var localVarURL, _ = url.Parse(localVarPath) - localVarURL.RawQuery = localVarQueryParams.Encode() - var localVarAPIResponse = &APIResponse{Operation: "PackagesUploadVagrant", Method: localVarHttpMethod, RequestURL: localVarURL.String()} - if localVarHttpResponse != nil { - localVarAPIResponse.Response = localVarHttpResponse.RawResponse - localVarAPIResponse.Payload = localVarHttpResponse.Body() - } - - if err != nil { - return successPayload, localVarAPIResponse, err - } - err = json.Unmarshal(localVarHttpResponse.Body(), &successPayload) - return successPayload, localVarAPIResponse, err -} - -/** - * Validate parameters for create Alpine package - * Validate parameters for create Alpine package - * - * @param owner - * @param repo - * @param data - * @return void - */ -func (a PackagesApi) PackagesValidateUploadAlpine(owner string, repo string, data PackagesValidateuploadAlpine) (*APIResponse, error) { - - var localVarHttpMethod = strings.ToUpper("Post") - // create path and map variables - localVarPath := a.Configuration.BasePath + "/packages/{owner}/{repo}/validate-upload/alpine/" - localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) - localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := make(map[string]string) - var localVarPostBody interface{} - var localVarFileName string - var localVarFileBytes []byte - // authentication '(apikey)' required - // set key with prefix in header - localVarHeaderParams["X-Api-Key"] = a.Configuration.GetAPIKeyWithPrefix("X-Api-Key") - // add default headers if any - for key := range a.Configuration.DefaultHeader { - localVarHeaderParams[key] = a.Configuration.DefaultHeader[key] - } - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - // body params - localVarPostBody = &data - localVarHttpResponse, err := a.Configuration.APIClient.CallAPI(localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - - var localVarURL, _ = url.Parse(localVarPath) - localVarURL.RawQuery = localVarQueryParams.Encode() - var localVarAPIResponse = &APIResponse{Operation: "PackagesValidateUploadAlpine", Method: localVarHttpMethod, RequestURL: localVarURL.String()} - if localVarHttpResponse != nil { - localVarAPIResponse.Response = localVarHttpResponse.RawResponse - localVarAPIResponse.Payload = localVarHttpResponse.Body() - } - - if err != nil { - return localVarAPIResponse, err - } - return localVarAPIResponse, err -} - -/** - * Validate parameters for create Cargo package - * Validate parameters for create Cargo package - * - * @param owner - * @param repo - * @param data - * @return void - */ -func (a PackagesApi) PackagesValidateUploadCargo(owner string, repo string, data PackagesValidateuploadCargo) (*APIResponse, error) { - - var localVarHttpMethod = strings.ToUpper("Post") - // create path and map variables - localVarPath := a.Configuration.BasePath + "/packages/{owner}/{repo}/validate-upload/cargo/" - localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) - localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := make(map[string]string) - var localVarPostBody interface{} - var localVarFileName string - var localVarFileBytes []byte - // authentication '(apikey)' required - // set key with prefix in header - localVarHeaderParams["X-Api-Key"] = a.Configuration.GetAPIKeyWithPrefix("X-Api-Key") - // add default headers if any - for key := range a.Configuration.DefaultHeader { - localVarHeaderParams[key] = a.Configuration.DefaultHeader[key] - } - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - // body params - localVarPostBody = &data - localVarHttpResponse, err := a.Configuration.APIClient.CallAPI(localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - - var localVarURL, _ = url.Parse(localVarPath) - localVarURL.RawQuery = localVarQueryParams.Encode() - var localVarAPIResponse = &APIResponse{Operation: "PackagesValidateUploadCargo", Method: localVarHttpMethod, RequestURL: localVarURL.String()} - if localVarHttpResponse != nil { - localVarAPIResponse.Response = localVarHttpResponse.RawResponse - localVarAPIResponse.Payload = localVarHttpResponse.Body() - } - - if err != nil { - return localVarAPIResponse, err - } - return localVarAPIResponse, err -} - -/** - * Validate parameters for create CocoaPods package - * Validate parameters for create CocoaPods package - * - * @param owner - * @param repo - * @param data - * @return void - */ -func (a PackagesApi) PackagesValidateUploadCocoapods(owner string, repo string, data PackagesValidateuploadCocoapods) (*APIResponse, error) { - - var localVarHttpMethod = strings.ToUpper("Post") - // create path and map variables - localVarPath := a.Configuration.BasePath + "/packages/{owner}/{repo}/validate-upload/cocoapods/" - localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) - localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := make(map[string]string) - var localVarPostBody interface{} - var localVarFileName string - var localVarFileBytes []byte - // authentication '(apikey)' required - // set key with prefix in header - localVarHeaderParams["X-Api-Key"] = a.Configuration.GetAPIKeyWithPrefix("X-Api-Key") - // add default headers if any - for key := range a.Configuration.DefaultHeader { - localVarHeaderParams[key] = a.Configuration.DefaultHeader[key] - } - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - // body params - localVarPostBody = &data - localVarHttpResponse, err := a.Configuration.APIClient.CallAPI(localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - - var localVarURL, _ = url.Parse(localVarPath) - localVarURL.RawQuery = localVarQueryParams.Encode() - var localVarAPIResponse = &APIResponse{Operation: "PackagesValidateUploadCocoapods", Method: localVarHttpMethod, RequestURL: localVarURL.String()} - if localVarHttpResponse != nil { - localVarAPIResponse.Response = localVarHttpResponse.RawResponse - localVarAPIResponse.Payload = localVarHttpResponse.Body() - } - - if err != nil { - return localVarAPIResponse, err - } - return localVarAPIResponse, err -} - -/** - * Validate parameters for create Composer package - * Validate parameters for create Composer package - * - * @param owner - * @param repo - * @param data - * @return void - */ -func (a PackagesApi) PackagesValidateUploadComposer(owner string, repo string, data PackagesValidateuploadComposer) (*APIResponse, error) { - - var localVarHttpMethod = strings.ToUpper("Post") - // create path and map variables - localVarPath := a.Configuration.BasePath + "/packages/{owner}/{repo}/validate-upload/composer/" - localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) - localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := make(map[string]string) - var localVarPostBody interface{} - var localVarFileName string - var localVarFileBytes []byte - // authentication '(apikey)' required - // set key with prefix in header - localVarHeaderParams["X-Api-Key"] = a.Configuration.GetAPIKeyWithPrefix("X-Api-Key") - // add default headers if any - for key := range a.Configuration.DefaultHeader { - localVarHeaderParams[key] = a.Configuration.DefaultHeader[key] - } - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - // body params - localVarPostBody = &data - localVarHttpResponse, err := a.Configuration.APIClient.CallAPI(localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - - var localVarURL, _ = url.Parse(localVarPath) - localVarURL.RawQuery = localVarQueryParams.Encode() - var localVarAPIResponse = &APIResponse{Operation: "PackagesValidateUploadComposer", Method: localVarHttpMethod, RequestURL: localVarURL.String()} - if localVarHttpResponse != nil { - localVarAPIResponse.Response = localVarHttpResponse.RawResponse - localVarAPIResponse.Payload = localVarHttpResponse.Body() - } - - if err != nil { - return localVarAPIResponse, err - } - return localVarAPIResponse, err -} - -/** - * Validate parameters for create Conan package - * Validate parameters for create Conan package - * - * @param owner - * @param repo - * @param data - * @return void - */ -func (a PackagesApi) PackagesValidateUploadConan(owner string, repo string, data PackagesValidateuploadConan) (*APIResponse, error) { - - var localVarHttpMethod = strings.ToUpper("Post") - // create path and map variables - localVarPath := a.Configuration.BasePath + "/packages/{owner}/{repo}/validate-upload/conan/" - localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) - localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := make(map[string]string) - var localVarPostBody interface{} - var localVarFileName string - var localVarFileBytes []byte - // authentication '(apikey)' required - // set key with prefix in header - localVarHeaderParams["X-Api-Key"] = a.Configuration.GetAPIKeyWithPrefix("X-Api-Key") - // add default headers if any - for key := range a.Configuration.DefaultHeader { - localVarHeaderParams[key] = a.Configuration.DefaultHeader[key] - } - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - // body params - localVarPostBody = &data - localVarHttpResponse, err := a.Configuration.APIClient.CallAPI(localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - - var localVarURL, _ = url.Parse(localVarPath) - localVarURL.RawQuery = localVarQueryParams.Encode() - var localVarAPIResponse = &APIResponse{Operation: "PackagesValidateUploadConan", Method: localVarHttpMethod, RequestURL: localVarURL.String()} - if localVarHttpResponse != nil { - localVarAPIResponse.Response = localVarHttpResponse.RawResponse - localVarAPIResponse.Payload = localVarHttpResponse.Body() - } - - if err != nil { - return localVarAPIResponse, err - } - return localVarAPIResponse, err -} - -/** - * Validate parameters for create Conda package - * Validate parameters for create Conda package - * - * @param owner - * @param repo - * @param data - * @return void - */ -func (a PackagesApi) PackagesValidateUploadConda(owner string, repo string, data PackagesValidateuploadConda) (*APIResponse, error) { - - var localVarHttpMethod = strings.ToUpper("Post") - // create path and map variables - localVarPath := a.Configuration.BasePath + "/packages/{owner}/{repo}/validate-upload/conda/" - localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) - localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := make(map[string]string) - var localVarPostBody interface{} - var localVarFileName string - var localVarFileBytes []byte - // authentication '(apikey)' required - // set key with prefix in header - localVarHeaderParams["X-Api-Key"] = a.Configuration.GetAPIKeyWithPrefix("X-Api-Key") - // add default headers if any - for key := range a.Configuration.DefaultHeader { - localVarHeaderParams[key] = a.Configuration.DefaultHeader[key] - } - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - // body params - localVarPostBody = &data - localVarHttpResponse, err := a.Configuration.APIClient.CallAPI(localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - - var localVarURL, _ = url.Parse(localVarPath) - localVarURL.RawQuery = localVarQueryParams.Encode() - var localVarAPIResponse = &APIResponse{Operation: "PackagesValidateUploadConda", Method: localVarHttpMethod, RequestURL: localVarURL.String()} - if localVarHttpResponse != nil { - localVarAPIResponse.Response = localVarHttpResponse.RawResponse - localVarAPIResponse.Payload = localVarHttpResponse.Body() - } - - if err != nil { - return localVarAPIResponse, err - } - return localVarAPIResponse, err -} - -/** - * Validate parameters for create CRAN package - * Validate parameters for create CRAN package - * - * @param owner - * @param repo - * @param data - * @return void - */ -func (a PackagesApi) PackagesValidateUploadCran(owner string, repo string, data PackagesValidateuploadCran) (*APIResponse, error) { - - var localVarHttpMethod = strings.ToUpper("Post") - // create path and map variables - localVarPath := a.Configuration.BasePath + "/packages/{owner}/{repo}/validate-upload/cran/" - localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) - localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := make(map[string]string) - var localVarPostBody interface{} - var localVarFileName string - var localVarFileBytes []byte - // authentication '(apikey)' required - // set key with prefix in header - localVarHeaderParams["X-Api-Key"] = a.Configuration.GetAPIKeyWithPrefix("X-Api-Key") - // add default headers if any - for key := range a.Configuration.DefaultHeader { - localVarHeaderParams[key] = a.Configuration.DefaultHeader[key] - } - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - // body params - localVarPostBody = &data - localVarHttpResponse, err := a.Configuration.APIClient.CallAPI(localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - - var localVarURL, _ = url.Parse(localVarPath) - localVarURL.RawQuery = localVarQueryParams.Encode() - var localVarAPIResponse = &APIResponse{Operation: "PackagesValidateUploadCran", Method: localVarHttpMethod, RequestURL: localVarURL.String()} - if localVarHttpResponse != nil { - localVarAPIResponse.Response = localVarHttpResponse.RawResponse - localVarAPIResponse.Payload = localVarHttpResponse.Body() - } - - if err != nil { - return localVarAPIResponse, err - } - return localVarAPIResponse, err -} - -/** - * Validate parameters for create Dart package - * Validate parameters for create Dart package - * - * @param owner - * @param repo - * @param data - * @return void - */ -func (a PackagesApi) PackagesValidateUploadDart(owner string, repo string, data PackagesValidateuploadDart) (*APIResponse, error) { - - var localVarHttpMethod = strings.ToUpper("Post") - // create path and map variables - localVarPath := a.Configuration.BasePath + "/packages/{owner}/{repo}/validate-upload/dart/" - localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) - localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := make(map[string]string) - var localVarPostBody interface{} - var localVarFileName string - var localVarFileBytes []byte - // authentication '(apikey)' required - // set key with prefix in header - localVarHeaderParams["X-Api-Key"] = a.Configuration.GetAPIKeyWithPrefix("X-Api-Key") - // add default headers if any - for key := range a.Configuration.DefaultHeader { - localVarHeaderParams[key] = a.Configuration.DefaultHeader[key] - } - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - // body params - localVarPostBody = &data - localVarHttpResponse, err := a.Configuration.APIClient.CallAPI(localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - - var localVarURL, _ = url.Parse(localVarPath) - localVarURL.RawQuery = localVarQueryParams.Encode() - var localVarAPIResponse = &APIResponse{Operation: "PackagesValidateUploadDart", Method: localVarHttpMethod, RequestURL: localVarURL.String()} - if localVarHttpResponse != nil { - localVarAPIResponse.Response = localVarHttpResponse.RawResponse - localVarAPIResponse.Payload = localVarHttpResponse.Body() - } - - if err != nil { - return localVarAPIResponse, err - } - return localVarAPIResponse, err -} - -/** - * Validate parameters for create Debian package - * Validate parameters for create Debian package - * - * @param owner - * @param repo - * @param data - * @return void - */ -func (a PackagesApi) PackagesValidateUploadDeb(owner string, repo string, data PackagesValidateuploadDeb) (*APIResponse, error) { - - var localVarHttpMethod = strings.ToUpper("Post") - // create path and map variables - localVarPath := a.Configuration.BasePath + "/packages/{owner}/{repo}/validate-upload/deb/" - localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) - localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := make(map[string]string) - var localVarPostBody interface{} - var localVarFileName string - var localVarFileBytes []byte - // authentication '(apikey)' required - // set key with prefix in header - localVarHeaderParams["X-Api-Key"] = a.Configuration.GetAPIKeyWithPrefix("X-Api-Key") - // add default headers if any - for key := range a.Configuration.DefaultHeader { - localVarHeaderParams[key] = a.Configuration.DefaultHeader[key] - } - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - // body params - localVarPostBody = &data - localVarHttpResponse, err := a.Configuration.APIClient.CallAPI(localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - - var localVarURL, _ = url.Parse(localVarPath) - localVarURL.RawQuery = localVarQueryParams.Encode() - var localVarAPIResponse = &APIResponse{Operation: "PackagesValidateUploadDeb", Method: localVarHttpMethod, RequestURL: localVarURL.String()} - if localVarHttpResponse != nil { - localVarAPIResponse.Response = localVarHttpResponse.RawResponse - localVarAPIResponse.Payload = localVarHttpResponse.Body() - } - - if err != nil { - return localVarAPIResponse, err - } - return localVarAPIResponse, err -} - -/** - * Validate parameters for create Docker package - * Validate parameters for create Docker package - * - * @param owner - * @param repo - * @param data - * @return void - */ -func (a PackagesApi) PackagesValidateUploadDocker(owner string, repo string, data PackagesValidateuploadDocker) (*APIResponse, error) { - - var localVarHttpMethod = strings.ToUpper("Post") - // create path and map variables - localVarPath := a.Configuration.BasePath + "/packages/{owner}/{repo}/validate-upload/docker/" - localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) - localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := make(map[string]string) - var localVarPostBody interface{} - var localVarFileName string - var localVarFileBytes []byte - // authentication '(apikey)' required - // set key with prefix in header - localVarHeaderParams["X-Api-Key"] = a.Configuration.GetAPIKeyWithPrefix("X-Api-Key") - // add default headers if any - for key := range a.Configuration.DefaultHeader { - localVarHeaderParams[key] = a.Configuration.DefaultHeader[key] - } - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - // body params - localVarPostBody = &data - localVarHttpResponse, err := a.Configuration.APIClient.CallAPI(localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - - var localVarURL, _ = url.Parse(localVarPath) - localVarURL.RawQuery = localVarQueryParams.Encode() - var localVarAPIResponse = &APIResponse{Operation: "PackagesValidateUploadDocker", Method: localVarHttpMethod, RequestURL: localVarURL.String()} - if localVarHttpResponse != nil { - localVarAPIResponse.Response = localVarHttpResponse.RawResponse - localVarAPIResponse.Payload = localVarHttpResponse.Body() - } - - if err != nil { - return localVarAPIResponse, err - } - return localVarAPIResponse, err -} - -/** - * Validate parameters for create Go package - * Validate parameters for create Go package - * - * @param owner - * @param repo - * @param data - * @return void - */ -func (a PackagesApi) PackagesValidateUploadGo(owner string, repo string, data PackagesValidateuploadGo) (*APIResponse, error) { - - var localVarHttpMethod = strings.ToUpper("Post") - // create path and map variables - localVarPath := a.Configuration.BasePath + "/packages/{owner}/{repo}/validate-upload/go/" - localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) - localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := make(map[string]string) - var localVarPostBody interface{} - var localVarFileName string - var localVarFileBytes []byte - // authentication '(apikey)' required - // set key with prefix in header - localVarHeaderParams["X-Api-Key"] = a.Configuration.GetAPIKeyWithPrefix("X-Api-Key") - // add default headers if any - for key := range a.Configuration.DefaultHeader { - localVarHeaderParams[key] = a.Configuration.DefaultHeader[key] - } - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - // body params - localVarPostBody = &data - localVarHttpResponse, err := a.Configuration.APIClient.CallAPI(localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - - var localVarURL, _ = url.Parse(localVarPath) - localVarURL.RawQuery = localVarQueryParams.Encode() - var localVarAPIResponse = &APIResponse{Operation: "PackagesValidateUploadGo", Method: localVarHttpMethod, RequestURL: localVarURL.String()} - if localVarHttpResponse != nil { - localVarAPIResponse.Response = localVarHttpResponse.RawResponse - localVarAPIResponse.Payload = localVarHttpResponse.Body() - } - - if err != nil { - return localVarAPIResponse, err - } - return localVarAPIResponse, err -} - -/** - * Validate parameters for create Helm package - * Validate parameters for create Helm package - * - * @param owner - * @param repo - * @param data - * @return void - */ -func (a PackagesApi) PackagesValidateUploadHelm(owner string, repo string, data PackagesValidateuploadHelm) (*APIResponse, error) { - - var localVarHttpMethod = strings.ToUpper("Post") - // create path and map variables - localVarPath := a.Configuration.BasePath + "/packages/{owner}/{repo}/validate-upload/helm/" - localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) - localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := make(map[string]string) - var localVarPostBody interface{} - var localVarFileName string - var localVarFileBytes []byte - // authentication '(apikey)' required - // set key with prefix in header - localVarHeaderParams["X-Api-Key"] = a.Configuration.GetAPIKeyWithPrefix("X-Api-Key") - // add default headers if any - for key := range a.Configuration.DefaultHeader { - localVarHeaderParams[key] = a.Configuration.DefaultHeader[key] - } - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - // body params - localVarPostBody = &data - localVarHttpResponse, err := a.Configuration.APIClient.CallAPI(localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - - var localVarURL, _ = url.Parse(localVarPath) - localVarURL.RawQuery = localVarQueryParams.Encode() - var localVarAPIResponse = &APIResponse{Operation: "PackagesValidateUploadHelm", Method: localVarHttpMethod, RequestURL: localVarURL.String()} - if localVarHttpResponse != nil { - localVarAPIResponse.Response = localVarHttpResponse.RawResponse - localVarAPIResponse.Payload = localVarHttpResponse.Body() - } - - if err != nil { - return localVarAPIResponse, err - } - return localVarAPIResponse, err -} - -/** - * Validate parameters for create LuaRocks package - * Validate parameters for create LuaRocks package - * - * @param owner - * @param repo - * @param data - * @return void - */ -func (a PackagesApi) PackagesValidateUploadLuarocks(owner string, repo string, data PackagesValidateuploadLuarocks) (*APIResponse, error) { - - var localVarHttpMethod = strings.ToUpper("Post") - // create path and map variables - localVarPath := a.Configuration.BasePath + "/packages/{owner}/{repo}/validate-upload/luarocks/" - localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) - localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := make(map[string]string) - var localVarPostBody interface{} - var localVarFileName string - var localVarFileBytes []byte - // authentication '(apikey)' required - // set key with prefix in header - localVarHeaderParams["X-Api-Key"] = a.Configuration.GetAPIKeyWithPrefix("X-Api-Key") - // add default headers if any - for key := range a.Configuration.DefaultHeader { - localVarHeaderParams[key] = a.Configuration.DefaultHeader[key] - } - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - // body params - localVarPostBody = &data - localVarHttpResponse, err := a.Configuration.APIClient.CallAPI(localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - - var localVarURL, _ = url.Parse(localVarPath) - localVarURL.RawQuery = localVarQueryParams.Encode() - var localVarAPIResponse = &APIResponse{Operation: "PackagesValidateUploadLuarocks", Method: localVarHttpMethod, RequestURL: localVarURL.String()} - if localVarHttpResponse != nil { - localVarAPIResponse.Response = localVarHttpResponse.RawResponse - localVarAPIResponse.Payload = localVarHttpResponse.Body() - } - - if err != nil { - return localVarAPIResponse, err - } - return localVarAPIResponse, err -} - -/** - * Validate parameters for create Maven package - * Validate parameters for create Maven package - * - * @param owner - * @param repo - * @param data - * @return void - */ -func (a PackagesApi) PackagesValidateUploadMaven(owner string, repo string, data PackagesValidateuploadMaven) (*APIResponse, error) { - - var localVarHttpMethod = strings.ToUpper("Post") - // create path and map variables - localVarPath := a.Configuration.BasePath + "/packages/{owner}/{repo}/validate-upload/maven/" - localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) - localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := make(map[string]string) - var localVarPostBody interface{} - var localVarFileName string - var localVarFileBytes []byte - // authentication '(apikey)' required - // set key with prefix in header - localVarHeaderParams["X-Api-Key"] = a.Configuration.GetAPIKeyWithPrefix("X-Api-Key") - // add default headers if any - for key := range a.Configuration.DefaultHeader { - localVarHeaderParams[key] = a.Configuration.DefaultHeader[key] - } - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - // body params - localVarPostBody = &data - localVarHttpResponse, err := a.Configuration.APIClient.CallAPI(localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - - var localVarURL, _ = url.Parse(localVarPath) - localVarURL.RawQuery = localVarQueryParams.Encode() - var localVarAPIResponse = &APIResponse{Operation: "PackagesValidateUploadMaven", Method: localVarHttpMethod, RequestURL: localVarURL.String()} - if localVarHttpResponse != nil { - localVarAPIResponse.Response = localVarHttpResponse.RawResponse - localVarAPIResponse.Payload = localVarHttpResponse.Body() - } - - if err != nil { - return localVarAPIResponse, err - } - return localVarAPIResponse, err -} - -/** - * Validate parameters for create npm package - * Validate parameters for create npm package - * - * @param owner - * @param repo - * @param data - * @return void - */ -func (a PackagesApi) PackagesValidateUploadNpm(owner string, repo string, data PackagesValidateuploadNpm) (*APIResponse, error) { - - var localVarHttpMethod = strings.ToUpper("Post") - // create path and map variables - localVarPath := a.Configuration.BasePath + "/packages/{owner}/{repo}/validate-upload/npm/" - localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) - localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := make(map[string]string) - var localVarPostBody interface{} - var localVarFileName string - var localVarFileBytes []byte - // authentication '(apikey)' required - // set key with prefix in header - localVarHeaderParams["X-Api-Key"] = a.Configuration.GetAPIKeyWithPrefix("X-Api-Key") - // add default headers if any - for key := range a.Configuration.DefaultHeader { - localVarHeaderParams[key] = a.Configuration.DefaultHeader[key] - } - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - // body params - localVarPostBody = &data - localVarHttpResponse, err := a.Configuration.APIClient.CallAPI(localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - - var localVarURL, _ = url.Parse(localVarPath) - localVarURL.RawQuery = localVarQueryParams.Encode() - var localVarAPIResponse = &APIResponse{Operation: "PackagesValidateUploadNpm", Method: localVarHttpMethod, RequestURL: localVarURL.String()} - if localVarHttpResponse != nil { - localVarAPIResponse.Response = localVarHttpResponse.RawResponse - localVarAPIResponse.Payload = localVarHttpResponse.Body() - } - - if err != nil { - return localVarAPIResponse, err - } - return localVarAPIResponse, err -} - -/** - * Validate parameters for create NuGet package - * Validate parameters for create NuGet package - * - * @param owner - * @param repo - * @param data - * @return void - */ -func (a PackagesApi) PackagesValidateUploadNuget(owner string, repo string, data PackagesValidateuploadNuget) (*APIResponse, error) { - - var localVarHttpMethod = strings.ToUpper("Post") - // create path and map variables - localVarPath := a.Configuration.BasePath + "/packages/{owner}/{repo}/validate-upload/nuget/" - localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) - localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := make(map[string]string) - var localVarPostBody interface{} - var localVarFileName string - var localVarFileBytes []byte - // authentication '(apikey)' required - // set key with prefix in header - localVarHeaderParams["X-Api-Key"] = a.Configuration.GetAPIKeyWithPrefix("X-Api-Key") - // add default headers if any - for key := range a.Configuration.DefaultHeader { - localVarHeaderParams[key] = a.Configuration.DefaultHeader[key] - } - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - // body params - localVarPostBody = &data - localVarHttpResponse, err := a.Configuration.APIClient.CallAPI(localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - - var localVarURL, _ = url.Parse(localVarPath) - localVarURL.RawQuery = localVarQueryParams.Encode() - var localVarAPIResponse = &APIResponse{Operation: "PackagesValidateUploadNuget", Method: localVarHttpMethod, RequestURL: localVarURL.String()} - if localVarHttpResponse != nil { - localVarAPIResponse.Response = localVarHttpResponse.RawResponse - localVarAPIResponse.Payload = localVarHttpResponse.Body() - } - - if err != nil { - return localVarAPIResponse, err - } - return localVarAPIResponse, err -} - -/** - * Validate parameters for create P2 package - * Validate parameters for create P2 package - * - * @param owner - * @param repo - * @param data - * @return void - */ -func (a PackagesApi) PackagesValidateUploadP2(owner string, repo string, data PackagesValidateuploadP2) (*APIResponse, error) { - - var localVarHttpMethod = strings.ToUpper("Post") - // create path and map variables - localVarPath := a.Configuration.BasePath + "/packages/{owner}/{repo}/validate-upload/p2/" - localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) - localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := make(map[string]string) - var localVarPostBody interface{} - var localVarFileName string - var localVarFileBytes []byte - // authentication '(apikey)' required - // set key with prefix in header - localVarHeaderParams["X-Api-Key"] = a.Configuration.GetAPIKeyWithPrefix("X-Api-Key") - // add default headers if any - for key := range a.Configuration.DefaultHeader { - localVarHeaderParams[key] = a.Configuration.DefaultHeader[key] - } - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - // body params - localVarPostBody = &data - localVarHttpResponse, err := a.Configuration.APIClient.CallAPI(localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - - var localVarURL, _ = url.Parse(localVarPath) - localVarURL.RawQuery = localVarQueryParams.Encode() - var localVarAPIResponse = &APIResponse{Operation: "PackagesValidateUploadP2", Method: localVarHttpMethod, RequestURL: localVarURL.String()} - if localVarHttpResponse != nil { - localVarAPIResponse.Response = localVarHttpResponse.RawResponse - localVarAPIResponse.Payload = localVarHttpResponse.Body() - } - - if err != nil { - return localVarAPIResponse, err - } - return localVarAPIResponse, err -} - -/** - * Validate parameters for create Python package - * Validate parameters for create Python package - * - * @param owner - * @param repo - * @param data - * @return void - */ -func (a PackagesApi) PackagesValidateUploadPython(owner string, repo string, data PackagesValidateuploadPython) (*APIResponse, error) { - - var localVarHttpMethod = strings.ToUpper("Post") - // create path and map variables - localVarPath := a.Configuration.BasePath + "/packages/{owner}/{repo}/validate-upload/python/" - localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) - localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := make(map[string]string) - var localVarPostBody interface{} - var localVarFileName string - var localVarFileBytes []byte - // authentication '(apikey)' required - // set key with prefix in header - localVarHeaderParams["X-Api-Key"] = a.Configuration.GetAPIKeyWithPrefix("X-Api-Key") - // add default headers if any - for key := range a.Configuration.DefaultHeader { - localVarHeaderParams[key] = a.Configuration.DefaultHeader[key] - } - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - // body params - localVarPostBody = &data - localVarHttpResponse, err := a.Configuration.APIClient.CallAPI(localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - - var localVarURL, _ = url.Parse(localVarPath) - localVarURL.RawQuery = localVarQueryParams.Encode() - var localVarAPIResponse = &APIResponse{Operation: "PackagesValidateUploadPython", Method: localVarHttpMethod, RequestURL: localVarURL.String()} - if localVarHttpResponse != nil { - localVarAPIResponse.Response = localVarHttpResponse.RawResponse - localVarAPIResponse.Payload = localVarHttpResponse.Body() - } - - if err != nil { - return localVarAPIResponse, err - } - return localVarAPIResponse, err -} - -/** - * Validate parameters for create Raw package - * Validate parameters for create Raw package - * - * @param owner - * @param repo - * @param data - * @return void - */ -func (a PackagesApi) PackagesValidateUploadRaw(owner string, repo string, data PackagesValidateuploadRaw) (*APIResponse, error) { - - var localVarHttpMethod = strings.ToUpper("Post") - // create path and map variables - localVarPath := a.Configuration.BasePath + "/packages/{owner}/{repo}/validate-upload/raw/" - localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) - localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := make(map[string]string) - var localVarPostBody interface{} - var localVarFileName string - var localVarFileBytes []byte - // authentication '(apikey)' required - // set key with prefix in header - localVarHeaderParams["X-Api-Key"] = a.Configuration.GetAPIKeyWithPrefix("X-Api-Key") - // add default headers if any - for key := range a.Configuration.DefaultHeader { - localVarHeaderParams[key] = a.Configuration.DefaultHeader[key] - } - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - // body params - localVarPostBody = &data - localVarHttpResponse, err := a.Configuration.APIClient.CallAPI(localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - - var localVarURL, _ = url.Parse(localVarPath) - localVarURL.RawQuery = localVarQueryParams.Encode() - var localVarAPIResponse = &APIResponse{Operation: "PackagesValidateUploadRaw", Method: localVarHttpMethod, RequestURL: localVarURL.String()} - if localVarHttpResponse != nil { - localVarAPIResponse.Response = localVarHttpResponse.RawResponse - localVarAPIResponse.Payload = localVarHttpResponse.Body() - } - - if err != nil { - return localVarAPIResponse, err - } - return localVarAPIResponse, err -} - -/** - * Validate parameters for create RedHat package - * Validate parameters for create RedHat package - * - * @param owner - * @param repo - * @param data - * @return void - */ -func (a PackagesApi) PackagesValidateUploadRpm(owner string, repo string, data PackagesValidateuploadRpm) (*APIResponse, error) { - - var localVarHttpMethod = strings.ToUpper("Post") - // create path and map variables - localVarPath := a.Configuration.BasePath + "/packages/{owner}/{repo}/validate-upload/rpm/" - localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) - localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := make(map[string]string) - var localVarPostBody interface{} - var localVarFileName string - var localVarFileBytes []byte - // authentication '(apikey)' required - // set key with prefix in header - localVarHeaderParams["X-Api-Key"] = a.Configuration.GetAPIKeyWithPrefix("X-Api-Key") - // add default headers if any - for key := range a.Configuration.DefaultHeader { - localVarHeaderParams[key] = a.Configuration.DefaultHeader[key] - } - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - // body params - localVarPostBody = &data - localVarHttpResponse, err := a.Configuration.APIClient.CallAPI(localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - - var localVarURL, _ = url.Parse(localVarPath) - localVarURL.RawQuery = localVarQueryParams.Encode() - var localVarAPIResponse = &APIResponse{Operation: "PackagesValidateUploadRpm", Method: localVarHttpMethod, RequestURL: localVarURL.String()} - if localVarHttpResponse != nil { - localVarAPIResponse.Response = localVarHttpResponse.RawResponse - localVarAPIResponse.Payload = localVarHttpResponse.Body() - } - - if err != nil { - return localVarAPIResponse, err - } - return localVarAPIResponse, err -} - -/** - * Validate parameters for create Ruby package - * Validate parameters for create Ruby package - * - * @param owner - * @param repo - * @param data - * @return void - */ -func (a PackagesApi) PackagesValidateUploadRuby(owner string, repo string, data PackagesValidateuploadRuby) (*APIResponse, error) { - - var localVarHttpMethod = strings.ToUpper("Post") - // create path and map variables - localVarPath := a.Configuration.BasePath + "/packages/{owner}/{repo}/validate-upload/ruby/" - localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) - localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := make(map[string]string) - var localVarPostBody interface{} - var localVarFileName string - var localVarFileBytes []byte - // authentication '(apikey)' required - // set key with prefix in header - localVarHeaderParams["X-Api-Key"] = a.Configuration.GetAPIKeyWithPrefix("X-Api-Key") - // add default headers if any - for key := range a.Configuration.DefaultHeader { - localVarHeaderParams[key] = a.Configuration.DefaultHeader[key] - } - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - // body params - localVarPostBody = &data - localVarHttpResponse, err := a.Configuration.APIClient.CallAPI(localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - - var localVarURL, _ = url.Parse(localVarPath) - localVarURL.RawQuery = localVarQueryParams.Encode() - var localVarAPIResponse = &APIResponse{Operation: "PackagesValidateUploadRuby", Method: localVarHttpMethod, RequestURL: localVarURL.String()} - if localVarHttpResponse != nil { - localVarAPIResponse.Response = localVarHttpResponse.RawResponse - localVarAPIResponse.Payload = localVarHttpResponse.Body() - } - - if err != nil { - return localVarAPIResponse, err - } - return localVarAPIResponse, err -} - -/** - * Validate parameters for create Terraform package - * Validate parameters for create Terraform package - * - * @param owner - * @param repo - * @param data - * @return void - */ -func (a PackagesApi) PackagesValidateUploadTerraform(owner string, repo string, data PackagesValidateuploadTerraform) (*APIResponse, error) { - - var localVarHttpMethod = strings.ToUpper("Post") - // create path and map variables - localVarPath := a.Configuration.BasePath + "/packages/{owner}/{repo}/validate-upload/terraform/" - localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) - localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := make(map[string]string) - var localVarPostBody interface{} - var localVarFileName string - var localVarFileBytes []byte - // authentication '(apikey)' required - // set key with prefix in header - localVarHeaderParams["X-Api-Key"] = a.Configuration.GetAPIKeyWithPrefix("X-Api-Key") - // add default headers if any - for key := range a.Configuration.DefaultHeader { - localVarHeaderParams[key] = a.Configuration.DefaultHeader[key] - } - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - // body params - localVarPostBody = &data - localVarHttpResponse, err := a.Configuration.APIClient.CallAPI(localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - - var localVarURL, _ = url.Parse(localVarPath) - localVarURL.RawQuery = localVarQueryParams.Encode() - var localVarAPIResponse = &APIResponse{Operation: "PackagesValidateUploadTerraform", Method: localVarHttpMethod, RequestURL: localVarURL.String()} - if localVarHttpResponse != nil { - localVarAPIResponse.Response = localVarHttpResponse.RawResponse - localVarAPIResponse.Payload = localVarHttpResponse.Body() - } - - if err != nil { - return localVarAPIResponse, err - } - return localVarAPIResponse, err -} - -/** - * Validate parameters for create Vagrant package - * Validate parameters for create Vagrant package - * - * @param owner - * @param repo - * @param data - * @return void - */ -func (a PackagesApi) PackagesValidateUploadVagrant(owner string, repo string, data PackagesValidateuploadVagrant) (*APIResponse, error) { - - var localVarHttpMethod = strings.ToUpper("Post") - // create path and map variables - localVarPath := a.Configuration.BasePath + "/packages/{owner}/{repo}/validate-upload/vagrant/" - localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) - localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := make(map[string]string) - var localVarPostBody interface{} - var localVarFileName string - var localVarFileBytes []byte - // authentication '(apikey)' required - // set key with prefix in header - localVarHeaderParams["X-Api-Key"] = a.Configuration.GetAPIKeyWithPrefix("X-Api-Key") - // add default headers if any - for key := range a.Configuration.DefaultHeader { - localVarHeaderParams[key] = a.Configuration.DefaultHeader[key] - } - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - // body params - localVarPostBody = &data - localVarHttpResponse, err := a.Configuration.APIClient.CallAPI(localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - - var localVarURL, _ = url.Parse(localVarPath) - localVarURL.RawQuery = localVarQueryParams.Encode() - var localVarAPIResponse = &APIResponse{Operation: "PackagesValidateUploadVagrant", Method: localVarHttpMethod, RequestURL: localVarURL.String()} - if localVarHttpResponse != nil { - localVarAPIResponse.Response = localVarHttpResponse.RawResponse - localVarAPIResponse.Payload = localVarHttpResponse.Body() - } - - if err != nil { - return localVarAPIResponse, err - } - return localVarAPIResponse, err -} - diff --git a/bindings/go/src/quota_api.go b/bindings/go/src/quota_api.go deleted file mode 100644 index 3574d92e..00000000 --- a/bindings/go/src/quota_api.go +++ /dev/null @@ -1,291 +0,0 @@ -/* - * Cloudsmith API - * - * The API to the Cloudsmith Service - * - * OpenAPI spec version: v1 - * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -package cloudsmith_api - -import ( - "net/url" - "strings" - "encoding/json" - "fmt" -) - -type QuotaApi struct { - Configuration *Configuration -} - -func NewQuotaApi() *QuotaApi { - configuration := NewConfiguration() - return &QuotaApi{ - Configuration: configuration, - } -} - -func NewQuotaApiWithBasePath(basePath string) *QuotaApi { - configuration := NewConfiguration() - configuration.BasePath = basePath - - return &QuotaApi{ - Configuration: configuration, - } -} - -/** - * Quota history for a given namespace. - * Quota history for a given namespace. - * - * @param owner - * @return *QuotaHistory - */ -func (a QuotaApi) QuotaHistoryRead(owner string) (*QuotaHistory, *APIResponse, error) { - - var localVarHttpMethod = strings.ToUpper("Get") - // create path and map variables - localVarPath := a.Configuration.BasePath + "/quota/history/{owner}/" - localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := make(map[string]string) - var localVarPostBody interface{} - var localVarFileName string - var localVarFileBytes []byte - // authentication '(apikey)' required - // set key with prefix in header - localVarHeaderParams["X-Api-Key"] = a.Configuration.GetAPIKeyWithPrefix("X-Api-Key") - // add default headers if any - for key := range a.Configuration.DefaultHeader { - localVarHeaderParams[key] = a.Configuration.DefaultHeader[key] - } - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload = new(QuotaHistory) - localVarHttpResponse, err := a.Configuration.APIClient.CallAPI(localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - - var localVarURL, _ = url.Parse(localVarPath) - localVarURL.RawQuery = localVarQueryParams.Encode() - var localVarAPIResponse = &APIResponse{Operation: "QuotaHistoryRead", Method: localVarHttpMethod, RequestURL: localVarURL.String()} - if localVarHttpResponse != nil { - localVarAPIResponse.Response = localVarHttpResponse.RawResponse - localVarAPIResponse.Payload = localVarHttpResponse.Body() - } - - if err != nil { - return successPayload, localVarAPIResponse, err - } - err = json.Unmarshal(localVarHttpResponse.Body(), &successPayload) - return successPayload, localVarAPIResponse, err -} - -/** - * Open-source Quota history for a given namespace. - * Open-source Quota history for a given namespace. - * - * @param owner - * @return *QuotaHistory - */ -func (a QuotaApi) QuotaOssHistoryRead(owner string) (*QuotaHistory, *APIResponse, error) { - - var localVarHttpMethod = strings.ToUpper("Get") - // create path and map variables - localVarPath := a.Configuration.BasePath + "/quota/oss/history/{owner}/" - localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := make(map[string]string) - var localVarPostBody interface{} - var localVarFileName string - var localVarFileBytes []byte - // authentication '(apikey)' required - // set key with prefix in header - localVarHeaderParams["X-Api-Key"] = a.Configuration.GetAPIKeyWithPrefix("X-Api-Key") - // add default headers if any - for key := range a.Configuration.DefaultHeader { - localVarHeaderParams[key] = a.Configuration.DefaultHeader[key] - } - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload = new(QuotaHistory) - localVarHttpResponse, err := a.Configuration.APIClient.CallAPI(localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - - var localVarURL, _ = url.Parse(localVarPath) - localVarURL.RawQuery = localVarQueryParams.Encode() - var localVarAPIResponse = &APIResponse{Operation: "QuotaOssHistoryRead", Method: localVarHttpMethod, RequestURL: localVarURL.String()} - if localVarHttpResponse != nil { - localVarAPIResponse.Response = localVarHttpResponse.RawResponse - localVarAPIResponse.Payload = localVarHttpResponse.Body() - } - - if err != nil { - return successPayload, localVarAPIResponse, err - } - err = json.Unmarshal(localVarHttpResponse.Body(), &successPayload) - return successPayload, localVarAPIResponse, err -} - -/** - * Open-source Quota usage for a given namespace. - * Open-source Quota usage for a given namespace. - * - * @param owner - * @return *Quota - */ -func (a QuotaApi) QuotaOssRead(owner string) (*Quota, *APIResponse, error) { - - var localVarHttpMethod = strings.ToUpper("Get") - // create path and map variables - localVarPath := a.Configuration.BasePath + "/quota/oss/{owner}/" - localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := make(map[string]string) - var localVarPostBody interface{} - var localVarFileName string - var localVarFileBytes []byte - // authentication '(apikey)' required - // set key with prefix in header - localVarHeaderParams["X-Api-Key"] = a.Configuration.GetAPIKeyWithPrefix("X-Api-Key") - // add default headers if any - for key := range a.Configuration.DefaultHeader { - localVarHeaderParams[key] = a.Configuration.DefaultHeader[key] - } - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload = new(Quota) - localVarHttpResponse, err := a.Configuration.APIClient.CallAPI(localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - - var localVarURL, _ = url.Parse(localVarPath) - localVarURL.RawQuery = localVarQueryParams.Encode() - var localVarAPIResponse = &APIResponse{Operation: "QuotaOssRead", Method: localVarHttpMethod, RequestURL: localVarURL.String()} - if localVarHttpResponse != nil { - localVarAPIResponse.Response = localVarHttpResponse.RawResponse - localVarAPIResponse.Payload = localVarHttpResponse.Body() - } - - if err != nil { - return successPayload, localVarAPIResponse, err - } - err = json.Unmarshal(localVarHttpResponse.Body(), &successPayload) - return successPayload, localVarAPIResponse, err -} - -/** - * Quota usage for a given namespace. - * Quota usage for a given namespace. - * - * @param owner - * @return *Quota - */ -func (a QuotaApi) QuotaRead(owner string) (*Quota, *APIResponse, error) { - - var localVarHttpMethod = strings.ToUpper("Get") - // create path and map variables - localVarPath := a.Configuration.BasePath + "/quota/{owner}/" - localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := make(map[string]string) - var localVarPostBody interface{} - var localVarFileName string - var localVarFileBytes []byte - // authentication '(apikey)' required - // set key with prefix in header - localVarHeaderParams["X-Api-Key"] = a.Configuration.GetAPIKeyWithPrefix("X-Api-Key") - // add default headers if any - for key := range a.Configuration.DefaultHeader { - localVarHeaderParams[key] = a.Configuration.DefaultHeader[key] - } - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload = new(Quota) - localVarHttpResponse, err := a.Configuration.APIClient.CallAPI(localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - - var localVarURL, _ = url.Parse(localVarPath) - localVarURL.RawQuery = localVarQueryParams.Encode() - var localVarAPIResponse = &APIResponse{Operation: "QuotaRead", Method: localVarHttpMethod, RequestURL: localVarURL.String()} - if localVarHttpResponse != nil { - localVarAPIResponse.Response = localVarHttpResponse.RawResponse - localVarAPIResponse.Payload = localVarHttpResponse.Body() - } - - if err != nil { - return successPayload, localVarAPIResponse, err - } - err = json.Unmarshal(localVarHttpResponse.Body(), &successPayload) - return successPayload, localVarAPIResponse, err -} - diff --git a/bindings/go/src/rates_api.go b/bindings/go/src/rates_api.go deleted file mode 100644 index 6d63d110..00000000 --- a/bindings/go/src/rates_api.go +++ /dev/null @@ -1,99 +0,0 @@ -/* - * Cloudsmith API - * - * The API to the Cloudsmith Service - * - * OpenAPI spec version: v1 - * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -package cloudsmith_api - -import ( - "net/url" - "strings" - "encoding/json" -) - -type RatesApi struct { - Configuration *Configuration -} - -func NewRatesApi() *RatesApi { - configuration := NewConfiguration() - return &RatesApi{ - Configuration: configuration, - } -} - -func NewRatesApiWithBasePath(basePath string) *RatesApi { - configuration := NewConfiguration() - configuration.BasePath = basePath - - return &RatesApi{ - Configuration: configuration, - } -} - -/** - * Endpoint to check rate limits for current user. - * Endpoint to check rate limits for current user. - * - * @return *ResourcesRateCheck - */ -func (a RatesApi) RatesLimitsList() (*ResourcesRateCheck, *APIResponse, error) { - - var localVarHttpMethod = strings.ToUpper("Get") - // create path and map variables - localVarPath := a.Configuration.BasePath + "/rates/limits/" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := make(map[string]string) - var localVarPostBody interface{} - var localVarFileName string - var localVarFileBytes []byte - // authentication '(apikey)' required - // set key with prefix in header - localVarHeaderParams["X-Api-Key"] = a.Configuration.GetAPIKeyWithPrefix("X-Api-Key") - // add default headers if any - for key := range a.Configuration.DefaultHeader { - localVarHeaderParams[key] = a.Configuration.DefaultHeader[key] - } - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload = new(ResourcesRateCheck) - localVarHttpResponse, err := a.Configuration.APIClient.CallAPI(localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - - var localVarURL, _ = url.Parse(localVarPath) - localVarURL.RawQuery = localVarQueryParams.Encode() - var localVarAPIResponse = &APIResponse{Operation: "RatesLimitsList", Method: localVarHttpMethod, RequestURL: localVarURL.String()} - if localVarHttpResponse != nil { - localVarAPIResponse.Response = localVarHttpResponse.RawResponse - localVarAPIResponse.Payload = localVarHttpResponse.Body() - } - - if err != nil { - return successPayload, localVarAPIResponse, err - } - err = json.Unmarshal(localVarHttpResponse.Body(), &successPayload) - return successPayload, localVarAPIResponse, err -} - diff --git a/bindings/go/src/repos_api.go b/bindings/go/src/repos_api.go deleted file mode 100644 index 82d75883..00000000 --- a/bindings/go/src/repos_api.go +++ /dev/null @@ -1,433 +0,0 @@ -/* - * Cloudsmith API - * - * The API to the Cloudsmith Service - * - * OpenAPI spec version: v1 - * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -package cloudsmith_api - -import ( - "net/url" - "strings" - "encoding/json" - "fmt" -) - -type ReposApi struct { - Configuration *Configuration -} - -func NewReposApi() *ReposApi { - configuration := NewConfiguration() - return &ReposApi{ - Configuration: configuration, - } -} - -func NewReposApiWithBasePath(basePath string) *ReposApi { - configuration := NewConfiguration() - configuration.BasePath = basePath - - return &ReposApi{ - Configuration: configuration, - } -} - -/** - * Get a list of all repositories associated with current user. - * Get a list of all repositories associated with current user. - * - * @param page A page number within the paginated result set. - * @param pageSize Number of results to return per page. - * @return []Repository - */ -func (a ReposApi) ReposAllList(page int32, pageSize int32) ([]Repository, *APIResponse, error) { - - var localVarHttpMethod = strings.ToUpper("Get") - // create path and map variables - localVarPath := a.Configuration.BasePath + "/repos/" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := make(map[string]string) - var localVarPostBody interface{} - var localVarFileName string - var localVarFileBytes []byte - // authentication '(apikey)' required - // set key with prefix in header - localVarHeaderParams["X-Api-Key"] = a.Configuration.GetAPIKeyWithPrefix("X-Api-Key") - // add default headers if any - for key := range a.Configuration.DefaultHeader { - localVarHeaderParams[key] = a.Configuration.DefaultHeader[key] - } - localVarQueryParams.Add("page", a.Configuration.APIClient.ParameterToString(page, "")) - localVarQueryParams.Add("page_size", a.Configuration.APIClient.ParameterToString(pageSize, "")) - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload = new([]Repository) - localVarHttpResponse, err := a.Configuration.APIClient.CallAPI(localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - - var localVarURL, _ = url.Parse(localVarPath) - localVarURL.RawQuery = localVarQueryParams.Encode() - var localVarAPIResponse = &APIResponse{Operation: "ReposAllList", Method: localVarHttpMethod, RequestURL: localVarURL.String()} - if localVarHttpResponse != nil { - localVarAPIResponse.Response = localVarHttpResponse.RawResponse - localVarAPIResponse.Payload = localVarHttpResponse.Body() - } - - if err != nil { - return *successPayload, localVarAPIResponse, err - } - err = json.Unmarshal(localVarHttpResponse.Body(), &successPayload) - return *successPayload, localVarAPIResponse, err -} - -/** - * Create a new repository in a given namespace. - * Create a new repository in a given namespace. - * - * @param owner - * @param data - * @return *Repository - */ -func (a ReposApi) ReposCreate(owner string, data ReposCreate) (*Repository, *APIResponse, error) { - - var localVarHttpMethod = strings.ToUpper("Post") - // create path and map variables - localVarPath := a.Configuration.BasePath + "/repos/{owner}/" - localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := make(map[string]string) - var localVarPostBody interface{} - var localVarFileName string - var localVarFileBytes []byte - // authentication '(apikey)' required - // set key with prefix in header - localVarHeaderParams["X-Api-Key"] = a.Configuration.GetAPIKeyWithPrefix("X-Api-Key") - // add default headers if any - for key := range a.Configuration.DefaultHeader { - localVarHeaderParams[key] = a.Configuration.DefaultHeader[key] - } - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - // body params - localVarPostBody = &data - var successPayload = new(Repository) - localVarHttpResponse, err := a.Configuration.APIClient.CallAPI(localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - - var localVarURL, _ = url.Parse(localVarPath) - localVarURL.RawQuery = localVarQueryParams.Encode() - var localVarAPIResponse = &APIResponse{Operation: "ReposCreate", Method: localVarHttpMethod, RequestURL: localVarURL.String()} - if localVarHttpResponse != nil { - localVarAPIResponse.Response = localVarHttpResponse.RawResponse - localVarAPIResponse.Payload = localVarHttpResponse.Body() - } - - if err != nil { - return successPayload, localVarAPIResponse, err - } - err = json.Unmarshal(localVarHttpResponse.Body(), &successPayload) - return successPayload, localVarAPIResponse, err -} - -/** - * Delete a repository in a given namespace. - * Delete a repository in a given namespace. - * - * @param owner - * @param identifier - * @return void - */ -func (a ReposApi) ReposDelete(owner string, identifier string) (*APIResponse, error) { - - var localVarHttpMethod = strings.ToUpper("Delete") - // create path and map variables - localVarPath := a.Configuration.BasePath + "/repos/{owner}/{identifier}/" - localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) - localVarPath = strings.Replace(localVarPath, "{"+"identifier"+"}", fmt.Sprintf("%v", identifier), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := make(map[string]string) - var localVarPostBody interface{} - var localVarFileName string - var localVarFileBytes []byte - // authentication '(apikey)' required - // set key with prefix in header - localVarHeaderParams["X-Api-Key"] = a.Configuration.GetAPIKeyWithPrefix("X-Api-Key") - // add default headers if any - for key := range a.Configuration.DefaultHeader { - localVarHeaderParams[key] = a.Configuration.DefaultHeader[key] - } - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - localVarHttpResponse, err := a.Configuration.APIClient.CallAPI(localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - - var localVarURL, _ = url.Parse(localVarPath) - localVarURL.RawQuery = localVarQueryParams.Encode() - var localVarAPIResponse = &APIResponse{Operation: "ReposDelete", Method: localVarHttpMethod, RequestURL: localVarURL.String()} - if localVarHttpResponse != nil { - localVarAPIResponse.Response = localVarHttpResponse.RawResponse - localVarAPIResponse.Payload = localVarHttpResponse.Body() - } - - if err != nil { - return localVarAPIResponse, err - } - return localVarAPIResponse, err -} - -/** - * Get a list of all repositories within a namespace. - * Get a list of all repositories within a namespace. - * - * @param owner - * @param page A page number within the paginated result set. - * @param pageSize Number of results to return per page. - * @return []Repository - */ -func (a ReposApi) ReposList(owner string, page int32, pageSize int32) ([]Repository, *APIResponse, error) { - - var localVarHttpMethod = strings.ToUpper("Get") - // create path and map variables - localVarPath := a.Configuration.BasePath + "/repos/{owner}/" - localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := make(map[string]string) - var localVarPostBody interface{} - var localVarFileName string - var localVarFileBytes []byte - // authentication '(apikey)' required - // set key with prefix in header - localVarHeaderParams["X-Api-Key"] = a.Configuration.GetAPIKeyWithPrefix("X-Api-Key") - // add default headers if any - for key := range a.Configuration.DefaultHeader { - localVarHeaderParams[key] = a.Configuration.DefaultHeader[key] - } - localVarQueryParams.Add("page", a.Configuration.APIClient.ParameterToString(page, "")) - localVarQueryParams.Add("page_size", a.Configuration.APIClient.ParameterToString(pageSize, "")) - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload = new([]Repository) - localVarHttpResponse, err := a.Configuration.APIClient.CallAPI(localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - - var localVarURL, _ = url.Parse(localVarPath) - localVarURL.RawQuery = localVarQueryParams.Encode() - var localVarAPIResponse = &APIResponse{Operation: "ReposList", Method: localVarHttpMethod, RequestURL: localVarURL.String()} - if localVarHttpResponse != nil { - localVarAPIResponse.Response = localVarHttpResponse.RawResponse - localVarAPIResponse.Payload = localVarHttpResponse.Body() - } - - if err != nil { - return *successPayload, localVarAPIResponse, err - } - err = json.Unmarshal(localVarHttpResponse.Body(), &successPayload) - return *successPayload, localVarAPIResponse, err -} - -/** - * Update details about a repository in a given namespace. - * Update details about a repository in a given namespace. - * - * @param owner - * @param identifier - * @param data - * @return *Repository - */ -func (a ReposApi) ReposPartialUpdate(owner string, identifier string, data ReposPartialUpdate) (*Repository, *APIResponse, error) { - - var localVarHttpMethod = strings.ToUpper("Patch") - // create path and map variables - localVarPath := a.Configuration.BasePath + "/repos/{owner}/{identifier}/" - localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) - localVarPath = strings.Replace(localVarPath, "{"+"identifier"+"}", fmt.Sprintf("%v", identifier), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := make(map[string]string) - var localVarPostBody interface{} - var localVarFileName string - var localVarFileBytes []byte - // authentication '(apikey)' required - // set key with prefix in header - localVarHeaderParams["X-Api-Key"] = a.Configuration.GetAPIKeyWithPrefix("X-Api-Key") - // add default headers if any - for key := range a.Configuration.DefaultHeader { - localVarHeaderParams[key] = a.Configuration.DefaultHeader[key] - } - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - // body params - localVarPostBody = &data - var successPayload = new(Repository) - localVarHttpResponse, err := a.Configuration.APIClient.CallAPI(localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - - var localVarURL, _ = url.Parse(localVarPath) - localVarURL.RawQuery = localVarQueryParams.Encode() - var localVarAPIResponse = &APIResponse{Operation: "ReposPartialUpdate", Method: localVarHttpMethod, RequestURL: localVarURL.String()} - if localVarHttpResponse != nil { - localVarAPIResponse.Response = localVarHttpResponse.RawResponse - localVarAPIResponse.Payload = localVarHttpResponse.Body() - } - - if err != nil { - return successPayload, localVarAPIResponse, err - } - err = json.Unmarshal(localVarHttpResponse.Body(), &successPayload) - return successPayload, localVarAPIResponse, err -} - -/** - * Get a specific repository. - * Get a specific repository. - * - * @param owner - * @param identifier - * @return *Repository - */ -func (a ReposApi) ReposRead(owner string, identifier string) (*Repository, *APIResponse, error) { - - var localVarHttpMethod = strings.ToUpper("Get") - // create path and map variables - localVarPath := a.Configuration.BasePath + "/repos/{owner}/{identifier}/" - localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) - localVarPath = strings.Replace(localVarPath, "{"+"identifier"+"}", fmt.Sprintf("%v", identifier), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := make(map[string]string) - var localVarPostBody interface{} - var localVarFileName string - var localVarFileBytes []byte - // authentication '(apikey)' required - // set key with prefix in header - localVarHeaderParams["X-Api-Key"] = a.Configuration.GetAPIKeyWithPrefix("X-Api-Key") - // add default headers if any - for key := range a.Configuration.DefaultHeader { - localVarHeaderParams[key] = a.Configuration.DefaultHeader[key] - } - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload = new(Repository) - localVarHttpResponse, err := a.Configuration.APIClient.CallAPI(localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - - var localVarURL, _ = url.Parse(localVarPath) - localVarURL.RawQuery = localVarQueryParams.Encode() - var localVarAPIResponse = &APIResponse{Operation: "ReposRead", Method: localVarHttpMethod, RequestURL: localVarURL.String()} - if localVarHttpResponse != nil { - localVarAPIResponse.Response = localVarHttpResponse.RawResponse - localVarAPIResponse.Payload = localVarHttpResponse.Body() - } - - if err != nil { - return successPayload, localVarAPIResponse, err - } - err = json.Unmarshal(localVarHttpResponse.Body(), &successPayload) - return successPayload, localVarAPIResponse, err -} - diff --git a/bindings/go/src/api_response.go b/bindings/go/src/response.go similarity index 76% rename from bindings/go/src/api_response.go rename to bindings/go/src/response.go index 9e80a548..c23a0b9d 100644 --- a/bindings/go/src/api_response.go +++ b/bindings/go/src/response.go @@ -1,11 +1,11 @@ -/* +/* * Cloudsmith API * * The API to the Cloudsmith Service * - * OpenAPI spec version: v1 + * API version: v1 * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package cloudsmith_api @@ -16,15 +16,15 @@ import ( type APIResponse struct { *http.Response `json:"-"` - Message string `json:"message,omitempty"` + Message string `json:"message,omitempty"` // Operation is the name of the swagger operation. - Operation string `json:"operation,omitempty"` + Operation string `json:"operation,omitempty"` // RequestURL is the request URL. This value is always available, even if the // embedded *http.Response is nil. - RequestURL string `json:"url,omitempty"` + RequestURL string `json:"url,omitempty"` // Method is the HTTP method used for the request. This value is always // available, even if the embedded *http.Response is nil. - Method string `json:"method,omitempty"` + Method string `json:"method,omitempty"` // Payload holds the contents of the response body (which may be nil or empty). // This is provided here as the raw response.Body() reader will have already // been drained. diff --git a/bindings/go/src/status_api.go b/bindings/go/src/status_api.go deleted file mode 100644 index 2fc1331b..00000000 --- a/bindings/go/src/status_api.go +++ /dev/null @@ -1,96 +0,0 @@ -/* - * Cloudsmith API - * - * The API to the Cloudsmith Service - * - * OpenAPI spec version: v1 - * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -package cloudsmith_api - -import ( - "net/url" - "strings" - "encoding/json" -) - -type StatusApi struct { - Configuration *Configuration -} - -func NewStatusApi() *StatusApi { - configuration := NewConfiguration() - return &StatusApi{ - Configuration: configuration, - } -} - -func NewStatusApiWithBasePath(basePath string) *StatusApi { - configuration := NewConfiguration() - configuration.BasePath = basePath - - return &StatusApi{ - Configuration: configuration, - } -} - -/** - * Endpoint to check basic API connectivity. - * Endpoint to check basic API connectivity. - * - * @return *StatusBasic - */ -func (a StatusApi) StatusCheckBasic() (*StatusBasic, *APIResponse, error) { - - var localVarHttpMethod = strings.ToUpper("Get") - // create path and map variables - localVarPath := a.Configuration.BasePath + "/status/check/basic/" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := make(map[string]string) - var localVarPostBody interface{} - var localVarFileName string - var localVarFileBytes []byte - // add default headers if any - for key := range a.Configuration.DefaultHeader { - localVarHeaderParams[key] = a.Configuration.DefaultHeader[key] - } - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload = new(StatusBasic) - localVarHttpResponse, err := a.Configuration.APIClient.CallAPI(localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - - var localVarURL, _ = url.Parse(localVarPath) - localVarURL.RawQuery = localVarQueryParams.Encode() - var localVarAPIResponse = &APIResponse{Operation: "StatusCheckBasic", Method: localVarHttpMethod, RequestURL: localVarURL.String()} - if localVarHttpResponse != nil { - localVarAPIResponse.Response = localVarHttpResponse.RawResponse - localVarAPIResponse.Payload = localVarHttpResponse.Body() - } - - if err != nil { - return successPayload, localVarAPIResponse, err - } - err = json.Unmarshal(localVarHttpResponse.Body(), &successPayload) - return successPayload, localVarAPIResponse, err -} - diff --git a/bindings/go/src/storageregions_api.go b/bindings/go/src/storageregions_api.go deleted file mode 100644 index 8d0d48e5..00000000 --- a/bindings/go/src/storageregions_api.go +++ /dev/null @@ -1,163 +0,0 @@ -/* - * Cloudsmith API - * - * The API to the Cloudsmith Service - * - * OpenAPI spec version: v1 - * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -package cloudsmith_api - -import ( - "net/url" - "strings" - "encoding/json" - "fmt" -) - -type StorageregionsApi struct { - Configuration *Configuration -} - -func NewStorageregionsApi() *StorageregionsApi { - configuration := NewConfiguration() - return &StorageregionsApi{ - Configuration: configuration, - } -} - -func NewStorageregionsApiWithBasePath(basePath string) *StorageregionsApi { - configuration := NewConfiguration() - configuration.BasePath = basePath - - return &StorageregionsApi{ - Configuration: configuration, - } -} - -/** - * Get a list of all available storage regions. - * Get a list of all available storage regions. - * - * @return []StorageRegion - */ -func (a StorageregionsApi) StorageRegionsList() ([]StorageRegion, *APIResponse, error) { - - var localVarHttpMethod = strings.ToUpper("Get") - // create path and map variables - localVarPath := a.Configuration.BasePath + "/storage-regions/" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := make(map[string]string) - var localVarPostBody interface{} - var localVarFileName string - var localVarFileBytes []byte - // authentication '(apikey)' required - // set key with prefix in header - localVarHeaderParams["X-Api-Key"] = a.Configuration.GetAPIKeyWithPrefix("X-Api-Key") - // add default headers if any - for key := range a.Configuration.DefaultHeader { - localVarHeaderParams[key] = a.Configuration.DefaultHeader[key] - } - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload = new([]StorageRegion) - localVarHttpResponse, err := a.Configuration.APIClient.CallAPI(localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - - var localVarURL, _ = url.Parse(localVarPath) - localVarURL.RawQuery = localVarQueryParams.Encode() - var localVarAPIResponse = &APIResponse{Operation: "StorageRegionsList", Method: localVarHttpMethod, RequestURL: localVarURL.String()} - if localVarHttpResponse != nil { - localVarAPIResponse.Response = localVarHttpResponse.RawResponse - localVarAPIResponse.Payload = localVarHttpResponse.Body() - } - - if err != nil { - return *successPayload, localVarAPIResponse, err - } - err = json.Unmarshal(localVarHttpResponse.Body(), &successPayload) - return *successPayload, localVarAPIResponse, err -} - -/** - * Get a specific storage region. - * Get a specific storage region. - * - * @param slug - * @return *StorageRegion - */ -func (a StorageregionsApi) StorageRegionsRead(slug string) (*StorageRegion, *APIResponse, error) { - - var localVarHttpMethod = strings.ToUpper("Get") - // create path and map variables - localVarPath := a.Configuration.BasePath + "/storage-regions/{slug}/" - localVarPath = strings.Replace(localVarPath, "{"+"slug"+"}", fmt.Sprintf("%v", slug), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := make(map[string]string) - var localVarPostBody interface{} - var localVarFileName string - var localVarFileBytes []byte - // authentication '(apikey)' required - // set key with prefix in header - localVarHeaderParams["X-Api-Key"] = a.Configuration.GetAPIKeyWithPrefix("X-Api-Key") - // add default headers if any - for key := range a.Configuration.DefaultHeader { - localVarHeaderParams[key] = a.Configuration.DefaultHeader[key] - } - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload = new(StorageRegion) - localVarHttpResponse, err := a.Configuration.APIClient.CallAPI(localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - - var localVarURL, _ = url.Parse(localVarPath) - localVarURL.RawQuery = localVarQueryParams.Encode() - var localVarAPIResponse = &APIResponse{Operation: "StorageRegionsRead", Method: localVarHttpMethod, RequestURL: localVarURL.String()} - if localVarHttpResponse != nil { - localVarAPIResponse.Response = localVarHttpResponse.RawResponse - localVarAPIResponse.Payload = localVarHttpResponse.Body() - } - - if err != nil { - return successPayload, localVarAPIResponse, err - } - err = json.Unmarshal(localVarHttpResponse.Body(), &successPayload) - return successPayload, localVarAPIResponse, err -} - diff --git a/bindings/go/src/user_api.go b/bindings/go/src/user_api.go deleted file mode 100644 index 2e953943..00000000 --- a/bindings/go/src/user_api.go +++ /dev/null @@ -1,163 +0,0 @@ -/* - * Cloudsmith API - * - * The API to the Cloudsmith Service - * - * OpenAPI spec version: v1 - * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -package cloudsmith_api - -import ( - "net/url" - "strings" - "encoding/json" -) - -type UserApi struct { - Configuration *Configuration -} - -func NewUserApi() *UserApi { - configuration := NewConfiguration() - return &UserApi{ - Configuration: configuration, - } -} - -func NewUserApiWithBasePath(basePath string) *UserApi { - configuration := NewConfiguration() - configuration.BasePath = basePath - - return &UserApi{ - Configuration: configuration, - } -} - -/** - * Provide a brief for the current user (if any). - * Provide a brief for the current user (if any). - * - * @return *UserBrief - */ -func (a UserApi) UserSelf() (*UserBrief, *APIResponse, error) { - - var localVarHttpMethod = strings.ToUpper("Get") - // create path and map variables - localVarPath := a.Configuration.BasePath + "/user/self/" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := make(map[string]string) - var localVarPostBody interface{} - var localVarFileName string - var localVarFileBytes []byte - // authentication '(apikey)' required - // set key with prefix in header - localVarHeaderParams["X-Api-Key"] = a.Configuration.GetAPIKeyWithPrefix("X-Api-Key") - // add default headers if any - for key := range a.Configuration.DefaultHeader { - localVarHeaderParams[key] = a.Configuration.DefaultHeader[key] - } - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload = new(UserBrief) - localVarHttpResponse, err := a.Configuration.APIClient.CallAPI(localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - - var localVarURL, _ = url.Parse(localVarPath) - localVarURL.RawQuery = localVarQueryParams.Encode() - var localVarAPIResponse = &APIResponse{Operation: "UserSelf", Method: localVarHttpMethod, RequestURL: localVarURL.String()} - if localVarHttpResponse != nil { - localVarAPIResponse.Response = localVarHttpResponse.RawResponse - localVarAPIResponse.Payload = localVarHttpResponse.Body() - } - - if err != nil { - return successPayload, localVarAPIResponse, err - } - err = json.Unmarshal(localVarHttpResponse.Body(), &successPayload) - return successPayload, localVarAPIResponse, err -} - -/** - * Retrieve the API key/token for the authenticated user. - * Retrieve the API key/token for the authenticated user. - * - * @param data - * @return *UserAuthToken - */ -func (a UserApi) UserTokenCreate(data UserTokenCreate) (*UserAuthToken, *APIResponse, error) { - - var localVarHttpMethod = strings.ToUpper("Post") - // create path and map variables - localVarPath := a.Configuration.BasePath + "/user/token/" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := make(map[string]string) - var localVarPostBody interface{} - var localVarFileName string - var localVarFileBytes []byte - // authentication '(apikey)' required - // set key with prefix in header - localVarHeaderParams["X-Api-Key"] = a.Configuration.GetAPIKeyWithPrefix("X-Api-Key") - // add default headers if any - for key := range a.Configuration.DefaultHeader { - localVarHeaderParams[key] = a.Configuration.DefaultHeader[key] - } - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - // body params - localVarPostBody = &data - var successPayload = new(UserAuthToken) - localVarHttpResponse, err := a.Configuration.APIClient.CallAPI(localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - - var localVarURL, _ = url.Parse(localVarPath) - localVarURL.RawQuery = localVarQueryParams.Encode() - var localVarAPIResponse = &APIResponse{Operation: "UserTokenCreate", Method: localVarHttpMethod, RequestURL: localVarURL.String()} - if localVarHttpResponse != nil { - localVarAPIResponse.Response = localVarHttpResponse.RawResponse - localVarAPIResponse.Payload = localVarHttpResponse.Body() - } - - if err != nil { - return successPayload, localVarAPIResponse, err - } - err = json.Unmarshal(localVarHttpResponse.Body(), &successPayload) - return successPayload, localVarAPIResponse, err -} - diff --git a/bindings/go/src/users_api.go b/bindings/go/src/users_api.go deleted file mode 100644 index 78d70ebb..00000000 --- a/bindings/go/src/users_api.go +++ /dev/null @@ -1,102 +0,0 @@ -/* - * Cloudsmith API - * - * The API to the Cloudsmith Service - * - * OpenAPI spec version: v1 - * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -package cloudsmith_api - -import ( - "net/url" - "strings" - "encoding/json" - "fmt" -) - -type UsersApi struct { - Configuration *Configuration -} - -func NewUsersApi() *UsersApi { - configuration := NewConfiguration() - return &UsersApi{ - Configuration: configuration, - } -} - -func NewUsersApiWithBasePath(basePath string) *UsersApi { - configuration := NewConfiguration() - configuration.BasePath = basePath - - return &UsersApi{ - Configuration: configuration, - } -} - -/** - * Provide a brief for the specified user (if any). - * Provide a brief for the specified user (if any). - * - * @param slug - * @return *UserProfile - */ -func (a UsersApi) UsersProfileRead(slug string) (*UserProfile, *APIResponse, error) { - - var localVarHttpMethod = strings.ToUpper("Get") - // create path and map variables - localVarPath := a.Configuration.BasePath + "/users/profile/{slug}/" - localVarPath = strings.Replace(localVarPath, "{"+"slug"+"}", fmt.Sprintf("%v", slug), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := make(map[string]string) - var localVarPostBody interface{} - var localVarFileName string - var localVarFileBytes []byte - // authentication '(apikey)' required - // set key with prefix in header - localVarHeaderParams["X-Api-Key"] = a.Configuration.GetAPIKeyWithPrefix("X-Api-Key") - // add default headers if any - for key := range a.Configuration.DefaultHeader { - localVarHeaderParams[key] = a.Configuration.DefaultHeader[key] - } - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload = new(UserProfile) - localVarHttpResponse, err := a.Configuration.APIClient.CallAPI(localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - - var localVarURL, _ = url.Parse(localVarPath) - localVarURL.RawQuery = localVarQueryParams.Encode() - var localVarAPIResponse = &APIResponse{Operation: "UsersProfileRead", Method: localVarHttpMethod, RequestURL: localVarURL.String()} - if localVarHttpResponse != nil { - localVarAPIResponse.Response = localVarHttpResponse.RawResponse - localVarAPIResponse.Payload = localVarHttpResponse.Body() - } - - if err != nil { - return successPayload, localVarAPIResponse, err - } - err = json.Unmarshal(localVarHttpResponse.Body(), &successPayload) - return successPayload, localVarAPIResponse, err -} - diff --git a/bindings/go/src/vulnerabilities_api.go b/bindings/go/src/vulnerabilities_api.go deleted file mode 100644 index 8d8139fc..00000000 --- a/bindings/go/src/vulnerabilities_api.go +++ /dev/null @@ -1,315 +0,0 @@ -/* - * Cloudsmith API - * - * The API to the Cloudsmith Service - * - * OpenAPI spec version: v1 - * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -package cloudsmith_api - -import ( - "net/url" - "strings" - "encoding/json" - "fmt" -) - -type VulnerabilitiesApi struct { - Configuration *Configuration -} - -func NewVulnerabilitiesApi() *VulnerabilitiesApi { - configuration := NewConfiguration() - return &VulnerabilitiesApi{ - Configuration: configuration, - } -} - -func NewVulnerabilitiesApiWithBasePath(basePath string) *VulnerabilitiesApi { - configuration := NewConfiguration() - configuration.BasePath = basePath - - return &VulnerabilitiesApi{ - Configuration: configuration, - } -} - -/** - * Lists scan results for a specific namespace. - * Lists scan results for a specific namespace. - * - * @param owner - * @param page A page number within the paginated result set. - * @param pageSize Number of results to return per page. - * @return []VulnerabilityScanResultsList - */ -func (a VulnerabilitiesApi) VulnerabilitiesList(owner string, page int32, pageSize int32) ([]VulnerabilityScanResultsList, *APIResponse, error) { - - var localVarHttpMethod = strings.ToUpper("Get") - // create path and map variables - localVarPath := a.Configuration.BasePath + "/vulnerabilities/{owner}/" - localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := make(map[string]string) - var localVarPostBody interface{} - var localVarFileName string - var localVarFileBytes []byte - // authentication '(apikey)' required - // set key with prefix in header - localVarHeaderParams["X-Api-Key"] = a.Configuration.GetAPIKeyWithPrefix("X-Api-Key") - // add default headers if any - for key := range a.Configuration.DefaultHeader { - localVarHeaderParams[key] = a.Configuration.DefaultHeader[key] - } - localVarQueryParams.Add("page", a.Configuration.APIClient.ParameterToString(page, "")) - localVarQueryParams.Add("page_size", a.Configuration.APIClient.ParameterToString(pageSize, "")) - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload = new([]VulnerabilityScanResultsList) - localVarHttpResponse, err := a.Configuration.APIClient.CallAPI(localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - - var localVarURL, _ = url.Parse(localVarPath) - localVarURL.RawQuery = localVarQueryParams.Encode() - var localVarAPIResponse = &APIResponse{Operation: "VulnerabilitiesList", Method: localVarHttpMethod, RequestURL: localVarURL.String()} - if localVarHttpResponse != nil { - localVarAPIResponse.Response = localVarHttpResponse.RawResponse - localVarAPIResponse.Payload = localVarHttpResponse.Body() - } - - if err != nil { - return *successPayload, localVarAPIResponse, err - } - err = json.Unmarshal(localVarHttpResponse.Body(), &successPayload) - return *successPayload, localVarAPIResponse, err -} - -/** - * Lists scan results for a specific repository. - * Lists scan results for a specific repository. - * - * @param owner - * @param repo - * @param page A page number within the paginated result set. - * @param pageSize Number of results to return per page. - * @return []VulnerabilityScanResultsList - */ -func (a VulnerabilitiesApi) VulnerabilitiesList0(owner string, repo string, page int32, pageSize int32) ([]VulnerabilityScanResultsList, *APIResponse, error) { - - var localVarHttpMethod = strings.ToUpper("Get") - // create path and map variables - localVarPath := a.Configuration.BasePath + "/vulnerabilities/{owner}/{repo}/" - localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) - localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := make(map[string]string) - var localVarPostBody interface{} - var localVarFileName string - var localVarFileBytes []byte - // authentication '(apikey)' required - // set key with prefix in header - localVarHeaderParams["X-Api-Key"] = a.Configuration.GetAPIKeyWithPrefix("X-Api-Key") - // add default headers if any - for key := range a.Configuration.DefaultHeader { - localVarHeaderParams[key] = a.Configuration.DefaultHeader[key] - } - localVarQueryParams.Add("page", a.Configuration.APIClient.ParameterToString(page, "")) - localVarQueryParams.Add("page_size", a.Configuration.APIClient.ParameterToString(pageSize, "")) - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload = new([]VulnerabilityScanResultsList) - localVarHttpResponse, err := a.Configuration.APIClient.CallAPI(localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - - var localVarURL, _ = url.Parse(localVarPath) - localVarURL.RawQuery = localVarQueryParams.Encode() - var localVarAPIResponse = &APIResponse{Operation: "VulnerabilitiesList0", Method: localVarHttpMethod, RequestURL: localVarURL.String()} - if localVarHttpResponse != nil { - localVarAPIResponse.Response = localVarHttpResponse.RawResponse - localVarAPIResponse.Payload = localVarHttpResponse.Body() - } - - if err != nil { - return *successPayload, localVarAPIResponse, err - } - err = json.Unmarshal(localVarHttpResponse.Body(), &successPayload) - return *successPayload, localVarAPIResponse, err -} - -/** - * Lists scan results for a specific package. - * Lists scan results for a specific package. - * - * @param owner - * @param repo - * @param package_ - * @param page A page number within the paginated result set. - * @param pageSize Number of results to return per page. - * @return []VulnerabilityScanResultsList - */ -func (a VulnerabilitiesApi) VulnerabilitiesList1(owner string, repo string, package_ string, page int32, pageSize int32) ([]VulnerabilityScanResultsList, *APIResponse, error) { - - var localVarHttpMethod = strings.ToUpper("Get") - // create path and map variables - localVarPath := a.Configuration.BasePath + "/vulnerabilities/{owner}/{repo}/{package}/" - localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) - localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) - localVarPath = strings.Replace(localVarPath, "{"+"package"+"}", fmt.Sprintf("%v", package_), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := make(map[string]string) - var localVarPostBody interface{} - var localVarFileName string - var localVarFileBytes []byte - // authentication '(apikey)' required - // set key with prefix in header - localVarHeaderParams["X-Api-Key"] = a.Configuration.GetAPIKeyWithPrefix("X-Api-Key") - // add default headers if any - for key := range a.Configuration.DefaultHeader { - localVarHeaderParams[key] = a.Configuration.DefaultHeader[key] - } - localVarQueryParams.Add("page", a.Configuration.APIClient.ParameterToString(page, "")) - localVarQueryParams.Add("page_size", a.Configuration.APIClient.ParameterToString(pageSize, "")) - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload = new([]VulnerabilityScanResultsList) - localVarHttpResponse, err := a.Configuration.APIClient.CallAPI(localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - - var localVarURL, _ = url.Parse(localVarPath) - localVarURL.RawQuery = localVarQueryParams.Encode() - var localVarAPIResponse = &APIResponse{Operation: "VulnerabilitiesList1", Method: localVarHttpMethod, RequestURL: localVarURL.String()} - if localVarHttpResponse != nil { - localVarAPIResponse.Response = localVarHttpResponse.RawResponse - localVarAPIResponse.Payload = localVarHttpResponse.Body() - } - - if err != nil { - return *successPayload, localVarAPIResponse, err - } - err = json.Unmarshal(localVarHttpResponse.Body(), &successPayload) - return *successPayload, localVarAPIResponse, err -} - -/** - * Returns a Scan Result. - * Returns a Scan Result. - * - * @param owner - * @param repo - * @param package_ - * @param scanId - * @return *VulnerabilityScanResults - */ -func (a VulnerabilitiesApi) VulnerabilitiesRead(owner string, repo string, package_ string, scanId string) (*VulnerabilityScanResults, *APIResponse, error) { - - var localVarHttpMethod = strings.ToUpper("Get") - // create path and map variables - localVarPath := a.Configuration.BasePath + "/vulnerabilities/{owner}/{repo}/{package}/{scan_id}/" - localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) - localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) - localVarPath = strings.Replace(localVarPath, "{"+"package"+"}", fmt.Sprintf("%v", package_), -1) - localVarPath = strings.Replace(localVarPath, "{"+"scan_id"+"}", fmt.Sprintf("%v", scanId), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := make(map[string]string) - var localVarPostBody interface{} - var localVarFileName string - var localVarFileBytes []byte - // authentication '(apikey)' required - // set key with prefix in header - localVarHeaderParams["X-Api-Key"] = a.Configuration.GetAPIKeyWithPrefix("X-Api-Key") - // add default headers if any - for key := range a.Configuration.DefaultHeader { - localVarHeaderParams[key] = a.Configuration.DefaultHeader[key] - } - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload = new(VulnerabilityScanResults) - localVarHttpResponse, err := a.Configuration.APIClient.CallAPI(localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - - var localVarURL, _ = url.Parse(localVarPath) - localVarURL.RawQuery = localVarQueryParams.Encode() - var localVarAPIResponse = &APIResponse{Operation: "VulnerabilitiesRead", Method: localVarHttpMethod, RequestURL: localVarURL.String()} - if localVarHttpResponse != nil { - localVarAPIResponse.Response = localVarHttpResponse.RawResponse - localVarAPIResponse.Payload = localVarHttpResponse.Body() - } - - if err != nil { - return successPayload, localVarAPIResponse, err - } - err = json.Unmarshal(localVarHttpResponse.Body(), &successPayload) - return successPayload, localVarAPIResponse, err -} - diff --git a/bindings/go/src/webhooks_api.go b/bindings/go/src/webhooks_api.go deleted file mode 100644 index d03ac2b4..00000000 --- a/bindings/go/src/webhooks_api.go +++ /dev/null @@ -1,378 +0,0 @@ -/* - * Cloudsmith API - * - * The API to the Cloudsmith Service - * - * OpenAPI spec version: v1 - * Contact: support@cloudsmith.io - * Generated by: https://github.com/swagger-api/swagger-codegen.git - */ - -package cloudsmith_api - -import ( - "net/url" - "strings" - "encoding/json" - "fmt" -) - -type WebhooksApi struct { - Configuration *Configuration -} - -func NewWebhooksApi() *WebhooksApi { - configuration := NewConfiguration() - return &WebhooksApi{ - Configuration: configuration, - } -} - -func NewWebhooksApiWithBasePath(basePath string) *WebhooksApi { - configuration := NewConfiguration() - configuration.BasePath = basePath - - return &WebhooksApi{ - Configuration: configuration, - } -} - -/** - * Create a specific webhook in a repository. - * Create a specific webhook in a repository. - * - * @param owner - * @param repo - * @param data - * @return *RepositoryWebhook - */ -func (a WebhooksApi) WebhooksCreate(owner string, repo string, data WebhooksCreate) (*RepositoryWebhook, *APIResponse, error) { - - var localVarHttpMethod = strings.ToUpper("Post") - // create path and map variables - localVarPath := a.Configuration.BasePath + "/webhooks/{owner}/{repo}/" - localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) - localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := make(map[string]string) - var localVarPostBody interface{} - var localVarFileName string - var localVarFileBytes []byte - // authentication '(apikey)' required - // set key with prefix in header - localVarHeaderParams["X-Api-Key"] = a.Configuration.GetAPIKeyWithPrefix("X-Api-Key") - // add default headers if any - for key := range a.Configuration.DefaultHeader { - localVarHeaderParams[key] = a.Configuration.DefaultHeader[key] - } - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - // body params - localVarPostBody = &data - var successPayload = new(RepositoryWebhook) - localVarHttpResponse, err := a.Configuration.APIClient.CallAPI(localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - - var localVarURL, _ = url.Parse(localVarPath) - localVarURL.RawQuery = localVarQueryParams.Encode() - var localVarAPIResponse = &APIResponse{Operation: "WebhooksCreate", Method: localVarHttpMethod, RequestURL: localVarURL.String()} - if localVarHttpResponse != nil { - localVarAPIResponse.Response = localVarHttpResponse.RawResponse - localVarAPIResponse.Payload = localVarHttpResponse.Body() - } - - if err != nil { - return successPayload, localVarAPIResponse, err - } - err = json.Unmarshal(localVarHttpResponse.Body(), &successPayload) - return successPayload, localVarAPIResponse, err -} - -/** - * Delete a specific webhook in a repository. - * Delete a specific webhook in a repository. - * - * @param owner - * @param repo - * @param identifier - * @return void - */ -func (a WebhooksApi) WebhooksDelete(owner string, repo string, identifier string) (*APIResponse, error) { - - var localVarHttpMethod = strings.ToUpper("Delete") - // create path and map variables - localVarPath := a.Configuration.BasePath + "/webhooks/{owner}/{repo}/{identifier}/" - localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) - localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) - localVarPath = strings.Replace(localVarPath, "{"+"identifier"+"}", fmt.Sprintf("%v", identifier), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := make(map[string]string) - var localVarPostBody interface{} - var localVarFileName string - var localVarFileBytes []byte - // authentication '(apikey)' required - // set key with prefix in header - localVarHeaderParams["X-Api-Key"] = a.Configuration.GetAPIKeyWithPrefix("X-Api-Key") - // add default headers if any - for key := range a.Configuration.DefaultHeader { - localVarHeaderParams[key] = a.Configuration.DefaultHeader[key] - } - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - localVarHttpResponse, err := a.Configuration.APIClient.CallAPI(localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - - var localVarURL, _ = url.Parse(localVarPath) - localVarURL.RawQuery = localVarQueryParams.Encode() - var localVarAPIResponse = &APIResponse{Operation: "WebhooksDelete", Method: localVarHttpMethod, RequestURL: localVarURL.String()} - if localVarHttpResponse != nil { - localVarAPIResponse.Response = localVarHttpResponse.RawResponse - localVarAPIResponse.Payload = localVarHttpResponse.Body() - } - - if err != nil { - return localVarAPIResponse, err - } - return localVarAPIResponse, err -} - -/** - * Get a list of all webhooks in a repository. - * Get a list of all webhooks in a repository. - * - * @param owner - * @param repo - * @param page A page number within the paginated result set. - * @param pageSize Number of results to return per page. - * @return []RepositoryWebhook - */ -func (a WebhooksApi) WebhooksList(owner string, repo string, page int32, pageSize int32) ([]RepositoryWebhook, *APIResponse, error) { - - var localVarHttpMethod = strings.ToUpper("Get") - // create path and map variables - localVarPath := a.Configuration.BasePath + "/webhooks/{owner}/{repo}/" - localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) - localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := make(map[string]string) - var localVarPostBody interface{} - var localVarFileName string - var localVarFileBytes []byte - // authentication '(apikey)' required - // set key with prefix in header - localVarHeaderParams["X-Api-Key"] = a.Configuration.GetAPIKeyWithPrefix("X-Api-Key") - // add default headers if any - for key := range a.Configuration.DefaultHeader { - localVarHeaderParams[key] = a.Configuration.DefaultHeader[key] - } - localVarQueryParams.Add("page", a.Configuration.APIClient.ParameterToString(page, "")) - localVarQueryParams.Add("page_size", a.Configuration.APIClient.ParameterToString(pageSize, "")) - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload = new([]RepositoryWebhook) - localVarHttpResponse, err := a.Configuration.APIClient.CallAPI(localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - - var localVarURL, _ = url.Parse(localVarPath) - localVarURL.RawQuery = localVarQueryParams.Encode() - var localVarAPIResponse = &APIResponse{Operation: "WebhooksList", Method: localVarHttpMethod, RequestURL: localVarURL.String()} - if localVarHttpResponse != nil { - localVarAPIResponse.Response = localVarHttpResponse.RawResponse - localVarAPIResponse.Payload = localVarHttpResponse.Body() - } - - if err != nil { - return *successPayload, localVarAPIResponse, err - } - err = json.Unmarshal(localVarHttpResponse.Body(), &successPayload) - return *successPayload, localVarAPIResponse, err -} - -/** - * Update a specific webhook in a repository. - * Update a specific webhook in a repository. - * - * @param owner - * @param repo - * @param identifier - * @param data - * @return *RepositoryWebhook - */ -func (a WebhooksApi) WebhooksPartialUpdate(owner string, repo string, identifier string, data WebhooksPartialUpdate) (*RepositoryWebhook, *APIResponse, error) { - - var localVarHttpMethod = strings.ToUpper("Patch") - // create path and map variables - localVarPath := a.Configuration.BasePath + "/webhooks/{owner}/{repo}/{identifier}/" - localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) - localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) - localVarPath = strings.Replace(localVarPath, "{"+"identifier"+"}", fmt.Sprintf("%v", identifier), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := make(map[string]string) - var localVarPostBody interface{} - var localVarFileName string - var localVarFileBytes []byte - // authentication '(apikey)' required - // set key with prefix in header - localVarHeaderParams["X-Api-Key"] = a.Configuration.GetAPIKeyWithPrefix("X-Api-Key") - // add default headers if any - for key := range a.Configuration.DefaultHeader { - localVarHeaderParams[key] = a.Configuration.DefaultHeader[key] - } - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ "application/json", } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - // body params - localVarPostBody = &data - var successPayload = new(RepositoryWebhook) - localVarHttpResponse, err := a.Configuration.APIClient.CallAPI(localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - - var localVarURL, _ = url.Parse(localVarPath) - localVarURL.RawQuery = localVarQueryParams.Encode() - var localVarAPIResponse = &APIResponse{Operation: "WebhooksPartialUpdate", Method: localVarHttpMethod, RequestURL: localVarURL.String()} - if localVarHttpResponse != nil { - localVarAPIResponse.Response = localVarHttpResponse.RawResponse - localVarAPIResponse.Payload = localVarHttpResponse.Body() - } - - if err != nil { - return successPayload, localVarAPIResponse, err - } - err = json.Unmarshal(localVarHttpResponse.Body(), &successPayload) - return successPayload, localVarAPIResponse, err -} - -/** - * Views for working with repository webhooks. - * Views for working with repository webhooks. - * - * @param owner - * @param repo - * @param identifier - * @return *RepositoryWebhook - */ -func (a WebhooksApi) WebhooksRead(owner string, repo string, identifier string) (*RepositoryWebhook, *APIResponse, error) { - - var localVarHttpMethod = strings.ToUpper("Get") - // create path and map variables - localVarPath := a.Configuration.BasePath + "/webhooks/{owner}/{repo}/{identifier}/" - localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1) - localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1) - localVarPath = strings.Replace(localVarPath, "{"+"identifier"+"}", fmt.Sprintf("%v", identifier), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := make(map[string]string) - var localVarPostBody interface{} - var localVarFileName string - var localVarFileBytes []byte - // authentication '(apikey)' required - // set key with prefix in header - localVarHeaderParams["X-Api-Key"] = a.Configuration.GetAPIKeyWithPrefix("X-Api-Key") - // add default headers if any - for key := range a.Configuration.DefaultHeader { - localVarHeaderParams[key] = a.Configuration.DefaultHeader[key] - } - - // to determine the Content-Type header - localVarHttpContentTypes := []string{ } - - // set Content-Type header - localVarHttpContentType := a.Configuration.APIClient.SelectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - // to determine the Accept header - localVarHttpHeaderAccepts := []string{ - } - - // set Accept header - localVarHttpHeaderAccept := a.Configuration.APIClient.SelectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - var successPayload = new(RepositoryWebhook) - localVarHttpResponse, err := a.Configuration.APIClient.CallAPI(localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - - var localVarURL, _ = url.Parse(localVarPath) - localVarURL.RawQuery = localVarQueryParams.Encode() - var localVarAPIResponse = &APIResponse{Operation: "WebhooksRead", Method: localVarHttpMethod, RequestURL: localVarURL.String()} - if localVarHttpResponse != nil { - localVarAPIResponse.Response = localVarHttpResponse.RawResponse - localVarAPIResponse.Payload = localVarHttpResponse.Body() - } - - if err != nil { - return successPayload, localVarAPIResponse, err - } - err = json.Unmarshal(localVarHttpResponse.Body(), &successPayload) - return successPayload, localVarAPIResponse, err -} - diff --git a/bindings/go/test.sh b/bindings/go/test.sh index 5e795087..2a2db325 100755 --- a/bindings/go/test.sh +++ b/bindings/go/test.sh @@ -1,4 +1,6 @@ #!/usr/bin/env bash +set -e + self=$(readlink -f $BASH_SOURCE) self_dir=$(dirname $self) root_dir=$(readlink -f "$self_dir/../..") diff --git a/bindings/java/build.sh b/bindings/java/build.sh index 2da56347..b8928a9d 100755 --- a/bindings/java/build.sh +++ b/bindings/java/build.sh @@ -1,4 +1,6 @@ #!/usr/bin/env bash +set -e + self=$(readlink -f $BASH_SOURCE) self_dir=$(dirname $self) root_dir=$(readlink -f "$self_dir/../..") diff --git a/bindings/java/deploy.sh b/bindings/java/deploy.sh index e536bc17..40c63539 100755 --- a/bindings/java/deploy.sh +++ b/bindings/java/deploy.sh @@ -1,4 +1,6 @@ #!/usr/bin/env bash +set -e + self=$(readlink -f $BASH_SOURCE) self_dir=$(dirname $self) root_dir=$(readlink -f "$self_dir/../..") diff --git a/bindings/java/src/.swagger-codegen/VERSION b/bindings/java/src/.swagger-codegen/VERSION index 6b4d1577..21f40d97 100644 --- a/bindings/java/src/.swagger-codegen/VERSION +++ b/bindings/java/src/.swagger-codegen/VERSION @@ -1 +1 @@ -2.2.3 \ No newline at end of file +2.4.26 \ No newline at end of file diff --git a/bindings/java/src/README.md b/bindings/java/src/README.md index 76605ddc..49bac9da 100644 --- a/bindings/java/src/README.md +++ b/bindings/java/src/README.md @@ -1,24 +1,36 @@ # cloudsmith-api +Cloudsmith API +- API version: v1 + +The API to the Cloudsmith Service + + For more information, please visit [https://help.cloudsmith.io](https://help.cloudsmith.io) + +*Automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen)* + + ## Requirements -Building the API client library requires [Maven](https://maven.apache.org/) to be installed. +Building the API client library requires: +1. Java 1.7+ +2. Maven/Gradle ## Installation To install the API client library to your local Maven repository, simply execute: ```shell -mvn install +mvn clean install ``` To deploy it to a remote Maven repository instead, configure the settings of the repository and execute: ```shell -mvn deploy +mvn clean deploy ``` -Refer to the [official documentation](https://maven.apache.org/plugins/maven-deploy-plugin/usage.html) for more information. +Refer to the [OSSRH Guide](http://central.sonatype.org/pages/ossrh-guide.html) for more information. ### Maven users @@ -26,10 +38,10 @@ Add this dependency to your project's POM: ```xml - io.cloudsmith.api - cloudsmith-api - 1.30.0 - compile + io.cloudsmith.api + cloudsmith-api + 1.33.7 + compile ``` @@ -38,19 +50,21 @@ Add this dependency to your project's POM: Add this dependency to your project's build file: ```groovy -compile "io.cloudsmith.api:cloudsmith-api:1.30.0" +compile "io.cloudsmith.api:cloudsmith-api:1.33.7" ``` ### Others At first generate the JAR by executing: - mvn package +```shell +mvn clean package +``` Then manually install the following JARs: -* target/cloudsmith-api-1.30.0.jar -* target/lib/*.jar +* `target/cloudsmith-api-1.33.7.jar` +* `target/lib/*.jar` ## Getting Started @@ -96,7 +110,8 @@ public class BadgesApiExample { Boolean showLatest = true; // Boolean | If true, for latest version badges a '(latest)' suffix is added String style = "style_example"; // String | Override the shields.io badge style value. try { - apiInstance.badgesVersionList(owner, repo, packageFormat, packageName, packageVersion, packageIdentifiers, badgeToken, cacheSeconds, color, label, labelColor, logoColor, logoWidth, render, shields, showLatest, style); + Object result = apiInstance.badgesVersionList(owner, repo, packageFormat, packageName, packageVersion, packageIdentifiers, badgeToken, cacheSeconds, color, label, labelColor, logoColor, logoWidth, render, shields, showLatest, style); + System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling BadgesApi#badgesVersionList"); e.printStackTrace(); diff --git a/bindings/java/src/build.gradle b/bindings/java/src/build.gradle index 1a865d39..ff37b243 100644 --- a/bindings/java/src/build.gradle +++ b/bindings/java/src/build.gradle @@ -2,7 +2,7 @@ apply plugin: 'idea' apply plugin: 'eclipse' group = 'io.cloudsmith.api' -version = '1.30.0' +version = '1.33.7' buildscript { repositories { @@ -94,9 +94,10 @@ if(hasProperty('target') && target == 'android') { } dependencies { - compile 'io.swagger:swagger-annotations:1.5.15' + compile 'io.swagger:swagger-annotations:1.5.17' compile 'com.squareup.okhttp:okhttp:2.7.5' compile 'com.squareup.okhttp:logging-interceptor:2.7.5' compile 'com.google.code.gson:gson:2.8.1' + compile 'io.gsonfire:gson-fire:1.8.0' testCompile 'junit:junit:4.12' } diff --git a/bindings/java/src/build.json b/bindings/java/src/build.json index 3a26e032..48422685 100644 --- a/bindings/java/src/build.json +++ b/bindings/java/src/build.json @@ -3,7 +3,7 @@ "apiPackage": "io.cloudsmith.api.apis", "artifactId": "cloudsmith-api", "artifactUrl": "https://api.cloudsmith.io/?format=openapi", - "artifactVersion": "1.30.0", + "artifactVersion": "1.33.7", "artifactDescription": "Cloudsmith API", "dateLibrary": "java8", "developerName": "Cloudsmith Ltd", diff --git a/bindings/java/src/build.sbt b/bindings/java/src/build.sbt index 5df832de..7613636e 100644 --- a/bindings/java/src/build.sbt +++ b/bindings/java/src/build.sbt @@ -2,17 +2,18 @@ lazy val root = (project in file(".")). settings( organization := "io.cloudsmith.api", name := "cloudsmith-api", - version := "1.30.0", + version := "1.33.7", scalaVersion := "2.11.4", scalacOptions ++= Seq("-feature"), javacOptions in compile ++= Seq("-Xlint:deprecation"), publishArtifact in (Compile, packageDoc) := false, resolvers += Resolver.mavenLocal, libraryDependencies ++= Seq( - "io.swagger" % "swagger-annotations" % "1.5.15", + "io.swagger" % "swagger-annotations" % "1.5.17", "com.squareup.okhttp" % "okhttp" % "2.7.5", "com.squareup.okhttp" % "logging-interceptor" % "2.7.5", "com.google.code.gson" % "gson" % "2.8.1", + "io.gsonfire" % "gson-fire" % "1.8.3" % "compile", "junit" % "junit" % "4.12" % "test", "com.novocode" % "junit-interface" % "0.10" % "test" ) diff --git a/bindings/java/src/docs/BadgesApi.md b/bindings/java/src/docs/BadgesApi.md index 25ae7bd6..834760b6 100644 --- a/bindings/java/src/docs/BadgesApi.md +++ b/bindings/java/src/docs/BadgesApi.md @@ -9,7 +9,7 @@ Method | HTTP request | Description # **badgesVersionList** -> badgesVersionList(owner, repo, packageFormat, packageName, packageVersion, packageIdentifiers, badgeToken, cacheSeconds, color, label, labelColor, logoColor, logoWidth, render, shields, showLatest, style) +> Object badgesVersionList(owner, repo, packageFormat, packageName, packageVersion, packageIdentifiers, badgeToken, cacheSeconds, color, label, labelColor, logoColor, logoWidth, render, shields, showLatest, style) Get latest package version for a package or package group. @@ -51,7 +51,8 @@ Boolean shields = true; // Boolean | If true, a shields response will be generat Boolean showLatest = true; // Boolean | If true, for latest version badges a '(latest)' suffix is added String style = "style_example"; // String | Override the shields.io badge style value. try { - apiInstance.badgesVersionList(owner, repo, packageFormat, packageName, packageVersion, packageIdentifiers, badgeToken, cacheSeconds, color, label, labelColor, logoColor, logoWidth, render, shields, showLatest, style); + Object result = apiInstance.badgesVersionList(owner, repo, packageFormat, packageName, packageVersion, packageIdentifiers, badgeToken, cacheSeconds, color, label, labelColor, logoColor, logoWidth, render, shields, showLatest, style); + System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling BadgesApi#badgesVersionList"); e.printStackTrace(); @@ -82,7 +83,7 @@ Name | Type | Description | Notes ### Return type -null (empty response body) +**Object** ### Authorization diff --git a/bindings/java/src/git_push.sh b/bindings/java/src/git_push.sh index bb3f01ed..4fda2ff0 100644 --- a/bindings/java/src/git_push.sh +++ b/bindings/java/src/git_push.sh @@ -36,7 +36,7 @@ git_remote=`git remote` if [ "$git_remote" = "" ]; then # git remote not defined if [ "$GIT_TOKEN" = "" ]; then - echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git crediential in your environment." + echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git else git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git diff --git a/bindings/java/src/pom.xml b/bindings/java/src/pom.xml index cba1b6f8..b210c37c 100644 --- a/bindings/java/src/pom.xml +++ b/bindings/java/src/pom.xml @@ -1,230 +1,254 @@ - 4.0.0 - io.cloudsmith.api - cloudsmith-api - jar - cloudsmith-api - 1.30.0 - https://api.cloudsmith.io/?format=openapi - Cloudsmith API - - scm:git:git@github.com:swagger-api/swagger-codegen.git - scm:git:git@github.com:swagger-api/swagger-codegen.git - https://github.com/swagger-api/swagger-codegen - - - 2.2.0 - + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> + 4.0.0 + io.cloudsmith.api + cloudsmith-api + jar + cloudsmith-api + 1.33.7 + https://api.cloudsmith.io/?format=openapi + Cloudsmith API + + scm:git:git@github.com:swagger-api/swagger-codegen.git + scm:git:git@github.com:swagger-api/swagger-codegen.git + https://github.com/swagger-api/swagger-codegen + - - - Apache License 2.0 - https://opensource.org/licenses/MIT - repo - - + + + Apache License 2.0 + https://opensource.org/licenses/MIT + repo + + - - - Cloudsmith Ltd - support@cloudsmith.io - Cloudsmith Ltd - https://cloudsmith.io - - + + + Cloudsmith Ltd + support@cloudsmith.io + Cloudsmith Ltd + https://cloudsmith.io + + - - - - org.apache.maven.plugins - maven-surefire-plugin - 2.12 - - - - loggerPath - conf/log4j.properties - - - -Xms512m -Xmx1500m - methods - pertest - - - - maven-dependency-plugin - - - package - - copy-dependencies - - - ${project.build.directory}/lib - - - - - - - - org.apache.maven.plugins - maven-jar-plugin - 2.2 - - - - jar - test-jar - - - - - - + + + + org.apache.maven.plugins + maven-enforcer-plugin + 3.0.0-M1 + + + enforce-maven + + enforce + + + + + 2.2.0 + + + + + + + + org.apache.maven.plugins + maven-surefire-plugin + 2.12 + + + + loggerPath + conf/log4j.properties + + + -Xms512m -Xmx1500m + methods + pertest + + + + maven-dependency-plugin + + + package + + copy-dependencies + + + ${project.build.directory}/lib + + + + - - org.codehaus.mojo - build-helper-maven-plugin - 1.10 - - - add_sources - generate-sources - - add-source - - - - src/main/java - - - - - add_test_sources - generate-test-sources - - add-test-source - - - - src/test/java - - - - - - - org.apache.maven.plugins - maven-javadoc-plugin - 2.10.4 - - - attach-javadocs - - jar - - - - - - org.apache.maven.plugins - maven-source-plugin - 2.2.1 - - - attach-sources - - jar-no-fork - - - - - - + + + org.apache.maven.plugins + maven-jar-plugin + 2.2 + + + + jar + test-jar + + + + + + - - - sign-artifacts - - - - org.apache.maven.plugins - maven-gpg-plugin - 1.5 - - - sign-artifacts - verify - - sign - - - - + + org.codehaus.mojo + build-helper-maven-plugin + 1.10 + + + add_sources + generate-sources + + add-source + + + + + src/main/java + + + + + add_test_sources + generate-test-sources + + add-test-source + + + + + src/test/java + + + + + + + org.apache.maven.plugins + maven-javadoc-plugin + 3.2.0 + + + attach-javadocs + + jar + + + + + + org.apache.maven.plugins + maven-source-plugin + 2.2.1 + + + attach-sources + + jar-no-fork + + + + - - - + + + + + sign-artifacts + + + + org.apache.maven.plugins + maven-gpg-plugin + 1.5 + + + sign-artifacts + verify + + sign + + + + + + + + - - - io.swagger - swagger-annotations - ${swagger-core-version} - - - com.squareup.okhttp - okhttp - ${okhttp-version} - - - com.squareup.okhttp - logging-interceptor - ${okhttp-version} - - - com.google.code.gson - gson - ${gson-version} - - - - javax.validation - validation-api - 1.1.0.Final - provided - - - - org.hibernate - hibernate-validator - 5.4.1.Final - - - javax.el - el-api - 2.2 - - - - junit - junit - ${junit-version} - test - - - - 1.8 - ${java.version} - ${java.version} - 1.5.15 - 2.7.5 - 2.8.1 - 2.9.9 - 1.0.0 - 4.12 - UTF-8 - + + + io.swagger + swagger-annotations + ${swagger-core-version} + + + com.squareup.okhttp + okhttp + ${okhttp-version} + + + com.squareup.okhttp + logging-interceptor + ${okhttp-version} + + + com.google.code.gson + gson + ${gson-version} + + + io.gsonfire + gson-fire + ${gson-fire-version} + + + + javax.validation + validation-api + 1.1.0.Final + provided + + + + org.hibernate + hibernate-validator + 5.4.1.Final + + + javax.el + el-api + 2.2 + + + + junit + junit + ${junit-version} + test + + + + 1.8 + ${java.version} + ${java.version} + 1.8.3 + 1.5.24 + 2.7.5 + 2.8.1 + 1.0.0 + 4.13.1 + UTF-8 + diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/ApiClient.java b/bindings/java/src/src/main/java/io/cloudsmith/api/ApiClient.java index ec6f38b2..156c0495 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/ApiClient.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/ApiClient.java @@ -13,43 +13,23 @@ package io.cloudsmith.api; -import com.squareup.okhttp.Call; -import com.squareup.okhttp.Callback; -import com.squareup.okhttp.OkHttpClient; -import com.squareup.okhttp.Request; -import com.squareup.okhttp.Response; -import com.squareup.okhttp.RequestBody; -import com.squareup.okhttp.FormEncodingBuilder; -import com.squareup.okhttp.MultipartBuilder; -import com.squareup.okhttp.MediaType; -import com.squareup.okhttp.Headers; +import com.squareup.okhttp.*; import com.squareup.okhttp.internal.http.HttpMethod; import com.squareup.okhttp.logging.HttpLoggingInterceptor; import com.squareup.okhttp.logging.HttpLoggingInterceptor.Level; +import okio.BufferedSink; +import okio.Okio; -import java.lang.reflect.Type; - -import java.util.Collection; -import java.util.Collections; -import java.util.Map; -import java.util.Map.Entry; -import java.util.HashMap; -import java.util.List; -import java.util.ArrayList; -import java.util.Date; -import java.util.TimeZone; -import java.util.concurrent.TimeUnit; -import java.util.regex.Matcher; -import java.util.regex.Pattern; - -import java.net.URLEncoder; -import java.net.URLConnection; - +import javax.net.ssl.*; import java.io.File; -import java.io.InputStream; import java.io.IOException; +import java.io.InputStream; import java.io.UnsupportedEncodingException; - +import java.nio.file.Files; +import java.nio.file.Paths; +import java.lang.reflect.Type; +import java.net.URLConnection; +import java.net.URLEncoder; import java.security.GeneralSecurityException; import java.security.KeyStore; import java.security.SecureRandom; @@ -57,22 +37,15 @@ import java.security.cert.CertificateException; import java.security.cert.CertificateFactory; import java.security.cert.X509Certificate; - import java.text.DateFormat; -import java.text.SimpleDateFormat; -import java.text.ParseException; - -import javax.net.ssl.HostnameVerifier; -import javax.net.ssl.KeyManager; -import javax.net.ssl.KeyManagerFactory; -import javax.net.ssl.SSLContext; -import javax.net.ssl.SSLSession; -import javax.net.ssl.TrustManager; -import javax.net.ssl.TrustManagerFactory; -import javax.net.ssl.X509TrustManager; - -import okio.BufferedSink; -import okio.Okio; +import java.time.LocalDate; +import java.time.OffsetDateTime; +import java.time.format.DateTimeFormatter; +import java.util.*; +import java.util.Map.Entry; +import java.util.concurrent.TimeUnit; +import java.util.regex.Matcher; +import java.util.regex.Pattern; import io.cloudsmith.api.auth.Authentication; import io.cloudsmith.api.auth.HttpBasicAuth; @@ -80,40 +53,8 @@ import io.cloudsmith.api.auth.OAuth; public class ApiClient { - public static final double JAVA_VERSION; - public static final boolean IS_ANDROID; - public static final int ANDROID_SDK_VERSION; - - static { - JAVA_VERSION = Double.parseDouble(System.getProperty("java.specification.version")); - boolean isAndroid; - try { - Class.forName("android.app.Activity"); - isAndroid = true; - } catch (ClassNotFoundException e) { - isAndroid = false; - } - IS_ANDROID = isAndroid; - int sdkVersion = 0; - if (IS_ANDROID) { - try { - sdkVersion = Class.forName("android.os.Build$VERSION").getField("SDK_INT").getInt(null); - } catch (Exception e) { - try { - sdkVersion = Integer.parseInt((String) Class.forName("android.os.Build$VERSION").getField("SDK").get(null)); - } catch (Exception e2) { } - } - } - ANDROID_SDK_VERSION = sdkVersion; - } - - /** - * The datetime format to be used when lenientDatetimeFormat is enabled. - */ - public static final String LENIENT_DATETIME_FORMAT = "yyyy-MM-dd'T'HH:mm:ss.SSSZ"; private String basePath = "https://api.cloudsmith.io/v1"; - private boolean lenientOnJson = false; private boolean debugging = false; private Map defaultHeaderMap = new HashMap(); private String tempFolderPath = null; @@ -143,23 +84,10 @@ public ApiClient() { verifyingSsl = true; - json = new JSON(this); - - /* - * Use RFC3339 format for date and datetime. - * See http://xml2rfc.ietf.org/public/rfc/html/rfc3339.html#anchor14 - */ - this.dateFormat = new SimpleDateFormat("yyyy-MM-dd"); - // Always use UTC as the default time zone when dealing with date (without time). - this.dateFormat.setTimeZone(TimeZone.getTimeZone("UTC")); - initDatetimeFormat(); - - // Be lenient on datetime formats when parsing datetime from string. - // See parseDatetime. - this.lenientDatetimeFormat = true; + json = new JSON(); // Set default User-Agent. - setUserAgent("Swagger-Codegen/1.30.0/java"); + setUserAgent("Swagger-Codegen/1.33.7/java"); // Setup authentications (key: authentication name, value: authentication). authentications = new HashMap(); @@ -296,138 +224,28 @@ public DateFormat getDateFormat() { } public ApiClient setDateFormat(DateFormat dateFormat) { - this.dateFormat = dateFormat; - this.dateLength = this.dateFormat.format(new Date()).length(); + this.json.setDateFormat(dateFormat); return this; } - public DateFormat getDatetimeFormat() { - return datetimeFormat; - } - - public ApiClient setDatetimeFormat(DateFormat datetimeFormat) { - this.datetimeFormat = datetimeFormat; + public ApiClient setSqlDateFormat(DateFormat dateFormat) { + this.json.setSqlDateFormat(dateFormat); return this; } - /** - * Whether to allow various ISO 8601 datetime formats when parsing a datetime string. - * @see #parseDatetime(String) - * @return True if lenientDatetimeFormat flag is set to true - */ - public boolean isLenientDatetimeFormat() { - return lenientDatetimeFormat; - } - - public ApiClient setLenientDatetimeFormat(boolean lenientDatetimeFormat) { - this.lenientDatetimeFormat = lenientDatetimeFormat; + public ApiClient setOffsetDateTimeFormat(DateTimeFormatter dateFormat) { + this.json.setOffsetDateTimeFormat(dateFormat); return this; } - /** - * Parse the given date string into Date object. - * The default dateFormat supports these ISO 8601 date formats: - * 2015-08-16 - * 2015-8-16 - * @param str String to be parsed - * @return Date - */ - public Date parseDate(String str) { - if (str == null) - return null; - try { - return dateFormat.parse(str); - } catch (ParseException e) { - throw new RuntimeException(e); - } - } - - /** - * Parse the given datetime string into Date object. - * When lenientDatetimeFormat is enabled, the following ISO 8601 datetime formats are supported: - * 2015-08-16T08:20:05Z - * 2015-8-16T8:20:05Z - * 2015-08-16T08:20:05+00:00 - * 2015-08-16T08:20:05+0000 - * 2015-08-16T08:20:05.376Z - * 2015-08-16T08:20:05.376+00:00 - * 2015-08-16T08:20:05.376+00 - * Note: The 3-digit milli-seconds is optional. Time zone is required and can be in one of - * these formats: - * Z (same with +0000) - * +08:00 (same with +0800) - * -02 (same with -0200) - * -0200 - * @see ISO 8601 - * @param str Date time string to be parsed - * @return Date representation of the string - */ - public Date parseDatetime(String str) { - if (str == null) - return null; - - DateFormat format; - if (lenientDatetimeFormat) { - /* - * When lenientDatetimeFormat is enabled, normalize the date string - * into LENIENT_DATETIME_FORMAT to support various formats - * defined by ISO 8601. - */ - // normalize time zone - // trailing "Z": 2015-08-16T08:20:05Z => 2015-08-16T08:20:05+0000 - str = str.replaceAll("[zZ]\\z", "+0000"); - // remove colon in time zone: 2015-08-16T08:20:05+00:00 => 2015-08-16T08:20:05+0000 - str = str.replaceAll("([+-]\\d{2}):(\\d{2})\\z", "$1$2"); - // expand time zone: 2015-08-16T08:20:05+00 => 2015-08-16T08:20:05+0000 - str = str.replaceAll("([+-]\\d{2})\\z", "$100"); - // add milliseconds when missing - // 2015-08-16T08:20:05+0000 => 2015-08-16T08:20:05.000+0000 - str = str.replaceAll("(:\\d{1,2})([+-]\\d{4})\\z", "$1.000$2"); - format = new SimpleDateFormat(LENIENT_DATETIME_FORMAT); - } else { - format = this.datetimeFormat; - } - - try { - return format.parse(str); - } catch (ParseException e) { - throw new RuntimeException(e); - } - } - - /* - * Parse date or date time in string format into Date object. - * - * @param str Date time string to be parsed - * @return Date representation of the string - */ - public Date parseDateOrDatetime(String str) { - if (str == null) - return null; - else if (str.length() <= dateLength) - return parseDate(str); - else - return parseDatetime(str); - } - - /** - * Format the given Date object into string (Date format). - * - * @param date Date object - * @return Formatted date in string representation - */ - public String formatDate(Date date) { - return dateFormat.format(date); + public ApiClient setLocalDateFormat(DateTimeFormatter dateFormat) { + this.json.setLocalDateFormat(dateFormat); + return this; } - /** - * Format the given Date object into string (Datetime format). - * - * @param date Date object - * @return Formatted datetime in string representation - */ - public String formatDatetime(Date date) { - return datetimeFormat.format(date); + public ApiClient setLenientOnJson(boolean lenientOnJson) { + this.json.setLenientOnJson(lenientOnJson); + return this; } /** @@ -547,26 +365,6 @@ public ApiClient addDefaultHeader(String key, String value) { return this; } - /** - * @see setLenient - * - * @return True if lenientOnJson is enabled, false otherwise. - */ - public boolean isLenientOnJson() { - return lenientOnJson; - } - - /** - * Set LenientOnJson - * - * @param lenient True to enable lenientOnJson - * @return ApiClient - */ - public ApiClient setLenientOnJson(boolean lenient) { - this.lenientOnJson = lenient; - return this; - } - /** * Check that whether debugging is enabled for this API client. * @@ -610,7 +408,7 @@ public String getTempFolderPath() { } /** - * Set the tempoaray folder path (for downloading files) + * Set the temporary folder path (for downloading files) * * @param tempFolderPath Temporary folder path * @return ApiClient @@ -632,6 +430,7 @@ public int getConnectTimeout() { /** * Sets the connect timeout (in milliseconds). * A value of 0 means no timeout, otherwise values must be between 1 and + * {@link Integer#MAX_VALUE}. * * @param connectionTimeout connection timeout in milliseconds * @return Api client @@ -641,6 +440,50 @@ public ApiClient setConnectTimeout(int connectionTimeout) { return this; } + /** + * Get read timeout (in milliseconds). + * + * @return Timeout in milliseconds + */ + public int getReadTimeout() { + return httpClient.getReadTimeout(); + } + + /** + * Sets the read timeout (in milliseconds). + * A value of 0 means no timeout, otherwise values must be between 1 and + * {@link Integer#MAX_VALUE}. + * + * @param readTimeout read timeout in milliseconds + * @return Api client + */ + public ApiClient setReadTimeout(int readTimeout) { + httpClient.setReadTimeout(readTimeout, TimeUnit.MILLISECONDS); + return this; + } + + /** + * Get write timeout (in milliseconds). + * + * @return Timeout in milliseconds + */ + public int getWriteTimeout() { + return httpClient.getWriteTimeout(); + } + + /** + * Sets the write timeout (in milliseconds). + * A value of 0 means no timeout, otherwise values must be between 1 and + * {@link Integer#MAX_VALUE}. + * + * @param writeTimeout connection timeout in milliseconds + * @return Api client + */ + public ApiClient setWriteTimeout(int writeTimeout) { + httpClient.setWriteTimeout(writeTimeout, TimeUnit.MILLISECONDS); + return this; + } + /** * Format the given parameter object into string. * @@ -650,8 +493,10 @@ public ApiClient setConnectTimeout(int connectionTimeout) { public String parameterToString(Object param) { if (param == null) { return ""; - } else if (param instanceof Date) { - return formatDatetime((Date) param); + } else if (param instanceof Date || param instanceof OffsetDateTime || param instanceof LocalDate) { + //Serialize to json string and remove the " enclosing characters + String jsonStr = json.serialize(param); + return jsonStr.substring(1, jsonStr.length() - 1); } else if (param instanceof Collection) { StringBuilder b = new StringBuilder(); for (Object o : (Collection)param) { @@ -667,62 +512,70 @@ public String parameterToString(Object param) { } /** - * Format to {@code Pair} objects. + * Formats the specified query parameter to a list containing a single {@code Pair} object. * - * @param collectionFormat collection format (e.g. csv, tsv) - * @param name Name - * @param value Value - * @return A list of Pair objects + * Note that {@code value} must not be a collection. + * + * @param name The name of the parameter. + * @param value The value of the parameter. + * @return A list containing a single {@code Pair} object. */ - public List parameterToPairs(String collectionFormat, String name, Object value){ + public List parameterToPair(String name, Object value) { List params = new ArrayList(); // preconditions - if (name == null || name.isEmpty() || value == null) return params; + if (name == null || name.isEmpty() || value == null || value instanceof Collection) return params; - Collection valueCollection = null; - if (value instanceof Collection) { - valueCollection = (Collection) value; - } else { - params.add(new Pair(name, parameterToString(value))); - return params; - } + params.add(new Pair(name, parameterToString(value))); + return params; + } - if (valueCollection.isEmpty()){ + /** + * Formats the specified collection query parameters to a list of {@code Pair} objects. + * + * Note that the values of each of the returned Pair objects are percent-encoded. + * + * @param collectionFormat The collection format of the parameter. + * @param name The name of the parameter. + * @param value The value of the parameter. + * @return A list of {@code Pair} objects. + */ + public List parameterToPairs(String collectionFormat, String name, Collection value) { + List params = new ArrayList(); + + // preconditions + if (name == null || name.isEmpty() || value == null || value.isEmpty()) { return params; } - // get the collection format - collectionFormat = (collectionFormat == null || collectionFormat.isEmpty() ? "csv" : collectionFormat); // default: csv - // create the params based on the collection format - if (collectionFormat.equals("multi")) { - for (Object item : valueCollection) { - params.add(new Pair(name, parameterToString(item))); + if ("multi".equals(collectionFormat)) { + for (Object item : value) { + params.add(new Pair(name, escapeString(parameterToString(item)))); } - return params; } + // collectionFormat is assumed to be "csv" by default String delimiter = ","; - if (collectionFormat.equals("csv")) { - delimiter = ","; - } else if (collectionFormat.equals("ssv")) { - delimiter = " "; - } else if (collectionFormat.equals("tsv")) { - delimiter = "\t"; - } else if (collectionFormat.equals("pipes")) { - delimiter = "|"; + // escape all delimiters except commas, which are URI reserved + // characters + if ("ssv".equals(collectionFormat)) { + delimiter = escapeString(" "); + } else if ("tsv".equals(collectionFormat)) { + delimiter = escapeString("\t"); + } else if ("pipes".equals(collectionFormat)) { + delimiter = escapeString("|"); } StringBuilder sb = new StringBuilder() ; - for (Object item : valueCollection) { + for (Object item : value) { sb.append(delimiter); - sb.append(parameterToString(item)); + sb.append(escapeString(parameterToString(item))); } - params.add(new Pair(name, sb.substring(1))); + params.add(new Pair(name, sb.substring(delimiter.length()))); return params; } @@ -745,12 +598,13 @@ public String sanitizeFilename(String filename) { * application/json; charset=UTF8 * APPLICATION/JSON * application/vnd.company+json + * "* / *" is also default to JSON * @param mime MIME (Multipurpose Internet Mail Extensions) * @return True if the given MIME is JSON, false otherwise. */ public boolean isJsonMime(String mime) { String jsonMime = "(?i)^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$"; - return mime != null && (mime.matches(jsonMime) || mime.equalsIgnoreCase("application/json-patch+json")); + return mime != null && (mime.matches(jsonMime) || mime.equals("*/*")); } /** @@ -781,11 +635,11 @@ public String selectHeaderAccept(String[] accepts) { * * @param contentTypes The Content-Type array to select from * @return The Content-Type header to use. If the given array is empty, - * JSON will be used. + * or matches "any", JSON will be used. */ public String selectHeaderContentType(String[] contentTypes) { - if (contentTypes.length == 0) { - return "application/json"; + if (contentTypes.length == 0 || contentTypes[0].equals("*/*")) { + return "application/json"; } for (String contentType : contentTypes) { if (isJsonMime(contentType)) { @@ -957,9 +811,9 @@ public File prepareDownloadFile(Response response) throws IOException { } if (tempFolderPath == null) - return File.createTempFile(prefix, suffix); + return Files.createTempFile(prefix, suffix).toFile(); else - return File.createTempFile(prefix, suffix, new File(tempFolderPath)); + return Files.createTempFile(Paths.get(tempFolderPath), prefix, suffix).toFile(); } /** @@ -1082,6 +936,7 @@ public T handleResponse(Response response, Type returnType) throws ApiExcept * @param path The sub-path of the HTTP URL * @param method The request method, one of "GET", "HEAD", "OPTIONS", "POST", "PUT", "PATCH" and "DELETE" * @param queryParams The query parameters + * @param collectionQueryParams The collection query parameters * @param body The request body object * @param headerParams The header parameters * @param formParams The form parameters @@ -1090,8 +945,8 @@ public T handleResponse(Response response, Type returnType) throws ApiExcept * @return The HTTP call * @throws ApiException If fail to serialize the request body object */ - public Call buildCall(String path, String method, List queryParams, Object body, Map headerParams, Map formParams, String[] authNames, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Request request = buildRequest(path, method, queryParams, body, headerParams, formParams, authNames, progressRequestListener); + public Call buildCall(String path, String method, List queryParams, List collectionQueryParams, Object body, Map headerParams, Map formParams, String[] authNames, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Request request = buildRequest(path, method, queryParams, collectionQueryParams, body, headerParams, formParams, authNames, progressRequestListener); return httpClient.newCall(request); } @@ -1102,18 +957,19 @@ public Call buildCall(String path, String method, List queryParams, Object * @param path The sub-path of the HTTP URL * @param method The request method, one of "GET", "HEAD", "OPTIONS", "POST", "PUT", "PATCH" and "DELETE" * @param queryParams The query parameters + * @param collectionQueryParams The collection query parameters * @param body The request body object * @param headerParams The header parameters * @param formParams The form parameters * @param authNames The authentications to apply * @param progressRequestListener Progress request listener - * @return The HTTP request + * @return The HTTP request * @throws ApiException If fail to serialize the request body object */ - public Request buildRequest(String path, String method, List queryParams, Object body, Map headerParams, Map formParams, String[] authNames, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public Request buildRequest(String path, String method, List queryParams, List collectionQueryParams, Object body, Map headerParams, Map formParams, String[] authNames, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { updateParamsForAuth(authNames, queryParams, headerParams); - final String url = buildUrl(path, queryParams); + final String url = buildUrl(path, queryParams, collectionQueryParams); final Request.Builder reqBuilder = new Request.Builder().url(url); processHeaderParams(headerParams, reqBuilder); @@ -1159,9 +1015,10 @@ public Request buildRequest(String path, String method, List queryParams, * * @param path The sub path * @param queryParams The query parameters + * @param collectionQueryParams The collection query parameters * @return The full URL */ - public String buildUrl(String path, List queryParams) { + public String buildUrl(String path, List queryParams, List collectionQueryParams) { final StringBuilder url = new StringBuilder(); url.append(basePath).append(path); @@ -1182,6 +1039,23 @@ public String buildUrl(String path, List queryParams) { } } + if (collectionQueryParams != null && !collectionQueryParams.isEmpty()) { + String prefix = url.toString().contains("?") ? "&" : "?"; + for (Pair param : collectionQueryParams) { + if (param.getValue() != null) { + if (prefix != null) { + url.append(prefix); + prefix = null; + } else { + url.append("&"); + } + String value = parameterToString(param.getValue()); + // collection query parameter value already escaped as part of parameterToPairs + url.append(escapeString(param.getName())).append("=").append(value); + } + } + } + return url.toString(); } @@ -1269,31 +1143,6 @@ public String guessContentTypeFromFile(File file) { } } - /** - * Initialize datetime format according to the current environment, e.g. Java 1.7 and Android. - */ - private void initDatetimeFormat() { - String formatWithTimeZone = null; - if (IS_ANDROID) { - if (ANDROID_SDK_VERSION >= 18) { - // The time zone format "ZZZZZ" is available since Android 4.3 (SDK version 18) - formatWithTimeZone = "yyyy-MM-dd'T'HH:mm:ss.SSSZZZZZ"; - } - } else if (JAVA_VERSION >= 1.7) { - // The time zone format "XXX" is available since Java 1.7 - formatWithTimeZone = "yyyy-MM-dd'T'HH:mm:ss.SSSXXX"; - } - if (formatWithTimeZone != null) { - this.datetimeFormat = new SimpleDateFormat(formatWithTimeZone); - // NOTE: Use the system's default time zone (mainly for datetime formatting). - } else { - // Use a common format that works across all systems. - this.datetimeFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); - // Always use the UTC time zone as we are using a constant trailing "Z" here. - this.datetimeFormat.setTimeZone(TimeZone.getTimeZone("UTC")); - } - } - /** * Apply SSL related settings to httpClient according to the current values of * verifyingSsl and sslCaCert. diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/JSON.java b/bindings/java/src/src/main/java/io/cloudsmith/api/JSON.java index a2fb224d..127d83f1 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/JSON.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/JSON.java @@ -15,42 +15,70 @@ import com.google.gson.Gson; import com.google.gson.GsonBuilder; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonNull; import com.google.gson.JsonParseException; -import com.google.gson.JsonPrimitive; -import com.google.gson.JsonSerializationContext; -import com.google.gson.JsonSerializer; import com.google.gson.TypeAdapter; +import com.google.gson.internal.bind.util.ISO8601Utils; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import com.google.gson.JsonElement; +import io.gsonfire.GsonFireBuilder; +import io.gsonfire.TypeSelector; + +import io.cloudsmith.api.models.*; +import okio.ByteString; import java.io.IOException; import java.io.StringReader; import java.lang.reflect.Type; -import java.util.Date; - +import java.text.DateFormat; +import java.text.ParseException; +import java.text.ParsePosition; import java.time.LocalDate; import java.time.OffsetDateTime; import java.time.format.DateTimeFormatter; +import java.util.Date; +import java.util.Map; +import java.util.HashMap; public class JSON { - private ApiClient apiClient; private Gson gson; + private boolean isLenientOnJson = false; + private DateTypeAdapter dateTypeAdapter = new DateTypeAdapter(); + private SqlDateTypeAdapter sqlDateTypeAdapter = new SqlDateTypeAdapter(); + private OffsetDateTimeTypeAdapter offsetDateTimeTypeAdapter = new OffsetDateTimeTypeAdapter(); + private LocalDateTypeAdapter localDateTypeAdapter = new LocalDateTypeAdapter(); + private ByteArrayAdapter byteArrayAdapter = new ByteArrayAdapter(); - /** - * JSON constructor. - * - * @param apiClient An instance of ApiClient - */ - public JSON(ApiClient apiClient) { - this.apiClient = apiClient; - gson = new GsonBuilder() - .registerTypeAdapter(Date.class, new DateAdapter(apiClient)) - .registerTypeAdapter(OffsetDateTime.class, new OffsetDateTimeTypeAdapter()) - .registerTypeAdapter(LocalDate.class, new LocalDateTypeAdapter()) + public static GsonBuilder createGson() { + GsonFireBuilder fireBuilder = new GsonFireBuilder() + ; + GsonBuilder builder = fireBuilder.createGsonBuilder(); + return builder; + } + + private static String getDiscriminatorValue(JsonElement readElement, String discriminatorField) { + JsonElement element = readElement.getAsJsonObject().get(discriminatorField); + if(null == element) { + throw new IllegalArgumentException("missing discriminator field: <" + discriminatorField + ">"); + } + return element.getAsString(); + } + + private static Class getClassByDiscriminator(Map classByDiscriminatorValue, String discriminatorValue) { + Class clazz = (Class) classByDiscriminatorValue.get(discriminatorValue.toUpperCase()); + if(null == clazz) { + throw new IllegalArgumentException("cannot determine model class of name: <" + discriminatorValue + ">"); + } + return clazz; + } + + public JSON() { + gson = createGson() + .registerTypeAdapter(Date.class, dateTypeAdapter) + .registerTypeAdapter(java.sql.Date.class, sqlDateTypeAdapter) + .registerTypeAdapter(OffsetDateTime.class, offsetDateTimeTypeAdapter) + .registerTypeAdapter(LocalDate.class, localDateTypeAdapter) + .registerTypeAdapter(byte[].class, byteArrayAdapter) .create(); } @@ -67,9 +95,16 @@ public Gson getGson() { * Set Gson. * * @param gson Gson + * @return JSON */ - public void setGson(Gson gson) { + public JSON setGson(Gson gson) { this.gson = gson; + return this; + } + + public JSON setLenientOnJson(boolean lenientOnJson) { + isLenientOnJson = lenientOnJson; + return this; } /** @@ -85,15 +120,15 @@ public String serialize(Object obj) { /** * Deserialize the given JSON string to Java object. * - * @param Type - * @param body The JSON string + * @param Type + * @param body The JSON string * @param returnType The type to deserialize into * @return The deserialized Java object */ @SuppressWarnings("unchecked") public T deserialize(String body, Type returnType) { try { - if (apiClient.isLenientOnJson()) { + if (isLenientOnJson) { JsonReader jsonReader = new JsonReader(new StringReader(body)); // see https://google-gson.googlecode.com/svn/trunk/gson/docs/javadocs/com/google/gson/stream/JsonReader.html#setLenient(boolean) jsonReader.setLenient(true); @@ -103,125 +138,257 @@ public T deserialize(String body, Type returnType) { } } catch (JsonParseException e) { // Fallback processing when failed to parse JSON form response body: - // return the response body string directly for the String return type; - // parse response body into date or datetime for the Date return type. + // return the response body string directly for the String return type; if (returnType.equals(String.class)) return (T) body; - else if (returnType.equals(Date.class)) - return (T) apiClient.parseDateOrDatetime(body); - else throw(e); + else throw (e); } } -} - -class DateAdapter implements JsonSerializer, JsonDeserializer { - private final ApiClient apiClient; /** - * Constructor for DateAdapter - * - * @param apiClient Api client + * Gson TypeAdapter for Byte Array type */ - public DateAdapter(ApiClient apiClient) { - super(); - this.apiClient = apiClient; + public class ByteArrayAdapter extends TypeAdapter { + + @Override + public void write(JsonWriter out, byte[] value) throws IOException { + if (value == null) { + out.nullValue(); + } else { + out.value(ByteString.of(value).base64()); + } + } + + @Override + public byte[] read(JsonReader in) throws IOException { + switch (in.peek()) { + case NULL: + in.nextNull(); + return null; + default: + String bytesAsBase64 = in.nextString(); + ByteString byteString = ByteString.decodeBase64(bytesAsBase64); + return byteString.toByteArray(); + } + } } /** - * Serialize - * - * @param src Date - * @param typeOfSrc Type - * @param context Json Serialization Context - * @return Json Element + * Gson TypeAdapter for JSR310 OffsetDateTime type */ - @Override - public JsonElement serialize(Date src, Type typeOfSrc, JsonSerializationContext context) { - if (src == null) { - return JsonNull.INSTANCE; - } else { - return new JsonPrimitive(apiClient.formatDatetime(src)); + public static class OffsetDateTimeTypeAdapter extends TypeAdapter { + + private DateTimeFormatter formatter; + + public OffsetDateTimeTypeAdapter() { + this(DateTimeFormatter.ISO_OFFSET_DATE_TIME); + } + + public OffsetDateTimeTypeAdapter(DateTimeFormatter formatter) { + this.formatter = formatter; + } + + public void setFormat(DateTimeFormatter dateFormat) { + this.formatter = dateFormat; + } + + @Override + public void write(JsonWriter out, OffsetDateTime date) throws IOException { + if (date == null) { + out.nullValue(); + } else { + out.value(formatter.format(date)); + } + } + + @Override + public OffsetDateTime read(JsonReader in) throws IOException { + switch (in.peek()) { + case NULL: + in.nextNull(); + return null; + default: + String date = in.nextString(); + if (date.endsWith("+0000")) { + date = date.substring(0, date.length()-5) + "Z"; + } + return OffsetDateTime.parse(date, formatter); + } } } /** - * Deserialize - * - * @param json Json element - * @param date Type - * @param context Json Serialization Context - * @return Date - * @throws JsonParseException if fail to parse + * Gson TypeAdapter for JSR310 LocalDate type */ - @Override - public Date deserialize(JsonElement json, Type date, JsonDeserializationContext context) throws JsonParseException { - String str = json.getAsJsonPrimitive().getAsString(); - try { - return apiClient.parseDateOrDatetime(str); - } catch (RuntimeException e) { - throw new JsonParseException(e); + public class LocalDateTypeAdapter extends TypeAdapter { + + private DateTimeFormatter formatter; + + public LocalDateTypeAdapter() { + this(DateTimeFormatter.ISO_LOCAL_DATE); } - } -} -/** - * Gson TypeAdapter for jsr310 OffsetDateTime type - */ -class OffsetDateTimeTypeAdapter extends TypeAdapter { + public LocalDateTypeAdapter(DateTimeFormatter formatter) { + this.formatter = formatter; + } - private final DateTimeFormatter formatter = DateTimeFormatter.ISO_OFFSET_DATE_TIME; + public void setFormat(DateTimeFormatter dateFormat) { + this.formatter = dateFormat; + } + + @Override + public void write(JsonWriter out, LocalDate date) throws IOException { + if (date == null) { + out.nullValue(); + } else { + out.value(formatter.format(date)); + } + } - @Override - public void write(JsonWriter out, OffsetDateTime date) throws IOException { - if (date == null) { - out.nullValue(); - } else { - out.value(formatter.format(date)); + @Override + public LocalDate read(JsonReader in) throws IOException { + switch (in.peek()) { + case NULL: + in.nextNull(); + return null; + default: + String date = in.nextString(); + return LocalDate.parse(date, formatter); + } } } - @Override - public OffsetDateTime read(JsonReader in) throws IOException { - switch (in.peek()) { - case NULL: - in.nextNull(); - return null; - default: - String date = in.nextString(); - if (date.endsWith("+0000")) { - date = date.substring(0, date.length()-5) + "Z"; + public JSON setOffsetDateTimeFormat(DateTimeFormatter dateFormat) { + offsetDateTimeTypeAdapter.setFormat(dateFormat); + return this; + } + + public JSON setLocalDateFormat(DateTimeFormatter dateFormat) { + localDateTypeAdapter.setFormat(dateFormat); + return this; + } + + /** + * Gson TypeAdapter for java.sql.Date type + * If the dateFormat is null, a simple "yyyy-MM-dd" format will be used + * (more efficient than SimpleDateFormat). + */ + public static class SqlDateTypeAdapter extends TypeAdapter { + + private DateFormat dateFormat; + + public SqlDateTypeAdapter() { + } + + public SqlDateTypeAdapter(DateFormat dateFormat) { + this.dateFormat = dateFormat; + } + + public void setFormat(DateFormat dateFormat) { + this.dateFormat = dateFormat; + } + + @Override + public void write(JsonWriter out, java.sql.Date date) throws IOException { + if (date == null) { + out.nullValue(); + } else { + String value; + if (dateFormat != null) { + value = dateFormat.format(date); + } else { + value = date.toString(); } + out.value(value); + } + } - return OffsetDateTime.parse(date, formatter); + @Override + public java.sql.Date read(JsonReader in) throws IOException { + switch (in.peek()) { + case NULL: + in.nextNull(); + return null; + default: + String date = in.nextString(); + try { + if (dateFormat != null) { + return new java.sql.Date(dateFormat.parse(date).getTime()); + } + return new java.sql.Date(ISO8601Utils.parse(date, new ParsePosition(0)).getTime()); + } catch (ParseException e) { + throw new JsonParseException(e); + } + } } } -} -/** - * Gson TypeAdapter for jsr310 LocalDate type - */ -class LocalDateTypeAdapter extends TypeAdapter { + /** + * Gson TypeAdapter for java.util.Date type + * If the dateFormat is null, ISO8601Utils will be used. + */ + public static class DateTypeAdapter extends TypeAdapter { - private final DateTimeFormatter formatter = DateTimeFormatter.ISO_LOCAL_DATE; + private DateFormat dateFormat; - @Override - public void write(JsonWriter out, LocalDate date) throws IOException { - if (date == null) { - out.nullValue(); - } else { - out.value(formatter.format(date)); + public DateTypeAdapter() { + } + + public DateTypeAdapter(DateFormat dateFormat) { + this.dateFormat = dateFormat; + } + + public void setFormat(DateFormat dateFormat) { + this.dateFormat = dateFormat; } - } - @Override - public LocalDate read(JsonReader in) throws IOException { - switch (in.peek()) { - case NULL: - in.nextNull(); - return null; - default: - String date = in.nextString(); - return LocalDate.parse(date, formatter); + @Override + public void write(JsonWriter out, Date date) throws IOException { + if (date == null) { + out.nullValue(); + } else { + String value; + if (dateFormat != null) { + value = dateFormat.format(date); + } else { + value = ISO8601Utils.format(date, true); + } + out.value(value); + } + } + + @Override + public Date read(JsonReader in) throws IOException { + try { + switch (in.peek()) { + case NULL: + in.nextNull(); + return null; + default: + String date = in.nextString(); + try { + if (dateFormat != null) { + return dateFormat.parse(date); + } + return ISO8601Utils.parse(date, new ParsePosition(0)); + } catch (ParseException e) { + throw new JsonParseException(e); + } + } + } catch (IllegalArgumentException e) { + throw new JsonParseException(e); + } } } + + public JSON setDateFormat(DateFormat dateFormat) { + dateTypeAdapter.setFormat(dateFormat); + return this; + } + + public JSON setSqlDateFormat(DateFormat dateFormat) { + sqlDateTypeAdapter.setFormat(dateFormat); + return this; + } + } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/apis/BadgesApi.java b/bindings/java/src/src/main/java/io/cloudsmith/api/apis/BadgesApi.java index fa620151..1ef0bc93 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/apis/BadgesApi.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/apis/BadgesApi.java @@ -89,7 +89,7 @@ public void setApiClient(ApiClient apiClient) { */ public com.squareup.okhttp.Call badgesVersionListCall(String owner, String repo, String packageFormat, String packageName, String packageVersion, String packageIdentifiers, String badgeToken, String cacheSeconds, String color, String label, String labelColor, String logoColor, String logoWidth, Boolean render, Boolean shields, Boolean showLatest, String style, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/badges/version/{owner}/{repo}/{package_format}/{package_name}/{package_version}/{package_identifiers}/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) @@ -100,28 +100,29 @@ public com.squareup.okhttp.Call badgesVersionListCall(String owner, String repo, .replaceAll("\\{" + "package_identifiers" + "\\}", apiClient.escapeString(packageIdentifiers.toString())); List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); if (badgeToken != null) - localVarQueryParams.addAll(apiClient.parameterToPairs("", "badge_token", badgeToken)); + localVarQueryParams.addAll(apiClient.parameterToPair("badge_token", badgeToken)); if (cacheSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPairs("", "cacheSeconds", cacheSeconds)); + localVarQueryParams.addAll(apiClient.parameterToPair("cacheSeconds", cacheSeconds)); if (color != null) - localVarQueryParams.addAll(apiClient.parameterToPairs("", "color", color)); + localVarQueryParams.addAll(apiClient.parameterToPair("color", color)); if (label != null) - localVarQueryParams.addAll(apiClient.parameterToPairs("", "label", label)); + localVarQueryParams.addAll(apiClient.parameterToPair("label", label)); if (labelColor != null) - localVarQueryParams.addAll(apiClient.parameterToPairs("", "labelColor", labelColor)); + localVarQueryParams.addAll(apiClient.parameterToPair("labelColor", labelColor)); if (logoColor != null) - localVarQueryParams.addAll(apiClient.parameterToPairs("", "logoColor", logoColor)); + localVarQueryParams.addAll(apiClient.parameterToPair("logoColor", logoColor)); if (logoWidth != null) - localVarQueryParams.addAll(apiClient.parameterToPairs("", "logoWidth", logoWidth)); + localVarQueryParams.addAll(apiClient.parameterToPair("logoWidth", logoWidth)); if (render != null) - localVarQueryParams.addAll(apiClient.parameterToPairs("", "render", render)); + localVarQueryParams.addAll(apiClient.parameterToPair("render", render)); if (shields != null) - localVarQueryParams.addAll(apiClient.parameterToPairs("", "shields", shields)); + localVarQueryParams.addAll(apiClient.parameterToPair("shields", shields)); if (showLatest != null) - localVarQueryParams.addAll(apiClient.parameterToPairs("", "show_latest", showLatest)); + localVarQueryParams.addAll(apiClient.parameterToPair("show_latest", showLatest)); if (style != null) - localVarQueryParams.addAll(apiClient.parameterToPairs("", "style", style)); + localVarQueryParams.addAll(apiClient.parameterToPair("style", style)); Map localVarHeaderParams = new HashMap(); @@ -152,9 +153,9 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { "apikey" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } - + @SuppressWarnings("rawtypes") private com.squareup.okhttp.Call badgesVersionListValidateBeforeCall(String owner, String repo, String packageFormat, String packageName, String packageVersion, String packageIdentifiers, String badgeToken, String cacheSeconds, String color, String label, String labelColor, String logoColor, String logoWidth, Boolean render, Boolean shields, Boolean showLatest, String style, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { @@ -169,7 +170,7 @@ private com.squareup.okhttp.Call badgesVersionListValidateBeforeCall(String owne if (violations.size() == 0) { com.squareup.okhttp.Call call = badgesVersionListCall(owner, repo, packageFormat, packageName, packageVersion, packageIdentifiers, badgeToken, cacheSeconds, color, label, labelColor, logoColor, logoWidth, render, shields, showLatest, style, progressListener, progressRequestListener); return call; - + } else { throw new BeanValidationException((Set) violations); } @@ -180,11 +181,7 @@ private com.squareup.okhttp.Call badgesVersionListValidateBeforeCall(String owne e.printStackTrace(); throw new ApiException(e.getMessage()); } - - - - - + } /** @@ -207,10 +204,12 @@ private com.squareup.okhttp.Call badgesVersionListValidateBeforeCall(String owne * @param shields If true, a shields response will be generated (optional) * @param showLatest If true, for latest version badges a '(latest)' suffix is added (optional) * @param style Override the shields.io badge style value. (optional) + * @return Object * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public void badgesVersionList(String owner, String repo, String packageFormat, String packageName, String packageVersion, String packageIdentifiers, String badgeToken, String cacheSeconds, String color, String label, String labelColor, String logoColor, String logoWidth, Boolean render, Boolean shields, Boolean showLatest, String style) throws ApiException { - badgesVersionListWithHttpInfo(owner, repo, packageFormat, packageName, packageVersion, packageIdentifiers, badgeToken, cacheSeconds, color, label, labelColor, logoColor, logoWidth, render, shields, showLatest, style); + public Object badgesVersionList(String owner, String repo, String packageFormat, String packageName, String packageVersion, String packageIdentifiers, String badgeToken, String cacheSeconds, String color, String label, String labelColor, String logoColor, String logoWidth, Boolean render, Boolean shields, Boolean showLatest, String style) throws ApiException { + ApiResponse resp = badgesVersionListWithHttpInfo(owner, repo, packageFormat, packageName, packageVersion, packageIdentifiers, badgeToken, cacheSeconds, color, label, labelColor, logoColor, logoWidth, render, shields, showLatest, style); + return resp.getData(); } /** @@ -233,12 +232,13 @@ public void badgesVersionList(String owner, String repo, String packageFormat, S * @param shields If true, a shields response will be generated (optional) * @param showLatest If true, for latest version badges a '(latest)' suffix is added (optional) * @param style Override the shields.io badge style value. (optional) - * @return ApiResponse<Void> + * @return ApiResponse<Object> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse badgesVersionListWithHttpInfo( @NotNull String owner, @NotNull String repo, @NotNull String packageFormat, @NotNull String packageName, @NotNull String packageVersion, @NotNull String packageIdentifiers, String badgeToken, String cacheSeconds, String color, String label, String labelColor, String logoColor, String logoWidth, Boolean render, Boolean shields, Boolean showLatest, String style) throws ApiException { + public ApiResponse badgesVersionListWithHttpInfo( @NotNull String owner, @NotNull String repo, @NotNull String packageFormat, @NotNull String packageName, @NotNull String packageVersion, @NotNull String packageIdentifiers, String badgeToken, String cacheSeconds, String color, String label, String labelColor, String logoColor, String logoWidth, Boolean render, Boolean shields, Boolean showLatest, String style) throws ApiException { com.squareup.okhttp.Call call = badgesVersionListValidateBeforeCall(owner, repo, packageFormat, packageName, packageVersion, packageIdentifiers, badgeToken, cacheSeconds, color, label, labelColor, logoColor, logoWidth, render, shields, showLatest, style, null, null); - return apiClient.execute(call); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); } /** @@ -265,7 +265,7 @@ public ApiResponse badgesVersionListWithHttpInfo( @NotNull String owner, * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call badgesVersionListAsync(String owner, String repo, String packageFormat, String packageName, String packageVersion, String packageIdentifiers, String badgeToken, String cacheSeconds, String color, String label, String labelColor, String logoColor, String logoWidth, Boolean render, Boolean shields, Boolean showLatest, String style, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call badgesVersionListAsync(String owner, String repo, String packageFormat, String packageName, String packageVersion, String packageIdentifiers, String badgeToken, String cacheSeconds, String color, String label, String labelColor, String logoColor, String logoWidth, Boolean render, Boolean shields, Boolean showLatest, String style, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -287,7 +287,8 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don } com.squareup.okhttp.Call call = badgesVersionListValidateBeforeCall(owner, repo, packageFormat, packageName, packageVersion, packageIdentifiers, badgeToken, cacheSeconds, color, label, labelColor, logoColor, logoWidth, render, shields, showLatest, style, progressListener, progressRequestListener); - apiClient.executeAsync(call, callback); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); return call; } } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/apis/DistrosApi.java b/bindings/java/src/src/main/java/io/cloudsmith/api/apis/DistrosApi.java index ccd5d73c..47c7f8ef 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/apis/DistrosApi.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/apis/DistrosApi.java @@ -73,11 +73,12 @@ public void setApiClient(ApiClient apiClient) { */ public com.squareup.okhttp.Call distrosListCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/distros/"; List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); @@ -108,9 +109,9 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { "apikey" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } - + @SuppressWarnings("rawtypes") private com.squareup.okhttp.Call distrosListValidateBeforeCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { @@ -125,7 +126,7 @@ private com.squareup.okhttp.Call distrosListValidateBeforeCall(final ProgressRes if (violations.size() == 0) { com.squareup.okhttp.Call call = distrosListCall(progressListener, progressRequestListener); return call; - + } else { throw new BeanValidationException((Set) violations); } @@ -136,11 +137,7 @@ private com.squareup.okhttp.Call distrosListValidateBeforeCall(final ProgressRes e.printStackTrace(); throw new ApiException(e.getMessage()); } - - - - - + } /** @@ -209,12 +206,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don */ public com.squareup.okhttp.Call distrosReadCall(String slug, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/distros/{slug}/" .replaceAll("\\{" + "slug" + "\\}", apiClient.escapeString(slug.toString())); List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); @@ -245,9 +243,9 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { "apikey" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } - + @SuppressWarnings("rawtypes") private com.squareup.okhttp.Call distrosReadValidateBeforeCall(String slug, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { @@ -262,7 +260,7 @@ private com.squareup.okhttp.Call distrosReadValidateBeforeCall(String slug, fina if (violations.size() == 0) { com.squareup.okhttp.Call call = distrosReadCall(slug, progressListener, progressRequestListener); return call; - + } else { throw new BeanValidationException((Set) violations); } @@ -273,11 +271,7 @@ private com.squareup.okhttp.Call distrosReadValidateBeforeCall(String slug, fina e.printStackTrace(); throw new ApiException(e.getMessage()); } - - - - - + } /** diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/apis/EntitlementsApi.java b/bindings/java/src/src/main/java/io/cloudsmith/api/apis/EntitlementsApi.java index 4dadf480..e15654ad 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/apis/EntitlementsApi.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/apis/EntitlementsApi.java @@ -83,15 +83,16 @@ public void setApiClient(ApiClient apiClient) { */ public com.squareup.okhttp.Call entitlementsCreateCall(String owner, String repo, Boolean showTokens, EntitlementsCreate data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = data; - + // create path and map variables String localVarPath = "/entitlements/{owner}/{repo}/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "repo" + "\\}", apiClient.escapeString(repo.toString())); List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); if (showTokens != null) - localVarQueryParams.addAll(apiClient.parameterToPairs("", "show_tokens", showTokens)); + localVarQueryParams.addAll(apiClient.parameterToPair("show_tokens", showTokens)); Map localVarHeaderParams = new HashMap(); @@ -122,9 +123,9 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { "apikey" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } - + @SuppressWarnings("rawtypes") private com.squareup.okhttp.Call entitlementsCreateValidateBeforeCall(String owner, String repo, Boolean showTokens, EntitlementsCreate data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { @@ -139,7 +140,7 @@ private com.squareup.okhttp.Call entitlementsCreateValidateBeforeCall(String own if (violations.size() == 0) { com.squareup.okhttp.Call call = entitlementsCreateCall(owner, repo, showTokens, data, progressListener, progressRequestListener); return call; - + } else { throw new BeanValidationException((Set) violations); } @@ -150,11 +151,7 @@ private com.squareup.okhttp.Call entitlementsCreateValidateBeforeCall(String own e.printStackTrace(); throw new ApiException(e.getMessage()); } - - - - - + } /** @@ -237,7 +234,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don */ public com.squareup.okhttp.Call entitlementsDeleteCall(String owner, String repo, String identifier, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/entitlements/{owner}/{repo}/{identifier}/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) @@ -245,6 +242,7 @@ public com.squareup.okhttp.Call entitlementsDeleteCall(String owner, String repo .replaceAll("\\{" + "identifier" + "\\}", apiClient.escapeString(identifier.toString())); List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); @@ -275,9 +273,9 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { "apikey" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } - + @SuppressWarnings("rawtypes") private com.squareup.okhttp.Call entitlementsDeleteValidateBeforeCall(String owner, String repo, String identifier, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { @@ -292,7 +290,7 @@ private com.squareup.okhttp.Call entitlementsDeleteValidateBeforeCall(String own if (violations.size() == 0) { com.squareup.okhttp.Call call = entitlementsDeleteCall(owner, repo, identifier, progressListener, progressRequestListener); return call; - + } else { throw new BeanValidationException((Set) violations); } @@ -303,11 +301,7 @@ private com.squareup.okhttp.Call entitlementsDeleteValidateBeforeCall(String own e.printStackTrace(); throw new ApiException(e.getMessage()); } - - - - - + } /** @@ -383,7 +377,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don */ public com.squareup.okhttp.Call entitlementsDisableCall(String owner, String repo, String identifier, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/entitlements/{owner}/{repo}/{identifier}/disable/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) @@ -391,6 +385,7 @@ public com.squareup.okhttp.Call entitlementsDisableCall(String owner, String rep .replaceAll("\\{" + "identifier" + "\\}", apiClient.escapeString(identifier.toString())); List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); @@ -421,9 +416,9 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { "apikey" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } - + @SuppressWarnings("rawtypes") private com.squareup.okhttp.Call entitlementsDisableValidateBeforeCall(String owner, String repo, String identifier, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { @@ -438,7 +433,7 @@ private com.squareup.okhttp.Call entitlementsDisableValidateBeforeCall(String ow if (violations.size() == 0) { com.squareup.okhttp.Call call = entitlementsDisableCall(owner, repo, identifier, progressListener, progressRequestListener); return call; - + } else { throw new BeanValidationException((Set) violations); } @@ -449,11 +444,7 @@ private com.squareup.okhttp.Call entitlementsDisableValidateBeforeCall(String ow e.printStackTrace(); throw new ApiException(e.getMessage()); } - - - - - + } /** @@ -529,7 +520,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don */ public com.squareup.okhttp.Call entitlementsEnableCall(String owner, String repo, String identifier, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/entitlements/{owner}/{repo}/{identifier}/enable/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) @@ -537,6 +528,7 @@ public com.squareup.okhttp.Call entitlementsEnableCall(String owner, String repo .replaceAll("\\{" + "identifier" + "\\}", apiClient.escapeString(identifier.toString())); List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); @@ -567,9 +559,9 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { "apikey" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } - + @SuppressWarnings("rawtypes") private com.squareup.okhttp.Call entitlementsEnableValidateBeforeCall(String owner, String repo, String identifier, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { @@ -584,7 +576,7 @@ private com.squareup.okhttp.Call entitlementsEnableValidateBeforeCall(String own if (violations.size() == 0) { com.squareup.okhttp.Call call = entitlementsEnableCall(owner, repo, identifier, progressListener, progressRequestListener); return call; - + } else { throw new BeanValidationException((Set) violations); } @@ -595,11 +587,7 @@ private com.squareup.okhttp.Call entitlementsEnableValidateBeforeCall(String own e.printStackTrace(); throw new ApiException(e.getMessage()); } - - - - - + } /** @@ -677,19 +665,20 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don */ public com.squareup.okhttp.Call entitlementsListCall(String owner, String repo, Integer page, Integer pageSize, Boolean showTokens, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/entitlements/{owner}/{repo}/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "repo" + "\\}", apiClient.escapeString(repo.toString())); List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); if (page != null) - localVarQueryParams.addAll(apiClient.parameterToPairs("", "page", page)); + localVarQueryParams.addAll(apiClient.parameterToPair("page", page)); if (pageSize != null) - localVarQueryParams.addAll(apiClient.parameterToPairs("", "page_size", pageSize)); + localVarQueryParams.addAll(apiClient.parameterToPair("page_size", pageSize)); if (showTokens != null) - localVarQueryParams.addAll(apiClient.parameterToPairs("", "show_tokens", showTokens)); + localVarQueryParams.addAll(apiClient.parameterToPair("show_tokens", showTokens)); Map localVarHeaderParams = new HashMap(); @@ -720,9 +709,9 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { "apikey" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } - + @SuppressWarnings("rawtypes") private com.squareup.okhttp.Call entitlementsListValidateBeforeCall(String owner, String repo, Integer page, Integer pageSize, Boolean showTokens, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { @@ -737,7 +726,7 @@ private com.squareup.okhttp.Call entitlementsListValidateBeforeCall(String owner if (violations.size() == 0) { com.squareup.okhttp.Call call = entitlementsListCall(owner, repo, page, pageSize, showTokens, progressListener, progressRequestListener); return call; - + } else { throw new BeanValidationException((Set) violations); } @@ -748,11 +737,7 @@ private com.squareup.okhttp.Call entitlementsListValidateBeforeCall(String owner e.printStackTrace(); throw new ApiException(e.getMessage()); } - - - - - + } /** @@ -840,7 +825,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don */ public com.squareup.okhttp.Call entitlementsPartialUpdateCall(String owner, String repo, String identifier, Boolean showTokens, EntitlementsPartialUpdate data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = data; - + // create path and map variables String localVarPath = "/entitlements/{owner}/{repo}/{identifier}/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) @@ -848,8 +833,9 @@ public com.squareup.okhttp.Call entitlementsPartialUpdateCall(String owner, Stri .replaceAll("\\{" + "identifier" + "\\}", apiClient.escapeString(identifier.toString())); List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); if (showTokens != null) - localVarQueryParams.addAll(apiClient.parameterToPairs("", "show_tokens", showTokens)); + localVarQueryParams.addAll(apiClient.parameterToPair("show_tokens", showTokens)); Map localVarHeaderParams = new HashMap(); @@ -880,9 +866,9 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { "apikey" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } - + @SuppressWarnings("rawtypes") private com.squareup.okhttp.Call entitlementsPartialUpdateValidateBeforeCall(String owner, String repo, String identifier, Boolean showTokens, EntitlementsPartialUpdate data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { @@ -897,7 +883,7 @@ private com.squareup.okhttp.Call entitlementsPartialUpdateValidateBeforeCall(Str if (violations.size() == 0) { com.squareup.okhttp.Call call = entitlementsPartialUpdateCall(owner, repo, identifier, showTokens, data, progressListener, progressRequestListener); return call; - + } else { throw new BeanValidationException((Set) violations); } @@ -908,11 +894,7 @@ private com.squareup.okhttp.Call entitlementsPartialUpdateValidateBeforeCall(Str e.printStackTrace(); throw new ApiException(e.getMessage()); } - - - - - + } /** @@ -999,7 +981,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don */ public com.squareup.okhttp.Call entitlementsReadCall(String owner, String repo, String identifier, Boolean showTokens, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/entitlements/{owner}/{repo}/{identifier}/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) @@ -1007,8 +989,9 @@ public com.squareup.okhttp.Call entitlementsReadCall(String owner, String repo, .replaceAll("\\{" + "identifier" + "\\}", apiClient.escapeString(identifier.toString())); List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); if (showTokens != null) - localVarQueryParams.addAll(apiClient.parameterToPairs("", "show_tokens", showTokens)); + localVarQueryParams.addAll(apiClient.parameterToPair("show_tokens", showTokens)); Map localVarHeaderParams = new HashMap(); @@ -1039,9 +1022,9 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { "apikey" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } - + @SuppressWarnings("rawtypes") private com.squareup.okhttp.Call entitlementsReadValidateBeforeCall(String owner, String repo, String identifier, Boolean showTokens, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { @@ -1056,7 +1039,7 @@ private com.squareup.okhttp.Call entitlementsReadValidateBeforeCall(String owner if (violations.size() == 0) { com.squareup.okhttp.Call call = entitlementsReadCall(owner, repo, identifier, showTokens, progressListener, progressRequestListener); return call; - + } else { throw new BeanValidationException((Set) violations); } @@ -1067,11 +1050,7 @@ private com.squareup.okhttp.Call entitlementsReadValidateBeforeCall(String owner e.printStackTrace(); throw new ApiException(e.getMessage()); } - - - - - + } /** @@ -1156,7 +1135,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don */ public com.squareup.okhttp.Call entitlementsRefreshCall(String owner, String repo, String identifier, Boolean showTokens, EntitlementsRefresh data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = data; - + // create path and map variables String localVarPath = "/entitlements/{owner}/{repo}/{identifier}/refresh/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) @@ -1164,8 +1143,9 @@ public com.squareup.okhttp.Call entitlementsRefreshCall(String owner, String rep .replaceAll("\\{" + "identifier" + "\\}", apiClient.escapeString(identifier.toString())); List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); if (showTokens != null) - localVarQueryParams.addAll(apiClient.parameterToPairs("", "show_tokens", showTokens)); + localVarQueryParams.addAll(apiClient.parameterToPair("show_tokens", showTokens)); Map localVarHeaderParams = new HashMap(); @@ -1196,9 +1176,9 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { "apikey" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } - + @SuppressWarnings("rawtypes") private com.squareup.okhttp.Call entitlementsRefreshValidateBeforeCall(String owner, String repo, String identifier, Boolean showTokens, EntitlementsRefresh data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { @@ -1213,7 +1193,7 @@ private com.squareup.okhttp.Call entitlementsRefreshValidateBeforeCall(String ow if (violations.size() == 0) { com.squareup.okhttp.Call call = entitlementsRefreshCall(owner, repo, identifier, showTokens, data, progressListener, progressRequestListener); return call; - + } else { throw new BeanValidationException((Set) violations); } @@ -1224,11 +1204,7 @@ private com.squareup.okhttp.Call entitlementsRefreshValidateBeforeCall(String ow e.printStackTrace(); throw new ApiException(e.getMessage()); } - - - - - + } /** @@ -1315,7 +1291,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don */ public com.squareup.okhttp.Call entitlementsResetCall(String owner, String repo, String identifier, Boolean showTokens, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/entitlements/{owner}/{repo}/{identifier}/reset/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) @@ -1323,8 +1299,9 @@ public com.squareup.okhttp.Call entitlementsResetCall(String owner, String repo, .replaceAll("\\{" + "identifier" + "\\}", apiClient.escapeString(identifier.toString())); List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); if (showTokens != null) - localVarQueryParams.addAll(apiClient.parameterToPairs("", "show_tokens", showTokens)); + localVarQueryParams.addAll(apiClient.parameterToPair("show_tokens", showTokens)); Map localVarHeaderParams = new HashMap(); @@ -1355,9 +1332,9 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { "apikey" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } - + @SuppressWarnings("rawtypes") private com.squareup.okhttp.Call entitlementsResetValidateBeforeCall(String owner, String repo, String identifier, Boolean showTokens, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { @@ -1372,7 +1349,7 @@ private com.squareup.okhttp.Call entitlementsResetValidateBeforeCall(String owne if (violations.size() == 0) { com.squareup.okhttp.Call call = entitlementsResetCall(owner, repo, identifier, showTokens, progressListener, progressRequestListener); return call; - + } else { throw new BeanValidationException((Set) violations); } @@ -1383,11 +1360,7 @@ private com.squareup.okhttp.Call entitlementsResetValidateBeforeCall(String owne e.printStackTrace(); throw new ApiException(e.getMessage()); } - - - - - + } /** @@ -1467,15 +1440,16 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don */ public com.squareup.okhttp.Call entitlementsSyncCall(String owner, String repo, Boolean showTokens, EntitlementsSync data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = data; - + // create path and map variables String localVarPath = "/entitlements/{owner}/{repo}/sync/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "repo" + "\\}", apiClient.escapeString(repo.toString())); List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); if (showTokens != null) - localVarQueryParams.addAll(apiClient.parameterToPairs("", "show_tokens", showTokens)); + localVarQueryParams.addAll(apiClient.parameterToPair("show_tokens", showTokens)); Map localVarHeaderParams = new HashMap(); @@ -1506,9 +1480,9 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { "apikey" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } - + @SuppressWarnings("rawtypes") private com.squareup.okhttp.Call entitlementsSyncValidateBeforeCall(String owner, String repo, Boolean showTokens, EntitlementsSync data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { @@ -1523,7 +1497,7 @@ private com.squareup.okhttp.Call entitlementsSyncValidateBeforeCall(String owner if (violations.size() == 0) { com.squareup.okhttp.Call call = entitlementsSyncCall(owner, repo, showTokens, data, progressListener, progressRequestListener); return call; - + } else { throw new BeanValidationException((Set) violations); } @@ -1534,11 +1508,7 @@ private com.squareup.okhttp.Call entitlementsSyncValidateBeforeCall(String owner e.printStackTrace(); throw new ApiException(e.getMessage()); } - - - - - + } /** diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/apis/FilesApi.java b/bindings/java/src/src/main/java/io/cloudsmith/api/apis/FilesApi.java index 0b4d991e..d8caa73b 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/apis/FilesApi.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/apis/FilesApi.java @@ -82,7 +82,7 @@ public void setApiClient(ApiClient apiClient) { */ public com.squareup.okhttp.Call filesAbortCall(String owner, String repo, String identifier, FilesAbort data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = data; - + // create path and map variables String localVarPath = "/files/{owner}/{repo}/{identifier}/abort/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) @@ -90,6 +90,7 @@ public com.squareup.okhttp.Call filesAbortCall(String owner, String repo, String .replaceAll("\\{" + "identifier" + "\\}", apiClient.escapeString(identifier.toString())); List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); @@ -120,9 +121,9 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { "apikey" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } - + @SuppressWarnings("rawtypes") private com.squareup.okhttp.Call filesAbortValidateBeforeCall(String owner, String repo, String identifier, FilesAbort data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { @@ -137,7 +138,7 @@ private com.squareup.okhttp.Call filesAbortValidateBeforeCall(String owner, Stri if (violations.size() == 0) { com.squareup.okhttp.Call call = filesAbortCall(owner, repo, identifier, data, progressListener, progressRequestListener); return call; - + } else { throw new BeanValidationException((Set) violations); } @@ -148,11 +149,7 @@ private com.squareup.okhttp.Call filesAbortValidateBeforeCall(String owner, Stri e.printStackTrace(); throw new ApiException(e.getMessage()); } - - - - - + } /** @@ -232,7 +229,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don */ public com.squareup.okhttp.Call filesCompleteCall(String owner, String repo, String identifier, FilesComplete data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = data; - + // create path and map variables String localVarPath = "/files/{owner}/{repo}/{identifier}/complete/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) @@ -240,6 +237,7 @@ public com.squareup.okhttp.Call filesCompleteCall(String owner, String repo, Str .replaceAll("\\{" + "identifier" + "\\}", apiClient.escapeString(identifier.toString())); List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); @@ -270,9 +268,9 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { "apikey" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } - + @SuppressWarnings("rawtypes") private com.squareup.okhttp.Call filesCompleteValidateBeforeCall(String owner, String repo, String identifier, FilesComplete data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { @@ -287,7 +285,7 @@ private com.squareup.okhttp.Call filesCompleteValidateBeforeCall(String owner, S if (violations.size() == 0) { com.squareup.okhttp.Call call = filesCompleteCall(owner, repo, identifier, data, progressListener, progressRequestListener); return call; - + } else { throw new BeanValidationException((Set) violations); } @@ -298,11 +296,7 @@ private com.squareup.okhttp.Call filesCompleteValidateBeforeCall(String owner, S e.printStackTrace(); throw new ApiException(e.getMessage()); } - - - - - + } /** @@ -385,13 +379,14 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don */ public com.squareup.okhttp.Call filesCreateCall(String owner, String repo, FilesCreate data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = data; - + // create path and map variables String localVarPath = "/files/{owner}/{repo}/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "repo" + "\\}", apiClient.escapeString(repo.toString())); List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); @@ -422,9 +417,9 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { "apikey" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } - + @SuppressWarnings("rawtypes") private com.squareup.okhttp.Call filesCreateValidateBeforeCall(String owner, String repo, FilesCreate data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { @@ -439,7 +434,7 @@ private com.squareup.okhttp.Call filesCreateValidateBeforeCall(String owner, Str if (violations.size() == 0) { com.squareup.okhttp.Call call = filesCreateCall(owner, repo, data, progressListener, progressRequestListener); return call; - + } else { throw new BeanValidationException((Set) violations); } @@ -450,11 +445,7 @@ private com.squareup.okhttp.Call filesCreateValidateBeforeCall(String owner, Str e.printStackTrace(); throw new ApiException(e.getMessage()); } - - - - - + } /** @@ -534,7 +525,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don */ public com.squareup.okhttp.Call filesInfoCall(String owner, String repo, String identifier, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/files/{owner}/{repo}/{identifier}/info/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) @@ -542,6 +533,7 @@ public com.squareup.okhttp.Call filesInfoCall(String owner, String repo, String .replaceAll("\\{" + "identifier" + "\\}", apiClient.escapeString(identifier.toString())); List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); @@ -572,9 +564,9 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { "apikey" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } - + @SuppressWarnings("rawtypes") private com.squareup.okhttp.Call filesInfoValidateBeforeCall(String owner, String repo, String identifier, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { @@ -589,7 +581,7 @@ private com.squareup.okhttp.Call filesInfoValidateBeforeCall(String owner, Strin if (violations.size() == 0) { com.squareup.okhttp.Call call = filesInfoCall(owner, repo, identifier, progressListener, progressRequestListener); return call; - + } else { throw new BeanValidationException((Set) violations); } @@ -600,11 +592,7 @@ private com.squareup.okhttp.Call filesInfoValidateBeforeCall(String owner, Strin e.printStackTrace(); throw new ApiException(e.getMessage()); } - - - - - + } /** @@ -684,13 +672,14 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don */ public com.squareup.okhttp.Call filesValidateCall(String owner, String repo, FilesValidate data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = data; - + // create path and map variables String localVarPath = "/files/{owner}/{repo}/validate/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "repo" + "\\}", apiClient.escapeString(repo.toString())); List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); @@ -721,9 +710,9 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { "apikey" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } - + @SuppressWarnings("rawtypes") private com.squareup.okhttp.Call filesValidateValidateBeforeCall(String owner, String repo, FilesValidate data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { @@ -738,7 +727,7 @@ private com.squareup.okhttp.Call filesValidateValidateBeforeCall(String owner, S if (violations.size() == 0) { com.squareup.okhttp.Call call = filesValidateCall(owner, repo, data, progressListener, progressRequestListener); return call; - + } else { throw new BeanValidationException((Set) violations); } @@ -749,11 +738,7 @@ private com.squareup.okhttp.Call filesValidateValidateBeforeCall(String owner, S e.printStackTrace(); throw new ApiException(e.getMessage()); } - - - - - + } /** diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/apis/FormatsApi.java b/bindings/java/src/src/main/java/io/cloudsmith/api/apis/FormatsApi.java index 3a3126a8..a44ecfde 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/apis/FormatsApi.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/apis/FormatsApi.java @@ -73,11 +73,12 @@ public void setApiClient(ApiClient apiClient) { */ public com.squareup.okhttp.Call formatsListCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/formats/"; List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); @@ -108,9 +109,9 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { "apikey" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } - + @SuppressWarnings("rawtypes") private com.squareup.okhttp.Call formatsListValidateBeforeCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { @@ -125,7 +126,7 @@ private com.squareup.okhttp.Call formatsListValidateBeforeCall(final ProgressRes if (violations.size() == 0) { com.squareup.okhttp.Call call = formatsListCall(progressListener, progressRequestListener); return call; - + } else { throw new BeanValidationException((Set) violations); } @@ -136,11 +137,7 @@ private com.squareup.okhttp.Call formatsListValidateBeforeCall(final ProgressRes e.printStackTrace(); throw new ApiException(e.getMessage()); } - - - - - + } /** @@ -209,12 +206,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don */ public com.squareup.okhttp.Call formatsReadCall(String slug, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/formats/{slug}/" .replaceAll("\\{" + "slug" + "\\}", apiClient.escapeString(slug.toString())); List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); @@ -245,9 +243,9 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { "apikey" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } - + @SuppressWarnings("rawtypes") private com.squareup.okhttp.Call formatsReadValidateBeforeCall(String slug, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { @@ -262,7 +260,7 @@ private com.squareup.okhttp.Call formatsReadValidateBeforeCall(String slug, fina if (violations.size() == 0) { com.squareup.okhttp.Call call = formatsReadCall(slug, progressListener, progressRequestListener); return call; - + } else { throw new BeanValidationException((Set) violations); } @@ -273,11 +271,7 @@ private com.squareup.okhttp.Call formatsReadValidateBeforeCall(String slug, fina e.printStackTrace(); throw new ApiException(e.getMessage()); } - - - - - + } /** diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/apis/MetricsApi.java b/bindings/java/src/src/main/java/io/cloudsmith/api/apis/MetricsApi.java index 13fe1886..437a12e5 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/apis/MetricsApi.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/apis/MetricsApi.java @@ -80,22 +80,23 @@ public void setApiClient(ApiClient apiClient) { */ public com.squareup.okhttp.Call metricsEntitlementsListCall(String owner, Integer page, Integer pageSize, String finish, String start, String tokens, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/metrics/entitlements/{owner}/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())); List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); if (page != null) - localVarQueryParams.addAll(apiClient.parameterToPairs("", "page", page)); + localVarQueryParams.addAll(apiClient.parameterToPair("page", page)); if (pageSize != null) - localVarQueryParams.addAll(apiClient.parameterToPairs("", "page_size", pageSize)); + localVarQueryParams.addAll(apiClient.parameterToPair("page_size", pageSize)); if (finish != null) - localVarQueryParams.addAll(apiClient.parameterToPairs("", "finish", finish)); + localVarQueryParams.addAll(apiClient.parameterToPair("finish", finish)); if (start != null) - localVarQueryParams.addAll(apiClient.parameterToPairs("", "start", start)); + localVarQueryParams.addAll(apiClient.parameterToPair("start", start)); if (tokens != null) - localVarQueryParams.addAll(apiClient.parameterToPairs("", "tokens", tokens)); + localVarQueryParams.addAll(apiClient.parameterToPair("tokens", tokens)); Map localVarHeaderParams = new HashMap(); @@ -126,9 +127,9 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { "apikey" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } - + @SuppressWarnings("rawtypes") private com.squareup.okhttp.Call metricsEntitlementsListValidateBeforeCall(String owner, Integer page, Integer pageSize, String finish, String start, String tokens, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { @@ -143,7 +144,7 @@ private com.squareup.okhttp.Call metricsEntitlementsListValidateBeforeCall(Strin if (violations.size() == 0) { com.squareup.okhttp.Call call = metricsEntitlementsListCall(owner, page, pageSize, finish, start, tokens, progressListener, progressRequestListener); return call; - + } else { throw new BeanValidationException((Set) violations); } @@ -154,11 +155,7 @@ private com.squareup.okhttp.Call metricsEntitlementsListValidateBeforeCall(Strin e.printStackTrace(); throw new ApiException(e.getMessage()); } - - - - - + } /** @@ -251,23 +248,24 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don */ public com.squareup.okhttp.Call metricsEntitlementsList0Call(String owner, String repo, Integer page, Integer pageSize, String finish, String start, String tokens, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/metrics/entitlements/{owner}/{repo}/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "repo" + "\\}", apiClient.escapeString(repo.toString())); List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); if (page != null) - localVarQueryParams.addAll(apiClient.parameterToPairs("", "page", page)); + localVarQueryParams.addAll(apiClient.parameterToPair("page", page)); if (pageSize != null) - localVarQueryParams.addAll(apiClient.parameterToPairs("", "page_size", pageSize)); + localVarQueryParams.addAll(apiClient.parameterToPair("page_size", pageSize)); if (finish != null) - localVarQueryParams.addAll(apiClient.parameterToPairs("", "finish", finish)); + localVarQueryParams.addAll(apiClient.parameterToPair("finish", finish)); if (start != null) - localVarQueryParams.addAll(apiClient.parameterToPairs("", "start", start)); + localVarQueryParams.addAll(apiClient.parameterToPair("start", start)); if (tokens != null) - localVarQueryParams.addAll(apiClient.parameterToPairs("", "tokens", tokens)); + localVarQueryParams.addAll(apiClient.parameterToPair("tokens", tokens)); Map localVarHeaderParams = new HashMap(); @@ -298,9 +296,9 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { "apikey" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } - + @SuppressWarnings("rawtypes") private com.squareup.okhttp.Call metricsEntitlementsList0ValidateBeforeCall(String owner, String repo, Integer page, Integer pageSize, String finish, String start, String tokens, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { @@ -315,7 +313,7 @@ private com.squareup.okhttp.Call metricsEntitlementsList0ValidateBeforeCall(Stri if (violations.size() == 0) { com.squareup.okhttp.Call call = metricsEntitlementsList0Call(owner, repo, page, pageSize, finish, start, tokens, progressListener, progressRequestListener); return call; - + } else { throw new BeanValidationException((Set) violations); } @@ -326,11 +324,7 @@ private com.squareup.okhttp.Call metricsEntitlementsList0ValidateBeforeCall(Stri e.printStackTrace(); throw new ApiException(e.getMessage()); } - - - - - + } /** @@ -426,23 +420,24 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don */ public com.squareup.okhttp.Call metricsPackagesListCall(String owner, String repo, Integer page, Integer pageSize, String finish, String packages, String start, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/metrics/packages/{owner}/{repo}/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "repo" + "\\}", apiClient.escapeString(repo.toString())); List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); if (page != null) - localVarQueryParams.addAll(apiClient.parameterToPairs("", "page", page)); + localVarQueryParams.addAll(apiClient.parameterToPair("page", page)); if (pageSize != null) - localVarQueryParams.addAll(apiClient.parameterToPairs("", "page_size", pageSize)); + localVarQueryParams.addAll(apiClient.parameterToPair("page_size", pageSize)); if (finish != null) - localVarQueryParams.addAll(apiClient.parameterToPairs("", "finish", finish)); + localVarQueryParams.addAll(apiClient.parameterToPair("finish", finish)); if (packages != null) - localVarQueryParams.addAll(apiClient.parameterToPairs("", "packages", packages)); + localVarQueryParams.addAll(apiClient.parameterToPair("packages", packages)); if (start != null) - localVarQueryParams.addAll(apiClient.parameterToPairs("", "start", start)); + localVarQueryParams.addAll(apiClient.parameterToPair("start", start)); Map localVarHeaderParams = new HashMap(); @@ -473,9 +468,9 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { "apikey" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } - + @SuppressWarnings("rawtypes") private com.squareup.okhttp.Call metricsPackagesListValidateBeforeCall(String owner, String repo, Integer page, Integer pageSize, String finish, String packages, String start, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { @@ -490,7 +485,7 @@ private com.squareup.okhttp.Call metricsPackagesListValidateBeforeCall(String ow if (violations.size() == 0) { com.squareup.okhttp.Call call = metricsPackagesListCall(owner, repo, page, pageSize, finish, packages, start, progressListener, progressRequestListener); return call; - + } else { throw new BeanValidationException((Set) violations); } @@ -501,11 +496,7 @@ private com.squareup.okhttp.Call metricsPackagesListValidateBeforeCall(String ow e.printStackTrace(); throw new ApiException(e.getMessage()); } - - - - - + } /** diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/apis/NamespacesApi.java b/bindings/java/src/src/main/java/io/cloudsmith/api/apis/NamespacesApi.java index 90d0301e..48db5be9 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/apis/NamespacesApi.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/apis/NamespacesApi.java @@ -75,15 +75,16 @@ public void setApiClient(ApiClient apiClient) { */ public com.squareup.okhttp.Call namespacesListCall(Integer page, Integer pageSize, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/namespaces/"; List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); if (page != null) - localVarQueryParams.addAll(apiClient.parameterToPairs("", "page", page)); + localVarQueryParams.addAll(apiClient.parameterToPair("page", page)); if (pageSize != null) - localVarQueryParams.addAll(apiClient.parameterToPairs("", "page_size", pageSize)); + localVarQueryParams.addAll(apiClient.parameterToPair("page_size", pageSize)); Map localVarHeaderParams = new HashMap(); @@ -114,9 +115,9 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { "apikey" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } - + @SuppressWarnings("rawtypes") private com.squareup.okhttp.Call namespacesListValidateBeforeCall(Integer page, Integer pageSize, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { @@ -131,7 +132,7 @@ private com.squareup.okhttp.Call namespacesListValidateBeforeCall(Integer page, if (violations.size() == 0) { com.squareup.okhttp.Call call = namespacesListCall(page, pageSize, progressListener, progressRequestListener); return call; - + } else { throw new BeanValidationException((Set) violations); } @@ -142,11 +143,7 @@ private com.squareup.okhttp.Call namespacesListValidateBeforeCall(Integer page, e.printStackTrace(); throw new ApiException(e.getMessage()); } - - - - - + } /** @@ -221,12 +218,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don */ public com.squareup.okhttp.Call namespacesReadCall(String slug, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/namespaces/{slug}/" .replaceAll("\\{" + "slug" + "\\}", apiClient.escapeString(slug.toString())); List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); @@ -257,9 +255,9 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { "apikey" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } - + @SuppressWarnings("rawtypes") private com.squareup.okhttp.Call namespacesReadValidateBeforeCall(String slug, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { @@ -274,7 +272,7 @@ private com.squareup.okhttp.Call namespacesReadValidateBeforeCall(String slug, f if (violations.size() == 0) { com.squareup.okhttp.Call call = namespacesReadCall(slug, progressListener, progressRequestListener); return call; - + } else { throw new BeanValidationException((Set) violations); } @@ -285,11 +283,7 @@ private com.squareup.okhttp.Call namespacesReadValidateBeforeCall(String slug, f e.printStackTrace(); throw new ApiException(e.getMessage()); } - - - - - + } /** diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/apis/OrgsApi.java b/bindings/java/src/src/main/java/io/cloudsmith/api/apis/OrgsApi.java index 8d511e2a..66595c6a 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/apis/OrgsApi.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/apis/OrgsApi.java @@ -76,15 +76,16 @@ public void setApiClient(ApiClient apiClient) { */ public com.squareup.okhttp.Call orgsListCall(Integer page, Integer pageSize, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/orgs/"; List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); if (page != null) - localVarQueryParams.addAll(apiClient.parameterToPairs("", "page", page)); + localVarQueryParams.addAll(apiClient.parameterToPair("page", page)); if (pageSize != null) - localVarQueryParams.addAll(apiClient.parameterToPairs("", "page_size", pageSize)); + localVarQueryParams.addAll(apiClient.parameterToPair("page_size", pageSize)); Map localVarHeaderParams = new HashMap(); @@ -115,9 +116,9 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { "apikey" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } - + @SuppressWarnings("rawtypes") private com.squareup.okhttp.Call orgsListValidateBeforeCall(Integer page, Integer pageSize, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { @@ -132,7 +133,7 @@ private com.squareup.okhttp.Call orgsListValidateBeforeCall(Integer page, Intege if (violations.size() == 0) { com.squareup.okhttp.Call call = orgsListCall(page, pageSize, progressListener, progressRequestListener); return call; - + } else { throw new BeanValidationException((Set) violations); } @@ -143,11 +144,7 @@ private com.squareup.okhttp.Call orgsListValidateBeforeCall(Integer page, Intege e.printStackTrace(); throw new ApiException(e.getMessage()); } - - - - - + } /** @@ -224,16 +221,17 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don */ public com.squareup.okhttp.Call orgsMembersListCall(String org, Integer page, Integer pageSize, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/orgs/{org}/members/" .replaceAll("\\{" + "org" + "\\}", apiClient.escapeString(org.toString())); List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); if (page != null) - localVarQueryParams.addAll(apiClient.parameterToPairs("", "page", page)); + localVarQueryParams.addAll(apiClient.parameterToPair("page", page)); if (pageSize != null) - localVarQueryParams.addAll(apiClient.parameterToPairs("", "page_size", pageSize)); + localVarQueryParams.addAll(apiClient.parameterToPair("page_size", pageSize)); Map localVarHeaderParams = new HashMap(); @@ -264,9 +262,9 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { "apikey" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } - + @SuppressWarnings("rawtypes") private com.squareup.okhttp.Call orgsMembersListValidateBeforeCall(String org, Integer page, Integer pageSize, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { @@ -281,7 +279,7 @@ private com.squareup.okhttp.Call orgsMembersListValidateBeforeCall(String org, I if (violations.size() == 0) { com.squareup.okhttp.Call call = orgsMembersListCall(org, page, pageSize, progressListener, progressRequestListener); return call; - + } else { throw new BeanValidationException((Set) violations); } @@ -292,11 +290,7 @@ private com.squareup.okhttp.Call orgsMembersListValidateBeforeCall(String org, I e.printStackTrace(); throw new ApiException(e.getMessage()); } - - - - - + } /** @@ -375,13 +369,14 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don */ public com.squareup.okhttp.Call orgsMembersReadCall(String org, String member, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/orgs/{org}/members/{member}/" .replaceAll("\\{" + "org" + "\\}", apiClient.escapeString(org.toString())) .replaceAll("\\{" + "member" + "\\}", apiClient.escapeString(member.toString())); List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); @@ -412,9 +407,9 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { "apikey" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } - + @SuppressWarnings("rawtypes") private com.squareup.okhttp.Call orgsMembersReadValidateBeforeCall(String org, String member, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { @@ -429,7 +424,7 @@ private com.squareup.okhttp.Call orgsMembersReadValidateBeforeCall(String org, S if (violations.size() == 0) { com.squareup.okhttp.Call call = orgsMembersReadCall(org, member, progressListener, progressRequestListener); return call; - + } else { throw new BeanValidationException((Set) violations); } @@ -440,11 +435,7 @@ private com.squareup.okhttp.Call orgsMembersReadValidateBeforeCall(String org, S e.printStackTrace(); throw new ApiException(e.getMessage()); } - - - - - + } /** @@ -520,13 +511,14 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don */ public com.squareup.okhttp.Call orgsMembersRemoveCall(String org, String member, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/orgs/{org}/members/{member}/remove/" .replaceAll("\\{" + "org" + "\\}", apiClient.escapeString(org.toString())) .replaceAll("\\{" + "member" + "\\}", apiClient.escapeString(member.toString())); List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); @@ -557,9 +549,9 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { "apikey" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } - + @SuppressWarnings("rawtypes") private com.squareup.okhttp.Call orgsMembersRemoveValidateBeforeCall(String org, String member, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { @@ -574,7 +566,7 @@ private com.squareup.okhttp.Call orgsMembersRemoveValidateBeforeCall(String org, if (violations.size() == 0) { com.squareup.okhttp.Call call = orgsMembersRemoveCall(org, member, progressListener, progressRequestListener); return call; - + } else { throw new BeanValidationException((Set) violations); } @@ -585,11 +577,7 @@ private com.squareup.okhttp.Call orgsMembersRemoveValidateBeforeCall(String org, e.printStackTrace(); throw new ApiException(e.getMessage()); } - - - - - + } /** @@ -664,12 +652,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don */ public com.squareup.okhttp.Call orgsReadCall(String org, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/orgs/{org}/" .replaceAll("\\{" + "org" + "\\}", apiClient.escapeString(org.toString())); List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); @@ -700,9 +689,9 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { "apikey" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } - + @SuppressWarnings("rawtypes") private com.squareup.okhttp.Call orgsReadValidateBeforeCall(String org, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { @@ -717,7 +706,7 @@ private com.squareup.okhttp.Call orgsReadValidateBeforeCall(String org, final Pr if (violations.size() == 0) { com.squareup.okhttp.Call call = orgsReadCall(org, progressListener, progressRequestListener); return call; - + } else { throw new BeanValidationException((Set) violations); } @@ -728,11 +717,7 @@ private com.squareup.okhttp.Call orgsReadValidateBeforeCall(String org, final Pr e.printStackTrace(); throw new ApiException(e.getMessage()); } - - - - - + } /** diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/apis/PackagesApi.java b/bindings/java/src/src/main/java/io/cloudsmith/api/apis/PackagesApi.java index 7d6b749a..b1ccbfc8 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/apis/PackagesApi.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/apis/PackagesApi.java @@ -135,7 +135,7 @@ public void setApiClient(ApiClient apiClient) { */ public com.squareup.okhttp.Call packagesCopyCall(String owner, String repo, String identifier, PackagesCopy data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = data; - + // create path and map variables String localVarPath = "/packages/{owner}/{repo}/{identifier}/copy/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) @@ -143,6 +143,7 @@ public com.squareup.okhttp.Call packagesCopyCall(String owner, String repo, Stri .replaceAll("\\{" + "identifier" + "\\}", apiClient.escapeString(identifier.toString())); List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); @@ -173,9 +174,9 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { "apikey" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } - + @SuppressWarnings("rawtypes") private com.squareup.okhttp.Call packagesCopyValidateBeforeCall(String owner, String repo, String identifier, PackagesCopy data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { @@ -190,7 +191,7 @@ private com.squareup.okhttp.Call packagesCopyValidateBeforeCall(String owner, St if (violations.size() == 0) { com.squareup.okhttp.Call call = packagesCopyCall(owner, repo, identifier, data, progressListener, progressRequestListener); return call; - + } else { throw new BeanValidationException((Set) violations); } @@ -201,11 +202,7 @@ private com.squareup.okhttp.Call packagesCopyValidateBeforeCall(String owner, St e.printStackTrace(); throw new ApiException(e.getMessage()); } - - - - - + } /** @@ -288,7 +285,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don */ public com.squareup.okhttp.Call packagesDeleteCall(String owner, String repo, String identifier, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/packages/{owner}/{repo}/{identifier}/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) @@ -296,6 +293,7 @@ public com.squareup.okhttp.Call packagesDeleteCall(String owner, String repo, St .replaceAll("\\{" + "identifier" + "\\}", apiClient.escapeString(identifier.toString())); List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); @@ -326,9 +324,9 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { "apikey" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } - + @SuppressWarnings("rawtypes") private com.squareup.okhttp.Call packagesDeleteValidateBeforeCall(String owner, String repo, String identifier, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { @@ -343,7 +341,7 @@ private com.squareup.okhttp.Call packagesDeleteValidateBeforeCall(String owner, if (violations.size() == 0) { com.squareup.okhttp.Call call = packagesDeleteCall(owner, repo, identifier, progressListener, progressRequestListener); return call; - + } else { throw new BeanValidationException((Set) violations); } @@ -354,11 +352,7 @@ private com.squareup.okhttp.Call packagesDeleteValidateBeforeCall(String owner, e.printStackTrace(); throw new ApiException(e.getMessage()); } - - - - - + } /** @@ -434,7 +428,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don */ public com.squareup.okhttp.Call packagesDependenciesCall(String owner, String repo, String identifier, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/packages/{owner}/{repo}/{identifier}/dependencies/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) @@ -442,6 +436,7 @@ public com.squareup.okhttp.Call packagesDependenciesCall(String owner, String re .replaceAll("\\{" + "identifier" + "\\}", apiClient.escapeString(identifier.toString())); List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); @@ -472,9 +467,9 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { "apikey" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } - + @SuppressWarnings("rawtypes") private com.squareup.okhttp.Call packagesDependenciesValidateBeforeCall(String owner, String repo, String identifier, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { @@ -489,7 +484,7 @@ private com.squareup.okhttp.Call packagesDependenciesValidateBeforeCall(String o if (violations.size() == 0) { com.squareup.okhttp.Call call = packagesDependenciesCall(owner, repo, identifier, progressListener, progressRequestListener); return call; - + } else { throw new BeanValidationException((Set) violations); } @@ -500,11 +495,7 @@ private com.squareup.okhttp.Call packagesDependenciesValidateBeforeCall(String o e.printStackTrace(); throw new ApiException(e.getMessage()); } - - - - - + } /** @@ -587,21 +578,22 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don */ public com.squareup.okhttp.Call packagesListCall(String owner, String repo, Integer page, Integer pageSize, String query, String sort, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/packages/{owner}/{repo}/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "repo" + "\\}", apiClient.escapeString(repo.toString())); List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); if (page != null) - localVarQueryParams.addAll(apiClient.parameterToPairs("", "page", page)); + localVarQueryParams.addAll(apiClient.parameterToPair("page", page)); if (pageSize != null) - localVarQueryParams.addAll(apiClient.parameterToPairs("", "page_size", pageSize)); + localVarQueryParams.addAll(apiClient.parameterToPair("page_size", pageSize)); if (query != null) - localVarQueryParams.addAll(apiClient.parameterToPairs("", "query", query)); + localVarQueryParams.addAll(apiClient.parameterToPair("query", query)); if (sort != null) - localVarQueryParams.addAll(apiClient.parameterToPairs("", "sort", sort)); + localVarQueryParams.addAll(apiClient.parameterToPair("sort", sort)); Map localVarHeaderParams = new HashMap(); @@ -632,9 +624,9 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { "apikey" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } - + @SuppressWarnings("rawtypes") private com.squareup.okhttp.Call packagesListValidateBeforeCall(String owner, String repo, Integer page, Integer pageSize, String query, String sort, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { @@ -649,7 +641,7 @@ private com.squareup.okhttp.Call packagesListValidateBeforeCall(String owner, St if (violations.size() == 0) { com.squareup.okhttp.Call call = packagesListCall(owner, repo, page, pageSize, query, sort, progressListener, progressRequestListener); return call; - + } else { throw new BeanValidationException((Set) violations); } @@ -660,11 +652,7 @@ private com.squareup.okhttp.Call packagesListValidateBeforeCall(String owner, St e.printStackTrace(); throw new ApiException(e.getMessage()); } - - - - - + } /** @@ -754,7 +742,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don */ public com.squareup.okhttp.Call packagesMoveCall(String owner, String repo, String identifier, PackagesMove data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = data; - + // create path and map variables String localVarPath = "/packages/{owner}/{repo}/{identifier}/move/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) @@ -762,6 +750,7 @@ public com.squareup.okhttp.Call packagesMoveCall(String owner, String repo, Stri .replaceAll("\\{" + "identifier" + "\\}", apiClient.escapeString(identifier.toString())); List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); @@ -792,9 +781,9 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { "apikey" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } - + @SuppressWarnings("rawtypes") private com.squareup.okhttp.Call packagesMoveValidateBeforeCall(String owner, String repo, String identifier, PackagesMove data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { @@ -809,7 +798,7 @@ private com.squareup.okhttp.Call packagesMoveValidateBeforeCall(String owner, St if (violations.size() == 0) { com.squareup.okhttp.Call call = packagesMoveCall(owner, repo, identifier, data, progressListener, progressRequestListener); return call; - + } else { throw new BeanValidationException((Set) violations); } @@ -820,11 +809,7 @@ private com.squareup.okhttp.Call packagesMoveValidateBeforeCall(String owner, St e.printStackTrace(); throw new ApiException(e.getMessage()); } - - - - - + } /** @@ -907,7 +892,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don */ public com.squareup.okhttp.Call packagesReadCall(String owner, String repo, String identifier, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/packages/{owner}/{repo}/{identifier}/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) @@ -915,6 +900,7 @@ public com.squareup.okhttp.Call packagesReadCall(String owner, String repo, Stri .replaceAll("\\{" + "identifier" + "\\}", apiClient.escapeString(identifier.toString())); List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); @@ -945,9 +931,9 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { "apikey" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } - + @SuppressWarnings("rawtypes") private com.squareup.okhttp.Call packagesReadValidateBeforeCall(String owner, String repo, String identifier, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { @@ -962,7 +948,7 @@ private com.squareup.okhttp.Call packagesReadValidateBeforeCall(String owner, St if (violations.size() == 0) { com.squareup.okhttp.Call call = packagesReadCall(owner, repo, identifier, progressListener, progressRequestListener); return call; - + } else { throw new BeanValidationException((Set) violations); } @@ -973,11 +959,7 @@ private com.squareup.okhttp.Call packagesReadValidateBeforeCall(String owner, St e.printStackTrace(); throw new ApiException(e.getMessage()); } - - - - - + } /** @@ -1057,7 +1039,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don */ public com.squareup.okhttp.Call packagesResyncCall(String owner, String repo, String identifier, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/packages/{owner}/{repo}/{identifier}/resync/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) @@ -1065,6 +1047,7 @@ public com.squareup.okhttp.Call packagesResyncCall(String owner, String repo, St .replaceAll("\\{" + "identifier" + "\\}", apiClient.escapeString(identifier.toString())); List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); @@ -1095,9 +1078,9 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { "apikey" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } - + @SuppressWarnings("rawtypes") private com.squareup.okhttp.Call packagesResyncValidateBeforeCall(String owner, String repo, String identifier, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { @@ -1112,7 +1095,7 @@ private com.squareup.okhttp.Call packagesResyncValidateBeforeCall(String owner, if (violations.size() == 0) { com.squareup.okhttp.Call call = packagesResyncCall(owner, repo, identifier, progressListener, progressRequestListener); return call; - + } else { throw new BeanValidationException((Set) violations); } @@ -1123,11 +1106,7 @@ private com.squareup.okhttp.Call packagesResyncValidateBeforeCall(String owner, e.printStackTrace(); throw new ApiException(e.getMessage()); } - - - - - + } /** @@ -1207,7 +1186,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don */ public com.squareup.okhttp.Call packagesScanCall(String owner, String repo, String identifier, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/packages/{owner}/{repo}/{identifier}/scan/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) @@ -1215,6 +1194,7 @@ public com.squareup.okhttp.Call packagesScanCall(String owner, String repo, Stri .replaceAll("\\{" + "identifier" + "\\}", apiClient.escapeString(identifier.toString())); List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); @@ -1245,9 +1225,9 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { "apikey" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } - + @SuppressWarnings("rawtypes") private com.squareup.okhttp.Call packagesScanValidateBeforeCall(String owner, String repo, String identifier, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { @@ -1262,7 +1242,7 @@ private com.squareup.okhttp.Call packagesScanValidateBeforeCall(String owner, St if (violations.size() == 0) { com.squareup.okhttp.Call call = packagesScanCall(owner, repo, identifier, progressListener, progressRequestListener); return call; - + } else { throw new BeanValidationException((Set) violations); } @@ -1273,11 +1253,7 @@ private com.squareup.okhttp.Call packagesScanValidateBeforeCall(String owner, St e.printStackTrace(); throw new ApiException(e.getMessage()); } - - - - - + } /** @@ -1357,7 +1333,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don */ public com.squareup.okhttp.Call packagesStatusCall(String owner, String repo, String identifier, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/packages/{owner}/{repo}/{identifier}/status/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) @@ -1365,6 +1341,7 @@ public com.squareup.okhttp.Call packagesStatusCall(String owner, String repo, St .replaceAll("\\{" + "identifier" + "\\}", apiClient.escapeString(identifier.toString())); List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); @@ -1395,9 +1372,9 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { "apikey" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } - + @SuppressWarnings("rawtypes") private com.squareup.okhttp.Call packagesStatusValidateBeforeCall(String owner, String repo, String identifier, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { @@ -1412,7 +1389,7 @@ private com.squareup.okhttp.Call packagesStatusValidateBeforeCall(String owner, if (violations.size() == 0) { com.squareup.okhttp.Call call = packagesStatusCall(owner, repo, identifier, progressListener, progressRequestListener); return call; - + } else { throw new BeanValidationException((Set) violations); } @@ -1423,11 +1400,7 @@ private com.squareup.okhttp.Call packagesStatusValidateBeforeCall(String owner, e.printStackTrace(); throw new ApiException(e.getMessage()); } - - - - - + } /** @@ -1508,7 +1481,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don */ public com.squareup.okhttp.Call packagesTagCall(String owner, String repo, String identifier, PackagesTag data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = data; - + // create path and map variables String localVarPath = "/packages/{owner}/{repo}/{identifier}/tag/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) @@ -1516,6 +1489,7 @@ public com.squareup.okhttp.Call packagesTagCall(String owner, String repo, Strin .replaceAll("\\{" + "identifier" + "\\}", apiClient.escapeString(identifier.toString())); List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); @@ -1546,9 +1520,9 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { "apikey" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } - + @SuppressWarnings("rawtypes") private com.squareup.okhttp.Call packagesTagValidateBeforeCall(String owner, String repo, String identifier, PackagesTag data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { @@ -1563,7 +1537,7 @@ private com.squareup.okhttp.Call packagesTagValidateBeforeCall(String owner, Str if (violations.size() == 0) { com.squareup.okhttp.Call call = packagesTagCall(owner, repo, identifier, data, progressListener, progressRequestListener); return call; - + } else { throw new BeanValidationException((Set) violations); } @@ -1574,11 +1548,7 @@ private com.squareup.okhttp.Call packagesTagValidateBeforeCall(String owner, Str e.printStackTrace(); throw new ApiException(e.getMessage()); } - - - - - + } /** @@ -1661,13 +1631,14 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don */ public com.squareup.okhttp.Call packagesUploadAlpineCall(String owner, String repo, PackagesUploadAlpine data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = data; - + // create path and map variables String localVarPath = "/packages/{owner}/{repo}/upload/alpine/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "repo" + "\\}", apiClient.escapeString(repo.toString())); List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); @@ -1698,9 +1669,9 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { "apikey" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } - + @SuppressWarnings("rawtypes") private com.squareup.okhttp.Call packagesUploadAlpineValidateBeforeCall(String owner, String repo, PackagesUploadAlpine data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { @@ -1715,7 +1686,7 @@ private com.squareup.okhttp.Call packagesUploadAlpineValidateBeforeCall(String o if (violations.size() == 0) { com.squareup.okhttp.Call call = packagesUploadAlpineCall(owner, repo, data, progressListener, progressRequestListener); return call; - + } else { throw new BeanValidationException((Set) violations); } @@ -1726,11 +1697,7 @@ private com.squareup.okhttp.Call packagesUploadAlpineValidateBeforeCall(String o e.printStackTrace(); throw new ApiException(e.getMessage()); } - - - - - + } /** @@ -1810,13 +1777,14 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don */ public com.squareup.okhttp.Call packagesUploadCargoCall(String owner, String repo, PackagesUploadCargo data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = data; - + // create path and map variables String localVarPath = "/packages/{owner}/{repo}/upload/cargo/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "repo" + "\\}", apiClient.escapeString(repo.toString())); List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); @@ -1847,9 +1815,9 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { "apikey" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } - + @SuppressWarnings("rawtypes") private com.squareup.okhttp.Call packagesUploadCargoValidateBeforeCall(String owner, String repo, PackagesUploadCargo data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { @@ -1864,7 +1832,7 @@ private com.squareup.okhttp.Call packagesUploadCargoValidateBeforeCall(String ow if (violations.size() == 0) { com.squareup.okhttp.Call call = packagesUploadCargoCall(owner, repo, data, progressListener, progressRequestListener); return call; - + } else { throw new BeanValidationException((Set) violations); } @@ -1875,11 +1843,7 @@ private com.squareup.okhttp.Call packagesUploadCargoValidateBeforeCall(String ow e.printStackTrace(); throw new ApiException(e.getMessage()); } - - - - - + } /** @@ -1959,13 +1923,14 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don */ public com.squareup.okhttp.Call packagesUploadCocoapodsCall(String owner, String repo, PackagesUploadCocoapods data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = data; - + // create path and map variables String localVarPath = "/packages/{owner}/{repo}/upload/cocoapods/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "repo" + "\\}", apiClient.escapeString(repo.toString())); List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); @@ -1996,9 +1961,9 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { "apikey" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } - + @SuppressWarnings("rawtypes") private com.squareup.okhttp.Call packagesUploadCocoapodsValidateBeforeCall(String owner, String repo, PackagesUploadCocoapods data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { @@ -2013,7 +1978,7 @@ private com.squareup.okhttp.Call packagesUploadCocoapodsValidateBeforeCall(Strin if (violations.size() == 0) { com.squareup.okhttp.Call call = packagesUploadCocoapodsCall(owner, repo, data, progressListener, progressRequestListener); return call; - + } else { throw new BeanValidationException((Set) violations); } @@ -2024,11 +1989,7 @@ private com.squareup.okhttp.Call packagesUploadCocoapodsValidateBeforeCall(Strin e.printStackTrace(); throw new ApiException(e.getMessage()); } - - - - - + } /** @@ -2108,13 +2069,14 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don */ public com.squareup.okhttp.Call packagesUploadComposerCall(String owner, String repo, PackagesUploadComposer data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = data; - + // create path and map variables String localVarPath = "/packages/{owner}/{repo}/upload/composer/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "repo" + "\\}", apiClient.escapeString(repo.toString())); List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); @@ -2145,9 +2107,9 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { "apikey" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } - + @SuppressWarnings("rawtypes") private com.squareup.okhttp.Call packagesUploadComposerValidateBeforeCall(String owner, String repo, PackagesUploadComposer data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { @@ -2162,7 +2124,7 @@ private com.squareup.okhttp.Call packagesUploadComposerValidateBeforeCall(String if (violations.size() == 0) { com.squareup.okhttp.Call call = packagesUploadComposerCall(owner, repo, data, progressListener, progressRequestListener); return call; - + } else { throw new BeanValidationException((Set) violations); } @@ -2173,11 +2135,7 @@ private com.squareup.okhttp.Call packagesUploadComposerValidateBeforeCall(String e.printStackTrace(); throw new ApiException(e.getMessage()); } - - - - - + } /** @@ -2257,13 +2215,14 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don */ public com.squareup.okhttp.Call packagesUploadConanCall(String owner, String repo, PackagesUploadConan data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = data; - + // create path and map variables String localVarPath = "/packages/{owner}/{repo}/upload/conan/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "repo" + "\\}", apiClient.escapeString(repo.toString())); List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); @@ -2294,9 +2253,9 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { "apikey" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } - + @SuppressWarnings("rawtypes") private com.squareup.okhttp.Call packagesUploadConanValidateBeforeCall(String owner, String repo, PackagesUploadConan data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { @@ -2311,7 +2270,7 @@ private com.squareup.okhttp.Call packagesUploadConanValidateBeforeCall(String ow if (violations.size() == 0) { com.squareup.okhttp.Call call = packagesUploadConanCall(owner, repo, data, progressListener, progressRequestListener); return call; - + } else { throw new BeanValidationException((Set) violations); } @@ -2322,11 +2281,7 @@ private com.squareup.okhttp.Call packagesUploadConanValidateBeforeCall(String ow e.printStackTrace(); throw new ApiException(e.getMessage()); } - - - - - + } /** @@ -2406,13 +2361,14 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don */ public com.squareup.okhttp.Call packagesUploadCondaCall(String owner, String repo, PackagesUploadConda data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = data; - + // create path and map variables String localVarPath = "/packages/{owner}/{repo}/upload/conda/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "repo" + "\\}", apiClient.escapeString(repo.toString())); List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); @@ -2443,9 +2399,9 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { "apikey" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } - + @SuppressWarnings("rawtypes") private com.squareup.okhttp.Call packagesUploadCondaValidateBeforeCall(String owner, String repo, PackagesUploadConda data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { @@ -2460,7 +2416,7 @@ private com.squareup.okhttp.Call packagesUploadCondaValidateBeforeCall(String ow if (violations.size() == 0) { com.squareup.okhttp.Call call = packagesUploadCondaCall(owner, repo, data, progressListener, progressRequestListener); return call; - + } else { throw new BeanValidationException((Set) violations); } @@ -2471,11 +2427,7 @@ private com.squareup.okhttp.Call packagesUploadCondaValidateBeforeCall(String ow e.printStackTrace(); throw new ApiException(e.getMessage()); } - - - - - + } /** @@ -2555,13 +2507,14 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don */ public com.squareup.okhttp.Call packagesUploadCranCall(String owner, String repo, PackagesUploadCran data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = data; - + // create path and map variables String localVarPath = "/packages/{owner}/{repo}/upload/cran/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "repo" + "\\}", apiClient.escapeString(repo.toString())); List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); @@ -2592,9 +2545,9 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { "apikey" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } - + @SuppressWarnings("rawtypes") private com.squareup.okhttp.Call packagesUploadCranValidateBeforeCall(String owner, String repo, PackagesUploadCran data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { @@ -2609,7 +2562,7 @@ private com.squareup.okhttp.Call packagesUploadCranValidateBeforeCall(String own if (violations.size() == 0) { com.squareup.okhttp.Call call = packagesUploadCranCall(owner, repo, data, progressListener, progressRequestListener); return call; - + } else { throw new BeanValidationException((Set) violations); } @@ -2620,11 +2573,7 @@ private com.squareup.okhttp.Call packagesUploadCranValidateBeforeCall(String own e.printStackTrace(); throw new ApiException(e.getMessage()); } - - - - - + } /** @@ -2704,13 +2653,14 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don */ public com.squareup.okhttp.Call packagesUploadDartCall(String owner, String repo, PackagesUploadDart data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = data; - + // create path and map variables String localVarPath = "/packages/{owner}/{repo}/upload/dart/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "repo" + "\\}", apiClient.escapeString(repo.toString())); List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); @@ -2741,9 +2691,9 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { "apikey" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } - + @SuppressWarnings("rawtypes") private com.squareup.okhttp.Call packagesUploadDartValidateBeforeCall(String owner, String repo, PackagesUploadDart data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { @@ -2758,7 +2708,7 @@ private com.squareup.okhttp.Call packagesUploadDartValidateBeforeCall(String own if (violations.size() == 0) { com.squareup.okhttp.Call call = packagesUploadDartCall(owner, repo, data, progressListener, progressRequestListener); return call; - + } else { throw new BeanValidationException((Set) violations); } @@ -2769,11 +2719,7 @@ private com.squareup.okhttp.Call packagesUploadDartValidateBeforeCall(String own e.printStackTrace(); throw new ApiException(e.getMessage()); } - - - - - + } /** @@ -2853,13 +2799,14 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don */ public com.squareup.okhttp.Call packagesUploadDebCall(String owner, String repo, PackagesUploadDeb data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = data; - + // create path and map variables String localVarPath = "/packages/{owner}/{repo}/upload/deb/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "repo" + "\\}", apiClient.escapeString(repo.toString())); List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); @@ -2890,9 +2837,9 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { "apikey" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } - + @SuppressWarnings("rawtypes") private com.squareup.okhttp.Call packagesUploadDebValidateBeforeCall(String owner, String repo, PackagesUploadDeb data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { @@ -2907,7 +2854,7 @@ private com.squareup.okhttp.Call packagesUploadDebValidateBeforeCall(String owne if (violations.size() == 0) { com.squareup.okhttp.Call call = packagesUploadDebCall(owner, repo, data, progressListener, progressRequestListener); return call; - + } else { throw new BeanValidationException((Set) violations); } @@ -2918,11 +2865,7 @@ private com.squareup.okhttp.Call packagesUploadDebValidateBeforeCall(String owne e.printStackTrace(); throw new ApiException(e.getMessage()); } - - - - - + } /** @@ -3002,13 +2945,14 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don */ public com.squareup.okhttp.Call packagesUploadDockerCall(String owner, String repo, PackagesUploadDocker data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = data; - + // create path and map variables String localVarPath = "/packages/{owner}/{repo}/upload/docker/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "repo" + "\\}", apiClient.escapeString(repo.toString())); List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); @@ -3039,9 +2983,9 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { "apikey" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } - + @SuppressWarnings("rawtypes") private com.squareup.okhttp.Call packagesUploadDockerValidateBeforeCall(String owner, String repo, PackagesUploadDocker data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { @@ -3056,7 +3000,7 @@ private com.squareup.okhttp.Call packagesUploadDockerValidateBeforeCall(String o if (violations.size() == 0) { com.squareup.okhttp.Call call = packagesUploadDockerCall(owner, repo, data, progressListener, progressRequestListener); return call; - + } else { throw new BeanValidationException((Set) violations); } @@ -3067,11 +3011,7 @@ private com.squareup.okhttp.Call packagesUploadDockerValidateBeforeCall(String o e.printStackTrace(); throw new ApiException(e.getMessage()); } - - - - - + } /** @@ -3151,13 +3091,14 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don */ public com.squareup.okhttp.Call packagesUploadGoCall(String owner, String repo, PackagesUploadGo data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = data; - + // create path and map variables String localVarPath = "/packages/{owner}/{repo}/upload/go/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "repo" + "\\}", apiClient.escapeString(repo.toString())); List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); @@ -3188,9 +3129,9 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { "apikey" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } - + @SuppressWarnings("rawtypes") private com.squareup.okhttp.Call packagesUploadGoValidateBeforeCall(String owner, String repo, PackagesUploadGo data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { @@ -3205,7 +3146,7 @@ private com.squareup.okhttp.Call packagesUploadGoValidateBeforeCall(String owner if (violations.size() == 0) { com.squareup.okhttp.Call call = packagesUploadGoCall(owner, repo, data, progressListener, progressRequestListener); return call; - + } else { throw new BeanValidationException((Set) violations); } @@ -3216,11 +3157,7 @@ private com.squareup.okhttp.Call packagesUploadGoValidateBeforeCall(String owner e.printStackTrace(); throw new ApiException(e.getMessage()); } - - - - - + } /** @@ -3300,13 +3237,14 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don */ public com.squareup.okhttp.Call packagesUploadHelmCall(String owner, String repo, PackagesUploadHelm data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = data; - + // create path and map variables String localVarPath = "/packages/{owner}/{repo}/upload/helm/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "repo" + "\\}", apiClient.escapeString(repo.toString())); List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); @@ -3337,9 +3275,9 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { "apikey" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } - + @SuppressWarnings("rawtypes") private com.squareup.okhttp.Call packagesUploadHelmValidateBeforeCall(String owner, String repo, PackagesUploadHelm data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { @@ -3354,7 +3292,7 @@ private com.squareup.okhttp.Call packagesUploadHelmValidateBeforeCall(String own if (violations.size() == 0) { com.squareup.okhttp.Call call = packagesUploadHelmCall(owner, repo, data, progressListener, progressRequestListener); return call; - + } else { throw new BeanValidationException((Set) violations); } @@ -3365,11 +3303,7 @@ private com.squareup.okhttp.Call packagesUploadHelmValidateBeforeCall(String own e.printStackTrace(); throw new ApiException(e.getMessage()); } - - - - - + } /** @@ -3449,13 +3383,14 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don */ public com.squareup.okhttp.Call packagesUploadLuarocksCall(String owner, String repo, PackagesUploadLuarocks data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = data; - + // create path and map variables String localVarPath = "/packages/{owner}/{repo}/upload/luarocks/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "repo" + "\\}", apiClient.escapeString(repo.toString())); List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); @@ -3486,9 +3421,9 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { "apikey" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } - + @SuppressWarnings("rawtypes") private com.squareup.okhttp.Call packagesUploadLuarocksValidateBeforeCall(String owner, String repo, PackagesUploadLuarocks data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { @@ -3503,7 +3438,7 @@ private com.squareup.okhttp.Call packagesUploadLuarocksValidateBeforeCall(String if (violations.size() == 0) { com.squareup.okhttp.Call call = packagesUploadLuarocksCall(owner, repo, data, progressListener, progressRequestListener); return call; - + } else { throw new BeanValidationException((Set) violations); } @@ -3514,11 +3449,7 @@ private com.squareup.okhttp.Call packagesUploadLuarocksValidateBeforeCall(String e.printStackTrace(); throw new ApiException(e.getMessage()); } - - - - - + } /** @@ -3598,13 +3529,14 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don */ public com.squareup.okhttp.Call packagesUploadMavenCall(String owner, String repo, PackagesUploadMaven data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = data; - + // create path and map variables String localVarPath = "/packages/{owner}/{repo}/upload/maven/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "repo" + "\\}", apiClient.escapeString(repo.toString())); List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); @@ -3635,9 +3567,9 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { "apikey" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } - + @SuppressWarnings("rawtypes") private com.squareup.okhttp.Call packagesUploadMavenValidateBeforeCall(String owner, String repo, PackagesUploadMaven data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { @@ -3652,7 +3584,7 @@ private com.squareup.okhttp.Call packagesUploadMavenValidateBeforeCall(String ow if (violations.size() == 0) { com.squareup.okhttp.Call call = packagesUploadMavenCall(owner, repo, data, progressListener, progressRequestListener); return call; - + } else { throw new BeanValidationException((Set) violations); } @@ -3663,11 +3595,7 @@ private com.squareup.okhttp.Call packagesUploadMavenValidateBeforeCall(String ow e.printStackTrace(); throw new ApiException(e.getMessage()); } - - - - - + } /** @@ -3747,13 +3675,14 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don */ public com.squareup.okhttp.Call packagesUploadNpmCall(String owner, String repo, PackagesUploadNpm data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = data; - + // create path and map variables String localVarPath = "/packages/{owner}/{repo}/upload/npm/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "repo" + "\\}", apiClient.escapeString(repo.toString())); List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); @@ -3784,9 +3713,9 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { "apikey" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } - + @SuppressWarnings("rawtypes") private com.squareup.okhttp.Call packagesUploadNpmValidateBeforeCall(String owner, String repo, PackagesUploadNpm data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { @@ -3801,7 +3730,7 @@ private com.squareup.okhttp.Call packagesUploadNpmValidateBeforeCall(String owne if (violations.size() == 0) { com.squareup.okhttp.Call call = packagesUploadNpmCall(owner, repo, data, progressListener, progressRequestListener); return call; - + } else { throw new BeanValidationException((Set) violations); } @@ -3812,11 +3741,7 @@ private com.squareup.okhttp.Call packagesUploadNpmValidateBeforeCall(String owne e.printStackTrace(); throw new ApiException(e.getMessage()); } - - - - - + } /** @@ -3896,13 +3821,14 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don */ public com.squareup.okhttp.Call packagesUploadNugetCall(String owner, String repo, PackagesUploadNuget data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = data; - + // create path and map variables String localVarPath = "/packages/{owner}/{repo}/upload/nuget/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "repo" + "\\}", apiClient.escapeString(repo.toString())); List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); @@ -3933,9 +3859,9 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { "apikey" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } - + @SuppressWarnings("rawtypes") private com.squareup.okhttp.Call packagesUploadNugetValidateBeforeCall(String owner, String repo, PackagesUploadNuget data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { @@ -3950,7 +3876,7 @@ private com.squareup.okhttp.Call packagesUploadNugetValidateBeforeCall(String ow if (violations.size() == 0) { com.squareup.okhttp.Call call = packagesUploadNugetCall(owner, repo, data, progressListener, progressRequestListener); return call; - + } else { throw new BeanValidationException((Set) violations); } @@ -3961,11 +3887,7 @@ private com.squareup.okhttp.Call packagesUploadNugetValidateBeforeCall(String ow e.printStackTrace(); throw new ApiException(e.getMessage()); } - - - - - + } /** @@ -4045,13 +3967,14 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don */ public com.squareup.okhttp.Call packagesUploadP2Call(String owner, String repo, PackagesUploadP2 data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = data; - + // create path and map variables String localVarPath = "/packages/{owner}/{repo}/upload/p2/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "repo" + "\\}", apiClient.escapeString(repo.toString())); List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); @@ -4082,9 +4005,9 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { "apikey" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } - + @SuppressWarnings("rawtypes") private com.squareup.okhttp.Call packagesUploadP2ValidateBeforeCall(String owner, String repo, PackagesUploadP2 data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { @@ -4099,7 +4022,7 @@ private com.squareup.okhttp.Call packagesUploadP2ValidateBeforeCall(String owner if (violations.size() == 0) { com.squareup.okhttp.Call call = packagesUploadP2Call(owner, repo, data, progressListener, progressRequestListener); return call; - + } else { throw new BeanValidationException((Set) violations); } @@ -4110,11 +4033,7 @@ private com.squareup.okhttp.Call packagesUploadP2ValidateBeforeCall(String owner e.printStackTrace(); throw new ApiException(e.getMessage()); } - - - - - + } /** @@ -4194,13 +4113,14 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don */ public com.squareup.okhttp.Call packagesUploadPythonCall(String owner, String repo, PackagesUploadPython data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = data; - + // create path and map variables String localVarPath = "/packages/{owner}/{repo}/upload/python/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "repo" + "\\}", apiClient.escapeString(repo.toString())); List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); @@ -4231,9 +4151,9 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { "apikey" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } - + @SuppressWarnings("rawtypes") private com.squareup.okhttp.Call packagesUploadPythonValidateBeforeCall(String owner, String repo, PackagesUploadPython data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { @@ -4248,7 +4168,7 @@ private com.squareup.okhttp.Call packagesUploadPythonValidateBeforeCall(String o if (violations.size() == 0) { com.squareup.okhttp.Call call = packagesUploadPythonCall(owner, repo, data, progressListener, progressRequestListener); return call; - + } else { throw new BeanValidationException((Set) violations); } @@ -4259,11 +4179,7 @@ private com.squareup.okhttp.Call packagesUploadPythonValidateBeforeCall(String o e.printStackTrace(); throw new ApiException(e.getMessage()); } - - - - - + } /** @@ -4343,13 +4259,14 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don */ public com.squareup.okhttp.Call packagesUploadRawCall(String owner, String repo, PackagesUploadRaw data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = data; - + // create path and map variables String localVarPath = "/packages/{owner}/{repo}/upload/raw/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "repo" + "\\}", apiClient.escapeString(repo.toString())); List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); @@ -4380,9 +4297,9 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { "apikey" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } - + @SuppressWarnings("rawtypes") private com.squareup.okhttp.Call packagesUploadRawValidateBeforeCall(String owner, String repo, PackagesUploadRaw data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { @@ -4397,7 +4314,7 @@ private com.squareup.okhttp.Call packagesUploadRawValidateBeforeCall(String owne if (violations.size() == 0) { com.squareup.okhttp.Call call = packagesUploadRawCall(owner, repo, data, progressListener, progressRequestListener); return call; - + } else { throw new BeanValidationException((Set) violations); } @@ -4408,11 +4325,7 @@ private com.squareup.okhttp.Call packagesUploadRawValidateBeforeCall(String owne e.printStackTrace(); throw new ApiException(e.getMessage()); } - - - - - + } /** @@ -4492,13 +4405,14 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don */ public com.squareup.okhttp.Call packagesUploadRpmCall(String owner, String repo, PackagesUploadRpm data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = data; - + // create path and map variables String localVarPath = "/packages/{owner}/{repo}/upload/rpm/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "repo" + "\\}", apiClient.escapeString(repo.toString())); List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); @@ -4529,9 +4443,9 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { "apikey" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } - + @SuppressWarnings("rawtypes") private com.squareup.okhttp.Call packagesUploadRpmValidateBeforeCall(String owner, String repo, PackagesUploadRpm data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { @@ -4546,7 +4460,7 @@ private com.squareup.okhttp.Call packagesUploadRpmValidateBeforeCall(String owne if (violations.size() == 0) { com.squareup.okhttp.Call call = packagesUploadRpmCall(owner, repo, data, progressListener, progressRequestListener); return call; - + } else { throw new BeanValidationException((Set) violations); } @@ -4557,11 +4471,7 @@ private com.squareup.okhttp.Call packagesUploadRpmValidateBeforeCall(String owne e.printStackTrace(); throw new ApiException(e.getMessage()); } - - - - - + } /** @@ -4641,13 +4551,14 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don */ public com.squareup.okhttp.Call packagesUploadRubyCall(String owner, String repo, PackagesUploadRuby data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = data; - + // create path and map variables String localVarPath = "/packages/{owner}/{repo}/upload/ruby/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "repo" + "\\}", apiClient.escapeString(repo.toString())); List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); @@ -4678,9 +4589,9 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { "apikey" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } - + @SuppressWarnings("rawtypes") private com.squareup.okhttp.Call packagesUploadRubyValidateBeforeCall(String owner, String repo, PackagesUploadRuby data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { @@ -4695,7 +4606,7 @@ private com.squareup.okhttp.Call packagesUploadRubyValidateBeforeCall(String own if (violations.size() == 0) { com.squareup.okhttp.Call call = packagesUploadRubyCall(owner, repo, data, progressListener, progressRequestListener); return call; - + } else { throw new BeanValidationException((Set) violations); } @@ -4706,11 +4617,7 @@ private com.squareup.okhttp.Call packagesUploadRubyValidateBeforeCall(String own e.printStackTrace(); throw new ApiException(e.getMessage()); } - - - - - + } /** @@ -4790,13 +4697,14 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don */ public com.squareup.okhttp.Call packagesUploadTerraformCall(String owner, String repo, PackagesUploadTerraform data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = data; - + // create path and map variables String localVarPath = "/packages/{owner}/{repo}/upload/terraform/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "repo" + "\\}", apiClient.escapeString(repo.toString())); List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); @@ -4827,9 +4735,9 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { "apikey" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } - + @SuppressWarnings("rawtypes") private com.squareup.okhttp.Call packagesUploadTerraformValidateBeforeCall(String owner, String repo, PackagesUploadTerraform data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { @@ -4844,7 +4752,7 @@ private com.squareup.okhttp.Call packagesUploadTerraformValidateBeforeCall(Strin if (violations.size() == 0) { com.squareup.okhttp.Call call = packagesUploadTerraformCall(owner, repo, data, progressListener, progressRequestListener); return call; - + } else { throw new BeanValidationException((Set) violations); } @@ -4855,11 +4763,7 @@ private com.squareup.okhttp.Call packagesUploadTerraformValidateBeforeCall(Strin e.printStackTrace(); throw new ApiException(e.getMessage()); } - - - - - + } /** @@ -4939,13 +4843,14 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don */ public com.squareup.okhttp.Call packagesUploadVagrantCall(String owner, String repo, PackagesUploadVagrant data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = data; - + // create path and map variables String localVarPath = "/packages/{owner}/{repo}/upload/vagrant/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "repo" + "\\}", apiClient.escapeString(repo.toString())); List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); @@ -4976,9 +4881,9 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { "apikey" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } - + @SuppressWarnings("rawtypes") private com.squareup.okhttp.Call packagesUploadVagrantValidateBeforeCall(String owner, String repo, PackagesUploadVagrant data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { @@ -4993,7 +4898,7 @@ private com.squareup.okhttp.Call packagesUploadVagrantValidateBeforeCall(String if (violations.size() == 0) { com.squareup.okhttp.Call call = packagesUploadVagrantCall(owner, repo, data, progressListener, progressRequestListener); return call; - + } else { throw new BeanValidationException((Set) violations); } @@ -5004,11 +4909,7 @@ private com.squareup.okhttp.Call packagesUploadVagrantValidateBeforeCall(String e.printStackTrace(); throw new ApiException(e.getMessage()); } - - - - - + } /** @@ -5088,13 +4989,14 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don */ public com.squareup.okhttp.Call packagesValidateUploadAlpineCall(String owner, String repo, PackagesValidateuploadAlpine data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = data; - + // create path and map variables String localVarPath = "/packages/{owner}/{repo}/validate-upload/alpine/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "repo" + "\\}", apiClient.escapeString(repo.toString())); List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); @@ -5125,9 +5027,9 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { "apikey" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } - + @SuppressWarnings("rawtypes") private com.squareup.okhttp.Call packagesValidateUploadAlpineValidateBeforeCall(String owner, String repo, PackagesValidateuploadAlpine data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { @@ -5142,7 +5044,7 @@ private com.squareup.okhttp.Call packagesValidateUploadAlpineValidateBeforeCall( if (violations.size() == 0) { com.squareup.okhttp.Call call = packagesValidateUploadAlpineCall(owner, repo, data, progressListener, progressRequestListener); return call; - + } else { throw new BeanValidationException((Set) violations); } @@ -5153,11 +5055,7 @@ private com.squareup.okhttp.Call packagesValidateUploadAlpineValidateBeforeCall( e.printStackTrace(); throw new ApiException(e.getMessage()); } - - - - - + } /** @@ -5233,13 +5131,14 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don */ public com.squareup.okhttp.Call packagesValidateUploadCargoCall(String owner, String repo, PackagesValidateuploadCargo data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = data; - + // create path and map variables String localVarPath = "/packages/{owner}/{repo}/validate-upload/cargo/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "repo" + "\\}", apiClient.escapeString(repo.toString())); List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); @@ -5270,9 +5169,9 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { "apikey" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } - + @SuppressWarnings("rawtypes") private com.squareup.okhttp.Call packagesValidateUploadCargoValidateBeforeCall(String owner, String repo, PackagesValidateuploadCargo data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { @@ -5287,7 +5186,7 @@ private com.squareup.okhttp.Call packagesValidateUploadCargoValidateBeforeCall(S if (violations.size() == 0) { com.squareup.okhttp.Call call = packagesValidateUploadCargoCall(owner, repo, data, progressListener, progressRequestListener); return call; - + } else { throw new BeanValidationException((Set) violations); } @@ -5298,11 +5197,7 @@ private com.squareup.okhttp.Call packagesValidateUploadCargoValidateBeforeCall(S e.printStackTrace(); throw new ApiException(e.getMessage()); } - - - - - + } /** @@ -5378,13 +5273,14 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don */ public com.squareup.okhttp.Call packagesValidateUploadCocoapodsCall(String owner, String repo, PackagesValidateuploadCocoapods data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = data; - + // create path and map variables String localVarPath = "/packages/{owner}/{repo}/validate-upload/cocoapods/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "repo" + "\\}", apiClient.escapeString(repo.toString())); List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); @@ -5415,9 +5311,9 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { "apikey" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } - + @SuppressWarnings("rawtypes") private com.squareup.okhttp.Call packagesValidateUploadCocoapodsValidateBeforeCall(String owner, String repo, PackagesValidateuploadCocoapods data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { @@ -5432,7 +5328,7 @@ private com.squareup.okhttp.Call packagesValidateUploadCocoapodsValidateBeforeCa if (violations.size() == 0) { com.squareup.okhttp.Call call = packagesValidateUploadCocoapodsCall(owner, repo, data, progressListener, progressRequestListener); return call; - + } else { throw new BeanValidationException((Set) violations); } @@ -5443,11 +5339,7 @@ private com.squareup.okhttp.Call packagesValidateUploadCocoapodsValidateBeforeCa e.printStackTrace(); throw new ApiException(e.getMessage()); } - - - - - + } /** @@ -5523,13 +5415,14 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don */ public com.squareup.okhttp.Call packagesValidateUploadComposerCall(String owner, String repo, PackagesValidateuploadComposer data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = data; - + // create path and map variables String localVarPath = "/packages/{owner}/{repo}/validate-upload/composer/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "repo" + "\\}", apiClient.escapeString(repo.toString())); List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); @@ -5560,9 +5453,9 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { "apikey" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } - + @SuppressWarnings("rawtypes") private com.squareup.okhttp.Call packagesValidateUploadComposerValidateBeforeCall(String owner, String repo, PackagesValidateuploadComposer data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { @@ -5577,7 +5470,7 @@ private com.squareup.okhttp.Call packagesValidateUploadComposerValidateBeforeCal if (violations.size() == 0) { com.squareup.okhttp.Call call = packagesValidateUploadComposerCall(owner, repo, data, progressListener, progressRequestListener); return call; - + } else { throw new BeanValidationException((Set) violations); } @@ -5588,11 +5481,7 @@ private com.squareup.okhttp.Call packagesValidateUploadComposerValidateBeforeCal e.printStackTrace(); throw new ApiException(e.getMessage()); } - - - - - + } /** @@ -5668,13 +5557,14 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don */ public com.squareup.okhttp.Call packagesValidateUploadConanCall(String owner, String repo, PackagesValidateuploadConan data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = data; - + // create path and map variables String localVarPath = "/packages/{owner}/{repo}/validate-upload/conan/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "repo" + "\\}", apiClient.escapeString(repo.toString())); List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); @@ -5705,9 +5595,9 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { "apikey" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } - + @SuppressWarnings("rawtypes") private com.squareup.okhttp.Call packagesValidateUploadConanValidateBeforeCall(String owner, String repo, PackagesValidateuploadConan data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { @@ -5722,7 +5612,7 @@ private com.squareup.okhttp.Call packagesValidateUploadConanValidateBeforeCall(S if (violations.size() == 0) { com.squareup.okhttp.Call call = packagesValidateUploadConanCall(owner, repo, data, progressListener, progressRequestListener); return call; - + } else { throw new BeanValidationException((Set) violations); } @@ -5733,11 +5623,7 @@ private com.squareup.okhttp.Call packagesValidateUploadConanValidateBeforeCall(S e.printStackTrace(); throw new ApiException(e.getMessage()); } - - - - - + } /** @@ -5813,13 +5699,14 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don */ public com.squareup.okhttp.Call packagesValidateUploadCondaCall(String owner, String repo, PackagesValidateuploadConda data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = data; - + // create path and map variables String localVarPath = "/packages/{owner}/{repo}/validate-upload/conda/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "repo" + "\\}", apiClient.escapeString(repo.toString())); List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); @@ -5850,9 +5737,9 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { "apikey" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } - + @SuppressWarnings("rawtypes") private com.squareup.okhttp.Call packagesValidateUploadCondaValidateBeforeCall(String owner, String repo, PackagesValidateuploadConda data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { @@ -5867,7 +5754,7 @@ private com.squareup.okhttp.Call packagesValidateUploadCondaValidateBeforeCall(S if (violations.size() == 0) { com.squareup.okhttp.Call call = packagesValidateUploadCondaCall(owner, repo, data, progressListener, progressRequestListener); return call; - + } else { throw new BeanValidationException((Set) violations); } @@ -5878,11 +5765,7 @@ private com.squareup.okhttp.Call packagesValidateUploadCondaValidateBeforeCall(S e.printStackTrace(); throw new ApiException(e.getMessage()); } - - - - - + } /** @@ -5958,13 +5841,14 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don */ public com.squareup.okhttp.Call packagesValidateUploadCranCall(String owner, String repo, PackagesValidateuploadCran data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = data; - + // create path and map variables String localVarPath = "/packages/{owner}/{repo}/validate-upload/cran/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "repo" + "\\}", apiClient.escapeString(repo.toString())); List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); @@ -5995,9 +5879,9 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { "apikey" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } - + @SuppressWarnings("rawtypes") private com.squareup.okhttp.Call packagesValidateUploadCranValidateBeforeCall(String owner, String repo, PackagesValidateuploadCran data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { @@ -6012,7 +5896,7 @@ private com.squareup.okhttp.Call packagesValidateUploadCranValidateBeforeCall(St if (violations.size() == 0) { com.squareup.okhttp.Call call = packagesValidateUploadCranCall(owner, repo, data, progressListener, progressRequestListener); return call; - + } else { throw new BeanValidationException((Set) violations); } @@ -6023,11 +5907,7 @@ private com.squareup.okhttp.Call packagesValidateUploadCranValidateBeforeCall(St e.printStackTrace(); throw new ApiException(e.getMessage()); } - - - - - + } /** @@ -6103,13 +5983,14 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don */ public com.squareup.okhttp.Call packagesValidateUploadDartCall(String owner, String repo, PackagesValidateuploadDart data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = data; - + // create path and map variables String localVarPath = "/packages/{owner}/{repo}/validate-upload/dart/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "repo" + "\\}", apiClient.escapeString(repo.toString())); List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); @@ -6140,9 +6021,9 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { "apikey" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } - + @SuppressWarnings("rawtypes") private com.squareup.okhttp.Call packagesValidateUploadDartValidateBeforeCall(String owner, String repo, PackagesValidateuploadDart data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { @@ -6157,7 +6038,7 @@ private com.squareup.okhttp.Call packagesValidateUploadDartValidateBeforeCall(St if (violations.size() == 0) { com.squareup.okhttp.Call call = packagesValidateUploadDartCall(owner, repo, data, progressListener, progressRequestListener); return call; - + } else { throw new BeanValidationException((Set) violations); } @@ -6168,11 +6049,7 @@ private com.squareup.okhttp.Call packagesValidateUploadDartValidateBeforeCall(St e.printStackTrace(); throw new ApiException(e.getMessage()); } - - - - - + } /** @@ -6248,13 +6125,14 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don */ public com.squareup.okhttp.Call packagesValidateUploadDebCall(String owner, String repo, PackagesValidateuploadDeb data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = data; - + // create path and map variables String localVarPath = "/packages/{owner}/{repo}/validate-upload/deb/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "repo" + "\\}", apiClient.escapeString(repo.toString())); List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); @@ -6285,9 +6163,9 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { "apikey" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } - + @SuppressWarnings("rawtypes") private com.squareup.okhttp.Call packagesValidateUploadDebValidateBeforeCall(String owner, String repo, PackagesValidateuploadDeb data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { @@ -6302,7 +6180,7 @@ private com.squareup.okhttp.Call packagesValidateUploadDebValidateBeforeCall(Str if (violations.size() == 0) { com.squareup.okhttp.Call call = packagesValidateUploadDebCall(owner, repo, data, progressListener, progressRequestListener); return call; - + } else { throw new BeanValidationException((Set) violations); } @@ -6313,11 +6191,7 @@ private com.squareup.okhttp.Call packagesValidateUploadDebValidateBeforeCall(Str e.printStackTrace(); throw new ApiException(e.getMessage()); } - - - - - + } /** @@ -6393,13 +6267,14 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don */ public com.squareup.okhttp.Call packagesValidateUploadDockerCall(String owner, String repo, PackagesValidateuploadDocker data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = data; - + // create path and map variables String localVarPath = "/packages/{owner}/{repo}/validate-upload/docker/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "repo" + "\\}", apiClient.escapeString(repo.toString())); List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); @@ -6430,9 +6305,9 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { "apikey" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } - + @SuppressWarnings("rawtypes") private com.squareup.okhttp.Call packagesValidateUploadDockerValidateBeforeCall(String owner, String repo, PackagesValidateuploadDocker data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { @@ -6447,7 +6322,7 @@ private com.squareup.okhttp.Call packagesValidateUploadDockerValidateBeforeCall( if (violations.size() == 0) { com.squareup.okhttp.Call call = packagesValidateUploadDockerCall(owner, repo, data, progressListener, progressRequestListener); return call; - + } else { throw new BeanValidationException((Set) violations); } @@ -6458,11 +6333,7 @@ private com.squareup.okhttp.Call packagesValidateUploadDockerValidateBeforeCall( e.printStackTrace(); throw new ApiException(e.getMessage()); } - - - - - + } /** @@ -6538,13 +6409,14 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don */ public com.squareup.okhttp.Call packagesValidateUploadGoCall(String owner, String repo, PackagesValidateuploadGo data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = data; - + // create path and map variables String localVarPath = "/packages/{owner}/{repo}/validate-upload/go/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "repo" + "\\}", apiClient.escapeString(repo.toString())); List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); @@ -6575,9 +6447,9 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { "apikey" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } - + @SuppressWarnings("rawtypes") private com.squareup.okhttp.Call packagesValidateUploadGoValidateBeforeCall(String owner, String repo, PackagesValidateuploadGo data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { @@ -6592,7 +6464,7 @@ private com.squareup.okhttp.Call packagesValidateUploadGoValidateBeforeCall(Stri if (violations.size() == 0) { com.squareup.okhttp.Call call = packagesValidateUploadGoCall(owner, repo, data, progressListener, progressRequestListener); return call; - + } else { throw new BeanValidationException((Set) violations); } @@ -6603,11 +6475,7 @@ private com.squareup.okhttp.Call packagesValidateUploadGoValidateBeforeCall(Stri e.printStackTrace(); throw new ApiException(e.getMessage()); } - - - - - + } /** @@ -6683,13 +6551,14 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don */ public com.squareup.okhttp.Call packagesValidateUploadHelmCall(String owner, String repo, PackagesValidateuploadHelm data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = data; - + // create path and map variables String localVarPath = "/packages/{owner}/{repo}/validate-upload/helm/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "repo" + "\\}", apiClient.escapeString(repo.toString())); List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); @@ -6720,9 +6589,9 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { "apikey" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } - + @SuppressWarnings("rawtypes") private com.squareup.okhttp.Call packagesValidateUploadHelmValidateBeforeCall(String owner, String repo, PackagesValidateuploadHelm data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { @@ -6737,7 +6606,7 @@ private com.squareup.okhttp.Call packagesValidateUploadHelmValidateBeforeCall(St if (violations.size() == 0) { com.squareup.okhttp.Call call = packagesValidateUploadHelmCall(owner, repo, data, progressListener, progressRequestListener); return call; - + } else { throw new BeanValidationException((Set) violations); } @@ -6748,11 +6617,7 @@ private com.squareup.okhttp.Call packagesValidateUploadHelmValidateBeforeCall(St e.printStackTrace(); throw new ApiException(e.getMessage()); } - - - - - + } /** @@ -6828,13 +6693,14 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don */ public com.squareup.okhttp.Call packagesValidateUploadLuarocksCall(String owner, String repo, PackagesValidateuploadLuarocks data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = data; - + // create path and map variables String localVarPath = "/packages/{owner}/{repo}/validate-upload/luarocks/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "repo" + "\\}", apiClient.escapeString(repo.toString())); List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); @@ -6865,9 +6731,9 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { "apikey" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } - + @SuppressWarnings("rawtypes") private com.squareup.okhttp.Call packagesValidateUploadLuarocksValidateBeforeCall(String owner, String repo, PackagesValidateuploadLuarocks data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { @@ -6882,7 +6748,7 @@ private com.squareup.okhttp.Call packagesValidateUploadLuarocksValidateBeforeCal if (violations.size() == 0) { com.squareup.okhttp.Call call = packagesValidateUploadLuarocksCall(owner, repo, data, progressListener, progressRequestListener); return call; - + } else { throw new BeanValidationException((Set) violations); } @@ -6893,11 +6759,7 @@ private com.squareup.okhttp.Call packagesValidateUploadLuarocksValidateBeforeCal e.printStackTrace(); throw new ApiException(e.getMessage()); } - - - - - + } /** @@ -6973,13 +6835,14 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don */ public com.squareup.okhttp.Call packagesValidateUploadMavenCall(String owner, String repo, PackagesValidateuploadMaven data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = data; - + // create path and map variables String localVarPath = "/packages/{owner}/{repo}/validate-upload/maven/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "repo" + "\\}", apiClient.escapeString(repo.toString())); List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); @@ -7010,9 +6873,9 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { "apikey" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } - + @SuppressWarnings("rawtypes") private com.squareup.okhttp.Call packagesValidateUploadMavenValidateBeforeCall(String owner, String repo, PackagesValidateuploadMaven data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { @@ -7027,7 +6890,7 @@ private com.squareup.okhttp.Call packagesValidateUploadMavenValidateBeforeCall(S if (violations.size() == 0) { com.squareup.okhttp.Call call = packagesValidateUploadMavenCall(owner, repo, data, progressListener, progressRequestListener); return call; - + } else { throw new BeanValidationException((Set) violations); } @@ -7038,11 +6901,7 @@ private com.squareup.okhttp.Call packagesValidateUploadMavenValidateBeforeCall(S e.printStackTrace(); throw new ApiException(e.getMessage()); } - - - - - + } /** @@ -7118,13 +6977,14 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don */ public com.squareup.okhttp.Call packagesValidateUploadNpmCall(String owner, String repo, PackagesValidateuploadNpm data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = data; - + // create path and map variables String localVarPath = "/packages/{owner}/{repo}/validate-upload/npm/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "repo" + "\\}", apiClient.escapeString(repo.toString())); List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); @@ -7155,9 +7015,9 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { "apikey" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } - + @SuppressWarnings("rawtypes") private com.squareup.okhttp.Call packagesValidateUploadNpmValidateBeforeCall(String owner, String repo, PackagesValidateuploadNpm data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { @@ -7172,7 +7032,7 @@ private com.squareup.okhttp.Call packagesValidateUploadNpmValidateBeforeCall(Str if (violations.size() == 0) { com.squareup.okhttp.Call call = packagesValidateUploadNpmCall(owner, repo, data, progressListener, progressRequestListener); return call; - + } else { throw new BeanValidationException((Set) violations); } @@ -7183,11 +7043,7 @@ private com.squareup.okhttp.Call packagesValidateUploadNpmValidateBeforeCall(Str e.printStackTrace(); throw new ApiException(e.getMessage()); } - - - - - + } /** @@ -7263,13 +7119,14 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don */ public com.squareup.okhttp.Call packagesValidateUploadNugetCall(String owner, String repo, PackagesValidateuploadNuget data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = data; - + // create path and map variables String localVarPath = "/packages/{owner}/{repo}/validate-upload/nuget/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "repo" + "\\}", apiClient.escapeString(repo.toString())); List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); @@ -7300,9 +7157,9 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { "apikey" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } - + @SuppressWarnings("rawtypes") private com.squareup.okhttp.Call packagesValidateUploadNugetValidateBeforeCall(String owner, String repo, PackagesValidateuploadNuget data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { @@ -7317,7 +7174,7 @@ private com.squareup.okhttp.Call packagesValidateUploadNugetValidateBeforeCall(S if (violations.size() == 0) { com.squareup.okhttp.Call call = packagesValidateUploadNugetCall(owner, repo, data, progressListener, progressRequestListener); return call; - + } else { throw new BeanValidationException((Set) violations); } @@ -7328,11 +7185,7 @@ private com.squareup.okhttp.Call packagesValidateUploadNugetValidateBeforeCall(S e.printStackTrace(); throw new ApiException(e.getMessage()); } - - - - - + } /** @@ -7408,13 +7261,14 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don */ public com.squareup.okhttp.Call packagesValidateUploadP2Call(String owner, String repo, PackagesValidateuploadP2 data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = data; - + // create path and map variables String localVarPath = "/packages/{owner}/{repo}/validate-upload/p2/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "repo" + "\\}", apiClient.escapeString(repo.toString())); List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); @@ -7445,9 +7299,9 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { "apikey" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } - + @SuppressWarnings("rawtypes") private com.squareup.okhttp.Call packagesValidateUploadP2ValidateBeforeCall(String owner, String repo, PackagesValidateuploadP2 data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { @@ -7462,7 +7316,7 @@ private com.squareup.okhttp.Call packagesValidateUploadP2ValidateBeforeCall(Stri if (violations.size() == 0) { com.squareup.okhttp.Call call = packagesValidateUploadP2Call(owner, repo, data, progressListener, progressRequestListener); return call; - + } else { throw new BeanValidationException((Set) violations); } @@ -7473,11 +7327,7 @@ private com.squareup.okhttp.Call packagesValidateUploadP2ValidateBeforeCall(Stri e.printStackTrace(); throw new ApiException(e.getMessage()); } - - - - - + } /** @@ -7553,13 +7403,14 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don */ public com.squareup.okhttp.Call packagesValidateUploadPythonCall(String owner, String repo, PackagesValidateuploadPython data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = data; - + // create path and map variables String localVarPath = "/packages/{owner}/{repo}/validate-upload/python/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "repo" + "\\}", apiClient.escapeString(repo.toString())); List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); @@ -7590,9 +7441,9 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { "apikey" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } - + @SuppressWarnings("rawtypes") private com.squareup.okhttp.Call packagesValidateUploadPythonValidateBeforeCall(String owner, String repo, PackagesValidateuploadPython data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { @@ -7607,7 +7458,7 @@ private com.squareup.okhttp.Call packagesValidateUploadPythonValidateBeforeCall( if (violations.size() == 0) { com.squareup.okhttp.Call call = packagesValidateUploadPythonCall(owner, repo, data, progressListener, progressRequestListener); return call; - + } else { throw new BeanValidationException((Set) violations); } @@ -7618,11 +7469,7 @@ private com.squareup.okhttp.Call packagesValidateUploadPythonValidateBeforeCall( e.printStackTrace(); throw new ApiException(e.getMessage()); } - - - - - + } /** @@ -7698,13 +7545,14 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don */ public com.squareup.okhttp.Call packagesValidateUploadRawCall(String owner, String repo, PackagesValidateuploadRaw data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = data; - + // create path and map variables String localVarPath = "/packages/{owner}/{repo}/validate-upload/raw/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "repo" + "\\}", apiClient.escapeString(repo.toString())); List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); @@ -7735,9 +7583,9 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { "apikey" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } - + @SuppressWarnings("rawtypes") private com.squareup.okhttp.Call packagesValidateUploadRawValidateBeforeCall(String owner, String repo, PackagesValidateuploadRaw data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { @@ -7752,7 +7600,7 @@ private com.squareup.okhttp.Call packagesValidateUploadRawValidateBeforeCall(Str if (violations.size() == 0) { com.squareup.okhttp.Call call = packagesValidateUploadRawCall(owner, repo, data, progressListener, progressRequestListener); return call; - + } else { throw new BeanValidationException((Set) violations); } @@ -7763,11 +7611,7 @@ private com.squareup.okhttp.Call packagesValidateUploadRawValidateBeforeCall(Str e.printStackTrace(); throw new ApiException(e.getMessage()); } - - - - - + } /** @@ -7843,13 +7687,14 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don */ public com.squareup.okhttp.Call packagesValidateUploadRpmCall(String owner, String repo, PackagesValidateuploadRpm data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = data; - + // create path and map variables String localVarPath = "/packages/{owner}/{repo}/validate-upload/rpm/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "repo" + "\\}", apiClient.escapeString(repo.toString())); List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); @@ -7880,9 +7725,9 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { "apikey" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } - + @SuppressWarnings("rawtypes") private com.squareup.okhttp.Call packagesValidateUploadRpmValidateBeforeCall(String owner, String repo, PackagesValidateuploadRpm data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { @@ -7897,7 +7742,7 @@ private com.squareup.okhttp.Call packagesValidateUploadRpmValidateBeforeCall(Str if (violations.size() == 0) { com.squareup.okhttp.Call call = packagesValidateUploadRpmCall(owner, repo, data, progressListener, progressRequestListener); return call; - + } else { throw new BeanValidationException((Set) violations); } @@ -7908,11 +7753,7 @@ private com.squareup.okhttp.Call packagesValidateUploadRpmValidateBeforeCall(Str e.printStackTrace(); throw new ApiException(e.getMessage()); } - - - - - + } /** @@ -7988,13 +7829,14 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don */ public com.squareup.okhttp.Call packagesValidateUploadRubyCall(String owner, String repo, PackagesValidateuploadRuby data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = data; - + // create path and map variables String localVarPath = "/packages/{owner}/{repo}/validate-upload/ruby/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "repo" + "\\}", apiClient.escapeString(repo.toString())); List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); @@ -8025,9 +7867,9 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { "apikey" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } - + @SuppressWarnings("rawtypes") private com.squareup.okhttp.Call packagesValidateUploadRubyValidateBeforeCall(String owner, String repo, PackagesValidateuploadRuby data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { @@ -8042,7 +7884,7 @@ private com.squareup.okhttp.Call packagesValidateUploadRubyValidateBeforeCall(St if (violations.size() == 0) { com.squareup.okhttp.Call call = packagesValidateUploadRubyCall(owner, repo, data, progressListener, progressRequestListener); return call; - + } else { throw new BeanValidationException((Set) violations); } @@ -8053,11 +7895,7 @@ private com.squareup.okhttp.Call packagesValidateUploadRubyValidateBeforeCall(St e.printStackTrace(); throw new ApiException(e.getMessage()); } - - - - - + } /** @@ -8133,13 +7971,14 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don */ public com.squareup.okhttp.Call packagesValidateUploadTerraformCall(String owner, String repo, PackagesValidateuploadTerraform data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = data; - + // create path and map variables String localVarPath = "/packages/{owner}/{repo}/validate-upload/terraform/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "repo" + "\\}", apiClient.escapeString(repo.toString())); List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); @@ -8170,9 +8009,9 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { "apikey" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } - + @SuppressWarnings("rawtypes") private com.squareup.okhttp.Call packagesValidateUploadTerraformValidateBeforeCall(String owner, String repo, PackagesValidateuploadTerraform data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { @@ -8187,7 +8026,7 @@ private com.squareup.okhttp.Call packagesValidateUploadTerraformValidateBeforeCa if (violations.size() == 0) { com.squareup.okhttp.Call call = packagesValidateUploadTerraformCall(owner, repo, data, progressListener, progressRequestListener); return call; - + } else { throw new BeanValidationException((Set) violations); } @@ -8198,11 +8037,7 @@ private com.squareup.okhttp.Call packagesValidateUploadTerraformValidateBeforeCa e.printStackTrace(); throw new ApiException(e.getMessage()); } - - - - - + } /** @@ -8278,13 +8113,14 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don */ public com.squareup.okhttp.Call packagesValidateUploadVagrantCall(String owner, String repo, PackagesValidateuploadVagrant data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = data; - + // create path and map variables String localVarPath = "/packages/{owner}/{repo}/validate-upload/vagrant/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "repo" + "\\}", apiClient.escapeString(repo.toString())); List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); @@ -8315,9 +8151,9 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { "apikey" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } - + @SuppressWarnings("rawtypes") private com.squareup.okhttp.Call packagesValidateUploadVagrantValidateBeforeCall(String owner, String repo, PackagesValidateuploadVagrant data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { @@ -8332,7 +8168,7 @@ private com.squareup.okhttp.Call packagesValidateUploadVagrantValidateBeforeCall if (violations.size() == 0) { com.squareup.okhttp.Call call = packagesValidateUploadVagrantCall(owner, repo, data, progressListener, progressRequestListener); return call; - + } else { throw new BeanValidationException((Set) violations); } @@ -8343,11 +8179,7 @@ private com.squareup.okhttp.Call packagesValidateUploadVagrantValidateBeforeCall e.printStackTrace(); throw new ApiException(e.getMessage()); } - - - - - + } /** diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/apis/QuotaApi.java b/bindings/java/src/src/main/java/io/cloudsmith/api/apis/QuotaApi.java index 0fcdccc7..8071a771 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/apis/QuotaApi.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/apis/QuotaApi.java @@ -75,12 +75,13 @@ public void setApiClient(ApiClient apiClient) { */ public com.squareup.okhttp.Call quotaHistoryReadCall(String owner, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/quota/history/{owner}/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())); List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); @@ -111,9 +112,9 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { "apikey" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } - + @SuppressWarnings("rawtypes") private com.squareup.okhttp.Call quotaHistoryReadValidateBeforeCall(String owner, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { @@ -128,7 +129,7 @@ private com.squareup.okhttp.Call quotaHistoryReadValidateBeforeCall(String owner if (violations.size() == 0) { com.squareup.okhttp.Call call = quotaHistoryReadCall(owner, progressListener, progressRequestListener); return call; - + } else { throw new BeanValidationException((Set) violations); } @@ -139,11 +140,7 @@ private com.squareup.okhttp.Call quotaHistoryReadValidateBeforeCall(String owner e.printStackTrace(); throw new ApiException(e.getMessage()); } - - - - - + } /** @@ -215,12 +212,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don */ public com.squareup.okhttp.Call quotaOssHistoryReadCall(String owner, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/quota/oss/history/{owner}/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())); List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); @@ -251,9 +249,9 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { "apikey" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } - + @SuppressWarnings("rawtypes") private com.squareup.okhttp.Call quotaOssHistoryReadValidateBeforeCall(String owner, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { @@ -268,7 +266,7 @@ private com.squareup.okhttp.Call quotaOssHistoryReadValidateBeforeCall(String ow if (violations.size() == 0) { com.squareup.okhttp.Call call = quotaOssHistoryReadCall(owner, progressListener, progressRequestListener); return call; - + } else { throw new BeanValidationException((Set) violations); } @@ -279,11 +277,7 @@ private com.squareup.okhttp.Call quotaOssHistoryReadValidateBeforeCall(String ow e.printStackTrace(); throw new ApiException(e.getMessage()); } - - - - - + } /** @@ -355,12 +349,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don */ public com.squareup.okhttp.Call quotaOssReadCall(String owner, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/quota/oss/{owner}/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())); List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); @@ -391,9 +386,9 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { "apikey" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } - + @SuppressWarnings("rawtypes") private com.squareup.okhttp.Call quotaOssReadValidateBeforeCall(String owner, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { @@ -408,7 +403,7 @@ private com.squareup.okhttp.Call quotaOssReadValidateBeforeCall(String owner, fi if (violations.size() == 0) { com.squareup.okhttp.Call call = quotaOssReadCall(owner, progressListener, progressRequestListener); return call; - + } else { throw new BeanValidationException((Set) violations); } @@ -419,11 +414,7 @@ private com.squareup.okhttp.Call quotaOssReadValidateBeforeCall(String owner, fi e.printStackTrace(); throw new ApiException(e.getMessage()); } - - - - - + } /** @@ -495,12 +486,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don */ public com.squareup.okhttp.Call quotaReadCall(String owner, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/quota/{owner}/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())); List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); @@ -531,9 +523,9 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { "apikey" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } - + @SuppressWarnings("rawtypes") private com.squareup.okhttp.Call quotaReadValidateBeforeCall(String owner, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { @@ -548,7 +540,7 @@ private com.squareup.okhttp.Call quotaReadValidateBeforeCall(String owner, final if (violations.size() == 0) { com.squareup.okhttp.Call call = quotaReadCall(owner, progressListener, progressRequestListener); return call; - + } else { throw new BeanValidationException((Set) violations); } @@ -559,11 +551,7 @@ private com.squareup.okhttp.Call quotaReadValidateBeforeCall(String owner, final e.printStackTrace(); throw new ApiException(e.getMessage()); } - - - - - + } /** diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/apis/RatesApi.java b/bindings/java/src/src/main/java/io/cloudsmith/api/apis/RatesApi.java index 3bfc1e0d..5887fe62 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/apis/RatesApi.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/apis/RatesApi.java @@ -73,11 +73,12 @@ public void setApiClient(ApiClient apiClient) { */ public com.squareup.okhttp.Call ratesLimitsListCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/rates/limits/"; List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); @@ -108,9 +109,9 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { "apikey" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } - + @SuppressWarnings("rawtypes") private com.squareup.okhttp.Call ratesLimitsListValidateBeforeCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { @@ -125,7 +126,7 @@ private com.squareup.okhttp.Call ratesLimitsListValidateBeforeCall(final Progres if (violations.size() == 0) { com.squareup.okhttp.Call call = ratesLimitsListCall(progressListener, progressRequestListener); return call; - + } else { throw new BeanValidationException((Set) violations); } @@ -136,11 +137,7 @@ private com.squareup.okhttp.Call ratesLimitsListValidateBeforeCall(final Progres e.printStackTrace(); throw new ApiException(e.getMessage()); } - - - - - + } /** diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/apis/ReposApi.java b/bindings/java/src/src/main/java/io/cloudsmith/api/apis/ReposApi.java index d573b34a..14bc37bd 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/apis/ReposApi.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/apis/ReposApi.java @@ -77,15 +77,16 @@ public void setApiClient(ApiClient apiClient) { */ public com.squareup.okhttp.Call reposAllListCall(Integer page, Integer pageSize, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/repos/"; List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); if (page != null) - localVarQueryParams.addAll(apiClient.parameterToPairs("", "page", page)); + localVarQueryParams.addAll(apiClient.parameterToPair("page", page)); if (pageSize != null) - localVarQueryParams.addAll(apiClient.parameterToPairs("", "page_size", pageSize)); + localVarQueryParams.addAll(apiClient.parameterToPair("page_size", pageSize)); Map localVarHeaderParams = new HashMap(); @@ -116,9 +117,9 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { "apikey" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } - + @SuppressWarnings("rawtypes") private com.squareup.okhttp.Call reposAllListValidateBeforeCall(Integer page, Integer pageSize, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { @@ -133,7 +134,7 @@ private com.squareup.okhttp.Call reposAllListValidateBeforeCall(Integer page, In if (violations.size() == 0) { com.squareup.okhttp.Call call = reposAllListCall(page, pageSize, progressListener, progressRequestListener); return call; - + } else { throw new BeanValidationException((Set) violations); } @@ -144,11 +145,7 @@ private com.squareup.okhttp.Call reposAllListValidateBeforeCall(Integer page, In e.printStackTrace(); throw new ApiException(e.getMessage()); } - - - - - + } /** @@ -224,12 +221,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don */ public com.squareup.okhttp.Call reposCreateCall(String owner, ReposCreate data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = data; - + // create path and map variables String localVarPath = "/repos/{owner}/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())); List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); @@ -260,9 +258,9 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { "apikey" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } - + @SuppressWarnings("rawtypes") private com.squareup.okhttp.Call reposCreateValidateBeforeCall(String owner, ReposCreate data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { @@ -277,7 +275,7 @@ private com.squareup.okhttp.Call reposCreateValidateBeforeCall(String owner, Rep if (violations.size() == 0) { com.squareup.okhttp.Call call = reposCreateCall(owner, data, progressListener, progressRequestListener); return call; - + } else { throw new BeanValidationException((Set) violations); } @@ -288,11 +286,7 @@ private com.squareup.okhttp.Call reposCreateValidateBeforeCall(String owner, Rep e.printStackTrace(); throw new ApiException(e.getMessage()); } - - - - - + } /** @@ -368,13 +362,14 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don */ public com.squareup.okhttp.Call reposDeleteCall(String owner, String identifier, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/repos/{owner}/{identifier}/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "identifier" + "\\}", apiClient.escapeString(identifier.toString())); List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); @@ -405,9 +400,9 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { "apikey" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } - + @SuppressWarnings("rawtypes") private com.squareup.okhttp.Call reposDeleteValidateBeforeCall(String owner, String identifier, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { @@ -422,7 +417,7 @@ private com.squareup.okhttp.Call reposDeleteValidateBeforeCall(String owner, Str if (violations.size() == 0) { com.squareup.okhttp.Call call = reposDeleteCall(owner, identifier, progressListener, progressRequestListener); return call; - + } else { throw new BeanValidationException((Set) violations); } @@ -433,11 +428,7 @@ private com.squareup.okhttp.Call reposDeleteValidateBeforeCall(String owner, Str e.printStackTrace(); throw new ApiException(e.getMessage()); } - - - - - + } /** @@ -510,16 +501,17 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don */ public com.squareup.okhttp.Call reposListCall(String owner, Integer page, Integer pageSize, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/repos/{owner}/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())); List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); if (page != null) - localVarQueryParams.addAll(apiClient.parameterToPairs("", "page", page)); + localVarQueryParams.addAll(apiClient.parameterToPair("page", page)); if (pageSize != null) - localVarQueryParams.addAll(apiClient.parameterToPairs("", "page_size", pageSize)); + localVarQueryParams.addAll(apiClient.parameterToPair("page_size", pageSize)); Map localVarHeaderParams = new HashMap(); @@ -550,9 +542,9 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { "apikey" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } - + @SuppressWarnings("rawtypes") private com.squareup.okhttp.Call reposListValidateBeforeCall(String owner, Integer page, Integer pageSize, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { @@ -567,7 +559,7 @@ private com.squareup.okhttp.Call reposListValidateBeforeCall(String owner, Integ if (violations.size() == 0) { com.squareup.okhttp.Call call = reposListCall(owner, page, pageSize, progressListener, progressRequestListener); return call; - + } else { throw new BeanValidationException((Set) violations); } @@ -578,11 +570,7 @@ private com.squareup.okhttp.Call reposListValidateBeforeCall(String owner, Integ e.printStackTrace(); throw new ApiException(e.getMessage()); } - - - - - + } /** @@ -662,13 +650,14 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don */ public com.squareup.okhttp.Call reposPartialUpdateCall(String owner, String identifier, ReposPartialUpdate data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = data; - + // create path and map variables String localVarPath = "/repos/{owner}/{identifier}/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "identifier" + "\\}", apiClient.escapeString(identifier.toString())); List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); @@ -699,9 +688,9 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { "apikey" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } - + @SuppressWarnings("rawtypes") private com.squareup.okhttp.Call reposPartialUpdateValidateBeforeCall(String owner, String identifier, ReposPartialUpdate data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { @@ -716,7 +705,7 @@ private com.squareup.okhttp.Call reposPartialUpdateValidateBeforeCall(String own if (violations.size() == 0) { com.squareup.okhttp.Call call = reposPartialUpdateCall(owner, identifier, data, progressListener, progressRequestListener); return call; - + } else { throw new BeanValidationException((Set) violations); } @@ -727,11 +716,7 @@ private com.squareup.okhttp.Call reposPartialUpdateValidateBeforeCall(String own e.printStackTrace(); throw new ApiException(e.getMessage()); } - - - - - + } /** @@ -810,13 +795,14 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don */ public com.squareup.okhttp.Call reposReadCall(String owner, String identifier, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/repos/{owner}/{identifier}/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "identifier" + "\\}", apiClient.escapeString(identifier.toString())); List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); @@ -847,9 +833,9 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { "apikey" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } - + @SuppressWarnings("rawtypes") private com.squareup.okhttp.Call reposReadValidateBeforeCall(String owner, String identifier, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { @@ -864,7 +850,7 @@ private com.squareup.okhttp.Call reposReadValidateBeforeCall(String owner, Strin if (violations.size() == 0) { com.squareup.okhttp.Call call = reposReadCall(owner, identifier, progressListener, progressRequestListener); return call; - + } else { throw new BeanValidationException((Set) violations); } @@ -875,11 +861,7 @@ private com.squareup.okhttp.Call reposReadValidateBeforeCall(String owner, Strin e.printStackTrace(); throw new ApiException(e.getMessage()); } - - - - - + } /** diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/apis/StatusApi.java b/bindings/java/src/src/main/java/io/cloudsmith/api/apis/StatusApi.java index 539c9581..699d362a 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/apis/StatusApi.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/apis/StatusApi.java @@ -73,11 +73,12 @@ public void setApiClient(ApiClient apiClient) { */ public com.squareup.okhttp.Call statusCheckBasicCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/status/check/basic/"; List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); @@ -108,9 +109,9 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } - + @SuppressWarnings("rawtypes") private com.squareup.okhttp.Call statusCheckBasicValidateBeforeCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { @@ -125,7 +126,7 @@ private com.squareup.okhttp.Call statusCheckBasicValidateBeforeCall(final Progre if (violations.size() == 0) { com.squareup.okhttp.Call call = statusCheckBasicCall(progressListener, progressRequestListener); return call; - + } else { throw new BeanValidationException((Set) violations); } @@ -136,11 +137,7 @@ private com.squareup.okhttp.Call statusCheckBasicValidateBeforeCall(final Progre e.printStackTrace(); throw new ApiException(e.getMessage()); } - - - - - + } /** diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/apis/StorageRegionsApi.java b/bindings/java/src/src/main/java/io/cloudsmith/api/apis/StorageRegionsApi.java index 28f82097..90de8485 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/apis/StorageRegionsApi.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/apis/StorageRegionsApi.java @@ -73,11 +73,12 @@ public void setApiClient(ApiClient apiClient) { */ public com.squareup.okhttp.Call storageRegionsListCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/storage-regions/"; List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); @@ -108,9 +109,9 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { "apikey" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } - + @SuppressWarnings("rawtypes") private com.squareup.okhttp.Call storageRegionsListValidateBeforeCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { @@ -125,7 +126,7 @@ private com.squareup.okhttp.Call storageRegionsListValidateBeforeCall(final Prog if (violations.size() == 0) { com.squareup.okhttp.Call call = storageRegionsListCall(progressListener, progressRequestListener); return call; - + } else { throw new BeanValidationException((Set) violations); } @@ -136,11 +137,7 @@ private com.squareup.okhttp.Call storageRegionsListValidateBeforeCall(final Prog e.printStackTrace(); throw new ApiException(e.getMessage()); } - - - - - + } /** @@ -209,12 +206,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don */ public com.squareup.okhttp.Call storageRegionsReadCall(String slug, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/storage-regions/{slug}/" .replaceAll("\\{" + "slug" + "\\}", apiClient.escapeString(slug.toString())); List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); @@ -245,9 +243,9 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { "apikey" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } - + @SuppressWarnings("rawtypes") private com.squareup.okhttp.Call storageRegionsReadValidateBeforeCall(String slug, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { @@ -262,7 +260,7 @@ private com.squareup.okhttp.Call storageRegionsReadValidateBeforeCall(String slu if (violations.size() == 0) { com.squareup.okhttp.Call call = storageRegionsReadCall(slug, progressListener, progressRequestListener); return call; - + } else { throw new BeanValidationException((Set) violations); } @@ -273,11 +271,7 @@ private com.squareup.okhttp.Call storageRegionsReadValidateBeforeCall(String slu e.printStackTrace(); throw new ApiException(e.getMessage()); } - - - - - + } /** diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/apis/UserApi.java b/bindings/java/src/src/main/java/io/cloudsmith/api/apis/UserApi.java index 9dbac462..078542b2 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/apis/UserApi.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/apis/UserApi.java @@ -75,11 +75,12 @@ public void setApiClient(ApiClient apiClient) { */ public com.squareup.okhttp.Call userSelfCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/user/self/"; List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); @@ -110,9 +111,9 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { "apikey" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } - + @SuppressWarnings("rawtypes") private com.squareup.okhttp.Call userSelfValidateBeforeCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { @@ -127,7 +128,7 @@ private com.squareup.okhttp.Call userSelfValidateBeforeCall(final ProgressRespon if (violations.size() == 0) { com.squareup.okhttp.Call call = userSelfCall(progressListener, progressRequestListener); return call; - + } else { throw new BeanValidationException((Set) violations); } @@ -138,11 +139,7 @@ private com.squareup.okhttp.Call userSelfValidateBeforeCall(final ProgressRespon e.printStackTrace(); throw new ApiException(e.getMessage()); } - - - - - + } /** @@ -211,11 +208,12 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don */ public com.squareup.okhttp.Call userTokenCreateCall(UserTokenCreate data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = data; - + // create path and map variables String localVarPath = "/user/token/"; List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); @@ -246,9 +244,9 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { "apikey" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } - + @SuppressWarnings("rawtypes") private com.squareup.okhttp.Call userTokenCreateValidateBeforeCall(UserTokenCreate data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { @@ -263,7 +261,7 @@ private com.squareup.okhttp.Call userTokenCreateValidateBeforeCall(UserTokenCrea if (violations.size() == 0) { com.squareup.okhttp.Call call = userTokenCreateCall(data, progressListener, progressRequestListener); return call; - + } else { throw new BeanValidationException((Set) violations); } @@ -274,11 +272,7 @@ private com.squareup.okhttp.Call userTokenCreateValidateBeforeCall(UserTokenCrea e.printStackTrace(); throw new ApiException(e.getMessage()); } - - - - - + } /** diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/apis/UsersApi.java b/bindings/java/src/src/main/java/io/cloudsmith/api/apis/UsersApi.java index 3ae24fc1..a5d2c46b 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/apis/UsersApi.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/apis/UsersApi.java @@ -74,12 +74,13 @@ public void setApiClient(ApiClient apiClient) { */ public com.squareup.okhttp.Call usersProfileReadCall(String slug, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/users/profile/{slug}/" .replaceAll("\\{" + "slug" + "\\}", apiClient.escapeString(slug.toString())); List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); @@ -110,9 +111,9 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { "apikey" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } - + @SuppressWarnings("rawtypes") private com.squareup.okhttp.Call usersProfileReadValidateBeforeCall(String slug, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { @@ -127,7 +128,7 @@ private com.squareup.okhttp.Call usersProfileReadValidateBeforeCall(String slug, if (violations.size() == 0) { com.squareup.okhttp.Call call = usersProfileReadCall(slug, progressListener, progressRequestListener); return call; - + } else { throw new BeanValidationException((Set) violations); } @@ -138,11 +139,7 @@ private com.squareup.okhttp.Call usersProfileReadValidateBeforeCall(String slug, e.printStackTrace(); throw new ApiException(e.getMessage()); } - - - - - + } /** diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/apis/VulnerabilitiesApi.java b/bindings/java/src/src/main/java/io/cloudsmith/api/apis/VulnerabilitiesApi.java index fa9d4c0c..1b2c7c87 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/apis/VulnerabilitiesApi.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/apis/VulnerabilitiesApi.java @@ -77,16 +77,17 @@ public void setApiClient(ApiClient apiClient) { */ public com.squareup.okhttp.Call vulnerabilitiesListCall(String owner, Integer page, Integer pageSize, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/vulnerabilities/{owner}/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())); List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); if (page != null) - localVarQueryParams.addAll(apiClient.parameterToPairs("", "page", page)); + localVarQueryParams.addAll(apiClient.parameterToPair("page", page)); if (pageSize != null) - localVarQueryParams.addAll(apiClient.parameterToPairs("", "page_size", pageSize)); + localVarQueryParams.addAll(apiClient.parameterToPair("page_size", pageSize)); Map localVarHeaderParams = new HashMap(); @@ -117,9 +118,9 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { "apikey" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } - + @SuppressWarnings("rawtypes") private com.squareup.okhttp.Call vulnerabilitiesListValidateBeforeCall(String owner, Integer page, Integer pageSize, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { @@ -134,7 +135,7 @@ private com.squareup.okhttp.Call vulnerabilitiesListValidateBeforeCall(String ow if (violations.size() == 0) { com.squareup.okhttp.Call call = vulnerabilitiesListCall(owner, page, pageSize, progressListener, progressRequestListener); return call; - + } else { throw new BeanValidationException((Set) violations); } @@ -145,11 +146,7 @@ private com.squareup.okhttp.Call vulnerabilitiesListValidateBeforeCall(String ow e.printStackTrace(); throw new ApiException(e.getMessage()); } - - - - - + } /** @@ -230,17 +227,18 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don */ public com.squareup.okhttp.Call vulnerabilitiesList0Call(String owner, String repo, Integer page, Integer pageSize, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/vulnerabilities/{owner}/{repo}/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "repo" + "\\}", apiClient.escapeString(repo.toString())); List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); if (page != null) - localVarQueryParams.addAll(apiClient.parameterToPairs("", "page", page)); + localVarQueryParams.addAll(apiClient.parameterToPair("page", page)); if (pageSize != null) - localVarQueryParams.addAll(apiClient.parameterToPairs("", "page_size", pageSize)); + localVarQueryParams.addAll(apiClient.parameterToPair("page_size", pageSize)); Map localVarHeaderParams = new HashMap(); @@ -271,9 +269,9 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { "apikey" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } - + @SuppressWarnings("rawtypes") private com.squareup.okhttp.Call vulnerabilitiesList0ValidateBeforeCall(String owner, String repo, Integer page, Integer pageSize, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { @@ -288,7 +286,7 @@ private com.squareup.okhttp.Call vulnerabilitiesList0ValidateBeforeCall(String o if (violations.size() == 0) { com.squareup.okhttp.Call call = vulnerabilitiesList0Call(owner, repo, page, pageSize, progressListener, progressRequestListener); return call; - + } else { throw new BeanValidationException((Set) violations); } @@ -299,11 +297,7 @@ private com.squareup.okhttp.Call vulnerabilitiesList0ValidateBeforeCall(String o e.printStackTrace(); throw new ApiException(e.getMessage()); } - - - - - + } /** @@ -388,7 +382,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don */ public com.squareup.okhttp.Call vulnerabilitiesList1Call(String owner, String repo, String _package, Integer page, Integer pageSize, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/vulnerabilities/{owner}/{repo}/{package}/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) @@ -396,10 +390,11 @@ public com.squareup.okhttp.Call vulnerabilitiesList1Call(String owner, String re .replaceAll("\\{" + "package" + "\\}", apiClient.escapeString(_package.toString())); List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); if (page != null) - localVarQueryParams.addAll(apiClient.parameterToPairs("", "page", page)); + localVarQueryParams.addAll(apiClient.parameterToPair("page", page)); if (pageSize != null) - localVarQueryParams.addAll(apiClient.parameterToPairs("", "page_size", pageSize)); + localVarQueryParams.addAll(apiClient.parameterToPair("page_size", pageSize)); Map localVarHeaderParams = new HashMap(); @@ -430,9 +425,9 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { "apikey" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } - + @SuppressWarnings("rawtypes") private com.squareup.okhttp.Call vulnerabilitiesList1ValidateBeforeCall(String owner, String repo, String _package, Integer page, Integer pageSize, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { @@ -447,7 +442,7 @@ private com.squareup.okhttp.Call vulnerabilitiesList1ValidateBeforeCall(String o if (violations.size() == 0) { com.squareup.okhttp.Call call = vulnerabilitiesList1Call(owner, repo, _package, page, pageSize, progressListener, progressRequestListener); return call; - + } else { throw new BeanValidationException((Set) violations); } @@ -458,11 +453,7 @@ private com.squareup.okhttp.Call vulnerabilitiesList1ValidateBeforeCall(String o e.printStackTrace(); throw new ApiException(e.getMessage()); } - - - - - + } /** @@ -549,7 +540,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don */ public com.squareup.okhttp.Call vulnerabilitiesReadCall(String owner, String repo, String _package, String scanId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/vulnerabilities/{owner}/{repo}/{package}/{scan_id}/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) @@ -558,6 +549,7 @@ public com.squareup.okhttp.Call vulnerabilitiesReadCall(String owner, String rep .replaceAll("\\{" + "scan_id" + "\\}", apiClient.escapeString(scanId.toString())); List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); @@ -588,9 +580,9 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { "apikey" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } - + @SuppressWarnings("rawtypes") private com.squareup.okhttp.Call vulnerabilitiesReadValidateBeforeCall(String owner, String repo, String _package, String scanId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { @@ -605,7 +597,7 @@ private com.squareup.okhttp.Call vulnerabilitiesReadValidateBeforeCall(String ow if (violations.size() == 0) { com.squareup.okhttp.Call call = vulnerabilitiesReadCall(owner, repo, _package, scanId, progressListener, progressRequestListener); return call; - + } else { throw new BeanValidationException((Set) violations); } @@ -616,11 +608,7 @@ private com.squareup.okhttp.Call vulnerabilitiesReadValidateBeforeCall(String ow e.printStackTrace(); throw new ApiException(e.getMessage()); } - - - - - + } /** diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/apis/WebhooksApi.java b/bindings/java/src/src/main/java/io/cloudsmith/api/apis/WebhooksApi.java index 50243035..3d3af73a 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/apis/WebhooksApi.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/apis/WebhooksApi.java @@ -78,13 +78,14 @@ public void setApiClient(ApiClient apiClient) { */ public com.squareup.okhttp.Call webhooksCreateCall(String owner, String repo, WebhooksCreate data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = data; - + // create path and map variables String localVarPath = "/webhooks/{owner}/{repo}/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "repo" + "\\}", apiClient.escapeString(repo.toString())); List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); @@ -115,9 +116,9 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { "apikey" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } - + @SuppressWarnings("rawtypes") private com.squareup.okhttp.Call webhooksCreateValidateBeforeCall(String owner, String repo, WebhooksCreate data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { @@ -132,7 +133,7 @@ private com.squareup.okhttp.Call webhooksCreateValidateBeforeCall(String owner, if (violations.size() == 0) { com.squareup.okhttp.Call call = webhooksCreateCall(owner, repo, data, progressListener, progressRequestListener); return call; - + } else { throw new BeanValidationException((Set) violations); } @@ -143,11 +144,7 @@ private com.squareup.okhttp.Call webhooksCreateValidateBeforeCall(String owner, e.printStackTrace(); throw new ApiException(e.getMessage()); } - - - - - + } /** @@ -227,7 +224,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don */ public com.squareup.okhttp.Call webhooksDeleteCall(String owner, String repo, String identifier, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/webhooks/{owner}/{repo}/{identifier}/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) @@ -235,6 +232,7 @@ public com.squareup.okhttp.Call webhooksDeleteCall(String owner, String repo, St .replaceAll("\\{" + "identifier" + "\\}", apiClient.escapeString(identifier.toString())); List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); @@ -265,9 +263,9 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { "apikey" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } - + @SuppressWarnings("rawtypes") private com.squareup.okhttp.Call webhooksDeleteValidateBeforeCall(String owner, String repo, String identifier, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { @@ -282,7 +280,7 @@ private com.squareup.okhttp.Call webhooksDeleteValidateBeforeCall(String owner, if (violations.size() == 0) { com.squareup.okhttp.Call call = webhooksDeleteCall(owner, repo, identifier, progressListener, progressRequestListener); return call; - + } else { throw new BeanValidationException((Set) violations); } @@ -293,11 +291,7 @@ private com.squareup.okhttp.Call webhooksDeleteValidateBeforeCall(String owner, e.printStackTrace(); throw new ApiException(e.getMessage()); } - - - - - + } /** @@ -374,17 +368,18 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don */ public com.squareup.okhttp.Call webhooksListCall(String owner, String repo, Integer page, Integer pageSize, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/webhooks/{owner}/{repo}/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "repo" + "\\}", apiClient.escapeString(repo.toString())); List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); if (page != null) - localVarQueryParams.addAll(apiClient.parameterToPairs("", "page", page)); + localVarQueryParams.addAll(apiClient.parameterToPair("page", page)); if (pageSize != null) - localVarQueryParams.addAll(apiClient.parameterToPairs("", "page_size", pageSize)); + localVarQueryParams.addAll(apiClient.parameterToPair("page_size", pageSize)); Map localVarHeaderParams = new HashMap(); @@ -415,9 +410,9 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { "apikey" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } - + @SuppressWarnings("rawtypes") private com.squareup.okhttp.Call webhooksListValidateBeforeCall(String owner, String repo, Integer page, Integer pageSize, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { @@ -432,7 +427,7 @@ private com.squareup.okhttp.Call webhooksListValidateBeforeCall(String owner, St if (violations.size() == 0) { com.squareup.okhttp.Call call = webhooksListCall(owner, repo, page, pageSize, progressListener, progressRequestListener); return call; - + } else { throw new BeanValidationException((Set) violations); } @@ -443,11 +438,7 @@ private com.squareup.okhttp.Call webhooksListValidateBeforeCall(String owner, St e.printStackTrace(); throw new ApiException(e.getMessage()); } - - - - - + } /** @@ -531,7 +522,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don */ public com.squareup.okhttp.Call webhooksPartialUpdateCall(String owner, String repo, String identifier, WebhooksPartialUpdate data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = data; - + // create path and map variables String localVarPath = "/webhooks/{owner}/{repo}/{identifier}/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) @@ -539,6 +530,7 @@ public com.squareup.okhttp.Call webhooksPartialUpdateCall(String owner, String r .replaceAll("\\{" + "identifier" + "\\}", apiClient.escapeString(identifier.toString())); List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); @@ -569,9 +561,9 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { "apikey" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } - + @SuppressWarnings("rawtypes") private com.squareup.okhttp.Call webhooksPartialUpdateValidateBeforeCall(String owner, String repo, String identifier, WebhooksPartialUpdate data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { @@ -586,7 +578,7 @@ private com.squareup.okhttp.Call webhooksPartialUpdateValidateBeforeCall(String if (violations.size() == 0) { com.squareup.okhttp.Call call = webhooksPartialUpdateCall(owner, repo, identifier, data, progressListener, progressRequestListener); return call; - + } else { throw new BeanValidationException((Set) violations); } @@ -597,11 +589,7 @@ private com.squareup.okhttp.Call webhooksPartialUpdateValidateBeforeCall(String e.printStackTrace(); throw new ApiException(e.getMessage()); } - - - - - + } /** @@ -684,7 +672,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don */ public com.squareup.okhttp.Call webhooksReadCall(String owner, String repo, String identifier, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/webhooks/{owner}/{repo}/{identifier}/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) @@ -692,6 +680,7 @@ public com.squareup.okhttp.Call webhooksReadCall(String owner, String repo, Stri .replaceAll("\\{" + "identifier" + "\\}", apiClient.escapeString(identifier.toString())); List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); @@ -722,9 +711,9 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } String[] localVarAuthNames = new String[] { "apikey" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } - + @SuppressWarnings("rawtypes") private com.squareup.okhttp.Call webhooksReadValidateBeforeCall(String owner, String repo, String identifier, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { @@ -739,7 +728,7 @@ private com.squareup.okhttp.Call webhooksReadValidateBeforeCall(String owner, St if (violations.size() == 0) { com.squareup.okhttp.Call call = webhooksReadCall(owner, repo, identifier, progressListener, progressRequestListener); return call; - + } else { throw new BeanValidationException((Set) violations); } @@ -750,11 +739,7 @@ private com.squareup.okhttp.Call webhooksReadValidateBeforeCall(String owner, St e.printStackTrace(); throw new ApiException(e.getMessage()); } - - - - - + } /** diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/AlpinePackageUpload.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/AlpinePackageUpload.java index f4a6e654..bc6ab440 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/AlpinePackageUpload.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/AlpinePackageUpload.java @@ -14,6 +14,7 @@ package io.cloudsmith.api.models; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -236,7 +237,7 @@ public AlpinePackageUpload architectures(List ar public AlpinePackageUpload addArchitecturesItem(PackagesownerrepoArchitectures architecturesItem) { if (this.architectures == null) { - this.architectures = new ArrayList(); + this.architectures = new ArrayList<>(); } this.architectures.add(architecturesItem); return this; @@ -515,7 +516,7 @@ public AlpinePackageUpload files(List files) { public AlpinePackageUpload addFilesItem(PackagesownerrepoFiles filesItem) { if (this.files == null) { - this.files = new ArrayList(); + this.files = new ArrayList<>(); } this.files.add(filesItem); return this; @@ -599,7 +600,7 @@ public AlpinePackageUpload indexed(Boolean indexed) { * @return indexed **/ @ApiModelProperty(value = "") - public Boolean getIndexed() { + public Boolean isIndexed() { return indexed; } @@ -617,7 +618,7 @@ public AlpinePackageUpload isSyncAwaiting(Boolean isSyncAwaiting) { * @return isSyncAwaiting **/ @ApiModelProperty(value = "") - public Boolean getIsSyncAwaiting() { + public Boolean isIsSyncAwaiting() { return isSyncAwaiting; } @@ -635,7 +636,7 @@ public AlpinePackageUpload isSyncCompleted(Boolean isSyncCompleted) { * @return isSyncCompleted **/ @ApiModelProperty(value = "") - public Boolean getIsSyncCompleted() { + public Boolean isIsSyncCompleted() { return isSyncCompleted; } @@ -653,7 +654,7 @@ public AlpinePackageUpload isSyncFailed(Boolean isSyncFailed) { * @return isSyncFailed **/ @ApiModelProperty(value = "") - public Boolean getIsSyncFailed() { + public Boolean isIsSyncFailed() { return isSyncFailed; } @@ -671,7 +672,7 @@ public AlpinePackageUpload isSyncInFlight(Boolean isSyncInFlight) { * @return isSyncInFlight **/ @ApiModelProperty(value = "") - public Boolean getIsSyncInFlight() { + public Boolean isIsSyncInFlight() { return isSyncInFlight; } @@ -689,7 +690,7 @@ public AlpinePackageUpload isSyncInProgress(Boolean isSyncInProgress) { * @return isSyncInProgress **/ @ApiModelProperty(value = "") - public Boolean getIsSyncInProgress() { + public Boolean isIsSyncInProgress() { return isSyncInProgress; } @@ -1564,6 +1565,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/ConanPackageUpload.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/ConanPackageUpload.java index 99cc92a1..e21c91d1 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/ConanPackageUpload.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/ConanPackageUpload.java @@ -14,6 +14,7 @@ package io.cloudsmith.api.models; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -242,7 +243,7 @@ public ConanPackageUpload architectures(List arc public ConanPackageUpload addArchitecturesItem(PackagesownerrepoArchitectures architecturesItem) { if (this.architectures == null) { - this.architectures = new ArrayList(); + this.architectures = new ArrayList<>(); } this.architectures.add(architecturesItem); return this; @@ -557,7 +558,7 @@ public ConanPackageUpload files(List files) { public ConanPackageUpload addFilesItem(PackagesownerrepoFiles filesItem) { if (this.files == null) { - this.files = new ArrayList(); + this.files = new ArrayList<>(); } this.files.add(filesItem); return this; @@ -641,7 +642,7 @@ public ConanPackageUpload indexed(Boolean indexed) { * @return indexed **/ @ApiModelProperty(value = "") - public Boolean getIndexed() { + public Boolean isIndexed() { return indexed; } @@ -659,7 +660,7 @@ public ConanPackageUpload isSyncAwaiting(Boolean isSyncAwaiting) { * @return isSyncAwaiting **/ @ApiModelProperty(value = "") - public Boolean getIsSyncAwaiting() { + public Boolean isIsSyncAwaiting() { return isSyncAwaiting; } @@ -677,7 +678,7 @@ public ConanPackageUpload isSyncCompleted(Boolean isSyncCompleted) { * @return isSyncCompleted **/ @ApiModelProperty(value = "") - public Boolean getIsSyncCompleted() { + public Boolean isIsSyncCompleted() { return isSyncCompleted; } @@ -695,7 +696,7 @@ public ConanPackageUpload isSyncFailed(Boolean isSyncFailed) { * @return isSyncFailed **/ @ApiModelProperty(value = "") - public Boolean getIsSyncFailed() { + public Boolean isIsSyncFailed() { return isSyncFailed; } @@ -713,7 +714,7 @@ public ConanPackageUpload isSyncInFlight(Boolean isSyncInFlight) { * @return isSyncInFlight **/ @ApiModelProperty(value = "") - public Boolean getIsSyncInFlight() { + public Boolean isIsSyncInFlight() { return isSyncInFlight; } @@ -731,7 +732,7 @@ public ConanPackageUpload isSyncInProgress(Boolean isSyncInProgress) { * @return isSyncInProgress **/ @ApiModelProperty(value = "") - public Boolean getIsSyncInProgress() { + public Boolean isIsSyncInProgress() { return isSyncInProgress; } @@ -1610,6 +1611,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/Distribution.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/Distribution.java index dd36032e..43399461 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/Distribution.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/Distribution.java @@ -14,6 +14,7 @@ package io.cloudsmith.api.models; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -173,7 +174,7 @@ public Distribution versions(List versions) { public Distribution addVersionsItem(DistrosVersions versionsItem) { if (this.versions == null) { - this.versions = new ArrayList(); + this.versions = new ArrayList<>(); } this.versions.add(versionsItem); return this; @@ -244,6 +245,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/DistrosVersions.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/DistrosVersions.java index bc855751..48f261f3 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/DistrosVersions.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/DistrosVersions.java @@ -14,6 +14,7 @@ package io.cloudsmith.api.models; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -116,6 +117,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/EntitlementUsageMetrics.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/EntitlementUsageMetrics.java index e2aa230b..d7a240f1 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/EntitlementUsageMetrics.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/EntitlementUsageMetrics.java @@ -14,6 +14,7 @@ package io.cloudsmith.api.models; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -94,6 +95,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/EntitlementsCreate.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/EntitlementsCreate.java index 307a908c..b57bd63c 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/EntitlementsCreate.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/EntitlementsCreate.java @@ -14,6 +14,7 @@ package io.cloudsmith.api.models; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -88,7 +89,7 @@ public EntitlementsCreate eulaRequired(Boolean eulaRequired) { * @return eulaRequired **/ @ApiModelProperty(value = "If checked, a EULA acceptance is required for this token.") - public Boolean getEulaRequired() { + public Boolean isEulaRequired() { return eulaRequired; } @@ -106,7 +107,7 @@ public EntitlementsCreate isActive(Boolean isActive) { * @return isActive **/ @ApiModelProperty(value = "If enabled, the token will allow downloads based on configured restrictions (if any).") - public Boolean getIsActive() { + public Boolean isIsActive() { return isActive; } @@ -416,6 +417,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/EntitlementsPartialUpdate.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/EntitlementsPartialUpdate.java index 6fe01cf3..41c8d14f 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/EntitlementsPartialUpdate.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/EntitlementsPartialUpdate.java @@ -14,6 +14,7 @@ package io.cloudsmith.api.models; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -88,7 +89,7 @@ public EntitlementsPartialUpdate eulaRequired(Boolean eulaRequired) { * @return eulaRequired **/ @ApiModelProperty(value = "If checked, a EULA acceptance is required for this token.") - public Boolean getEulaRequired() { + public Boolean isEulaRequired() { return eulaRequired; } @@ -106,7 +107,7 @@ public EntitlementsPartialUpdate isActive(Boolean isActive) { * @return isActive **/ @ApiModelProperty(value = "If enabled, the token will allow downloads based on configured restrictions (if any).") - public Boolean getIsActive() { + public Boolean isIsActive() { return isActive; } @@ -415,6 +416,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/EntitlementsRefresh.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/EntitlementsRefresh.java index 789f8d04..0cab0ee2 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/EntitlementsRefresh.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/EntitlementsRefresh.java @@ -14,6 +14,7 @@ package io.cloudsmith.api.models; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -85,7 +86,7 @@ public EntitlementsRefresh eulaRequired(Boolean eulaRequired) { * @return eulaRequired **/ @ApiModelProperty(value = "If checked, a EULA acceptance is required for this token.") - public Boolean getEulaRequired() { + public Boolean isEulaRequired() { return eulaRequired; } @@ -103,7 +104,7 @@ public EntitlementsRefresh isActive(Boolean isActive) { * @return isActive **/ @ApiModelProperty(value = "If enabled, the token will allow downloads based on configured restrictions (if any).") - public Boolean getIsActive() { + public Boolean isIsActive() { return isActive; } @@ -392,6 +393,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/EntitlementsSync.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/EntitlementsSync.java index 3ea3492c..c70ce1d3 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/EntitlementsSync.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/EntitlementsSync.java @@ -14,6 +14,7 @@ package io.cloudsmith.api.models; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -94,6 +95,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/FilesAbort.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/FilesAbort.java index 413db97a..cfd8f28e 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/FilesAbort.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/FilesAbort.java @@ -14,6 +14,7 @@ package io.cloudsmith.api.models; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -163,6 +164,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/FilesComplete.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/FilesComplete.java index 08a778e5..1b180e0b 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/FilesComplete.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/FilesComplete.java @@ -14,6 +14,7 @@ package io.cloudsmith.api.models; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -163,6 +164,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/FilesCreate.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/FilesCreate.java index daf586a7..77661adf 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/FilesCreate.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/FilesCreate.java @@ -14,6 +14,7 @@ package io.cloudsmith.api.models; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -163,6 +164,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/FilesValidate.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/FilesValidate.java index 0763ec38..e09298c0 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/FilesValidate.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/FilesValidate.java @@ -14,6 +14,7 @@ package io.cloudsmith.api.models; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -163,6 +164,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/Format.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/Format.java index 2dcb35af..518f2846 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/Format.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/Format.java @@ -14,6 +14,7 @@ package io.cloudsmith.api.models; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -43,7 +44,7 @@ public class Format implements Serializable { private List distributions = null; @SerializedName("extensions") - private List extensions = new ArrayList(); + private List extensions = new ArrayList<>(); @SerializedName("name") private String name = null; @@ -89,7 +90,7 @@ public Format distributions(List distributions) { public Format addDistributionsItem(FormatsDistributions distributionsItem) { if (this.distributions == null) { - this.distributions = new ArrayList(); + this.distributions = new ArrayList<>(); } this.distributions.add(distributionsItem); return this; @@ -163,7 +164,7 @@ public Format premium(Boolean premium) { **/ @NotNull @ApiModelProperty(required = true, value = "If true the package format is a premium-only feature") - public Boolean getPremium() { + public Boolean isPremium() { return premium; } @@ -300,6 +301,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/FormatsDistributions.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/FormatsDistributions.java index a568a2bc..67b3bcc6 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/FormatsDistributions.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/FormatsDistributions.java @@ -14,6 +14,7 @@ package io.cloudsmith.api.models; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -162,6 +163,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/MavenPackageUpload.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/MavenPackageUpload.java index 502c414e..223cf46b 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/MavenPackageUpload.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/MavenPackageUpload.java @@ -14,6 +14,7 @@ package io.cloudsmith.api.models; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -245,7 +246,7 @@ public MavenPackageUpload architectures(List arc public MavenPackageUpload addArchitecturesItem(PackagesownerrepoArchitectures architecturesItem) { if (this.architectures == null) { - this.architectures = new ArrayList(); + this.architectures = new ArrayList<>(); } this.architectures.add(architecturesItem); return this; @@ -542,7 +543,7 @@ public MavenPackageUpload files(List files) { public MavenPackageUpload addFilesItem(PackagesownerrepoFiles filesItem) { if (this.files == null) { - this.files = new ArrayList(); + this.files = new ArrayList<>(); } this.files.add(filesItem); return this; @@ -644,7 +645,7 @@ public MavenPackageUpload indexed(Boolean indexed) { * @return indexed **/ @ApiModelProperty(value = "") - public Boolean getIndexed() { + public Boolean isIndexed() { return indexed; } @@ -662,7 +663,7 @@ public MavenPackageUpload isSyncAwaiting(Boolean isSyncAwaiting) { * @return isSyncAwaiting **/ @ApiModelProperty(value = "") - public Boolean getIsSyncAwaiting() { + public Boolean isIsSyncAwaiting() { return isSyncAwaiting; } @@ -680,7 +681,7 @@ public MavenPackageUpload isSyncCompleted(Boolean isSyncCompleted) { * @return isSyncCompleted **/ @ApiModelProperty(value = "") - public Boolean getIsSyncCompleted() { + public Boolean isIsSyncCompleted() { return isSyncCompleted; } @@ -698,7 +699,7 @@ public MavenPackageUpload isSyncFailed(Boolean isSyncFailed) { * @return isSyncFailed **/ @ApiModelProperty(value = "") - public Boolean getIsSyncFailed() { + public Boolean isIsSyncFailed() { return isSyncFailed; } @@ -716,7 +717,7 @@ public MavenPackageUpload isSyncInFlight(Boolean isSyncInFlight) { * @return isSyncInFlight **/ @ApiModelProperty(value = "") - public Boolean getIsSyncInFlight() { + public Boolean isIsSyncInFlight() { return isSyncInFlight; } @@ -734,7 +735,7 @@ public MavenPackageUpload isSyncInProgress(Boolean isSyncInProgress) { * @return isSyncInProgress **/ @ApiModelProperty(value = "") - public Boolean getIsSyncInProgress() { + public Boolean isIsSyncInProgress() { return isSyncInProgress; } @@ -1633,6 +1634,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/ModelPackage.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/ModelPackage.java index a0b4eaf6..a52e17ba 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/ModelPackage.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/ModelPackage.java @@ -14,6 +14,7 @@ package io.cloudsmith.api.models; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -239,7 +240,7 @@ public ModelPackage architectures(List architect public ModelPackage addArchitecturesItem(PackagesownerrepoArchitectures architecturesItem) { if (this.architectures == null) { - this.architectures = new ArrayList(); + this.architectures = new ArrayList<>(); } this.architectures.add(architecturesItem); return this; @@ -518,7 +519,7 @@ public ModelPackage files(List files) { public ModelPackage addFilesItem(PackagesownerrepoFiles filesItem) { if (this.files == null) { - this.files = new ArrayList(); + this.files = new ArrayList<>(); } this.files.add(filesItem); return this; @@ -602,7 +603,7 @@ public ModelPackage indexed(Boolean indexed) { * @return indexed **/ @ApiModelProperty(value = "") - public Boolean getIndexed() { + public Boolean isIndexed() { return indexed; } @@ -620,7 +621,7 @@ public ModelPackage isSyncAwaiting(Boolean isSyncAwaiting) { * @return isSyncAwaiting **/ @ApiModelProperty(value = "") - public Boolean getIsSyncAwaiting() { + public Boolean isIsSyncAwaiting() { return isSyncAwaiting; } @@ -638,7 +639,7 @@ public ModelPackage isSyncCompleted(Boolean isSyncCompleted) { * @return isSyncCompleted **/ @ApiModelProperty(value = "") - public Boolean getIsSyncCompleted() { + public Boolean isIsSyncCompleted() { return isSyncCompleted; } @@ -656,7 +657,7 @@ public ModelPackage isSyncFailed(Boolean isSyncFailed) { * @return isSyncFailed **/ @ApiModelProperty(value = "") - public Boolean getIsSyncFailed() { + public Boolean isIsSyncFailed() { return isSyncFailed; } @@ -674,7 +675,7 @@ public ModelPackage isSyncInFlight(Boolean isSyncInFlight) { * @return isSyncInFlight **/ @ApiModelProperty(value = "") - public Boolean getIsSyncInFlight() { + public Boolean isIsSyncInFlight() { return isSyncInFlight; } @@ -692,7 +693,7 @@ public ModelPackage isSyncInProgress(Boolean isSyncInProgress) { * @return isSyncInProgress **/ @ApiModelProperty(value = "") - public Boolean getIsSyncInProgress() { + public Boolean isIsSyncInProgress() { return isSyncInProgress; } @@ -1587,6 +1588,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/Namespace.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/Namespace.java index e7bffeb2..6100e18c 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/Namespace.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/Namespace.java @@ -14,6 +14,7 @@ package io.cloudsmith.api.models; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -162,6 +163,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/Organization.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/Organization.java index 4553e8f1..0783b5da 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/Organization.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/Organization.java @@ -14,6 +14,7 @@ package io.cloudsmith.api.models; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -231,6 +232,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/OrganizationMembership.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/OrganizationMembership.java index a3b51f18..f7b7d8c9 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/OrganizationMembership.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/OrganizationMembership.java @@ -14,6 +14,7 @@ package io.cloudsmith.api.models; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -91,7 +92,7 @@ public OrganizationMembership hasTwoFactor(Boolean hasTwoFactor) { * @return hasTwoFactor **/ @ApiModelProperty(value = "") - public Boolean getHasTwoFactor() { + public Boolean isHasTwoFactor() { return hasTwoFactor; } @@ -300,6 +301,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageCopy.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageCopy.java index 08a0a0e0..81cddd20 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageCopy.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageCopy.java @@ -14,6 +14,7 @@ package io.cloudsmith.api.models; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -239,7 +240,7 @@ public PackageCopy architectures(List architectu public PackageCopy addArchitecturesItem(PackagesownerrepoArchitectures architecturesItem) { if (this.architectures == null) { - this.architectures = new ArrayList(); + this.architectures = new ArrayList<>(); } this.architectures.add(architecturesItem); return this; @@ -518,7 +519,7 @@ public PackageCopy files(List files) { public PackageCopy addFilesItem(PackagesownerrepoFiles filesItem) { if (this.files == null) { - this.files = new ArrayList(); + this.files = new ArrayList<>(); } this.files.add(filesItem); return this; @@ -602,7 +603,7 @@ public PackageCopy indexed(Boolean indexed) { * @return indexed **/ @ApiModelProperty(value = "") - public Boolean getIndexed() { + public Boolean isIndexed() { return indexed; } @@ -620,7 +621,7 @@ public PackageCopy isSyncAwaiting(Boolean isSyncAwaiting) { * @return isSyncAwaiting **/ @ApiModelProperty(value = "") - public Boolean getIsSyncAwaiting() { + public Boolean isIsSyncAwaiting() { return isSyncAwaiting; } @@ -638,7 +639,7 @@ public PackageCopy isSyncCompleted(Boolean isSyncCompleted) { * @return isSyncCompleted **/ @ApiModelProperty(value = "") - public Boolean getIsSyncCompleted() { + public Boolean isIsSyncCompleted() { return isSyncCompleted; } @@ -656,7 +657,7 @@ public PackageCopy isSyncFailed(Boolean isSyncFailed) { * @return isSyncFailed **/ @ApiModelProperty(value = "") - public Boolean getIsSyncFailed() { + public Boolean isIsSyncFailed() { return isSyncFailed; } @@ -674,7 +675,7 @@ public PackageCopy isSyncInFlight(Boolean isSyncInFlight) { * @return isSyncInFlight **/ @ApiModelProperty(value = "") - public Boolean getIsSyncInFlight() { + public Boolean isIsSyncInFlight() { return isSyncInFlight; } @@ -692,7 +693,7 @@ public PackageCopy isSyncInProgress(Boolean isSyncInProgress) { * @return isSyncInProgress **/ @ApiModelProperty(value = "") - public Boolean getIsSyncInProgress() { + public Boolean isIsSyncInProgress() { return isSyncInProgress; } @@ -1587,6 +1588,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageDependencies.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageDependencies.java index 5f4f8ba8..c730596a 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageDependencies.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageDependencies.java @@ -14,6 +14,7 @@ package io.cloudsmith.api.models; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -37,7 +38,7 @@ public class PackageDependencies implements Serializable { private static final long serialVersionUID = 1L; @SerializedName("dependencies") - private List dependencies = new ArrayList(); + private List dependencies = new ArrayList<>(); public PackageDependencies dependencies(List dependencies) { this.dependencies = dependencies; @@ -103,6 +104,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageDependenciesDependencies.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageDependenciesDependencies.java index 613c2e2f..7937d6be 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageDependenciesDependencies.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageDependenciesDependencies.java @@ -14,6 +14,7 @@ package io.cloudsmith.api.models; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -162,6 +163,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageFilePartsUpload.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageFilePartsUpload.java index bb525d1f..6f5f3bbf 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageFilePartsUpload.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageFilePartsUpload.java @@ -14,6 +14,7 @@ package io.cloudsmith.api.models; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -139,6 +140,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageFileUpload.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageFileUpload.java index 10549bb6..06a0430a 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageFileUpload.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageFileUpload.java @@ -14,6 +14,7 @@ package io.cloudsmith.api.models; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -185,6 +186,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageMove.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageMove.java index 5527d269..59191e1b 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageMove.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageMove.java @@ -14,6 +14,7 @@ package io.cloudsmith.api.models; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -239,7 +240,7 @@ public PackageMove architectures(List architectu public PackageMove addArchitecturesItem(PackagesownerrepoArchitectures architecturesItem) { if (this.architectures == null) { - this.architectures = new ArrayList(); + this.architectures = new ArrayList<>(); } this.architectures.add(architecturesItem); return this; @@ -518,7 +519,7 @@ public PackageMove files(List files) { public PackageMove addFilesItem(PackagesownerrepoFiles filesItem) { if (this.files == null) { - this.files = new ArrayList(); + this.files = new ArrayList<>(); } this.files.add(filesItem); return this; @@ -602,7 +603,7 @@ public PackageMove indexed(Boolean indexed) { * @return indexed **/ @ApiModelProperty(value = "") - public Boolean getIndexed() { + public Boolean isIndexed() { return indexed; } @@ -620,7 +621,7 @@ public PackageMove isSyncAwaiting(Boolean isSyncAwaiting) { * @return isSyncAwaiting **/ @ApiModelProperty(value = "") - public Boolean getIsSyncAwaiting() { + public Boolean isIsSyncAwaiting() { return isSyncAwaiting; } @@ -638,7 +639,7 @@ public PackageMove isSyncCompleted(Boolean isSyncCompleted) { * @return isSyncCompleted **/ @ApiModelProperty(value = "") - public Boolean getIsSyncCompleted() { + public Boolean isIsSyncCompleted() { return isSyncCompleted; } @@ -656,7 +657,7 @@ public PackageMove isSyncFailed(Boolean isSyncFailed) { * @return isSyncFailed **/ @ApiModelProperty(value = "") - public Boolean getIsSyncFailed() { + public Boolean isIsSyncFailed() { return isSyncFailed; } @@ -674,7 +675,7 @@ public PackageMove isSyncInFlight(Boolean isSyncInFlight) { * @return isSyncInFlight **/ @ApiModelProperty(value = "") - public Boolean getIsSyncInFlight() { + public Boolean isIsSyncInFlight() { return isSyncInFlight; } @@ -692,7 +693,7 @@ public PackageMove isSyncInProgress(Boolean isSyncInProgress) { * @return isSyncInProgress **/ @ApiModelProperty(value = "") - public Boolean getIsSyncInProgress() { + public Boolean isIsSyncInProgress() { return isSyncInProgress; } @@ -1587,6 +1588,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageStatus.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageStatus.java index 0f0dbb0a..6645b7be 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageStatus.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageStatus.java @@ -14,6 +14,7 @@ package io.cloudsmith.api.models; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -88,7 +89,7 @@ public PackageStatus isSyncAwaiting(Boolean isSyncAwaiting) { * @return isSyncAwaiting **/ @ApiModelProperty(value = "") - public Boolean getIsSyncAwaiting() { + public Boolean isIsSyncAwaiting() { return isSyncAwaiting; } @@ -106,7 +107,7 @@ public PackageStatus isSyncCompleted(Boolean isSyncCompleted) { * @return isSyncCompleted **/ @ApiModelProperty(value = "") - public Boolean getIsSyncCompleted() { + public Boolean isIsSyncCompleted() { return isSyncCompleted; } @@ -124,7 +125,7 @@ public PackageStatus isSyncFailed(Boolean isSyncFailed) { * @return isSyncFailed **/ @ApiModelProperty(value = "") - public Boolean getIsSyncFailed() { + public Boolean isIsSyncFailed() { return isSyncFailed; } @@ -142,7 +143,7 @@ public PackageStatus isSyncInFlight(Boolean isSyncInFlight) { * @return isSyncInFlight **/ @ApiModelProperty(value = "") - public Boolean getIsSyncInFlight() { + public Boolean isIsSyncInFlight() { return isSyncInFlight; } @@ -160,7 +161,7 @@ public PackageStatus isSyncInProgress(Boolean isSyncInProgress) { * @return isSyncInProgress **/ @ApiModelProperty(value = "") - public Boolean getIsSyncInProgress() { + public Boolean isIsSyncInProgress() { return isSyncInProgress; } @@ -415,6 +416,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageUsageMetrics.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageUsageMetrics.java index 6cce6146..668dab8f 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageUsageMetrics.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageUsageMetrics.java @@ -14,6 +14,7 @@ package io.cloudsmith.api.models; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -94,6 +95,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesCopy.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesCopy.java index b4bc8c68..7e5eb69c 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesCopy.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesCopy.java @@ -14,6 +14,7 @@ package io.cloudsmith.api.models; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -68,7 +69,7 @@ public PackagesCopy republish(Boolean republish) { * @return republish **/ @ApiModelProperty(value = "If true, the package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate.") - public Boolean getRepublish() { + public Boolean isRepublish() { return republish; } @@ -117,6 +118,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesMove.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesMove.java index 66a6450b..b870e19f 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesMove.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesMove.java @@ -14,6 +14,7 @@ package io.cloudsmith.api.models; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -94,6 +95,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesTag.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesTag.java index 18028b6d..f092d73e 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesTag.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesTag.java @@ -14,6 +14,7 @@ package io.cloudsmith.api.models; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -72,7 +73,7 @@ public PackagesTag isImmutable(Boolean isImmutable) { * @return isImmutable **/ @ApiModelProperty(value = "If true, created tags will be immutable. An immutable flag is a tag that cannot be removed from a package.") - public Boolean getIsImmutable() { + public Boolean isIsImmutable() { return isImmutable; } @@ -87,7 +88,7 @@ public PackagesTag tags(List tags) { public PackagesTag addTagsItem(String tagsItem) { if (this.tags == null) { - this.tags = new ArrayList(); + this.tags = new ArrayList<>(); } this.tags.add(tagsItem); return this; @@ -149,6 +150,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesUploadAlpine.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesUploadAlpine.java index e2d39a63..c533da9a 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesUploadAlpine.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesUploadAlpine.java @@ -14,6 +14,7 @@ package io.cloudsmith.api.models; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -93,7 +94,7 @@ public PackagesUploadAlpine republish(Boolean republish) { * @return republish **/ @ApiModelProperty(value = "If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate.") - public Boolean getRepublish() { + public Boolean isRepublish() { return republish; } @@ -164,6 +165,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesUploadCargo.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesUploadCargo.java index b67dea56..8c46d22d 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesUploadCargo.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesUploadCargo.java @@ -14,6 +14,7 @@ package io.cloudsmith.api.models; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -71,7 +72,7 @@ public PackagesUploadCargo republish(Boolean republish) { * @return republish **/ @ApiModelProperty(value = "If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate.") - public Boolean getRepublish() { + public Boolean isRepublish() { return republish; } @@ -140,6 +141,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesUploadCocoapods.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesUploadCocoapods.java index 8798d84a..d3eed1cd 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesUploadCocoapods.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesUploadCocoapods.java @@ -14,6 +14,7 @@ package io.cloudsmith.api.models; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -71,7 +72,7 @@ public PackagesUploadCocoapods republish(Boolean republish) { * @return republish **/ @ApiModelProperty(value = "If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate.") - public Boolean getRepublish() { + public Boolean isRepublish() { return republish; } @@ -140,6 +141,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesUploadComposer.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesUploadComposer.java index 195ac27a..4cf5a787 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesUploadComposer.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesUploadComposer.java @@ -14,6 +14,7 @@ package io.cloudsmith.api.models; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -71,7 +72,7 @@ public PackagesUploadComposer republish(Boolean republish) { * @return republish **/ @ApiModelProperty(value = "If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate.") - public Boolean getRepublish() { + public Boolean isRepublish() { return republish; } @@ -140,6 +141,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesUploadConan.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesUploadConan.java index 77831b90..07576483 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesUploadConan.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesUploadConan.java @@ -14,6 +14,7 @@ package io.cloudsmith.api.models; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -203,7 +204,7 @@ public PackagesUploadConan republish(Boolean republish) { * @return republish **/ @ApiModelProperty(value = "If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate.") - public Boolean getRepublish() { + public Boolean isRepublish() { return republish; } @@ -304,6 +305,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesUploadConda.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesUploadConda.java index d75ce3ca..eab59197 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesUploadConda.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesUploadConda.java @@ -14,6 +14,7 @@ package io.cloudsmith.api.models; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -71,7 +72,7 @@ public PackagesUploadConda republish(Boolean republish) { * @return republish **/ @ApiModelProperty(value = "If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate.") - public Boolean getRepublish() { + public Boolean isRepublish() { return republish; } @@ -140,6 +141,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesUploadCran.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesUploadCran.java index f16215a9..4143ebe2 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesUploadCran.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesUploadCran.java @@ -14,6 +14,7 @@ package io.cloudsmith.api.models; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -71,7 +72,7 @@ public PackagesUploadCran republish(Boolean republish) { * @return republish **/ @ApiModelProperty(value = "If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate.") - public Boolean getRepublish() { + public Boolean isRepublish() { return republish; } @@ -140,6 +141,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesUploadDart.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesUploadDart.java index c7f82e81..982a19b7 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesUploadDart.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesUploadDart.java @@ -14,6 +14,7 @@ package io.cloudsmith.api.models; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -71,7 +72,7 @@ public PackagesUploadDart republish(Boolean republish) { * @return republish **/ @ApiModelProperty(value = "If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate.") - public Boolean getRepublish() { + public Boolean isRepublish() { return republish; } @@ -140,6 +141,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesUploadDeb.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesUploadDeb.java index 494f3583..9ab56c7e 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesUploadDeb.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesUploadDeb.java @@ -14,6 +14,7 @@ package io.cloudsmith.api.models; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -117,7 +118,7 @@ public PackagesUploadDeb republish(Boolean republish) { * @return republish **/ @ApiModelProperty(value = "If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate.") - public Boolean getRepublish() { + public Boolean isRepublish() { return republish; } @@ -210,6 +211,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesUploadDocker.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesUploadDocker.java index 362d85fc..ce6cf195 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesUploadDocker.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesUploadDocker.java @@ -14,6 +14,7 @@ package io.cloudsmith.api.models; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -71,7 +72,7 @@ public PackagesUploadDocker republish(Boolean republish) { * @return republish **/ @ApiModelProperty(value = "If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate.") - public Boolean getRepublish() { + public Boolean isRepublish() { return republish; } @@ -140,6 +141,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesUploadGo.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesUploadGo.java index caded1bd..766aba4e 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesUploadGo.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesUploadGo.java @@ -14,6 +14,7 @@ package io.cloudsmith.api.models; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -71,7 +72,7 @@ public PackagesUploadGo republish(Boolean republish) { * @return republish **/ @ApiModelProperty(value = "If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate.") - public Boolean getRepublish() { + public Boolean isRepublish() { return republish; } @@ -140,6 +141,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesUploadHelm.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesUploadHelm.java index 7c20e755..ee979794 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesUploadHelm.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesUploadHelm.java @@ -14,6 +14,7 @@ package io.cloudsmith.api.models; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -71,7 +72,7 @@ public PackagesUploadHelm republish(Boolean republish) { * @return republish **/ @ApiModelProperty(value = "If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate.") - public Boolean getRepublish() { + public Boolean isRepublish() { return republish; } @@ -140,6 +141,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesUploadLuarocks.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesUploadLuarocks.java index da4f21e2..f560ea19 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesUploadLuarocks.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesUploadLuarocks.java @@ -14,6 +14,7 @@ package io.cloudsmith.api.models; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -71,7 +72,7 @@ public PackagesUploadLuarocks republish(Boolean republish) { * @return republish **/ @ApiModelProperty(value = "If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate.") - public Boolean getRepublish() { + public Boolean isRepublish() { return republish; } @@ -140,6 +141,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesUploadMaven.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesUploadMaven.java index 11bc33aa..46987605 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesUploadMaven.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesUploadMaven.java @@ -14,6 +14,7 @@ package io.cloudsmith.api.models; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -185,7 +186,7 @@ public PackagesUploadMaven republish(Boolean republish) { * @return republish **/ @ApiModelProperty(value = "If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate.") - public Boolean getRepublish() { + public Boolean isRepublish() { return republish; } @@ -324,6 +325,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesUploadNpm.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesUploadNpm.java index a7a65641..74ddb705 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesUploadNpm.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesUploadNpm.java @@ -14,6 +14,7 @@ package io.cloudsmith.api.models; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -92,7 +93,7 @@ public PackagesUploadNpm republish(Boolean republish) { * @return republish **/ @ApiModelProperty(value = "If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate.") - public Boolean getRepublish() { + public Boolean isRepublish() { return republish; } @@ -163,6 +164,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesUploadNuget.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesUploadNuget.java index ca3adba8..0ccbfec7 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesUploadNuget.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesUploadNuget.java @@ -14,6 +14,7 @@ package io.cloudsmith.api.models; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -74,7 +75,7 @@ public PackagesUploadNuget republish(Boolean republish) { * @return republish **/ @ApiModelProperty(value = "If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate.") - public Boolean getRepublish() { + public Boolean isRepublish() { return republish; } @@ -163,6 +164,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesUploadP2.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesUploadP2.java index 204ae074..8832d03c 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesUploadP2.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesUploadP2.java @@ -14,6 +14,7 @@ package io.cloudsmith.api.models; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -71,7 +72,7 @@ public PackagesUploadP2 republish(Boolean republish) { * @return republish **/ @ApiModelProperty(value = "If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate.") - public Boolean getRepublish() { + public Boolean isRepublish() { return republish; } @@ -140,6 +141,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesUploadPython.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesUploadPython.java index a62ba917..55c4466d 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesUploadPython.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesUploadPython.java @@ -14,6 +14,7 @@ package io.cloudsmith.api.models; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -71,7 +72,7 @@ public PackagesUploadPython republish(Boolean republish) { * @return republish **/ @ApiModelProperty(value = "If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate.") - public Boolean getRepublish() { + public Boolean isRepublish() { return republish; } @@ -140,6 +141,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesUploadRaw.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesUploadRaw.java index a8810748..f240dd35 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesUploadRaw.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesUploadRaw.java @@ -14,6 +14,7 @@ package io.cloudsmith.api.models; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -140,7 +141,7 @@ public PackagesUploadRaw republish(Boolean republish) { * @return republish **/ @ApiModelProperty(value = "If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate.") - public Boolean getRepublish() { + public Boolean isRepublish() { return republish; } @@ -255,6 +256,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesUploadRpm.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesUploadRpm.java index 421fd9ce..ffb3e2ee 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesUploadRpm.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesUploadRpm.java @@ -14,6 +14,7 @@ package io.cloudsmith.api.models; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -93,7 +94,7 @@ public PackagesUploadRpm republish(Boolean republish) { * @return republish **/ @ApiModelProperty(value = "If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate.") - public Boolean getRepublish() { + public Boolean isRepublish() { return republish; } @@ -164,6 +165,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesUploadRuby.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesUploadRuby.java index 0e3b1c32..5c29e900 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesUploadRuby.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesUploadRuby.java @@ -14,6 +14,7 @@ package io.cloudsmith.api.models; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -71,7 +72,7 @@ public PackagesUploadRuby republish(Boolean republish) { * @return republish **/ @ApiModelProperty(value = "If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate.") - public Boolean getRepublish() { + public Boolean isRepublish() { return republish; } @@ -140,6 +141,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesUploadTerraform.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesUploadTerraform.java index 32621907..8c2bd2a8 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesUploadTerraform.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesUploadTerraform.java @@ -14,6 +14,7 @@ package io.cloudsmith.api.models; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -71,7 +72,7 @@ public PackagesUploadTerraform republish(Boolean republish) { * @return republish **/ @ApiModelProperty(value = "If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate.") - public Boolean getRepublish() { + public Boolean isRepublish() { return republish; } @@ -140,6 +141,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesUploadVagrant.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesUploadVagrant.java index 54932ff6..366a249c 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesUploadVagrant.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesUploadVagrant.java @@ -14,6 +14,7 @@ package io.cloudsmith.api.models; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -118,7 +119,7 @@ public PackagesUploadVagrant republish(Boolean republish) { * @return republish **/ @ApiModelProperty(value = "If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate.") - public Boolean getRepublish() { + public Boolean isRepublish() { return republish; } @@ -212,6 +213,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesValidateuploadAlpine.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesValidateuploadAlpine.java index bb05f5cd..4838a462 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesValidateuploadAlpine.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesValidateuploadAlpine.java @@ -14,6 +14,7 @@ package io.cloudsmith.api.models; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -93,7 +94,7 @@ public PackagesValidateuploadAlpine republish(Boolean republish) { * @return republish **/ @ApiModelProperty(value = "If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate.") - public Boolean getRepublish() { + public Boolean isRepublish() { return republish; } @@ -164,6 +165,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesValidateuploadCargo.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesValidateuploadCargo.java index f51554ed..c168bd29 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesValidateuploadCargo.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesValidateuploadCargo.java @@ -14,6 +14,7 @@ package io.cloudsmith.api.models; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -71,7 +72,7 @@ public PackagesValidateuploadCargo republish(Boolean republish) { * @return republish **/ @ApiModelProperty(value = "If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate.") - public Boolean getRepublish() { + public Boolean isRepublish() { return republish; } @@ -140,6 +141,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesValidateuploadCocoapods.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesValidateuploadCocoapods.java index 889c09f7..ab06dcdf 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesValidateuploadCocoapods.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesValidateuploadCocoapods.java @@ -14,6 +14,7 @@ package io.cloudsmith.api.models; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -71,7 +72,7 @@ public PackagesValidateuploadCocoapods republish(Boolean republish) { * @return republish **/ @ApiModelProperty(value = "If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate.") - public Boolean getRepublish() { + public Boolean isRepublish() { return republish; } @@ -140,6 +141,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesValidateuploadComposer.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesValidateuploadComposer.java index ccf23220..1f9ec3cb 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesValidateuploadComposer.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesValidateuploadComposer.java @@ -14,6 +14,7 @@ package io.cloudsmith.api.models; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -71,7 +72,7 @@ public PackagesValidateuploadComposer republish(Boolean republish) { * @return republish **/ @ApiModelProperty(value = "If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate.") - public Boolean getRepublish() { + public Boolean isRepublish() { return republish; } @@ -140,6 +141,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesValidateuploadConan.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesValidateuploadConan.java index 3a68650b..c7a7629d 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesValidateuploadConan.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesValidateuploadConan.java @@ -14,6 +14,7 @@ package io.cloudsmith.api.models; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -203,7 +204,7 @@ public PackagesValidateuploadConan republish(Boolean republish) { * @return republish **/ @ApiModelProperty(value = "If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate.") - public Boolean getRepublish() { + public Boolean isRepublish() { return republish; } @@ -304,6 +305,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesValidateuploadConda.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesValidateuploadConda.java index b298f3da..3a0f75eb 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesValidateuploadConda.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesValidateuploadConda.java @@ -14,6 +14,7 @@ package io.cloudsmith.api.models; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -71,7 +72,7 @@ public PackagesValidateuploadConda republish(Boolean republish) { * @return republish **/ @ApiModelProperty(value = "If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate.") - public Boolean getRepublish() { + public Boolean isRepublish() { return republish; } @@ -140,6 +141,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesValidateuploadCran.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesValidateuploadCran.java index 207e2950..f4ce0219 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesValidateuploadCran.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesValidateuploadCran.java @@ -14,6 +14,7 @@ package io.cloudsmith.api.models; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -71,7 +72,7 @@ public PackagesValidateuploadCran republish(Boolean republish) { * @return republish **/ @ApiModelProperty(value = "If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate.") - public Boolean getRepublish() { + public Boolean isRepublish() { return republish; } @@ -140,6 +141,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesValidateuploadDart.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesValidateuploadDart.java index ea8f3150..ec4cb0bc 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesValidateuploadDart.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesValidateuploadDart.java @@ -14,6 +14,7 @@ package io.cloudsmith.api.models; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -71,7 +72,7 @@ public PackagesValidateuploadDart republish(Boolean republish) { * @return republish **/ @ApiModelProperty(value = "If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate.") - public Boolean getRepublish() { + public Boolean isRepublish() { return republish; } @@ -140,6 +141,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesValidateuploadDeb.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesValidateuploadDeb.java index 7f7aea39..ff8e8ca4 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesValidateuploadDeb.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesValidateuploadDeb.java @@ -14,6 +14,7 @@ package io.cloudsmith.api.models; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -117,7 +118,7 @@ public PackagesValidateuploadDeb republish(Boolean republish) { * @return republish **/ @ApiModelProperty(value = "If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate.") - public Boolean getRepublish() { + public Boolean isRepublish() { return republish; } @@ -210,6 +211,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesValidateuploadDocker.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesValidateuploadDocker.java index 8f974ace..5be2c6c1 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesValidateuploadDocker.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesValidateuploadDocker.java @@ -14,6 +14,7 @@ package io.cloudsmith.api.models; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -71,7 +72,7 @@ public PackagesValidateuploadDocker republish(Boolean republish) { * @return republish **/ @ApiModelProperty(value = "If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate.") - public Boolean getRepublish() { + public Boolean isRepublish() { return republish; } @@ -140,6 +141,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesValidateuploadGo.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesValidateuploadGo.java index 243ca215..21489f75 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesValidateuploadGo.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesValidateuploadGo.java @@ -14,6 +14,7 @@ package io.cloudsmith.api.models; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -71,7 +72,7 @@ public PackagesValidateuploadGo republish(Boolean republish) { * @return republish **/ @ApiModelProperty(value = "If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate.") - public Boolean getRepublish() { + public Boolean isRepublish() { return republish; } @@ -140,6 +141,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesValidateuploadHelm.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesValidateuploadHelm.java index 9e59bcbd..c078a7d2 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesValidateuploadHelm.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesValidateuploadHelm.java @@ -14,6 +14,7 @@ package io.cloudsmith.api.models; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -71,7 +72,7 @@ public PackagesValidateuploadHelm republish(Boolean republish) { * @return republish **/ @ApiModelProperty(value = "If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate.") - public Boolean getRepublish() { + public Boolean isRepublish() { return republish; } @@ -140,6 +141,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesValidateuploadLuarocks.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesValidateuploadLuarocks.java index 45b253fe..9b10f42d 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesValidateuploadLuarocks.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesValidateuploadLuarocks.java @@ -14,6 +14,7 @@ package io.cloudsmith.api.models; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -71,7 +72,7 @@ public PackagesValidateuploadLuarocks republish(Boolean republish) { * @return republish **/ @ApiModelProperty(value = "If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate.") - public Boolean getRepublish() { + public Boolean isRepublish() { return republish; } @@ -140,6 +141,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesValidateuploadMaven.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesValidateuploadMaven.java index a91fa6fe..ae599b44 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesValidateuploadMaven.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesValidateuploadMaven.java @@ -14,6 +14,7 @@ package io.cloudsmith.api.models; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -185,7 +186,7 @@ public PackagesValidateuploadMaven republish(Boolean republish) { * @return republish **/ @ApiModelProperty(value = "If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate.") - public Boolean getRepublish() { + public Boolean isRepublish() { return republish; } @@ -324,6 +325,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesValidateuploadNpm.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesValidateuploadNpm.java index 4edb7590..69931693 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesValidateuploadNpm.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesValidateuploadNpm.java @@ -14,6 +14,7 @@ package io.cloudsmith.api.models; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -92,7 +93,7 @@ public PackagesValidateuploadNpm republish(Boolean republish) { * @return republish **/ @ApiModelProperty(value = "If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate.") - public Boolean getRepublish() { + public Boolean isRepublish() { return republish; } @@ -163,6 +164,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesValidateuploadNuget.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesValidateuploadNuget.java index 63bfe6a0..a4b8623f 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesValidateuploadNuget.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesValidateuploadNuget.java @@ -14,6 +14,7 @@ package io.cloudsmith.api.models; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -74,7 +75,7 @@ public PackagesValidateuploadNuget republish(Boolean republish) { * @return republish **/ @ApiModelProperty(value = "If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate.") - public Boolean getRepublish() { + public Boolean isRepublish() { return republish; } @@ -163,6 +164,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesValidateuploadP2.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesValidateuploadP2.java index 5316b02a..972b6475 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesValidateuploadP2.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesValidateuploadP2.java @@ -14,6 +14,7 @@ package io.cloudsmith.api.models; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -71,7 +72,7 @@ public PackagesValidateuploadP2 republish(Boolean republish) { * @return republish **/ @ApiModelProperty(value = "If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate.") - public Boolean getRepublish() { + public Boolean isRepublish() { return republish; } @@ -140,6 +141,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesValidateuploadPython.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesValidateuploadPython.java index a8bee959..e2cccafc 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesValidateuploadPython.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesValidateuploadPython.java @@ -14,6 +14,7 @@ package io.cloudsmith.api.models; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -71,7 +72,7 @@ public PackagesValidateuploadPython republish(Boolean republish) { * @return republish **/ @ApiModelProperty(value = "If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate.") - public Boolean getRepublish() { + public Boolean isRepublish() { return republish; } @@ -140,6 +141,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesValidateuploadRaw.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesValidateuploadRaw.java index fc23482d..53e2fb59 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesValidateuploadRaw.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesValidateuploadRaw.java @@ -14,6 +14,7 @@ package io.cloudsmith.api.models; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -140,7 +141,7 @@ public PackagesValidateuploadRaw republish(Boolean republish) { * @return republish **/ @ApiModelProperty(value = "If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate.") - public Boolean getRepublish() { + public Boolean isRepublish() { return republish; } @@ -255,6 +256,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesValidateuploadRpm.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesValidateuploadRpm.java index 7b1feda7..08ced48c 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesValidateuploadRpm.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesValidateuploadRpm.java @@ -14,6 +14,7 @@ package io.cloudsmith.api.models; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -93,7 +94,7 @@ public PackagesValidateuploadRpm republish(Boolean republish) { * @return republish **/ @ApiModelProperty(value = "If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate.") - public Boolean getRepublish() { + public Boolean isRepublish() { return republish; } @@ -164,6 +165,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesValidateuploadRuby.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesValidateuploadRuby.java index ba513ab4..04c56c69 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesValidateuploadRuby.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesValidateuploadRuby.java @@ -14,6 +14,7 @@ package io.cloudsmith.api.models; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -71,7 +72,7 @@ public PackagesValidateuploadRuby republish(Boolean republish) { * @return republish **/ @ApiModelProperty(value = "If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate.") - public Boolean getRepublish() { + public Boolean isRepublish() { return republish; } @@ -140,6 +141,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesValidateuploadTerraform.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesValidateuploadTerraform.java index 96f741ae..956e4813 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesValidateuploadTerraform.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesValidateuploadTerraform.java @@ -14,6 +14,7 @@ package io.cloudsmith.api.models; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -71,7 +72,7 @@ public PackagesValidateuploadTerraform republish(Boolean republish) { * @return republish **/ @ApiModelProperty(value = "If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate.") - public Boolean getRepublish() { + public Boolean isRepublish() { return republish; } @@ -140,6 +141,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesValidateuploadVagrant.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesValidateuploadVagrant.java index b82c37fe..406391d3 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesValidateuploadVagrant.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesValidateuploadVagrant.java @@ -14,6 +14,7 @@ package io.cloudsmith.api.models; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -118,7 +119,7 @@ public PackagesValidateuploadVagrant republish(Boolean republish) { * @return republish **/ @ApiModelProperty(value = "If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate.") - public Boolean getRepublish() { + public Boolean isRepublish() { return republish; } @@ -212,6 +213,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesownerrepoArchitectures.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesownerrepoArchitectures.java index d14ee320..7949dd28 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesownerrepoArchitectures.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesownerrepoArchitectures.java @@ -14,6 +14,7 @@ package io.cloudsmith.api.models; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -116,6 +117,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesownerrepoFiles.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesownerrepoFiles.java index eddf7eeb..e27efb82 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesownerrepoFiles.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackagesownerrepoFiles.java @@ -14,6 +14,7 @@ package io.cloudsmith.api.models; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -211,7 +212,7 @@ public PackagesownerrepoFiles isDownloadable(Boolean isDownloadable) { * @return isDownloadable **/ @ApiModelProperty(value = "") - public Boolean getIsDownloadable() { + public Boolean isIsDownloadable() { return isDownloadable; } @@ -229,7 +230,7 @@ public PackagesownerrepoFiles isPrimary(Boolean isPrimary) { * @return isPrimary **/ @ApiModelProperty(value = "") - public Boolean getIsPrimary() { + public Boolean isIsPrimary() { return isPrimary; } @@ -247,7 +248,7 @@ public PackagesownerrepoFiles isSynchronised(Boolean isSynchronised) { * @return isSynchronised **/ @ApiModelProperty(value = "") - public Boolean getIsSynchronised() { + public Boolean isIsSynchronised() { return isSynchronised; } @@ -392,6 +393,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/Quota.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/Quota.java index 7ca252bc..57175223 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/Quota.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/Quota.java @@ -14,6 +14,7 @@ package io.cloudsmith.api.models; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -94,6 +95,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/QuotaHistory.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/QuotaHistory.java index 73964345..14fac469 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/QuotaHistory.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/QuotaHistory.java @@ -14,6 +14,7 @@ package io.cloudsmith.api.models; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -37,7 +38,7 @@ public class QuotaHistory implements Serializable { private static final long serialVersionUID = 1L; @SerializedName("history") - private List history = new ArrayList(); + private List history = new ArrayList<>(); public QuotaHistory history(List history) { this.history = history; @@ -103,6 +104,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/QuotaHistoryHistory.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/QuotaHistoryHistory.java index 13893c9c..fee1be2e 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/QuotaHistoryHistory.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/QuotaHistoryHistory.java @@ -14,6 +14,7 @@ package io.cloudsmith.api.models; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -208,6 +209,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/RawPackageUpload.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/RawPackageUpload.java index 47cd0382..de909e01 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/RawPackageUpload.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/RawPackageUpload.java @@ -14,6 +14,7 @@ package io.cloudsmith.api.models; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -236,7 +237,7 @@ public RawPackageUpload architectures(List archi public RawPackageUpload addArchitecturesItem(PackagesownerrepoArchitectures architecturesItem) { if (this.architectures == null) { - this.architectures = new ArrayList(); + this.architectures = new ArrayList<>(); } this.architectures.add(architecturesItem); return this; @@ -515,7 +516,7 @@ public RawPackageUpload files(List files) { public RawPackageUpload addFilesItem(PackagesownerrepoFiles filesItem) { if (this.files == null) { - this.files = new ArrayList(); + this.files = new ArrayList<>(); } this.files.add(filesItem); return this; @@ -599,7 +600,7 @@ public RawPackageUpload indexed(Boolean indexed) { * @return indexed **/ @ApiModelProperty(value = "") - public Boolean getIndexed() { + public Boolean isIndexed() { return indexed; } @@ -617,7 +618,7 @@ public RawPackageUpload isSyncAwaiting(Boolean isSyncAwaiting) { * @return isSyncAwaiting **/ @ApiModelProperty(value = "") - public Boolean getIsSyncAwaiting() { + public Boolean isIsSyncAwaiting() { return isSyncAwaiting; } @@ -635,7 +636,7 @@ public RawPackageUpload isSyncCompleted(Boolean isSyncCompleted) { * @return isSyncCompleted **/ @ApiModelProperty(value = "") - public Boolean getIsSyncCompleted() { + public Boolean isIsSyncCompleted() { return isSyncCompleted; } @@ -653,7 +654,7 @@ public RawPackageUpload isSyncFailed(Boolean isSyncFailed) { * @return isSyncFailed **/ @ApiModelProperty(value = "") - public Boolean getIsSyncFailed() { + public Boolean isIsSyncFailed() { return isSyncFailed; } @@ -671,7 +672,7 @@ public RawPackageUpload isSyncInFlight(Boolean isSyncInFlight) { * @return isSyncInFlight **/ @ApiModelProperty(value = "") - public Boolean getIsSyncInFlight() { + public Boolean isIsSyncInFlight() { return isSyncInFlight; } @@ -689,7 +690,7 @@ public RawPackageUpload isSyncInProgress(Boolean isSyncInProgress) { * @return isSyncInProgress **/ @ApiModelProperty(value = "") - public Boolean getIsSyncInProgress() { + public Boolean isIsSyncInProgress() { return isSyncInProgress; } @@ -1564,6 +1565,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/ReposCreate.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/ReposCreate.java index ee7cb7ed..82e54868 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/ReposCreate.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/ReposCreate.java @@ -14,6 +14,7 @@ package io.cloudsmith.api.models; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -79,7 +80,7 @@ public ReposCreate indexFiles(Boolean indexFiles) { * @return indexFiles **/ @ApiModelProperty(value = "If checked, files contained in packages will be indexed, which increase the synchronisation time required for packages. Note that it is recommended you keep this enabled unless the synchronisation time is significantly impacted.") - public Boolean getIndexFiles() { + public Boolean isIndexFiles() { return indexFiles; } @@ -209,6 +210,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/ReposGpgKeys.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/ReposGpgKeys.java index 3b9faac5..ef83e76c 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/ReposGpgKeys.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/ReposGpgKeys.java @@ -14,6 +14,7 @@ package io.cloudsmith.api.models; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -64,7 +65,7 @@ public ReposGpgKeys active(Boolean active) { * @return active **/ @ApiModelProperty(value = "If selected this is the active key for this repository.") - public Boolean getActive() { + public Boolean isActive() { return active; } @@ -118,7 +119,7 @@ public ReposGpgKeys _default(Boolean _default) { * @return _default **/ @ApiModelProperty(value = "If selected this is the default key for this repository.") - public Boolean getDefault() { + public Boolean isDefault() { return _default; } @@ -231,6 +232,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/ReposPartialUpdate.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/ReposPartialUpdate.java index 2d0acfbd..11164688 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/ReposPartialUpdate.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/ReposPartialUpdate.java @@ -14,6 +14,7 @@ package io.cloudsmith.api.models; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -76,7 +77,7 @@ public ReposPartialUpdate indexFiles(Boolean indexFiles) { * @return indexFiles **/ @ApiModelProperty(value = "If checked, files contained in packages will be indexed, which increase the synchronisation time required for packages. Note that it is recommended you keep this enabled unless the synchronisation time is significantly impacted.") - public Boolean getIndexFiles() { + public Boolean isIndexFiles() { return indexFiles; } @@ -185,6 +186,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/Repository.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/Repository.java index d1bdcb06..63770642 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/Repository.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/Repository.java @@ -14,6 +14,7 @@ package io.cloudsmith.api.models; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -187,7 +188,7 @@ public Repository gpgKeys(List gpgKeys) { public Repository addGpgKeysItem(ReposGpgKeys gpgKeysItem) { if (this.gpgKeys == null) { - this.gpgKeys = new ArrayList(); + this.gpgKeys = new ArrayList<>(); } this.gpgKeys.add(gpgKeysItem); return this; @@ -217,7 +218,7 @@ public Repository indexFiles(Boolean indexFiles) { * @return indexFiles **/ @ApiModelProperty(value = "If checked, files contained in packages will be indexed, which increase the synchronisation time required for packages. Note that it is recommended you keep this enabled unless the synchronisation time is significantly impacted.") - public Boolean getIndexFiles() { + public Boolean isIndexFiles() { return indexFiles; } @@ -235,7 +236,7 @@ public Repository isOpenSource(Boolean isOpenSource) { * @return isOpenSource **/ @ApiModelProperty(value = "") - public Boolean getIsOpenSource() { + public Boolean isIsOpenSource() { return isOpenSource; } @@ -253,7 +254,7 @@ public Repository isPrivate(Boolean isPrivate) { * @return isPrivate **/ @ApiModelProperty(value = "") - public Boolean getIsPrivate() { + public Boolean isIsPrivate() { return isPrivate; } @@ -271,7 +272,7 @@ public Repository isPublic(Boolean isPublic) { * @return isPublic **/ @ApiModelProperty(value = "") - public Boolean getIsPublic() { + public Boolean isIsPublic() { return isPublic; } @@ -635,6 +636,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/RepositoryToken.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/RepositoryToken.java index a403cedb..c98e2e78 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/RepositoryToken.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/RepositoryToken.java @@ -14,6 +14,7 @@ package io.cloudsmith.api.models; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -232,7 +233,7 @@ public RepositoryToken _default(Boolean _default) { * @return _default **/ @ApiModelProperty(value = "If selected this is the default token for this repository.") - public Boolean getDefault() { + public Boolean isDefault() { return _default; } @@ -358,7 +359,7 @@ public RepositoryToken eulaRequired(Boolean eulaRequired) { * @return eulaRequired **/ @ApiModelProperty(value = "If checked, a EULA acceptance is required for this token.") - public Boolean getEulaRequired() { + public Boolean isEulaRequired() { return eulaRequired; } @@ -376,7 +377,7 @@ public RepositoryToken hasLimits(Boolean hasLimits) { * @return hasLimits **/ @ApiModelProperty(value = "") - public Boolean getHasLimits() { + public Boolean isHasLimits() { return hasLimits; } @@ -412,7 +413,7 @@ public RepositoryToken isActive(Boolean isActive) { * @return isActive **/ @ApiModelProperty(value = "If enabled, the token will allow downloads based on configured restrictions (if any).") - public Boolean getIsActive() { + public Boolean isIsActive() { return isActive; } @@ -430,7 +431,7 @@ public RepositoryToken isLimited(Boolean isLimited) { * @return isLimited **/ @ApiModelProperty(value = "") - public Boolean getIsLimited() { + public Boolean isIsLimited() { return isLimited; } @@ -968,6 +969,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/RepositoryTokenRefresh.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/RepositoryTokenRefresh.java index 49046694..8ba5e9d0 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/RepositoryTokenRefresh.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/RepositoryTokenRefresh.java @@ -14,6 +14,7 @@ package io.cloudsmith.api.models; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -232,7 +233,7 @@ public RepositoryTokenRefresh _default(Boolean _default) { * @return _default **/ @ApiModelProperty(value = "If selected this is the default token for this repository.") - public Boolean getDefault() { + public Boolean isDefault() { return _default; } @@ -358,7 +359,7 @@ public RepositoryTokenRefresh eulaRequired(Boolean eulaRequired) { * @return eulaRequired **/ @ApiModelProperty(value = "If checked, a EULA acceptance is required for this token.") - public Boolean getEulaRequired() { + public Boolean isEulaRequired() { return eulaRequired; } @@ -376,7 +377,7 @@ public RepositoryTokenRefresh hasLimits(Boolean hasLimits) { * @return hasLimits **/ @ApiModelProperty(value = "") - public Boolean getHasLimits() { + public Boolean isHasLimits() { return hasLimits; } @@ -412,7 +413,7 @@ public RepositoryTokenRefresh isActive(Boolean isActive) { * @return isActive **/ @ApiModelProperty(value = "If enabled, the token will allow downloads based on configured restrictions (if any).") - public Boolean getIsActive() { + public Boolean isIsActive() { return isActive; } @@ -430,7 +431,7 @@ public RepositoryTokenRefresh isLimited(Boolean isLimited) { * @return isLimited **/ @ApiModelProperty(value = "") - public Boolean getIsLimited() { + public Boolean isIsLimited() { return isLimited; } @@ -967,6 +968,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/RepositoryTokenSync.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/RepositoryTokenSync.java index 5ae84b7a..aaf27b5c 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/RepositoryTokenSync.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/RepositoryTokenSync.java @@ -14,6 +14,7 @@ package io.cloudsmith.api.models; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -46,7 +47,7 @@ public RepositoryTokenSync tokens(List tokens) { public RepositoryTokenSync addTokensItem(RepositoryTokenSyncTokens tokensItem) { if (this.tokens == null) { - this.tokens = new ArrayList(); + this.tokens = new ArrayList<>(); } this.tokens.add(tokensItem); return this; @@ -105,6 +106,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/RepositoryTokenSyncTokens.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/RepositoryTokenSyncTokens.java index 5420e246..cef353b1 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/RepositoryTokenSyncTokens.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/RepositoryTokenSyncTokens.java @@ -14,6 +14,7 @@ package io.cloudsmith.api.models; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -232,7 +233,7 @@ public RepositoryTokenSyncTokens _default(Boolean _default) { * @return _default **/ @ApiModelProperty(value = "If selected this is the default token for this repository.") - public Boolean getDefault() { + public Boolean isDefault() { return _default; } @@ -358,7 +359,7 @@ public RepositoryTokenSyncTokens eulaRequired(Boolean eulaRequired) { * @return eulaRequired **/ @ApiModelProperty(value = "If checked, a EULA acceptance is required for this token.") - public Boolean getEulaRequired() { + public Boolean isEulaRequired() { return eulaRequired; } @@ -376,7 +377,7 @@ public RepositoryTokenSyncTokens hasLimits(Boolean hasLimits) { * @return hasLimits **/ @ApiModelProperty(value = "") - public Boolean getHasLimits() { + public Boolean isHasLimits() { return hasLimits; } @@ -412,7 +413,7 @@ public RepositoryTokenSyncTokens isActive(Boolean isActive) { * @return isActive **/ @ApiModelProperty(value = "If enabled, the token will allow downloads based on configured restrictions (if any).") - public Boolean getIsActive() { + public Boolean isIsActive() { return isActive; } @@ -430,7 +431,7 @@ public RepositoryTokenSyncTokens isLimited(Boolean isLimited) { * @return isLimited **/ @ApiModelProperty(value = "") - public Boolean getIsLimited() { + public Boolean isIsLimited() { return isLimited; } @@ -967,6 +968,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/RepositoryWebhook.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/RepositoryWebhook.java index d3dce9bb..97694707 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/RepositoryWebhook.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/RepositoryWebhook.java @@ -14,6 +14,7 @@ package io.cloudsmith.api.models; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -52,7 +53,7 @@ public class RepositoryWebhook implements Serializable { private String disableReasonStr = null; @SerializedName("events") - private List events = new ArrayList(); + private List events = new ArrayList<>(); @SerializedName("identifier") private Integer identifier = null; @@ -103,7 +104,7 @@ public class RepositoryWebhook implements Serializable { private String targetUrl = null; @SerializedName("templates") - private List templates = new ArrayList(); + private List templates = new ArrayList<>(); @SerializedName("updated_at") private String updatedAt = null; @@ -259,7 +260,7 @@ public RepositoryWebhook isActive(Boolean isActive) { * @return isActive **/ @ApiModelProperty(value = "If enabled, the webhook will trigger on events and send payloads to the configured target URL.") - public Boolean getIsActive() { + public Boolean isIsActive() { return isActive; } @@ -277,7 +278,7 @@ public RepositoryWebhook isLastResponseBad(Boolean isLastResponseBad) { * @return isLastResponseBad **/ @ApiModelProperty(value = "") - public Boolean getIsLastResponseBad() { + public Boolean isIsLastResponseBad() { return isLastResponseBad; } @@ -609,7 +610,7 @@ public RepositoryWebhook verifySsl(Boolean verifySsl) { * @return verifySsl **/ @ApiModelProperty(value = "If enabled, SSL certificates is verified when webhooks are sent. It's recommended to leave this enabled as not verifying the integrity of SSL certificates leaves you susceptible to Man-in-the-Middle (MITM) attacks.") - public Boolean getVerifySsl() { + public Boolean isVerifySsl() { return verifySsl; } @@ -708,6 +709,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/ResourcesRateCheck.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/ResourcesRateCheck.java index 383d00bd..90dba70c 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/ResourcesRateCheck.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/ResourcesRateCheck.java @@ -14,6 +14,7 @@ package io.cloudsmith.api.models; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -45,7 +46,7 @@ public ResourcesRateCheck resources(Object resources) { * Rate limit values per resource * @return resources **/ - @ApiModelProperty(example = "{\"core\":{\"interval\":5.123456789,\"limit\":3600,\"remaining\":3595,\"reset\":1645137695,\"reset_iso_8601\":\"2022-02-17T22:41:35.992934+00:00\",\"throttled\":false}}", value = "Rate limit values per resource") + @ApiModelProperty(example = "{\"core\":{\"interval\":5.123456789,\"limit\":3600,\"remaining\":3595,\"reset\":1646240053,\"reset_iso_8601\":\"2022-03-02T16:54:13.483698+00:00\",\"throttled\":false}}", value = "Rate limit values per resource") public Object getResources() { return resources; } @@ -93,6 +94,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/Status.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/Status.java index 78756148..e641b129 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/Status.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/Status.java @@ -14,6 +14,7 @@ package io.cloudsmith.api.models; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -94,6 +95,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/StatusBasic.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/StatusBasic.java index 948581fa..29abc56f 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/StatusBasic.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/StatusBasic.java @@ -14,6 +14,7 @@ package io.cloudsmith.api.models; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -66,7 +67,7 @@ public StatusBasic version(String version) { * The current version for the Cloudsmith service. * @return version **/ - @ApiModelProperty(example = "1.30.0", value = "The current version for the Cloudsmith service.") + @ApiModelProperty(example = "1.33.7", value = "The current version for the Cloudsmith service.") public String getVersion() { return version; } @@ -116,6 +117,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/StorageRegion.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/StorageRegion.java index 4e276771..3241c7dc 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/StorageRegion.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/StorageRegion.java @@ -14,6 +14,7 @@ package io.cloudsmith.api.models; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -118,6 +119,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/UserAuthToken.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/UserAuthToken.java index 795479df..dd393caa 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/UserAuthToken.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/UserAuthToken.java @@ -14,6 +14,7 @@ package io.cloudsmith.api.models; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -93,6 +94,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/UserBrief.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/UserBrief.java index 95f7491a..28f3b247 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/UserBrief.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/UserBrief.java @@ -14,6 +14,7 @@ package io.cloudsmith.api.models; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -64,7 +65,7 @@ public UserBrief authenticated(Boolean authenticated) { * @return authenticated **/ @ApiModelProperty(example = "true", value = "If true then you're logged in as a user.") - public Boolean getAuthenticated() { + public Boolean isAuthenticated() { return authenticated; } @@ -231,6 +232,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/UserProfile.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/UserProfile.java index 09315cd1..24235c5d 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/UserProfile.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/UserProfile.java @@ -14,6 +14,7 @@ package io.cloudsmith.api.models; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -302,6 +303,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/UserTokenCreate.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/UserTokenCreate.java index 081462fc..345e2540 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/UserTokenCreate.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/UserTokenCreate.java @@ -14,6 +14,7 @@ package io.cloudsmith.api.models; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -116,6 +117,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/VagrantPackageUpload.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/VagrantPackageUpload.java index 0f5e6ce6..1137ae5a 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/VagrantPackageUpload.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/VagrantPackageUpload.java @@ -14,6 +14,7 @@ package io.cloudsmith.api.models; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -239,7 +240,7 @@ public VagrantPackageUpload architectures(List a public VagrantPackageUpload addArchitecturesItem(PackagesownerrepoArchitectures architecturesItem) { if (this.architectures == null) { - this.architectures = new ArrayList(); + this.architectures = new ArrayList<>(); } this.architectures.add(architecturesItem); return this; @@ -518,7 +519,7 @@ public VagrantPackageUpload files(List files) { public VagrantPackageUpload addFilesItem(PackagesownerrepoFiles filesItem) { if (this.files == null) { - this.files = new ArrayList(); + this.files = new ArrayList<>(); } this.files.add(filesItem); return this; @@ -602,7 +603,7 @@ public VagrantPackageUpload indexed(Boolean indexed) { * @return indexed **/ @ApiModelProperty(value = "") - public Boolean getIndexed() { + public Boolean isIndexed() { return indexed; } @@ -620,7 +621,7 @@ public VagrantPackageUpload isSyncAwaiting(Boolean isSyncAwaiting) { * @return isSyncAwaiting **/ @ApiModelProperty(value = "") - public Boolean getIsSyncAwaiting() { + public Boolean isIsSyncAwaiting() { return isSyncAwaiting; } @@ -638,7 +639,7 @@ public VagrantPackageUpload isSyncCompleted(Boolean isSyncCompleted) { * @return isSyncCompleted **/ @ApiModelProperty(value = "") - public Boolean getIsSyncCompleted() { + public Boolean isIsSyncCompleted() { return isSyncCompleted; } @@ -656,7 +657,7 @@ public VagrantPackageUpload isSyncFailed(Boolean isSyncFailed) { * @return isSyncFailed **/ @ApiModelProperty(value = "") - public Boolean getIsSyncFailed() { + public Boolean isIsSyncFailed() { return isSyncFailed; } @@ -674,7 +675,7 @@ public VagrantPackageUpload isSyncInFlight(Boolean isSyncInFlight) { * @return isSyncInFlight **/ @ApiModelProperty(value = "") - public Boolean getIsSyncInFlight() { + public Boolean isIsSyncInFlight() { return isSyncInFlight; } @@ -692,7 +693,7 @@ public VagrantPackageUpload isSyncInProgress(Boolean isSyncInProgress) { * @return isSyncInProgress **/ @ApiModelProperty(value = "") - public Boolean getIsSyncInProgress() { + public Boolean isIsSyncInProgress() { return isSyncInProgress; } @@ -1590,6 +1591,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/VulnerabilityScanResults.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/VulnerabilityScanResults.java index 1e7b8ce1..02a841a4 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/VulnerabilityScanResults.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/VulnerabilityScanResults.java @@ -14,6 +14,7 @@ package io.cloudsmith.api.models; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -85,7 +86,7 @@ public VulnerabilityScanResults hasVulnerabilities(Boolean hasVulnerabilities) { * @return hasVulnerabilities **/ @ApiModelProperty(example = "true", value = "Do the results contain any known vulnerabilities?") - public Boolean getHasVulnerabilities() { + public Boolean isHasVulnerabilities() { return hasVulnerabilities; } @@ -258,6 +259,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/VulnerabilityScanResultsList.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/VulnerabilityScanResultsList.java index 9e6de9d7..26991c04 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/VulnerabilityScanResultsList.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/VulnerabilityScanResultsList.java @@ -14,6 +14,7 @@ package io.cloudsmith.api.models; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -82,7 +83,7 @@ public VulnerabilityScanResultsList hasVulnerabilities(Boolean hasVulnerabilitie * @return hasVulnerabilities **/ @ApiModelProperty(example = "true", value = "Do the results contain any known vulnerabilities?") - public Boolean getHasVulnerabilities() { + public Boolean isHasVulnerabilities() { return hasVulnerabilities; } @@ -234,6 +235,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/WebhooksCreate.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/WebhooksCreate.java index 83633c76..7cfa3d71 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/WebhooksCreate.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/WebhooksCreate.java @@ -14,6 +14,7 @@ package io.cloudsmith.api.models; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -37,7 +38,7 @@ public class WebhooksCreate implements Serializable { private static final long serialVersionUID = 1L; @SerializedName("events") - private List events = new ArrayList(); + private List events = new ArrayList<>(); @SerializedName("is_active") private Boolean isActive = null; @@ -67,7 +68,7 @@ public class WebhooksCreate implements Serializable { private String targetUrl = null; @SerializedName("templates") - private List templates = new ArrayList(); + private List templates = new ArrayList<>(); @SerializedName("verify_ssl") private Boolean verifySsl = null; @@ -106,7 +107,7 @@ public WebhooksCreate isActive(Boolean isActive) { * @return isActive **/ @ApiModelProperty(value = "If enabled, the webhook will trigger on events and send payloads to the configured target URL.") - public Boolean getIsActive() { + public Boolean isIsActive() { return isActive; } @@ -294,7 +295,7 @@ public WebhooksCreate verifySsl(Boolean verifySsl) { * @return verifySsl **/ @ApiModelProperty(value = "If enabled, SSL certificates is verified when webhooks are sent. It's recommended to leave this enabled as not verifying the integrity of SSL certificates leaves you susceptible to Man-in-the-Middle (MITM) attacks.") - public Boolean getVerifySsl() { + public Boolean isVerifySsl() { return verifySsl; } @@ -363,6 +364,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/WebhooksPartialUpdate.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/WebhooksPartialUpdate.java index 4fd6ff15..a1a89c8a 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/WebhooksPartialUpdate.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/WebhooksPartialUpdate.java @@ -14,6 +14,7 @@ package io.cloudsmith.api.models; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -79,7 +80,7 @@ public WebhooksPartialUpdate events(List events) { public WebhooksPartialUpdate addEventsItem(String eventsItem) { if (this.events == null) { - this.events = new ArrayList(); + this.events = new ArrayList<>(); } this.events.add(eventsItem); return this; @@ -108,7 +109,7 @@ public WebhooksPartialUpdate isActive(Boolean isActive) { * @return isActive **/ @ApiModelProperty(value = "If enabled, the webhook will trigger on events and send payloads to the configured target URL.") - public Boolean getIsActive() { + public Boolean isIsActive() { return isActive; } @@ -267,7 +268,7 @@ public WebhooksPartialUpdate templates(List template public WebhooksPartialUpdate addTemplatesItem(WebhooksownerrepoTemplates templatesItem) { if (this.templates == null) { - this.templates = new ArrayList(); + this.templates = new ArrayList<>(); } this.templates.add(templatesItem); return this; @@ -297,7 +298,7 @@ public WebhooksPartialUpdate verifySsl(Boolean verifySsl) { * @return verifySsl **/ @ApiModelProperty(value = "If enabled, SSL certificates is verified when webhooks are sent. It's recommended to leave this enabled as not verifying the integrity of SSL certificates leaves you susceptible to Man-in-the-Middle (MITM) attacks.") - public Boolean getVerifySsl() { + public Boolean isVerifySsl() { return verifySsl; } @@ -366,6 +367,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/WebhooksownerrepoTemplates.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/WebhooksownerrepoTemplates.java index 0c2cf515..c0e11415 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/WebhooksownerrepoTemplates.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/WebhooksownerrepoTemplates.java @@ -14,6 +14,7 @@ package io.cloudsmith.api.models; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -116,6 +117,6 @@ private String toIndentedString(java.lang.Object o) { } return o.toString().replace("\n", "\n "); } - + } diff --git a/bindings/java/src/src/test/java/io/cloudsmith/api/apis/BadgesApiTest.java b/bindings/java/src/src/test/java/io/cloudsmith/api/apis/BadgesApiTest.java index 1b354411..ad1fe574 100644 --- a/bindings/java/src/src/test/java/io/cloudsmith/api/apis/BadgesApiTest.java +++ b/bindings/java/src/src/test/java/io/cloudsmith/api/apis/BadgesApiTest.java @@ -13,11 +13,11 @@ package io.cloudsmith.api.apis; -import io.cloudsmith.api.ApiException; import io.cloudsmith.api.models.Status; import org.junit.Test; import org.junit.Ignore; + import java.util.ArrayList; import java.util.HashMap; import java.util.List; @@ -37,11 +37,11 @@ public class BadgesApiTest { * * Get latest package version for a package or package group. * - * @throws ApiException + * @throws Exception * if the Api call fails */ @Test - public void badgesVersionListTest() throws ApiException { + public void badgesVersionListTest() throws Exception { String owner = null; String repo = null; String packageFormat = null; @@ -59,7 +59,7 @@ public void badgesVersionListTest() throws ApiException { Boolean shields = null; Boolean showLatest = null; String style = null; - api.badgesVersionList(owner, repo, packageFormat, packageName, packageVersion, packageIdentifiers, badgeToken, cacheSeconds, color, label, labelColor, logoColor, logoWidth, render, shields, showLatest, style); + Object response = api.badgesVersionList(owner, repo, packageFormat, packageName, packageVersion, packageIdentifiers, badgeToken, cacheSeconds, color, label, labelColor, logoColor, logoWidth, render, shields, showLatest, style); // TODO: test validations } diff --git a/bindings/java/src/src/test/java/io/cloudsmith/api/apis/DistrosApiTest.java b/bindings/java/src/src/test/java/io/cloudsmith/api/apis/DistrosApiTest.java index 2b163929..29c2d04e 100644 --- a/bindings/java/src/src/test/java/io/cloudsmith/api/apis/DistrosApiTest.java +++ b/bindings/java/src/src/test/java/io/cloudsmith/api/apis/DistrosApiTest.java @@ -13,12 +13,12 @@ package io.cloudsmith.api.apis; -import io.cloudsmith.api.ApiException; import io.cloudsmith.api.models.Distribution; import io.cloudsmith.api.models.Status; import org.junit.Test; import org.junit.Ignore; + import java.util.ArrayList; import java.util.HashMap; import java.util.List; @@ -38,11 +38,11 @@ public class DistrosApiTest { * * Get a list of all supported distributions. * - * @throws ApiException + * @throws Exception * if the Api call fails */ @Test - public void distrosListTest() throws ApiException { + public void distrosListTest() throws Exception { List response = api.distrosList(); // TODO: test validations @@ -53,11 +53,11 @@ public void distrosListTest() throws ApiException { * * View for viewing/listing distributions. * - * @throws ApiException + * @throws Exception * if the Api call fails */ @Test - public void distrosReadTest() throws ApiException { + public void distrosReadTest() throws Exception { String slug = null; Distribution response = api.distrosRead(slug); diff --git a/bindings/java/src/src/test/java/io/cloudsmith/api/apis/EntitlementsApiTest.java b/bindings/java/src/src/test/java/io/cloudsmith/api/apis/EntitlementsApiTest.java index bf036fb8..2f7da9a0 100644 --- a/bindings/java/src/src/test/java/io/cloudsmith/api/apis/EntitlementsApiTest.java +++ b/bindings/java/src/src/test/java/io/cloudsmith/api/apis/EntitlementsApiTest.java @@ -13,7 +13,6 @@ package io.cloudsmith.api.apis; -import io.cloudsmith.api.ApiException; import io.cloudsmith.api.models.EntitlementsCreate; import io.cloudsmith.api.models.EntitlementsPartialUpdate; import io.cloudsmith.api.models.EntitlementsRefresh; @@ -25,6 +24,7 @@ import org.junit.Test; import org.junit.Ignore; + import java.util.ArrayList; import java.util.HashMap; import java.util.List; @@ -44,11 +44,11 @@ public class EntitlementsApiTest { * * Create a specific entitlement in a repository. * - * @throws ApiException + * @throws Exception * if the Api call fails */ @Test - public void entitlementsCreateTest() throws ApiException { + public void entitlementsCreateTest() throws Exception { String owner = null; String repo = null; Boolean showTokens = null; @@ -63,11 +63,11 @@ public void entitlementsCreateTest() throws ApiException { * * Delete a specific entitlement in a repository. * - * @throws ApiException + * @throws Exception * if the Api call fails */ @Test - public void entitlementsDeleteTest() throws ApiException { + public void entitlementsDeleteTest() throws Exception { String owner = null; String repo = null; String identifier = null; @@ -81,11 +81,11 @@ public void entitlementsDeleteTest() throws ApiException { * * Disable an entitlement token in a repository. * - * @throws ApiException + * @throws Exception * if the Api call fails */ @Test - public void entitlementsDisableTest() throws ApiException { + public void entitlementsDisableTest() throws Exception { String owner = null; String repo = null; String identifier = null; @@ -99,11 +99,11 @@ public void entitlementsDisableTest() throws ApiException { * * Enable an entitlement token in a repository. * - * @throws ApiException + * @throws Exception * if the Api call fails */ @Test - public void entitlementsEnableTest() throws ApiException { + public void entitlementsEnableTest() throws Exception { String owner = null; String repo = null; String identifier = null; @@ -117,11 +117,11 @@ public void entitlementsEnableTest() throws ApiException { * * Get a list of all entitlements in a repository. * - * @throws ApiException + * @throws Exception * if the Api call fails */ @Test - public void entitlementsListTest() throws ApiException { + public void entitlementsListTest() throws Exception { String owner = null; String repo = null; Integer page = null; @@ -137,11 +137,11 @@ public void entitlementsListTest() throws ApiException { * * Update a specific entitlement in a repository. * - * @throws ApiException + * @throws Exception * if the Api call fails */ @Test - public void entitlementsPartialUpdateTest() throws ApiException { + public void entitlementsPartialUpdateTest() throws Exception { String owner = null; String repo = null; String identifier = null; @@ -157,11 +157,11 @@ public void entitlementsPartialUpdateTest() throws ApiException { * * Get a specific entitlement in a repository. * - * @throws ApiException + * @throws Exception * if the Api call fails */ @Test - public void entitlementsReadTest() throws ApiException { + public void entitlementsReadTest() throws Exception { String owner = null; String repo = null; String identifier = null; @@ -176,11 +176,11 @@ public void entitlementsReadTest() throws ApiException { * * Refresh an entitlement token in a repository. * - * @throws ApiException + * @throws Exception * if the Api call fails */ @Test - public void entitlementsRefreshTest() throws ApiException { + public void entitlementsRefreshTest() throws Exception { String owner = null; String repo = null; String identifier = null; @@ -196,11 +196,11 @@ public void entitlementsRefreshTest() throws ApiException { * * Reset the statistics for an entitlement token in a repository. * - * @throws ApiException + * @throws Exception * if the Api call fails */ @Test - public void entitlementsResetTest() throws ApiException { + public void entitlementsResetTest() throws Exception { String owner = null; String repo = null; String identifier = null; @@ -215,11 +215,11 @@ public void entitlementsResetTest() throws ApiException { * * Synchronise tokens from a source repository. * - * @throws ApiException + * @throws Exception * if the Api call fails */ @Test - public void entitlementsSyncTest() throws ApiException { + public void entitlementsSyncTest() throws Exception { String owner = null; String repo = null; Boolean showTokens = null; diff --git a/bindings/java/src/src/test/java/io/cloudsmith/api/apis/FilesApiTest.java b/bindings/java/src/src/test/java/io/cloudsmith/api/apis/FilesApiTest.java index c25f7c6c..877536c6 100644 --- a/bindings/java/src/src/test/java/io/cloudsmith/api/apis/FilesApiTest.java +++ b/bindings/java/src/src/test/java/io/cloudsmith/api/apis/FilesApiTest.java @@ -13,7 +13,6 @@ package io.cloudsmith.api.apis; -import io.cloudsmith.api.ApiException; import io.cloudsmith.api.models.FilesAbort; import io.cloudsmith.api.models.FilesComplete; import io.cloudsmith.api.models.FilesCreate; @@ -24,6 +23,7 @@ import org.junit.Test; import org.junit.Ignore; + import java.util.ArrayList; import java.util.HashMap; import java.util.List; @@ -43,11 +43,11 @@ public class FilesApiTest { * * Abort a multipart file upload. * - * @throws ApiException + * @throws Exception * if the Api call fails */ @Test - public void filesAbortTest() throws ApiException { + public void filesAbortTest() throws Exception { String owner = null; String repo = null; String identifier = null; @@ -62,11 +62,11 @@ public void filesAbortTest() throws ApiException { * * Complete a multipart file upload. * - * @throws ApiException + * @throws Exception * if the Api call fails */ @Test - public void filesCompleteTest() throws ApiException { + public void filesCompleteTest() throws Exception { String owner = null; String repo = null; String identifier = null; @@ -81,11 +81,11 @@ public void filesCompleteTest() throws ApiException { * * Request URL(s) to upload new package file upload(s) to. * - * @throws ApiException + * @throws Exception * if the Api call fails */ @Test - public void filesCreateTest() throws ApiException { + public void filesCreateTest() throws Exception { String owner = null; String repo = null; FilesCreate data = null; @@ -99,11 +99,11 @@ public void filesCreateTest() throws ApiException { * * Get upload information for a multipart file upload. * - * @throws ApiException + * @throws Exception * if the Api call fails */ @Test - public void filesInfoTest() throws ApiException { + public void filesInfoTest() throws Exception { String owner = null; String repo = null; String identifier = null; @@ -117,11 +117,11 @@ public void filesInfoTest() throws ApiException { * * Validate parameters used for create. * - * @throws ApiException + * @throws Exception * if the Api call fails */ @Test - public void filesValidateTest() throws ApiException { + public void filesValidateTest() throws Exception { String owner = null; String repo = null; FilesValidate data = null; diff --git a/bindings/java/src/src/test/java/io/cloudsmith/api/apis/FormatsApiTest.java b/bindings/java/src/src/test/java/io/cloudsmith/api/apis/FormatsApiTest.java index 38960b8e..1f41e684 100644 --- a/bindings/java/src/src/test/java/io/cloudsmith/api/apis/FormatsApiTest.java +++ b/bindings/java/src/src/test/java/io/cloudsmith/api/apis/FormatsApiTest.java @@ -13,12 +13,12 @@ package io.cloudsmith.api.apis; -import io.cloudsmith.api.ApiException; import io.cloudsmith.api.models.Format; import io.cloudsmith.api.models.Status; import org.junit.Test; import org.junit.Ignore; + import java.util.ArrayList; import java.util.HashMap; import java.util.List; @@ -38,11 +38,11 @@ public class FormatsApiTest { * * Get a list of all supported package formats. * - * @throws ApiException + * @throws Exception * if the Api call fails */ @Test - public void formatsListTest() throws ApiException { + public void formatsListTest() throws Exception { List response = api.formatsList(); // TODO: test validations @@ -53,11 +53,11 @@ public void formatsListTest() throws ApiException { * * Get a specific supported package format. * - * @throws ApiException + * @throws Exception * if the Api call fails */ @Test - public void formatsReadTest() throws ApiException { + public void formatsReadTest() throws Exception { String slug = null; Format response = api.formatsRead(slug); diff --git a/bindings/java/src/src/test/java/io/cloudsmith/api/apis/MetricsApiTest.java b/bindings/java/src/src/test/java/io/cloudsmith/api/apis/MetricsApiTest.java index 4b185d3d..0e45bcfc 100644 --- a/bindings/java/src/src/test/java/io/cloudsmith/api/apis/MetricsApiTest.java +++ b/bindings/java/src/src/test/java/io/cloudsmith/api/apis/MetricsApiTest.java @@ -13,13 +13,13 @@ package io.cloudsmith.api.apis; -import io.cloudsmith.api.ApiException; import io.cloudsmith.api.models.EntitlementUsageMetrics; import io.cloudsmith.api.models.PackageUsageMetrics; import io.cloudsmith.api.models.Status; import org.junit.Test; import org.junit.Ignore; + import java.util.ArrayList; import java.util.HashMap; import java.util.List; @@ -39,11 +39,11 @@ public class MetricsApiTest { * * View for listing entitlement token metrics, across an account. * - * @throws ApiException + * @throws Exception * if the Api call fails */ @Test - public void metricsEntitlementsListTest() throws ApiException { + public void metricsEntitlementsListTest() throws Exception { String owner = null; Integer page = null; Integer pageSize = null; @@ -60,11 +60,11 @@ public void metricsEntitlementsListTest() throws ApiException { * * View for listing entitlement token metrics, for a repository. * - * @throws ApiException + * @throws Exception * if the Api call fails */ @Test - public void metricsEntitlementsList0Test() throws ApiException { + public void metricsEntitlementsList0Test() throws Exception { String owner = null; String repo = null; Integer page = null; @@ -82,11 +82,11 @@ public void metricsEntitlementsList0Test() throws ApiException { * * View for listing package usage metrics, for a repository. * - * @throws ApiException + * @throws Exception * if the Api call fails */ @Test - public void metricsPackagesListTest() throws ApiException { + public void metricsPackagesListTest() throws Exception { String owner = null; String repo = null; Integer page = null; diff --git a/bindings/java/src/src/test/java/io/cloudsmith/api/apis/NamespacesApiTest.java b/bindings/java/src/src/test/java/io/cloudsmith/api/apis/NamespacesApiTest.java index 0b5b3310..f0a97c04 100644 --- a/bindings/java/src/src/test/java/io/cloudsmith/api/apis/NamespacesApiTest.java +++ b/bindings/java/src/src/test/java/io/cloudsmith/api/apis/NamespacesApiTest.java @@ -13,12 +13,12 @@ package io.cloudsmith.api.apis; -import io.cloudsmith.api.ApiException; import io.cloudsmith.api.models.Namespace; import io.cloudsmith.api.models.Status; import org.junit.Test; import org.junit.Ignore; + import java.util.ArrayList; import java.util.HashMap; import java.util.List; @@ -38,11 +38,11 @@ public class NamespacesApiTest { * * Get a list of all namespaces the user belongs to. * - * @throws ApiException + * @throws Exception * if the Api call fails */ @Test - public void namespacesListTest() throws ApiException { + public void namespacesListTest() throws Exception { Integer page = null; Integer pageSize = null; List response = api.namespacesList(page, pageSize); @@ -55,11 +55,11 @@ public void namespacesListTest() throws ApiException { * * Views for working with namespaces. * - * @throws ApiException + * @throws Exception * if the Api call fails */ @Test - public void namespacesReadTest() throws ApiException { + public void namespacesReadTest() throws Exception { String slug = null; Namespace response = api.namespacesRead(slug); diff --git a/bindings/java/src/src/test/java/io/cloudsmith/api/apis/OrgsApiTest.java b/bindings/java/src/src/test/java/io/cloudsmith/api/apis/OrgsApiTest.java index 562f7531..bee7aea0 100644 --- a/bindings/java/src/src/test/java/io/cloudsmith/api/apis/OrgsApiTest.java +++ b/bindings/java/src/src/test/java/io/cloudsmith/api/apis/OrgsApiTest.java @@ -13,13 +13,13 @@ package io.cloudsmith.api.apis; -import io.cloudsmith.api.ApiException; import io.cloudsmith.api.models.Organization; import io.cloudsmith.api.models.OrganizationMembership; import io.cloudsmith.api.models.Status; import org.junit.Test; import org.junit.Ignore; + import java.util.ArrayList; import java.util.HashMap; import java.util.List; @@ -39,11 +39,11 @@ public class OrgsApiTest { * * Get a list of all the organizations you are associated with. * - * @throws ApiException + * @throws Exception * if the Api call fails */ @Test - public void orgsListTest() throws ApiException { + public void orgsListTest() throws Exception { Integer page = null; Integer pageSize = null; List response = api.orgsList(page, pageSize); @@ -56,11 +56,11 @@ public void orgsListTest() throws ApiException { * * Get the details for all organization members. * - * @throws ApiException + * @throws Exception * if the Api call fails */ @Test - public void orgsMembersListTest() throws ApiException { + public void orgsMembersListTest() throws Exception { String org = null; Integer page = null; Integer pageSize = null; @@ -74,11 +74,11 @@ public void orgsMembersListTest() throws ApiException { * * Get the details for a specific organization member. * - * @throws ApiException + * @throws Exception * if the Api call fails */ @Test - public void orgsMembersReadTest() throws ApiException { + public void orgsMembersReadTest() throws Exception { String org = null; String member = null; OrganizationMembership response = api.orgsMembersRead(org, member); @@ -91,11 +91,11 @@ public void orgsMembersReadTest() throws ApiException { * * Removes a member from the organization. * - * @throws ApiException + * @throws Exception * if the Api call fails */ @Test - public void orgsMembersRemoveTest() throws ApiException { + public void orgsMembersRemoveTest() throws Exception { String org = null; String member = null; OrganizationMembership response = api.orgsMembersRemove(org, member); @@ -108,11 +108,11 @@ public void orgsMembersRemoveTest() throws ApiException { * * Get the details for the specific organization. * - * @throws ApiException + * @throws Exception * if the Api call fails */ @Test - public void orgsReadTest() throws ApiException { + public void orgsReadTest() throws Exception { String org = null; Organization response = api.orgsRead(org); diff --git a/bindings/java/src/src/test/java/io/cloudsmith/api/apis/PackagesApiTest.java b/bindings/java/src/src/test/java/io/cloudsmith/api/apis/PackagesApiTest.java index 5083f464..d5d0f0dc 100644 --- a/bindings/java/src/src/test/java/io/cloudsmith/api/apis/PackagesApiTest.java +++ b/bindings/java/src/src/test/java/io/cloudsmith/api/apis/PackagesApiTest.java @@ -13,7 +13,6 @@ package io.cloudsmith.api.apis; -import io.cloudsmith.api.ApiException; import io.cloudsmith.api.models.AlpinePackageUpload; import io.cloudsmith.api.models.ConanPackageUpload; import io.cloudsmith.api.models.MavenPackageUpload; @@ -77,6 +76,7 @@ import org.junit.Test; import org.junit.Ignore; + import java.util.ArrayList; import java.util.HashMap; import java.util.List; @@ -96,11 +96,11 @@ public class PackagesApiTest { * * Copy a package to another repository. * - * @throws ApiException + * @throws Exception * if the Api call fails */ @Test - public void packagesCopyTest() throws ApiException { + public void packagesCopyTest() throws Exception { String owner = null; String repo = null; String identifier = null; @@ -115,11 +115,11 @@ public void packagesCopyTest() throws ApiException { * * Delete a specific package in a repository. * - * @throws ApiException + * @throws Exception * if the Api call fails */ @Test - public void packagesDeleteTest() throws ApiException { + public void packagesDeleteTest() throws Exception { String owner = null; String repo = null; String identifier = null; @@ -133,11 +133,11 @@ public void packagesDeleteTest() throws ApiException { * * Get the direct (non-transitive) dependencies list for a package. * - * @throws ApiException + * @throws Exception * if the Api call fails */ @Test - public void packagesDependenciesTest() throws ApiException { + public void packagesDependenciesTest() throws Exception { String owner = null; String repo = null; String identifier = null; @@ -151,11 +151,11 @@ public void packagesDependenciesTest() throws ApiException { * * Get a list of all packages associated with repository. * - * @throws ApiException + * @throws Exception * if the Api call fails */ @Test - public void packagesListTest() throws ApiException { + public void packagesListTest() throws Exception { String owner = null; String repo = null; Integer page = null; @@ -172,11 +172,11 @@ public void packagesListTest() throws ApiException { * * Move a package to another repository. * - * @throws ApiException + * @throws Exception * if the Api call fails */ @Test - public void packagesMoveTest() throws ApiException { + public void packagesMoveTest() throws Exception { String owner = null; String repo = null; String identifier = null; @@ -191,11 +191,11 @@ public void packagesMoveTest() throws ApiException { * * Get a specific package in a repository. * - * @throws ApiException + * @throws Exception * if the Api call fails */ @Test - public void packagesReadTest() throws ApiException { + public void packagesReadTest() throws Exception { String owner = null; String repo = null; String identifier = null; @@ -209,11 +209,11 @@ public void packagesReadTest() throws ApiException { * * Schedule a package for resynchronisation. * - * @throws ApiException + * @throws Exception * if the Api call fails */ @Test - public void packagesResyncTest() throws ApiException { + public void packagesResyncTest() throws Exception { String owner = null; String repo = null; String identifier = null; @@ -227,11 +227,11 @@ public void packagesResyncTest() throws ApiException { * * Schedule a package for scanning. * - * @throws ApiException + * @throws Exception * if the Api call fails */ @Test - public void packagesScanTest() throws ApiException { + public void packagesScanTest() throws Exception { String owner = null; String repo = null; String identifier = null; @@ -245,11 +245,11 @@ public void packagesScanTest() throws ApiException { * * Get the synchronisation status for a package. * - * @throws ApiException + * @throws Exception * if the Api call fails */ @Test - public void packagesStatusTest() throws ApiException { + public void packagesStatusTest() throws Exception { String owner = null; String repo = null; String identifier = null; @@ -263,11 +263,11 @@ public void packagesStatusTest() throws ApiException { * * Add/Replace/Remove tags for a package. * - * @throws ApiException + * @throws Exception * if the Api call fails */ @Test - public void packagesTagTest() throws ApiException { + public void packagesTagTest() throws Exception { String owner = null; String repo = null; String identifier = null; @@ -282,11 +282,11 @@ public void packagesTagTest() throws ApiException { * * Create a new Alpine package * - * @throws ApiException + * @throws Exception * if the Api call fails */ @Test - public void packagesUploadAlpineTest() throws ApiException { + public void packagesUploadAlpineTest() throws Exception { String owner = null; String repo = null; PackagesUploadAlpine data = null; @@ -300,11 +300,11 @@ public void packagesUploadAlpineTest() throws ApiException { * * Create a new Cargo package * - * @throws ApiException + * @throws Exception * if the Api call fails */ @Test - public void packagesUploadCargoTest() throws ApiException { + public void packagesUploadCargoTest() throws Exception { String owner = null; String repo = null; PackagesUploadCargo data = null; @@ -318,11 +318,11 @@ public void packagesUploadCargoTest() throws ApiException { * * Create a new CocoaPods package * - * @throws ApiException + * @throws Exception * if the Api call fails */ @Test - public void packagesUploadCocoapodsTest() throws ApiException { + public void packagesUploadCocoapodsTest() throws Exception { String owner = null; String repo = null; PackagesUploadCocoapods data = null; @@ -336,11 +336,11 @@ public void packagesUploadCocoapodsTest() throws ApiException { * * Create a new Composer package * - * @throws ApiException + * @throws Exception * if the Api call fails */ @Test - public void packagesUploadComposerTest() throws ApiException { + public void packagesUploadComposerTest() throws Exception { String owner = null; String repo = null; PackagesUploadComposer data = null; @@ -354,11 +354,11 @@ public void packagesUploadComposerTest() throws ApiException { * * Create a new Conan package * - * @throws ApiException + * @throws Exception * if the Api call fails */ @Test - public void packagesUploadConanTest() throws ApiException { + public void packagesUploadConanTest() throws Exception { String owner = null; String repo = null; PackagesUploadConan data = null; @@ -372,11 +372,11 @@ public void packagesUploadConanTest() throws ApiException { * * Create a new Conda package * - * @throws ApiException + * @throws Exception * if the Api call fails */ @Test - public void packagesUploadCondaTest() throws ApiException { + public void packagesUploadCondaTest() throws Exception { String owner = null; String repo = null; PackagesUploadConda data = null; @@ -390,11 +390,11 @@ public void packagesUploadCondaTest() throws ApiException { * * Create a new CRAN package * - * @throws ApiException + * @throws Exception * if the Api call fails */ @Test - public void packagesUploadCranTest() throws ApiException { + public void packagesUploadCranTest() throws Exception { String owner = null; String repo = null; PackagesUploadCran data = null; @@ -408,11 +408,11 @@ public void packagesUploadCranTest() throws ApiException { * * Create a new Dart package * - * @throws ApiException + * @throws Exception * if the Api call fails */ @Test - public void packagesUploadDartTest() throws ApiException { + public void packagesUploadDartTest() throws Exception { String owner = null; String repo = null; PackagesUploadDart data = null; @@ -426,11 +426,11 @@ public void packagesUploadDartTest() throws ApiException { * * Create a new Debian package * - * @throws ApiException + * @throws Exception * if the Api call fails */ @Test - public void packagesUploadDebTest() throws ApiException { + public void packagesUploadDebTest() throws Exception { String owner = null; String repo = null; PackagesUploadDeb data = null; @@ -444,11 +444,11 @@ public void packagesUploadDebTest() throws ApiException { * * Create a new Docker package * - * @throws ApiException + * @throws Exception * if the Api call fails */ @Test - public void packagesUploadDockerTest() throws ApiException { + public void packagesUploadDockerTest() throws Exception { String owner = null; String repo = null; PackagesUploadDocker data = null; @@ -462,11 +462,11 @@ public void packagesUploadDockerTest() throws ApiException { * * Create a new Go package * - * @throws ApiException + * @throws Exception * if the Api call fails */ @Test - public void packagesUploadGoTest() throws ApiException { + public void packagesUploadGoTest() throws Exception { String owner = null; String repo = null; PackagesUploadGo data = null; @@ -480,11 +480,11 @@ public void packagesUploadGoTest() throws ApiException { * * Create a new Helm package * - * @throws ApiException + * @throws Exception * if the Api call fails */ @Test - public void packagesUploadHelmTest() throws ApiException { + public void packagesUploadHelmTest() throws Exception { String owner = null; String repo = null; PackagesUploadHelm data = null; @@ -498,11 +498,11 @@ public void packagesUploadHelmTest() throws ApiException { * * Create a new LuaRocks package * - * @throws ApiException + * @throws Exception * if the Api call fails */ @Test - public void packagesUploadLuarocksTest() throws ApiException { + public void packagesUploadLuarocksTest() throws Exception { String owner = null; String repo = null; PackagesUploadLuarocks data = null; @@ -516,11 +516,11 @@ public void packagesUploadLuarocksTest() throws ApiException { * * Create a new Maven package * - * @throws ApiException + * @throws Exception * if the Api call fails */ @Test - public void packagesUploadMavenTest() throws ApiException { + public void packagesUploadMavenTest() throws Exception { String owner = null; String repo = null; PackagesUploadMaven data = null; @@ -534,11 +534,11 @@ public void packagesUploadMavenTest() throws ApiException { * * Create a new npm package * - * @throws ApiException + * @throws Exception * if the Api call fails */ @Test - public void packagesUploadNpmTest() throws ApiException { + public void packagesUploadNpmTest() throws Exception { String owner = null; String repo = null; PackagesUploadNpm data = null; @@ -552,11 +552,11 @@ public void packagesUploadNpmTest() throws ApiException { * * Create a new NuGet package * - * @throws ApiException + * @throws Exception * if the Api call fails */ @Test - public void packagesUploadNugetTest() throws ApiException { + public void packagesUploadNugetTest() throws Exception { String owner = null; String repo = null; PackagesUploadNuget data = null; @@ -570,11 +570,11 @@ public void packagesUploadNugetTest() throws ApiException { * * Create a new P2 package * - * @throws ApiException + * @throws Exception * if the Api call fails */ @Test - public void packagesUploadP2Test() throws ApiException { + public void packagesUploadP2Test() throws Exception { String owner = null; String repo = null; PackagesUploadP2 data = null; @@ -588,11 +588,11 @@ public void packagesUploadP2Test() throws ApiException { * * Create a new Python package * - * @throws ApiException + * @throws Exception * if the Api call fails */ @Test - public void packagesUploadPythonTest() throws ApiException { + public void packagesUploadPythonTest() throws Exception { String owner = null; String repo = null; PackagesUploadPython data = null; @@ -606,11 +606,11 @@ public void packagesUploadPythonTest() throws ApiException { * * Create a new Raw package * - * @throws ApiException + * @throws Exception * if the Api call fails */ @Test - public void packagesUploadRawTest() throws ApiException { + public void packagesUploadRawTest() throws Exception { String owner = null; String repo = null; PackagesUploadRaw data = null; @@ -624,11 +624,11 @@ public void packagesUploadRawTest() throws ApiException { * * Create a new RedHat package * - * @throws ApiException + * @throws Exception * if the Api call fails */ @Test - public void packagesUploadRpmTest() throws ApiException { + public void packagesUploadRpmTest() throws Exception { String owner = null; String repo = null; PackagesUploadRpm data = null; @@ -642,11 +642,11 @@ public void packagesUploadRpmTest() throws ApiException { * * Create a new Ruby package * - * @throws ApiException + * @throws Exception * if the Api call fails */ @Test - public void packagesUploadRubyTest() throws ApiException { + public void packagesUploadRubyTest() throws Exception { String owner = null; String repo = null; PackagesUploadRuby data = null; @@ -660,11 +660,11 @@ public void packagesUploadRubyTest() throws ApiException { * * Create a new Terraform package * - * @throws ApiException + * @throws Exception * if the Api call fails */ @Test - public void packagesUploadTerraformTest() throws ApiException { + public void packagesUploadTerraformTest() throws Exception { String owner = null; String repo = null; PackagesUploadTerraform data = null; @@ -678,11 +678,11 @@ public void packagesUploadTerraformTest() throws ApiException { * * Create a new Vagrant package * - * @throws ApiException + * @throws Exception * if the Api call fails */ @Test - public void packagesUploadVagrantTest() throws ApiException { + public void packagesUploadVagrantTest() throws Exception { String owner = null; String repo = null; PackagesUploadVagrant data = null; @@ -696,11 +696,11 @@ public void packagesUploadVagrantTest() throws ApiException { * * Validate parameters for create Alpine package * - * @throws ApiException + * @throws Exception * if the Api call fails */ @Test - public void packagesValidateUploadAlpineTest() throws ApiException { + public void packagesValidateUploadAlpineTest() throws Exception { String owner = null; String repo = null; PackagesValidateuploadAlpine data = null; @@ -714,11 +714,11 @@ public void packagesValidateUploadAlpineTest() throws ApiException { * * Validate parameters for create Cargo package * - * @throws ApiException + * @throws Exception * if the Api call fails */ @Test - public void packagesValidateUploadCargoTest() throws ApiException { + public void packagesValidateUploadCargoTest() throws Exception { String owner = null; String repo = null; PackagesValidateuploadCargo data = null; @@ -732,11 +732,11 @@ public void packagesValidateUploadCargoTest() throws ApiException { * * Validate parameters for create CocoaPods package * - * @throws ApiException + * @throws Exception * if the Api call fails */ @Test - public void packagesValidateUploadCocoapodsTest() throws ApiException { + public void packagesValidateUploadCocoapodsTest() throws Exception { String owner = null; String repo = null; PackagesValidateuploadCocoapods data = null; @@ -750,11 +750,11 @@ public void packagesValidateUploadCocoapodsTest() throws ApiException { * * Validate parameters for create Composer package * - * @throws ApiException + * @throws Exception * if the Api call fails */ @Test - public void packagesValidateUploadComposerTest() throws ApiException { + public void packagesValidateUploadComposerTest() throws Exception { String owner = null; String repo = null; PackagesValidateuploadComposer data = null; @@ -768,11 +768,11 @@ public void packagesValidateUploadComposerTest() throws ApiException { * * Validate parameters for create Conan package * - * @throws ApiException + * @throws Exception * if the Api call fails */ @Test - public void packagesValidateUploadConanTest() throws ApiException { + public void packagesValidateUploadConanTest() throws Exception { String owner = null; String repo = null; PackagesValidateuploadConan data = null; @@ -786,11 +786,11 @@ public void packagesValidateUploadConanTest() throws ApiException { * * Validate parameters for create Conda package * - * @throws ApiException + * @throws Exception * if the Api call fails */ @Test - public void packagesValidateUploadCondaTest() throws ApiException { + public void packagesValidateUploadCondaTest() throws Exception { String owner = null; String repo = null; PackagesValidateuploadConda data = null; @@ -804,11 +804,11 @@ public void packagesValidateUploadCondaTest() throws ApiException { * * Validate parameters for create CRAN package * - * @throws ApiException + * @throws Exception * if the Api call fails */ @Test - public void packagesValidateUploadCranTest() throws ApiException { + public void packagesValidateUploadCranTest() throws Exception { String owner = null; String repo = null; PackagesValidateuploadCran data = null; @@ -822,11 +822,11 @@ public void packagesValidateUploadCranTest() throws ApiException { * * Validate parameters for create Dart package * - * @throws ApiException + * @throws Exception * if the Api call fails */ @Test - public void packagesValidateUploadDartTest() throws ApiException { + public void packagesValidateUploadDartTest() throws Exception { String owner = null; String repo = null; PackagesValidateuploadDart data = null; @@ -840,11 +840,11 @@ public void packagesValidateUploadDartTest() throws ApiException { * * Validate parameters for create Debian package * - * @throws ApiException + * @throws Exception * if the Api call fails */ @Test - public void packagesValidateUploadDebTest() throws ApiException { + public void packagesValidateUploadDebTest() throws Exception { String owner = null; String repo = null; PackagesValidateuploadDeb data = null; @@ -858,11 +858,11 @@ public void packagesValidateUploadDebTest() throws ApiException { * * Validate parameters for create Docker package * - * @throws ApiException + * @throws Exception * if the Api call fails */ @Test - public void packagesValidateUploadDockerTest() throws ApiException { + public void packagesValidateUploadDockerTest() throws Exception { String owner = null; String repo = null; PackagesValidateuploadDocker data = null; @@ -876,11 +876,11 @@ public void packagesValidateUploadDockerTest() throws ApiException { * * Validate parameters for create Go package * - * @throws ApiException + * @throws Exception * if the Api call fails */ @Test - public void packagesValidateUploadGoTest() throws ApiException { + public void packagesValidateUploadGoTest() throws Exception { String owner = null; String repo = null; PackagesValidateuploadGo data = null; @@ -894,11 +894,11 @@ public void packagesValidateUploadGoTest() throws ApiException { * * Validate parameters for create Helm package * - * @throws ApiException + * @throws Exception * if the Api call fails */ @Test - public void packagesValidateUploadHelmTest() throws ApiException { + public void packagesValidateUploadHelmTest() throws Exception { String owner = null; String repo = null; PackagesValidateuploadHelm data = null; @@ -912,11 +912,11 @@ public void packagesValidateUploadHelmTest() throws ApiException { * * Validate parameters for create LuaRocks package * - * @throws ApiException + * @throws Exception * if the Api call fails */ @Test - public void packagesValidateUploadLuarocksTest() throws ApiException { + public void packagesValidateUploadLuarocksTest() throws Exception { String owner = null; String repo = null; PackagesValidateuploadLuarocks data = null; @@ -930,11 +930,11 @@ public void packagesValidateUploadLuarocksTest() throws ApiException { * * Validate parameters for create Maven package * - * @throws ApiException + * @throws Exception * if the Api call fails */ @Test - public void packagesValidateUploadMavenTest() throws ApiException { + public void packagesValidateUploadMavenTest() throws Exception { String owner = null; String repo = null; PackagesValidateuploadMaven data = null; @@ -948,11 +948,11 @@ public void packagesValidateUploadMavenTest() throws ApiException { * * Validate parameters for create npm package * - * @throws ApiException + * @throws Exception * if the Api call fails */ @Test - public void packagesValidateUploadNpmTest() throws ApiException { + public void packagesValidateUploadNpmTest() throws Exception { String owner = null; String repo = null; PackagesValidateuploadNpm data = null; @@ -966,11 +966,11 @@ public void packagesValidateUploadNpmTest() throws ApiException { * * Validate parameters for create NuGet package * - * @throws ApiException + * @throws Exception * if the Api call fails */ @Test - public void packagesValidateUploadNugetTest() throws ApiException { + public void packagesValidateUploadNugetTest() throws Exception { String owner = null; String repo = null; PackagesValidateuploadNuget data = null; @@ -984,11 +984,11 @@ public void packagesValidateUploadNugetTest() throws ApiException { * * Validate parameters for create P2 package * - * @throws ApiException + * @throws Exception * if the Api call fails */ @Test - public void packagesValidateUploadP2Test() throws ApiException { + public void packagesValidateUploadP2Test() throws Exception { String owner = null; String repo = null; PackagesValidateuploadP2 data = null; @@ -1002,11 +1002,11 @@ public void packagesValidateUploadP2Test() throws ApiException { * * Validate parameters for create Python package * - * @throws ApiException + * @throws Exception * if the Api call fails */ @Test - public void packagesValidateUploadPythonTest() throws ApiException { + public void packagesValidateUploadPythonTest() throws Exception { String owner = null; String repo = null; PackagesValidateuploadPython data = null; @@ -1020,11 +1020,11 @@ public void packagesValidateUploadPythonTest() throws ApiException { * * Validate parameters for create Raw package * - * @throws ApiException + * @throws Exception * if the Api call fails */ @Test - public void packagesValidateUploadRawTest() throws ApiException { + public void packagesValidateUploadRawTest() throws Exception { String owner = null; String repo = null; PackagesValidateuploadRaw data = null; @@ -1038,11 +1038,11 @@ public void packagesValidateUploadRawTest() throws ApiException { * * Validate parameters for create RedHat package * - * @throws ApiException + * @throws Exception * if the Api call fails */ @Test - public void packagesValidateUploadRpmTest() throws ApiException { + public void packagesValidateUploadRpmTest() throws Exception { String owner = null; String repo = null; PackagesValidateuploadRpm data = null; @@ -1056,11 +1056,11 @@ public void packagesValidateUploadRpmTest() throws ApiException { * * Validate parameters for create Ruby package * - * @throws ApiException + * @throws Exception * if the Api call fails */ @Test - public void packagesValidateUploadRubyTest() throws ApiException { + public void packagesValidateUploadRubyTest() throws Exception { String owner = null; String repo = null; PackagesValidateuploadRuby data = null; @@ -1074,11 +1074,11 @@ public void packagesValidateUploadRubyTest() throws ApiException { * * Validate parameters for create Terraform package * - * @throws ApiException + * @throws Exception * if the Api call fails */ @Test - public void packagesValidateUploadTerraformTest() throws ApiException { + public void packagesValidateUploadTerraformTest() throws Exception { String owner = null; String repo = null; PackagesValidateuploadTerraform data = null; @@ -1092,11 +1092,11 @@ public void packagesValidateUploadTerraformTest() throws ApiException { * * Validate parameters for create Vagrant package * - * @throws ApiException + * @throws Exception * if the Api call fails */ @Test - public void packagesValidateUploadVagrantTest() throws ApiException { + public void packagesValidateUploadVagrantTest() throws Exception { String owner = null; String repo = null; PackagesValidateuploadVagrant data = null; diff --git a/bindings/java/src/src/test/java/io/cloudsmith/api/apis/QuotaApiTest.java b/bindings/java/src/src/test/java/io/cloudsmith/api/apis/QuotaApiTest.java index 76a7dd31..2be2a6f6 100644 --- a/bindings/java/src/src/test/java/io/cloudsmith/api/apis/QuotaApiTest.java +++ b/bindings/java/src/src/test/java/io/cloudsmith/api/apis/QuotaApiTest.java @@ -13,13 +13,13 @@ package io.cloudsmith.api.apis; -import io.cloudsmith.api.ApiException; import io.cloudsmith.api.models.Quota; import io.cloudsmith.api.models.QuotaHistory; import io.cloudsmith.api.models.Status; import org.junit.Test; import org.junit.Ignore; + import java.util.ArrayList; import java.util.HashMap; import java.util.List; @@ -39,11 +39,11 @@ public class QuotaApiTest { * * Quota history for a given namespace. * - * @throws ApiException + * @throws Exception * if the Api call fails */ @Test - public void quotaHistoryReadTest() throws ApiException { + public void quotaHistoryReadTest() throws Exception { String owner = null; QuotaHistory response = api.quotaHistoryRead(owner); @@ -55,11 +55,11 @@ public void quotaHistoryReadTest() throws ApiException { * * Open-source Quota history for a given namespace. * - * @throws ApiException + * @throws Exception * if the Api call fails */ @Test - public void quotaOssHistoryReadTest() throws ApiException { + public void quotaOssHistoryReadTest() throws Exception { String owner = null; QuotaHistory response = api.quotaOssHistoryRead(owner); @@ -71,11 +71,11 @@ public void quotaOssHistoryReadTest() throws ApiException { * * Open-source Quota usage for a given namespace. * - * @throws ApiException + * @throws Exception * if the Api call fails */ @Test - public void quotaOssReadTest() throws ApiException { + public void quotaOssReadTest() throws Exception { String owner = null; Quota response = api.quotaOssRead(owner); @@ -87,11 +87,11 @@ public void quotaOssReadTest() throws ApiException { * * Quota usage for a given namespace. * - * @throws ApiException + * @throws Exception * if the Api call fails */ @Test - public void quotaReadTest() throws ApiException { + public void quotaReadTest() throws Exception { String owner = null; Quota response = api.quotaRead(owner); diff --git a/bindings/java/src/src/test/java/io/cloudsmith/api/apis/RatesApiTest.java b/bindings/java/src/src/test/java/io/cloudsmith/api/apis/RatesApiTest.java index 7a939428..541ce2d1 100644 --- a/bindings/java/src/src/test/java/io/cloudsmith/api/apis/RatesApiTest.java +++ b/bindings/java/src/src/test/java/io/cloudsmith/api/apis/RatesApiTest.java @@ -13,12 +13,12 @@ package io.cloudsmith.api.apis; -import io.cloudsmith.api.ApiException; import io.cloudsmith.api.models.ResourcesRateCheck; import io.cloudsmith.api.models.Status; import org.junit.Test; import org.junit.Ignore; + import java.util.ArrayList; import java.util.HashMap; import java.util.List; @@ -38,11 +38,11 @@ public class RatesApiTest { * * Endpoint to check rate limits for current user. * - * @throws ApiException + * @throws Exception * if the Api call fails */ @Test - public void ratesLimitsListTest() throws ApiException { + public void ratesLimitsListTest() throws Exception { ResourcesRateCheck response = api.ratesLimitsList(); // TODO: test validations diff --git a/bindings/java/src/src/test/java/io/cloudsmith/api/apis/ReposApiTest.java b/bindings/java/src/src/test/java/io/cloudsmith/api/apis/ReposApiTest.java index ce7d3f86..b970f5fa 100644 --- a/bindings/java/src/src/test/java/io/cloudsmith/api/apis/ReposApiTest.java +++ b/bindings/java/src/src/test/java/io/cloudsmith/api/apis/ReposApiTest.java @@ -13,7 +13,6 @@ package io.cloudsmith.api.apis; -import io.cloudsmith.api.ApiException; import io.cloudsmith.api.models.ReposCreate; import io.cloudsmith.api.models.ReposPartialUpdate; import io.cloudsmith.api.models.Repository; @@ -21,6 +20,7 @@ import org.junit.Test; import org.junit.Ignore; + import java.util.ArrayList; import java.util.HashMap; import java.util.List; @@ -40,11 +40,11 @@ public class ReposApiTest { * * Get a list of all repositories associated with current user. * - * @throws ApiException + * @throws Exception * if the Api call fails */ @Test - public void reposAllListTest() throws ApiException { + public void reposAllListTest() throws Exception { Integer page = null; Integer pageSize = null; List response = api.reposAllList(page, pageSize); @@ -57,11 +57,11 @@ public void reposAllListTest() throws ApiException { * * Create a new repository in a given namespace. * - * @throws ApiException + * @throws Exception * if the Api call fails */ @Test - public void reposCreateTest() throws ApiException { + public void reposCreateTest() throws Exception { String owner = null; ReposCreate data = null; Repository response = api.reposCreate(owner, data); @@ -74,11 +74,11 @@ public void reposCreateTest() throws ApiException { * * Delete a repository in a given namespace. * - * @throws ApiException + * @throws Exception * if the Api call fails */ @Test - public void reposDeleteTest() throws ApiException { + public void reposDeleteTest() throws Exception { String owner = null; String identifier = null; api.reposDelete(owner, identifier); @@ -91,11 +91,11 @@ public void reposDeleteTest() throws ApiException { * * Get a list of all repositories within a namespace. * - * @throws ApiException + * @throws Exception * if the Api call fails */ @Test - public void reposListTest() throws ApiException { + public void reposListTest() throws Exception { String owner = null; Integer page = null; Integer pageSize = null; @@ -109,11 +109,11 @@ public void reposListTest() throws ApiException { * * Update details about a repository in a given namespace. * - * @throws ApiException + * @throws Exception * if the Api call fails */ @Test - public void reposPartialUpdateTest() throws ApiException { + public void reposPartialUpdateTest() throws Exception { String owner = null; String identifier = null; ReposPartialUpdate data = null; @@ -127,11 +127,11 @@ public void reposPartialUpdateTest() throws ApiException { * * Get a specific repository. * - * @throws ApiException + * @throws Exception * if the Api call fails */ @Test - public void reposReadTest() throws ApiException { + public void reposReadTest() throws Exception { String owner = null; String identifier = null; Repository response = api.reposRead(owner, identifier); diff --git a/bindings/java/src/src/test/java/io/cloudsmith/api/apis/StatusApiTest.java b/bindings/java/src/src/test/java/io/cloudsmith/api/apis/StatusApiTest.java index d88f366d..0ea67365 100644 --- a/bindings/java/src/src/test/java/io/cloudsmith/api/apis/StatusApiTest.java +++ b/bindings/java/src/src/test/java/io/cloudsmith/api/apis/StatusApiTest.java @@ -13,12 +13,12 @@ package io.cloudsmith.api.apis; -import io.cloudsmith.api.ApiException; import io.cloudsmith.api.models.Status; import io.cloudsmith.api.models.StatusBasic; import org.junit.Test; import org.junit.Ignore; + import java.util.ArrayList; import java.util.HashMap; import java.util.List; @@ -38,11 +38,11 @@ public class StatusApiTest { * * Endpoint to check basic API connectivity. * - * @throws ApiException + * @throws Exception * if the Api call fails */ @Test - public void statusCheckBasicTest() throws ApiException { + public void statusCheckBasicTest() throws Exception { StatusBasic response = api.statusCheckBasic(); // TODO: test validations diff --git a/bindings/java/src/src/test/java/io/cloudsmith/api/apis/StorageRegionsApiTest.java b/bindings/java/src/src/test/java/io/cloudsmith/api/apis/StorageRegionsApiTest.java index 6ad4c723..cd9eaf4a 100644 --- a/bindings/java/src/src/test/java/io/cloudsmith/api/apis/StorageRegionsApiTest.java +++ b/bindings/java/src/src/test/java/io/cloudsmith/api/apis/StorageRegionsApiTest.java @@ -13,12 +13,12 @@ package io.cloudsmith.api.apis; -import io.cloudsmith.api.ApiException; import io.cloudsmith.api.models.Status; import io.cloudsmith.api.models.StorageRegion; import org.junit.Test; import org.junit.Ignore; + import java.util.ArrayList; import java.util.HashMap; import java.util.List; @@ -38,11 +38,11 @@ public class StorageRegionsApiTest { * * Get a list of all available storage regions. * - * @throws ApiException + * @throws Exception * if the Api call fails */ @Test - public void storageRegionsListTest() throws ApiException { + public void storageRegionsListTest() throws Exception { List response = api.storageRegionsList(); // TODO: test validations @@ -53,11 +53,11 @@ public void storageRegionsListTest() throws ApiException { * * Get a specific storage region. * - * @throws ApiException + * @throws Exception * if the Api call fails */ @Test - public void storageRegionsReadTest() throws ApiException { + public void storageRegionsReadTest() throws Exception { String slug = null; StorageRegion response = api.storageRegionsRead(slug); diff --git a/bindings/java/src/src/test/java/io/cloudsmith/api/apis/UserApiTest.java b/bindings/java/src/src/test/java/io/cloudsmith/api/apis/UserApiTest.java index c2feecae..e40a2b94 100644 --- a/bindings/java/src/src/test/java/io/cloudsmith/api/apis/UserApiTest.java +++ b/bindings/java/src/src/test/java/io/cloudsmith/api/apis/UserApiTest.java @@ -13,7 +13,6 @@ package io.cloudsmith.api.apis; -import io.cloudsmith.api.ApiException; import io.cloudsmith.api.models.Status; import io.cloudsmith.api.models.UserAuthToken; import io.cloudsmith.api.models.UserBrief; @@ -21,6 +20,7 @@ import org.junit.Test; import org.junit.Ignore; + import java.util.ArrayList; import java.util.HashMap; import java.util.List; @@ -40,11 +40,11 @@ public class UserApiTest { * * Provide a brief for the current user (if any). * - * @throws ApiException + * @throws Exception * if the Api call fails */ @Test - public void userSelfTest() throws ApiException { + public void userSelfTest() throws Exception { UserBrief response = api.userSelf(); // TODO: test validations @@ -55,11 +55,11 @@ public void userSelfTest() throws ApiException { * * Retrieve the API key/token for the authenticated user. * - * @throws ApiException + * @throws Exception * if the Api call fails */ @Test - public void userTokenCreateTest() throws ApiException { + public void userTokenCreateTest() throws Exception { UserTokenCreate data = null; UserAuthToken response = api.userTokenCreate(data); diff --git a/bindings/java/src/src/test/java/io/cloudsmith/api/apis/UsersApiTest.java b/bindings/java/src/src/test/java/io/cloudsmith/api/apis/UsersApiTest.java index 6ed2225f..1c4a0bcc 100644 --- a/bindings/java/src/src/test/java/io/cloudsmith/api/apis/UsersApiTest.java +++ b/bindings/java/src/src/test/java/io/cloudsmith/api/apis/UsersApiTest.java @@ -13,12 +13,12 @@ package io.cloudsmith.api.apis; -import io.cloudsmith.api.ApiException; import io.cloudsmith.api.models.Status; import io.cloudsmith.api.models.UserProfile; import org.junit.Test; import org.junit.Ignore; + import java.util.ArrayList; import java.util.HashMap; import java.util.List; @@ -38,11 +38,11 @@ public class UsersApiTest { * * Provide a brief for the specified user (if any). * - * @throws ApiException + * @throws Exception * if the Api call fails */ @Test - public void usersProfileReadTest() throws ApiException { + public void usersProfileReadTest() throws Exception { String slug = null; UserProfile response = api.usersProfileRead(slug); diff --git a/bindings/java/src/src/test/java/io/cloudsmith/api/apis/VulnerabilitiesApiTest.java b/bindings/java/src/src/test/java/io/cloudsmith/api/apis/VulnerabilitiesApiTest.java index 24fa2199..8969c496 100644 --- a/bindings/java/src/src/test/java/io/cloudsmith/api/apis/VulnerabilitiesApiTest.java +++ b/bindings/java/src/src/test/java/io/cloudsmith/api/apis/VulnerabilitiesApiTest.java @@ -13,13 +13,13 @@ package io.cloudsmith.api.apis; -import io.cloudsmith.api.ApiException; import io.cloudsmith.api.models.Status; import io.cloudsmith.api.models.VulnerabilityScanResults; import io.cloudsmith.api.models.VulnerabilityScanResultsList; import org.junit.Test; import org.junit.Ignore; + import java.util.ArrayList; import java.util.HashMap; import java.util.List; @@ -39,11 +39,11 @@ public class VulnerabilitiesApiTest { * * Lists scan results for a specific namespace. * - * @throws ApiException + * @throws Exception * if the Api call fails */ @Test - public void vulnerabilitiesListTest() throws ApiException { + public void vulnerabilitiesListTest() throws Exception { String owner = null; Integer page = null; Integer pageSize = null; @@ -57,11 +57,11 @@ public void vulnerabilitiesListTest() throws ApiException { * * Lists scan results for a specific repository. * - * @throws ApiException + * @throws Exception * if the Api call fails */ @Test - public void vulnerabilitiesList0Test() throws ApiException { + public void vulnerabilitiesList0Test() throws Exception { String owner = null; String repo = null; Integer page = null; @@ -76,11 +76,11 @@ public void vulnerabilitiesList0Test() throws ApiException { * * Lists scan results for a specific package. * - * @throws ApiException + * @throws Exception * if the Api call fails */ @Test - public void vulnerabilitiesList1Test() throws ApiException { + public void vulnerabilitiesList1Test() throws Exception { String owner = null; String repo = null; String _package = null; @@ -96,11 +96,11 @@ public void vulnerabilitiesList1Test() throws ApiException { * * Returns a Scan Result. * - * @throws ApiException + * @throws Exception * if the Api call fails */ @Test - public void vulnerabilitiesReadTest() throws ApiException { + public void vulnerabilitiesReadTest() throws Exception { String owner = null; String repo = null; String _package = null; diff --git a/bindings/java/src/src/test/java/io/cloudsmith/api/apis/WebhooksApiTest.java b/bindings/java/src/src/test/java/io/cloudsmith/api/apis/WebhooksApiTest.java index 3dfd2317..d673293b 100644 --- a/bindings/java/src/src/test/java/io/cloudsmith/api/apis/WebhooksApiTest.java +++ b/bindings/java/src/src/test/java/io/cloudsmith/api/apis/WebhooksApiTest.java @@ -13,7 +13,6 @@ package io.cloudsmith.api.apis; -import io.cloudsmith.api.ApiException; import io.cloudsmith.api.models.RepositoryWebhook; import io.cloudsmith.api.models.Status; import io.cloudsmith.api.models.WebhooksCreate; @@ -21,6 +20,7 @@ import org.junit.Test; import org.junit.Ignore; + import java.util.ArrayList; import java.util.HashMap; import java.util.List; @@ -40,11 +40,11 @@ public class WebhooksApiTest { * * Create a specific webhook in a repository. * - * @throws ApiException + * @throws Exception * if the Api call fails */ @Test - public void webhooksCreateTest() throws ApiException { + public void webhooksCreateTest() throws Exception { String owner = null; String repo = null; WebhooksCreate data = null; @@ -58,11 +58,11 @@ public void webhooksCreateTest() throws ApiException { * * Delete a specific webhook in a repository. * - * @throws ApiException + * @throws Exception * if the Api call fails */ @Test - public void webhooksDeleteTest() throws ApiException { + public void webhooksDeleteTest() throws Exception { String owner = null; String repo = null; String identifier = null; @@ -76,11 +76,11 @@ public void webhooksDeleteTest() throws ApiException { * * Get a list of all webhooks in a repository. * - * @throws ApiException + * @throws Exception * if the Api call fails */ @Test - public void webhooksListTest() throws ApiException { + public void webhooksListTest() throws Exception { String owner = null; String repo = null; Integer page = null; @@ -95,11 +95,11 @@ public void webhooksListTest() throws ApiException { * * Update a specific webhook in a repository. * - * @throws ApiException + * @throws Exception * if the Api call fails */ @Test - public void webhooksPartialUpdateTest() throws ApiException { + public void webhooksPartialUpdateTest() throws Exception { String owner = null; String repo = null; String identifier = null; @@ -114,11 +114,11 @@ public void webhooksPartialUpdateTest() throws ApiException { * * Views for working with repository webhooks. * - * @throws ApiException + * @throws Exception * if the Api call fails */ @Test - public void webhooksReadTest() throws ApiException { + public void webhooksReadTest() throws Exception { String owner = null; String repo = null; String identifier = null; diff --git a/bindings/java/test.sh b/bindings/java/test.sh index 3eb55212..e1583601 100755 --- a/bindings/java/test.sh +++ b/bindings/java/test.sh @@ -1,4 +1,6 @@ #!/usr/bin/env bash +set -e + self=$(readlink -f $BASH_SOURCE) self_dir=$(dirname $self) root_dir=$(readlink -f "$self_dir/../..") diff --git a/bindings/python/build.sh b/bindings/python/build.sh index d4203db7..df963ce1 100755 --- a/bindings/python/build.sh +++ b/bindings/python/build.sh @@ -1,4 +1,6 @@ #!/usr/bin/env bash +set -e + self=$(readlink -f $BASH_SOURCE) self_dir=$(dirname $self) root_dir=$(readlink -f "$self_dir/../..") diff --git a/bindings/python/deploy.sh b/bindings/python/deploy.sh index f6772105..9bdfee9b 100755 --- a/bindings/python/deploy.sh +++ b/bindings/python/deploy.sh @@ -1,4 +1,6 @@ #!/usr/bin/env bash +set -e + self=$(readlink -f $BASH_SOURCE) self_dir="$(dirname $self)" root_dir=$(readlink -f "$self_dir/../..") @@ -22,10 +24,10 @@ upload_to_pypi() { distribution_filepath="dist/${project_underscore}-${api_version}-py2.py3-none-any.whl" if [[ "$CI" == "true" ]] - then + then twine upload -u csm-api-bot -p "$PYPI_PASSWORD" --skip-existing --non-interactive "$distribution_filepath" else - twine upload --skip-existing --non-interactive "$distribution_filepath" + twine upload --skip-existing --non-interactive "$distribution_filepath" fi } diff --git a/bindings/python/src/.swagger-codegen/VERSION b/bindings/python/src/.swagger-codegen/VERSION index 6b4d1577..21f40d97 100644 --- a/bindings/python/src/.swagger-codegen/VERSION +++ b/bindings/python/src/.swagger-codegen/VERSION @@ -1 +1 @@ -2.2.3 \ No newline at end of file +2.4.26 \ No newline at end of file diff --git a/bindings/python/src/README.md b/bindings/python/src/README.md index 6975986d..28bbd26f 100644 --- a/bindings/python/src/README.md +++ b/bindings/python/src/README.md @@ -4,7 +4,7 @@ The API to the Cloudsmith Service This Python package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project: - API version: v1 -- Package version: 1.30.0 +- Package version: 1.33.7 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://help.cloudsmith.io](https://help.cloudsmith.io) @@ -53,11 +53,13 @@ from cloudsmith_api.rest import ApiException from pprint import pprint # Configure API key authorization: apikey -cloudsmith_api.configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# cloudsmith_api.configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' + # create an instance of the API class -api_instance = cloudsmith_api.BadgesApi() +api_instance = cloudsmith_api.BadgesApi(cloudsmith_api.ApiClient(configuration)) owner = 'owner_example' # str | repo = 'repo_example' # str | package_format = 'package_format_example' # str | @@ -78,7 +80,8 @@ style = 'style_example' # str | Override the shields.io badge style value. (opti try: # Get latest package version for a package or package group. - api_instance.badges_version_list(owner, repo, package_format, package_name, package_version, package_identifiers, badge_token=badge_token, cache_seconds=cache_seconds, color=color, label=label, label_color=label_color, logo_color=logo_color, logo_width=logo_width, render=render, shields=shields, show_latest=show_latest, style=style) + api_response = api_instance.badges_version_list(owner, repo, package_format, package_name, package_version, package_identifiers, badge_token=badge_token, cache_seconds=cache_seconds, color=color, label=label, label_color=label_color, logo_color=logo_color, logo_width=logo_width, render=render, shields=shields, show_latest=show_latest, style=style) + pprint(api_response) except ApiException as e: print("Exception when calling BadgesApi->badges_version_list: %s\n" % e) @@ -188,8 +191,8 @@ Class | Method | HTTP request | Description *ReposApi* | [**repos_partial_update**](docs/ReposApi.md#repos_partial_update) | **PATCH** /repos/{owner}/{identifier}/ | Update details about a repository in a given namespace. *ReposApi* | [**repos_read**](docs/ReposApi.md#repos_read) | **GET** /repos/{owner}/{identifier}/ | Get a specific repository. *StatusApi* | [**status_check_basic**](docs/StatusApi.md#status_check_basic) | **GET** /status/check/basic/ | Endpoint to check basic API connectivity. -*StorageregionsApi* | [**storage_regions_list**](docs/StorageregionsApi.md#storage_regions_list) | **GET** /storage-regions/ | Get a list of all available storage regions. -*StorageregionsApi* | [**storage_regions_read**](docs/StorageregionsApi.md#storage_regions_read) | **GET** /storage-regions/{slug}/ | Get a specific storage region. +*StorageRegionsApi* | [**storage_regions_list**](docs/StorageRegionsApi.md#storage_regions_list) | **GET** /storage-regions/ | Get a list of all available storage regions. +*StorageRegionsApi* | [**storage_regions_read**](docs/StorageRegionsApi.md#storage_regions_read) | **GET** /storage-regions/{slug}/ | Get a specific storage region. *UserApi* | [**user_self**](docs/UserApi.md#user_self) | **GET** /user/self/ | Provide a brief for the current user (if any). *UserApi* | [**user_token_create**](docs/UserApi.md#user_token_create) | **POST** /user/token/ | Retrieve the API key/token for the authenticated user. *UsersApi* | [**users_profile_read**](docs/UsersApi.md#users_profile_read) | **GET** /users/profile/{slug}/ | Provide a brief for the specified user (if any). diff --git a/bindings/python/src/build.json b/bindings/python/src/build.json index 901006b2..067a64ec 100644 --- a/bindings/python/src/build.json +++ b/bindings/python/src/build.json @@ -2,7 +2,7 @@ "hideGenerationTimestamp": true, "packageName": "cloudsmith_api", "projectName": "cloudsmith-api", - "packageVersion": "1.30.0", + "packageVersion": "1.33.7", "packageUrl": "https://api.cloudsmith.io/?format=openapi", "sortParamsByRequiredFlag": true } diff --git a/bindings/python/src/cloudsmith_api/__init__.py b/bindings/python/src/cloudsmith_api/__init__.py index 8f4fafab..27b54c14 100644 --- a/bindings/python/src/cloudsmith_api/__init__.py +++ b/bindings/python/src/cloudsmith_api/__init__.py @@ -1,9 +1,11 @@ # coding: utf-8 +# flake8: noqa + """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,137 +15,133 @@ from __future__ import absolute_import -# import models into sdk package -from .models.alpine_package_upload import AlpinePackageUpload -from .models.conan_package_upload import ConanPackageUpload -from .models.distribution import Distribution -from .models.distros_versions import DistrosVersions -from .models.entitlement_usage_metrics import EntitlementUsageMetrics -from .models.entitlements_create import EntitlementsCreate -from .models.entitlements_partial_update import EntitlementsPartialUpdate -from .models.entitlements_refresh import EntitlementsRefresh -from .models.entitlements_sync import EntitlementsSync -from .models.files_abort import FilesAbort -from .models.files_complete import FilesComplete -from .models.files_create import FilesCreate -from .models.files_validate import FilesValidate -from .models.format import Format -from .models.formats_distributions import FormatsDistributions -from .models.maven_package_upload import MavenPackageUpload -from .models.namespace import Namespace -from .models.organization import Organization -from .models.organization_membership import OrganizationMembership -from .models.package import Package -from .models.package_copy import PackageCopy -from .models.package_dependencies import PackageDependencies -from .models.package_dependencies_dependencies import PackageDependenciesDependencies -from .models.package_file_parts_upload import PackageFilePartsUpload -from .models.package_file_upload import PackageFileUpload -from .models.package_move import PackageMove -from .models.package_status import PackageStatus -from .models.package_usage_metrics import PackageUsageMetrics -from .models.packages_copy import PackagesCopy -from .models.packages_move import PackagesMove -from .models.packages_tag import PackagesTag -from .models.packages_upload_alpine import PackagesUploadAlpine -from .models.packages_upload_cargo import PackagesUploadCargo -from .models.packages_upload_cocoapods import PackagesUploadCocoapods -from .models.packages_upload_composer import PackagesUploadComposer -from .models.packages_upload_conan import PackagesUploadConan -from .models.packages_upload_conda import PackagesUploadConda -from .models.packages_upload_cran import PackagesUploadCran -from .models.packages_upload_dart import PackagesUploadDart -from .models.packages_upload_deb import PackagesUploadDeb -from .models.packages_upload_docker import PackagesUploadDocker -from .models.packages_upload_go import PackagesUploadGo -from .models.packages_upload_helm import PackagesUploadHelm -from .models.packages_upload_luarocks import PackagesUploadLuarocks -from .models.packages_upload_maven import PackagesUploadMaven -from .models.packages_upload_npm import PackagesUploadNpm -from .models.packages_upload_nuget import PackagesUploadNuget -from .models.packages_upload_p2 import PackagesUploadP2 -from .models.packages_upload_python import PackagesUploadPython -from .models.packages_upload_raw import PackagesUploadRaw -from .models.packages_upload_rpm import PackagesUploadRpm -from .models.packages_upload_ruby import PackagesUploadRuby -from .models.packages_upload_terraform import PackagesUploadTerraform -from .models.packages_upload_vagrant import PackagesUploadVagrant -from .models.packages_validateupload_alpine import PackagesValidateuploadAlpine -from .models.packages_validateupload_cargo import PackagesValidateuploadCargo -from .models.packages_validateupload_cocoapods import PackagesValidateuploadCocoapods -from .models.packages_validateupload_composer import PackagesValidateuploadComposer -from .models.packages_validateupload_conan import PackagesValidateuploadConan -from .models.packages_validateupload_conda import PackagesValidateuploadConda -from .models.packages_validateupload_cran import PackagesValidateuploadCran -from .models.packages_validateupload_dart import PackagesValidateuploadDart -from .models.packages_validateupload_deb import PackagesValidateuploadDeb -from .models.packages_validateupload_docker import PackagesValidateuploadDocker -from .models.packages_validateupload_go import PackagesValidateuploadGo -from .models.packages_validateupload_helm import PackagesValidateuploadHelm -from .models.packages_validateupload_luarocks import PackagesValidateuploadLuarocks -from .models.packages_validateupload_maven import PackagesValidateuploadMaven -from .models.packages_validateupload_npm import PackagesValidateuploadNpm -from .models.packages_validateupload_nuget import PackagesValidateuploadNuget -from .models.packages_validateupload_p2 import PackagesValidateuploadP2 -from .models.packages_validateupload_python import PackagesValidateuploadPython -from .models.packages_validateupload_raw import PackagesValidateuploadRaw -from .models.packages_validateupload_rpm import PackagesValidateuploadRpm -from .models.packages_validateupload_ruby import PackagesValidateuploadRuby -from .models.packages_validateupload_terraform import PackagesValidateuploadTerraform -from .models.packages_validateupload_vagrant import PackagesValidateuploadVagrant -from .models.packagesownerrepo_architectures import PackagesownerrepoArchitectures -from .models.packagesownerrepo_files import PackagesownerrepoFiles -from .models.quota import Quota -from .models.quota_history import QuotaHistory -from .models.quota_history_history import QuotaHistoryHistory -from .models.raw_package_upload import RawPackageUpload -from .models.repos_create import ReposCreate -from .models.repos_gpg_keys import ReposGpgKeys -from .models.repos_partial_update import ReposPartialUpdate -from .models.repository import Repository -from .models.repository_token import RepositoryToken -from .models.repository_token_refresh import RepositoryTokenRefresh -from .models.repository_token_sync import RepositoryTokenSync -from .models.repository_token_sync_tokens import RepositoryTokenSyncTokens -from .models.repository_webhook import RepositoryWebhook -from .models.resources_rate_check import ResourcesRateCheck -from .models.status import Status -from .models.status_basic import StatusBasic -from .models.storage_region import StorageRegion -from .models.user_auth_token import UserAuthToken -from .models.user_brief import UserBrief -from .models.user_profile import UserProfile -from .models.user_token_create import UserTokenCreate -from .models.vagrant_package_upload import VagrantPackageUpload -from .models.vulnerability_scan_results import VulnerabilityScanResults -from .models.vulnerability_scan_results_list import VulnerabilityScanResultsList -from .models.webhooks_create import WebhooksCreate -from .models.webhooks_partial_update import WebhooksPartialUpdate -from .models.webhooksownerrepo_templates import WebhooksownerrepoTemplates - # import apis into sdk package -from .apis.badges_api import BadgesApi -from .apis.distros_api import DistrosApi -from .apis.entitlements_api import EntitlementsApi -from .apis.files_api import FilesApi -from .apis.formats_api import FormatsApi -from .apis.metrics_api import MetricsApi -from .apis.namespaces_api import NamespacesApi -from .apis.orgs_api import OrgsApi -from .apis.packages_api import PackagesApi -from .apis.quota_api import QuotaApi -from .apis.rates_api import RatesApi -from .apis.repos_api import ReposApi -from .apis.status_api import StatusApi -from .apis.storageregions_api import StorageregionsApi -from .apis.user_api import UserApi -from .apis.users_api import UsersApi -from .apis.vulnerabilities_api import VulnerabilitiesApi -from .apis.webhooks_api import WebhooksApi +from cloudsmith_api.api.badges_api import BadgesApi +from cloudsmith_api.api.distros_api import DistrosApi +from cloudsmith_api.api.entitlements_api import EntitlementsApi +from cloudsmith_api.api.files_api import FilesApi +from cloudsmith_api.api.formats_api import FormatsApi +from cloudsmith_api.api.metrics_api import MetricsApi +from cloudsmith_api.api.namespaces_api import NamespacesApi +from cloudsmith_api.api.orgs_api import OrgsApi +from cloudsmith_api.api.packages_api import PackagesApi +from cloudsmith_api.api.quota_api import QuotaApi +from cloudsmith_api.api.rates_api import RatesApi +from cloudsmith_api.api.repos_api import ReposApi +from cloudsmith_api.api.status_api import StatusApi +from cloudsmith_api.api.storage_regions_api import StorageRegionsApi +from cloudsmith_api.api.user_api import UserApi +from cloudsmith_api.api.users_api import UsersApi +from cloudsmith_api.api.vulnerabilities_api import VulnerabilitiesApi +from cloudsmith_api.api.webhooks_api import WebhooksApi # import ApiClient -from .api_client import ApiClient - -from .configuration import Configuration - -configuration = Configuration() +from cloudsmith_api.api_client import ApiClient +from cloudsmith_api.configuration import Configuration +# import models into sdk package +from cloudsmith_api.models.alpine_package_upload import AlpinePackageUpload +from cloudsmith_api.models.conan_package_upload import ConanPackageUpload +from cloudsmith_api.models.distribution import Distribution +from cloudsmith_api.models.distros_versions import DistrosVersions +from cloudsmith_api.models.entitlement_usage_metrics import EntitlementUsageMetrics +from cloudsmith_api.models.entitlements_create import EntitlementsCreate +from cloudsmith_api.models.entitlements_partial_update import EntitlementsPartialUpdate +from cloudsmith_api.models.entitlements_refresh import EntitlementsRefresh +from cloudsmith_api.models.entitlements_sync import EntitlementsSync +from cloudsmith_api.models.files_abort import FilesAbort +from cloudsmith_api.models.files_complete import FilesComplete +from cloudsmith_api.models.files_create import FilesCreate +from cloudsmith_api.models.files_validate import FilesValidate +from cloudsmith_api.models.format import Format +from cloudsmith_api.models.formats_distributions import FormatsDistributions +from cloudsmith_api.models.maven_package_upload import MavenPackageUpload +from cloudsmith_api.models.namespace import Namespace +from cloudsmith_api.models.organization import Organization +from cloudsmith_api.models.organization_membership import OrganizationMembership +from cloudsmith_api.models.package import Package +from cloudsmith_api.models.package_copy import PackageCopy +from cloudsmith_api.models.package_dependencies import PackageDependencies +from cloudsmith_api.models.package_dependencies_dependencies import PackageDependenciesDependencies +from cloudsmith_api.models.package_file_parts_upload import PackageFilePartsUpload +from cloudsmith_api.models.package_file_upload import PackageFileUpload +from cloudsmith_api.models.package_move import PackageMove +from cloudsmith_api.models.package_status import PackageStatus +from cloudsmith_api.models.package_usage_metrics import PackageUsageMetrics +from cloudsmith_api.models.packages_copy import PackagesCopy +from cloudsmith_api.models.packages_move import PackagesMove +from cloudsmith_api.models.packages_tag import PackagesTag +from cloudsmith_api.models.packages_upload_alpine import PackagesUploadAlpine +from cloudsmith_api.models.packages_upload_cargo import PackagesUploadCargo +from cloudsmith_api.models.packages_upload_cocoapods import PackagesUploadCocoapods +from cloudsmith_api.models.packages_upload_composer import PackagesUploadComposer +from cloudsmith_api.models.packages_upload_conan import PackagesUploadConan +from cloudsmith_api.models.packages_upload_conda import PackagesUploadConda +from cloudsmith_api.models.packages_upload_cran import PackagesUploadCran +from cloudsmith_api.models.packages_upload_dart import PackagesUploadDart +from cloudsmith_api.models.packages_upload_deb import PackagesUploadDeb +from cloudsmith_api.models.packages_upload_docker import PackagesUploadDocker +from cloudsmith_api.models.packages_upload_go import PackagesUploadGo +from cloudsmith_api.models.packages_upload_helm import PackagesUploadHelm +from cloudsmith_api.models.packages_upload_luarocks import PackagesUploadLuarocks +from cloudsmith_api.models.packages_upload_maven import PackagesUploadMaven +from cloudsmith_api.models.packages_upload_npm import PackagesUploadNpm +from cloudsmith_api.models.packages_upload_nuget import PackagesUploadNuget +from cloudsmith_api.models.packages_upload_p2 import PackagesUploadP2 +from cloudsmith_api.models.packages_upload_python import PackagesUploadPython +from cloudsmith_api.models.packages_upload_raw import PackagesUploadRaw +from cloudsmith_api.models.packages_upload_rpm import PackagesUploadRpm +from cloudsmith_api.models.packages_upload_ruby import PackagesUploadRuby +from cloudsmith_api.models.packages_upload_terraform import PackagesUploadTerraform +from cloudsmith_api.models.packages_upload_vagrant import PackagesUploadVagrant +from cloudsmith_api.models.packages_validateupload_alpine import PackagesValidateuploadAlpine +from cloudsmith_api.models.packages_validateupload_cargo import PackagesValidateuploadCargo +from cloudsmith_api.models.packages_validateupload_cocoapods import PackagesValidateuploadCocoapods +from cloudsmith_api.models.packages_validateupload_composer import PackagesValidateuploadComposer +from cloudsmith_api.models.packages_validateupload_conan import PackagesValidateuploadConan +from cloudsmith_api.models.packages_validateupload_conda import PackagesValidateuploadConda +from cloudsmith_api.models.packages_validateupload_cran import PackagesValidateuploadCran +from cloudsmith_api.models.packages_validateupload_dart import PackagesValidateuploadDart +from cloudsmith_api.models.packages_validateupload_deb import PackagesValidateuploadDeb +from cloudsmith_api.models.packages_validateupload_docker import PackagesValidateuploadDocker +from cloudsmith_api.models.packages_validateupload_go import PackagesValidateuploadGo +from cloudsmith_api.models.packages_validateupload_helm import PackagesValidateuploadHelm +from cloudsmith_api.models.packages_validateupload_luarocks import PackagesValidateuploadLuarocks +from cloudsmith_api.models.packages_validateupload_maven import PackagesValidateuploadMaven +from cloudsmith_api.models.packages_validateupload_npm import PackagesValidateuploadNpm +from cloudsmith_api.models.packages_validateupload_nuget import PackagesValidateuploadNuget +from cloudsmith_api.models.packages_validateupload_p2 import PackagesValidateuploadP2 +from cloudsmith_api.models.packages_validateupload_python import PackagesValidateuploadPython +from cloudsmith_api.models.packages_validateupload_raw import PackagesValidateuploadRaw +from cloudsmith_api.models.packages_validateupload_rpm import PackagesValidateuploadRpm +from cloudsmith_api.models.packages_validateupload_ruby import PackagesValidateuploadRuby +from cloudsmith_api.models.packages_validateupload_terraform import PackagesValidateuploadTerraform +from cloudsmith_api.models.packages_validateupload_vagrant import PackagesValidateuploadVagrant +from cloudsmith_api.models.packagesownerrepo_architectures import PackagesownerrepoArchitectures +from cloudsmith_api.models.packagesownerrepo_files import PackagesownerrepoFiles +from cloudsmith_api.models.quota import Quota +from cloudsmith_api.models.quota_history import QuotaHistory +from cloudsmith_api.models.quota_history_history import QuotaHistoryHistory +from cloudsmith_api.models.raw_package_upload import RawPackageUpload +from cloudsmith_api.models.repos_create import ReposCreate +from cloudsmith_api.models.repos_gpg_keys import ReposGpgKeys +from cloudsmith_api.models.repos_partial_update import ReposPartialUpdate +from cloudsmith_api.models.repository import Repository +from cloudsmith_api.models.repository_token import RepositoryToken +from cloudsmith_api.models.repository_token_refresh import RepositoryTokenRefresh +from cloudsmith_api.models.repository_token_sync import RepositoryTokenSync +from cloudsmith_api.models.repository_token_sync_tokens import RepositoryTokenSyncTokens +from cloudsmith_api.models.repository_webhook import RepositoryWebhook +from cloudsmith_api.models.resources_rate_check import ResourcesRateCheck +from cloudsmith_api.models.status import Status +from cloudsmith_api.models.status_basic import StatusBasic +from cloudsmith_api.models.storage_region import StorageRegion +from cloudsmith_api.models.user_auth_token import UserAuthToken +from cloudsmith_api.models.user_brief import UserBrief +from cloudsmith_api.models.user_profile import UserProfile +from cloudsmith_api.models.user_token_create import UserTokenCreate +from cloudsmith_api.models.vagrant_package_upload import VagrantPackageUpload +from cloudsmith_api.models.vulnerability_scan_results import VulnerabilityScanResults +from cloudsmith_api.models.vulnerability_scan_results_list import VulnerabilityScanResultsList +from cloudsmith_api.models.webhooks_create import WebhooksCreate +from cloudsmith_api.models.webhooks_partial_update import WebhooksPartialUpdate +from cloudsmith_api.models.webhooksownerrepo_templates import WebhooksownerrepoTemplates diff --git a/bindings/python/src/cloudsmith_api/api/__init__.py b/bindings/python/src/cloudsmith_api/api/__init__.py new file mode 100644 index 00000000..f90d49a8 --- /dev/null +++ b/bindings/python/src/cloudsmith_api/api/__init__.py @@ -0,0 +1,23 @@ +from __future__ import absolute_import + +# flake8: noqa + +# import apis into api package +from cloudsmith_api.api.badges_api import BadgesApi +from cloudsmith_api.api.distros_api import DistrosApi +from cloudsmith_api.api.entitlements_api import EntitlementsApi +from cloudsmith_api.api.files_api import FilesApi +from cloudsmith_api.api.formats_api import FormatsApi +from cloudsmith_api.api.metrics_api import MetricsApi +from cloudsmith_api.api.namespaces_api import NamespacesApi +from cloudsmith_api.api.orgs_api import OrgsApi +from cloudsmith_api.api.packages_api import PackagesApi +from cloudsmith_api.api.quota_api import QuotaApi +from cloudsmith_api.api.rates_api import RatesApi +from cloudsmith_api.api.repos_api import ReposApi +from cloudsmith_api.api.status_api import StatusApi +from cloudsmith_api.api.storage_regions_api import StorageRegionsApi +from cloudsmith_api.api.user_api import UserApi +from cloudsmith_api.api.users_api import UsersApi +from cloudsmith_api.api.vulnerabilities_api import VulnerabilitiesApi +from cloudsmith_api.api.webhooks_api import WebhooksApi diff --git a/bindings/python/src/cloudsmith_api/apis/badges_api.py b/bindings/python/src/cloudsmith_api/api/badges_api.py similarity index 60% rename from bindings/python/src/cloudsmith_api/apis/badges_api.py rename to bindings/python/src/cloudsmith_api/api/badges_api.py index bf56310f..73693edd 100644 --- a/bindings/python/src/cloudsmith_api/apis/badges_api.py +++ b/bindings/python/src/cloudsmith_api/api/badges_api.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,47 +13,36 @@ from __future__ import absolute_import -import sys -import os -import re +import re # noqa: F401 # python 2 and python 3 compatibility library -from six import iteritems +import six -from ..configuration import Configuration -from ..api_client import ApiClient +from cloudsmith_api.api_client import ApiClient class BadgesApi(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. Ref: https://github.com/swagger-api/swagger-codegen """ def __init__(self, api_client=None): - config = Configuration() - if api_client: - self.api_client = api_client - else: - if not config.api_client: - config.api_client = ApiClient() - self.api_client = config.api_client + if api_client is None: + api_client = ApiClient() + self.api_client = api_client - def badges_version_list(self, owner, repo, package_format, package_name, package_version, package_identifiers, **kwargs): - """ - Get latest package version for a package or package group. - Get latest package version for a package or package group. + def badges_version_list(self, owner, repo, package_format, package_name, package_version, package_identifiers, **kwargs): # noqa: E501 + """Get latest package version for a package or package group. # noqa: E501 + + Get latest package version for a package or package group. # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.badges_version_list(owner, repo, package_format, package_name, package_version, package_identifiers, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.badges_version_list(owner, repo, package_format, package_name, package_version, package_identifiers, async_req=True) + >>> result = thread.get() + + :param async_req bool :param str owner: (required) :param str repo: (required) :param str package_format: (required) @@ -71,31 +60,27 @@ def badges_version_list(self, owner, repo, package_format, package_name, package :param bool shields: If true, a shields response will be generated :param bool show_latest: If true, for latest version badges a '(latest)' suffix is added :param str style: Override the shields.io badge style value. - :return: None + :return: object If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.badges_version_list_with_http_info(owner, repo, package_format, package_name, package_version, package_identifiers, **kwargs) + if kwargs.get('async_req'): + return self.badges_version_list_with_http_info(owner, repo, package_format, package_name, package_version, package_identifiers, **kwargs) # noqa: E501 else: - (data) = self.badges_version_list_with_http_info(owner, repo, package_format, package_name, package_version, package_identifiers, **kwargs) + (data) = self.badges_version_list_with_http_info(owner, repo, package_format, package_name, package_version, package_identifiers, **kwargs) # noqa: E501 return data - def badges_version_list_with_http_info(self, owner, repo, package_format, package_name, package_version, package_identifiers, **kwargs): - """ - Get latest package version for a package or package group. - Get latest package version for a package or package group. + def badges_version_list_with_http_info(self, owner, repo, package_format, package_name, package_version, package_identifiers, **kwargs): # noqa: E501 + """Get latest package version for a package or package group. # noqa: E501 + + Get latest package version for a package or package group. # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.badges_version_list_with_http_info(owner, repo, package_format, package_name, package_version, package_identifiers, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.badges_version_list_with_http_info(owner, repo, package_format, package_name, package_version, package_identifiers, async_req=True) + >>> result = thread.get() + + :param async_req bool :param str owner: (required) :param str repo: (required) :param str package_format: (required) @@ -113,19 +98,19 @@ def badges_version_list_with_http_info(self, owner, repo, package_format, packag :param bool shields: If true, a shields response will be generated :param bool show_latest: If true, for latest version badges a '(latest)' suffix is added :param str style: Override the shields.io badge style value. - :return: None + :return: object If the method is called asynchronously, returns the request thread. """ - all_params = ['owner', 'repo', 'package_format', 'package_name', 'package_version', 'package_identifiers', 'badge_token', 'cache_seconds', 'color', 'label', 'label_color', 'logo_color', 'logo_width', 'render', 'shields', 'show_latest', 'style'] - all_params.append('callback') + all_params = ['owner', 'repo', 'package_format', 'package_name', 'package_version', 'package_identifiers', 'badge_token', 'cache_seconds', 'color', 'label', 'label_color', 'logo_color', 'logo_width', 'render', 'shields', 'show_latest', 'style'] # noqa: E501 + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') params = locals() - for key, val in iteritems(params['kwargs']): + for key, val in six.iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -134,64 +119,69 @@ def badges_version_list_with_http_info(self, owner, repo, package_format, packag params[key] = val del params['kwargs'] # verify the required parameter 'owner' is set - if ('owner' not in params) or (params['owner'] is None): - raise ValueError("Missing the required parameter `owner` when calling `badges_version_list`") + if self.api_client.client_side_validation and ('owner' not in params or + params['owner'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `badges_version_list`") # noqa: E501 # verify the required parameter 'repo' is set - if ('repo' not in params) or (params['repo'] is None): - raise ValueError("Missing the required parameter `repo` when calling `badges_version_list`") + if self.api_client.client_side_validation and ('repo' not in params or + params['repo'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `repo` when calling `badges_version_list`") # noqa: E501 # verify the required parameter 'package_format' is set - if ('package_format' not in params) or (params['package_format'] is None): - raise ValueError("Missing the required parameter `package_format` when calling `badges_version_list`") + if self.api_client.client_side_validation and ('package_format' not in params or + params['package_format'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `package_format` when calling `badges_version_list`") # noqa: E501 # verify the required parameter 'package_name' is set - if ('package_name' not in params) or (params['package_name'] is None): - raise ValueError("Missing the required parameter `package_name` when calling `badges_version_list`") + if self.api_client.client_side_validation and ('package_name' not in params or + params['package_name'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `package_name` when calling `badges_version_list`") # noqa: E501 # verify the required parameter 'package_version' is set - if ('package_version' not in params) or (params['package_version'] is None): - raise ValueError("Missing the required parameter `package_version` when calling `badges_version_list`") + if self.api_client.client_side_validation and ('package_version' not in params or + params['package_version'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `package_version` when calling `badges_version_list`") # noqa: E501 # verify the required parameter 'package_identifiers' is set - if ('package_identifiers' not in params) or (params['package_identifiers'] is None): - raise ValueError("Missing the required parameter `package_identifiers` when calling `badges_version_list`") - + if self.api_client.client_side_validation and ('package_identifiers' not in params or + params['package_identifiers'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `package_identifiers` when calling `badges_version_list`") # noqa: E501 collection_formats = {} path_params = {} if 'owner' in params: - path_params['owner'] = params['owner'] + path_params['owner'] = params['owner'] # noqa: E501 if 'repo' in params: - path_params['repo'] = params['repo'] + path_params['repo'] = params['repo'] # noqa: E501 if 'package_format' in params: - path_params['package_format'] = params['package_format'] + path_params['package_format'] = params['package_format'] # noqa: E501 if 'package_name' in params: - path_params['package_name'] = params['package_name'] + path_params['package_name'] = params['package_name'] # noqa: E501 if 'package_version' in params: - path_params['package_version'] = params['package_version'] + path_params['package_version'] = params['package_version'] # noqa: E501 if 'package_identifiers' in params: - path_params['package_identifiers'] = params['package_identifiers'] + path_params['package_identifiers'] = params['package_identifiers'] # noqa: E501 query_params = [] if 'badge_token' in params: - query_params.append(('badge_token', params['badge_token'])) + query_params.append(('badge_token', params['badge_token'])) # noqa: E501 if 'cache_seconds' in params: - query_params.append(('cacheSeconds', params['cache_seconds'])) + query_params.append(('cacheSeconds', params['cache_seconds'])) # noqa: E501 if 'color' in params: - query_params.append(('color', params['color'])) + query_params.append(('color', params['color'])) # noqa: E501 if 'label' in params: - query_params.append(('label', params['label'])) + query_params.append(('label', params['label'])) # noqa: E501 if 'label_color' in params: - query_params.append(('labelColor', params['label_color'])) + query_params.append(('labelColor', params['label_color'])) # noqa: E501 if 'logo_color' in params: - query_params.append(('logoColor', params['logo_color'])) + query_params.append(('logoColor', params['logo_color'])) # noqa: E501 if 'logo_width' in params: - query_params.append(('logoWidth', params['logo_width'])) + query_params.append(('logoWidth', params['logo_width'])) # noqa: E501 if 'render' in params: - query_params.append(('render', params['render'])) + query_params.append(('render', params['render'])) # noqa: E501 if 'shields' in params: - query_params.append(('shields', params['shields'])) + query_params.append(('shields', params['shields'])) # noqa: E501 if 'show_latest' in params: - query_params.append(('show_latest', params['show_latest'])) + query_params.append(('show_latest', params['show_latest'])) # noqa: E501 if 'style' in params: - query_params.append(('style', params['style'])) + query_params.append(('style', params['style'])) # noqa: E501 header_params = {} @@ -200,19 +190,20 @@ def badges_version_list_with_http_info(self, owner, repo, package_format, packag body_params = None # Authentication setting - auth_settings = ['apikey'] - - return self.api_client.call_api('/badges/version/{owner}/{repo}/{package_format}/{package_name}/{package_version}/{package_identifiers}/', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type=None, - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + auth_settings = ['apikey'] # noqa: E501 + + return self.api_client.call_api( + '/badges/version/{owner}/{repo}/{package_format}/{package_name}/{package_version}/{package_identifiers}/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='object', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/bindings/python/src/cloudsmith_api/api/distros_api.py b/bindings/python/src/cloudsmith_api/api/distros_api.py new file mode 100644 index 00000000..3f7181e5 --- /dev/null +++ b/bindings/python/src/cloudsmith_api/api/distros_api.py @@ -0,0 +1,208 @@ +# coding: utf-8 + +""" + Cloudsmith API + + The API to the Cloudsmith Service # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudsmith.io + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from cloudsmith_api.api_client import ApiClient + + +class DistrosApi(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def distros_list(self, **kwargs): # noqa: E501 + """Get a list of all supported distributions. # noqa: E501 + + Get a list of all supported distributions. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.distros_list(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: list[Distribution] + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.distros_list_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.distros_list_with_http_info(**kwargs) # noqa: E501 + return data + + def distros_list_with_http_info(self, **kwargs): # noqa: E501 + """Get a list of all supported distributions. # noqa: E501 + + Get a list of all supported distributions. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.distros_list_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: list[Distribution] + If the method is called asynchronously, + returns the request thread. + """ + + all_params = [] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method distros_list" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = ['apikey'] # noqa: E501 + + return self.api_client.call_api( + '/distros/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='list[Distribution]', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def distros_read(self, slug, **kwargs): # noqa: E501 + """View for viewing/listing distributions. # noqa: E501 + + View for viewing/listing distributions. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.distros_read(slug, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str slug: (required) + :return: Distribution + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.distros_read_with_http_info(slug, **kwargs) # noqa: E501 + else: + (data) = self.distros_read_with_http_info(slug, **kwargs) # noqa: E501 + return data + + def distros_read_with_http_info(self, slug, **kwargs): # noqa: E501 + """View for viewing/listing distributions. # noqa: E501 + + View for viewing/listing distributions. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.distros_read_with_http_info(slug, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str slug: (required) + :return: Distribution + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['slug'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method distros_read" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'slug' is set + if self.api_client.client_side_validation and ('slug' not in params or + params['slug'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `slug` when calling `distros_read`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'slug' in params: + path_params['slug'] = params['slug'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = ['apikey'] # noqa: E501 + + return self.api_client.call_api( + '/distros/{slug}/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Distribution', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/bindings/python/src/cloudsmith_api/api/entitlements_api.py b/bindings/python/src/cloudsmith_api/api/entitlements_api.py new file mode 100644 index 00000000..68f40c46 --- /dev/null +++ b/bindings/python/src/cloudsmith_api/api/entitlements_api.py @@ -0,0 +1,1148 @@ +# coding: utf-8 + +""" + Cloudsmith API + + The API to the Cloudsmith Service # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudsmith.io + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from cloudsmith_api.api_client import ApiClient + + +class EntitlementsApi(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def entitlements_create(self, owner, repo, **kwargs): # noqa: E501 + """Create a specific entitlement in a repository. # noqa: E501 + + Create a specific entitlement in a repository. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.entitlements_create(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param bool show_tokens: Show entitlement token strings in results + :param EntitlementsCreate data: + :return: RepositoryToken + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.entitlements_create_with_http_info(owner, repo, **kwargs) # noqa: E501 + else: + (data) = self.entitlements_create_with_http_info(owner, repo, **kwargs) # noqa: E501 + return data + + def entitlements_create_with_http_info(self, owner, repo, **kwargs): # noqa: E501 + """Create a specific entitlement in a repository. # noqa: E501 + + Create a specific entitlement in a repository. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.entitlements_create_with_http_info(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param bool show_tokens: Show entitlement token strings in results + :param EntitlementsCreate data: + :return: RepositoryToken + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['owner', 'repo', 'show_tokens', 'data'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method entitlements_create" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'owner' is set + if self.api_client.client_side_validation and ('owner' not in params or + params['owner'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `entitlements_create`") # noqa: E501 + # verify the required parameter 'repo' is set + if self.api_client.client_side_validation and ('repo' not in params or + params['repo'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `repo` when calling `entitlements_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'owner' in params: + path_params['owner'] = params['owner'] # noqa: E501 + if 'repo' in params: + path_params['repo'] = params['repo'] # noqa: E501 + + query_params = [] + if 'show_tokens' in params: + query_params.append(('show_tokens', params['show_tokens'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'data' in params: + body_params = params['data'] + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['apikey'] # noqa: E501 + + return self.api_client.call_api( + '/entitlements/{owner}/{repo}/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='RepositoryToken', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def entitlements_delete(self, owner, repo, identifier, **kwargs): # noqa: E501 + """Delete a specific entitlement in a repository. # noqa: E501 + + Delete a specific entitlement in a repository. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.entitlements_delete(owner, repo, identifier, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param str identifier: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.entitlements_delete_with_http_info(owner, repo, identifier, **kwargs) # noqa: E501 + else: + (data) = self.entitlements_delete_with_http_info(owner, repo, identifier, **kwargs) # noqa: E501 + return data + + def entitlements_delete_with_http_info(self, owner, repo, identifier, **kwargs): # noqa: E501 + """Delete a specific entitlement in a repository. # noqa: E501 + + Delete a specific entitlement in a repository. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.entitlements_delete_with_http_info(owner, repo, identifier, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param str identifier: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['owner', 'repo', 'identifier'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method entitlements_delete" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'owner' is set + if self.api_client.client_side_validation and ('owner' not in params or + params['owner'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `entitlements_delete`") # noqa: E501 + # verify the required parameter 'repo' is set + if self.api_client.client_side_validation and ('repo' not in params or + params['repo'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `repo` when calling `entitlements_delete`") # noqa: E501 + # verify the required parameter 'identifier' is set + if self.api_client.client_side_validation and ('identifier' not in params or + params['identifier'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `identifier` when calling `entitlements_delete`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'owner' in params: + path_params['owner'] = params['owner'] # noqa: E501 + if 'repo' in params: + path_params['repo'] = params['repo'] # noqa: E501 + if 'identifier' in params: + path_params['identifier'] = params['identifier'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = ['apikey'] # noqa: E501 + + return self.api_client.call_api( + '/entitlements/{owner}/{repo}/{identifier}/', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def entitlements_disable(self, owner, repo, identifier, **kwargs): # noqa: E501 + """Disable an entitlement token in a repository. # noqa: E501 + + Disable an entitlement token in a repository. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.entitlements_disable(owner, repo, identifier, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param str identifier: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.entitlements_disable_with_http_info(owner, repo, identifier, **kwargs) # noqa: E501 + else: + (data) = self.entitlements_disable_with_http_info(owner, repo, identifier, **kwargs) # noqa: E501 + return data + + def entitlements_disable_with_http_info(self, owner, repo, identifier, **kwargs): # noqa: E501 + """Disable an entitlement token in a repository. # noqa: E501 + + Disable an entitlement token in a repository. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.entitlements_disable_with_http_info(owner, repo, identifier, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param str identifier: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['owner', 'repo', 'identifier'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method entitlements_disable" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'owner' is set + if self.api_client.client_side_validation and ('owner' not in params or + params['owner'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `entitlements_disable`") # noqa: E501 + # verify the required parameter 'repo' is set + if self.api_client.client_side_validation and ('repo' not in params or + params['repo'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `repo` when calling `entitlements_disable`") # noqa: E501 + # verify the required parameter 'identifier' is set + if self.api_client.client_side_validation and ('identifier' not in params or + params['identifier'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `identifier` when calling `entitlements_disable`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'owner' in params: + path_params['owner'] = params['owner'] # noqa: E501 + if 'repo' in params: + path_params['repo'] = params['repo'] # noqa: E501 + if 'identifier' in params: + path_params['identifier'] = params['identifier'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = ['apikey'] # noqa: E501 + + return self.api_client.call_api( + '/entitlements/{owner}/{repo}/{identifier}/disable/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def entitlements_enable(self, owner, repo, identifier, **kwargs): # noqa: E501 + """Enable an entitlement token in a repository. # noqa: E501 + + Enable an entitlement token in a repository. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.entitlements_enable(owner, repo, identifier, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param str identifier: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.entitlements_enable_with_http_info(owner, repo, identifier, **kwargs) # noqa: E501 + else: + (data) = self.entitlements_enable_with_http_info(owner, repo, identifier, **kwargs) # noqa: E501 + return data + + def entitlements_enable_with_http_info(self, owner, repo, identifier, **kwargs): # noqa: E501 + """Enable an entitlement token in a repository. # noqa: E501 + + Enable an entitlement token in a repository. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.entitlements_enable_with_http_info(owner, repo, identifier, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param str identifier: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['owner', 'repo', 'identifier'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method entitlements_enable" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'owner' is set + if self.api_client.client_side_validation and ('owner' not in params or + params['owner'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `entitlements_enable`") # noqa: E501 + # verify the required parameter 'repo' is set + if self.api_client.client_side_validation and ('repo' not in params or + params['repo'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `repo` when calling `entitlements_enable`") # noqa: E501 + # verify the required parameter 'identifier' is set + if self.api_client.client_side_validation and ('identifier' not in params or + params['identifier'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `identifier` when calling `entitlements_enable`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'owner' in params: + path_params['owner'] = params['owner'] # noqa: E501 + if 'repo' in params: + path_params['repo'] = params['repo'] # noqa: E501 + if 'identifier' in params: + path_params['identifier'] = params['identifier'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = ['apikey'] # noqa: E501 + + return self.api_client.call_api( + '/entitlements/{owner}/{repo}/{identifier}/enable/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def entitlements_list(self, owner, repo, **kwargs): # noqa: E501 + """Get a list of all entitlements in a repository. # noqa: E501 + + Get a list of all entitlements in a repository. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.entitlements_list(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param int page: A page number within the paginated result set. + :param int page_size: Number of results to return per page. + :param bool show_tokens: Show entitlement token strings in results + :return: list[RepositoryToken] + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.entitlements_list_with_http_info(owner, repo, **kwargs) # noqa: E501 + else: + (data) = self.entitlements_list_with_http_info(owner, repo, **kwargs) # noqa: E501 + return data + + def entitlements_list_with_http_info(self, owner, repo, **kwargs): # noqa: E501 + """Get a list of all entitlements in a repository. # noqa: E501 + + Get a list of all entitlements in a repository. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.entitlements_list_with_http_info(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param int page: A page number within the paginated result set. + :param int page_size: Number of results to return per page. + :param bool show_tokens: Show entitlement token strings in results + :return: list[RepositoryToken] + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['owner', 'repo', 'page', 'page_size', 'show_tokens'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method entitlements_list" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'owner' is set + if self.api_client.client_side_validation and ('owner' not in params or + params['owner'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `entitlements_list`") # noqa: E501 + # verify the required parameter 'repo' is set + if self.api_client.client_side_validation and ('repo' not in params or + params['repo'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `repo` when calling `entitlements_list`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'owner' in params: + path_params['owner'] = params['owner'] # noqa: E501 + if 'repo' in params: + path_params['repo'] = params['repo'] # noqa: E501 + + query_params = [] + if 'page' in params: + query_params.append(('page', params['page'])) # noqa: E501 + if 'page_size' in params: + query_params.append(('page_size', params['page_size'])) # noqa: E501 + if 'show_tokens' in params: + query_params.append(('show_tokens', params['show_tokens'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = ['apikey'] # noqa: E501 + + return self.api_client.call_api( + '/entitlements/{owner}/{repo}/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='list[RepositoryToken]', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def entitlements_partial_update(self, owner, repo, identifier, **kwargs): # noqa: E501 + """Update a specific entitlement in a repository. # noqa: E501 + + Update a specific entitlement in a repository. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.entitlements_partial_update(owner, repo, identifier, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param str identifier: (required) + :param bool show_tokens: Show entitlement token strings in results + :param EntitlementsPartialUpdate data: + :return: RepositoryToken + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.entitlements_partial_update_with_http_info(owner, repo, identifier, **kwargs) # noqa: E501 + else: + (data) = self.entitlements_partial_update_with_http_info(owner, repo, identifier, **kwargs) # noqa: E501 + return data + + def entitlements_partial_update_with_http_info(self, owner, repo, identifier, **kwargs): # noqa: E501 + """Update a specific entitlement in a repository. # noqa: E501 + + Update a specific entitlement in a repository. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.entitlements_partial_update_with_http_info(owner, repo, identifier, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param str identifier: (required) + :param bool show_tokens: Show entitlement token strings in results + :param EntitlementsPartialUpdate data: + :return: RepositoryToken + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['owner', 'repo', 'identifier', 'show_tokens', 'data'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method entitlements_partial_update" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'owner' is set + if self.api_client.client_side_validation and ('owner' not in params or + params['owner'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `entitlements_partial_update`") # noqa: E501 + # verify the required parameter 'repo' is set + if self.api_client.client_side_validation and ('repo' not in params or + params['repo'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `repo` when calling `entitlements_partial_update`") # noqa: E501 + # verify the required parameter 'identifier' is set + if self.api_client.client_side_validation and ('identifier' not in params or + params['identifier'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `identifier` when calling `entitlements_partial_update`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'owner' in params: + path_params['owner'] = params['owner'] # noqa: E501 + if 'repo' in params: + path_params['repo'] = params['repo'] # noqa: E501 + if 'identifier' in params: + path_params['identifier'] = params['identifier'] # noqa: E501 + + query_params = [] + if 'show_tokens' in params: + query_params.append(('show_tokens', params['show_tokens'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'data' in params: + body_params = params['data'] + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['apikey'] # noqa: E501 + + return self.api_client.call_api( + '/entitlements/{owner}/{repo}/{identifier}/', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='RepositoryToken', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def entitlements_read(self, owner, repo, identifier, **kwargs): # noqa: E501 + """Get a specific entitlement in a repository. # noqa: E501 + + Get a specific entitlement in a repository. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.entitlements_read(owner, repo, identifier, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param str identifier: (required) + :param bool show_tokens: Show entitlement token strings in results + :return: RepositoryToken + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.entitlements_read_with_http_info(owner, repo, identifier, **kwargs) # noqa: E501 + else: + (data) = self.entitlements_read_with_http_info(owner, repo, identifier, **kwargs) # noqa: E501 + return data + + def entitlements_read_with_http_info(self, owner, repo, identifier, **kwargs): # noqa: E501 + """Get a specific entitlement in a repository. # noqa: E501 + + Get a specific entitlement in a repository. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.entitlements_read_with_http_info(owner, repo, identifier, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param str identifier: (required) + :param bool show_tokens: Show entitlement token strings in results + :return: RepositoryToken + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['owner', 'repo', 'identifier', 'show_tokens'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method entitlements_read" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'owner' is set + if self.api_client.client_side_validation and ('owner' not in params or + params['owner'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `entitlements_read`") # noqa: E501 + # verify the required parameter 'repo' is set + if self.api_client.client_side_validation and ('repo' not in params or + params['repo'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `repo` when calling `entitlements_read`") # noqa: E501 + # verify the required parameter 'identifier' is set + if self.api_client.client_side_validation and ('identifier' not in params or + params['identifier'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `identifier` when calling `entitlements_read`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'owner' in params: + path_params['owner'] = params['owner'] # noqa: E501 + if 'repo' in params: + path_params['repo'] = params['repo'] # noqa: E501 + if 'identifier' in params: + path_params['identifier'] = params['identifier'] # noqa: E501 + + query_params = [] + if 'show_tokens' in params: + query_params.append(('show_tokens', params['show_tokens'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = ['apikey'] # noqa: E501 + + return self.api_client.call_api( + '/entitlements/{owner}/{repo}/{identifier}/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='RepositoryToken', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def entitlements_refresh(self, owner, repo, identifier, **kwargs): # noqa: E501 + """Refresh an entitlement token in a repository. # noqa: E501 + + Refresh an entitlement token in a repository. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.entitlements_refresh(owner, repo, identifier, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param str identifier: (required) + :param bool show_tokens: Show entitlement token strings in results + :param EntitlementsRefresh data: + :return: RepositoryTokenRefresh + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.entitlements_refresh_with_http_info(owner, repo, identifier, **kwargs) # noqa: E501 + else: + (data) = self.entitlements_refresh_with_http_info(owner, repo, identifier, **kwargs) # noqa: E501 + return data + + def entitlements_refresh_with_http_info(self, owner, repo, identifier, **kwargs): # noqa: E501 + """Refresh an entitlement token in a repository. # noqa: E501 + + Refresh an entitlement token in a repository. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.entitlements_refresh_with_http_info(owner, repo, identifier, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param str identifier: (required) + :param bool show_tokens: Show entitlement token strings in results + :param EntitlementsRefresh data: + :return: RepositoryTokenRefresh + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['owner', 'repo', 'identifier', 'show_tokens', 'data'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method entitlements_refresh" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'owner' is set + if self.api_client.client_side_validation and ('owner' not in params or + params['owner'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `entitlements_refresh`") # noqa: E501 + # verify the required parameter 'repo' is set + if self.api_client.client_side_validation and ('repo' not in params or + params['repo'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `repo` when calling `entitlements_refresh`") # noqa: E501 + # verify the required parameter 'identifier' is set + if self.api_client.client_side_validation and ('identifier' not in params or + params['identifier'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `identifier` when calling `entitlements_refresh`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'owner' in params: + path_params['owner'] = params['owner'] # noqa: E501 + if 'repo' in params: + path_params['repo'] = params['repo'] # noqa: E501 + if 'identifier' in params: + path_params['identifier'] = params['identifier'] # noqa: E501 + + query_params = [] + if 'show_tokens' in params: + query_params.append(('show_tokens', params['show_tokens'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'data' in params: + body_params = params['data'] + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['apikey'] # noqa: E501 + + return self.api_client.call_api( + '/entitlements/{owner}/{repo}/{identifier}/refresh/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='RepositoryTokenRefresh', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def entitlements_reset(self, owner, repo, identifier, **kwargs): # noqa: E501 + """Reset the statistics for an entitlement token in a repository. # noqa: E501 + + Reset the statistics for an entitlement token in a repository. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.entitlements_reset(owner, repo, identifier, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param str identifier: (required) + :param bool show_tokens: Show entitlement token strings in results + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.entitlements_reset_with_http_info(owner, repo, identifier, **kwargs) # noqa: E501 + else: + (data) = self.entitlements_reset_with_http_info(owner, repo, identifier, **kwargs) # noqa: E501 + return data + + def entitlements_reset_with_http_info(self, owner, repo, identifier, **kwargs): # noqa: E501 + """Reset the statistics for an entitlement token in a repository. # noqa: E501 + + Reset the statistics for an entitlement token in a repository. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.entitlements_reset_with_http_info(owner, repo, identifier, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param str identifier: (required) + :param bool show_tokens: Show entitlement token strings in results + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['owner', 'repo', 'identifier', 'show_tokens'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method entitlements_reset" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'owner' is set + if self.api_client.client_side_validation and ('owner' not in params or + params['owner'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `entitlements_reset`") # noqa: E501 + # verify the required parameter 'repo' is set + if self.api_client.client_side_validation and ('repo' not in params or + params['repo'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `repo` when calling `entitlements_reset`") # noqa: E501 + # verify the required parameter 'identifier' is set + if self.api_client.client_side_validation and ('identifier' not in params or + params['identifier'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `identifier` when calling `entitlements_reset`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'owner' in params: + path_params['owner'] = params['owner'] # noqa: E501 + if 'repo' in params: + path_params['repo'] = params['repo'] # noqa: E501 + if 'identifier' in params: + path_params['identifier'] = params['identifier'] # noqa: E501 + + query_params = [] + if 'show_tokens' in params: + query_params.append(('show_tokens', params['show_tokens'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = ['apikey'] # noqa: E501 + + return self.api_client.call_api( + '/entitlements/{owner}/{repo}/{identifier}/reset/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def entitlements_sync(self, owner, repo, **kwargs): # noqa: E501 + """Synchronise tokens from a source repository. # noqa: E501 + + Synchronise tokens from a source repository. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.entitlements_sync(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param bool show_tokens: Show entitlement token strings in results + :param EntitlementsSync data: + :return: RepositoryTokenSync + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.entitlements_sync_with_http_info(owner, repo, **kwargs) # noqa: E501 + else: + (data) = self.entitlements_sync_with_http_info(owner, repo, **kwargs) # noqa: E501 + return data + + def entitlements_sync_with_http_info(self, owner, repo, **kwargs): # noqa: E501 + """Synchronise tokens from a source repository. # noqa: E501 + + Synchronise tokens from a source repository. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.entitlements_sync_with_http_info(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param bool show_tokens: Show entitlement token strings in results + :param EntitlementsSync data: + :return: RepositoryTokenSync + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['owner', 'repo', 'show_tokens', 'data'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method entitlements_sync" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'owner' is set + if self.api_client.client_side_validation and ('owner' not in params or + params['owner'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `entitlements_sync`") # noqa: E501 + # verify the required parameter 'repo' is set + if self.api_client.client_side_validation and ('repo' not in params or + params['repo'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `repo` when calling `entitlements_sync`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'owner' in params: + path_params['owner'] = params['owner'] # noqa: E501 + if 'repo' in params: + path_params['repo'] = params['repo'] # noqa: E501 + + query_params = [] + if 'show_tokens' in params: + query_params.append(('show_tokens', params['show_tokens'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'data' in params: + body_params = params['data'] + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['apikey'] # noqa: E501 + + return self.api_client.call_api( + '/entitlements/{owner}/{repo}/sync/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='RepositoryTokenSync', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/bindings/python/src/cloudsmith_api/api/files_api.py b/bindings/python/src/cloudsmith_api/api/files_api.py new file mode 100644 index 00000000..5126fba1 --- /dev/null +++ b/bindings/python/src/cloudsmith_api/api/files_api.py @@ -0,0 +1,585 @@ +# coding: utf-8 + +""" + Cloudsmith API + + The API to the Cloudsmith Service # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudsmith.io + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from cloudsmith_api.api_client import ApiClient + + +class FilesApi(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def files_abort(self, owner, repo, identifier, **kwargs): # noqa: E501 + """Abort a multipart file upload. # noqa: E501 + + Abort a multipart file upload. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.files_abort(owner, repo, identifier, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param str identifier: (required) + :param FilesAbort data: + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.files_abort_with_http_info(owner, repo, identifier, **kwargs) # noqa: E501 + else: + (data) = self.files_abort_with_http_info(owner, repo, identifier, **kwargs) # noqa: E501 + return data + + def files_abort_with_http_info(self, owner, repo, identifier, **kwargs): # noqa: E501 + """Abort a multipart file upload. # noqa: E501 + + Abort a multipart file upload. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.files_abort_with_http_info(owner, repo, identifier, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param str identifier: (required) + :param FilesAbort data: + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['owner', 'repo', 'identifier', 'data'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method files_abort" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'owner' is set + if self.api_client.client_side_validation and ('owner' not in params or + params['owner'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `files_abort`") # noqa: E501 + # verify the required parameter 'repo' is set + if self.api_client.client_side_validation and ('repo' not in params or + params['repo'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `repo` when calling `files_abort`") # noqa: E501 + # verify the required parameter 'identifier' is set + if self.api_client.client_side_validation and ('identifier' not in params or + params['identifier'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `identifier` when calling `files_abort`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'owner' in params: + path_params['owner'] = params['owner'] # noqa: E501 + if 'repo' in params: + path_params['repo'] = params['repo'] # noqa: E501 + if 'identifier' in params: + path_params['identifier'] = params['identifier'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'data' in params: + body_params = params['data'] + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['apikey'] # noqa: E501 + + return self.api_client.call_api( + '/files/{owner}/{repo}/{identifier}/abort/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def files_complete(self, owner, repo, identifier, **kwargs): # noqa: E501 + """Complete a multipart file upload. # noqa: E501 + + Complete a multipart file upload. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.files_complete(owner, repo, identifier, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param str identifier: (required) + :param FilesComplete data: + :return: PackageFileUpload + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.files_complete_with_http_info(owner, repo, identifier, **kwargs) # noqa: E501 + else: + (data) = self.files_complete_with_http_info(owner, repo, identifier, **kwargs) # noqa: E501 + return data + + def files_complete_with_http_info(self, owner, repo, identifier, **kwargs): # noqa: E501 + """Complete a multipart file upload. # noqa: E501 + + Complete a multipart file upload. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.files_complete_with_http_info(owner, repo, identifier, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param str identifier: (required) + :param FilesComplete data: + :return: PackageFileUpload + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['owner', 'repo', 'identifier', 'data'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method files_complete" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'owner' is set + if self.api_client.client_side_validation and ('owner' not in params or + params['owner'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `files_complete`") # noqa: E501 + # verify the required parameter 'repo' is set + if self.api_client.client_side_validation and ('repo' not in params or + params['repo'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `repo` when calling `files_complete`") # noqa: E501 + # verify the required parameter 'identifier' is set + if self.api_client.client_side_validation and ('identifier' not in params or + params['identifier'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `identifier` when calling `files_complete`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'owner' in params: + path_params['owner'] = params['owner'] # noqa: E501 + if 'repo' in params: + path_params['repo'] = params['repo'] # noqa: E501 + if 'identifier' in params: + path_params['identifier'] = params['identifier'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'data' in params: + body_params = params['data'] + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['apikey'] # noqa: E501 + + return self.api_client.call_api( + '/files/{owner}/{repo}/{identifier}/complete/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='PackageFileUpload', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def files_create(self, owner, repo, **kwargs): # noqa: E501 + """Request URL(s) to upload new package file upload(s) to. # noqa: E501 + + Request URL(s) to upload new package file upload(s) to. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.files_create(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param FilesCreate data: + :return: PackageFileUpload + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.files_create_with_http_info(owner, repo, **kwargs) # noqa: E501 + else: + (data) = self.files_create_with_http_info(owner, repo, **kwargs) # noqa: E501 + return data + + def files_create_with_http_info(self, owner, repo, **kwargs): # noqa: E501 + """Request URL(s) to upload new package file upload(s) to. # noqa: E501 + + Request URL(s) to upload new package file upload(s) to. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.files_create_with_http_info(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param FilesCreate data: + :return: PackageFileUpload + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['owner', 'repo', 'data'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method files_create" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'owner' is set + if self.api_client.client_side_validation and ('owner' not in params or + params['owner'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `files_create`") # noqa: E501 + # verify the required parameter 'repo' is set + if self.api_client.client_side_validation and ('repo' not in params or + params['repo'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `repo` when calling `files_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'owner' in params: + path_params['owner'] = params['owner'] # noqa: E501 + if 'repo' in params: + path_params['repo'] = params['repo'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'data' in params: + body_params = params['data'] + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['apikey'] # noqa: E501 + + return self.api_client.call_api( + '/files/{owner}/{repo}/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='PackageFileUpload', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def files_info(self, owner, repo, identifier, **kwargs): # noqa: E501 + """Get upload information for a multipart file upload. # noqa: E501 + + Get upload information for a multipart file upload. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.files_info(owner, repo, identifier, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param str identifier: (required) + :return: PackageFilePartsUpload + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.files_info_with_http_info(owner, repo, identifier, **kwargs) # noqa: E501 + else: + (data) = self.files_info_with_http_info(owner, repo, identifier, **kwargs) # noqa: E501 + return data + + def files_info_with_http_info(self, owner, repo, identifier, **kwargs): # noqa: E501 + """Get upload information for a multipart file upload. # noqa: E501 + + Get upload information for a multipart file upload. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.files_info_with_http_info(owner, repo, identifier, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param str identifier: (required) + :return: PackageFilePartsUpload + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['owner', 'repo', 'identifier'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method files_info" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'owner' is set + if self.api_client.client_side_validation and ('owner' not in params or + params['owner'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `files_info`") # noqa: E501 + # verify the required parameter 'repo' is set + if self.api_client.client_side_validation and ('repo' not in params or + params['repo'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `repo` when calling `files_info`") # noqa: E501 + # verify the required parameter 'identifier' is set + if self.api_client.client_side_validation and ('identifier' not in params or + params['identifier'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `identifier` when calling `files_info`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'owner' in params: + path_params['owner'] = params['owner'] # noqa: E501 + if 'repo' in params: + path_params['repo'] = params['repo'] # noqa: E501 + if 'identifier' in params: + path_params['identifier'] = params['identifier'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = ['apikey'] # noqa: E501 + + return self.api_client.call_api( + '/files/{owner}/{repo}/{identifier}/info/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='PackageFilePartsUpload', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def files_validate(self, owner, repo, **kwargs): # noqa: E501 + """Validate parameters used for create. # noqa: E501 + + Validate parameters used for create. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.files_validate(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param FilesValidate data: + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.files_validate_with_http_info(owner, repo, **kwargs) # noqa: E501 + else: + (data) = self.files_validate_with_http_info(owner, repo, **kwargs) # noqa: E501 + return data + + def files_validate_with_http_info(self, owner, repo, **kwargs): # noqa: E501 + """Validate parameters used for create. # noqa: E501 + + Validate parameters used for create. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.files_validate_with_http_info(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param FilesValidate data: + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['owner', 'repo', 'data'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method files_validate" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'owner' is set + if self.api_client.client_side_validation and ('owner' not in params or + params['owner'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `files_validate`") # noqa: E501 + # verify the required parameter 'repo' is set + if self.api_client.client_side_validation and ('repo' not in params or + params['repo'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `repo` when calling `files_validate`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'owner' in params: + path_params['owner'] = params['owner'] # noqa: E501 + if 'repo' in params: + path_params['repo'] = params['repo'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'data' in params: + body_params = params['data'] + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['apikey'] # noqa: E501 + + return self.api_client.call_api( + '/files/{owner}/{repo}/validate/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/bindings/python/src/cloudsmith_api/api/formats_api.py b/bindings/python/src/cloudsmith_api/api/formats_api.py new file mode 100644 index 00000000..91b2a7d9 --- /dev/null +++ b/bindings/python/src/cloudsmith_api/api/formats_api.py @@ -0,0 +1,208 @@ +# coding: utf-8 + +""" + Cloudsmith API + + The API to the Cloudsmith Service # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudsmith.io + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from cloudsmith_api.api_client import ApiClient + + +class FormatsApi(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def formats_list(self, **kwargs): # noqa: E501 + """Get a list of all supported package formats. # noqa: E501 + + Get a list of all supported package formats. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.formats_list(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: list[Format] + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.formats_list_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.formats_list_with_http_info(**kwargs) # noqa: E501 + return data + + def formats_list_with_http_info(self, **kwargs): # noqa: E501 + """Get a list of all supported package formats. # noqa: E501 + + Get a list of all supported package formats. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.formats_list_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: list[Format] + If the method is called asynchronously, + returns the request thread. + """ + + all_params = [] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method formats_list" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = ['apikey'] # noqa: E501 + + return self.api_client.call_api( + '/formats/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='list[Format]', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def formats_read(self, slug, **kwargs): # noqa: E501 + """Get a specific supported package format. # noqa: E501 + + Get a specific supported package format. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.formats_read(slug, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str slug: (required) + :return: Format + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.formats_read_with_http_info(slug, **kwargs) # noqa: E501 + else: + (data) = self.formats_read_with_http_info(slug, **kwargs) # noqa: E501 + return data + + def formats_read_with_http_info(self, slug, **kwargs): # noqa: E501 + """Get a specific supported package format. # noqa: E501 + + Get a specific supported package format. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.formats_read_with_http_info(slug, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str slug: (required) + :return: Format + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['slug'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method formats_read" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'slug' is set + if self.api_client.client_side_validation and ('slug' not in params or + params['slug'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `slug` when calling `formats_read`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'slug' in params: + path_params['slug'] = params['slug'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = ['apikey'] # noqa: E501 + + return self.api_client.call_api( + '/formats/{slug}/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Format', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/bindings/python/src/cloudsmith_api/apis/metrics_api.py b/bindings/python/src/cloudsmith_api/api/metrics_api.py similarity index 55% rename from bindings/python/src/cloudsmith_api/apis/metrics_api.py rename to bindings/python/src/cloudsmith_api/api/metrics_api.py index 5986ed98..9de05de0 100644 --- a/bindings/python/src/cloudsmith_api/apis/metrics_api.py +++ b/bindings/python/src/cloudsmith_api/api/metrics_api.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,47 +13,36 @@ from __future__ import absolute_import -import sys -import os -import re +import re # noqa: F401 # python 2 and python 3 compatibility library -from six import iteritems +import six -from ..configuration import Configuration -from ..api_client import ApiClient +from cloudsmith_api.api_client import ApiClient class MetricsApi(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. Ref: https://github.com/swagger-api/swagger-codegen """ def __init__(self, api_client=None): - config = Configuration() - if api_client: - self.api_client = api_client - else: - if not config.api_client: - config.api_client = ApiClient() - self.api_client = config.api_client + if api_client is None: + api_client = ApiClient() + self.api_client = api_client - def metrics_entitlements_list(self, owner, **kwargs): - """ - View for listing entitlement token metrics, across an account. - View for listing entitlement token metrics, across an account. + def metrics_entitlements_list(self, owner, **kwargs): # noqa: E501 + """View for listing entitlement token metrics, across an account. # noqa: E501 + + View for listing entitlement token metrics, across an account. # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.metrics_entitlements_list(owner, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.metrics_entitlements_list(owner, async_req=True) + >>> result = thread.get() + + :param async_req bool :param str owner: (required) :param int page: A page number within the paginated result set. :param int page_size: Number of results to return per page. @@ -65,26 +54,22 @@ def metrics_entitlements_list(self, owner, **kwargs): returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.metrics_entitlements_list_with_http_info(owner, **kwargs) + if kwargs.get('async_req'): + return self.metrics_entitlements_list_with_http_info(owner, **kwargs) # noqa: E501 else: - (data) = self.metrics_entitlements_list_with_http_info(owner, **kwargs) + (data) = self.metrics_entitlements_list_with_http_info(owner, **kwargs) # noqa: E501 return data - def metrics_entitlements_list_with_http_info(self, owner, **kwargs): - """ - View for listing entitlement token metrics, across an account. - View for listing entitlement token metrics, across an account. + def metrics_entitlements_list_with_http_info(self, owner, **kwargs): # noqa: E501 + """View for listing entitlement token metrics, across an account. # noqa: E501 + + View for listing entitlement token metrics, across an account. # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.metrics_entitlements_list_with_http_info(owner, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.metrics_entitlements_list_with_http_info(owner, async_req=True) + >>> result = thread.get() + + :param async_req bool :param str owner: (required) :param int page: A page number within the paginated result set. :param int page_size: Number of results to return per page. @@ -96,14 +81,14 @@ def metrics_entitlements_list_with_http_info(self, owner, **kwargs): returns the request thread. """ - all_params = ['owner', 'page', 'page_size', 'finish', 'start', 'tokens'] - all_params.append('callback') + all_params = ['owner', 'page', 'page_size', 'finish', 'start', 'tokens'] # noqa: E501 + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') params = locals() - for key, val in iteritems(params['kwargs']): + for key, val in six.iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -112,27 +97,27 @@ def metrics_entitlements_list_with_http_info(self, owner, **kwargs): params[key] = val del params['kwargs'] # verify the required parameter 'owner' is set - if ('owner' not in params) or (params['owner'] is None): - raise ValueError("Missing the required parameter `owner` when calling `metrics_entitlements_list`") - + if self.api_client.client_side_validation and ('owner' not in params or + params['owner'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `metrics_entitlements_list`") # noqa: E501 collection_formats = {} path_params = {} if 'owner' in params: - path_params['owner'] = params['owner'] + path_params['owner'] = params['owner'] # noqa: E501 query_params = [] if 'page' in params: - query_params.append(('page', params['page'])) + query_params.append(('page', params['page'])) # noqa: E501 if 'page_size' in params: - query_params.append(('page_size', params['page_size'])) + query_params.append(('page_size', params['page_size'])) # noqa: E501 if 'finish' in params: - query_params.append(('finish', params['finish'])) + query_params.append(('finish', params['finish'])) # noqa: E501 if 'start' in params: - query_params.append(('start', params['start'])) + query_params.append(('start', params['start'])) # noqa: E501 if 'tokens' in params: - query_params.append(('tokens', params['tokens'])) + query_params.append(('tokens', params['tokens'])) # noqa: E501 header_params = {} @@ -141,37 +126,34 @@ def metrics_entitlements_list_with_http_info(self, owner, **kwargs): body_params = None # Authentication setting - auth_settings = ['apikey'] - - return self.api_client.call_api('/metrics/entitlements/{owner}/', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='EntitlementUsageMetrics', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def metrics_entitlements_list0(self, owner, repo, **kwargs): - """ - View for listing entitlement token metrics, for a repository. - View for listing entitlement token metrics, for a repository. + auth_settings = ['apikey'] # noqa: E501 + + return self.api_client.call_api( + '/metrics/entitlements/{owner}/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='EntitlementUsageMetrics', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def metrics_entitlements_list0(self, owner, repo, **kwargs): # noqa: E501 + """View for listing entitlement token metrics, for a repository. # noqa: E501 + + View for listing entitlement token metrics, for a repository. # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.metrics_entitlements_list0(owner, repo, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.metrics_entitlements_list0(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool :param str owner: (required) :param str repo: (required) :param int page: A page number within the paginated result set. @@ -184,26 +166,22 @@ def metrics_entitlements_list0(self, owner, repo, **kwargs): returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.metrics_entitlements_list0_with_http_info(owner, repo, **kwargs) + if kwargs.get('async_req'): + return self.metrics_entitlements_list0_with_http_info(owner, repo, **kwargs) # noqa: E501 else: - (data) = self.metrics_entitlements_list0_with_http_info(owner, repo, **kwargs) + (data) = self.metrics_entitlements_list0_with_http_info(owner, repo, **kwargs) # noqa: E501 return data - def metrics_entitlements_list0_with_http_info(self, owner, repo, **kwargs): - """ - View for listing entitlement token metrics, for a repository. - View for listing entitlement token metrics, for a repository. + def metrics_entitlements_list0_with_http_info(self, owner, repo, **kwargs): # noqa: E501 + """View for listing entitlement token metrics, for a repository. # noqa: E501 + + View for listing entitlement token metrics, for a repository. # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.metrics_entitlements_list0_with_http_info(owner, repo, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.metrics_entitlements_list0_with_http_info(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool :param str owner: (required) :param str repo: (required) :param int page: A page number within the paginated result set. @@ -216,14 +194,14 @@ def metrics_entitlements_list0_with_http_info(self, owner, repo, **kwargs): returns the request thread. """ - all_params = ['owner', 'repo', 'page', 'page_size', 'finish', 'start', 'tokens'] - all_params.append('callback') + all_params = ['owner', 'repo', 'page', 'page_size', 'finish', 'start', 'tokens'] # noqa: E501 + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') params = locals() - for key, val in iteritems(params['kwargs']): + for key, val in six.iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -232,32 +210,33 @@ def metrics_entitlements_list0_with_http_info(self, owner, repo, **kwargs): params[key] = val del params['kwargs'] # verify the required parameter 'owner' is set - if ('owner' not in params) or (params['owner'] is None): - raise ValueError("Missing the required parameter `owner` when calling `metrics_entitlements_list0`") + if self.api_client.client_side_validation and ('owner' not in params or + params['owner'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `metrics_entitlements_list0`") # noqa: E501 # verify the required parameter 'repo' is set - if ('repo' not in params) or (params['repo'] is None): - raise ValueError("Missing the required parameter `repo` when calling `metrics_entitlements_list0`") - + if self.api_client.client_side_validation and ('repo' not in params or + params['repo'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `repo` when calling `metrics_entitlements_list0`") # noqa: E501 collection_formats = {} path_params = {} if 'owner' in params: - path_params['owner'] = params['owner'] + path_params['owner'] = params['owner'] # noqa: E501 if 'repo' in params: - path_params['repo'] = params['repo'] + path_params['repo'] = params['repo'] # noqa: E501 query_params = [] if 'page' in params: - query_params.append(('page', params['page'])) + query_params.append(('page', params['page'])) # noqa: E501 if 'page_size' in params: - query_params.append(('page_size', params['page_size'])) + query_params.append(('page_size', params['page_size'])) # noqa: E501 if 'finish' in params: - query_params.append(('finish', params['finish'])) + query_params.append(('finish', params['finish'])) # noqa: E501 if 'start' in params: - query_params.append(('start', params['start'])) + query_params.append(('start', params['start'])) # noqa: E501 if 'tokens' in params: - query_params.append(('tokens', params['tokens'])) + query_params.append(('tokens', params['tokens'])) # noqa: E501 header_params = {} @@ -266,37 +245,34 @@ def metrics_entitlements_list0_with_http_info(self, owner, repo, **kwargs): body_params = None # Authentication setting - auth_settings = ['apikey'] - - return self.api_client.call_api('/metrics/entitlements/{owner}/{repo}/', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='EntitlementUsageMetrics', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def metrics_packages_list(self, owner, repo, **kwargs): - """ - View for listing package usage metrics, for a repository. - View for listing package usage metrics, for a repository. + auth_settings = ['apikey'] # noqa: E501 + + return self.api_client.call_api( + '/metrics/entitlements/{owner}/{repo}/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='EntitlementUsageMetrics', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def metrics_packages_list(self, owner, repo, **kwargs): # noqa: E501 + """View for listing package usage metrics, for a repository. # noqa: E501 + + View for listing package usage metrics, for a repository. # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.metrics_packages_list(owner, repo, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.metrics_packages_list(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool :param str owner: (required) :param str repo: (required) :param int page: A page number within the paginated result set. @@ -309,26 +285,22 @@ def metrics_packages_list(self, owner, repo, **kwargs): returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.metrics_packages_list_with_http_info(owner, repo, **kwargs) + if kwargs.get('async_req'): + return self.metrics_packages_list_with_http_info(owner, repo, **kwargs) # noqa: E501 else: - (data) = self.metrics_packages_list_with_http_info(owner, repo, **kwargs) + (data) = self.metrics_packages_list_with_http_info(owner, repo, **kwargs) # noqa: E501 return data - def metrics_packages_list_with_http_info(self, owner, repo, **kwargs): - """ - View for listing package usage metrics, for a repository. - View for listing package usage metrics, for a repository. + def metrics_packages_list_with_http_info(self, owner, repo, **kwargs): # noqa: E501 + """View for listing package usage metrics, for a repository. # noqa: E501 + + View for listing package usage metrics, for a repository. # noqa: E501 This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.metrics_packages_list_with_http_info(owner, repo, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) + asynchronous HTTP request, please pass async_req=True + >>> thread = api.metrics_packages_list_with_http_info(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool :param str owner: (required) :param str repo: (required) :param int page: A page number within the paginated result set. @@ -341,14 +313,14 @@ def metrics_packages_list_with_http_info(self, owner, repo, **kwargs): returns the request thread. """ - all_params = ['owner', 'repo', 'page', 'page_size', 'finish', 'packages', 'start'] - all_params.append('callback') + all_params = ['owner', 'repo', 'page', 'page_size', 'finish', 'packages', 'start'] # noqa: E501 + all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') params = locals() - for key, val in iteritems(params['kwargs']): + for key, val in six.iteritems(params['kwargs']): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" @@ -357,32 +329,33 @@ def metrics_packages_list_with_http_info(self, owner, repo, **kwargs): params[key] = val del params['kwargs'] # verify the required parameter 'owner' is set - if ('owner' not in params) or (params['owner'] is None): - raise ValueError("Missing the required parameter `owner` when calling `metrics_packages_list`") + if self.api_client.client_side_validation and ('owner' not in params or + params['owner'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `metrics_packages_list`") # noqa: E501 # verify the required parameter 'repo' is set - if ('repo' not in params) or (params['repo'] is None): - raise ValueError("Missing the required parameter `repo` when calling `metrics_packages_list`") - + if self.api_client.client_side_validation and ('repo' not in params or + params['repo'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `repo` when calling `metrics_packages_list`") # noqa: E501 collection_formats = {} path_params = {} if 'owner' in params: - path_params['owner'] = params['owner'] + path_params['owner'] = params['owner'] # noqa: E501 if 'repo' in params: - path_params['repo'] = params['repo'] + path_params['repo'] = params['repo'] # noqa: E501 query_params = [] if 'page' in params: - query_params.append(('page', params['page'])) + query_params.append(('page', params['page'])) # noqa: E501 if 'page_size' in params: - query_params.append(('page_size', params['page_size'])) + query_params.append(('page_size', params['page_size'])) # noqa: E501 if 'finish' in params: - query_params.append(('finish', params['finish'])) + query_params.append(('finish', params['finish'])) # noqa: E501 if 'packages' in params: - query_params.append(('packages', params['packages'])) + query_params.append(('packages', params['packages'])) # noqa: E501 if 'start' in params: - query_params.append(('start', params['start'])) + query_params.append(('start', params['start'])) # noqa: E501 header_params = {} @@ -391,19 +364,20 @@ def metrics_packages_list_with_http_info(self, owner, repo, **kwargs): body_params = None # Authentication setting - auth_settings = ['apikey'] - - return self.api_client.call_api('/metrics/packages/{owner}/{repo}/', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='PackageUsageMetrics', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + auth_settings = ['apikey'] # noqa: E501 + + return self.api_client.call_api( + '/metrics/packages/{owner}/{repo}/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='PackageUsageMetrics', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/bindings/python/src/cloudsmith_api/api/namespaces_api.py b/bindings/python/src/cloudsmith_api/api/namespaces_api.py new file mode 100644 index 00000000..7183d7ea --- /dev/null +++ b/bindings/python/src/cloudsmith_api/api/namespaces_api.py @@ -0,0 +1,216 @@ +# coding: utf-8 + +""" + Cloudsmith API + + The API to the Cloudsmith Service # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudsmith.io + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from cloudsmith_api.api_client import ApiClient + + +class NamespacesApi(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def namespaces_list(self, **kwargs): # noqa: E501 + """Get a list of all namespaces the user belongs to. # noqa: E501 + + Get a list of all namespaces the user belongs to. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.namespaces_list(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param int page: A page number within the paginated result set. + :param int page_size: Number of results to return per page. + :return: list[Namespace] + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.namespaces_list_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.namespaces_list_with_http_info(**kwargs) # noqa: E501 + return data + + def namespaces_list_with_http_info(self, **kwargs): # noqa: E501 + """Get a list of all namespaces the user belongs to. # noqa: E501 + + Get a list of all namespaces the user belongs to. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.namespaces_list_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param int page: A page number within the paginated result set. + :param int page_size: Number of results to return per page. + :return: list[Namespace] + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['page', 'page_size'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method namespaces_list" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'page' in params: + query_params.append(('page', params['page'])) # noqa: E501 + if 'page_size' in params: + query_params.append(('page_size', params['page_size'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = ['apikey'] # noqa: E501 + + return self.api_client.call_api( + '/namespaces/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='list[Namespace]', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def namespaces_read(self, slug, **kwargs): # noqa: E501 + """Views for working with namespaces. # noqa: E501 + + Views for working with namespaces. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.namespaces_read(slug, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str slug: (required) + :return: Namespace + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.namespaces_read_with_http_info(slug, **kwargs) # noqa: E501 + else: + (data) = self.namespaces_read_with_http_info(slug, **kwargs) # noqa: E501 + return data + + def namespaces_read_with_http_info(self, slug, **kwargs): # noqa: E501 + """Views for working with namespaces. # noqa: E501 + + Views for working with namespaces. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.namespaces_read_with_http_info(slug, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str slug: (required) + :return: Namespace + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['slug'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method namespaces_read" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'slug' is set + if self.api_client.client_side_validation and ('slug' not in params or + params['slug'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `slug` when calling `namespaces_read`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'slug' in params: + path_params['slug'] = params['slug'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = ['apikey'] # noqa: E501 + + return self.api_client.call_api( + '/namespaces/{slug}/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Namespace', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/bindings/python/src/cloudsmith_api/api/orgs_api.py b/bindings/python/src/cloudsmith_api/api/orgs_api.py new file mode 100644 index 00000000..46dbcc6f --- /dev/null +++ b/bindings/python/src/cloudsmith_api/api/orgs_api.py @@ -0,0 +1,513 @@ +# coding: utf-8 + +""" + Cloudsmith API + + The API to the Cloudsmith Service # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudsmith.io + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from cloudsmith_api.api_client import ApiClient + + +class OrgsApi(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def orgs_list(self, **kwargs): # noqa: E501 + """Get a list of all the organizations you are associated with. # noqa: E501 + + Get a list of all the organizations you are associated with. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.orgs_list(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param int page: A page number within the paginated result set. + :param int page_size: Number of results to return per page. + :return: list[Organization] + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.orgs_list_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.orgs_list_with_http_info(**kwargs) # noqa: E501 + return data + + def orgs_list_with_http_info(self, **kwargs): # noqa: E501 + """Get a list of all the organizations you are associated with. # noqa: E501 + + Get a list of all the organizations you are associated with. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.orgs_list_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param int page: A page number within the paginated result set. + :param int page_size: Number of results to return per page. + :return: list[Organization] + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['page', 'page_size'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method orgs_list" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'page' in params: + query_params.append(('page', params['page'])) # noqa: E501 + if 'page_size' in params: + query_params.append(('page_size', params['page_size'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = ['apikey'] # noqa: E501 + + return self.api_client.call_api( + '/orgs/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='list[Organization]', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def orgs_members_list(self, org, **kwargs): # noqa: E501 + """Get the details for all organization members. # noqa: E501 + + Get the details for all organization members. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.orgs_members_list(org, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str org: (required) + :param int page: A page number within the paginated result set. + :param int page_size: Number of results to return per page. + :return: list[OrganizationMembership] + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.orgs_members_list_with_http_info(org, **kwargs) # noqa: E501 + else: + (data) = self.orgs_members_list_with_http_info(org, **kwargs) # noqa: E501 + return data + + def orgs_members_list_with_http_info(self, org, **kwargs): # noqa: E501 + """Get the details for all organization members. # noqa: E501 + + Get the details for all organization members. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.orgs_members_list_with_http_info(org, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str org: (required) + :param int page: A page number within the paginated result set. + :param int page_size: Number of results to return per page. + :return: list[OrganizationMembership] + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['org', 'page', 'page_size'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method orgs_members_list" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'org' is set + if self.api_client.client_side_validation and ('org' not in params or + params['org'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `org` when calling `orgs_members_list`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'org' in params: + path_params['org'] = params['org'] # noqa: E501 + + query_params = [] + if 'page' in params: + query_params.append(('page', params['page'])) # noqa: E501 + if 'page_size' in params: + query_params.append(('page_size', params['page_size'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = ['apikey'] # noqa: E501 + + return self.api_client.call_api( + '/orgs/{org}/members/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='list[OrganizationMembership]', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def orgs_members_read(self, org, member, **kwargs): # noqa: E501 + """Get the details for a specific organization member. # noqa: E501 + + Get the details for a specific organization member. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.orgs_members_read(org, member, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str org: (required) + :param str member: (required) + :return: OrganizationMembership + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.orgs_members_read_with_http_info(org, member, **kwargs) # noqa: E501 + else: + (data) = self.orgs_members_read_with_http_info(org, member, **kwargs) # noqa: E501 + return data + + def orgs_members_read_with_http_info(self, org, member, **kwargs): # noqa: E501 + """Get the details for a specific organization member. # noqa: E501 + + Get the details for a specific organization member. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.orgs_members_read_with_http_info(org, member, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str org: (required) + :param str member: (required) + :return: OrganizationMembership + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['org', 'member'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method orgs_members_read" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'org' is set + if self.api_client.client_side_validation and ('org' not in params or + params['org'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `org` when calling `orgs_members_read`") # noqa: E501 + # verify the required parameter 'member' is set + if self.api_client.client_side_validation and ('member' not in params or + params['member'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `member` when calling `orgs_members_read`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'org' in params: + path_params['org'] = params['org'] # noqa: E501 + if 'member' in params: + path_params['member'] = params['member'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = ['apikey'] # noqa: E501 + + return self.api_client.call_api( + '/orgs/{org}/members/{member}/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='OrganizationMembership', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def orgs_members_remove(self, org, member, **kwargs): # noqa: E501 + """Removes a member from the organization. # noqa: E501 + + Removes a member from the organization. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.orgs_members_remove(org, member, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str org: (required) + :param str member: (required) + :return: OrganizationMembership + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.orgs_members_remove_with_http_info(org, member, **kwargs) # noqa: E501 + else: + (data) = self.orgs_members_remove_with_http_info(org, member, **kwargs) # noqa: E501 + return data + + def orgs_members_remove_with_http_info(self, org, member, **kwargs): # noqa: E501 + """Removes a member from the organization. # noqa: E501 + + Removes a member from the organization. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.orgs_members_remove_with_http_info(org, member, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str org: (required) + :param str member: (required) + :return: OrganizationMembership + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['org', 'member'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method orgs_members_remove" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'org' is set + if self.api_client.client_side_validation and ('org' not in params or + params['org'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `org` when calling `orgs_members_remove`") # noqa: E501 + # verify the required parameter 'member' is set + if self.api_client.client_side_validation and ('member' not in params or + params['member'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `member` when calling `orgs_members_remove`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'org' in params: + path_params['org'] = params['org'] # noqa: E501 + if 'member' in params: + path_params['member'] = params['member'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = ['apikey'] # noqa: E501 + + return self.api_client.call_api( + '/orgs/{org}/members/{member}/remove/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='OrganizationMembership', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def orgs_read(self, org, **kwargs): # noqa: E501 + """Get the details for the specific organization. # noqa: E501 + + Get the details for the specific organization. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.orgs_read(org, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str org: (required) + :return: Organization + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.orgs_read_with_http_info(org, **kwargs) # noqa: E501 + else: + (data) = self.orgs_read_with_http_info(org, **kwargs) # noqa: E501 + return data + + def orgs_read_with_http_info(self, org, **kwargs): # noqa: E501 + """Get the details for the specific organization. # noqa: E501 + + Get the details for the specific organization. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.orgs_read_with_http_info(org, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str org: (required) + :return: Organization + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['org'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method orgs_read" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'org' is set + if self.api_client.client_side_validation and ('org' not in params or + params['org'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `org` when calling `orgs_read`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'org' in params: + path_params['org'] = params['org'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = ['apikey'] # noqa: E501 + + return self.api_client.call_api( + '/orgs/{org}/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Organization', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/bindings/python/src/cloudsmith_api/api/packages_api.py b/bindings/python/src/cloudsmith_api/api/packages_api.py new file mode 100644 index 00000000..282d8755 --- /dev/null +++ b/bindings/python/src/cloudsmith_api/api/packages_api.py @@ -0,0 +1,6058 @@ +# coding: utf-8 + +""" + Cloudsmith API + + The API to the Cloudsmith Service # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudsmith.io + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from cloudsmith_api.api_client import ApiClient + + +class PackagesApi(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def packages_copy(self, owner, repo, identifier, **kwargs): # noqa: E501 + """Copy a package to another repository. # noqa: E501 + + Copy a package to another repository. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_copy(owner, repo, identifier, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param str identifier: (required) + :param PackagesCopy data: + :return: PackageCopy + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.packages_copy_with_http_info(owner, repo, identifier, **kwargs) # noqa: E501 + else: + (data) = self.packages_copy_with_http_info(owner, repo, identifier, **kwargs) # noqa: E501 + return data + + def packages_copy_with_http_info(self, owner, repo, identifier, **kwargs): # noqa: E501 + """Copy a package to another repository. # noqa: E501 + + Copy a package to another repository. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_copy_with_http_info(owner, repo, identifier, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param str identifier: (required) + :param PackagesCopy data: + :return: PackageCopy + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['owner', 'repo', 'identifier', 'data'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method packages_copy" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'owner' is set + if self.api_client.client_side_validation and ('owner' not in params or + params['owner'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `packages_copy`") # noqa: E501 + # verify the required parameter 'repo' is set + if self.api_client.client_side_validation and ('repo' not in params or + params['repo'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `repo` when calling `packages_copy`") # noqa: E501 + # verify the required parameter 'identifier' is set + if self.api_client.client_side_validation and ('identifier' not in params or + params['identifier'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `identifier` when calling `packages_copy`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'owner' in params: + path_params['owner'] = params['owner'] # noqa: E501 + if 'repo' in params: + path_params['repo'] = params['repo'] # noqa: E501 + if 'identifier' in params: + path_params['identifier'] = params['identifier'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'data' in params: + body_params = params['data'] + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['apikey'] # noqa: E501 + + return self.api_client.call_api( + '/packages/{owner}/{repo}/{identifier}/copy/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='PackageCopy', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def packages_delete(self, owner, repo, identifier, **kwargs): # noqa: E501 + """Delete a specific package in a repository. # noqa: E501 + + Delete a specific package in a repository. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_delete(owner, repo, identifier, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param str identifier: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.packages_delete_with_http_info(owner, repo, identifier, **kwargs) # noqa: E501 + else: + (data) = self.packages_delete_with_http_info(owner, repo, identifier, **kwargs) # noqa: E501 + return data + + def packages_delete_with_http_info(self, owner, repo, identifier, **kwargs): # noqa: E501 + """Delete a specific package in a repository. # noqa: E501 + + Delete a specific package in a repository. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_delete_with_http_info(owner, repo, identifier, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param str identifier: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['owner', 'repo', 'identifier'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method packages_delete" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'owner' is set + if self.api_client.client_side_validation and ('owner' not in params or + params['owner'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `packages_delete`") # noqa: E501 + # verify the required parameter 'repo' is set + if self.api_client.client_side_validation and ('repo' not in params or + params['repo'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `repo` when calling `packages_delete`") # noqa: E501 + # verify the required parameter 'identifier' is set + if self.api_client.client_side_validation and ('identifier' not in params or + params['identifier'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `identifier` when calling `packages_delete`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'owner' in params: + path_params['owner'] = params['owner'] # noqa: E501 + if 'repo' in params: + path_params['repo'] = params['repo'] # noqa: E501 + if 'identifier' in params: + path_params['identifier'] = params['identifier'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = ['apikey'] # noqa: E501 + + return self.api_client.call_api( + '/packages/{owner}/{repo}/{identifier}/', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def packages_dependencies(self, owner, repo, identifier, **kwargs): # noqa: E501 + """Get the direct (non-transitive) dependencies list for a package. # noqa: E501 + + Get the direct (non-transitive) dependencies list for a package. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_dependencies(owner, repo, identifier, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param str identifier: (required) + :return: PackageDependencies + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.packages_dependencies_with_http_info(owner, repo, identifier, **kwargs) # noqa: E501 + else: + (data) = self.packages_dependencies_with_http_info(owner, repo, identifier, **kwargs) # noqa: E501 + return data + + def packages_dependencies_with_http_info(self, owner, repo, identifier, **kwargs): # noqa: E501 + """Get the direct (non-transitive) dependencies list for a package. # noqa: E501 + + Get the direct (non-transitive) dependencies list for a package. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_dependencies_with_http_info(owner, repo, identifier, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param str identifier: (required) + :return: PackageDependencies + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['owner', 'repo', 'identifier'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method packages_dependencies" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'owner' is set + if self.api_client.client_side_validation and ('owner' not in params or + params['owner'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `packages_dependencies`") # noqa: E501 + # verify the required parameter 'repo' is set + if self.api_client.client_side_validation and ('repo' not in params or + params['repo'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `repo` when calling `packages_dependencies`") # noqa: E501 + # verify the required parameter 'identifier' is set + if self.api_client.client_side_validation and ('identifier' not in params or + params['identifier'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `identifier` when calling `packages_dependencies`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'owner' in params: + path_params['owner'] = params['owner'] # noqa: E501 + if 'repo' in params: + path_params['repo'] = params['repo'] # noqa: E501 + if 'identifier' in params: + path_params['identifier'] = params['identifier'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = ['apikey'] # noqa: E501 + + return self.api_client.call_api( + '/packages/{owner}/{repo}/{identifier}/dependencies/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='PackageDependencies', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def packages_list(self, owner, repo, **kwargs): # noqa: E501 + """Get a list of all packages associated with repository. # noqa: E501 + + Get a list of all packages associated with repository. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_list(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param int page: A page number within the paginated result set. + :param int page_size: Number of results to return per page. + :param str query: A search term for querying names, filenames, versions, distributions, architectures, formats or statuses of packages. + :param str sort: A field for sorting objects in ascending or descending order. + :return: list[Package] + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.packages_list_with_http_info(owner, repo, **kwargs) # noqa: E501 + else: + (data) = self.packages_list_with_http_info(owner, repo, **kwargs) # noqa: E501 + return data + + def packages_list_with_http_info(self, owner, repo, **kwargs): # noqa: E501 + """Get a list of all packages associated with repository. # noqa: E501 + + Get a list of all packages associated with repository. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_list_with_http_info(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param int page: A page number within the paginated result set. + :param int page_size: Number of results to return per page. + :param str query: A search term for querying names, filenames, versions, distributions, architectures, formats or statuses of packages. + :param str sort: A field for sorting objects in ascending or descending order. + :return: list[Package] + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['owner', 'repo', 'page', 'page_size', 'query', 'sort'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method packages_list" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'owner' is set + if self.api_client.client_side_validation and ('owner' not in params or + params['owner'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `packages_list`") # noqa: E501 + # verify the required parameter 'repo' is set + if self.api_client.client_side_validation and ('repo' not in params or + params['repo'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `repo` when calling `packages_list`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'owner' in params: + path_params['owner'] = params['owner'] # noqa: E501 + if 'repo' in params: + path_params['repo'] = params['repo'] # noqa: E501 + + query_params = [] + if 'page' in params: + query_params.append(('page', params['page'])) # noqa: E501 + if 'page_size' in params: + query_params.append(('page_size', params['page_size'])) # noqa: E501 + if 'query' in params: + query_params.append(('query', params['query'])) # noqa: E501 + if 'sort' in params: + query_params.append(('sort', params['sort'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = ['apikey'] # noqa: E501 + + return self.api_client.call_api( + '/packages/{owner}/{repo}/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='list[Package]', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def packages_move(self, owner, repo, identifier, **kwargs): # noqa: E501 + """Move a package to another repository. # noqa: E501 + + Move a package to another repository. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_move(owner, repo, identifier, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param str identifier: (required) + :param PackagesMove data: + :return: PackageMove + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.packages_move_with_http_info(owner, repo, identifier, **kwargs) # noqa: E501 + else: + (data) = self.packages_move_with_http_info(owner, repo, identifier, **kwargs) # noqa: E501 + return data + + def packages_move_with_http_info(self, owner, repo, identifier, **kwargs): # noqa: E501 + """Move a package to another repository. # noqa: E501 + + Move a package to another repository. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_move_with_http_info(owner, repo, identifier, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param str identifier: (required) + :param PackagesMove data: + :return: PackageMove + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['owner', 'repo', 'identifier', 'data'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method packages_move" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'owner' is set + if self.api_client.client_side_validation and ('owner' not in params or + params['owner'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `packages_move`") # noqa: E501 + # verify the required parameter 'repo' is set + if self.api_client.client_side_validation and ('repo' not in params or + params['repo'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `repo` when calling `packages_move`") # noqa: E501 + # verify the required parameter 'identifier' is set + if self.api_client.client_side_validation and ('identifier' not in params or + params['identifier'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `identifier` when calling `packages_move`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'owner' in params: + path_params['owner'] = params['owner'] # noqa: E501 + if 'repo' in params: + path_params['repo'] = params['repo'] # noqa: E501 + if 'identifier' in params: + path_params['identifier'] = params['identifier'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'data' in params: + body_params = params['data'] + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['apikey'] # noqa: E501 + + return self.api_client.call_api( + '/packages/{owner}/{repo}/{identifier}/move/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='PackageMove', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def packages_read(self, owner, repo, identifier, **kwargs): # noqa: E501 + """Get a specific package in a repository. # noqa: E501 + + Get a specific package in a repository. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_read(owner, repo, identifier, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param str identifier: (required) + :return: Package + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.packages_read_with_http_info(owner, repo, identifier, **kwargs) # noqa: E501 + else: + (data) = self.packages_read_with_http_info(owner, repo, identifier, **kwargs) # noqa: E501 + return data + + def packages_read_with_http_info(self, owner, repo, identifier, **kwargs): # noqa: E501 + """Get a specific package in a repository. # noqa: E501 + + Get a specific package in a repository. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_read_with_http_info(owner, repo, identifier, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param str identifier: (required) + :return: Package + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['owner', 'repo', 'identifier'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method packages_read" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'owner' is set + if self.api_client.client_side_validation and ('owner' not in params or + params['owner'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `packages_read`") # noqa: E501 + # verify the required parameter 'repo' is set + if self.api_client.client_side_validation and ('repo' not in params or + params['repo'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `repo` when calling `packages_read`") # noqa: E501 + # verify the required parameter 'identifier' is set + if self.api_client.client_side_validation and ('identifier' not in params or + params['identifier'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `identifier` when calling `packages_read`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'owner' in params: + path_params['owner'] = params['owner'] # noqa: E501 + if 'repo' in params: + path_params['repo'] = params['repo'] # noqa: E501 + if 'identifier' in params: + path_params['identifier'] = params['identifier'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = ['apikey'] # noqa: E501 + + return self.api_client.call_api( + '/packages/{owner}/{repo}/{identifier}/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Package', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def packages_resync(self, owner, repo, identifier, **kwargs): # noqa: E501 + """Schedule a package for resynchronisation. # noqa: E501 + + Schedule a package for resynchronisation. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_resync(owner, repo, identifier, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param str identifier: (required) + :return: Package + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.packages_resync_with_http_info(owner, repo, identifier, **kwargs) # noqa: E501 + else: + (data) = self.packages_resync_with_http_info(owner, repo, identifier, **kwargs) # noqa: E501 + return data + + def packages_resync_with_http_info(self, owner, repo, identifier, **kwargs): # noqa: E501 + """Schedule a package for resynchronisation. # noqa: E501 + + Schedule a package for resynchronisation. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_resync_with_http_info(owner, repo, identifier, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param str identifier: (required) + :return: Package + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['owner', 'repo', 'identifier'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method packages_resync" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'owner' is set + if self.api_client.client_side_validation and ('owner' not in params or + params['owner'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `packages_resync`") # noqa: E501 + # verify the required parameter 'repo' is set + if self.api_client.client_side_validation and ('repo' not in params or + params['repo'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `repo` when calling `packages_resync`") # noqa: E501 + # verify the required parameter 'identifier' is set + if self.api_client.client_side_validation and ('identifier' not in params or + params['identifier'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `identifier` when calling `packages_resync`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'owner' in params: + path_params['owner'] = params['owner'] # noqa: E501 + if 'repo' in params: + path_params['repo'] = params['repo'] # noqa: E501 + if 'identifier' in params: + path_params['identifier'] = params['identifier'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = ['apikey'] # noqa: E501 + + return self.api_client.call_api( + '/packages/{owner}/{repo}/{identifier}/resync/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Package', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def packages_scan(self, owner, repo, identifier, **kwargs): # noqa: E501 + """Schedule a package for scanning. # noqa: E501 + + Schedule a package for scanning. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_scan(owner, repo, identifier, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param str identifier: (required) + :return: Package + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.packages_scan_with_http_info(owner, repo, identifier, **kwargs) # noqa: E501 + else: + (data) = self.packages_scan_with_http_info(owner, repo, identifier, **kwargs) # noqa: E501 + return data + + def packages_scan_with_http_info(self, owner, repo, identifier, **kwargs): # noqa: E501 + """Schedule a package for scanning. # noqa: E501 + + Schedule a package for scanning. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_scan_with_http_info(owner, repo, identifier, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param str identifier: (required) + :return: Package + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['owner', 'repo', 'identifier'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method packages_scan" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'owner' is set + if self.api_client.client_side_validation and ('owner' not in params or + params['owner'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `packages_scan`") # noqa: E501 + # verify the required parameter 'repo' is set + if self.api_client.client_side_validation and ('repo' not in params or + params['repo'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `repo` when calling `packages_scan`") # noqa: E501 + # verify the required parameter 'identifier' is set + if self.api_client.client_side_validation and ('identifier' not in params or + params['identifier'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `identifier` when calling `packages_scan`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'owner' in params: + path_params['owner'] = params['owner'] # noqa: E501 + if 'repo' in params: + path_params['repo'] = params['repo'] # noqa: E501 + if 'identifier' in params: + path_params['identifier'] = params['identifier'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = ['apikey'] # noqa: E501 + + return self.api_client.call_api( + '/packages/{owner}/{repo}/{identifier}/scan/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Package', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def packages_status(self, owner, repo, identifier, **kwargs): # noqa: E501 + """Get the synchronisation status for a package. # noqa: E501 + + Get the synchronisation status for a package. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_status(owner, repo, identifier, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param str identifier: (required) + :return: PackageStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.packages_status_with_http_info(owner, repo, identifier, **kwargs) # noqa: E501 + else: + (data) = self.packages_status_with_http_info(owner, repo, identifier, **kwargs) # noqa: E501 + return data + + def packages_status_with_http_info(self, owner, repo, identifier, **kwargs): # noqa: E501 + """Get the synchronisation status for a package. # noqa: E501 + + Get the synchronisation status for a package. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_status_with_http_info(owner, repo, identifier, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param str identifier: (required) + :return: PackageStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['owner', 'repo', 'identifier'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method packages_status" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'owner' is set + if self.api_client.client_side_validation and ('owner' not in params or + params['owner'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `packages_status`") # noqa: E501 + # verify the required parameter 'repo' is set + if self.api_client.client_side_validation and ('repo' not in params or + params['repo'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `repo` when calling `packages_status`") # noqa: E501 + # verify the required parameter 'identifier' is set + if self.api_client.client_side_validation and ('identifier' not in params or + params['identifier'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `identifier` when calling `packages_status`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'owner' in params: + path_params['owner'] = params['owner'] # noqa: E501 + if 'repo' in params: + path_params['repo'] = params['repo'] # noqa: E501 + if 'identifier' in params: + path_params['identifier'] = params['identifier'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = ['apikey'] # noqa: E501 + + return self.api_client.call_api( + '/packages/{owner}/{repo}/{identifier}/status/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='PackageStatus', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def packages_tag(self, owner, repo, identifier, **kwargs): # noqa: E501 + """Add/Replace/Remove tags for a package. # noqa: E501 + + Add/Replace/Remove tags for a package. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_tag(owner, repo, identifier, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param str identifier: (required) + :param PackagesTag data: + :return: Package + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.packages_tag_with_http_info(owner, repo, identifier, **kwargs) # noqa: E501 + else: + (data) = self.packages_tag_with_http_info(owner, repo, identifier, **kwargs) # noqa: E501 + return data + + def packages_tag_with_http_info(self, owner, repo, identifier, **kwargs): # noqa: E501 + """Add/Replace/Remove tags for a package. # noqa: E501 + + Add/Replace/Remove tags for a package. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_tag_with_http_info(owner, repo, identifier, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param str identifier: (required) + :param PackagesTag data: + :return: Package + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['owner', 'repo', 'identifier', 'data'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method packages_tag" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'owner' is set + if self.api_client.client_side_validation and ('owner' not in params or + params['owner'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `packages_tag`") # noqa: E501 + # verify the required parameter 'repo' is set + if self.api_client.client_side_validation and ('repo' not in params or + params['repo'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `repo` when calling `packages_tag`") # noqa: E501 + # verify the required parameter 'identifier' is set + if self.api_client.client_side_validation and ('identifier' not in params or + params['identifier'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `identifier` when calling `packages_tag`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'owner' in params: + path_params['owner'] = params['owner'] # noqa: E501 + if 'repo' in params: + path_params['repo'] = params['repo'] # noqa: E501 + if 'identifier' in params: + path_params['identifier'] = params['identifier'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'data' in params: + body_params = params['data'] + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['apikey'] # noqa: E501 + + return self.api_client.call_api( + '/packages/{owner}/{repo}/{identifier}/tag/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Package', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def packages_upload_alpine(self, owner, repo, **kwargs): # noqa: E501 + """Create a new Alpine package # noqa: E501 + + Create a new Alpine package # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_upload_alpine(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param PackagesUploadAlpine data: + :return: AlpinePackageUpload + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.packages_upload_alpine_with_http_info(owner, repo, **kwargs) # noqa: E501 + else: + (data) = self.packages_upload_alpine_with_http_info(owner, repo, **kwargs) # noqa: E501 + return data + + def packages_upload_alpine_with_http_info(self, owner, repo, **kwargs): # noqa: E501 + """Create a new Alpine package # noqa: E501 + + Create a new Alpine package # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_upload_alpine_with_http_info(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param PackagesUploadAlpine data: + :return: AlpinePackageUpload + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['owner', 'repo', 'data'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method packages_upload_alpine" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'owner' is set + if self.api_client.client_side_validation and ('owner' not in params or + params['owner'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `packages_upload_alpine`") # noqa: E501 + # verify the required parameter 'repo' is set + if self.api_client.client_side_validation and ('repo' not in params or + params['repo'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `repo` when calling `packages_upload_alpine`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'owner' in params: + path_params['owner'] = params['owner'] # noqa: E501 + if 'repo' in params: + path_params['repo'] = params['repo'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'data' in params: + body_params = params['data'] + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['apikey'] # noqa: E501 + + return self.api_client.call_api( + '/packages/{owner}/{repo}/upload/alpine/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AlpinePackageUpload', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def packages_upload_cargo(self, owner, repo, **kwargs): # noqa: E501 + """Create a new Cargo package # noqa: E501 + + Create a new Cargo package # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_upload_cargo(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param PackagesUploadCargo data: + :return: AlpinePackageUpload + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.packages_upload_cargo_with_http_info(owner, repo, **kwargs) # noqa: E501 + else: + (data) = self.packages_upload_cargo_with_http_info(owner, repo, **kwargs) # noqa: E501 + return data + + def packages_upload_cargo_with_http_info(self, owner, repo, **kwargs): # noqa: E501 + """Create a new Cargo package # noqa: E501 + + Create a new Cargo package # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_upload_cargo_with_http_info(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param PackagesUploadCargo data: + :return: AlpinePackageUpload + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['owner', 'repo', 'data'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method packages_upload_cargo" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'owner' is set + if self.api_client.client_side_validation and ('owner' not in params or + params['owner'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `packages_upload_cargo`") # noqa: E501 + # verify the required parameter 'repo' is set + if self.api_client.client_side_validation and ('repo' not in params or + params['repo'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `repo` when calling `packages_upload_cargo`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'owner' in params: + path_params['owner'] = params['owner'] # noqa: E501 + if 'repo' in params: + path_params['repo'] = params['repo'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'data' in params: + body_params = params['data'] + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['apikey'] # noqa: E501 + + return self.api_client.call_api( + '/packages/{owner}/{repo}/upload/cargo/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AlpinePackageUpload', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def packages_upload_cocoapods(self, owner, repo, **kwargs): # noqa: E501 + """Create a new CocoaPods package # noqa: E501 + + Create a new CocoaPods package # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_upload_cocoapods(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param PackagesUploadCocoapods data: + :return: AlpinePackageUpload + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.packages_upload_cocoapods_with_http_info(owner, repo, **kwargs) # noqa: E501 + else: + (data) = self.packages_upload_cocoapods_with_http_info(owner, repo, **kwargs) # noqa: E501 + return data + + def packages_upload_cocoapods_with_http_info(self, owner, repo, **kwargs): # noqa: E501 + """Create a new CocoaPods package # noqa: E501 + + Create a new CocoaPods package # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_upload_cocoapods_with_http_info(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param PackagesUploadCocoapods data: + :return: AlpinePackageUpload + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['owner', 'repo', 'data'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method packages_upload_cocoapods" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'owner' is set + if self.api_client.client_side_validation and ('owner' not in params or + params['owner'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `packages_upload_cocoapods`") # noqa: E501 + # verify the required parameter 'repo' is set + if self.api_client.client_side_validation and ('repo' not in params or + params['repo'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `repo` when calling `packages_upload_cocoapods`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'owner' in params: + path_params['owner'] = params['owner'] # noqa: E501 + if 'repo' in params: + path_params['repo'] = params['repo'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'data' in params: + body_params = params['data'] + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['apikey'] # noqa: E501 + + return self.api_client.call_api( + '/packages/{owner}/{repo}/upload/cocoapods/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AlpinePackageUpload', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def packages_upload_composer(self, owner, repo, **kwargs): # noqa: E501 + """Create a new Composer package # noqa: E501 + + Create a new Composer package # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_upload_composer(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param PackagesUploadComposer data: + :return: AlpinePackageUpload + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.packages_upload_composer_with_http_info(owner, repo, **kwargs) # noqa: E501 + else: + (data) = self.packages_upload_composer_with_http_info(owner, repo, **kwargs) # noqa: E501 + return data + + def packages_upload_composer_with_http_info(self, owner, repo, **kwargs): # noqa: E501 + """Create a new Composer package # noqa: E501 + + Create a new Composer package # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_upload_composer_with_http_info(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param PackagesUploadComposer data: + :return: AlpinePackageUpload + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['owner', 'repo', 'data'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method packages_upload_composer" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'owner' is set + if self.api_client.client_side_validation and ('owner' not in params or + params['owner'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `packages_upload_composer`") # noqa: E501 + # verify the required parameter 'repo' is set + if self.api_client.client_side_validation and ('repo' not in params or + params['repo'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `repo` when calling `packages_upload_composer`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'owner' in params: + path_params['owner'] = params['owner'] # noqa: E501 + if 'repo' in params: + path_params['repo'] = params['repo'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'data' in params: + body_params = params['data'] + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['apikey'] # noqa: E501 + + return self.api_client.call_api( + '/packages/{owner}/{repo}/upload/composer/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AlpinePackageUpload', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def packages_upload_conan(self, owner, repo, **kwargs): # noqa: E501 + """Create a new Conan package # noqa: E501 + + Create a new Conan package # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_upload_conan(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param PackagesUploadConan data: + :return: ConanPackageUpload + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.packages_upload_conan_with_http_info(owner, repo, **kwargs) # noqa: E501 + else: + (data) = self.packages_upload_conan_with_http_info(owner, repo, **kwargs) # noqa: E501 + return data + + def packages_upload_conan_with_http_info(self, owner, repo, **kwargs): # noqa: E501 + """Create a new Conan package # noqa: E501 + + Create a new Conan package # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_upload_conan_with_http_info(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param PackagesUploadConan data: + :return: ConanPackageUpload + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['owner', 'repo', 'data'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method packages_upload_conan" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'owner' is set + if self.api_client.client_side_validation and ('owner' not in params or + params['owner'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `packages_upload_conan`") # noqa: E501 + # verify the required parameter 'repo' is set + if self.api_client.client_side_validation and ('repo' not in params or + params['repo'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `repo` when calling `packages_upload_conan`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'owner' in params: + path_params['owner'] = params['owner'] # noqa: E501 + if 'repo' in params: + path_params['repo'] = params['repo'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'data' in params: + body_params = params['data'] + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['apikey'] # noqa: E501 + + return self.api_client.call_api( + '/packages/{owner}/{repo}/upload/conan/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ConanPackageUpload', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def packages_upload_conda(self, owner, repo, **kwargs): # noqa: E501 + """Create a new Conda package # noqa: E501 + + Create a new Conda package # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_upload_conda(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param PackagesUploadConda data: + :return: AlpinePackageUpload + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.packages_upload_conda_with_http_info(owner, repo, **kwargs) # noqa: E501 + else: + (data) = self.packages_upload_conda_with_http_info(owner, repo, **kwargs) # noqa: E501 + return data + + def packages_upload_conda_with_http_info(self, owner, repo, **kwargs): # noqa: E501 + """Create a new Conda package # noqa: E501 + + Create a new Conda package # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_upload_conda_with_http_info(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param PackagesUploadConda data: + :return: AlpinePackageUpload + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['owner', 'repo', 'data'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method packages_upload_conda" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'owner' is set + if self.api_client.client_side_validation and ('owner' not in params or + params['owner'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `packages_upload_conda`") # noqa: E501 + # verify the required parameter 'repo' is set + if self.api_client.client_side_validation and ('repo' not in params or + params['repo'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `repo` when calling `packages_upload_conda`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'owner' in params: + path_params['owner'] = params['owner'] # noqa: E501 + if 'repo' in params: + path_params['repo'] = params['repo'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'data' in params: + body_params = params['data'] + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['apikey'] # noqa: E501 + + return self.api_client.call_api( + '/packages/{owner}/{repo}/upload/conda/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AlpinePackageUpload', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def packages_upload_cran(self, owner, repo, **kwargs): # noqa: E501 + """Create a new CRAN package # noqa: E501 + + Create a new CRAN package # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_upload_cran(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param PackagesUploadCran data: + :return: AlpinePackageUpload + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.packages_upload_cran_with_http_info(owner, repo, **kwargs) # noqa: E501 + else: + (data) = self.packages_upload_cran_with_http_info(owner, repo, **kwargs) # noqa: E501 + return data + + def packages_upload_cran_with_http_info(self, owner, repo, **kwargs): # noqa: E501 + """Create a new CRAN package # noqa: E501 + + Create a new CRAN package # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_upload_cran_with_http_info(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param PackagesUploadCran data: + :return: AlpinePackageUpload + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['owner', 'repo', 'data'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method packages_upload_cran" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'owner' is set + if self.api_client.client_side_validation and ('owner' not in params or + params['owner'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `packages_upload_cran`") # noqa: E501 + # verify the required parameter 'repo' is set + if self.api_client.client_side_validation and ('repo' not in params or + params['repo'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `repo` when calling `packages_upload_cran`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'owner' in params: + path_params['owner'] = params['owner'] # noqa: E501 + if 'repo' in params: + path_params['repo'] = params['repo'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'data' in params: + body_params = params['data'] + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['apikey'] # noqa: E501 + + return self.api_client.call_api( + '/packages/{owner}/{repo}/upload/cran/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AlpinePackageUpload', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def packages_upload_dart(self, owner, repo, **kwargs): # noqa: E501 + """Create a new Dart package # noqa: E501 + + Create a new Dart package # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_upload_dart(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param PackagesUploadDart data: + :return: AlpinePackageUpload + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.packages_upload_dart_with_http_info(owner, repo, **kwargs) # noqa: E501 + else: + (data) = self.packages_upload_dart_with_http_info(owner, repo, **kwargs) # noqa: E501 + return data + + def packages_upload_dart_with_http_info(self, owner, repo, **kwargs): # noqa: E501 + """Create a new Dart package # noqa: E501 + + Create a new Dart package # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_upload_dart_with_http_info(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param PackagesUploadDart data: + :return: AlpinePackageUpload + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['owner', 'repo', 'data'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method packages_upload_dart" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'owner' is set + if self.api_client.client_side_validation and ('owner' not in params or + params['owner'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `packages_upload_dart`") # noqa: E501 + # verify the required parameter 'repo' is set + if self.api_client.client_side_validation and ('repo' not in params or + params['repo'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `repo` when calling `packages_upload_dart`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'owner' in params: + path_params['owner'] = params['owner'] # noqa: E501 + if 'repo' in params: + path_params['repo'] = params['repo'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'data' in params: + body_params = params['data'] + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['apikey'] # noqa: E501 + + return self.api_client.call_api( + '/packages/{owner}/{repo}/upload/dart/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AlpinePackageUpload', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def packages_upload_deb(self, owner, repo, **kwargs): # noqa: E501 + """Create a new Debian package # noqa: E501 + + Create a new Debian package # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_upload_deb(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param PackagesUploadDeb data: + :return: AlpinePackageUpload + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.packages_upload_deb_with_http_info(owner, repo, **kwargs) # noqa: E501 + else: + (data) = self.packages_upload_deb_with_http_info(owner, repo, **kwargs) # noqa: E501 + return data + + def packages_upload_deb_with_http_info(self, owner, repo, **kwargs): # noqa: E501 + """Create a new Debian package # noqa: E501 + + Create a new Debian package # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_upload_deb_with_http_info(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param PackagesUploadDeb data: + :return: AlpinePackageUpload + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['owner', 'repo', 'data'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method packages_upload_deb" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'owner' is set + if self.api_client.client_side_validation and ('owner' not in params or + params['owner'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `packages_upload_deb`") # noqa: E501 + # verify the required parameter 'repo' is set + if self.api_client.client_side_validation and ('repo' not in params or + params['repo'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `repo` when calling `packages_upload_deb`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'owner' in params: + path_params['owner'] = params['owner'] # noqa: E501 + if 'repo' in params: + path_params['repo'] = params['repo'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'data' in params: + body_params = params['data'] + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['apikey'] # noqa: E501 + + return self.api_client.call_api( + '/packages/{owner}/{repo}/upload/deb/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AlpinePackageUpload', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def packages_upload_docker(self, owner, repo, **kwargs): # noqa: E501 + """Create a new Docker package # noqa: E501 + + Create a new Docker package # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_upload_docker(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param PackagesUploadDocker data: + :return: AlpinePackageUpload + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.packages_upload_docker_with_http_info(owner, repo, **kwargs) # noqa: E501 + else: + (data) = self.packages_upload_docker_with_http_info(owner, repo, **kwargs) # noqa: E501 + return data + + def packages_upload_docker_with_http_info(self, owner, repo, **kwargs): # noqa: E501 + """Create a new Docker package # noqa: E501 + + Create a new Docker package # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_upload_docker_with_http_info(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param PackagesUploadDocker data: + :return: AlpinePackageUpload + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['owner', 'repo', 'data'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method packages_upload_docker" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'owner' is set + if self.api_client.client_side_validation and ('owner' not in params or + params['owner'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `packages_upload_docker`") # noqa: E501 + # verify the required parameter 'repo' is set + if self.api_client.client_side_validation and ('repo' not in params or + params['repo'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `repo` when calling `packages_upload_docker`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'owner' in params: + path_params['owner'] = params['owner'] # noqa: E501 + if 'repo' in params: + path_params['repo'] = params['repo'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'data' in params: + body_params = params['data'] + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['apikey'] # noqa: E501 + + return self.api_client.call_api( + '/packages/{owner}/{repo}/upload/docker/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AlpinePackageUpload', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def packages_upload_go(self, owner, repo, **kwargs): # noqa: E501 + """Create a new Go package # noqa: E501 + + Create a new Go package # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_upload_go(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param PackagesUploadGo data: + :return: AlpinePackageUpload + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.packages_upload_go_with_http_info(owner, repo, **kwargs) # noqa: E501 + else: + (data) = self.packages_upload_go_with_http_info(owner, repo, **kwargs) # noqa: E501 + return data + + def packages_upload_go_with_http_info(self, owner, repo, **kwargs): # noqa: E501 + """Create a new Go package # noqa: E501 + + Create a new Go package # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_upload_go_with_http_info(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param PackagesUploadGo data: + :return: AlpinePackageUpload + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['owner', 'repo', 'data'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method packages_upload_go" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'owner' is set + if self.api_client.client_side_validation and ('owner' not in params or + params['owner'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `packages_upload_go`") # noqa: E501 + # verify the required parameter 'repo' is set + if self.api_client.client_side_validation and ('repo' not in params or + params['repo'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `repo` when calling `packages_upload_go`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'owner' in params: + path_params['owner'] = params['owner'] # noqa: E501 + if 'repo' in params: + path_params['repo'] = params['repo'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'data' in params: + body_params = params['data'] + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['apikey'] # noqa: E501 + + return self.api_client.call_api( + '/packages/{owner}/{repo}/upload/go/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AlpinePackageUpload', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def packages_upload_helm(self, owner, repo, **kwargs): # noqa: E501 + """Create a new Helm package # noqa: E501 + + Create a new Helm package # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_upload_helm(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param PackagesUploadHelm data: + :return: AlpinePackageUpload + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.packages_upload_helm_with_http_info(owner, repo, **kwargs) # noqa: E501 + else: + (data) = self.packages_upload_helm_with_http_info(owner, repo, **kwargs) # noqa: E501 + return data + + def packages_upload_helm_with_http_info(self, owner, repo, **kwargs): # noqa: E501 + """Create a new Helm package # noqa: E501 + + Create a new Helm package # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_upload_helm_with_http_info(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param PackagesUploadHelm data: + :return: AlpinePackageUpload + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['owner', 'repo', 'data'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method packages_upload_helm" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'owner' is set + if self.api_client.client_side_validation and ('owner' not in params or + params['owner'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `packages_upload_helm`") # noqa: E501 + # verify the required parameter 'repo' is set + if self.api_client.client_side_validation and ('repo' not in params or + params['repo'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `repo` when calling `packages_upload_helm`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'owner' in params: + path_params['owner'] = params['owner'] # noqa: E501 + if 'repo' in params: + path_params['repo'] = params['repo'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'data' in params: + body_params = params['data'] + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['apikey'] # noqa: E501 + + return self.api_client.call_api( + '/packages/{owner}/{repo}/upload/helm/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AlpinePackageUpload', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def packages_upload_luarocks(self, owner, repo, **kwargs): # noqa: E501 + """Create a new LuaRocks package # noqa: E501 + + Create a new LuaRocks package # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_upload_luarocks(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param PackagesUploadLuarocks data: + :return: AlpinePackageUpload + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.packages_upload_luarocks_with_http_info(owner, repo, **kwargs) # noqa: E501 + else: + (data) = self.packages_upload_luarocks_with_http_info(owner, repo, **kwargs) # noqa: E501 + return data + + def packages_upload_luarocks_with_http_info(self, owner, repo, **kwargs): # noqa: E501 + """Create a new LuaRocks package # noqa: E501 + + Create a new LuaRocks package # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_upload_luarocks_with_http_info(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param PackagesUploadLuarocks data: + :return: AlpinePackageUpload + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['owner', 'repo', 'data'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method packages_upload_luarocks" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'owner' is set + if self.api_client.client_side_validation and ('owner' not in params or + params['owner'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `packages_upload_luarocks`") # noqa: E501 + # verify the required parameter 'repo' is set + if self.api_client.client_side_validation and ('repo' not in params or + params['repo'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `repo` when calling `packages_upload_luarocks`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'owner' in params: + path_params['owner'] = params['owner'] # noqa: E501 + if 'repo' in params: + path_params['repo'] = params['repo'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'data' in params: + body_params = params['data'] + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['apikey'] # noqa: E501 + + return self.api_client.call_api( + '/packages/{owner}/{repo}/upload/luarocks/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AlpinePackageUpload', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def packages_upload_maven(self, owner, repo, **kwargs): # noqa: E501 + """Create a new Maven package # noqa: E501 + + Create a new Maven package # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_upload_maven(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param PackagesUploadMaven data: + :return: MavenPackageUpload + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.packages_upload_maven_with_http_info(owner, repo, **kwargs) # noqa: E501 + else: + (data) = self.packages_upload_maven_with_http_info(owner, repo, **kwargs) # noqa: E501 + return data + + def packages_upload_maven_with_http_info(self, owner, repo, **kwargs): # noqa: E501 + """Create a new Maven package # noqa: E501 + + Create a new Maven package # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_upload_maven_with_http_info(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param PackagesUploadMaven data: + :return: MavenPackageUpload + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['owner', 'repo', 'data'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method packages_upload_maven" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'owner' is set + if self.api_client.client_side_validation and ('owner' not in params or + params['owner'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `packages_upload_maven`") # noqa: E501 + # verify the required parameter 'repo' is set + if self.api_client.client_side_validation and ('repo' not in params or + params['repo'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `repo` when calling `packages_upload_maven`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'owner' in params: + path_params['owner'] = params['owner'] # noqa: E501 + if 'repo' in params: + path_params['repo'] = params['repo'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'data' in params: + body_params = params['data'] + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['apikey'] # noqa: E501 + + return self.api_client.call_api( + '/packages/{owner}/{repo}/upload/maven/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='MavenPackageUpload', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def packages_upload_npm(self, owner, repo, **kwargs): # noqa: E501 + """Create a new npm package # noqa: E501 + + Create a new npm package # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_upload_npm(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param PackagesUploadNpm data: + :return: AlpinePackageUpload + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.packages_upload_npm_with_http_info(owner, repo, **kwargs) # noqa: E501 + else: + (data) = self.packages_upload_npm_with_http_info(owner, repo, **kwargs) # noqa: E501 + return data + + def packages_upload_npm_with_http_info(self, owner, repo, **kwargs): # noqa: E501 + """Create a new npm package # noqa: E501 + + Create a new npm package # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_upload_npm_with_http_info(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param PackagesUploadNpm data: + :return: AlpinePackageUpload + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['owner', 'repo', 'data'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method packages_upload_npm" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'owner' is set + if self.api_client.client_side_validation and ('owner' not in params or + params['owner'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `packages_upload_npm`") # noqa: E501 + # verify the required parameter 'repo' is set + if self.api_client.client_side_validation and ('repo' not in params or + params['repo'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `repo` when calling `packages_upload_npm`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'owner' in params: + path_params['owner'] = params['owner'] # noqa: E501 + if 'repo' in params: + path_params['repo'] = params['repo'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'data' in params: + body_params = params['data'] + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['apikey'] # noqa: E501 + + return self.api_client.call_api( + '/packages/{owner}/{repo}/upload/npm/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AlpinePackageUpload', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def packages_upload_nuget(self, owner, repo, **kwargs): # noqa: E501 + """Create a new NuGet package # noqa: E501 + + Create a new NuGet package # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_upload_nuget(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param PackagesUploadNuget data: + :return: AlpinePackageUpload + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.packages_upload_nuget_with_http_info(owner, repo, **kwargs) # noqa: E501 + else: + (data) = self.packages_upload_nuget_with_http_info(owner, repo, **kwargs) # noqa: E501 + return data + + def packages_upload_nuget_with_http_info(self, owner, repo, **kwargs): # noqa: E501 + """Create a new NuGet package # noqa: E501 + + Create a new NuGet package # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_upload_nuget_with_http_info(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param PackagesUploadNuget data: + :return: AlpinePackageUpload + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['owner', 'repo', 'data'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method packages_upload_nuget" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'owner' is set + if self.api_client.client_side_validation and ('owner' not in params or + params['owner'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `packages_upload_nuget`") # noqa: E501 + # verify the required parameter 'repo' is set + if self.api_client.client_side_validation and ('repo' not in params or + params['repo'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `repo` when calling `packages_upload_nuget`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'owner' in params: + path_params['owner'] = params['owner'] # noqa: E501 + if 'repo' in params: + path_params['repo'] = params['repo'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'data' in params: + body_params = params['data'] + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['apikey'] # noqa: E501 + + return self.api_client.call_api( + '/packages/{owner}/{repo}/upload/nuget/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AlpinePackageUpload', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def packages_upload_p2(self, owner, repo, **kwargs): # noqa: E501 + """Create a new P2 package # noqa: E501 + + Create a new P2 package # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_upload_p2(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param PackagesUploadP2 data: + :return: AlpinePackageUpload + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.packages_upload_p2_with_http_info(owner, repo, **kwargs) # noqa: E501 + else: + (data) = self.packages_upload_p2_with_http_info(owner, repo, **kwargs) # noqa: E501 + return data + + def packages_upload_p2_with_http_info(self, owner, repo, **kwargs): # noqa: E501 + """Create a new P2 package # noqa: E501 + + Create a new P2 package # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_upload_p2_with_http_info(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param PackagesUploadP2 data: + :return: AlpinePackageUpload + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['owner', 'repo', 'data'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method packages_upload_p2" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'owner' is set + if self.api_client.client_side_validation and ('owner' not in params or + params['owner'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `packages_upload_p2`") # noqa: E501 + # verify the required parameter 'repo' is set + if self.api_client.client_side_validation and ('repo' not in params or + params['repo'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `repo` when calling `packages_upload_p2`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'owner' in params: + path_params['owner'] = params['owner'] # noqa: E501 + if 'repo' in params: + path_params['repo'] = params['repo'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'data' in params: + body_params = params['data'] + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['apikey'] # noqa: E501 + + return self.api_client.call_api( + '/packages/{owner}/{repo}/upload/p2/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AlpinePackageUpload', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def packages_upload_python(self, owner, repo, **kwargs): # noqa: E501 + """Create a new Python package # noqa: E501 + + Create a new Python package # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_upload_python(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param PackagesUploadPython data: + :return: AlpinePackageUpload + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.packages_upload_python_with_http_info(owner, repo, **kwargs) # noqa: E501 + else: + (data) = self.packages_upload_python_with_http_info(owner, repo, **kwargs) # noqa: E501 + return data + + def packages_upload_python_with_http_info(self, owner, repo, **kwargs): # noqa: E501 + """Create a new Python package # noqa: E501 + + Create a new Python package # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_upload_python_with_http_info(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param PackagesUploadPython data: + :return: AlpinePackageUpload + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['owner', 'repo', 'data'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method packages_upload_python" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'owner' is set + if self.api_client.client_side_validation and ('owner' not in params or + params['owner'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `packages_upload_python`") # noqa: E501 + # verify the required parameter 'repo' is set + if self.api_client.client_side_validation and ('repo' not in params or + params['repo'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `repo` when calling `packages_upload_python`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'owner' in params: + path_params['owner'] = params['owner'] # noqa: E501 + if 'repo' in params: + path_params['repo'] = params['repo'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'data' in params: + body_params = params['data'] + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['apikey'] # noqa: E501 + + return self.api_client.call_api( + '/packages/{owner}/{repo}/upload/python/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AlpinePackageUpload', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def packages_upload_raw(self, owner, repo, **kwargs): # noqa: E501 + """Create a new Raw package # noqa: E501 + + Create a new Raw package # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_upload_raw(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param PackagesUploadRaw data: + :return: RawPackageUpload + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.packages_upload_raw_with_http_info(owner, repo, **kwargs) # noqa: E501 + else: + (data) = self.packages_upload_raw_with_http_info(owner, repo, **kwargs) # noqa: E501 + return data + + def packages_upload_raw_with_http_info(self, owner, repo, **kwargs): # noqa: E501 + """Create a new Raw package # noqa: E501 + + Create a new Raw package # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_upload_raw_with_http_info(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param PackagesUploadRaw data: + :return: RawPackageUpload + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['owner', 'repo', 'data'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method packages_upload_raw" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'owner' is set + if self.api_client.client_side_validation and ('owner' not in params or + params['owner'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `packages_upload_raw`") # noqa: E501 + # verify the required parameter 'repo' is set + if self.api_client.client_side_validation and ('repo' not in params or + params['repo'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `repo` when calling `packages_upload_raw`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'owner' in params: + path_params['owner'] = params['owner'] # noqa: E501 + if 'repo' in params: + path_params['repo'] = params['repo'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'data' in params: + body_params = params['data'] + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['apikey'] # noqa: E501 + + return self.api_client.call_api( + '/packages/{owner}/{repo}/upload/raw/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='RawPackageUpload', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def packages_upload_rpm(self, owner, repo, **kwargs): # noqa: E501 + """Create a new RedHat package # noqa: E501 + + Create a new RedHat package # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_upload_rpm(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param PackagesUploadRpm data: + :return: AlpinePackageUpload + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.packages_upload_rpm_with_http_info(owner, repo, **kwargs) # noqa: E501 + else: + (data) = self.packages_upload_rpm_with_http_info(owner, repo, **kwargs) # noqa: E501 + return data + + def packages_upload_rpm_with_http_info(self, owner, repo, **kwargs): # noqa: E501 + """Create a new RedHat package # noqa: E501 + + Create a new RedHat package # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_upload_rpm_with_http_info(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param PackagesUploadRpm data: + :return: AlpinePackageUpload + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['owner', 'repo', 'data'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method packages_upload_rpm" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'owner' is set + if self.api_client.client_side_validation and ('owner' not in params or + params['owner'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `packages_upload_rpm`") # noqa: E501 + # verify the required parameter 'repo' is set + if self.api_client.client_side_validation and ('repo' not in params or + params['repo'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `repo` when calling `packages_upload_rpm`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'owner' in params: + path_params['owner'] = params['owner'] # noqa: E501 + if 'repo' in params: + path_params['repo'] = params['repo'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'data' in params: + body_params = params['data'] + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['apikey'] # noqa: E501 + + return self.api_client.call_api( + '/packages/{owner}/{repo}/upload/rpm/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AlpinePackageUpload', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def packages_upload_ruby(self, owner, repo, **kwargs): # noqa: E501 + """Create a new Ruby package # noqa: E501 + + Create a new Ruby package # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_upload_ruby(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param PackagesUploadRuby data: + :return: AlpinePackageUpload + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.packages_upload_ruby_with_http_info(owner, repo, **kwargs) # noqa: E501 + else: + (data) = self.packages_upload_ruby_with_http_info(owner, repo, **kwargs) # noqa: E501 + return data + + def packages_upload_ruby_with_http_info(self, owner, repo, **kwargs): # noqa: E501 + """Create a new Ruby package # noqa: E501 + + Create a new Ruby package # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_upload_ruby_with_http_info(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param PackagesUploadRuby data: + :return: AlpinePackageUpload + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['owner', 'repo', 'data'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method packages_upload_ruby" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'owner' is set + if self.api_client.client_side_validation and ('owner' not in params or + params['owner'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `packages_upload_ruby`") # noqa: E501 + # verify the required parameter 'repo' is set + if self.api_client.client_side_validation and ('repo' not in params or + params['repo'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `repo` when calling `packages_upload_ruby`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'owner' in params: + path_params['owner'] = params['owner'] # noqa: E501 + if 'repo' in params: + path_params['repo'] = params['repo'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'data' in params: + body_params = params['data'] + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['apikey'] # noqa: E501 + + return self.api_client.call_api( + '/packages/{owner}/{repo}/upload/ruby/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AlpinePackageUpload', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def packages_upload_terraform(self, owner, repo, **kwargs): # noqa: E501 + """Create a new Terraform package # noqa: E501 + + Create a new Terraform package # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_upload_terraform(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param PackagesUploadTerraform data: + :return: AlpinePackageUpload + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.packages_upload_terraform_with_http_info(owner, repo, **kwargs) # noqa: E501 + else: + (data) = self.packages_upload_terraform_with_http_info(owner, repo, **kwargs) # noqa: E501 + return data + + def packages_upload_terraform_with_http_info(self, owner, repo, **kwargs): # noqa: E501 + """Create a new Terraform package # noqa: E501 + + Create a new Terraform package # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_upload_terraform_with_http_info(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param PackagesUploadTerraform data: + :return: AlpinePackageUpload + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['owner', 'repo', 'data'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method packages_upload_terraform" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'owner' is set + if self.api_client.client_side_validation and ('owner' not in params or + params['owner'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `packages_upload_terraform`") # noqa: E501 + # verify the required parameter 'repo' is set + if self.api_client.client_side_validation and ('repo' not in params or + params['repo'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `repo` when calling `packages_upload_terraform`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'owner' in params: + path_params['owner'] = params['owner'] # noqa: E501 + if 'repo' in params: + path_params['repo'] = params['repo'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'data' in params: + body_params = params['data'] + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['apikey'] # noqa: E501 + + return self.api_client.call_api( + '/packages/{owner}/{repo}/upload/terraform/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AlpinePackageUpload', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def packages_upload_vagrant(self, owner, repo, **kwargs): # noqa: E501 + """Create a new Vagrant package # noqa: E501 + + Create a new Vagrant package # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_upload_vagrant(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param PackagesUploadVagrant data: + :return: VagrantPackageUpload + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.packages_upload_vagrant_with_http_info(owner, repo, **kwargs) # noqa: E501 + else: + (data) = self.packages_upload_vagrant_with_http_info(owner, repo, **kwargs) # noqa: E501 + return data + + def packages_upload_vagrant_with_http_info(self, owner, repo, **kwargs): # noqa: E501 + """Create a new Vagrant package # noqa: E501 + + Create a new Vagrant package # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_upload_vagrant_with_http_info(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param PackagesUploadVagrant data: + :return: VagrantPackageUpload + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['owner', 'repo', 'data'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method packages_upload_vagrant" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'owner' is set + if self.api_client.client_side_validation and ('owner' not in params or + params['owner'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `packages_upload_vagrant`") # noqa: E501 + # verify the required parameter 'repo' is set + if self.api_client.client_side_validation and ('repo' not in params or + params['repo'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `repo` when calling `packages_upload_vagrant`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'owner' in params: + path_params['owner'] = params['owner'] # noqa: E501 + if 'repo' in params: + path_params['repo'] = params['repo'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'data' in params: + body_params = params['data'] + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['apikey'] # noqa: E501 + + return self.api_client.call_api( + '/packages/{owner}/{repo}/upload/vagrant/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='VagrantPackageUpload', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def packages_validate_upload_alpine(self, owner, repo, **kwargs): # noqa: E501 + """Validate parameters for create Alpine package # noqa: E501 + + Validate parameters for create Alpine package # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_validate_upload_alpine(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param PackagesValidateuploadAlpine data: + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.packages_validate_upload_alpine_with_http_info(owner, repo, **kwargs) # noqa: E501 + else: + (data) = self.packages_validate_upload_alpine_with_http_info(owner, repo, **kwargs) # noqa: E501 + return data + + def packages_validate_upload_alpine_with_http_info(self, owner, repo, **kwargs): # noqa: E501 + """Validate parameters for create Alpine package # noqa: E501 + + Validate parameters for create Alpine package # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_validate_upload_alpine_with_http_info(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param PackagesValidateuploadAlpine data: + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['owner', 'repo', 'data'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method packages_validate_upload_alpine" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'owner' is set + if self.api_client.client_side_validation and ('owner' not in params or + params['owner'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `packages_validate_upload_alpine`") # noqa: E501 + # verify the required parameter 'repo' is set + if self.api_client.client_side_validation and ('repo' not in params or + params['repo'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `repo` when calling `packages_validate_upload_alpine`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'owner' in params: + path_params['owner'] = params['owner'] # noqa: E501 + if 'repo' in params: + path_params['repo'] = params['repo'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'data' in params: + body_params = params['data'] + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['apikey'] # noqa: E501 + + return self.api_client.call_api( + '/packages/{owner}/{repo}/validate-upload/alpine/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def packages_validate_upload_cargo(self, owner, repo, **kwargs): # noqa: E501 + """Validate parameters for create Cargo package # noqa: E501 + + Validate parameters for create Cargo package # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_validate_upload_cargo(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param PackagesValidateuploadCargo data: + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.packages_validate_upload_cargo_with_http_info(owner, repo, **kwargs) # noqa: E501 + else: + (data) = self.packages_validate_upload_cargo_with_http_info(owner, repo, **kwargs) # noqa: E501 + return data + + def packages_validate_upload_cargo_with_http_info(self, owner, repo, **kwargs): # noqa: E501 + """Validate parameters for create Cargo package # noqa: E501 + + Validate parameters for create Cargo package # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_validate_upload_cargo_with_http_info(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param PackagesValidateuploadCargo data: + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['owner', 'repo', 'data'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method packages_validate_upload_cargo" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'owner' is set + if self.api_client.client_side_validation and ('owner' not in params or + params['owner'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `packages_validate_upload_cargo`") # noqa: E501 + # verify the required parameter 'repo' is set + if self.api_client.client_side_validation and ('repo' not in params or + params['repo'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `repo` when calling `packages_validate_upload_cargo`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'owner' in params: + path_params['owner'] = params['owner'] # noqa: E501 + if 'repo' in params: + path_params['repo'] = params['repo'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'data' in params: + body_params = params['data'] + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['apikey'] # noqa: E501 + + return self.api_client.call_api( + '/packages/{owner}/{repo}/validate-upload/cargo/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def packages_validate_upload_cocoapods(self, owner, repo, **kwargs): # noqa: E501 + """Validate parameters for create CocoaPods package # noqa: E501 + + Validate parameters for create CocoaPods package # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_validate_upload_cocoapods(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param PackagesValidateuploadCocoapods data: + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.packages_validate_upload_cocoapods_with_http_info(owner, repo, **kwargs) # noqa: E501 + else: + (data) = self.packages_validate_upload_cocoapods_with_http_info(owner, repo, **kwargs) # noqa: E501 + return data + + def packages_validate_upload_cocoapods_with_http_info(self, owner, repo, **kwargs): # noqa: E501 + """Validate parameters for create CocoaPods package # noqa: E501 + + Validate parameters for create CocoaPods package # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_validate_upload_cocoapods_with_http_info(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param PackagesValidateuploadCocoapods data: + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['owner', 'repo', 'data'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method packages_validate_upload_cocoapods" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'owner' is set + if self.api_client.client_side_validation and ('owner' not in params or + params['owner'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `packages_validate_upload_cocoapods`") # noqa: E501 + # verify the required parameter 'repo' is set + if self.api_client.client_side_validation and ('repo' not in params or + params['repo'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `repo` when calling `packages_validate_upload_cocoapods`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'owner' in params: + path_params['owner'] = params['owner'] # noqa: E501 + if 'repo' in params: + path_params['repo'] = params['repo'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'data' in params: + body_params = params['data'] + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['apikey'] # noqa: E501 + + return self.api_client.call_api( + '/packages/{owner}/{repo}/validate-upload/cocoapods/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def packages_validate_upload_composer(self, owner, repo, **kwargs): # noqa: E501 + """Validate parameters for create Composer package # noqa: E501 + + Validate parameters for create Composer package # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_validate_upload_composer(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param PackagesValidateuploadComposer data: + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.packages_validate_upload_composer_with_http_info(owner, repo, **kwargs) # noqa: E501 + else: + (data) = self.packages_validate_upload_composer_with_http_info(owner, repo, **kwargs) # noqa: E501 + return data + + def packages_validate_upload_composer_with_http_info(self, owner, repo, **kwargs): # noqa: E501 + """Validate parameters for create Composer package # noqa: E501 + + Validate parameters for create Composer package # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_validate_upload_composer_with_http_info(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param PackagesValidateuploadComposer data: + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['owner', 'repo', 'data'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method packages_validate_upload_composer" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'owner' is set + if self.api_client.client_side_validation and ('owner' not in params or + params['owner'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `packages_validate_upload_composer`") # noqa: E501 + # verify the required parameter 'repo' is set + if self.api_client.client_side_validation and ('repo' not in params or + params['repo'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `repo` when calling `packages_validate_upload_composer`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'owner' in params: + path_params['owner'] = params['owner'] # noqa: E501 + if 'repo' in params: + path_params['repo'] = params['repo'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'data' in params: + body_params = params['data'] + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['apikey'] # noqa: E501 + + return self.api_client.call_api( + '/packages/{owner}/{repo}/validate-upload/composer/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def packages_validate_upload_conan(self, owner, repo, **kwargs): # noqa: E501 + """Validate parameters for create Conan package # noqa: E501 + + Validate parameters for create Conan package # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_validate_upload_conan(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param PackagesValidateuploadConan data: + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.packages_validate_upload_conan_with_http_info(owner, repo, **kwargs) # noqa: E501 + else: + (data) = self.packages_validate_upload_conan_with_http_info(owner, repo, **kwargs) # noqa: E501 + return data + + def packages_validate_upload_conan_with_http_info(self, owner, repo, **kwargs): # noqa: E501 + """Validate parameters for create Conan package # noqa: E501 + + Validate parameters for create Conan package # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_validate_upload_conan_with_http_info(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param PackagesValidateuploadConan data: + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['owner', 'repo', 'data'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method packages_validate_upload_conan" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'owner' is set + if self.api_client.client_side_validation and ('owner' not in params or + params['owner'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `packages_validate_upload_conan`") # noqa: E501 + # verify the required parameter 'repo' is set + if self.api_client.client_side_validation and ('repo' not in params or + params['repo'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `repo` when calling `packages_validate_upload_conan`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'owner' in params: + path_params['owner'] = params['owner'] # noqa: E501 + if 'repo' in params: + path_params['repo'] = params['repo'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'data' in params: + body_params = params['data'] + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['apikey'] # noqa: E501 + + return self.api_client.call_api( + '/packages/{owner}/{repo}/validate-upload/conan/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def packages_validate_upload_conda(self, owner, repo, **kwargs): # noqa: E501 + """Validate parameters for create Conda package # noqa: E501 + + Validate parameters for create Conda package # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_validate_upload_conda(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param PackagesValidateuploadConda data: + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.packages_validate_upload_conda_with_http_info(owner, repo, **kwargs) # noqa: E501 + else: + (data) = self.packages_validate_upload_conda_with_http_info(owner, repo, **kwargs) # noqa: E501 + return data + + def packages_validate_upload_conda_with_http_info(self, owner, repo, **kwargs): # noqa: E501 + """Validate parameters for create Conda package # noqa: E501 + + Validate parameters for create Conda package # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_validate_upload_conda_with_http_info(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param PackagesValidateuploadConda data: + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['owner', 'repo', 'data'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method packages_validate_upload_conda" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'owner' is set + if self.api_client.client_side_validation and ('owner' not in params or + params['owner'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `packages_validate_upload_conda`") # noqa: E501 + # verify the required parameter 'repo' is set + if self.api_client.client_side_validation and ('repo' not in params or + params['repo'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `repo` when calling `packages_validate_upload_conda`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'owner' in params: + path_params['owner'] = params['owner'] # noqa: E501 + if 'repo' in params: + path_params['repo'] = params['repo'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'data' in params: + body_params = params['data'] + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['apikey'] # noqa: E501 + + return self.api_client.call_api( + '/packages/{owner}/{repo}/validate-upload/conda/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def packages_validate_upload_cran(self, owner, repo, **kwargs): # noqa: E501 + """Validate parameters for create CRAN package # noqa: E501 + + Validate parameters for create CRAN package # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_validate_upload_cran(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param PackagesValidateuploadCran data: + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.packages_validate_upload_cran_with_http_info(owner, repo, **kwargs) # noqa: E501 + else: + (data) = self.packages_validate_upload_cran_with_http_info(owner, repo, **kwargs) # noqa: E501 + return data + + def packages_validate_upload_cran_with_http_info(self, owner, repo, **kwargs): # noqa: E501 + """Validate parameters for create CRAN package # noqa: E501 + + Validate parameters for create CRAN package # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_validate_upload_cran_with_http_info(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param PackagesValidateuploadCran data: + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['owner', 'repo', 'data'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method packages_validate_upload_cran" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'owner' is set + if self.api_client.client_side_validation and ('owner' not in params or + params['owner'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `packages_validate_upload_cran`") # noqa: E501 + # verify the required parameter 'repo' is set + if self.api_client.client_side_validation and ('repo' not in params or + params['repo'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `repo` when calling `packages_validate_upload_cran`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'owner' in params: + path_params['owner'] = params['owner'] # noqa: E501 + if 'repo' in params: + path_params['repo'] = params['repo'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'data' in params: + body_params = params['data'] + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['apikey'] # noqa: E501 + + return self.api_client.call_api( + '/packages/{owner}/{repo}/validate-upload/cran/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def packages_validate_upload_dart(self, owner, repo, **kwargs): # noqa: E501 + """Validate parameters for create Dart package # noqa: E501 + + Validate parameters for create Dart package # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_validate_upload_dart(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param PackagesValidateuploadDart data: + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.packages_validate_upload_dart_with_http_info(owner, repo, **kwargs) # noqa: E501 + else: + (data) = self.packages_validate_upload_dart_with_http_info(owner, repo, **kwargs) # noqa: E501 + return data + + def packages_validate_upload_dart_with_http_info(self, owner, repo, **kwargs): # noqa: E501 + """Validate parameters for create Dart package # noqa: E501 + + Validate parameters for create Dart package # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_validate_upload_dart_with_http_info(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param PackagesValidateuploadDart data: + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['owner', 'repo', 'data'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method packages_validate_upload_dart" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'owner' is set + if self.api_client.client_side_validation and ('owner' not in params or + params['owner'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `packages_validate_upload_dart`") # noqa: E501 + # verify the required parameter 'repo' is set + if self.api_client.client_side_validation and ('repo' not in params or + params['repo'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `repo` when calling `packages_validate_upload_dart`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'owner' in params: + path_params['owner'] = params['owner'] # noqa: E501 + if 'repo' in params: + path_params['repo'] = params['repo'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'data' in params: + body_params = params['data'] + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['apikey'] # noqa: E501 + + return self.api_client.call_api( + '/packages/{owner}/{repo}/validate-upload/dart/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def packages_validate_upload_deb(self, owner, repo, **kwargs): # noqa: E501 + """Validate parameters for create Debian package # noqa: E501 + + Validate parameters for create Debian package # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_validate_upload_deb(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param PackagesValidateuploadDeb data: + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.packages_validate_upload_deb_with_http_info(owner, repo, **kwargs) # noqa: E501 + else: + (data) = self.packages_validate_upload_deb_with_http_info(owner, repo, **kwargs) # noqa: E501 + return data + + def packages_validate_upload_deb_with_http_info(self, owner, repo, **kwargs): # noqa: E501 + """Validate parameters for create Debian package # noqa: E501 + + Validate parameters for create Debian package # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_validate_upload_deb_with_http_info(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param PackagesValidateuploadDeb data: + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['owner', 'repo', 'data'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method packages_validate_upload_deb" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'owner' is set + if self.api_client.client_side_validation and ('owner' not in params or + params['owner'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `packages_validate_upload_deb`") # noqa: E501 + # verify the required parameter 'repo' is set + if self.api_client.client_side_validation and ('repo' not in params or + params['repo'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `repo` when calling `packages_validate_upload_deb`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'owner' in params: + path_params['owner'] = params['owner'] # noqa: E501 + if 'repo' in params: + path_params['repo'] = params['repo'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'data' in params: + body_params = params['data'] + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['apikey'] # noqa: E501 + + return self.api_client.call_api( + '/packages/{owner}/{repo}/validate-upload/deb/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def packages_validate_upload_docker(self, owner, repo, **kwargs): # noqa: E501 + """Validate parameters for create Docker package # noqa: E501 + + Validate parameters for create Docker package # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_validate_upload_docker(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param PackagesValidateuploadDocker data: + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.packages_validate_upload_docker_with_http_info(owner, repo, **kwargs) # noqa: E501 + else: + (data) = self.packages_validate_upload_docker_with_http_info(owner, repo, **kwargs) # noqa: E501 + return data + + def packages_validate_upload_docker_with_http_info(self, owner, repo, **kwargs): # noqa: E501 + """Validate parameters for create Docker package # noqa: E501 + + Validate parameters for create Docker package # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_validate_upload_docker_with_http_info(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param PackagesValidateuploadDocker data: + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['owner', 'repo', 'data'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method packages_validate_upload_docker" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'owner' is set + if self.api_client.client_side_validation and ('owner' not in params or + params['owner'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `packages_validate_upload_docker`") # noqa: E501 + # verify the required parameter 'repo' is set + if self.api_client.client_side_validation and ('repo' not in params or + params['repo'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `repo` when calling `packages_validate_upload_docker`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'owner' in params: + path_params['owner'] = params['owner'] # noqa: E501 + if 'repo' in params: + path_params['repo'] = params['repo'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'data' in params: + body_params = params['data'] + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['apikey'] # noqa: E501 + + return self.api_client.call_api( + '/packages/{owner}/{repo}/validate-upload/docker/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def packages_validate_upload_go(self, owner, repo, **kwargs): # noqa: E501 + """Validate parameters for create Go package # noqa: E501 + + Validate parameters for create Go package # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_validate_upload_go(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param PackagesValidateuploadGo data: + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.packages_validate_upload_go_with_http_info(owner, repo, **kwargs) # noqa: E501 + else: + (data) = self.packages_validate_upload_go_with_http_info(owner, repo, **kwargs) # noqa: E501 + return data + + def packages_validate_upload_go_with_http_info(self, owner, repo, **kwargs): # noqa: E501 + """Validate parameters for create Go package # noqa: E501 + + Validate parameters for create Go package # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_validate_upload_go_with_http_info(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param PackagesValidateuploadGo data: + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['owner', 'repo', 'data'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method packages_validate_upload_go" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'owner' is set + if self.api_client.client_side_validation and ('owner' not in params or + params['owner'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `packages_validate_upload_go`") # noqa: E501 + # verify the required parameter 'repo' is set + if self.api_client.client_side_validation and ('repo' not in params or + params['repo'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `repo` when calling `packages_validate_upload_go`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'owner' in params: + path_params['owner'] = params['owner'] # noqa: E501 + if 'repo' in params: + path_params['repo'] = params['repo'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'data' in params: + body_params = params['data'] + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['apikey'] # noqa: E501 + + return self.api_client.call_api( + '/packages/{owner}/{repo}/validate-upload/go/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def packages_validate_upload_helm(self, owner, repo, **kwargs): # noqa: E501 + """Validate parameters for create Helm package # noqa: E501 + + Validate parameters for create Helm package # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_validate_upload_helm(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param PackagesValidateuploadHelm data: + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.packages_validate_upload_helm_with_http_info(owner, repo, **kwargs) # noqa: E501 + else: + (data) = self.packages_validate_upload_helm_with_http_info(owner, repo, **kwargs) # noqa: E501 + return data + + def packages_validate_upload_helm_with_http_info(self, owner, repo, **kwargs): # noqa: E501 + """Validate parameters for create Helm package # noqa: E501 + + Validate parameters for create Helm package # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_validate_upload_helm_with_http_info(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param PackagesValidateuploadHelm data: + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['owner', 'repo', 'data'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method packages_validate_upload_helm" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'owner' is set + if self.api_client.client_side_validation and ('owner' not in params or + params['owner'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `packages_validate_upload_helm`") # noqa: E501 + # verify the required parameter 'repo' is set + if self.api_client.client_side_validation and ('repo' not in params or + params['repo'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `repo` when calling `packages_validate_upload_helm`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'owner' in params: + path_params['owner'] = params['owner'] # noqa: E501 + if 'repo' in params: + path_params['repo'] = params['repo'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'data' in params: + body_params = params['data'] + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['apikey'] # noqa: E501 + + return self.api_client.call_api( + '/packages/{owner}/{repo}/validate-upload/helm/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def packages_validate_upload_luarocks(self, owner, repo, **kwargs): # noqa: E501 + """Validate parameters for create LuaRocks package # noqa: E501 + + Validate parameters for create LuaRocks package # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_validate_upload_luarocks(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param PackagesValidateuploadLuarocks data: + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.packages_validate_upload_luarocks_with_http_info(owner, repo, **kwargs) # noqa: E501 + else: + (data) = self.packages_validate_upload_luarocks_with_http_info(owner, repo, **kwargs) # noqa: E501 + return data + + def packages_validate_upload_luarocks_with_http_info(self, owner, repo, **kwargs): # noqa: E501 + """Validate parameters for create LuaRocks package # noqa: E501 + + Validate parameters for create LuaRocks package # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_validate_upload_luarocks_with_http_info(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param PackagesValidateuploadLuarocks data: + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['owner', 'repo', 'data'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method packages_validate_upload_luarocks" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'owner' is set + if self.api_client.client_side_validation and ('owner' not in params or + params['owner'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `packages_validate_upload_luarocks`") # noqa: E501 + # verify the required parameter 'repo' is set + if self.api_client.client_side_validation and ('repo' not in params or + params['repo'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `repo` when calling `packages_validate_upload_luarocks`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'owner' in params: + path_params['owner'] = params['owner'] # noqa: E501 + if 'repo' in params: + path_params['repo'] = params['repo'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'data' in params: + body_params = params['data'] + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['apikey'] # noqa: E501 + + return self.api_client.call_api( + '/packages/{owner}/{repo}/validate-upload/luarocks/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def packages_validate_upload_maven(self, owner, repo, **kwargs): # noqa: E501 + """Validate parameters for create Maven package # noqa: E501 + + Validate parameters for create Maven package # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_validate_upload_maven(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param PackagesValidateuploadMaven data: + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.packages_validate_upload_maven_with_http_info(owner, repo, **kwargs) # noqa: E501 + else: + (data) = self.packages_validate_upload_maven_with_http_info(owner, repo, **kwargs) # noqa: E501 + return data + + def packages_validate_upload_maven_with_http_info(self, owner, repo, **kwargs): # noqa: E501 + """Validate parameters for create Maven package # noqa: E501 + + Validate parameters for create Maven package # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_validate_upload_maven_with_http_info(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param PackagesValidateuploadMaven data: + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['owner', 'repo', 'data'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method packages_validate_upload_maven" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'owner' is set + if self.api_client.client_side_validation and ('owner' not in params or + params['owner'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `packages_validate_upload_maven`") # noqa: E501 + # verify the required parameter 'repo' is set + if self.api_client.client_side_validation and ('repo' not in params or + params['repo'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `repo` when calling `packages_validate_upload_maven`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'owner' in params: + path_params['owner'] = params['owner'] # noqa: E501 + if 'repo' in params: + path_params['repo'] = params['repo'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'data' in params: + body_params = params['data'] + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['apikey'] # noqa: E501 + + return self.api_client.call_api( + '/packages/{owner}/{repo}/validate-upload/maven/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def packages_validate_upload_npm(self, owner, repo, **kwargs): # noqa: E501 + """Validate parameters for create npm package # noqa: E501 + + Validate parameters for create npm package # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_validate_upload_npm(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param PackagesValidateuploadNpm data: + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.packages_validate_upload_npm_with_http_info(owner, repo, **kwargs) # noqa: E501 + else: + (data) = self.packages_validate_upload_npm_with_http_info(owner, repo, **kwargs) # noqa: E501 + return data + + def packages_validate_upload_npm_with_http_info(self, owner, repo, **kwargs): # noqa: E501 + """Validate parameters for create npm package # noqa: E501 + + Validate parameters for create npm package # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_validate_upload_npm_with_http_info(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param PackagesValidateuploadNpm data: + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['owner', 'repo', 'data'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method packages_validate_upload_npm" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'owner' is set + if self.api_client.client_side_validation and ('owner' not in params or + params['owner'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `packages_validate_upload_npm`") # noqa: E501 + # verify the required parameter 'repo' is set + if self.api_client.client_side_validation and ('repo' not in params or + params['repo'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `repo` when calling `packages_validate_upload_npm`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'owner' in params: + path_params['owner'] = params['owner'] # noqa: E501 + if 'repo' in params: + path_params['repo'] = params['repo'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'data' in params: + body_params = params['data'] + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['apikey'] # noqa: E501 + + return self.api_client.call_api( + '/packages/{owner}/{repo}/validate-upload/npm/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def packages_validate_upload_nuget(self, owner, repo, **kwargs): # noqa: E501 + """Validate parameters for create NuGet package # noqa: E501 + + Validate parameters for create NuGet package # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_validate_upload_nuget(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param PackagesValidateuploadNuget data: + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.packages_validate_upload_nuget_with_http_info(owner, repo, **kwargs) # noqa: E501 + else: + (data) = self.packages_validate_upload_nuget_with_http_info(owner, repo, **kwargs) # noqa: E501 + return data + + def packages_validate_upload_nuget_with_http_info(self, owner, repo, **kwargs): # noqa: E501 + """Validate parameters for create NuGet package # noqa: E501 + + Validate parameters for create NuGet package # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_validate_upload_nuget_with_http_info(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param PackagesValidateuploadNuget data: + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['owner', 'repo', 'data'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method packages_validate_upload_nuget" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'owner' is set + if self.api_client.client_side_validation and ('owner' not in params or + params['owner'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `packages_validate_upload_nuget`") # noqa: E501 + # verify the required parameter 'repo' is set + if self.api_client.client_side_validation and ('repo' not in params or + params['repo'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `repo` when calling `packages_validate_upload_nuget`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'owner' in params: + path_params['owner'] = params['owner'] # noqa: E501 + if 'repo' in params: + path_params['repo'] = params['repo'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'data' in params: + body_params = params['data'] + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['apikey'] # noqa: E501 + + return self.api_client.call_api( + '/packages/{owner}/{repo}/validate-upload/nuget/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def packages_validate_upload_p2(self, owner, repo, **kwargs): # noqa: E501 + """Validate parameters for create P2 package # noqa: E501 + + Validate parameters for create P2 package # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_validate_upload_p2(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param PackagesValidateuploadP2 data: + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.packages_validate_upload_p2_with_http_info(owner, repo, **kwargs) # noqa: E501 + else: + (data) = self.packages_validate_upload_p2_with_http_info(owner, repo, **kwargs) # noqa: E501 + return data + + def packages_validate_upload_p2_with_http_info(self, owner, repo, **kwargs): # noqa: E501 + """Validate parameters for create P2 package # noqa: E501 + + Validate parameters for create P2 package # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_validate_upload_p2_with_http_info(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param PackagesValidateuploadP2 data: + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['owner', 'repo', 'data'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method packages_validate_upload_p2" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'owner' is set + if self.api_client.client_side_validation and ('owner' not in params or + params['owner'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `packages_validate_upload_p2`") # noqa: E501 + # verify the required parameter 'repo' is set + if self.api_client.client_side_validation and ('repo' not in params or + params['repo'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `repo` when calling `packages_validate_upload_p2`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'owner' in params: + path_params['owner'] = params['owner'] # noqa: E501 + if 'repo' in params: + path_params['repo'] = params['repo'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'data' in params: + body_params = params['data'] + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['apikey'] # noqa: E501 + + return self.api_client.call_api( + '/packages/{owner}/{repo}/validate-upload/p2/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def packages_validate_upload_python(self, owner, repo, **kwargs): # noqa: E501 + """Validate parameters for create Python package # noqa: E501 + + Validate parameters for create Python package # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_validate_upload_python(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param PackagesValidateuploadPython data: + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.packages_validate_upload_python_with_http_info(owner, repo, **kwargs) # noqa: E501 + else: + (data) = self.packages_validate_upload_python_with_http_info(owner, repo, **kwargs) # noqa: E501 + return data + + def packages_validate_upload_python_with_http_info(self, owner, repo, **kwargs): # noqa: E501 + """Validate parameters for create Python package # noqa: E501 + + Validate parameters for create Python package # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_validate_upload_python_with_http_info(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param PackagesValidateuploadPython data: + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['owner', 'repo', 'data'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method packages_validate_upload_python" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'owner' is set + if self.api_client.client_side_validation and ('owner' not in params or + params['owner'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `packages_validate_upload_python`") # noqa: E501 + # verify the required parameter 'repo' is set + if self.api_client.client_side_validation and ('repo' not in params or + params['repo'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `repo` when calling `packages_validate_upload_python`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'owner' in params: + path_params['owner'] = params['owner'] # noqa: E501 + if 'repo' in params: + path_params['repo'] = params['repo'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'data' in params: + body_params = params['data'] + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['apikey'] # noqa: E501 + + return self.api_client.call_api( + '/packages/{owner}/{repo}/validate-upload/python/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def packages_validate_upload_raw(self, owner, repo, **kwargs): # noqa: E501 + """Validate parameters for create Raw package # noqa: E501 + + Validate parameters for create Raw package # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_validate_upload_raw(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param PackagesValidateuploadRaw data: + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.packages_validate_upload_raw_with_http_info(owner, repo, **kwargs) # noqa: E501 + else: + (data) = self.packages_validate_upload_raw_with_http_info(owner, repo, **kwargs) # noqa: E501 + return data + + def packages_validate_upload_raw_with_http_info(self, owner, repo, **kwargs): # noqa: E501 + """Validate parameters for create Raw package # noqa: E501 + + Validate parameters for create Raw package # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_validate_upload_raw_with_http_info(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param PackagesValidateuploadRaw data: + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['owner', 'repo', 'data'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method packages_validate_upload_raw" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'owner' is set + if self.api_client.client_side_validation and ('owner' not in params or + params['owner'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `packages_validate_upload_raw`") # noqa: E501 + # verify the required parameter 'repo' is set + if self.api_client.client_side_validation and ('repo' not in params or + params['repo'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `repo` when calling `packages_validate_upload_raw`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'owner' in params: + path_params['owner'] = params['owner'] # noqa: E501 + if 'repo' in params: + path_params['repo'] = params['repo'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'data' in params: + body_params = params['data'] + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['apikey'] # noqa: E501 + + return self.api_client.call_api( + '/packages/{owner}/{repo}/validate-upload/raw/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def packages_validate_upload_rpm(self, owner, repo, **kwargs): # noqa: E501 + """Validate parameters for create RedHat package # noqa: E501 + + Validate parameters for create RedHat package # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_validate_upload_rpm(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param PackagesValidateuploadRpm data: + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.packages_validate_upload_rpm_with_http_info(owner, repo, **kwargs) # noqa: E501 + else: + (data) = self.packages_validate_upload_rpm_with_http_info(owner, repo, **kwargs) # noqa: E501 + return data + + def packages_validate_upload_rpm_with_http_info(self, owner, repo, **kwargs): # noqa: E501 + """Validate parameters for create RedHat package # noqa: E501 + + Validate parameters for create RedHat package # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_validate_upload_rpm_with_http_info(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param PackagesValidateuploadRpm data: + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['owner', 'repo', 'data'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method packages_validate_upload_rpm" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'owner' is set + if self.api_client.client_side_validation and ('owner' not in params or + params['owner'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `packages_validate_upload_rpm`") # noqa: E501 + # verify the required parameter 'repo' is set + if self.api_client.client_side_validation and ('repo' not in params or + params['repo'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `repo` when calling `packages_validate_upload_rpm`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'owner' in params: + path_params['owner'] = params['owner'] # noqa: E501 + if 'repo' in params: + path_params['repo'] = params['repo'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'data' in params: + body_params = params['data'] + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['apikey'] # noqa: E501 + + return self.api_client.call_api( + '/packages/{owner}/{repo}/validate-upload/rpm/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def packages_validate_upload_ruby(self, owner, repo, **kwargs): # noqa: E501 + """Validate parameters for create Ruby package # noqa: E501 + + Validate parameters for create Ruby package # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_validate_upload_ruby(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param PackagesValidateuploadRuby data: + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.packages_validate_upload_ruby_with_http_info(owner, repo, **kwargs) # noqa: E501 + else: + (data) = self.packages_validate_upload_ruby_with_http_info(owner, repo, **kwargs) # noqa: E501 + return data + + def packages_validate_upload_ruby_with_http_info(self, owner, repo, **kwargs): # noqa: E501 + """Validate parameters for create Ruby package # noqa: E501 + + Validate parameters for create Ruby package # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_validate_upload_ruby_with_http_info(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param PackagesValidateuploadRuby data: + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['owner', 'repo', 'data'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method packages_validate_upload_ruby" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'owner' is set + if self.api_client.client_side_validation and ('owner' not in params or + params['owner'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `packages_validate_upload_ruby`") # noqa: E501 + # verify the required parameter 'repo' is set + if self.api_client.client_side_validation and ('repo' not in params or + params['repo'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `repo` when calling `packages_validate_upload_ruby`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'owner' in params: + path_params['owner'] = params['owner'] # noqa: E501 + if 'repo' in params: + path_params['repo'] = params['repo'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'data' in params: + body_params = params['data'] + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['apikey'] # noqa: E501 + + return self.api_client.call_api( + '/packages/{owner}/{repo}/validate-upload/ruby/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def packages_validate_upload_terraform(self, owner, repo, **kwargs): # noqa: E501 + """Validate parameters for create Terraform package # noqa: E501 + + Validate parameters for create Terraform package # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_validate_upload_terraform(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param PackagesValidateuploadTerraform data: + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.packages_validate_upload_terraform_with_http_info(owner, repo, **kwargs) # noqa: E501 + else: + (data) = self.packages_validate_upload_terraform_with_http_info(owner, repo, **kwargs) # noqa: E501 + return data + + def packages_validate_upload_terraform_with_http_info(self, owner, repo, **kwargs): # noqa: E501 + """Validate parameters for create Terraform package # noqa: E501 + + Validate parameters for create Terraform package # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_validate_upload_terraform_with_http_info(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param PackagesValidateuploadTerraform data: + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['owner', 'repo', 'data'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method packages_validate_upload_terraform" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'owner' is set + if self.api_client.client_side_validation and ('owner' not in params or + params['owner'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `packages_validate_upload_terraform`") # noqa: E501 + # verify the required parameter 'repo' is set + if self.api_client.client_side_validation and ('repo' not in params or + params['repo'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `repo` when calling `packages_validate_upload_terraform`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'owner' in params: + path_params['owner'] = params['owner'] # noqa: E501 + if 'repo' in params: + path_params['repo'] = params['repo'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'data' in params: + body_params = params['data'] + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['apikey'] # noqa: E501 + + return self.api_client.call_api( + '/packages/{owner}/{repo}/validate-upload/terraform/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def packages_validate_upload_vagrant(self, owner, repo, **kwargs): # noqa: E501 + """Validate parameters for create Vagrant package # noqa: E501 + + Validate parameters for create Vagrant package # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_validate_upload_vagrant(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param PackagesValidateuploadVagrant data: + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.packages_validate_upload_vagrant_with_http_info(owner, repo, **kwargs) # noqa: E501 + else: + (data) = self.packages_validate_upload_vagrant_with_http_info(owner, repo, **kwargs) # noqa: E501 + return data + + def packages_validate_upload_vagrant_with_http_info(self, owner, repo, **kwargs): # noqa: E501 + """Validate parameters for create Vagrant package # noqa: E501 + + Validate parameters for create Vagrant package # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.packages_validate_upload_vagrant_with_http_info(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param PackagesValidateuploadVagrant data: + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['owner', 'repo', 'data'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method packages_validate_upload_vagrant" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'owner' is set + if self.api_client.client_side_validation and ('owner' not in params or + params['owner'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `packages_validate_upload_vagrant`") # noqa: E501 + # verify the required parameter 'repo' is set + if self.api_client.client_side_validation and ('repo' not in params or + params['repo'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `repo` when calling `packages_validate_upload_vagrant`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'owner' in params: + path_params['owner'] = params['owner'] # noqa: E501 + if 'repo' in params: + path_params['repo'] = params['repo'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'data' in params: + body_params = params['data'] + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['apikey'] # noqa: E501 + + return self.api_client.call_api( + '/packages/{owner}/{repo}/validate-upload/vagrant/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/bindings/python/src/cloudsmith_api/api/quota_api.py b/bindings/python/src/cloudsmith_api/api/quota_api.py new file mode 100644 index 00000000..7044fb2b --- /dev/null +++ b/bindings/python/src/cloudsmith_api/api/quota_api.py @@ -0,0 +1,398 @@ +# coding: utf-8 + +""" + Cloudsmith API + + The API to the Cloudsmith Service # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudsmith.io + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from cloudsmith_api.api_client import ApiClient + + +class QuotaApi(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def quota_history_read(self, owner, **kwargs): # noqa: E501 + """Quota history for a given namespace. # noqa: E501 + + Quota history for a given namespace. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.quota_history_read(owner, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :return: QuotaHistory + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.quota_history_read_with_http_info(owner, **kwargs) # noqa: E501 + else: + (data) = self.quota_history_read_with_http_info(owner, **kwargs) # noqa: E501 + return data + + def quota_history_read_with_http_info(self, owner, **kwargs): # noqa: E501 + """Quota history for a given namespace. # noqa: E501 + + Quota history for a given namespace. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.quota_history_read_with_http_info(owner, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :return: QuotaHistory + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['owner'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method quota_history_read" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'owner' is set + if self.api_client.client_side_validation and ('owner' not in params or + params['owner'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `quota_history_read`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'owner' in params: + path_params['owner'] = params['owner'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = ['apikey'] # noqa: E501 + + return self.api_client.call_api( + '/quota/history/{owner}/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='QuotaHistory', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def quota_oss_history_read(self, owner, **kwargs): # noqa: E501 + """Open-source Quota history for a given namespace. # noqa: E501 + + Open-source Quota history for a given namespace. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.quota_oss_history_read(owner, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :return: QuotaHistory + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.quota_oss_history_read_with_http_info(owner, **kwargs) # noqa: E501 + else: + (data) = self.quota_oss_history_read_with_http_info(owner, **kwargs) # noqa: E501 + return data + + def quota_oss_history_read_with_http_info(self, owner, **kwargs): # noqa: E501 + """Open-source Quota history for a given namespace. # noqa: E501 + + Open-source Quota history for a given namespace. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.quota_oss_history_read_with_http_info(owner, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :return: QuotaHistory + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['owner'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method quota_oss_history_read" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'owner' is set + if self.api_client.client_side_validation and ('owner' not in params or + params['owner'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `quota_oss_history_read`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'owner' in params: + path_params['owner'] = params['owner'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = ['apikey'] # noqa: E501 + + return self.api_client.call_api( + '/quota/oss/history/{owner}/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='QuotaHistory', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def quota_oss_read(self, owner, **kwargs): # noqa: E501 + """Open-source Quota usage for a given namespace. # noqa: E501 + + Open-source Quota usage for a given namespace. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.quota_oss_read(owner, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :return: Quota + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.quota_oss_read_with_http_info(owner, **kwargs) # noqa: E501 + else: + (data) = self.quota_oss_read_with_http_info(owner, **kwargs) # noqa: E501 + return data + + def quota_oss_read_with_http_info(self, owner, **kwargs): # noqa: E501 + """Open-source Quota usage for a given namespace. # noqa: E501 + + Open-source Quota usage for a given namespace. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.quota_oss_read_with_http_info(owner, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :return: Quota + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['owner'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method quota_oss_read" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'owner' is set + if self.api_client.client_side_validation and ('owner' not in params or + params['owner'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `quota_oss_read`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'owner' in params: + path_params['owner'] = params['owner'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = ['apikey'] # noqa: E501 + + return self.api_client.call_api( + '/quota/oss/{owner}/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Quota', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def quota_read(self, owner, **kwargs): # noqa: E501 + """Quota usage for a given namespace. # noqa: E501 + + Quota usage for a given namespace. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.quota_read(owner, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :return: Quota + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.quota_read_with_http_info(owner, **kwargs) # noqa: E501 + else: + (data) = self.quota_read_with_http_info(owner, **kwargs) # noqa: E501 + return data + + def quota_read_with_http_info(self, owner, **kwargs): # noqa: E501 + """Quota usage for a given namespace. # noqa: E501 + + Quota usage for a given namespace. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.quota_read_with_http_info(owner, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :return: Quota + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['owner'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method quota_read" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'owner' is set + if self.api_client.client_side_validation and ('owner' not in params or + params['owner'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `quota_read`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'owner' in params: + path_params['owner'] = params['owner'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = ['apikey'] # noqa: E501 + + return self.api_client.call_api( + '/quota/{owner}/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Quota', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/bindings/python/src/cloudsmith_api/api/rates_api.py b/bindings/python/src/cloudsmith_api/api/rates_api.py new file mode 100644 index 00000000..ff3b076b --- /dev/null +++ b/bindings/python/src/cloudsmith_api/api/rates_api.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + Cloudsmith API + + The API to the Cloudsmith Service # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudsmith.io + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from cloudsmith_api.api_client import ApiClient + + +class RatesApi(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def rates_limits_list(self, **kwargs): # noqa: E501 + """Endpoint to check rate limits for current user. # noqa: E501 + + Endpoint to check rate limits for current user. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.rates_limits_list(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: ResourcesRateCheck + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.rates_limits_list_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.rates_limits_list_with_http_info(**kwargs) # noqa: E501 + return data + + def rates_limits_list_with_http_info(self, **kwargs): # noqa: E501 + """Endpoint to check rate limits for current user. # noqa: E501 + + Endpoint to check rate limits for current user. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.rates_limits_list_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: ResourcesRateCheck + If the method is called asynchronously, + returns the request thread. + """ + + all_params = [] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method rates_limits_list" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = ['apikey'] # noqa: E501 + + return self.api_client.call_api( + '/rates/limits/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ResourcesRateCheck', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/bindings/python/src/cloudsmith_api/api/repos_api.py b/bindings/python/src/cloudsmith_api/api/repos_api.py new file mode 100644 index 00000000..ad0a6cf2 --- /dev/null +++ b/bindings/python/src/cloudsmith_api/api/repos_api.py @@ -0,0 +1,628 @@ +# coding: utf-8 + +""" + Cloudsmith API + + The API to the Cloudsmith Service # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudsmith.io + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from cloudsmith_api.api_client import ApiClient + + +class ReposApi(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def repos_all_list(self, **kwargs): # noqa: E501 + """Get a list of all repositories associated with current user. # noqa: E501 + + Get a list of all repositories associated with current user. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.repos_all_list(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param int page: A page number within the paginated result set. + :param int page_size: Number of results to return per page. + :return: list[Repository] + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.repos_all_list_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.repos_all_list_with_http_info(**kwargs) # noqa: E501 + return data + + def repos_all_list_with_http_info(self, **kwargs): # noqa: E501 + """Get a list of all repositories associated with current user. # noqa: E501 + + Get a list of all repositories associated with current user. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.repos_all_list_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param int page: A page number within the paginated result set. + :param int page_size: Number of results to return per page. + :return: list[Repository] + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['page', 'page_size'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method repos_all_list" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'page' in params: + query_params.append(('page', params['page'])) # noqa: E501 + if 'page_size' in params: + query_params.append(('page_size', params['page_size'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = ['apikey'] # noqa: E501 + + return self.api_client.call_api( + '/repos/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='list[Repository]', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def repos_create(self, owner, **kwargs): # noqa: E501 + """Create a new repository in a given namespace. # noqa: E501 + + Create a new repository in a given namespace. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.repos_create(owner, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param ReposCreate data: + :return: Repository + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.repos_create_with_http_info(owner, **kwargs) # noqa: E501 + else: + (data) = self.repos_create_with_http_info(owner, **kwargs) # noqa: E501 + return data + + def repos_create_with_http_info(self, owner, **kwargs): # noqa: E501 + """Create a new repository in a given namespace. # noqa: E501 + + Create a new repository in a given namespace. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.repos_create_with_http_info(owner, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param ReposCreate data: + :return: Repository + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['owner', 'data'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method repos_create" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'owner' is set + if self.api_client.client_side_validation and ('owner' not in params or + params['owner'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `repos_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'owner' in params: + path_params['owner'] = params['owner'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'data' in params: + body_params = params['data'] + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['apikey'] # noqa: E501 + + return self.api_client.call_api( + '/repos/{owner}/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Repository', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def repos_delete(self, owner, identifier, **kwargs): # noqa: E501 + """Delete a repository in a given namespace. # noqa: E501 + + Delete a repository in a given namespace. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.repos_delete(owner, identifier, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str identifier: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.repos_delete_with_http_info(owner, identifier, **kwargs) # noqa: E501 + else: + (data) = self.repos_delete_with_http_info(owner, identifier, **kwargs) # noqa: E501 + return data + + def repos_delete_with_http_info(self, owner, identifier, **kwargs): # noqa: E501 + """Delete a repository in a given namespace. # noqa: E501 + + Delete a repository in a given namespace. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.repos_delete_with_http_info(owner, identifier, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str identifier: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['owner', 'identifier'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method repos_delete" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'owner' is set + if self.api_client.client_side_validation and ('owner' not in params or + params['owner'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `repos_delete`") # noqa: E501 + # verify the required parameter 'identifier' is set + if self.api_client.client_side_validation and ('identifier' not in params or + params['identifier'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `identifier` when calling `repos_delete`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'owner' in params: + path_params['owner'] = params['owner'] # noqa: E501 + if 'identifier' in params: + path_params['identifier'] = params['identifier'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = ['apikey'] # noqa: E501 + + return self.api_client.call_api( + '/repos/{owner}/{identifier}/', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def repos_list(self, owner, **kwargs): # noqa: E501 + """Get a list of all repositories within a namespace. # noqa: E501 + + Get a list of all repositories within a namespace. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.repos_list(owner, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param int page: A page number within the paginated result set. + :param int page_size: Number of results to return per page. + :return: list[Repository] + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.repos_list_with_http_info(owner, **kwargs) # noqa: E501 + else: + (data) = self.repos_list_with_http_info(owner, **kwargs) # noqa: E501 + return data + + def repos_list_with_http_info(self, owner, **kwargs): # noqa: E501 + """Get a list of all repositories within a namespace. # noqa: E501 + + Get a list of all repositories within a namespace. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.repos_list_with_http_info(owner, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param int page: A page number within the paginated result set. + :param int page_size: Number of results to return per page. + :return: list[Repository] + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['owner', 'page', 'page_size'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method repos_list" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'owner' is set + if self.api_client.client_side_validation and ('owner' not in params or + params['owner'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `repos_list`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'owner' in params: + path_params['owner'] = params['owner'] # noqa: E501 + + query_params = [] + if 'page' in params: + query_params.append(('page', params['page'])) # noqa: E501 + if 'page_size' in params: + query_params.append(('page_size', params['page_size'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = ['apikey'] # noqa: E501 + + return self.api_client.call_api( + '/repos/{owner}/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='list[Repository]', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def repos_partial_update(self, owner, identifier, **kwargs): # noqa: E501 + """Update details about a repository in a given namespace. # noqa: E501 + + Update details about a repository in a given namespace. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.repos_partial_update(owner, identifier, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str identifier: (required) + :param ReposPartialUpdate data: + :return: Repository + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.repos_partial_update_with_http_info(owner, identifier, **kwargs) # noqa: E501 + else: + (data) = self.repos_partial_update_with_http_info(owner, identifier, **kwargs) # noqa: E501 + return data + + def repos_partial_update_with_http_info(self, owner, identifier, **kwargs): # noqa: E501 + """Update details about a repository in a given namespace. # noqa: E501 + + Update details about a repository in a given namespace. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.repos_partial_update_with_http_info(owner, identifier, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str identifier: (required) + :param ReposPartialUpdate data: + :return: Repository + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['owner', 'identifier', 'data'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method repos_partial_update" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'owner' is set + if self.api_client.client_side_validation and ('owner' not in params or + params['owner'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `repos_partial_update`") # noqa: E501 + # verify the required parameter 'identifier' is set + if self.api_client.client_side_validation and ('identifier' not in params or + params['identifier'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `identifier` when calling `repos_partial_update`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'owner' in params: + path_params['owner'] = params['owner'] # noqa: E501 + if 'identifier' in params: + path_params['identifier'] = params['identifier'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'data' in params: + body_params = params['data'] + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['apikey'] # noqa: E501 + + return self.api_client.call_api( + '/repos/{owner}/{identifier}/', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Repository', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def repos_read(self, owner, identifier, **kwargs): # noqa: E501 + """Get a specific repository. # noqa: E501 + + Get a specific repository. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.repos_read(owner, identifier, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str identifier: (required) + :return: Repository + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.repos_read_with_http_info(owner, identifier, **kwargs) # noqa: E501 + else: + (data) = self.repos_read_with_http_info(owner, identifier, **kwargs) # noqa: E501 + return data + + def repos_read_with_http_info(self, owner, identifier, **kwargs): # noqa: E501 + """Get a specific repository. # noqa: E501 + + Get a specific repository. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.repos_read_with_http_info(owner, identifier, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str identifier: (required) + :return: Repository + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['owner', 'identifier'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method repos_read" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'owner' is set + if self.api_client.client_side_validation and ('owner' not in params or + params['owner'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `repos_read`") # noqa: E501 + # verify the required parameter 'identifier' is set + if self.api_client.client_side_validation and ('identifier' not in params or + params['identifier'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `identifier` when calling `repos_read`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'owner' in params: + path_params['owner'] = params['owner'] # noqa: E501 + if 'identifier' in params: + path_params['identifier'] = params['identifier'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = ['apikey'] # noqa: E501 + + return self.api_client.call_api( + '/repos/{owner}/{identifier}/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Repository', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/bindings/python/src/cloudsmith_api/api/status_api.py b/bindings/python/src/cloudsmith_api/api/status_api.py new file mode 100644 index 00000000..b7381274 --- /dev/null +++ b/bindings/python/src/cloudsmith_api/api/status_api.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + Cloudsmith API + + The API to the Cloudsmith Service # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudsmith.io + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from cloudsmith_api.api_client import ApiClient + + +class StatusApi(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def status_check_basic(self, **kwargs): # noqa: E501 + """Endpoint to check basic API connectivity. # noqa: E501 + + Endpoint to check basic API connectivity. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.status_check_basic(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: StatusBasic + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.status_check_basic_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.status_check_basic_with_http_info(**kwargs) # noqa: E501 + return data + + def status_check_basic_with_http_info(self, **kwargs): # noqa: E501 + """Endpoint to check basic API connectivity. # noqa: E501 + + Endpoint to check basic API connectivity. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.status_check_basic_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: StatusBasic + If the method is called asynchronously, + returns the request thread. + """ + + all_params = [] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method status_check_basic" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/status/check/basic/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='StatusBasic', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/bindings/python/src/cloudsmith_api/api/storage_regions_api.py b/bindings/python/src/cloudsmith_api/api/storage_regions_api.py new file mode 100644 index 00000000..8d6e2954 --- /dev/null +++ b/bindings/python/src/cloudsmith_api/api/storage_regions_api.py @@ -0,0 +1,208 @@ +# coding: utf-8 + +""" + Cloudsmith API + + The API to the Cloudsmith Service # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudsmith.io + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from cloudsmith_api.api_client import ApiClient + + +class StorageRegionsApi(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def storage_regions_list(self, **kwargs): # noqa: E501 + """Get a list of all available storage regions. # noqa: E501 + + Get a list of all available storage regions. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.storage_regions_list(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: list[StorageRegion] + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.storage_regions_list_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.storage_regions_list_with_http_info(**kwargs) # noqa: E501 + return data + + def storage_regions_list_with_http_info(self, **kwargs): # noqa: E501 + """Get a list of all available storage regions. # noqa: E501 + + Get a list of all available storage regions. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.storage_regions_list_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: list[StorageRegion] + If the method is called asynchronously, + returns the request thread. + """ + + all_params = [] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method storage_regions_list" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = ['apikey'] # noqa: E501 + + return self.api_client.call_api( + '/storage-regions/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='list[StorageRegion]', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def storage_regions_read(self, slug, **kwargs): # noqa: E501 + """Get a specific storage region. # noqa: E501 + + Get a specific storage region. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.storage_regions_read(slug, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str slug: (required) + :return: StorageRegion + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.storage_regions_read_with_http_info(slug, **kwargs) # noqa: E501 + else: + (data) = self.storage_regions_read_with_http_info(slug, **kwargs) # noqa: E501 + return data + + def storage_regions_read_with_http_info(self, slug, **kwargs): # noqa: E501 + """Get a specific storage region. # noqa: E501 + + Get a specific storage region. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.storage_regions_read_with_http_info(slug, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str slug: (required) + :return: StorageRegion + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['slug'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method storage_regions_read" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'slug' is set + if self.api_client.client_side_validation and ('slug' not in params or + params['slug'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `slug` when calling `storage_regions_read`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'slug' in params: + path_params['slug'] = params['slug'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = ['apikey'] # noqa: E501 + + return self.api_client.call_api( + '/storage-regions/{slug}/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='StorageRegion', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/bindings/python/src/cloudsmith_api/api/user_api.py b/bindings/python/src/cloudsmith_api/api/user_api.py new file mode 100644 index 00000000..5d9a1062 --- /dev/null +++ b/bindings/python/src/cloudsmith_api/api/user_api.py @@ -0,0 +1,208 @@ +# coding: utf-8 + +""" + Cloudsmith API + + The API to the Cloudsmith Service # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudsmith.io + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from cloudsmith_api.api_client import ApiClient + + +class UserApi(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def user_self(self, **kwargs): # noqa: E501 + """Provide a brief for the current user (if any). # noqa: E501 + + Provide a brief for the current user (if any). # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.user_self(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: UserBrief + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.user_self_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.user_self_with_http_info(**kwargs) # noqa: E501 + return data + + def user_self_with_http_info(self, **kwargs): # noqa: E501 + """Provide a brief for the current user (if any). # noqa: E501 + + Provide a brief for the current user (if any). # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.user_self_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: UserBrief + If the method is called asynchronously, + returns the request thread. + """ + + all_params = [] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method user_self" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = ['apikey'] # noqa: E501 + + return self.api_client.call_api( + '/user/self/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UserBrief', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def user_token_create(self, **kwargs): # noqa: E501 + """Retrieve the API key/token for the authenticated user. # noqa: E501 + + Retrieve the API key/token for the authenticated user. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.user_token_create(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param UserTokenCreate data: + :return: UserAuthToken + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.user_token_create_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.user_token_create_with_http_info(**kwargs) # noqa: E501 + return data + + def user_token_create_with_http_info(self, **kwargs): # noqa: E501 + """Retrieve the API key/token for the authenticated user. # noqa: E501 + + Retrieve the API key/token for the authenticated user. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.user_token_create_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param UserTokenCreate data: + :return: UserAuthToken + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['data'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method user_token_create" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'data' in params: + body_params = params['data'] + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['apikey'] # noqa: E501 + + return self.api_client.call_api( + '/user/token/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UserAuthToken', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/bindings/python/src/cloudsmith_api/api/users_api.py b/bindings/python/src/cloudsmith_api/api/users_api.py new file mode 100644 index 00000000..f3d84a00 --- /dev/null +++ b/bindings/python/src/cloudsmith_api/api/users_api.py @@ -0,0 +1,125 @@ +# coding: utf-8 + +""" + Cloudsmith API + + The API to the Cloudsmith Service # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudsmith.io + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from cloudsmith_api.api_client import ApiClient + + +class UsersApi(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def users_profile_read(self, slug, **kwargs): # noqa: E501 + """Provide a brief for the specified user (if any). # noqa: E501 + + Provide a brief for the specified user (if any). # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.users_profile_read(slug, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str slug: (required) + :return: UserProfile + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.users_profile_read_with_http_info(slug, **kwargs) # noqa: E501 + else: + (data) = self.users_profile_read_with_http_info(slug, **kwargs) # noqa: E501 + return data + + def users_profile_read_with_http_info(self, slug, **kwargs): # noqa: E501 + """Provide a brief for the specified user (if any). # noqa: E501 + + Provide a brief for the specified user (if any). # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.users_profile_read_with_http_info(slug, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str slug: (required) + :return: UserProfile + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['slug'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method users_profile_read" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'slug' is set + if self.api_client.client_side_validation and ('slug' not in params or + params['slug'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `slug` when calling `users_profile_read`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'slug' in params: + path_params['slug'] = params['slug'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = ['apikey'] # noqa: E501 + + return self.api_client.call_api( + '/users/profile/{slug}/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UserProfile', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/bindings/python/src/cloudsmith_api/api/vulnerabilities_api.py b/bindings/python/src/cloudsmith_api/api/vulnerabilities_api.py new file mode 100644 index 00000000..197b6573 --- /dev/null +++ b/bindings/python/src/cloudsmith_api/api/vulnerabilities_api.py @@ -0,0 +1,470 @@ +# coding: utf-8 + +""" + Cloudsmith API + + The API to the Cloudsmith Service # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudsmith.io + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from cloudsmith_api.api_client import ApiClient + + +class VulnerabilitiesApi(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def vulnerabilities_list(self, owner, **kwargs): # noqa: E501 + """Lists scan results for a specific namespace. # noqa: E501 + + Lists scan results for a specific namespace. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.vulnerabilities_list(owner, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param int page: A page number within the paginated result set. + :param int page_size: Number of results to return per page. + :return: list[VulnerabilityScanResultsList] + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.vulnerabilities_list_with_http_info(owner, **kwargs) # noqa: E501 + else: + (data) = self.vulnerabilities_list_with_http_info(owner, **kwargs) # noqa: E501 + return data + + def vulnerabilities_list_with_http_info(self, owner, **kwargs): # noqa: E501 + """Lists scan results for a specific namespace. # noqa: E501 + + Lists scan results for a specific namespace. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.vulnerabilities_list_with_http_info(owner, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param int page: A page number within the paginated result set. + :param int page_size: Number of results to return per page. + :return: list[VulnerabilityScanResultsList] + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['owner', 'page', 'page_size'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method vulnerabilities_list" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'owner' is set + if self.api_client.client_side_validation and ('owner' not in params or + params['owner'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `vulnerabilities_list`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'owner' in params: + path_params['owner'] = params['owner'] # noqa: E501 + + query_params = [] + if 'page' in params: + query_params.append(('page', params['page'])) # noqa: E501 + if 'page_size' in params: + query_params.append(('page_size', params['page_size'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = ['apikey'] # noqa: E501 + + return self.api_client.call_api( + '/vulnerabilities/{owner}/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='list[VulnerabilityScanResultsList]', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def vulnerabilities_list0(self, owner, repo, **kwargs): # noqa: E501 + """Lists scan results for a specific repository. # noqa: E501 + + Lists scan results for a specific repository. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.vulnerabilities_list0(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param int page: A page number within the paginated result set. + :param int page_size: Number of results to return per page. + :return: list[VulnerabilityScanResultsList] + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.vulnerabilities_list0_with_http_info(owner, repo, **kwargs) # noqa: E501 + else: + (data) = self.vulnerabilities_list0_with_http_info(owner, repo, **kwargs) # noqa: E501 + return data + + def vulnerabilities_list0_with_http_info(self, owner, repo, **kwargs): # noqa: E501 + """Lists scan results for a specific repository. # noqa: E501 + + Lists scan results for a specific repository. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.vulnerabilities_list0_with_http_info(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param int page: A page number within the paginated result set. + :param int page_size: Number of results to return per page. + :return: list[VulnerabilityScanResultsList] + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['owner', 'repo', 'page', 'page_size'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method vulnerabilities_list0" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'owner' is set + if self.api_client.client_side_validation and ('owner' not in params or + params['owner'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `vulnerabilities_list0`") # noqa: E501 + # verify the required parameter 'repo' is set + if self.api_client.client_side_validation and ('repo' not in params or + params['repo'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `repo` when calling `vulnerabilities_list0`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'owner' in params: + path_params['owner'] = params['owner'] # noqa: E501 + if 'repo' in params: + path_params['repo'] = params['repo'] # noqa: E501 + + query_params = [] + if 'page' in params: + query_params.append(('page', params['page'])) # noqa: E501 + if 'page_size' in params: + query_params.append(('page_size', params['page_size'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = ['apikey'] # noqa: E501 + + return self.api_client.call_api( + '/vulnerabilities/{owner}/{repo}/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='list[VulnerabilityScanResultsList]', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def vulnerabilities_list1(self, owner, repo, package, **kwargs): # noqa: E501 + """Lists scan results for a specific package. # noqa: E501 + + Lists scan results for a specific package. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.vulnerabilities_list1(owner, repo, package, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param str package: (required) + :param int page: A page number within the paginated result set. + :param int page_size: Number of results to return per page. + :return: list[VulnerabilityScanResultsList] + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.vulnerabilities_list1_with_http_info(owner, repo, package, **kwargs) # noqa: E501 + else: + (data) = self.vulnerabilities_list1_with_http_info(owner, repo, package, **kwargs) # noqa: E501 + return data + + def vulnerabilities_list1_with_http_info(self, owner, repo, package, **kwargs): # noqa: E501 + """Lists scan results for a specific package. # noqa: E501 + + Lists scan results for a specific package. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.vulnerabilities_list1_with_http_info(owner, repo, package, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param str package: (required) + :param int page: A page number within the paginated result set. + :param int page_size: Number of results to return per page. + :return: list[VulnerabilityScanResultsList] + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['owner', 'repo', 'package', 'page', 'page_size'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method vulnerabilities_list1" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'owner' is set + if self.api_client.client_side_validation and ('owner' not in params or + params['owner'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `vulnerabilities_list1`") # noqa: E501 + # verify the required parameter 'repo' is set + if self.api_client.client_side_validation and ('repo' not in params or + params['repo'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `repo` when calling `vulnerabilities_list1`") # noqa: E501 + # verify the required parameter 'package' is set + if self.api_client.client_side_validation and ('package' not in params or + params['package'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `package` when calling `vulnerabilities_list1`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'owner' in params: + path_params['owner'] = params['owner'] # noqa: E501 + if 'repo' in params: + path_params['repo'] = params['repo'] # noqa: E501 + if 'package' in params: + path_params['package'] = params['package'] # noqa: E501 + + query_params = [] + if 'page' in params: + query_params.append(('page', params['page'])) # noqa: E501 + if 'page_size' in params: + query_params.append(('page_size', params['page_size'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = ['apikey'] # noqa: E501 + + return self.api_client.call_api( + '/vulnerabilities/{owner}/{repo}/{package}/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='list[VulnerabilityScanResultsList]', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def vulnerabilities_read(self, owner, repo, package, scan_id, **kwargs): # noqa: E501 + """Returns a Scan Result. # noqa: E501 + + Returns a Scan Result. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.vulnerabilities_read(owner, repo, package, scan_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param str package: (required) + :param str scan_id: (required) + :return: VulnerabilityScanResults + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.vulnerabilities_read_with_http_info(owner, repo, package, scan_id, **kwargs) # noqa: E501 + else: + (data) = self.vulnerabilities_read_with_http_info(owner, repo, package, scan_id, **kwargs) # noqa: E501 + return data + + def vulnerabilities_read_with_http_info(self, owner, repo, package, scan_id, **kwargs): # noqa: E501 + """Returns a Scan Result. # noqa: E501 + + Returns a Scan Result. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.vulnerabilities_read_with_http_info(owner, repo, package, scan_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param str package: (required) + :param str scan_id: (required) + :return: VulnerabilityScanResults + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['owner', 'repo', 'package', 'scan_id'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method vulnerabilities_read" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'owner' is set + if self.api_client.client_side_validation and ('owner' not in params or + params['owner'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `vulnerabilities_read`") # noqa: E501 + # verify the required parameter 'repo' is set + if self.api_client.client_side_validation and ('repo' not in params or + params['repo'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `repo` when calling `vulnerabilities_read`") # noqa: E501 + # verify the required parameter 'package' is set + if self.api_client.client_side_validation and ('package' not in params or + params['package'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `package` when calling `vulnerabilities_read`") # noqa: E501 + # verify the required parameter 'scan_id' is set + if self.api_client.client_side_validation and ('scan_id' not in params or + params['scan_id'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `scan_id` when calling `vulnerabilities_read`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'owner' in params: + path_params['owner'] = params['owner'] # noqa: E501 + if 'repo' in params: + path_params['repo'] = params['repo'] # noqa: E501 + if 'package' in params: + path_params['package'] = params['package'] # noqa: E501 + if 'scan_id' in params: + path_params['scan_id'] = params['scan_id'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = ['apikey'] # noqa: E501 + + return self.api_client.call_api( + '/vulnerabilities/{owner}/{repo}/{package}/{scan_id}/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='VulnerabilityScanResults', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/bindings/python/src/cloudsmith_api/api/webhooks_api.py b/bindings/python/src/cloudsmith_api/api/webhooks_api.py new file mode 100644 index 00000000..abb781d9 --- /dev/null +++ b/bindings/python/src/cloudsmith_api/api/webhooks_api.py @@ -0,0 +1,577 @@ +# coding: utf-8 + +""" + Cloudsmith API + + The API to the Cloudsmith Service # noqa: E501 + + OpenAPI spec version: v1 + Contact: support@cloudsmith.io + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from cloudsmith_api.api_client import ApiClient + + +class WebhooksApi(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def webhooks_create(self, owner, repo, **kwargs): # noqa: E501 + """Create a specific webhook in a repository. # noqa: E501 + + Create a specific webhook in a repository. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.webhooks_create(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param WebhooksCreate data: + :return: RepositoryWebhook + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.webhooks_create_with_http_info(owner, repo, **kwargs) # noqa: E501 + else: + (data) = self.webhooks_create_with_http_info(owner, repo, **kwargs) # noqa: E501 + return data + + def webhooks_create_with_http_info(self, owner, repo, **kwargs): # noqa: E501 + """Create a specific webhook in a repository. # noqa: E501 + + Create a specific webhook in a repository. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.webhooks_create_with_http_info(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param WebhooksCreate data: + :return: RepositoryWebhook + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['owner', 'repo', 'data'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method webhooks_create" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'owner' is set + if self.api_client.client_side_validation and ('owner' not in params or + params['owner'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `webhooks_create`") # noqa: E501 + # verify the required parameter 'repo' is set + if self.api_client.client_side_validation and ('repo' not in params or + params['repo'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `repo` when calling `webhooks_create`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'owner' in params: + path_params['owner'] = params['owner'] # noqa: E501 + if 'repo' in params: + path_params['repo'] = params['repo'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'data' in params: + body_params = params['data'] + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['apikey'] # noqa: E501 + + return self.api_client.call_api( + '/webhooks/{owner}/{repo}/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='RepositoryWebhook', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def webhooks_delete(self, owner, repo, identifier, **kwargs): # noqa: E501 + """Delete a specific webhook in a repository. # noqa: E501 + + Delete a specific webhook in a repository. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.webhooks_delete(owner, repo, identifier, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param str identifier: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.webhooks_delete_with_http_info(owner, repo, identifier, **kwargs) # noqa: E501 + else: + (data) = self.webhooks_delete_with_http_info(owner, repo, identifier, **kwargs) # noqa: E501 + return data + + def webhooks_delete_with_http_info(self, owner, repo, identifier, **kwargs): # noqa: E501 + """Delete a specific webhook in a repository. # noqa: E501 + + Delete a specific webhook in a repository. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.webhooks_delete_with_http_info(owner, repo, identifier, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param str identifier: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['owner', 'repo', 'identifier'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method webhooks_delete" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'owner' is set + if self.api_client.client_side_validation and ('owner' not in params or + params['owner'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `webhooks_delete`") # noqa: E501 + # verify the required parameter 'repo' is set + if self.api_client.client_side_validation and ('repo' not in params or + params['repo'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `repo` when calling `webhooks_delete`") # noqa: E501 + # verify the required parameter 'identifier' is set + if self.api_client.client_side_validation and ('identifier' not in params or + params['identifier'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `identifier` when calling `webhooks_delete`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'owner' in params: + path_params['owner'] = params['owner'] # noqa: E501 + if 'repo' in params: + path_params['repo'] = params['repo'] # noqa: E501 + if 'identifier' in params: + path_params['identifier'] = params['identifier'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = ['apikey'] # noqa: E501 + + return self.api_client.call_api( + '/webhooks/{owner}/{repo}/{identifier}/', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def webhooks_list(self, owner, repo, **kwargs): # noqa: E501 + """Get a list of all webhooks in a repository. # noqa: E501 + + Get a list of all webhooks in a repository. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.webhooks_list(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param int page: A page number within the paginated result set. + :param int page_size: Number of results to return per page. + :return: list[RepositoryWebhook] + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.webhooks_list_with_http_info(owner, repo, **kwargs) # noqa: E501 + else: + (data) = self.webhooks_list_with_http_info(owner, repo, **kwargs) # noqa: E501 + return data + + def webhooks_list_with_http_info(self, owner, repo, **kwargs): # noqa: E501 + """Get a list of all webhooks in a repository. # noqa: E501 + + Get a list of all webhooks in a repository. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.webhooks_list_with_http_info(owner, repo, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param int page: A page number within the paginated result set. + :param int page_size: Number of results to return per page. + :return: list[RepositoryWebhook] + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['owner', 'repo', 'page', 'page_size'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method webhooks_list" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'owner' is set + if self.api_client.client_side_validation and ('owner' not in params or + params['owner'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `webhooks_list`") # noqa: E501 + # verify the required parameter 'repo' is set + if self.api_client.client_side_validation and ('repo' not in params or + params['repo'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `repo` when calling `webhooks_list`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'owner' in params: + path_params['owner'] = params['owner'] # noqa: E501 + if 'repo' in params: + path_params['repo'] = params['repo'] # noqa: E501 + + query_params = [] + if 'page' in params: + query_params.append(('page', params['page'])) # noqa: E501 + if 'page_size' in params: + query_params.append(('page_size', params['page_size'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = ['apikey'] # noqa: E501 + + return self.api_client.call_api( + '/webhooks/{owner}/{repo}/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='list[RepositoryWebhook]', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def webhooks_partial_update(self, owner, repo, identifier, **kwargs): # noqa: E501 + """Update a specific webhook in a repository. # noqa: E501 + + Update a specific webhook in a repository. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.webhooks_partial_update(owner, repo, identifier, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param str identifier: (required) + :param WebhooksPartialUpdate data: + :return: RepositoryWebhook + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.webhooks_partial_update_with_http_info(owner, repo, identifier, **kwargs) # noqa: E501 + else: + (data) = self.webhooks_partial_update_with_http_info(owner, repo, identifier, **kwargs) # noqa: E501 + return data + + def webhooks_partial_update_with_http_info(self, owner, repo, identifier, **kwargs): # noqa: E501 + """Update a specific webhook in a repository. # noqa: E501 + + Update a specific webhook in a repository. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.webhooks_partial_update_with_http_info(owner, repo, identifier, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param str identifier: (required) + :param WebhooksPartialUpdate data: + :return: RepositoryWebhook + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['owner', 'repo', 'identifier', 'data'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method webhooks_partial_update" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'owner' is set + if self.api_client.client_side_validation and ('owner' not in params or + params['owner'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `webhooks_partial_update`") # noqa: E501 + # verify the required parameter 'repo' is set + if self.api_client.client_side_validation and ('repo' not in params or + params['repo'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `repo` when calling `webhooks_partial_update`") # noqa: E501 + # verify the required parameter 'identifier' is set + if self.api_client.client_side_validation and ('identifier' not in params or + params['identifier'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `identifier` when calling `webhooks_partial_update`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'owner' in params: + path_params['owner'] = params['owner'] # noqa: E501 + if 'repo' in params: + path_params['repo'] = params['repo'] # noqa: E501 + if 'identifier' in params: + path_params['identifier'] = params['identifier'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'data' in params: + body_params = params['data'] + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['apikey'] # noqa: E501 + + return self.api_client.call_api( + '/webhooks/{owner}/{repo}/{identifier}/', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='RepositoryWebhook', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def webhooks_read(self, owner, repo, identifier, **kwargs): # noqa: E501 + """Views for working with repository webhooks. # noqa: E501 + + Views for working with repository webhooks. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.webhooks_read(owner, repo, identifier, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param str identifier: (required) + :return: RepositoryWebhook + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.webhooks_read_with_http_info(owner, repo, identifier, **kwargs) # noqa: E501 + else: + (data) = self.webhooks_read_with_http_info(owner, repo, identifier, **kwargs) # noqa: E501 + return data + + def webhooks_read_with_http_info(self, owner, repo, identifier, **kwargs): # noqa: E501 + """Views for working with repository webhooks. # noqa: E501 + + Views for working with repository webhooks. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.webhooks_read_with_http_info(owner, repo, identifier, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str repo: (required) + :param str identifier: (required) + :return: RepositoryWebhook + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['owner', 'repo', 'identifier'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method webhooks_read" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'owner' is set + if self.api_client.client_side_validation and ('owner' not in params or + params['owner'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `webhooks_read`") # noqa: E501 + # verify the required parameter 'repo' is set + if self.api_client.client_side_validation and ('repo' not in params or + params['repo'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `repo` when calling `webhooks_read`") # noqa: E501 + # verify the required parameter 'identifier' is set + if self.api_client.client_side_validation and ('identifier' not in params or + params['identifier'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `identifier` when calling `webhooks_read`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'owner' in params: + path_params['owner'] = params['owner'] # noqa: E501 + if 'repo' in params: + path_params['repo'] = params['repo'] # noqa: E501 + if 'identifier' in params: + path_params['identifier'] = params['identifier'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = ['apikey'] # noqa: E501 + + return self.api_client.call_api( + '/webhooks/{owner}/{repo}/{identifier}/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='RepositoryWebhook', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/bindings/python/src/cloudsmith_api/api_client.py b/bindings/python/src/cloudsmith_api/api_client.py index 93ec35a5..8f53633b 100644 --- a/bindings/python/src/cloudsmith_api/api_client.py +++ b/bindings/python/src/cloudsmith_api/api_client.py @@ -2,7 +2,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -11,27 +11,25 @@ from __future__ import absolute_import -import os -import re +import datetime import json import mimetypes +from multiprocessing.pool import ThreadPool +import os +import re import tempfile -import threading - -from datetime import date, datetime # python 2 and python 3 compatibility library -from six import PY3, integer_types, iteritems, text_type +import six from six.moves.urllib.parse import quote -from . import models -from .configuration import Configuration -from .rest import ApiException, RESTClientObject +from cloudsmith_api.configuration import Configuration +import cloudsmith_api.models +from cloudsmith_api import rest class ApiClient(object): - """ - Generic API client for Swagger client library builds. + """Generic API client for Swagger client library builds. Swagger generic API client. This client handles the client- server communication, and is invariant across implementations. Specifics of @@ -42,64 +40,74 @@ class ApiClient(object): Ref: https://github.com/swagger-api/swagger-codegen Do not edit the class manually. - :param host: The base path for the server to call. + :param configuration: .Configuration object for this client :param header_name: a header to pass when making calls to the API. - :param header_value: a header value to pass when making calls to the API. + :param header_value: a header value to pass when making calls to + the API. + :param cookie: a cookie to include in the header when making calls + to the API """ - PRIMITIVE_TYPES = (float, bool, bytes, text_type) + integer_types + PRIMITIVE_TYPES = (float, bool, bytes, six.text_type) + six.integer_types NATIVE_TYPES_MAPPING = { 'int': int, - 'long': int if PY3 else long, + 'long': int if six.PY3 else long, # noqa: F821 'float': float, 'str': str, 'bool': bool, - 'date': date, - 'datetime': datetime, + 'date': datetime.date, + 'datetime': datetime.datetime, 'object': object, } - def __init__(self, host=None, header_name=None, header_value=None, cookie=None): - """ - Constructor of the class. - """ - self.rest_client = RESTClientObject() + def __init__(self, configuration=None, header_name=None, header_value=None, + cookie=None): + if configuration is None: + configuration = Configuration() + self.configuration = configuration + + # Use the pool property to lazily initialize the ThreadPool. + self._pool = None + self.rest_client = rest.RESTClientObject(configuration) self.default_headers = {} if header_name is not None: self.default_headers[header_name] = header_value - if host is None: - self.host = Configuration().host - else: - self.host = host self.cookie = cookie # Set default User-Agent. - self.user_agent = 'Swagger-Codegen/1.30.0/python' + self.user_agent = 'Swagger-Codegen/1.33.7/python' + self.client_side_validation = configuration.client_side_validation + + def __del__(self): + if self._pool is not None: + self._pool.close() + self._pool.join() + + @property + def pool(self): + if self._pool is None: + self._pool = ThreadPool() + return self._pool @property def user_agent(self): - """ - Gets user agent. - """ + """User agent for this API client""" return self.default_headers['User-Agent'] @user_agent.setter def user_agent(self, value): - """ - Sets user agent. - """ self.default_headers['User-Agent'] = value def set_default_header(self, header_name, header_value): self.default_headers[header_name] = header_value - def __call_api(self, resource_path, method, - path_params=None, query_params=None, header_params=None, - body=None, post_params=None, files=None, - response_type=None, auth_settings=None, callback=None, - _return_http_data_only=None, collection_formats=None, _preload_content=True, - _request_timeout=None): + def __call_api( + self, resource_path, method, path_params=None, + query_params=None, header_params=None, body=None, post_params=None, + files=None, response_type=None, auth_settings=None, + _return_http_data_only=None, collection_formats=None, + _preload_content=True, _request_timeout=None): - config = Configuration() + config = self.configuration # header parameters header_params = header_params or {} @@ -119,7 +127,9 @@ def __call_api(self, resource_path, method, for k, v in path_params: # specified safe chars, encode everything resource_path = resource_path.replace( - '{%s}' % k, quote(str(v), safe=config.safe_chars_for_path_param)) + '{%s}' % k, + quote(str(v), safe=config.safe_chars_for_path_param) + ) # query parameters if query_params: @@ -142,15 +152,14 @@ def __call_api(self, resource_path, method, body = self.sanitize_for_serialization(body) # request url - url = self.host + resource_path + url = self.configuration.host + resource_path # perform request and return response - response_data = self.request(method, url, - query_params=query_params, - headers=header_params, - post_params=post_params, body=body, - _preload_content=_preload_content, - _request_timeout=_request_timeout) + response_data = self.request( + method, url, query_params=query_params, headers=header_params, + post_params=post_params, body=body, + _preload_content=_preload_content, + _request_timeout=_request_timeout) self.last_response = response_data @@ -162,19 +171,14 @@ def __call_api(self, resource_path, method, else: return_data = None - if callback: - if _return_http_data_only: - callback(return_data) - else: - callback((return_data, response_data.status, response_data.getheaders())) - elif _return_http_data_only: + if _return_http_data_only: return (return_data) else: - return (return_data, response_data.status, response_data.getheaders()) + return (return_data, response_data.status, + response_data.getheaders()) def sanitize_for_serialization(self, obj): - """ - Builds a JSON POST object. + """Builds a JSON POST object. If obj is None, return None. If obj is str, int, long, float, bool, return directly. @@ -197,7 +201,7 @@ def sanitize_for_serialization(self, obj): elif isinstance(obj, tuple): return tuple(self.sanitize_for_serialization(sub_obj) for sub_obj in obj) - elif isinstance(obj, (datetime, date)): + elif isinstance(obj, (datetime.datetime, datetime.date)): return obj.isoformat() if isinstance(obj, dict): @@ -209,15 +213,14 @@ def sanitize_for_serialization(self, obj): # Convert attribute name to json key in # model definition for request. obj_dict = {obj.attribute_map[attr]: getattr(obj, attr) - for attr, _ in iteritems(obj.swagger_types) + for attr, _ in six.iteritems(obj.swagger_types) if getattr(obj, attr) is not None} return {key: self.sanitize_for_serialization(val) - for key, val in iteritems(obj_dict)} + for key, val in six.iteritems(obj_dict)} def deserialize(self, response, response_type): - """ - Deserializes response into an object. + """Deserializes response into an object. :param response: RESTResponse object to be deserialized. :param response_type: class literal for @@ -239,8 +242,7 @@ def deserialize(self, response, response_type): return self.__deserialize(data, response_type) def __deserialize(self, data, klass): - """ - Deserializes dict, list, str into an object. + """Deserializes dict, list, str into an object. :param data: dict, list or str. :param klass: class literal, or string of class name. @@ -252,28 +254,28 @@ def __deserialize(self, data, klass): if type(klass) == str: if klass.startswith('list['): - sub_kls = re.match('list\[(.*)\]', klass).group(1) + sub_kls = re.match(r'list\[(.*)\]', klass).group(1) return [self.__deserialize(sub_data, sub_kls) for sub_data in data] if klass.startswith('dict('): - sub_kls = re.match('dict\(([^,]*), (.*)\)', klass).group(2) + sub_kls = re.match(r'dict\(([^,]*), (.*)\)', klass).group(2) return {k: self.__deserialize(v, sub_kls) - for k, v in iteritems(data)} + for k, v in six.iteritems(data)} # convert str to class if klass in self.NATIVE_TYPES_MAPPING: klass = self.NATIVE_TYPES_MAPPING[klass] else: - klass = getattr(models, klass) + klass = getattr(cloudsmith_api.models, klass) if klass in self.PRIMITIVE_TYPES: return self.__deserialize_primitive(data, klass) elif klass == object: return self.__deserialize_object(data) - elif klass == date: + elif klass == datetime.date: return self.__deserialize_date(data) - elif klass == datetime: + elif klass == datetime.datetime: return self.__deserialize_datatime(data) else: return self.__deserialize_model(data, klass) @@ -281,12 +283,12 @@ def __deserialize(self, data, klass): def call_api(self, resource_path, method, path_params=None, query_params=None, header_params=None, body=None, post_params=None, files=None, - response_type=None, auth_settings=None, callback=None, - _return_http_data_only=None, collection_formats=None, _preload_content=True, - _request_timeout=None): - """ - Makes the HTTP request (synchronous) and return the deserialized data. - To make an async request, define a function for callback. + response_type=None, auth_settings=None, async_req=None, + _return_http_data_only=None, collection_formats=None, + _preload_content=True, _request_timeout=None): + """Makes the HTTP request (synchronous) and returns deserialized data. + + To make an async request, set the async_req parameter. :param resource_path: Path to method endpoint. :param method: Method to call. @@ -301,46 +303,47 @@ def call_api(self, resource_path, method, :param response: Response data type. :param files dict: key -> filename, value -> filepath, for `multipart/form-data`. - :param callback function: Callback function for asynchronous request. - If provide this parameter, - the request will be called asynchronously. - :param _return_http_data_only: response data without head status code and headers + :param async_req bool: execute request asynchronously + :param _return_http_data_only: response data without head status code + and headers :param collection_formats: dict of collection formats for path, query, header, and post parameters. - :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without - reading/decoding response data. Default is True. - :param _request_timeout: timeout setting for this request. If one number provided, it will be total request - timeout. It can also be a pair (tuple) of (connection, read) timeouts. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: - If provide parameter callback, + If async_req parameter is True, the request will be called asynchronously. The method will return the request thread. - If parameter callback is None, + If parameter async_req is False or missing, then the method will return the response directly. """ - if callback is None: + if not async_req: return self.__call_api(resource_path, method, path_params, query_params, header_params, body, post_params, files, - response_type, auth_settings, callback, - _return_http_data_only, collection_formats, _preload_content, _request_timeout) + response_type, auth_settings, + _return_http_data_only, collection_formats, + _preload_content, _request_timeout) else: - thread = threading.Thread(target=self.__call_api, - args=(resource_path, method, - path_params, query_params, - header_params, body, - post_params, files, - response_type, auth_settings, - callback, _return_http_data_only, - collection_formats, _preload_content, _request_timeout)) - thread.start() + thread = self.pool.apply_async(self.__call_api, (resource_path, + method, path_params, query_params, + header_params, body, + post_params, files, + response_type, auth_settings, + _return_http_data_only, + collection_formats, + _preload_content, _request_timeout)) return thread def request(self, method, url, query_params=None, headers=None, - post_params=None, body=None, _preload_content=True, _request_timeout=None): - """ - Makes the HTTP request using RESTClient. - """ + post_params=None, body=None, _preload_content=True, + _request_timeout=None): + """Makes the HTTP request using RESTClient.""" if method == "GET": return self.rest_client.GET(url, query_params=query_params, @@ -399,8 +402,7 @@ def request(self, method, url, query_params=None, headers=None, ) def parameters_to_tuples(self, params, collection_formats): - """ - Get parameters as list of tuples, formatting collections. + """Get parameters as list of tuples, formatting collections. :param params: Parameters as dict or list of two-tuples :param dict collection_formats: Parameter collection formats @@ -409,7 +411,7 @@ def parameters_to_tuples(self, params, collection_formats): new_params = [] if collection_formats is None: collection_formats = {} - for k, v in iteritems(params) if isinstance(params, dict) else params: + for k, v in six.iteritems(params) if isinstance(params, dict) else params: # noqa: E501 if k in collection_formats: collection_format = collection_formats[k] if collection_format == 'multi': @@ -430,8 +432,7 @@ def parameters_to_tuples(self, params, collection_formats): return new_params def prepare_post_parameters(self, post_params=None, files=None): - """ - Builds form parameters. + """Builds form parameters. :param post_params: Normal form parameters. :param files: File parameters. @@ -443,7 +444,7 @@ def prepare_post_parameters(self, post_params=None, files=None): params = post_params if files: - for k, v in iteritems(files): + for k, v in six.iteritems(files): if not v: continue file_names = v if type(v) is list else [v] @@ -451,15 +452,15 @@ def prepare_post_parameters(self, post_params=None, files=None): with open(n, 'rb') as f: filename = os.path.basename(f.name) filedata = f.read() - mimetype = mimetypes.\ - guess_type(filename)[0] or 'application/octet-stream' - params.append(tuple([k, tuple([filename, filedata, mimetype])])) + mimetype = (mimetypes.guess_type(filename)[0] or + 'application/octet-stream') + params.append( + tuple([k, tuple([filename, filedata, mimetype])])) return params def select_header_accept(self, accepts): - """ - Returns `Accept` based on an array of accepts provided. + """Returns `Accept` based on an array of accepts provided. :param accepts: List of headers. :return: Accept (e.g. application/json). @@ -475,8 +476,7 @@ def select_header_accept(self, accepts): return ', '.join(accepts) def select_header_content_type(self, content_types): - """ - Returns `Content-Type` based on an array of content_types provided. + """Returns `Content-Type` based on an array of content_types provided. :param content_types: List of content-types. :return: Content-Type (e.g. application/json). @@ -492,20 +492,17 @@ def select_header_content_type(self, content_types): return content_types[0] def update_params_for_auth(self, headers, querys, auth_settings): - """ - Updates header and query params based on authentication setting. + """Updates header and query params based on authentication setting. :param headers: Header parameters dict to be updated. :param querys: Query parameters tuple list to be updated. :param auth_settings: Authentication setting identifiers list. """ - config = Configuration() - if not auth_settings: return for auth in auth_settings: - auth_setting = config.auth_settings().get(auth) + auth_setting = self.configuration.auth_settings().get(auth) if auth_setting: if not auth_setting['value']: continue @@ -519,24 +516,22 @@ def update_params_for_auth(self, headers, querys, auth_settings): ) def __deserialize_file(self, response): - """ + """Deserializes body to file + Saves response body into a file in a temporary folder, using the filename from the `Content-Disposition` header if provided. :param response: RESTResponse. :return: file path. """ - config = Configuration() - - fd, path = tempfile.mkstemp(dir=config.temp_folder_path) + fd, path = tempfile.mkstemp(dir=self.configuration.temp_folder_path) os.close(fd) os.remove(path) content_disposition = response.getheader("Content-Disposition") if content_disposition: - filename = re.\ - search(r'filename=[\'"]?([^\'"\s]+)[\'"]?', content_disposition).\ - group(1) + filename = re.search(r'filename=[\'"]?([^\'"\s]+)[\'"]?', + content_disposition).group(1) path = os.path.join(os.path.dirname(path), filename) with open(path, "w") as f: @@ -545,8 +540,7 @@ def __deserialize_file(self, response): return path def __deserialize_primitive(self, data, klass): - """ - Deserializes string to primitive type. + """Deserializes string to primitive type. :param data: str. :param klass: class literal. @@ -556,21 +550,19 @@ def __deserialize_primitive(self, data, klass): try: return klass(data) except UnicodeEncodeError: - return unicode(data) + return six.text_type(data) except TypeError: return data def __deserialize_object(self, value): - """ - Return a original value. + """Return a original value. :return: object. """ return value def __deserialize_date(self, string): - """ - Deserializes string to date. + """Deserializes string to date. :param string: str. :return: date. @@ -581,14 +573,13 @@ def __deserialize_date(self, string): except ImportError: return string except ValueError: - raise ApiException( + raise rest.ApiException( status=0, - reason="Failed to parse `{0}` into a date object".format(string) + reason="Failed to parse `{0}` as date object".format(string) ) def __deserialize_datatime(self, string): - """ - Deserializes string to datetime. + """Deserializes string to datetime. The string should be in iso8601 datetime format. @@ -601,33 +592,48 @@ def __deserialize_datatime(self, string): except ImportError: return string except ValueError: - raise ApiException( + raise rest.ApiException( status=0, reason=( - "Failed to parse `{0}` into a datetime object" + "Failed to parse `{0}` as datetime object" .format(string) ) ) + def __hasattr(self, object, name): + return name in object.__class__.__dict__ + def __deserialize_model(self, data, klass): - """ - Deserializes list or dict to model. + """Deserializes list or dict to model. :param data: dict, list. :param klass: class literal. :return: model object. """ - if not klass.swagger_types: + + if (not klass.swagger_types and + not self.__hasattr(klass, 'get_real_child_model')): return data kwargs = {} - for attr, attr_type in iteritems(klass.swagger_types): - if data is not None \ - and klass.attribute_map[attr] in data \ - and isinstance(data, (list, dict)): - value = data[klass.attribute_map[attr]] - kwargs[attr] = self.__deserialize(value, attr_type) - - instance = klass(**kwargs) - + if klass.swagger_types is not None: + for attr, attr_type in six.iteritems(klass.swagger_types): + if (data is not None and + klass.attribute_map[attr] in data and + isinstance(data, (list, dict))): + value = data[klass.attribute_map[attr]] + kwargs[attr] = self.__deserialize(value, attr_type) + + instance = klass(**kwargs) + + if (isinstance(instance, dict) and + klass.swagger_types is not None and + isinstance(data, dict)): + for key, value in data.items(): + if key not in klass.swagger_types: + instance[key] = value + if self.__hasattr(instance, 'get_real_child_model'): + klass_name = instance.get_real_child_model(data) + if klass_name: + instance = self.__deserialize(data, klass_name) return instance diff --git a/bindings/python/src/cloudsmith_api/apis/__init__.py b/bindings/python/src/cloudsmith_api/apis/__init__.py deleted file mode 100644 index 62720c69..00000000 --- a/bindings/python/src/cloudsmith_api/apis/__init__.py +++ /dev/null @@ -1,21 +0,0 @@ -from __future__ import absolute_import - -# import apis into api package -from .badges_api import BadgesApi -from .distros_api import DistrosApi -from .entitlements_api import EntitlementsApi -from .files_api import FilesApi -from .formats_api import FormatsApi -from .metrics_api import MetricsApi -from .namespaces_api import NamespacesApi -from .orgs_api import OrgsApi -from .packages_api import PackagesApi -from .quota_api import QuotaApi -from .rates_api import RatesApi -from .repos_api import ReposApi -from .status_api import StatusApi -from .storageregions_api import StorageregionsApi -from .user_api import UserApi -from .users_api import UsersApi -from .vulnerabilities_api import VulnerabilitiesApi -from .webhooks_api import WebhooksApi diff --git a/bindings/python/src/cloudsmith_api/apis/distros_api.py b/bindings/python/src/cloudsmith_api/apis/distros_api.py deleted file mode 100644 index a47453a8..00000000 --- a/bindings/python/src/cloudsmith_api/apis/distros_api.py +++ /dev/null @@ -1,229 +0,0 @@ -# coding: utf-8 - -""" - Cloudsmith API - - The API to the Cloudsmith Service - - OpenAPI spec version: v1 - Contact: support@cloudsmith.io - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import sys -import os -import re - -# python 2 and python 3 compatibility library -from six import iteritems - -from ..configuration import Configuration -from ..api_client import ApiClient - - -class DistrosApi(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen - """ - - def __init__(self, api_client=None): - config = Configuration() - if api_client: - self.api_client = api_client - else: - if not config.api_client: - config.api_client = ApiClient() - self.api_client = config.api_client - - def distros_list(self, **kwargs): - """ - Get a list of all supported distributions. - Get a list of all supported distributions. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.distros_list(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :return: list[Distribution] - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.distros_list_with_http_info(**kwargs) - else: - (data) = self.distros_list_with_http_info(**kwargs) - return data - - def distros_list_with_http_info(self, **kwargs): - """ - Get a list of all supported distributions. - Get a list of all supported distributions. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.distros_list_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :return: list[Distribution] - If the method is called asynchronously, - returns the request thread. - """ - - all_params = [] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method distros_list" % key - ) - params[key] = val - del params['kwargs'] - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # Authentication setting - auth_settings = ['apikey'] - - return self.api_client.call_api('/distros/', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='list[Distribution]', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def distros_read(self, slug, **kwargs): - """ - View for viewing/listing distributions. - View for viewing/listing distributions. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.distros_read(slug, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str slug: (required) - :return: Distribution - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.distros_read_with_http_info(slug, **kwargs) - else: - (data) = self.distros_read_with_http_info(slug, **kwargs) - return data - - def distros_read_with_http_info(self, slug, **kwargs): - """ - View for viewing/listing distributions. - View for viewing/listing distributions. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.distros_read_with_http_info(slug, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str slug: (required) - :return: Distribution - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['slug'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method distros_read" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'slug' is set - if ('slug' not in params) or (params['slug'] is None): - raise ValueError("Missing the required parameter `slug` when calling `distros_read`") - - - collection_formats = {} - - path_params = {} - if 'slug' in params: - path_params['slug'] = params['slug'] - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # Authentication setting - auth_settings = ['apikey'] - - return self.api_client.call_api('/distros/{slug}/', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='Distribution', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) diff --git a/bindings/python/src/cloudsmith_api/apis/entitlements_api.py b/bindings/python/src/cloudsmith_api/apis/entitlements_api.py deleted file mode 100644 index 7d02d99a..00000000 --- a/bindings/python/src/cloudsmith_api/apis/entitlements_api.py +++ /dev/null @@ -1,1208 +0,0 @@ -# coding: utf-8 - -""" - Cloudsmith API - - The API to the Cloudsmith Service - - OpenAPI spec version: v1 - Contact: support@cloudsmith.io - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import sys -import os -import re - -# python 2 and python 3 compatibility library -from six import iteritems - -from ..configuration import Configuration -from ..api_client import ApiClient - - -class EntitlementsApi(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen - """ - - def __init__(self, api_client=None): - config = Configuration() - if api_client: - self.api_client = api_client - else: - if not config.api_client: - config.api_client = ApiClient() - self.api_client = config.api_client - - def entitlements_create(self, owner, repo, **kwargs): - """ - Create a specific entitlement in a repository. - Create a specific entitlement in a repository. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.entitlements_create(owner, repo, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param bool show_tokens: Show entitlement token strings in results - :param EntitlementsCreate data: - :return: RepositoryToken - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.entitlements_create_with_http_info(owner, repo, **kwargs) - else: - (data) = self.entitlements_create_with_http_info(owner, repo, **kwargs) - return data - - def entitlements_create_with_http_info(self, owner, repo, **kwargs): - """ - Create a specific entitlement in a repository. - Create a specific entitlement in a repository. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.entitlements_create_with_http_info(owner, repo, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param bool show_tokens: Show entitlement token strings in results - :param EntitlementsCreate data: - :return: RepositoryToken - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['owner', 'repo', 'show_tokens', 'data'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method entitlements_create" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'owner' is set - if ('owner' not in params) or (params['owner'] is None): - raise ValueError("Missing the required parameter `owner` when calling `entitlements_create`") - # verify the required parameter 'repo' is set - if ('repo' not in params) or (params['repo'] is None): - raise ValueError("Missing the required parameter `repo` when calling `entitlements_create`") - - - collection_formats = {} - - path_params = {} - if 'owner' in params: - path_params['owner'] = params['owner'] - if 'repo' in params: - path_params['repo'] = params['repo'] - - query_params = [] - if 'show_tokens' in params: - query_params.append(('show_tokens', params['show_tokens'])) - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'data' in params: - body_params = params['data'] - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['apikey'] - - return self.api_client.call_api('/entitlements/{owner}/{repo}/', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='RepositoryToken', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def entitlements_delete(self, owner, repo, identifier, **kwargs): - """ - Delete a specific entitlement in a repository. - Delete a specific entitlement in a repository. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.entitlements_delete(owner, repo, identifier, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param str identifier: (required) - :return: None - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.entitlements_delete_with_http_info(owner, repo, identifier, **kwargs) - else: - (data) = self.entitlements_delete_with_http_info(owner, repo, identifier, **kwargs) - return data - - def entitlements_delete_with_http_info(self, owner, repo, identifier, **kwargs): - """ - Delete a specific entitlement in a repository. - Delete a specific entitlement in a repository. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.entitlements_delete_with_http_info(owner, repo, identifier, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param str identifier: (required) - :return: None - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['owner', 'repo', 'identifier'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method entitlements_delete" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'owner' is set - if ('owner' not in params) or (params['owner'] is None): - raise ValueError("Missing the required parameter `owner` when calling `entitlements_delete`") - # verify the required parameter 'repo' is set - if ('repo' not in params) or (params['repo'] is None): - raise ValueError("Missing the required parameter `repo` when calling `entitlements_delete`") - # verify the required parameter 'identifier' is set - if ('identifier' not in params) or (params['identifier'] is None): - raise ValueError("Missing the required parameter `identifier` when calling `entitlements_delete`") - - - collection_formats = {} - - path_params = {} - if 'owner' in params: - path_params['owner'] = params['owner'] - if 'repo' in params: - path_params['repo'] = params['repo'] - if 'identifier' in params: - path_params['identifier'] = params['identifier'] - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # Authentication setting - auth_settings = ['apikey'] - - return self.api_client.call_api('/entitlements/{owner}/{repo}/{identifier}/', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type=None, - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def entitlements_disable(self, owner, repo, identifier, **kwargs): - """ - Disable an entitlement token in a repository. - Disable an entitlement token in a repository. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.entitlements_disable(owner, repo, identifier, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param str identifier: (required) - :return: None - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.entitlements_disable_with_http_info(owner, repo, identifier, **kwargs) - else: - (data) = self.entitlements_disable_with_http_info(owner, repo, identifier, **kwargs) - return data - - def entitlements_disable_with_http_info(self, owner, repo, identifier, **kwargs): - """ - Disable an entitlement token in a repository. - Disable an entitlement token in a repository. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.entitlements_disable_with_http_info(owner, repo, identifier, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param str identifier: (required) - :return: None - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['owner', 'repo', 'identifier'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method entitlements_disable" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'owner' is set - if ('owner' not in params) or (params['owner'] is None): - raise ValueError("Missing the required parameter `owner` when calling `entitlements_disable`") - # verify the required parameter 'repo' is set - if ('repo' not in params) or (params['repo'] is None): - raise ValueError("Missing the required parameter `repo` when calling `entitlements_disable`") - # verify the required parameter 'identifier' is set - if ('identifier' not in params) or (params['identifier'] is None): - raise ValueError("Missing the required parameter `identifier` when calling `entitlements_disable`") - - - collection_formats = {} - - path_params = {} - if 'owner' in params: - path_params['owner'] = params['owner'] - if 'repo' in params: - path_params['repo'] = params['repo'] - if 'identifier' in params: - path_params['identifier'] = params['identifier'] - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # Authentication setting - auth_settings = ['apikey'] - - return self.api_client.call_api('/entitlements/{owner}/{repo}/{identifier}/disable/', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type=None, - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def entitlements_enable(self, owner, repo, identifier, **kwargs): - """ - Enable an entitlement token in a repository. - Enable an entitlement token in a repository. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.entitlements_enable(owner, repo, identifier, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param str identifier: (required) - :return: None - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.entitlements_enable_with_http_info(owner, repo, identifier, **kwargs) - else: - (data) = self.entitlements_enable_with_http_info(owner, repo, identifier, **kwargs) - return data - - def entitlements_enable_with_http_info(self, owner, repo, identifier, **kwargs): - """ - Enable an entitlement token in a repository. - Enable an entitlement token in a repository. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.entitlements_enable_with_http_info(owner, repo, identifier, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param str identifier: (required) - :return: None - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['owner', 'repo', 'identifier'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method entitlements_enable" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'owner' is set - if ('owner' not in params) or (params['owner'] is None): - raise ValueError("Missing the required parameter `owner` when calling `entitlements_enable`") - # verify the required parameter 'repo' is set - if ('repo' not in params) or (params['repo'] is None): - raise ValueError("Missing the required parameter `repo` when calling `entitlements_enable`") - # verify the required parameter 'identifier' is set - if ('identifier' not in params) or (params['identifier'] is None): - raise ValueError("Missing the required parameter `identifier` when calling `entitlements_enable`") - - - collection_formats = {} - - path_params = {} - if 'owner' in params: - path_params['owner'] = params['owner'] - if 'repo' in params: - path_params['repo'] = params['repo'] - if 'identifier' in params: - path_params['identifier'] = params['identifier'] - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # Authentication setting - auth_settings = ['apikey'] - - return self.api_client.call_api('/entitlements/{owner}/{repo}/{identifier}/enable/', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type=None, - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def entitlements_list(self, owner, repo, **kwargs): - """ - Get a list of all entitlements in a repository. - Get a list of all entitlements in a repository. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.entitlements_list(owner, repo, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param int page: A page number within the paginated result set. - :param int page_size: Number of results to return per page. - :param bool show_tokens: Show entitlement token strings in results - :return: list[RepositoryToken] - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.entitlements_list_with_http_info(owner, repo, **kwargs) - else: - (data) = self.entitlements_list_with_http_info(owner, repo, **kwargs) - return data - - def entitlements_list_with_http_info(self, owner, repo, **kwargs): - """ - Get a list of all entitlements in a repository. - Get a list of all entitlements in a repository. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.entitlements_list_with_http_info(owner, repo, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param int page: A page number within the paginated result set. - :param int page_size: Number of results to return per page. - :param bool show_tokens: Show entitlement token strings in results - :return: list[RepositoryToken] - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['owner', 'repo', 'page', 'page_size', 'show_tokens'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method entitlements_list" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'owner' is set - if ('owner' not in params) or (params['owner'] is None): - raise ValueError("Missing the required parameter `owner` when calling `entitlements_list`") - # verify the required parameter 'repo' is set - if ('repo' not in params) or (params['repo'] is None): - raise ValueError("Missing the required parameter `repo` when calling `entitlements_list`") - - - collection_formats = {} - - path_params = {} - if 'owner' in params: - path_params['owner'] = params['owner'] - if 'repo' in params: - path_params['repo'] = params['repo'] - - query_params = [] - if 'page' in params: - query_params.append(('page', params['page'])) - if 'page_size' in params: - query_params.append(('page_size', params['page_size'])) - if 'show_tokens' in params: - query_params.append(('show_tokens', params['show_tokens'])) - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # Authentication setting - auth_settings = ['apikey'] - - return self.api_client.call_api('/entitlements/{owner}/{repo}/', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='list[RepositoryToken]', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def entitlements_partial_update(self, owner, repo, identifier, **kwargs): - """ - Update a specific entitlement in a repository. - Update a specific entitlement in a repository. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.entitlements_partial_update(owner, repo, identifier, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param str identifier: (required) - :param bool show_tokens: Show entitlement token strings in results - :param EntitlementsPartialUpdate data: - :return: RepositoryToken - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.entitlements_partial_update_with_http_info(owner, repo, identifier, **kwargs) - else: - (data) = self.entitlements_partial_update_with_http_info(owner, repo, identifier, **kwargs) - return data - - def entitlements_partial_update_with_http_info(self, owner, repo, identifier, **kwargs): - """ - Update a specific entitlement in a repository. - Update a specific entitlement in a repository. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.entitlements_partial_update_with_http_info(owner, repo, identifier, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param str identifier: (required) - :param bool show_tokens: Show entitlement token strings in results - :param EntitlementsPartialUpdate data: - :return: RepositoryToken - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['owner', 'repo', 'identifier', 'show_tokens', 'data'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method entitlements_partial_update" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'owner' is set - if ('owner' not in params) or (params['owner'] is None): - raise ValueError("Missing the required parameter `owner` when calling `entitlements_partial_update`") - # verify the required parameter 'repo' is set - if ('repo' not in params) or (params['repo'] is None): - raise ValueError("Missing the required parameter `repo` when calling `entitlements_partial_update`") - # verify the required parameter 'identifier' is set - if ('identifier' not in params) or (params['identifier'] is None): - raise ValueError("Missing the required parameter `identifier` when calling `entitlements_partial_update`") - - - collection_formats = {} - - path_params = {} - if 'owner' in params: - path_params['owner'] = params['owner'] - if 'repo' in params: - path_params['repo'] = params['repo'] - if 'identifier' in params: - path_params['identifier'] = params['identifier'] - - query_params = [] - if 'show_tokens' in params: - query_params.append(('show_tokens', params['show_tokens'])) - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'data' in params: - body_params = params['data'] - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['apikey'] - - return self.api_client.call_api('/entitlements/{owner}/{repo}/{identifier}/', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='RepositoryToken', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def entitlements_read(self, owner, repo, identifier, **kwargs): - """ - Get a specific entitlement in a repository. - Get a specific entitlement in a repository. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.entitlements_read(owner, repo, identifier, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param str identifier: (required) - :param bool show_tokens: Show entitlement token strings in results - :return: RepositoryToken - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.entitlements_read_with_http_info(owner, repo, identifier, **kwargs) - else: - (data) = self.entitlements_read_with_http_info(owner, repo, identifier, **kwargs) - return data - - def entitlements_read_with_http_info(self, owner, repo, identifier, **kwargs): - """ - Get a specific entitlement in a repository. - Get a specific entitlement in a repository. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.entitlements_read_with_http_info(owner, repo, identifier, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param str identifier: (required) - :param bool show_tokens: Show entitlement token strings in results - :return: RepositoryToken - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['owner', 'repo', 'identifier', 'show_tokens'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method entitlements_read" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'owner' is set - if ('owner' not in params) or (params['owner'] is None): - raise ValueError("Missing the required parameter `owner` when calling `entitlements_read`") - # verify the required parameter 'repo' is set - if ('repo' not in params) or (params['repo'] is None): - raise ValueError("Missing the required parameter `repo` when calling `entitlements_read`") - # verify the required parameter 'identifier' is set - if ('identifier' not in params) or (params['identifier'] is None): - raise ValueError("Missing the required parameter `identifier` when calling `entitlements_read`") - - - collection_formats = {} - - path_params = {} - if 'owner' in params: - path_params['owner'] = params['owner'] - if 'repo' in params: - path_params['repo'] = params['repo'] - if 'identifier' in params: - path_params['identifier'] = params['identifier'] - - query_params = [] - if 'show_tokens' in params: - query_params.append(('show_tokens', params['show_tokens'])) - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # Authentication setting - auth_settings = ['apikey'] - - return self.api_client.call_api('/entitlements/{owner}/{repo}/{identifier}/', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='RepositoryToken', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def entitlements_refresh(self, owner, repo, identifier, **kwargs): - """ - Refresh an entitlement token in a repository. - Refresh an entitlement token in a repository. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.entitlements_refresh(owner, repo, identifier, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param str identifier: (required) - :param bool show_tokens: Show entitlement token strings in results - :param EntitlementsRefresh data: - :return: RepositoryTokenRefresh - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.entitlements_refresh_with_http_info(owner, repo, identifier, **kwargs) - else: - (data) = self.entitlements_refresh_with_http_info(owner, repo, identifier, **kwargs) - return data - - def entitlements_refresh_with_http_info(self, owner, repo, identifier, **kwargs): - """ - Refresh an entitlement token in a repository. - Refresh an entitlement token in a repository. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.entitlements_refresh_with_http_info(owner, repo, identifier, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param str identifier: (required) - :param bool show_tokens: Show entitlement token strings in results - :param EntitlementsRefresh data: - :return: RepositoryTokenRefresh - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['owner', 'repo', 'identifier', 'show_tokens', 'data'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method entitlements_refresh" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'owner' is set - if ('owner' not in params) or (params['owner'] is None): - raise ValueError("Missing the required parameter `owner` when calling `entitlements_refresh`") - # verify the required parameter 'repo' is set - if ('repo' not in params) or (params['repo'] is None): - raise ValueError("Missing the required parameter `repo` when calling `entitlements_refresh`") - # verify the required parameter 'identifier' is set - if ('identifier' not in params) or (params['identifier'] is None): - raise ValueError("Missing the required parameter `identifier` when calling `entitlements_refresh`") - - - collection_formats = {} - - path_params = {} - if 'owner' in params: - path_params['owner'] = params['owner'] - if 'repo' in params: - path_params['repo'] = params['repo'] - if 'identifier' in params: - path_params['identifier'] = params['identifier'] - - query_params = [] - if 'show_tokens' in params: - query_params.append(('show_tokens', params['show_tokens'])) - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'data' in params: - body_params = params['data'] - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['apikey'] - - return self.api_client.call_api('/entitlements/{owner}/{repo}/{identifier}/refresh/', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='RepositoryTokenRefresh', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def entitlements_reset(self, owner, repo, identifier, **kwargs): - """ - Reset the statistics for an entitlement token in a repository. - Reset the statistics for an entitlement token in a repository. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.entitlements_reset(owner, repo, identifier, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param str identifier: (required) - :param bool show_tokens: Show entitlement token strings in results - :return: None - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.entitlements_reset_with_http_info(owner, repo, identifier, **kwargs) - else: - (data) = self.entitlements_reset_with_http_info(owner, repo, identifier, **kwargs) - return data - - def entitlements_reset_with_http_info(self, owner, repo, identifier, **kwargs): - """ - Reset the statistics for an entitlement token in a repository. - Reset the statistics for an entitlement token in a repository. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.entitlements_reset_with_http_info(owner, repo, identifier, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param str identifier: (required) - :param bool show_tokens: Show entitlement token strings in results - :return: None - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['owner', 'repo', 'identifier', 'show_tokens'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method entitlements_reset" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'owner' is set - if ('owner' not in params) or (params['owner'] is None): - raise ValueError("Missing the required parameter `owner` when calling `entitlements_reset`") - # verify the required parameter 'repo' is set - if ('repo' not in params) or (params['repo'] is None): - raise ValueError("Missing the required parameter `repo` when calling `entitlements_reset`") - # verify the required parameter 'identifier' is set - if ('identifier' not in params) or (params['identifier'] is None): - raise ValueError("Missing the required parameter `identifier` when calling `entitlements_reset`") - - - collection_formats = {} - - path_params = {} - if 'owner' in params: - path_params['owner'] = params['owner'] - if 'repo' in params: - path_params['repo'] = params['repo'] - if 'identifier' in params: - path_params['identifier'] = params['identifier'] - - query_params = [] - if 'show_tokens' in params: - query_params.append(('show_tokens', params['show_tokens'])) - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # Authentication setting - auth_settings = ['apikey'] - - return self.api_client.call_api('/entitlements/{owner}/{repo}/{identifier}/reset/', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type=None, - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def entitlements_sync(self, owner, repo, **kwargs): - """ - Synchronise tokens from a source repository. - Synchronise tokens from a source repository. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.entitlements_sync(owner, repo, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param bool show_tokens: Show entitlement token strings in results - :param EntitlementsSync data: - :return: RepositoryTokenSync - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.entitlements_sync_with_http_info(owner, repo, **kwargs) - else: - (data) = self.entitlements_sync_with_http_info(owner, repo, **kwargs) - return data - - def entitlements_sync_with_http_info(self, owner, repo, **kwargs): - """ - Synchronise tokens from a source repository. - Synchronise tokens from a source repository. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.entitlements_sync_with_http_info(owner, repo, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param bool show_tokens: Show entitlement token strings in results - :param EntitlementsSync data: - :return: RepositoryTokenSync - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['owner', 'repo', 'show_tokens', 'data'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method entitlements_sync" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'owner' is set - if ('owner' not in params) or (params['owner'] is None): - raise ValueError("Missing the required parameter `owner` when calling `entitlements_sync`") - # verify the required parameter 'repo' is set - if ('repo' not in params) or (params['repo'] is None): - raise ValueError("Missing the required parameter `repo` when calling `entitlements_sync`") - - - collection_formats = {} - - path_params = {} - if 'owner' in params: - path_params['owner'] = params['owner'] - if 'repo' in params: - path_params['repo'] = params['repo'] - - query_params = [] - if 'show_tokens' in params: - query_params.append(('show_tokens', params['show_tokens'])) - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'data' in params: - body_params = params['data'] - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['apikey'] - - return self.api_client.call_api('/entitlements/{owner}/{repo}/sync/', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='RepositoryTokenSync', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) diff --git a/bindings/python/src/cloudsmith_api/apis/files_api.py b/bindings/python/src/cloudsmith_api/apis/files_api.py deleted file mode 100644 index f682b943..00000000 --- a/bindings/python/src/cloudsmith_api/apis/files_api.py +++ /dev/null @@ -1,619 +0,0 @@ -# coding: utf-8 - -""" - Cloudsmith API - - The API to the Cloudsmith Service - - OpenAPI spec version: v1 - Contact: support@cloudsmith.io - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import sys -import os -import re - -# python 2 and python 3 compatibility library -from six import iteritems - -from ..configuration import Configuration -from ..api_client import ApiClient - - -class FilesApi(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen - """ - - def __init__(self, api_client=None): - config = Configuration() - if api_client: - self.api_client = api_client - else: - if not config.api_client: - config.api_client = ApiClient() - self.api_client = config.api_client - - def files_abort(self, owner, repo, identifier, **kwargs): - """ - Abort a multipart file upload. - Abort a multipart file upload. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.files_abort(owner, repo, identifier, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param str identifier: (required) - :param FilesAbort data: - :return: None - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.files_abort_with_http_info(owner, repo, identifier, **kwargs) - else: - (data) = self.files_abort_with_http_info(owner, repo, identifier, **kwargs) - return data - - def files_abort_with_http_info(self, owner, repo, identifier, **kwargs): - """ - Abort a multipart file upload. - Abort a multipart file upload. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.files_abort_with_http_info(owner, repo, identifier, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param str identifier: (required) - :param FilesAbort data: - :return: None - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['owner', 'repo', 'identifier', 'data'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method files_abort" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'owner' is set - if ('owner' not in params) or (params['owner'] is None): - raise ValueError("Missing the required parameter `owner` when calling `files_abort`") - # verify the required parameter 'repo' is set - if ('repo' not in params) or (params['repo'] is None): - raise ValueError("Missing the required parameter `repo` when calling `files_abort`") - # verify the required parameter 'identifier' is set - if ('identifier' not in params) or (params['identifier'] is None): - raise ValueError("Missing the required parameter `identifier` when calling `files_abort`") - - - collection_formats = {} - - path_params = {} - if 'owner' in params: - path_params['owner'] = params['owner'] - if 'repo' in params: - path_params['repo'] = params['repo'] - if 'identifier' in params: - path_params['identifier'] = params['identifier'] - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'data' in params: - body_params = params['data'] - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['apikey'] - - return self.api_client.call_api('/files/{owner}/{repo}/{identifier}/abort/', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type=None, - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def files_complete(self, owner, repo, identifier, **kwargs): - """ - Complete a multipart file upload. - Complete a multipart file upload. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.files_complete(owner, repo, identifier, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param str identifier: (required) - :param FilesComplete data: - :return: PackageFileUpload - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.files_complete_with_http_info(owner, repo, identifier, **kwargs) - else: - (data) = self.files_complete_with_http_info(owner, repo, identifier, **kwargs) - return data - - def files_complete_with_http_info(self, owner, repo, identifier, **kwargs): - """ - Complete a multipart file upload. - Complete a multipart file upload. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.files_complete_with_http_info(owner, repo, identifier, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param str identifier: (required) - :param FilesComplete data: - :return: PackageFileUpload - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['owner', 'repo', 'identifier', 'data'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method files_complete" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'owner' is set - if ('owner' not in params) or (params['owner'] is None): - raise ValueError("Missing the required parameter `owner` when calling `files_complete`") - # verify the required parameter 'repo' is set - if ('repo' not in params) or (params['repo'] is None): - raise ValueError("Missing the required parameter `repo` when calling `files_complete`") - # verify the required parameter 'identifier' is set - if ('identifier' not in params) or (params['identifier'] is None): - raise ValueError("Missing the required parameter `identifier` when calling `files_complete`") - - - collection_formats = {} - - path_params = {} - if 'owner' in params: - path_params['owner'] = params['owner'] - if 'repo' in params: - path_params['repo'] = params['repo'] - if 'identifier' in params: - path_params['identifier'] = params['identifier'] - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'data' in params: - body_params = params['data'] - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['apikey'] - - return self.api_client.call_api('/files/{owner}/{repo}/{identifier}/complete/', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='PackageFileUpload', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def files_create(self, owner, repo, **kwargs): - """ - Request URL(s) to upload new package file upload(s) to. - Request URL(s) to upload new package file upload(s) to. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.files_create(owner, repo, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param FilesCreate data: - :return: PackageFileUpload - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.files_create_with_http_info(owner, repo, **kwargs) - else: - (data) = self.files_create_with_http_info(owner, repo, **kwargs) - return data - - def files_create_with_http_info(self, owner, repo, **kwargs): - """ - Request URL(s) to upload new package file upload(s) to. - Request URL(s) to upload new package file upload(s) to. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.files_create_with_http_info(owner, repo, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param FilesCreate data: - :return: PackageFileUpload - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['owner', 'repo', 'data'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method files_create" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'owner' is set - if ('owner' not in params) or (params['owner'] is None): - raise ValueError("Missing the required parameter `owner` when calling `files_create`") - # verify the required parameter 'repo' is set - if ('repo' not in params) or (params['repo'] is None): - raise ValueError("Missing the required parameter `repo` when calling `files_create`") - - - collection_formats = {} - - path_params = {} - if 'owner' in params: - path_params['owner'] = params['owner'] - if 'repo' in params: - path_params['repo'] = params['repo'] - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'data' in params: - body_params = params['data'] - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['apikey'] - - return self.api_client.call_api('/files/{owner}/{repo}/', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='PackageFileUpload', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def files_info(self, owner, repo, identifier, **kwargs): - """ - Get upload information for a multipart file upload. - Get upload information for a multipart file upload. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.files_info(owner, repo, identifier, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param str identifier: (required) - :return: PackageFilePartsUpload - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.files_info_with_http_info(owner, repo, identifier, **kwargs) - else: - (data) = self.files_info_with_http_info(owner, repo, identifier, **kwargs) - return data - - def files_info_with_http_info(self, owner, repo, identifier, **kwargs): - """ - Get upload information for a multipart file upload. - Get upload information for a multipart file upload. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.files_info_with_http_info(owner, repo, identifier, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param str identifier: (required) - :return: PackageFilePartsUpload - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['owner', 'repo', 'identifier'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method files_info" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'owner' is set - if ('owner' not in params) or (params['owner'] is None): - raise ValueError("Missing the required parameter `owner` when calling `files_info`") - # verify the required parameter 'repo' is set - if ('repo' not in params) or (params['repo'] is None): - raise ValueError("Missing the required parameter `repo` when calling `files_info`") - # verify the required parameter 'identifier' is set - if ('identifier' not in params) or (params['identifier'] is None): - raise ValueError("Missing the required parameter `identifier` when calling `files_info`") - - - collection_formats = {} - - path_params = {} - if 'owner' in params: - path_params['owner'] = params['owner'] - if 'repo' in params: - path_params['repo'] = params['repo'] - if 'identifier' in params: - path_params['identifier'] = params['identifier'] - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # Authentication setting - auth_settings = ['apikey'] - - return self.api_client.call_api('/files/{owner}/{repo}/{identifier}/info/', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='PackageFilePartsUpload', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def files_validate(self, owner, repo, **kwargs): - """ - Validate parameters used for create. - Validate parameters used for create. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.files_validate(owner, repo, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param FilesValidate data: - :return: None - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.files_validate_with_http_info(owner, repo, **kwargs) - else: - (data) = self.files_validate_with_http_info(owner, repo, **kwargs) - return data - - def files_validate_with_http_info(self, owner, repo, **kwargs): - """ - Validate parameters used for create. - Validate parameters used for create. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.files_validate_with_http_info(owner, repo, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param FilesValidate data: - :return: None - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['owner', 'repo', 'data'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method files_validate" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'owner' is set - if ('owner' not in params) or (params['owner'] is None): - raise ValueError("Missing the required parameter `owner` when calling `files_validate`") - # verify the required parameter 'repo' is set - if ('repo' not in params) or (params['repo'] is None): - raise ValueError("Missing the required parameter `repo` when calling `files_validate`") - - - collection_formats = {} - - path_params = {} - if 'owner' in params: - path_params['owner'] = params['owner'] - if 'repo' in params: - path_params['repo'] = params['repo'] - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'data' in params: - body_params = params['data'] - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['apikey'] - - return self.api_client.call_api('/files/{owner}/{repo}/validate/', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type=None, - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) diff --git a/bindings/python/src/cloudsmith_api/apis/formats_api.py b/bindings/python/src/cloudsmith_api/apis/formats_api.py deleted file mode 100644 index b962c54e..00000000 --- a/bindings/python/src/cloudsmith_api/apis/formats_api.py +++ /dev/null @@ -1,229 +0,0 @@ -# coding: utf-8 - -""" - Cloudsmith API - - The API to the Cloudsmith Service - - OpenAPI spec version: v1 - Contact: support@cloudsmith.io - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import sys -import os -import re - -# python 2 and python 3 compatibility library -from six import iteritems - -from ..configuration import Configuration -from ..api_client import ApiClient - - -class FormatsApi(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen - """ - - def __init__(self, api_client=None): - config = Configuration() - if api_client: - self.api_client = api_client - else: - if not config.api_client: - config.api_client = ApiClient() - self.api_client = config.api_client - - def formats_list(self, **kwargs): - """ - Get a list of all supported package formats. - Get a list of all supported package formats. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.formats_list(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :return: list[Format] - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.formats_list_with_http_info(**kwargs) - else: - (data) = self.formats_list_with_http_info(**kwargs) - return data - - def formats_list_with_http_info(self, **kwargs): - """ - Get a list of all supported package formats. - Get a list of all supported package formats. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.formats_list_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :return: list[Format] - If the method is called asynchronously, - returns the request thread. - """ - - all_params = [] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method formats_list" % key - ) - params[key] = val - del params['kwargs'] - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # Authentication setting - auth_settings = ['apikey'] - - return self.api_client.call_api('/formats/', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='list[Format]', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def formats_read(self, slug, **kwargs): - """ - Get a specific supported package format. - Get a specific supported package format. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.formats_read(slug, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str slug: (required) - :return: Format - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.formats_read_with_http_info(slug, **kwargs) - else: - (data) = self.formats_read_with_http_info(slug, **kwargs) - return data - - def formats_read_with_http_info(self, slug, **kwargs): - """ - Get a specific supported package format. - Get a specific supported package format. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.formats_read_with_http_info(slug, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str slug: (required) - :return: Format - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['slug'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method formats_read" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'slug' is set - if ('slug' not in params) or (params['slug'] is None): - raise ValueError("Missing the required parameter `slug` when calling `formats_read`") - - - collection_formats = {} - - path_params = {} - if 'slug' in params: - path_params['slug'] = params['slug'] - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # Authentication setting - auth_settings = ['apikey'] - - return self.api_client.call_api('/formats/{slug}/', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='Format', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) diff --git a/bindings/python/src/cloudsmith_api/apis/namespaces_api.py b/bindings/python/src/cloudsmith_api/apis/namespaces_api.py deleted file mode 100644 index 51402516..00000000 --- a/bindings/python/src/cloudsmith_api/apis/namespaces_api.py +++ /dev/null @@ -1,238 +0,0 @@ -# coding: utf-8 - -""" - Cloudsmith API - - The API to the Cloudsmith Service - - OpenAPI spec version: v1 - Contact: support@cloudsmith.io - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import sys -import os -import re - -# python 2 and python 3 compatibility library -from six import iteritems - -from ..configuration import Configuration -from ..api_client import ApiClient - - -class NamespacesApi(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen - """ - - def __init__(self, api_client=None): - config = Configuration() - if api_client: - self.api_client = api_client - else: - if not config.api_client: - config.api_client = ApiClient() - self.api_client = config.api_client - - def namespaces_list(self, **kwargs): - """ - Get a list of all namespaces the user belongs to. - Get a list of all namespaces the user belongs to. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.namespaces_list(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param int page: A page number within the paginated result set. - :param int page_size: Number of results to return per page. - :return: list[Namespace] - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.namespaces_list_with_http_info(**kwargs) - else: - (data) = self.namespaces_list_with_http_info(**kwargs) - return data - - def namespaces_list_with_http_info(self, **kwargs): - """ - Get a list of all namespaces the user belongs to. - Get a list of all namespaces the user belongs to. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.namespaces_list_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param int page: A page number within the paginated result set. - :param int page_size: Number of results to return per page. - :return: list[Namespace] - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['page', 'page_size'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method namespaces_list" % key - ) - params[key] = val - del params['kwargs'] - - - collection_formats = {} - - path_params = {} - - query_params = [] - if 'page' in params: - query_params.append(('page', params['page'])) - if 'page_size' in params: - query_params.append(('page_size', params['page_size'])) - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # Authentication setting - auth_settings = ['apikey'] - - return self.api_client.call_api('/namespaces/', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='list[Namespace]', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def namespaces_read(self, slug, **kwargs): - """ - Views for working with namespaces. - Views for working with namespaces. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.namespaces_read(slug, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str slug: (required) - :return: Namespace - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.namespaces_read_with_http_info(slug, **kwargs) - else: - (data) = self.namespaces_read_with_http_info(slug, **kwargs) - return data - - def namespaces_read_with_http_info(self, slug, **kwargs): - """ - Views for working with namespaces. - Views for working with namespaces. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.namespaces_read_with_http_info(slug, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str slug: (required) - :return: Namespace - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['slug'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method namespaces_read" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'slug' is set - if ('slug' not in params) or (params['slug'] is None): - raise ValueError("Missing the required parameter `slug` when calling `namespaces_read`") - - - collection_formats = {} - - path_params = {} - if 'slug' in params: - path_params['slug'] = params['slug'] - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # Authentication setting - auth_settings = ['apikey'] - - return self.api_client.call_api('/namespaces/{slug}/', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='Namespace', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) diff --git a/bindings/python/src/cloudsmith_api/apis/orgs_api.py b/bindings/python/src/cloudsmith_api/apis/orgs_api.py deleted file mode 100644 index ca9a3faf..00000000 --- a/bindings/python/src/cloudsmith_api/apis/orgs_api.py +++ /dev/null @@ -1,554 +0,0 @@ -# coding: utf-8 - -""" - Cloudsmith API - - The API to the Cloudsmith Service - - OpenAPI spec version: v1 - Contact: support@cloudsmith.io - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import sys -import os -import re - -# python 2 and python 3 compatibility library -from six import iteritems - -from ..configuration import Configuration -from ..api_client import ApiClient - - -class OrgsApi(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen - """ - - def __init__(self, api_client=None): - config = Configuration() - if api_client: - self.api_client = api_client - else: - if not config.api_client: - config.api_client = ApiClient() - self.api_client = config.api_client - - def orgs_list(self, **kwargs): - """ - Get a list of all the organizations you are associated with. - Get a list of all the organizations you are associated with. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.orgs_list(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param int page: A page number within the paginated result set. - :param int page_size: Number of results to return per page. - :return: list[Organization] - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.orgs_list_with_http_info(**kwargs) - else: - (data) = self.orgs_list_with_http_info(**kwargs) - return data - - def orgs_list_with_http_info(self, **kwargs): - """ - Get a list of all the organizations you are associated with. - Get a list of all the organizations you are associated with. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.orgs_list_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param int page: A page number within the paginated result set. - :param int page_size: Number of results to return per page. - :return: list[Organization] - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['page', 'page_size'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method orgs_list" % key - ) - params[key] = val - del params['kwargs'] - - - collection_formats = {} - - path_params = {} - - query_params = [] - if 'page' in params: - query_params.append(('page', params['page'])) - if 'page_size' in params: - query_params.append(('page_size', params['page_size'])) - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # Authentication setting - auth_settings = ['apikey'] - - return self.api_client.call_api('/orgs/', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='list[Organization]', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def orgs_members_list(self, org, **kwargs): - """ - Get the details for all organization members. - Get the details for all organization members. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.orgs_members_list(org, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str org: (required) - :param int page: A page number within the paginated result set. - :param int page_size: Number of results to return per page. - :return: list[OrganizationMembership] - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.orgs_members_list_with_http_info(org, **kwargs) - else: - (data) = self.orgs_members_list_with_http_info(org, **kwargs) - return data - - def orgs_members_list_with_http_info(self, org, **kwargs): - """ - Get the details for all organization members. - Get the details for all organization members. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.orgs_members_list_with_http_info(org, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str org: (required) - :param int page: A page number within the paginated result set. - :param int page_size: Number of results to return per page. - :return: list[OrganizationMembership] - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['org', 'page', 'page_size'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method orgs_members_list" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'org' is set - if ('org' not in params) or (params['org'] is None): - raise ValueError("Missing the required parameter `org` when calling `orgs_members_list`") - - - collection_formats = {} - - path_params = {} - if 'org' in params: - path_params['org'] = params['org'] - - query_params = [] - if 'page' in params: - query_params.append(('page', params['page'])) - if 'page_size' in params: - query_params.append(('page_size', params['page_size'])) - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # Authentication setting - auth_settings = ['apikey'] - - return self.api_client.call_api('/orgs/{org}/members/', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='list[OrganizationMembership]', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def orgs_members_read(self, org, member, **kwargs): - """ - Get the details for a specific organization member. - Get the details for a specific organization member. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.orgs_members_read(org, member, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str org: (required) - :param str member: (required) - :return: OrganizationMembership - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.orgs_members_read_with_http_info(org, member, **kwargs) - else: - (data) = self.orgs_members_read_with_http_info(org, member, **kwargs) - return data - - def orgs_members_read_with_http_info(self, org, member, **kwargs): - """ - Get the details for a specific organization member. - Get the details for a specific organization member. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.orgs_members_read_with_http_info(org, member, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str org: (required) - :param str member: (required) - :return: OrganizationMembership - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['org', 'member'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method orgs_members_read" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'org' is set - if ('org' not in params) or (params['org'] is None): - raise ValueError("Missing the required parameter `org` when calling `orgs_members_read`") - # verify the required parameter 'member' is set - if ('member' not in params) or (params['member'] is None): - raise ValueError("Missing the required parameter `member` when calling `orgs_members_read`") - - - collection_formats = {} - - path_params = {} - if 'org' in params: - path_params['org'] = params['org'] - if 'member' in params: - path_params['member'] = params['member'] - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # Authentication setting - auth_settings = ['apikey'] - - return self.api_client.call_api('/orgs/{org}/members/{member}/', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='OrganizationMembership', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def orgs_members_remove(self, org, member, **kwargs): - """ - Removes a member from the organization. - Removes a member from the organization. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.orgs_members_remove(org, member, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str org: (required) - :param str member: (required) - :return: OrganizationMembership - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.orgs_members_remove_with_http_info(org, member, **kwargs) - else: - (data) = self.orgs_members_remove_with_http_info(org, member, **kwargs) - return data - - def orgs_members_remove_with_http_info(self, org, member, **kwargs): - """ - Removes a member from the organization. - Removes a member from the organization. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.orgs_members_remove_with_http_info(org, member, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str org: (required) - :param str member: (required) - :return: OrganizationMembership - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['org', 'member'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method orgs_members_remove" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'org' is set - if ('org' not in params) or (params['org'] is None): - raise ValueError("Missing the required parameter `org` when calling `orgs_members_remove`") - # verify the required parameter 'member' is set - if ('member' not in params) or (params['member'] is None): - raise ValueError("Missing the required parameter `member` when calling `orgs_members_remove`") - - - collection_formats = {} - - path_params = {} - if 'org' in params: - path_params['org'] = params['org'] - if 'member' in params: - path_params['member'] = params['member'] - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # Authentication setting - auth_settings = ['apikey'] - - return self.api_client.call_api('/orgs/{org}/members/{member}/remove/', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='OrganizationMembership', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def orgs_read(self, org, **kwargs): - """ - Get the details for the specific organization. - Get the details for the specific organization. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.orgs_read(org, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str org: (required) - :return: Organization - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.orgs_read_with_http_info(org, **kwargs) - else: - (data) = self.orgs_read_with_http_info(org, **kwargs) - return data - - def orgs_read_with_http_info(self, org, **kwargs): - """ - Get the details for the specific organization. - Get the details for the specific organization. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.orgs_read_with_http_info(org, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str org: (required) - :return: Organization - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['org'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method orgs_read" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'org' is set - if ('org' not in params) or (params['org'] is None): - raise ValueError("Missing the required parameter `org` when calling `orgs_read`") - - - collection_formats = {} - - path_params = {} - if 'org' in params: - path_params['org'] = params['org'] - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # Authentication setting - auth_settings = ['apikey'] - - return self.api_client.call_api('/orgs/{org}/', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='Organization', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) diff --git a/bindings/python/src/cloudsmith_api/apis/packages_api.py b/bindings/python/src/cloudsmith_api/apis/packages_api.py deleted file mode 100644 index e384ed11..00000000 --- a/bindings/python/src/cloudsmith_api/apis/packages_api.py +++ /dev/null @@ -1,6392 +0,0 @@ -# coding: utf-8 - -""" - Cloudsmith API - - The API to the Cloudsmith Service - - OpenAPI spec version: v1 - Contact: support@cloudsmith.io - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import sys -import os -import re - -# python 2 and python 3 compatibility library -from six import iteritems - -from ..configuration import Configuration -from ..api_client import ApiClient - - -class PackagesApi(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen - """ - - def __init__(self, api_client=None): - config = Configuration() - if api_client: - self.api_client = api_client - else: - if not config.api_client: - config.api_client = ApiClient() - self.api_client = config.api_client - - def packages_copy(self, owner, repo, identifier, **kwargs): - """ - Copy a package to another repository. - Copy a package to another repository. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.packages_copy(owner, repo, identifier, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param str identifier: (required) - :param PackagesCopy data: - :return: PackageCopy - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.packages_copy_with_http_info(owner, repo, identifier, **kwargs) - else: - (data) = self.packages_copy_with_http_info(owner, repo, identifier, **kwargs) - return data - - def packages_copy_with_http_info(self, owner, repo, identifier, **kwargs): - """ - Copy a package to another repository. - Copy a package to another repository. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.packages_copy_with_http_info(owner, repo, identifier, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param str identifier: (required) - :param PackagesCopy data: - :return: PackageCopy - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['owner', 'repo', 'identifier', 'data'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method packages_copy" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'owner' is set - if ('owner' not in params) or (params['owner'] is None): - raise ValueError("Missing the required parameter `owner` when calling `packages_copy`") - # verify the required parameter 'repo' is set - if ('repo' not in params) or (params['repo'] is None): - raise ValueError("Missing the required parameter `repo` when calling `packages_copy`") - # verify the required parameter 'identifier' is set - if ('identifier' not in params) or (params['identifier'] is None): - raise ValueError("Missing the required parameter `identifier` when calling `packages_copy`") - - - collection_formats = {} - - path_params = {} - if 'owner' in params: - path_params['owner'] = params['owner'] - if 'repo' in params: - path_params['repo'] = params['repo'] - if 'identifier' in params: - path_params['identifier'] = params['identifier'] - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'data' in params: - body_params = params['data'] - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['apikey'] - - return self.api_client.call_api('/packages/{owner}/{repo}/{identifier}/copy/', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='PackageCopy', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def packages_delete(self, owner, repo, identifier, **kwargs): - """ - Delete a specific package in a repository. - Delete a specific package in a repository. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.packages_delete(owner, repo, identifier, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param str identifier: (required) - :return: None - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.packages_delete_with_http_info(owner, repo, identifier, **kwargs) - else: - (data) = self.packages_delete_with_http_info(owner, repo, identifier, **kwargs) - return data - - def packages_delete_with_http_info(self, owner, repo, identifier, **kwargs): - """ - Delete a specific package in a repository. - Delete a specific package in a repository. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.packages_delete_with_http_info(owner, repo, identifier, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param str identifier: (required) - :return: None - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['owner', 'repo', 'identifier'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method packages_delete" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'owner' is set - if ('owner' not in params) or (params['owner'] is None): - raise ValueError("Missing the required parameter `owner` when calling `packages_delete`") - # verify the required parameter 'repo' is set - if ('repo' not in params) or (params['repo'] is None): - raise ValueError("Missing the required parameter `repo` when calling `packages_delete`") - # verify the required parameter 'identifier' is set - if ('identifier' not in params) or (params['identifier'] is None): - raise ValueError("Missing the required parameter `identifier` when calling `packages_delete`") - - - collection_formats = {} - - path_params = {} - if 'owner' in params: - path_params['owner'] = params['owner'] - if 'repo' in params: - path_params['repo'] = params['repo'] - if 'identifier' in params: - path_params['identifier'] = params['identifier'] - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # Authentication setting - auth_settings = ['apikey'] - - return self.api_client.call_api('/packages/{owner}/{repo}/{identifier}/', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type=None, - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def packages_dependencies(self, owner, repo, identifier, **kwargs): - """ - Get the direct (non-transitive) dependencies list for a package. - Get the direct (non-transitive) dependencies list for a package. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.packages_dependencies(owner, repo, identifier, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param str identifier: (required) - :return: PackageDependencies - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.packages_dependencies_with_http_info(owner, repo, identifier, **kwargs) - else: - (data) = self.packages_dependencies_with_http_info(owner, repo, identifier, **kwargs) - return data - - def packages_dependencies_with_http_info(self, owner, repo, identifier, **kwargs): - """ - Get the direct (non-transitive) dependencies list for a package. - Get the direct (non-transitive) dependencies list for a package. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.packages_dependencies_with_http_info(owner, repo, identifier, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param str identifier: (required) - :return: PackageDependencies - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['owner', 'repo', 'identifier'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method packages_dependencies" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'owner' is set - if ('owner' not in params) or (params['owner'] is None): - raise ValueError("Missing the required parameter `owner` when calling `packages_dependencies`") - # verify the required parameter 'repo' is set - if ('repo' not in params) or (params['repo'] is None): - raise ValueError("Missing the required parameter `repo` when calling `packages_dependencies`") - # verify the required parameter 'identifier' is set - if ('identifier' not in params) or (params['identifier'] is None): - raise ValueError("Missing the required parameter `identifier` when calling `packages_dependencies`") - - - collection_formats = {} - - path_params = {} - if 'owner' in params: - path_params['owner'] = params['owner'] - if 'repo' in params: - path_params['repo'] = params['repo'] - if 'identifier' in params: - path_params['identifier'] = params['identifier'] - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # Authentication setting - auth_settings = ['apikey'] - - return self.api_client.call_api('/packages/{owner}/{repo}/{identifier}/dependencies/', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='PackageDependencies', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def packages_list(self, owner, repo, **kwargs): - """ - Get a list of all packages associated with repository. - Get a list of all packages associated with repository. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.packages_list(owner, repo, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param int page: A page number within the paginated result set. - :param int page_size: Number of results to return per page. - :param str query: A search term for querying names, filenames, versions, distributions, architectures, formats or statuses of packages. - :param str sort: A field for sorting objects in ascending or descending order. - :return: list[Package] - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.packages_list_with_http_info(owner, repo, **kwargs) - else: - (data) = self.packages_list_with_http_info(owner, repo, **kwargs) - return data - - def packages_list_with_http_info(self, owner, repo, **kwargs): - """ - Get a list of all packages associated with repository. - Get a list of all packages associated with repository. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.packages_list_with_http_info(owner, repo, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param int page: A page number within the paginated result set. - :param int page_size: Number of results to return per page. - :param str query: A search term for querying names, filenames, versions, distributions, architectures, formats or statuses of packages. - :param str sort: A field for sorting objects in ascending or descending order. - :return: list[Package] - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['owner', 'repo', 'page', 'page_size', 'query', 'sort'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method packages_list" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'owner' is set - if ('owner' not in params) or (params['owner'] is None): - raise ValueError("Missing the required parameter `owner` when calling `packages_list`") - # verify the required parameter 'repo' is set - if ('repo' not in params) or (params['repo'] is None): - raise ValueError("Missing the required parameter `repo` when calling `packages_list`") - - - collection_formats = {} - - path_params = {} - if 'owner' in params: - path_params['owner'] = params['owner'] - if 'repo' in params: - path_params['repo'] = params['repo'] - - query_params = [] - if 'page' in params: - query_params.append(('page', params['page'])) - if 'page_size' in params: - query_params.append(('page_size', params['page_size'])) - if 'query' in params: - query_params.append(('query', params['query'])) - if 'sort' in params: - query_params.append(('sort', params['sort'])) - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # Authentication setting - auth_settings = ['apikey'] - - return self.api_client.call_api('/packages/{owner}/{repo}/', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='list[Package]', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def packages_move(self, owner, repo, identifier, **kwargs): - """ - Move a package to another repository. - Move a package to another repository. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.packages_move(owner, repo, identifier, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param str identifier: (required) - :param PackagesMove data: - :return: PackageMove - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.packages_move_with_http_info(owner, repo, identifier, **kwargs) - else: - (data) = self.packages_move_with_http_info(owner, repo, identifier, **kwargs) - return data - - def packages_move_with_http_info(self, owner, repo, identifier, **kwargs): - """ - Move a package to another repository. - Move a package to another repository. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.packages_move_with_http_info(owner, repo, identifier, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param str identifier: (required) - :param PackagesMove data: - :return: PackageMove - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['owner', 'repo', 'identifier', 'data'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method packages_move" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'owner' is set - if ('owner' not in params) or (params['owner'] is None): - raise ValueError("Missing the required parameter `owner` when calling `packages_move`") - # verify the required parameter 'repo' is set - if ('repo' not in params) or (params['repo'] is None): - raise ValueError("Missing the required parameter `repo` when calling `packages_move`") - # verify the required parameter 'identifier' is set - if ('identifier' not in params) or (params['identifier'] is None): - raise ValueError("Missing the required parameter `identifier` when calling `packages_move`") - - - collection_formats = {} - - path_params = {} - if 'owner' in params: - path_params['owner'] = params['owner'] - if 'repo' in params: - path_params['repo'] = params['repo'] - if 'identifier' in params: - path_params['identifier'] = params['identifier'] - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'data' in params: - body_params = params['data'] - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['apikey'] - - return self.api_client.call_api('/packages/{owner}/{repo}/{identifier}/move/', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='PackageMove', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def packages_read(self, owner, repo, identifier, **kwargs): - """ - Get a specific package in a repository. - Get a specific package in a repository. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.packages_read(owner, repo, identifier, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param str identifier: (required) - :return: Package - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.packages_read_with_http_info(owner, repo, identifier, **kwargs) - else: - (data) = self.packages_read_with_http_info(owner, repo, identifier, **kwargs) - return data - - def packages_read_with_http_info(self, owner, repo, identifier, **kwargs): - """ - Get a specific package in a repository. - Get a specific package in a repository. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.packages_read_with_http_info(owner, repo, identifier, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param str identifier: (required) - :return: Package - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['owner', 'repo', 'identifier'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method packages_read" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'owner' is set - if ('owner' not in params) or (params['owner'] is None): - raise ValueError("Missing the required parameter `owner` when calling `packages_read`") - # verify the required parameter 'repo' is set - if ('repo' not in params) or (params['repo'] is None): - raise ValueError("Missing the required parameter `repo` when calling `packages_read`") - # verify the required parameter 'identifier' is set - if ('identifier' not in params) or (params['identifier'] is None): - raise ValueError("Missing the required parameter `identifier` when calling `packages_read`") - - - collection_formats = {} - - path_params = {} - if 'owner' in params: - path_params['owner'] = params['owner'] - if 'repo' in params: - path_params['repo'] = params['repo'] - if 'identifier' in params: - path_params['identifier'] = params['identifier'] - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # Authentication setting - auth_settings = ['apikey'] - - return self.api_client.call_api('/packages/{owner}/{repo}/{identifier}/', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='Package', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def packages_resync(self, owner, repo, identifier, **kwargs): - """ - Schedule a package for resynchronisation. - Schedule a package for resynchronisation. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.packages_resync(owner, repo, identifier, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param str identifier: (required) - :return: Package - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.packages_resync_with_http_info(owner, repo, identifier, **kwargs) - else: - (data) = self.packages_resync_with_http_info(owner, repo, identifier, **kwargs) - return data - - def packages_resync_with_http_info(self, owner, repo, identifier, **kwargs): - """ - Schedule a package for resynchronisation. - Schedule a package for resynchronisation. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.packages_resync_with_http_info(owner, repo, identifier, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param str identifier: (required) - :return: Package - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['owner', 'repo', 'identifier'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method packages_resync" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'owner' is set - if ('owner' not in params) or (params['owner'] is None): - raise ValueError("Missing the required parameter `owner` when calling `packages_resync`") - # verify the required parameter 'repo' is set - if ('repo' not in params) or (params['repo'] is None): - raise ValueError("Missing the required parameter `repo` when calling `packages_resync`") - # verify the required parameter 'identifier' is set - if ('identifier' not in params) or (params['identifier'] is None): - raise ValueError("Missing the required parameter `identifier` when calling `packages_resync`") - - - collection_formats = {} - - path_params = {} - if 'owner' in params: - path_params['owner'] = params['owner'] - if 'repo' in params: - path_params['repo'] = params['repo'] - if 'identifier' in params: - path_params['identifier'] = params['identifier'] - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # Authentication setting - auth_settings = ['apikey'] - - return self.api_client.call_api('/packages/{owner}/{repo}/{identifier}/resync/', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='Package', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def packages_scan(self, owner, repo, identifier, **kwargs): - """ - Schedule a package for scanning. - Schedule a package for scanning. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.packages_scan(owner, repo, identifier, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param str identifier: (required) - :return: Package - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.packages_scan_with_http_info(owner, repo, identifier, **kwargs) - else: - (data) = self.packages_scan_with_http_info(owner, repo, identifier, **kwargs) - return data - - def packages_scan_with_http_info(self, owner, repo, identifier, **kwargs): - """ - Schedule a package for scanning. - Schedule a package for scanning. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.packages_scan_with_http_info(owner, repo, identifier, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param str identifier: (required) - :return: Package - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['owner', 'repo', 'identifier'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method packages_scan" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'owner' is set - if ('owner' not in params) or (params['owner'] is None): - raise ValueError("Missing the required parameter `owner` when calling `packages_scan`") - # verify the required parameter 'repo' is set - if ('repo' not in params) or (params['repo'] is None): - raise ValueError("Missing the required parameter `repo` when calling `packages_scan`") - # verify the required parameter 'identifier' is set - if ('identifier' not in params) or (params['identifier'] is None): - raise ValueError("Missing the required parameter `identifier` when calling `packages_scan`") - - - collection_formats = {} - - path_params = {} - if 'owner' in params: - path_params['owner'] = params['owner'] - if 'repo' in params: - path_params['repo'] = params['repo'] - if 'identifier' in params: - path_params['identifier'] = params['identifier'] - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # Authentication setting - auth_settings = ['apikey'] - - return self.api_client.call_api('/packages/{owner}/{repo}/{identifier}/scan/', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='Package', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def packages_status(self, owner, repo, identifier, **kwargs): - """ - Get the synchronisation status for a package. - Get the synchronisation status for a package. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.packages_status(owner, repo, identifier, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param str identifier: (required) - :return: PackageStatus - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.packages_status_with_http_info(owner, repo, identifier, **kwargs) - else: - (data) = self.packages_status_with_http_info(owner, repo, identifier, **kwargs) - return data - - def packages_status_with_http_info(self, owner, repo, identifier, **kwargs): - """ - Get the synchronisation status for a package. - Get the synchronisation status for a package. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.packages_status_with_http_info(owner, repo, identifier, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param str identifier: (required) - :return: PackageStatus - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['owner', 'repo', 'identifier'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method packages_status" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'owner' is set - if ('owner' not in params) or (params['owner'] is None): - raise ValueError("Missing the required parameter `owner` when calling `packages_status`") - # verify the required parameter 'repo' is set - if ('repo' not in params) or (params['repo'] is None): - raise ValueError("Missing the required parameter `repo` when calling `packages_status`") - # verify the required parameter 'identifier' is set - if ('identifier' not in params) or (params['identifier'] is None): - raise ValueError("Missing the required parameter `identifier` when calling `packages_status`") - - - collection_formats = {} - - path_params = {} - if 'owner' in params: - path_params['owner'] = params['owner'] - if 'repo' in params: - path_params['repo'] = params['repo'] - if 'identifier' in params: - path_params['identifier'] = params['identifier'] - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # Authentication setting - auth_settings = ['apikey'] - - return self.api_client.call_api('/packages/{owner}/{repo}/{identifier}/status/', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='PackageStatus', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def packages_tag(self, owner, repo, identifier, **kwargs): - """ - Add/Replace/Remove tags for a package. - Add/Replace/Remove tags for a package. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.packages_tag(owner, repo, identifier, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param str identifier: (required) - :param PackagesTag data: - :return: Package - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.packages_tag_with_http_info(owner, repo, identifier, **kwargs) - else: - (data) = self.packages_tag_with_http_info(owner, repo, identifier, **kwargs) - return data - - def packages_tag_with_http_info(self, owner, repo, identifier, **kwargs): - """ - Add/Replace/Remove tags for a package. - Add/Replace/Remove tags for a package. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.packages_tag_with_http_info(owner, repo, identifier, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param str identifier: (required) - :param PackagesTag data: - :return: Package - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['owner', 'repo', 'identifier', 'data'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method packages_tag" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'owner' is set - if ('owner' not in params) or (params['owner'] is None): - raise ValueError("Missing the required parameter `owner` when calling `packages_tag`") - # verify the required parameter 'repo' is set - if ('repo' not in params) or (params['repo'] is None): - raise ValueError("Missing the required parameter `repo` when calling `packages_tag`") - # verify the required parameter 'identifier' is set - if ('identifier' not in params) or (params['identifier'] is None): - raise ValueError("Missing the required parameter `identifier` when calling `packages_tag`") - - - collection_formats = {} - - path_params = {} - if 'owner' in params: - path_params['owner'] = params['owner'] - if 'repo' in params: - path_params['repo'] = params['repo'] - if 'identifier' in params: - path_params['identifier'] = params['identifier'] - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'data' in params: - body_params = params['data'] - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['apikey'] - - return self.api_client.call_api('/packages/{owner}/{repo}/{identifier}/tag/', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='Package', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def packages_upload_alpine(self, owner, repo, **kwargs): - """ - Create a new Alpine package - Create a new Alpine package - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.packages_upload_alpine(owner, repo, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param PackagesUploadAlpine data: - :return: AlpinePackageUpload - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.packages_upload_alpine_with_http_info(owner, repo, **kwargs) - else: - (data) = self.packages_upload_alpine_with_http_info(owner, repo, **kwargs) - return data - - def packages_upload_alpine_with_http_info(self, owner, repo, **kwargs): - """ - Create a new Alpine package - Create a new Alpine package - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.packages_upload_alpine_with_http_info(owner, repo, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param PackagesUploadAlpine data: - :return: AlpinePackageUpload - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['owner', 'repo', 'data'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method packages_upload_alpine" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'owner' is set - if ('owner' not in params) or (params['owner'] is None): - raise ValueError("Missing the required parameter `owner` when calling `packages_upload_alpine`") - # verify the required parameter 'repo' is set - if ('repo' not in params) or (params['repo'] is None): - raise ValueError("Missing the required parameter `repo` when calling `packages_upload_alpine`") - - - collection_formats = {} - - path_params = {} - if 'owner' in params: - path_params['owner'] = params['owner'] - if 'repo' in params: - path_params['repo'] = params['repo'] - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'data' in params: - body_params = params['data'] - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['apikey'] - - return self.api_client.call_api('/packages/{owner}/{repo}/upload/alpine/', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='AlpinePackageUpload', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def packages_upload_cargo(self, owner, repo, **kwargs): - """ - Create a new Cargo package - Create a new Cargo package - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.packages_upload_cargo(owner, repo, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param PackagesUploadCargo data: - :return: AlpinePackageUpload - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.packages_upload_cargo_with_http_info(owner, repo, **kwargs) - else: - (data) = self.packages_upload_cargo_with_http_info(owner, repo, **kwargs) - return data - - def packages_upload_cargo_with_http_info(self, owner, repo, **kwargs): - """ - Create a new Cargo package - Create a new Cargo package - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.packages_upload_cargo_with_http_info(owner, repo, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param PackagesUploadCargo data: - :return: AlpinePackageUpload - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['owner', 'repo', 'data'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method packages_upload_cargo" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'owner' is set - if ('owner' not in params) or (params['owner'] is None): - raise ValueError("Missing the required parameter `owner` when calling `packages_upload_cargo`") - # verify the required parameter 'repo' is set - if ('repo' not in params) or (params['repo'] is None): - raise ValueError("Missing the required parameter `repo` when calling `packages_upload_cargo`") - - - collection_formats = {} - - path_params = {} - if 'owner' in params: - path_params['owner'] = params['owner'] - if 'repo' in params: - path_params['repo'] = params['repo'] - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'data' in params: - body_params = params['data'] - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['apikey'] - - return self.api_client.call_api('/packages/{owner}/{repo}/upload/cargo/', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='AlpinePackageUpload', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def packages_upload_cocoapods(self, owner, repo, **kwargs): - """ - Create a new CocoaPods package - Create a new CocoaPods package - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.packages_upload_cocoapods(owner, repo, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param PackagesUploadCocoapods data: - :return: AlpinePackageUpload - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.packages_upload_cocoapods_with_http_info(owner, repo, **kwargs) - else: - (data) = self.packages_upload_cocoapods_with_http_info(owner, repo, **kwargs) - return data - - def packages_upload_cocoapods_with_http_info(self, owner, repo, **kwargs): - """ - Create a new CocoaPods package - Create a new CocoaPods package - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.packages_upload_cocoapods_with_http_info(owner, repo, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param PackagesUploadCocoapods data: - :return: AlpinePackageUpload - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['owner', 'repo', 'data'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method packages_upload_cocoapods" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'owner' is set - if ('owner' not in params) or (params['owner'] is None): - raise ValueError("Missing the required parameter `owner` when calling `packages_upload_cocoapods`") - # verify the required parameter 'repo' is set - if ('repo' not in params) or (params['repo'] is None): - raise ValueError("Missing the required parameter `repo` when calling `packages_upload_cocoapods`") - - - collection_formats = {} - - path_params = {} - if 'owner' in params: - path_params['owner'] = params['owner'] - if 'repo' in params: - path_params['repo'] = params['repo'] - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'data' in params: - body_params = params['data'] - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['apikey'] - - return self.api_client.call_api('/packages/{owner}/{repo}/upload/cocoapods/', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='AlpinePackageUpload', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def packages_upload_composer(self, owner, repo, **kwargs): - """ - Create a new Composer package - Create a new Composer package - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.packages_upload_composer(owner, repo, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param PackagesUploadComposer data: - :return: AlpinePackageUpload - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.packages_upload_composer_with_http_info(owner, repo, **kwargs) - else: - (data) = self.packages_upload_composer_with_http_info(owner, repo, **kwargs) - return data - - def packages_upload_composer_with_http_info(self, owner, repo, **kwargs): - """ - Create a new Composer package - Create a new Composer package - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.packages_upload_composer_with_http_info(owner, repo, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param PackagesUploadComposer data: - :return: AlpinePackageUpload - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['owner', 'repo', 'data'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method packages_upload_composer" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'owner' is set - if ('owner' not in params) or (params['owner'] is None): - raise ValueError("Missing the required parameter `owner` when calling `packages_upload_composer`") - # verify the required parameter 'repo' is set - if ('repo' not in params) or (params['repo'] is None): - raise ValueError("Missing the required parameter `repo` when calling `packages_upload_composer`") - - - collection_formats = {} - - path_params = {} - if 'owner' in params: - path_params['owner'] = params['owner'] - if 'repo' in params: - path_params['repo'] = params['repo'] - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'data' in params: - body_params = params['data'] - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['apikey'] - - return self.api_client.call_api('/packages/{owner}/{repo}/upload/composer/', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='AlpinePackageUpload', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def packages_upload_conan(self, owner, repo, **kwargs): - """ - Create a new Conan package - Create a new Conan package - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.packages_upload_conan(owner, repo, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param PackagesUploadConan data: - :return: ConanPackageUpload - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.packages_upload_conan_with_http_info(owner, repo, **kwargs) - else: - (data) = self.packages_upload_conan_with_http_info(owner, repo, **kwargs) - return data - - def packages_upload_conan_with_http_info(self, owner, repo, **kwargs): - """ - Create a new Conan package - Create a new Conan package - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.packages_upload_conan_with_http_info(owner, repo, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param PackagesUploadConan data: - :return: ConanPackageUpload - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['owner', 'repo', 'data'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method packages_upload_conan" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'owner' is set - if ('owner' not in params) or (params['owner'] is None): - raise ValueError("Missing the required parameter `owner` when calling `packages_upload_conan`") - # verify the required parameter 'repo' is set - if ('repo' not in params) or (params['repo'] is None): - raise ValueError("Missing the required parameter `repo` when calling `packages_upload_conan`") - - - collection_formats = {} - - path_params = {} - if 'owner' in params: - path_params['owner'] = params['owner'] - if 'repo' in params: - path_params['repo'] = params['repo'] - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'data' in params: - body_params = params['data'] - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['apikey'] - - return self.api_client.call_api('/packages/{owner}/{repo}/upload/conan/', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='ConanPackageUpload', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def packages_upload_conda(self, owner, repo, **kwargs): - """ - Create a new Conda package - Create a new Conda package - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.packages_upload_conda(owner, repo, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param PackagesUploadConda data: - :return: AlpinePackageUpload - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.packages_upload_conda_with_http_info(owner, repo, **kwargs) - else: - (data) = self.packages_upload_conda_with_http_info(owner, repo, **kwargs) - return data - - def packages_upload_conda_with_http_info(self, owner, repo, **kwargs): - """ - Create a new Conda package - Create a new Conda package - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.packages_upload_conda_with_http_info(owner, repo, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param PackagesUploadConda data: - :return: AlpinePackageUpload - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['owner', 'repo', 'data'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method packages_upload_conda" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'owner' is set - if ('owner' not in params) or (params['owner'] is None): - raise ValueError("Missing the required parameter `owner` when calling `packages_upload_conda`") - # verify the required parameter 'repo' is set - if ('repo' not in params) or (params['repo'] is None): - raise ValueError("Missing the required parameter `repo` when calling `packages_upload_conda`") - - - collection_formats = {} - - path_params = {} - if 'owner' in params: - path_params['owner'] = params['owner'] - if 'repo' in params: - path_params['repo'] = params['repo'] - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'data' in params: - body_params = params['data'] - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['apikey'] - - return self.api_client.call_api('/packages/{owner}/{repo}/upload/conda/', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='AlpinePackageUpload', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def packages_upload_cran(self, owner, repo, **kwargs): - """ - Create a new CRAN package - Create a new CRAN package - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.packages_upload_cran(owner, repo, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param PackagesUploadCran data: - :return: AlpinePackageUpload - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.packages_upload_cran_with_http_info(owner, repo, **kwargs) - else: - (data) = self.packages_upload_cran_with_http_info(owner, repo, **kwargs) - return data - - def packages_upload_cran_with_http_info(self, owner, repo, **kwargs): - """ - Create a new CRAN package - Create a new CRAN package - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.packages_upload_cran_with_http_info(owner, repo, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param PackagesUploadCran data: - :return: AlpinePackageUpload - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['owner', 'repo', 'data'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method packages_upload_cran" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'owner' is set - if ('owner' not in params) or (params['owner'] is None): - raise ValueError("Missing the required parameter `owner` when calling `packages_upload_cran`") - # verify the required parameter 'repo' is set - if ('repo' not in params) or (params['repo'] is None): - raise ValueError("Missing the required parameter `repo` when calling `packages_upload_cran`") - - - collection_formats = {} - - path_params = {} - if 'owner' in params: - path_params['owner'] = params['owner'] - if 'repo' in params: - path_params['repo'] = params['repo'] - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'data' in params: - body_params = params['data'] - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['apikey'] - - return self.api_client.call_api('/packages/{owner}/{repo}/upload/cran/', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='AlpinePackageUpload', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def packages_upload_dart(self, owner, repo, **kwargs): - """ - Create a new Dart package - Create a new Dart package - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.packages_upload_dart(owner, repo, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param PackagesUploadDart data: - :return: AlpinePackageUpload - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.packages_upload_dart_with_http_info(owner, repo, **kwargs) - else: - (data) = self.packages_upload_dart_with_http_info(owner, repo, **kwargs) - return data - - def packages_upload_dart_with_http_info(self, owner, repo, **kwargs): - """ - Create a new Dart package - Create a new Dart package - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.packages_upload_dart_with_http_info(owner, repo, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param PackagesUploadDart data: - :return: AlpinePackageUpload - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['owner', 'repo', 'data'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method packages_upload_dart" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'owner' is set - if ('owner' not in params) or (params['owner'] is None): - raise ValueError("Missing the required parameter `owner` when calling `packages_upload_dart`") - # verify the required parameter 'repo' is set - if ('repo' not in params) or (params['repo'] is None): - raise ValueError("Missing the required parameter `repo` when calling `packages_upload_dart`") - - - collection_formats = {} - - path_params = {} - if 'owner' in params: - path_params['owner'] = params['owner'] - if 'repo' in params: - path_params['repo'] = params['repo'] - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'data' in params: - body_params = params['data'] - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['apikey'] - - return self.api_client.call_api('/packages/{owner}/{repo}/upload/dart/', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='AlpinePackageUpload', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def packages_upload_deb(self, owner, repo, **kwargs): - """ - Create a new Debian package - Create a new Debian package - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.packages_upload_deb(owner, repo, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param PackagesUploadDeb data: - :return: AlpinePackageUpload - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.packages_upload_deb_with_http_info(owner, repo, **kwargs) - else: - (data) = self.packages_upload_deb_with_http_info(owner, repo, **kwargs) - return data - - def packages_upload_deb_with_http_info(self, owner, repo, **kwargs): - """ - Create a new Debian package - Create a new Debian package - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.packages_upload_deb_with_http_info(owner, repo, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param PackagesUploadDeb data: - :return: AlpinePackageUpload - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['owner', 'repo', 'data'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method packages_upload_deb" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'owner' is set - if ('owner' not in params) or (params['owner'] is None): - raise ValueError("Missing the required parameter `owner` when calling `packages_upload_deb`") - # verify the required parameter 'repo' is set - if ('repo' not in params) or (params['repo'] is None): - raise ValueError("Missing the required parameter `repo` when calling `packages_upload_deb`") - - - collection_formats = {} - - path_params = {} - if 'owner' in params: - path_params['owner'] = params['owner'] - if 'repo' in params: - path_params['repo'] = params['repo'] - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'data' in params: - body_params = params['data'] - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['apikey'] - - return self.api_client.call_api('/packages/{owner}/{repo}/upload/deb/', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='AlpinePackageUpload', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def packages_upload_docker(self, owner, repo, **kwargs): - """ - Create a new Docker package - Create a new Docker package - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.packages_upload_docker(owner, repo, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param PackagesUploadDocker data: - :return: AlpinePackageUpload - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.packages_upload_docker_with_http_info(owner, repo, **kwargs) - else: - (data) = self.packages_upload_docker_with_http_info(owner, repo, **kwargs) - return data - - def packages_upload_docker_with_http_info(self, owner, repo, **kwargs): - """ - Create a new Docker package - Create a new Docker package - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.packages_upload_docker_with_http_info(owner, repo, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param PackagesUploadDocker data: - :return: AlpinePackageUpload - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['owner', 'repo', 'data'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method packages_upload_docker" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'owner' is set - if ('owner' not in params) or (params['owner'] is None): - raise ValueError("Missing the required parameter `owner` when calling `packages_upload_docker`") - # verify the required parameter 'repo' is set - if ('repo' not in params) or (params['repo'] is None): - raise ValueError("Missing the required parameter `repo` when calling `packages_upload_docker`") - - - collection_formats = {} - - path_params = {} - if 'owner' in params: - path_params['owner'] = params['owner'] - if 'repo' in params: - path_params['repo'] = params['repo'] - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'data' in params: - body_params = params['data'] - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['apikey'] - - return self.api_client.call_api('/packages/{owner}/{repo}/upload/docker/', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='AlpinePackageUpload', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def packages_upload_go(self, owner, repo, **kwargs): - """ - Create a new Go package - Create a new Go package - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.packages_upload_go(owner, repo, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param PackagesUploadGo data: - :return: AlpinePackageUpload - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.packages_upload_go_with_http_info(owner, repo, **kwargs) - else: - (data) = self.packages_upload_go_with_http_info(owner, repo, **kwargs) - return data - - def packages_upload_go_with_http_info(self, owner, repo, **kwargs): - """ - Create a new Go package - Create a new Go package - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.packages_upload_go_with_http_info(owner, repo, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param PackagesUploadGo data: - :return: AlpinePackageUpload - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['owner', 'repo', 'data'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method packages_upload_go" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'owner' is set - if ('owner' not in params) or (params['owner'] is None): - raise ValueError("Missing the required parameter `owner` when calling `packages_upload_go`") - # verify the required parameter 'repo' is set - if ('repo' not in params) or (params['repo'] is None): - raise ValueError("Missing the required parameter `repo` when calling `packages_upload_go`") - - - collection_formats = {} - - path_params = {} - if 'owner' in params: - path_params['owner'] = params['owner'] - if 'repo' in params: - path_params['repo'] = params['repo'] - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'data' in params: - body_params = params['data'] - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['apikey'] - - return self.api_client.call_api('/packages/{owner}/{repo}/upload/go/', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='AlpinePackageUpload', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def packages_upload_helm(self, owner, repo, **kwargs): - """ - Create a new Helm package - Create a new Helm package - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.packages_upload_helm(owner, repo, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param PackagesUploadHelm data: - :return: AlpinePackageUpload - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.packages_upload_helm_with_http_info(owner, repo, **kwargs) - else: - (data) = self.packages_upload_helm_with_http_info(owner, repo, **kwargs) - return data - - def packages_upload_helm_with_http_info(self, owner, repo, **kwargs): - """ - Create a new Helm package - Create a new Helm package - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.packages_upload_helm_with_http_info(owner, repo, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param PackagesUploadHelm data: - :return: AlpinePackageUpload - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['owner', 'repo', 'data'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method packages_upload_helm" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'owner' is set - if ('owner' not in params) or (params['owner'] is None): - raise ValueError("Missing the required parameter `owner` when calling `packages_upload_helm`") - # verify the required parameter 'repo' is set - if ('repo' not in params) or (params['repo'] is None): - raise ValueError("Missing the required parameter `repo` when calling `packages_upload_helm`") - - - collection_formats = {} - - path_params = {} - if 'owner' in params: - path_params['owner'] = params['owner'] - if 'repo' in params: - path_params['repo'] = params['repo'] - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'data' in params: - body_params = params['data'] - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['apikey'] - - return self.api_client.call_api('/packages/{owner}/{repo}/upload/helm/', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='AlpinePackageUpload', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def packages_upload_luarocks(self, owner, repo, **kwargs): - """ - Create a new LuaRocks package - Create a new LuaRocks package - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.packages_upload_luarocks(owner, repo, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param PackagesUploadLuarocks data: - :return: AlpinePackageUpload - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.packages_upload_luarocks_with_http_info(owner, repo, **kwargs) - else: - (data) = self.packages_upload_luarocks_with_http_info(owner, repo, **kwargs) - return data - - def packages_upload_luarocks_with_http_info(self, owner, repo, **kwargs): - """ - Create a new LuaRocks package - Create a new LuaRocks package - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.packages_upload_luarocks_with_http_info(owner, repo, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param PackagesUploadLuarocks data: - :return: AlpinePackageUpload - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['owner', 'repo', 'data'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method packages_upload_luarocks" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'owner' is set - if ('owner' not in params) or (params['owner'] is None): - raise ValueError("Missing the required parameter `owner` when calling `packages_upload_luarocks`") - # verify the required parameter 'repo' is set - if ('repo' not in params) or (params['repo'] is None): - raise ValueError("Missing the required parameter `repo` when calling `packages_upload_luarocks`") - - - collection_formats = {} - - path_params = {} - if 'owner' in params: - path_params['owner'] = params['owner'] - if 'repo' in params: - path_params['repo'] = params['repo'] - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'data' in params: - body_params = params['data'] - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['apikey'] - - return self.api_client.call_api('/packages/{owner}/{repo}/upload/luarocks/', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='AlpinePackageUpload', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def packages_upload_maven(self, owner, repo, **kwargs): - """ - Create a new Maven package - Create a new Maven package - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.packages_upload_maven(owner, repo, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param PackagesUploadMaven data: - :return: MavenPackageUpload - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.packages_upload_maven_with_http_info(owner, repo, **kwargs) - else: - (data) = self.packages_upload_maven_with_http_info(owner, repo, **kwargs) - return data - - def packages_upload_maven_with_http_info(self, owner, repo, **kwargs): - """ - Create a new Maven package - Create a new Maven package - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.packages_upload_maven_with_http_info(owner, repo, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param PackagesUploadMaven data: - :return: MavenPackageUpload - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['owner', 'repo', 'data'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method packages_upload_maven" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'owner' is set - if ('owner' not in params) or (params['owner'] is None): - raise ValueError("Missing the required parameter `owner` when calling `packages_upload_maven`") - # verify the required parameter 'repo' is set - if ('repo' not in params) or (params['repo'] is None): - raise ValueError("Missing the required parameter `repo` when calling `packages_upload_maven`") - - - collection_formats = {} - - path_params = {} - if 'owner' in params: - path_params['owner'] = params['owner'] - if 'repo' in params: - path_params['repo'] = params['repo'] - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'data' in params: - body_params = params['data'] - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['apikey'] - - return self.api_client.call_api('/packages/{owner}/{repo}/upload/maven/', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='MavenPackageUpload', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def packages_upload_npm(self, owner, repo, **kwargs): - """ - Create a new npm package - Create a new npm package - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.packages_upload_npm(owner, repo, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param PackagesUploadNpm data: - :return: AlpinePackageUpload - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.packages_upload_npm_with_http_info(owner, repo, **kwargs) - else: - (data) = self.packages_upload_npm_with_http_info(owner, repo, **kwargs) - return data - - def packages_upload_npm_with_http_info(self, owner, repo, **kwargs): - """ - Create a new npm package - Create a new npm package - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.packages_upload_npm_with_http_info(owner, repo, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param PackagesUploadNpm data: - :return: AlpinePackageUpload - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['owner', 'repo', 'data'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method packages_upload_npm" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'owner' is set - if ('owner' not in params) or (params['owner'] is None): - raise ValueError("Missing the required parameter `owner` when calling `packages_upload_npm`") - # verify the required parameter 'repo' is set - if ('repo' not in params) or (params['repo'] is None): - raise ValueError("Missing the required parameter `repo` when calling `packages_upload_npm`") - - - collection_formats = {} - - path_params = {} - if 'owner' in params: - path_params['owner'] = params['owner'] - if 'repo' in params: - path_params['repo'] = params['repo'] - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'data' in params: - body_params = params['data'] - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['apikey'] - - return self.api_client.call_api('/packages/{owner}/{repo}/upload/npm/', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='AlpinePackageUpload', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def packages_upload_nuget(self, owner, repo, **kwargs): - """ - Create a new NuGet package - Create a new NuGet package - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.packages_upload_nuget(owner, repo, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param PackagesUploadNuget data: - :return: AlpinePackageUpload - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.packages_upload_nuget_with_http_info(owner, repo, **kwargs) - else: - (data) = self.packages_upload_nuget_with_http_info(owner, repo, **kwargs) - return data - - def packages_upload_nuget_with_http_info(self, owner, repo, **kwargs): - """ - Create a new NuGet package - Create a new NuGet package - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.packages_upload_nuget_with_http_info(owner, repo, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param PackagesUploadNuget data: - :return: AlpinePackageUpload - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['owner', 'repo', 'data'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method packages_upload_nuget" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'owner' is set - if ('owner' not in params) or (params['owner'] is None): - raise ValueError("Missing the required parameter `owner` when calling `packages_upload_nuget`") - # verify the required parameter 'repo' is set - if ('repo' not in params) or (params['repo'] is None): - raise ValueError("Missing the required parameter `repo` when calling `packages_upload_nuget`") - - - collection_formats = {} - - path_params = {} - if 'owner' in params: - path_params['owner'] = params['owner'] - if 'repo' in params: - path_params['repo'] = params['repo'] - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'data' in params: - body_params = params['data'] - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['apikey'] - - return self.api_client.call_api('/packages/{owner}/{repo}/upload/nuget/', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='AlpinePackageUpload', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def packages_upload_p2(self, owner, repo, **kwargs): - """ - Create a new P2 package - Create a new P2 package - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.packages_upload_p2(owner, repo, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param PackagesUploadP2 data: - :return: AlpinePackageUpload - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.packages_upload_p2_with_http_info(owner, repo, **kwargs) - else: - (data) = self.packages_upload_p2_with_http_info(owner, repo, **kwargs) - return data - - def packages_upload_p2_with_http_info(self, owner, repo, **kwargs): - """ - Create a new P2 package - Create a new P2 package - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.packages_upload_p2_with_http_info(owner, repo, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param PackagesUploadP2 data: - :return: AlpinePackageUpload - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['owner', 'repo', 'data'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method packages_upload_p2" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'owner' is set - if ('owner' not in params) or (params['owner'] is None): - raise ValueError("Missing the required parameter `owner` when calling `packages_upload_p2`") - # verify the required parameter 'repo' is set - if ('repo' not in params) or (params['repo'] is None): - raise ValueError("Missing the required parameter `repo` when calling `packages_upload_p2`") - - - collection_formats = {} - - path_params = {} - if 'owner' in params: - path_params['owner'] = params['owner'] - if 'repo' in params: - path_params['repo'] = params['repo'] - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'data' in params: - body_params = params['data'] - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['apikey'] - - return self.api_client.call_api('/packages/{owner}/{repo}/upload/p2/', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='AlpinePackageUpload', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def packages_upload_python(self, owner, repo, **kwargs): - """ - Create a new Python package - Create a new Python package - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.packages_upload_python(owner, repo, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param PackagesUploadPython data: - :return: AlpinePackageUpload - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.packages_upload_python_with_http_info(owner, repo, **kwargs) - else: - (data) = self.packages_upload_python_with_http_info(owner, repo, **kwargs) - return data - - def packages_upload_python_with_http_info(self, owner, repo, **kwargs): - """ - Create a new Python package - Create a new Python package - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.packages_upload_python_with_http_info(owner, repo, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param PackagesUploadPython data: - :return: AlpinePackageUpload - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['owner', 'repo', 'data'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method packages_upload_python" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'owner' is set - if ('owner' not in params) or (params['owner'] is None): - raise ValueError("Missing the required parameter `owner` when calling `packages_upload_python`") - # verify the required parameter 'repo' is set - if ('repo' not in params) or (params['repo'] is None): - raise ValueError("Missing the required parameter `repo` when calling `packages_upload_python`") - - - collection_formats = {} - - path_params = {} - if 'owner' in params: - path_params['owner'] = params['owner'] - if 'repo' in params: - path_params['repo'] = params['repo'] - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'data' in params: - body_params = params['data'] - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['apikey'] - - return self.api_client.call_api('/packages/{owner}/{repo}/upload/python/', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='AlpinePackageUpload', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def packages_upload_raw(self, owner, repo, **kwargs): - """ - Create a new Raw package - Create a new Raw package - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.packages_upload_raw(owner, repo, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param PackagesUploadRaw data: - :return: RawPackageUpload - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.packages_upload_raw_with_http_info(owner, repo, **kwargs) - else: - (data) = self.packages_upload_raw_with_http_info(owner, repo, **kwargs) - return data - - def packages_upload_raw_with_http_info(self, owner, repo, **kwargs): - """ - Create a new Raw package - Create a new Raw package - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.packages_upload_raw_with_http_info(owner, repo, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param PackagesUploadRaw data: - :return: RawPackageUpload - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['owner', 'repo', 'data'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method packages_upload_raw" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'owner' is set - if ('owner' not in params) or (params['owner'] is None): - raise ValueError("Missing the required parameter `owner` when calling `packages_upload_raw`") - # verify the required parameter 'repo' is set - if ('repo' not in params) or (params['repo'] is None): - raise ValueError("Missing the required parameter `repo` when calling `packages_upload_raw`") - - - collection_formats = {} - - path_params = {} - if 'owner' in params: - path_params['owner'] = params['owner'] - if 'repo' in params: - path_params['repo'] = params['repo'] - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'data' in params: - body_params = params['data'] - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['apikey'] - - return self.api_client.call_api('/packages/{owner}/{repo}/upload/raw/', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='RawPackageUpload', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def packages_upload_rpm(self, owner, repo, **kwargs): - """ - Create a new RedHat package - Create a new RedHat package - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.packages_upload_rpm(owner, repo, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param PackagesUploadRpm data: - :return: AlpinePackageUpload - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.packages_upload_rpm_with_http_info(owner, repo, **kwargs) - else: - (data) = self.packages_upload_rpm_with_http_info(owner, repo, **kwargs) - return data - - def packages_upload_rpm_with_http_info(self, owner, repo, **kwargs): - """ - Create a new RedHat package - Create a new RedHat package - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.packages_upload_rpm_with_http_info(owner, repo, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param PackagesUploadRpm data: - :return: AlpinePackageUpload - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['owner', 'repo', 'data'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method packages_upload_rpm" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'owner' is set - if ('owner' not in params) or (params['owner'] is None): - raise ValueError("Missing the required parameter `owner` when calling `packages_upload_rpm`") - # verify the required parameter 'repo' is set - if ('repo' not in params) or (params['repo'] is None): - raise ValueError("Missing the required parameter `repo` when calling `packages_upload_rpm`") - - - collection_formats = {} - - path_params = {} - if 'owner' in params: - path_params['owner'] = params['owner'] - if 'repo' in params: - path_params['repo'] = params['repo'] - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'data' in params: - body_params = params['data'] - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['apikey'] - - return self.api_client.call_api('/packages/{owner}/{repo}/upload/rpm/', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='AlpinePackageUpload', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def packages_upload_ruby(self, owner, repo, **kwargs): - """ - Create a new Ruby package - Create a new Ruby package - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.packages_upload_ruby(owner, repo, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param PackagesUploadRuby data: - :return: AlpinePackageUpload - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.packages_upload_ruby_with_http_info(owner, repo, **kwargs) - else: - (data) = self.packages_upload_ruby_with_http_info(owner, repo, **kwargs) - return data - - def packages_upload_ruby_with_http_info(self, owner, repo, **kwargs): - """ - Create a new Ruby package - Create a new Ruby package - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.packages_upload_ruby_with_http_info(owner, repo, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param PackagesUploadRuby data: - :return: AlpinePackageUpload - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['owner', 'repo', 'data'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method packages_upload_ruby" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'owner' is set - if ('owner' not in params) or (params['owner'] is None): - raise ValueError("Missing the required parameter `owner` when calling `packages_upload_ruby`") - # verify the required parameter 'repo' is set - if ('repo' not in params) or (params['repo'] is None): - raise ValueError("Missing the required parameter `repo` when calling `packages_upload_ruby`") - - - collection_formats = {} - - path_params = {} - if 'owner' in params: - path_params['owner'] = params['owner'] - if 'repo' in params: - path_params['repo'] = params['repo'] - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'data' in params: - body_params = params['data'] - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['apikey'] - - return self.api_client.call_api('/packages/{owner}/{repo}/upload/ruby/', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='AlpinePackageUpload', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def packages_upload_terraform(self, owner, repo, **kwargs): - """ - Create a new Terraform package - Create a new Terraform package - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.packages_upload_terraform(owner, repo, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param PackagesUploadTerraform data: - :return: AlpinePackageUpload - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.packages_upload_terraform_with_http_info(owner, repo, **kwargs) - else: - (data) = self.packages_upload_terraform_with_http_info(owner, repo, **kwargs) - return data - - def packages_upload_terraform_with_http_info(self, owner, repo, **kwargs): - """ - Create a new Terraform package - Create a new Terraform package - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.packages_upload_terraform_with_http_info(owner, repo, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param PackagesUploadTerraform data: - :return: AlpinePackageUpload - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['owner', 'repo', 'data'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method packages_upload_terraform" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'owner' is set - if ('owner' not in params) or (params['owner'] is None): - raise ValueError("Missing the required parameter `owner` when calling `packages_upload_terraform`") - # verify the required parameter 'repo' is set - if ('repo' not in params) or (params['repo'] is None): - raise ValueError("Missing the required parameter `repo` when calling `packages_upload_terraform`") - - - collection_formats = {} - - path_params = {} - if 'owner' in params: - path_params['owner'] = params['owner'] - if 'repo' in params: - path_params['repo'] = params['repo'] - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'data' in params: - body_params = params['data'] - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['apikey'] - - return self.api_client.call_api('/packages/{owner}/{repo}/upload/terraform/', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='AlpinePackageUpload', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def packages_upload_vagrant(self, owner, repo, **kwargs): - """ - Create a new Vagrant package - Create a new Vagrant package - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.packages_upload_vagrant(owner, repo, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param PackagesUploadVagrant data: - :return: VagrantPackageUpload - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.packages_upload_vagrant_with_http_info(owner, repo, **kwargs) - else: - (data) = self.packages_upload_vagrant_with_http_info(owner, repo, **kwargs) - return data - - def packages_upload_vagrant_with_http_info(self, owner, repo, **kwargs): - """ - Create a new Vagrant package - Create a new Vagrant package - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.packages_upload_vagrant_with_http_info(owner, repo, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param PackagesUploadVagrant data: - :return: VagrantPackageUpload - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['owner', 'repo', 'data'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method packages_upload_vagrant" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'owner' is set - if ('owner' not in params) or (params['owner'] is None): - raise ValueError("Missing the required parameter `owner` when calling `packages_upload_vagrant`") - # verify the required parameter 'repo' is set - if ('repo' not in params) or (params['repo'] is None): - raise ValueError("Missing the required parameter `repo` when calling `packages_upload_vagrant`") - - - collection_formats = {} - - path_params = {} - if 'owner' in params: - path_params['owner'] = params['owner'] - if 'repo' in params: - path_params['repo'] = params['repo'] - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'data' in params: - body_params = params['data'] - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['apikey'] - - return self.api_client.call_api('/packages/{owner}/{repo}/upload/vagrant/', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='VagrantPackageUpload', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def packages_validate_upload_alpine(self, owner, repo, **kwargs): - """ - Validate parameters for create Alpine package - Validate parameters for create Alpine package - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.packages_validate_upload_alpine(owner, repo, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param PackagesValidateuploadAlpine data: - :return: None - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.packages_validate_upload_alpine_with_http_info(owner, repo, **kwargs) - else: - (data) = self.packages_validate_upload_alpine_with_http_info(owner, repo, **kwargs) - return data - - def packages_validate_upload_alpine_with_http_info(self, owner, repo, **kwargs): - """ - Validate parameters for create Alpine package - Validate parameters for create Alpine package - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.packages_validate_upload_alpine_with_http_info(owner, repo, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param PackagesValidateuploadAlpine data: - :return: None - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['owner', 'repo', 'data'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method packages_validate_upload_alpine" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'owner' is set - if ('owner' not in params) or (params['owner'] is None): - raise ValueError("Missing the required parameter `owner` when calling `packages_validate_upload_alpine`") - # verify the required parameter 'repo' is set - if ('repo' not in params) or (params['repo'] is None): - raise ValueError("Missing the required parameter `repo` when calling `packages_validate_upload_alpine`") - - - collection_formats = {} - - path_params = {} - if 'owner' in params: - path_params['owner'] = params['owner'] - if 'repo' in params: - path_params['repo'] = params['repo'] - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'data' in params: - body_params = params['data'] - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['apikey'] - - return self.api_client.call_api('/packages/{owner}/{repo}/validate-upload/alpine/', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type=None, - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def packages_validate_upload_cargo(self, owner, repo, **kwargs): - """ - Validate parameters for create Cargo package - Validate parameters for create Cargo package - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.packages_validate_upload_cargo(owner, repo, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param PackagesValidateuploadCargo data: - :return: None - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.packages_validate_upload_cargo_with_http_info(owner, repo, **kwargs) - else: - (data) = self.packages_validate_upload_cargo_with_http_info(owner, repo, **kwargs) - return data - - def packages_validate_upload_cargo_with_http_info(self, owner, repo, **kwargs): - """ - Validate parameters for create Cargo package - Validate parameters for create Cargo package - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.packages_validate_upload_cargo_with_http_info(owner, repo, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param PackagesValidateuploadCargo data: - :return: None - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['owner', 'repo', 'data'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method packages_validate_upload_cargo" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'owner' is set - if ('owner' not in params) or (params['owner'] is None): - raise ValueError("Missing the required parameter `owner` when calling `packages_validate_upload_cargo`") - # verify the required parameter 'repo' is set - if ('repo' not in params) or (params['repo'] is None): - raise ValueError("Missing the required parameter `repo` when calling `packages_validate_upload_cargo`") - - - collection_formats = {} - - path_params = {} - if 'owner' in params: - path_params['owner'] = params['owner'] - if 'repo' in params: - path_params['repo'] = params['repo'] - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'data' in params: - body_params = params['data'] - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['apikey'] - - return self.api_client.call_api('/packages/{owner}/{repo}/validate-upload/cargo/', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type=None, - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def packages_validate_upload_cocoapods(self, owner, repo, **kwargs): - """ - Validate parameters for create CocoaPods package - Validate parameters for create CocoaPods package - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.packages_validate_upload_cocoapods(owner, repo, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param PackagesValidateuploadCocoapods data: - :return: None - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.packages_validate_upload_cocoapods_with_http_info(owner, repo, **kwargs) - else: - (data) = self.packages_validate_upload_cocoapods_with_http_info(owner, repo, **kwargs) - return data - - def packages_validate_upload_cocoapods_with_http_info(self, owner, repo, **kwargs): - """ - Validate parameters for create CocoaPods package - Validate parameters for create CocoaPods package - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.packages_validate_upload_cocoapods_with_http_info(owner, repo, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param PackagesValidateuploadCocoapods data: - :return: None - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['owner', 'repo', 'data'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method packages_validate_upload_cocoapods" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'owner' is set - if ('owner' not in params) or (params['owner'] is None): - raise ValueError("Missing the required parameter `owner` when calling `packages_validate_upload_cocoapods`") - # verify the required parameter 'repo' is set - if ('repo' not in params) or (params['repo'] is None): - raise ValueError("Missing the required parameter `repo` when calling `packages_validate_upload_cocoapods`") - - - collection_formats = {} - - path_params = {} - if 'owner' in params: - path_params['owner'] = params['owner'] - if 'repo' in params: - path_params['repo'] = params['repo'] - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'data' in params: - body_params = params['data'] - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['apikey'] - - return self.api_client.call_api('/packages/{owner}/{repo}/validate-upload/cocoapods/', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type=None, - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def packages_validate_upload_composer(self, owner, repo, **kwargs): - """ - Validate parameters for create Composer package - Validate parameters for create Composer package - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.packages_validate_upload_composer(owner, repo, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param PackagesValidateuploadComposer data: - :return: None - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.packages_validate_upload_composer_with_http_info(owner, repo, **kwargs) - else: - (data) = self.packages_validate_upload_composer_with_http_info(owner, repo, **kwargs) - return data - - def packages_validate_upload_composer_with_http_info(self, owner, repo, **kwargs): - """ - Validate parameters for create Composer package - Validate parameters for create Composer package - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.packages_validate_upload_composer_with_http_info(owner, repo, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param PackagesValidateuploadComposer data: - :return: None - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['owner', 'repo', 'data'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method packages_validate_upload_composer" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'owner' is set - if ('owner' not in params) or (params['owner'] is None): - raise ValueError("Missing the required parameter `owner` when calling `packages_validate_upload_composer`") - # verify the required parameter 'repo' is set - if ('repo' not in params) or (params['repo'] is None): - raise ValueError("Missing the required parameter `repo` when calling `packages_validate_upload_composer`") - - - collection_formats = {} - - path_params = {} - if 'owner' in params: - path_params['owner'] = params['owner'] - if 'repo' in params: - path_params['repo'] = params['repo'] - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'data' in params: - body_params = params['data'] - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['apikey'] - - return self.api_client.call_api('/packages/{owner}/{repo}/validate-upload/composer/', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type=None, - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def packages_validate_upload_conan(self, owner, repo, **kwargs): - """ - Validate parameters for create Conan package - Validate parameters for create Conan package - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.packages_validate_upload_conan(owner, repo, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param PackagesValidateuploadConan data: - :return: None - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.packages_validate_upload_conan_with_http_info(owner, repo, **kwargs) - else: - (data) = self.packages_validate_upload_conan_with_http_info(owner, repo, **kwargs) - return data - - def packages_validate_upload_conan_with_http_info(self, owner, repo, **kwargs): - """ - Validate parameters for create Conan package - Validate parameters for create Conan package - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.packages_validate_upload_conan_with_http_info(owner, repo, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param PackagesValidateuploadConan data: - :return: None - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['owner', 'repo', 'data'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method packages_validate_upload_conan" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'owner' is set - if ('owner' not in params) or (params['owner'] is None): - raise ValueError("Missing the required parameter `owner` when calling `packages_validate_upload_conan`") - # verify the required parameter 'repo' is set - if ('repo' not in params) or (params['repo'] is None): - raise ValueError("Missing the required parameter `repo` when calling `packages_validate_upload_conan`") - - - collection_formats = {} - - path_params = {} - if 'owner' in params: - path_params['owner'] = params['owner'] - if 'repo' in params: - path_params['repo'] = params['repo'] - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'data' in params: - body_params = params['data'] - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['apikey'] - - return self.api_client.call_api('/packages/{owner}/{repo}/validate-upload/conan/', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type=None, - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def packages_validate_upload_conda(self, owner, repo, **kwargs): - """ - Validate parameters for create Conda package - Validate parameters for create Conda package - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.packages_validate_upload_conda(owner, repo, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param PackagesValidateuploadConda data: - :return: None - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.packages_validate_upload_conda_with_http_info(owner, repo, **kwargs) - else: - (data) = self.packages_validate_upload_conda_with_http_info(owner, repo, **kwargs) - return data - - def packages_validate_upload_conda_with_http_info(self, owner, repo, **kwargs): - """ - Validate parameters for create Conda package - Validate parameters for create Conda package - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.packages_validate_upload_conda_with_http_info(owner, repo, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param PackagesValidateuploadConda data: - :return: None - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['owner', 'repo', 'data'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method packages_validate_upload_conda" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'owner' is set - if ('owner' not in params) or (params['owner'] is None): - raise ValueError("Missing the required parameter `owner` when calling `packages_validate_upload_conda`") - # verify the required parameter 'repo' is set - if ('repo' not in params) or (params['repo'] is None): - raise ValueError("Missing the required parameter `repo` when calling `packages_validate_upload_conda`") - - - collection_formats = {} - - path_params = {} - if 'owner' in params: - path_params['owner'] = params['owner'] - if 'repo' in params: - path_params['repo'] = params['repo'] - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'data' in params: - body_params = params['data'] - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['apikey'] - - return self.api_client.call_api('/packages/{owner}/{repo}/validate-upload/conda/', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type=None, - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def packages_validate_upload_cran(self, owner, repo, **kwargs): - """ - Validate parameters for create CRAN package - Validate parameters for create CRAN package - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.packages_validate_upload_cran(owner, repo, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param PackagesValidateuploadCran data: - :return: None - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.packages_validate_upload_cran_with_http_info(owner, repo, **kwargs) - else: - (data) = self.packages_validate_upload_cran_with_http_info(owner, repo, **kwargs) - return data - - def packages_validate_upload_cran_with_http_info(self, owner, repo, **kwargs): - """ - Validate parameters for create CRAN package - Validate parameters for create CRAN package - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.packages_validate_upload_cran_with_http_info(owner, repo, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param PackagesValidateuploadCran data: - :return: None - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['owner', 'repo', 'data'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method packages_validate_upload_cran" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'owner' is set - if ('owner' not in params) or (params['owner'] is None): - raise ValueError("Missing the required parameter `owner` when calling `packages_validate_upload_cran`") - # verify the required parameter 'repo' is set - if ('repo' not in params) or (params['repo'] is None): - raise ValueError("Missing the required parameter `repo` when calling `packages_validate_upload_cran`") - - - collection_formats = {} - - path_params = {} - if 'owner' in params: - path_params['owner'] = params['owner'] - if 'repo' in params: - path_params['repo'] = params['repo'] - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'data' in params: - body_params = params['data'] - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['apikey'] - - return self.api_client.call_api('/packages/{owner}/{repo}/validate-upload/cran/', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type=None, - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def packages_validate_upload_dart(self, owner, repo, **kwargs): - """ - Validate parameters for create Dart package - Validate parameters for create Dart package - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.packages_validate_upload_dart(owner, repo, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param PackagesValidateuploadDart data: - :return: None - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.packages_validate_upload_dart_with_http_info(owner, repo, **kwargs) - else: - (data) = self.packages_validate_upload_dart_with_http_info(owner, repo, **kwargs) - return data - - def packages_validate_upload_dart_with_http_info(self, owner, repo, **kwargs): - """ - Validate parameters for create Dart package - Validate parameters for create Dart package - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.packages_validate_upload_dart_with_http_info(owner, repo, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param PackagesValidateuploadDart data: - :return: None - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['owner', 'repo', 'data'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method packages_validate_upload_dart" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'owner' is set - if ('owner' not in params) or (params['owner'] is None): - raise ValueError("Missing the required parameter `owner` when calling `packages_validate_upload_dart`") - # verify the required parameter 'repo' is set - if ('repo' not in params) or (params['repo'] is None): - raise ValueError("Missing the required parameter `repo` when calling `packages_validate_upload_dart`") - - - collection_formats = {} - - path_params = {} - if 'owner' in params: - path_params['owner'] = params['owner'] - if 'repo' in params: - path_params['repo'] = params['repo'] - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'data' in params: - body_params = params['data'] - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['apikey'] - - return self.api_client.call_api('/packages/{owner}/{repo}/validate-upload/dart/', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type=None, - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def packages_validate_upload_deb(self, owner, repo, **kwargs): - """ - Validate parameters for create Debian package - Validate parameters for create Debian package - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.packages_validate_upload_deb(owner, repo, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param PackagesValidateuploadDeb data: - :return: None - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.packages_validate_upload_deb_with_http_info(owner, repo, **kwargs) - else: - (data) = self.packages_validate_upload_deb_with_http_info(owner, repo, **kwargs) - return data - - def packages_validate_upload_deb_with_http_info(self, owner, repo, **kwargs): - """ - Validate parameters for create Debian package - Validate parameters for create Debian package - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.packages_validate_upload_deb_with_http_info(owner, repo, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param PackagesValidateuploadDeb data: - :return: None - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['owner', 'repo', 'data'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method packages_validate_upload_deb" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'owner' is set - if ('owner' not in params) or (params['owner'] is None): - raise ValueError("Missing the required parameter `owner` when calling `packages_validate_upload_deb`") - # verify the required parameter 'repo' is set - if ('repo' not in params) or (params['repo'] is None): - raise ValueError("Missing the required parameter `repo` when calling `packages_validate_upload_deb`") - - - collection_formats = {} - - path_params = {} - if 'owner' in params: - path_params['owner'] = params['owner'] - if 'repo' in params: - path_params['repo'] = params['repo'] - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'data' in params: - body_params = params['data'] - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['apikey'] - - return self.api_client.call_api('/packages/{owner}/{repo}/validate-upload/deb/', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type=None, - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def packages_validate_upload_docker(self, owner, repo, **kwargs): - """ - Validate parameters for create Docker package - Validate parameters for create Docker package - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.packages_validate_upload_docker(owner, repo, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param PackagesValidateuploadDocker data: - :return: None - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.packages_validate_upload_docker_with_http_info(owner, repo, **kwargs) - else: - (data) = self.packages_validate_upload_docker_with_http_info(owner, repo, **kwargs) - return data - - def packages_validate_upload_docker_with_http_info(self, owner, repo, **kwargs): - """ - Validate parameters for create Docker package - Validate parameters for create Docker package - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.packages_validate_upload_docker_with_http_info(owner, repo, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param PackagesValidateuploadDocker data: - :return: None - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['owner', 'repo', 'data'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method packages_validate_upload_docker" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'owner' is set - if ('owner' not in params) or (params['owner'] is None): - raise ValueError("Missing the required parameter `owner` when calling `packages_validate_upload_docker`") - # verify the required parameter 'repo' is set - if ('repo' not in params) or (params['repo'] is None): - raise ValueError("Missing the required parameter `repo` when calling `packages_validate_upload_docker`") - - - collection_formats = {} - - path_params = {} - if 'owner' in params: - path_params['owner'] = params['owner'] - if 'repo' in params: - path_params['repo'] = params['repo'] - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'data' in params: - body_params = params['data'] - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['apikey'] - - return self.api_client.call_api('/packages/{owner}/{repo}/validate-upload/docker/', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type=None, - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def packages_validate_upload_go(self, owner, repo, **kwargs): - """ - Validate parameters for create Go package - Validate parameters for create Go package - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.packages_validate_upload_go(owner, repo, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param PackagesValidateuploadGo data: - :return: None - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.packages_validate_upload_go_with_http_info(owner, repo, **kwargs) - else: - (data) = self.packages_validate_upload_go_with_http_info(owner, repo, **kwargs) - return data - - def packages_validate_upload_go_with_http_info(self, owner, repo, **kwargs): - """ - Validate parameters for create Go package - Validate parameters for create Go package - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.packages_validate_upload_go_with_http_info(owner, repo, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param PackagesValidateuploadGo data: - :return: None - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['owner', 'repo', 'data'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method packages_validate_upload_go" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'owner' is set - if ('owner' not in params) or (params['owner'] is None): - raise ValueError("Missing the required parameter `owner` when calling `packages_validate_upload_go`") - # verify the required parameter 'repo' is set - if ('repo' not in params) or (params['repo'] is None): - raise ValueError("Missing the required parameter `repo` when calling `packages_validate_upload_go`") - - - collection_formats = {} - - path_params = {} - if 'owner' in params: - path_params['owner'] = params['owner'] - if 'repo' in params: - path_params['repo'] = params['repo'] - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'data' in params: - body_params = params['data'] - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['apikey'] - - return self.api_client.call_api('/packages/{owner}/{repo}/validate-upload/go/', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type=None, - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def packages_validate_upload_helm(self, owner, repo, **kwargs): - """ - Validate parameters for create Helm package - Validate parameters for create Helm package - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.packages_validate_upload_helm(owner, repo, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param PackagesValidateuploadHelm data: - :return: None - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.packages_validate_upload_helm_with_http_info(owner, repo, **kwargs) - else: - (data) = self.packages_validate_upload_helm_with_http_info(owner, repo, **kwargs) - return data - - def packages_validate_upload_helm_with_http_info(self, owner, repo, **kwargs): - """ - Validate parameters for create Helm package - Validate parameters for create Helm package - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.packages_validate_upload_helm_with_http_info(owner, repo, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param PackagesValidateuploadHelm data: - :return: None - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['owner', 'repo', 'data'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method packages_validate_upload_helm" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'owner' is set - if ('owner' not in params) or (params['owner'] is None): - raise ValueError("Missing the required parameter `owner` when calling `packages_validate_upload_helm`") - # verify the required parameter 'repo' is set - if ('repo' not in params) or (params['repo'] is None): - raise ValueError("Missing the required parameter `repo` when calling `packages_validate_upload_helm`") - - - collection_formats = {} - - path_params = {} - if 'owner' in params: - path_params['owner'] = params['owner'] - if 'repo' in params: - path_params['repo'] = params['repo'] - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'data' in params: - body_params = params['data'] - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['apikey'] - - return self.api_client.call_api('/packages/{owner}/{repo}/validate-upload/helm/', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type=None, - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def packages_validate_upload_luarocks(self, owner, repo, **kwargs): - """ - Validate parameters for create LuaRocks package - Validate parameters for create LuaRocks package - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.packages_validate_upload_luarocks(owner, repo, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param PackagesValidateuploadLuarocks data: - :return: None - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.packages_validate_upload_luarocks_with_http_info(owner, repo, **kwargs) - else: - (data) = self.packages_validate_upload_luarocks_with_http_info(owner, repo, **kwargs) - return data - - def packages_validate_upload_luarocks_with_http_info(self, owner, repo, **kwargs): - """ - Validate parameters for create LuaRocks package - Validate parameters for create LuaRocks package - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.packages_validate_upload_luarocks_with_http_info(owner, repo, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param PackagesValidateuploadLuarocks data: - :return: None - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['owner', 'repo', 'data'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method packages_validate_upload_luarocks" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'owner' is set - if ('owner' not in params) or (params['owner'] is None): - raise ValueError("Missing the required parameter `owner` when calling `packages_validate_upload_luarocks`") - # verify the required parameter 'repo' is set - if ('repo' not in params) or (params['repo'] is None): - raise ValueError("Missing the required parameter `repo` when calling `packages_validate_upload_luarocks`") - - - collection_formats = {} - - path_params = {} - if 'owner' in params: - path_params['owner'] = params['owner'] - if 'repo' in params: - path_params['repo'] = params['repo'] - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'data' in params: - body_params = params['data'] - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['apikey'] - - return self.api_client.call_api('/packages/{owner}/{repo}/validate-upload/luarocks/', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type=None, - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def packages_validate_upload_maven(self, owner, repo, **kwargs): - """ - Validate parameters for create Maven package - Validate parameters for create Maven package - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.packages_validate_upload_maven(owner, repo, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param PackagesValidateuploadMaven data: - :return: None - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.packages_validate_upload_maven_with_http_info(owner, repo, **kwargs) - else: - (data) = self.packages_validate_upload_maven_with_http_info(owner, repo, **kwargs) - return data - - def packages_validate_upload_maven_with_http_info(self, owner, repo, **kwargs): - """ - Validate parameters for create Maven package - Validate parameters for create Maven package - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.packages_validate_upload_maven_with_http_info(owner, repo, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param PackagesValidateuploadMaven data: - :return: None - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['owner', 'repo', 'data'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method packages_validate_upload_maven" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'owner' is set - if ('owner' not in params) or (params['owner'] is None): - raise ValueError("Missing the required parameter `owner` when calling `packages_validate_upload_maven`") - # verify the required parameter 'repo' is set - if ('repo' not in params) or (params['repo'] is None): - raise ValueError("Missing the required parameter `repo` when calling `packages_validate_upload_maven`") - - - collection_formats = {} - - path_params = {} - if 'owner' in params: - path_params['owner'] = params['owner'] - if 'repo' in params: - path_params['repo'] = params['repo'] - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'data' in params: - body_params = params['data'] - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['apikey'] - - return self.api_client.call_api('/packages/{owner}/{repo}/validate-upload/maven/', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type=None, - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def packages_validate_upload_npm(self, owner, repo, **kwargs): - """ - Validate parameters for create npm package - Validate parameters for create npm package - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.packages_validate_upload_npm(owner, repo, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param PackagesValidateuploadNpm data: - :return: None - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.packages_validate_upload_npm_with_http_info(owner, repo, **kwargs) - else: - (data) = self.packages_validate_upload_npm_with_http_info(owner, repo, **kwargs) - return data - - def packages_validate_upload_npm_with_http_info(self, owner, repo, **kwargs): - """ - Validate parameters for create npm package - Validate parameters for create npm package - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.packages_validate_upload_npm_with_http_info(owner, repo, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param PackagesValidateuploadNpm data: - :return: None - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['owner', 'repo', 'data'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method packages_validate_upload_npm" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'owner' is set - if ('owner' not in params) or (params['owner'] is None): - raise ValueError("Missing the required parameter `owner` when calling `packages_validate_upload_npm`") - # verify the required parameter 'repo' is set - if ('repo' not in params) or (params['repo'] is None): - raise ValueError("Missing the required parameter `repo` when calling `packages_validate_upload_npm`") - - - collection_formats = {} - - path_params = {} - if 'owner' in params: - path_params['owner'] = params['owner'] - if 'repo' in params: - path_params['repo'] = params['repo'] - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'data' in params: - body_params = params['data'] - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['apikey'] - - return self.api_client.call_api('/packages/{owner}/{repo}/validate-upload/npm/', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type=None, - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def packages_validate_upload_nuget(self, owner, repo, **kwargs): - """ - Validate parameters for create NuGet package - Validate parameters for create NuGet package - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.packages_validate_upload_nuget(owner, repo, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param PackagesValidateuploadNuget data: - :return: None - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.packages_validate_upload_nuget_with_http_info(owner, repo, **kwargs) - else: - (data) = self.packages_validate_upload_nuget_with_http_info(owner, repo, **kwargs) - return data - - def packages_validate_upload_nuget_with_http_info(self, owner, repo, **kwargs): - """ - Validate parameters for create NuGet package - Validate parameters for create NuGet package - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.packages_validate_upload_nuget_with_http_info(owner, repo, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param PackagesValidateuploadNuget data: - :return: None - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['owner', 'repo', 'data'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method packages_validate_upload_nuget" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'owner' is set - if ('owner' not in params) or (params['owner'] is None): - raise ValueError("Missing the required parameter `owner` when calling `packages_validate_upload_nuget`") - # verify the required parameter 'repo' is set - if ('repo' not in params) or (params['repo'] is None): - raise ValueError("Missing the required parameter `repo` when calling `packages_validate_upload_nuget`") - - - collection_formats = {} - - path_params = {} - if 'owner' in params: - path_params['owner'] = params['owner'] - if 'repo' in params: - path_params['repo'] = params['repo'] - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'data' in params: - body_params = params['data'] - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['apikey'] - - return self.api_client.call_api('/packages/{owner}/{repo}/validate-upload/nuget/', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type=None, - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def packages_validate_upload_p2(self, owner, repo, **kwargs): - """ - Validate parameters for create P2 package - Validate parameters for create P2 package - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.packages_validate_upload_p2(owner, repo, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param PackagesValidateuploadP2 data: - :return: None - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.packages_validate_upload_p2_with_http_info(owner, repo, **kwargs) - else: - (data) = self.packages_validate_upload_p2_with_http_info(owner, repo, **kwargs) - return data - - def packages_validate_upload_p2_with_http_info(self, owner, repo, **kwargs): - """ - Validate parameters for create P2 package - Validate parameters for create P2 package - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.packages_validate_upload_p2_with_http_info(owner, repo, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param PackagesValidateuploadP2 data: - :return: None - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['owner', 'repo', 'data'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method packages_validate_upload_p2" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'owner' is set - if ('owner' not in params) or (params['owner'] is None): - raise ValueError("Missing the required parameter `owner` when calling `packages_validate_upload_p2`") - # verify the required parameter 'repo' is set - if ('repo' not in params) or (params['repo'] is None): - raise ValueError("Missing the required parameter `repo` when calling `packages_validate_upload_p2`") - - - collection_formats = {} - - path_params = {} - if 'owner' in params: - path_params['owner'] = params['owner'] - if 'repo' in params: - path_params['repo'] = params['repo'] - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'data' in params: - body_params = params['data'] - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['apikey'] - - return self.api_client.call_api('/packages/{owner}/{repo}/validate-upload/p2/', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type=None, - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def packages_validate_upload_python(self, owner, repo, **kwargs): - """ - Validate parameters for create Python package - Validate parameters for create Python package - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.packages_validate_upload_python(owner, repo, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param PackagesValidateuploadPython data: - :return: None - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.packages_validate_upload_python_with_http_info(owner, repo, **kwargs) - else: - (data) = self.packages_validate_upload_python_with_http_info(owner, repo, **kwargs) - return data - - def packages_validate_upload_python_with_http_info(self, owner, repo, **kwargs): - """ - Validate parameters for create Python package - Validate parameters for create Python package - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.packages_validate_upload_python_with_http_info(owner, repo, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param PackagesValidateuploadPython data: - :return: None - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['owner', 'repo', 'data'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method packages_validate_upload_python" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'owner' is set - if ('owner' not in params) or (params['owner'] is None): - raise ValueError("Missing the required parameter `owner` when calling `packages_validate_upload_python`") - # verify the required parameter 'repo' is set - if ('repo' not in params) or (params['repo'] is None): - raise ValueError("Missing the required parameter `repo` when calling `packages_validate_upload_python`") - - - collection_formats = {} - - path_params = {} - if 'owner' in params: - path_params['owner'] = params['owner'] - if 'repo' in params: - path_params['repo'] = params['repo'] - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'data' in params: - body_params = params['data'] - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['apikey'] - - return self.api_client.call_api('/packages/{owner}/{repo}/validate-upload/python/', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type=None, - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def packages_validate_upload_raw(self, owner, repo, **kwargs): - """ - Validate parameters for create Raw package - Validate parameters for create Raw package - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.packages_validate_upload_raw(owner, repo, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param PackagesValidateuploadRaw data: - :return: None - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.packages_validate_upload_raw_with_http_info(owner, repo, **kwargs) - else: - (data) = self.packages_validate_upload_raw_with_http_info(owner, repo, **kwargs) - return data - - def packages_validate_upload_raw_with_http_info(self, owner, repo, **kwargs): - """ - Validate parameters for create Raw package - Validate parameters for create Raw package - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.packages_validate_upload_raw_with_http_info(owner, repo, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param PackagesValidateuploadRaw data: - :return: None - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['owner', 'repo', 'data'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method packages_validate_upload_raw" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'owner' is set - if ('owner' not in params) or (params['owner'] is None): - raise ValueError("Missing the required parameter `owner` when calling `packages_validate_upload_raw`") - # verify the required parameter 'repo' is set - if ('repo' not in params) or (params['repo'] is None): - raise ValueError("Missing the required parameter `repo` when calling `packages_validate_upload_raw`") - - - collection_formats = {} - - path_params = {} - if 'owner' in params: - path_params['owner'] = params['owner'] - if 'repo' in params: - path_params['repo'] = params['repo'] - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'data' in params: - body_params = params['data'] - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['apikey'] - - return self.api_client.call_api('/packages/{owner}/{repo}/validate-upload/raw/', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type=None, - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def packages_validate_upload_rpm(self, owner, repo, **kwargs): - """ - Validate parameters for create RedHat package - Validate parameters for create RedHat package - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.packages_validate_upload_rpm(owner, repo, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param PackagesValidateuploadRpm data: - :return: None - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.packages_validate_upload_rpm_with_http_info(owner, repo, **kwargs) - else: - (data) = self.packages_validate_upload_rpm_with_http_info(owner, repo, **kwargs) - return data - - def packages_validate_upload_rpm_with_http_info(self, owner, repo, **kwargs): - """ - Validate parameters for create RedHat package - Validate parameters for create RedHat package - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.packages_validate_upload_rpm_with_http_info(owner, repo, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param PackagesValidateuploadRpm data: - :return: None - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['owner', 'repo', 'data'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method packages_validate_upload_rpm" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'owner' is set - if ('owner' not in params) or (params['owner'] is None): - raise ValueError("Missing the required parameter `owner` when calling `packages_validate_upload_rpm`") - # verify the required parameter 'repo' is set - if ('repo' not in params) or (params['repo'] is None): - raise ValueError("Missing the required parameter `repo` when calling `packages_validate_upload_rpm`") - - - collection_formats = {} - - path_params = {} - if 'owner' in params: - path_params['owner'] = params['owner'] - if 'repo' in params: - path_params['repo'] = params['repo'] - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'data' in params: - body_params = params['data'] - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['apikey'] - - return self.api_client.call_api('/packages/{owner}/{repo}/validate-upload/rpm/', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type=None, - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def packages_validate_upload_ruby(self, owner, repo, **kwargs): - """ - Validate parameters for create Ruby package - Validate parameters for create Ruby package - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.packages_validate_upload_ruby(owner, repo, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param PackagesValidateuploadRuby data: - :return: None - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.packages_validate_upload_ruby_with_http_info(owner, repo, **kwargs) - else: - (data) = self.packages_validate_upload_ruby_with_http_info(owner, repo, **kwargs) - return data - - def packages_validate_upload_ruby_with_http_info(self, owner, repo, **kwargs): - """ - Validate parameters for create Ruby package - Validate parameters for create Ruby package - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.packages_validate_upload_ruby_with_http_info(owner, repo, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param PackagesValidateuploadRuby data: - :return: None - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['owner', 'repo', 'data'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method packages_validate_upload_ruby" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'owner' is set - if ('owner' not in params) or (params['owner'] is None): - raise ValueError("Missing the required parameter `owner` when calling `packages_validate_upload_ruby`") - # verify the required parameter 'repo' is set - if ('repo' not in params) or (params['repo'] is None): - raise ValueError("Missing the required parameter `repo` when calling `packages_validate_upload_ruby`") - - - collection_formats = {} - - path_params = {} - if 'owner' in params: - path_params['owner'] = params['owner'] - if 'repo' in params: - path_params['repo'] = params['repo'] - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'data' in params: - body_params = params['data'] - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['apikey'] - - return self.api_client.call_api('/packages/{owner}/{repo}/validate-upload/ruby/', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type=None, - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def packages_validate_upload_terraform(self, owner, repo, **kwargs): - """ - Validate parameters for create Terraform package - Validate parameters for create Terraform package - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.packages_validate_upload_terraform(owner, repo, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param PackagesValidateuploadTerraform data: - :return: None - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.packages_validate_upload_terraform_with_http_info(owner, repo, **kwargs) - else: - (data) = self.packages_validate_upload_terraform_with_http_info(owner, repo, **kwargs) - return data - - def packages_validate_upload_terraform_with_http_info(self, owner, repo, **kwargs): - """ - Validate parameters for create Terraform package - Validate parameters for create Terraform package - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.packages_validate_upload_terraform_with_http_info(owner, repo, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param PackagesValidateuploadTerraform data: - :return: None - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['owner', 'repo', 'data'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method packages_validate_upload_terraform" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'owner' is set - if ('owner' not in params) or (params['owner'] is None): - raise ValueError("Missing the required parameter `owner` when calling `packages_validate_upload_terraform`") - # verify the required parameter 'repo' is set - if ('repo' not in params) or (params['repo'] is None): - raise ValueError("Missing the required parameter `repo` when calling `packages_validate_upload_terraform`") - - - collection_formats = {} - - path_params = {} - if 'owner' in params: - path_params['owner'] = params['owner'] - if 'repo' in params: - path_params['repo'] = params['repo'] - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'data' in params: - body_params = params['data'] - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['apikey'] - - return self.api_client.call_api('/packages/{owner}/{repo}/validate-upload/terraform/', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type=None, - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def packages_validate_upload_vagrant(self, owner, repo, **kwargs): - """ - Validate parameters for create Vagrant package - Validate parameters for create Vagrant package - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.packages_validate_upload_vagrant(owner, repo, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param PackagesValidateuploadVagrant data: - :return: None - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.packages_validate_upload_vagrant_with_http_info(owner, repo, **kwargs) - else: - (data) = self.packages_validate_upload_vagrant_with_http_info(owner, repo, **kwargs) - return data - - def packages_validate_upload_vagrant_with_http_info(self, owner, repo, **kwargs): - """ - Validate parameters for create Vagrant package - Validate parameters for create Vagrant package - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.packages_validate_upload_vagrant_with_http_info(owner, repo, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param PackagesValidateuploadVagrant data: - :return: None - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['owner', 'repo', 'data'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method packages_validate_upload_vagrant" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'owner' is set - if ('owner' not in params) or (params['owner'] is None): - raise ValueError("Missing the required parameter `owner` when calling `packages_validate_upload_vagrant`") - # verify the required parameter 'repo' is set - if ('repo' not in params) or (params['repo'] is None): - raise ValueError("Missing the required parameter `repo` when calling `packages_validate_upload_vagrant`") - - - collection_formats = {} - - path_params = {} - if 'owner' in params: - path_params['owner'] = params['owner'] - if 'repo' in params: - path_params['repo'] = params['repo'] - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'data' in params: - body_params = params['data'] - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['apikey'] - - return self.api_client.call_api('/packages/{owner}/{repo}/validate-upload/vagrant/', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type=None, - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) diff --git a/bindings/python/src/cloudsmith_api/apis/quota_api.py b/bindings/python/src/cloudsmith_api/apis/quota_api.py deleted file mode 100644 index fdf26471..00000000 --- a/bindings/python/src/cloudsmith_api/apis/quota_api.py +++ /dev/null @@ -1,433 +0,0 @@ -# coding: utf-8 - -""" - Cloudsmith API - - The API to the Cloudsmith Service - - OpenAPI spec version: v1 - Contact: support@cloudsmith.io - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import sys -import os -import re - -# python 2 and python 3 compatibility library -from six import iteritems - -from ..configuration import Configuration -from ..api_client import ApiClient - - -class QuotaApi(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen - """ - - def __init__(self, api_client=None): - config = Configuration() - if api_client: - self.api_client = api_client - else: - if not config.api_client: - config.api_client = ApiClient() - self.api_client = config.api_client - - def quota_history_read(self, owner, **kwargs): - """ - Quota history for a given namespace. - Quota history for a given namespace. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.quota_history_read(owner, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :return: QuotaHistory - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.quota_history_read_with_http_info(owner, **kwargs) - else: - (data) = self.quota_history_read_with_http_info(owner, **kwargs) - return data - - def quota_history_read_with_http_info(self, owner, **kwargs): - """ - Quota history for a given namespace. - Quota history for a given namespace. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.quota_history_read_with_http_info(owner, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :return: QuotaHistory - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['owner'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method quota_history_read" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'owner' is set - if ('owner' not in params) or (params['owner'] is None): - raise ValueError("Missing the required parameter `owner` when calling `quota_history_read`") - - - collection_formats = {} - - path_params = {} - if 'owner' in params: - path_params['owner'] = params['owner'] - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # Authentication setting - auth_settings = ['apikey'] - - return self.api_client.call_api('/quota/history/{owner}/', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='QuotaHistory', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def quota_oss_history_read(self, owner, **kwargs): - """ - Open-source Quota history for a given namespace. - Open-source Quota history for a given namespace. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.quota_oss_history_read(owner, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :return: QuotaHistory - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.quota_oss_history_read_with_http_info(owner, **kwargs) - else: - (data) = self.quota_oss_history_read_with_http_info(owner, **kwargs) - return data - - def quota_oss_history_read_with_http_info(self, owner, **kwargs): - """ - Open-source Quota history for a given namespace. - Open-source Quota history for a given namespace. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.quota_oss_history_read_with_http_info(owner, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :return: QuotaHistory - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['owner'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method quota_oss_history_read" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'owner' is set - if ('owner' not in params) or (params['owner'] is None): - raise ValueError("Missing the required parameter `owner` when calling `quota_oss_history_read`") - - - collection_formats = {} - - path_params = {} - if 'owner' in params: - path_params['owner'] = params['owner'] - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # Authentication setting - auth_settings = ['apikey'] - - return self.api_client.call_api('/quota/oss/history/{owner}/', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='QuotaHistory', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def quota_oss_read(self, owner, **kwargs): - """ - Open-source Quota usage for a given namespace. - Open-source Quota usage for a given namespace. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.quota_oss_read(owner, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :return: Quota - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.quota_oss_read_with_http_info(owner, **kwargs) - else: - (data) = self.quota_oss_read_with_http_info(owner, **kwargs) - return data - - def quota_oss_read_with_http_info(self, owner, **kwargs): - """ - Open-source Quota usage for a given namespace. - Open-source Quota usage for a given namespace. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.quota_oss_read_with_http_info(owner, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :return: Quota - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['owner'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method quota_oss_read" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'owner' is set - if ('owner' not in params) or (params['owner'] is None): - raise ValueError("Missing the required parameter `owner` when calling `quota_oss_read`") - - - collection_formats = {} - - path_params = {} - if 'owner' in params: - path_params['owner'] = params['owner'] - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # Authentication setting - auth_settings = ['apikey'] - - return self.api_client.call_api('/quota/oss/{owner}/', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='Quota', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def quota_read(self, owner, **kwargs): - """ - Quota usage for a given namespace. - Quota usage for a given namespace. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.quota_read(owner, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :return: Quota - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.quota_read_with_http_info(owner, **kwargs) - else: - (data) = self.quota_read_with_http_info(owner, **kwargs) - return data - - def quota_read_with_http_info(self, owner, **kwargs): - """ - Quota usage for a given namespace. - Quota usage for a given namespace. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.quota_read_with_http_info(owner, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :return: Quota - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['owner'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method quota_read" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'owner' is set - if ('owner' not in params) or (params['owner'] is None): - raise ValueError("Missing the required parameter `owner` when calling `quota_read`") - - - collection_formats = {} - - path_params = {} - if 'owner' in params: - path_params['owner'] = params['owner'] - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # Authentication setting - auth_settings = ['apikey'] - - return self.api_client.call_api('/quota/{owner}/', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='Quota', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) diff --git a/bindings/python/src/cloudsmith_api/apis/rates_api.py b/bindings/python/src/cloudsmith_api/apis/rates_api.py deleted file mode 100644 index 7cca71a5..00000000 --- a/bindings/python/src/cloudsmith_api/apis/rates_api.py +++ /dev/null @@ -1,131 +0,0 @@ -# coding: utf-8 - -""" - Cloudsmith API - - The API to the Cloudsmith Service - - OpenAPI spec version: v1 - Contact: support@cloudsmith.io - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import sys -import os -import re - -# python 2 and python 3 compatibility library -from six import iteritems - -from ..configuration import Configuration -from ..api_client import ApiClient - - -class RatesApi(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen - """ - - def __init__(self, api_client=None): - config = Configuration() - if api_client: - self.api_client = api_client - else: - if not config.api_client: - config.api_client = ApiClient() - self.api_client = config.api_client - - def rates_limits_list(self, **kwargs): - """ - Endpoint to check rate limits for current user. - Endpoint to check rate limits for current user. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.rates_limits_list(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :return: ResourcesRateCheck - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.rates_limits_list_with_http_info(**kwargs) - else: - (data) = self.rates_limits_list_with_http_info(**kwargs) - return data - - def rates_limits_list_with_http_info(self, **kwargs): - """ - Endpoint to check rate limits for current user. - Endpoint to check rate limits for current user. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.rates_limits_list_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :return: ResourcesRateCheck - If the method is called asynchronously, - returns the request thread. - """ - - all_params = [] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method rates_limits_list" % key - ) - params[key] = val - del params['kwargs'] - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # Authentication setting - auth_settings = ['apikey'] - - return self.api_client.call_api('/rates/limits/', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='ResourcesRateCheck', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) diff --git a/bindings/python/src/cloudsmith_api/apis/repos_api.py b/bindings/python/src/cloudsmith_api/apis/repos_api.py deleted file mode 100644 index 5fd4fc1a..00000000 --- a/bindings/python/src/cloudsmith_api/apis/repos_api.py +++ /dev/null @@ -1,675 +0,0 @@ -# coding: utf-8 - -""" - Cloudsmith API - - The API to the Cloudsmith Service - - OpenAPI spec version: v1 - Contact: support@cloudsmith.io - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import sys -import os -import re - -# python 2 and python 3 compatibility library -from six import iteritems - -from ..configuration import Configuration -from ..api_client import ApiClient - - -class ReposApi(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen - """ - - def __init__(self, api_client=None): - config = Configuration() - if api_client: - self.api_client = api_client - else: - if not config.api_client: - config.api_client = ApiClient() - self.api_client = config.api_client - - def repos_all_list(self, **kwargs): - """ - Get a list of all repositories associated with current user. - Get a list of all repositories associated with current user. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.repos_all_list(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param int page: A page number within the paginated result set. - :param int page_size: Number of results to return per page. - :return: list[Repository] - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.repos_all_list_with_http_info(**kwargs) - else: - (data) = self.repos_all_list_with_http_info(**kwargs) - return data - - def repos_all_list_with_http_info(self, **kwargs): - """ - Get a list of all repositories associated with current user. - Get a list of all repositories associated with current user. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.repos_all_list_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param int page: A page number within the paginated result set. - :param int page_size: Number of results to return per page. - :return: list[Repository] - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['page', 'page_size'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method repos_all_list" % key - ) - params[key] = val - del params['kwargs'] - - - collection_formats = {} - - path_params = {} - - query_params = [] - if 'page' in params: - query_params.append(('page', params['page'])) - if 'page_size' in params: - query_params.append(('page_size', params['page_size'])) - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # Authentication setting - auth_settings = ['apikey'] - - return self.api_client.call_api('/repos/', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='list[Repository]', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def repos_create(self, owner, **kwargs): - """ - Create a new repository in a given namespace. - Create a new repository in a given namespace. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.repos_create(owner, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param ReposCreate data: - :return: Repository - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.repos_create_with_http_info(owner, **kwargs) - else: - (data) = self.repos_create_with_http_info(owner, **kwargs) - return data - - def repos_create_with_http_info(self, owner, **kwargs): - """ - Create a new repository in a given namespace. - Create a new repository in a given namespace. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.repos_create_with_http_info(owner, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param ReposCreate data: - :return: Repository - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['owner', 'data'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method repos_create" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'owner' is set - if ('owner' not in params) or (params['owner'] is None): - raise ValueError("Missing the required parameter `owner` when calling `repos_create`") - - - collection_formats = {} - - path_params = {} - if 'owner' in params: - path_params['owner'] = params['owner'] - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'data' in params: - body_params = params['data'] - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['apikey'] - - return self.api_client.call_api('/repos/{owner}/', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='Repository', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def repos_delete(self, owner, identifier, **kwargs): - """ - Delete a repository in a given namespace. - Delete a repository in a given namespace. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.repos_delete(owner, identifier, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str identifier: (required) - :return: None - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.repos_delete_with_http_info(owner, identifier, **kwargs) - else: - (data) = self.repos_delete_with_http_info(owner, identifier, **kwargs) - return data - - def repos_delete_with_http_info(self, owner, identifier, **kwargs): - """ - Delete a repository in a given namespace. - Delete a repository in a given namespace. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.repos_delete_with_http_info(owner, identifier, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str identifier: (required) - :return: None - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['owner', 'identifier'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method repos_delete" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'owner' is set - if ('owner' not in params) or (params['owner'] is None): - raise ValueError("Missing the required parameter `owner` when calling `repos_delete`") - # verify the required parameter 'identifier' is set - if ('identifier' not in params) or (params['identifier'] is None): - raise ValueError("Missing the required parameter `identifier` when calling `repos_delete`") - - - collection_formats = {} - - path_params = {} - if 'owner' in params: - path_params['owner'] = params['owner'] - if 'identifier' in params: - path_params['identifier'] = params['identifier'] - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # Authentication setting - auth_settings = ['apikey'] - - return self.api_client.call_api('/repos/{owner}/{identifier}/', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type=None, - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def repos_list(self, owner, **kwargs): - """ - Get a list of all repositories within a namespace. - Get a list of all repositories within a namespace. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.repos_list(owner, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param int page: A page number within the paginated result set. - :param int page_size: Number of results to return per page. - :return: list[Repository] - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.repos_list_with_http_info(owner, **kwargs) - else: - (data) = self.repos_list_with_http_info(owner, **kwargs) - return data - - def repos_list_with_http_info(self, owner, **kwargs): - """ - Get a list of all repositories within a namespace. - Get a list of all repositories within a namespace. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.repos_list_with_http_info(owner, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param int page: A page number within the paginated result set. - :param int page_size: Number of results to return per page. - :return: list[Repository] - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['owner', 'page', 'page_size'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method repos_list" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'owner' is set - if ('owner' not in params) or (params['owner'] is None): - raise ValueError("Missing the required parameter `owner` when calling `repos_list`") - - - collection_formats = {} - - path_params = {} - if 'owner' in params: - path_params['owner'] = params['owner'] - - query_params = [] - if 'page' in params: - query_params.append(('page', params['page'])) - if 'page_size' in params: - query_params.append(('page_size', params['page_size'])) - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # Authentication setting - auth_settings = ['apikey'] - - return self.api_client.call_api('/repos/{owner}/', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='list[Repository]', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def repos_partial_update(self, owner, identifier, **kwargs): - """ - Update details about a repository in a given namespace. - Update details about a repository in a given namespace. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.repos_partial_update(owner, identifier, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str identifier: (required) - :param ReposPartialUpdate data: - :return: Repository - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.repos_partial_update_with_http_info(owner, identifier, **kwargs) - else: - (data) = self.repos_partial_update_with_http_info(owner, identifier, **kwargs) - return data - - def repos_partial_update_with_http_info(self, owner, identifier, **kwargs): - """ - Update details about a repository in a given namespace. - Update details about a repository in a given namespace. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.repos_partial_update_with_http_info(owner, identifier, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str identifier: (required) - :param ReposPartialUpdate data: - :return: Repository - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['owner', 'identifier', 'data'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method repos_partial_update" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'owner' is set - if ('owner' not in params) or (params['owner'] is None): - raise ValueError("Missing the required parameter `owner` when calling `repos_partial_update`") - # verify the required parameter 'identifier' is set - if ('identifier' not in params) or (params['identifier'] is None): - raise ValueError("Missing the required parameter `identifier` when calling `repos_partial_update`") - - - collection_formats = {} - - path_params = {} - if 'owner' in params: - path_params['owner'] = params['owner'] - if 'identifier' in params: - path_params['identifier'] = params['identifier'] - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'data' in params: - body_params = params['data'] - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['apikey'] - - return self.api_client.call_api('/repos/{owner}/{identifier}/', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='Repository', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def repos_read(self, owner, identifier, **kwargs): - """ - Get a specific repository. - Get a specific repository. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.repos_read(owner, identifier, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str identifier: (required) - :return: Repository - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.repos_read_with_http_info(owner, identifier, **kwargs) - else: - (data) = self.repos_read_with_http_info(owner, identifier, **kwargs) - return data - - def repos_read_with_http_info(self, owner, identifier, **kwargs): - """ - Get a specific repository. - Get a specific repository. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.repos_read_with_http_info(owner, identifier, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str identifier: (required) - :return: Repository - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['owner', 'identifier'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method repos_read" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'owner' is set - if ('owner' not in params) or (params['owner'] is None): - raise ValueError("Missing the required parameter `owner` when calling `repos_read`") - # verify the required parameter 'identifier' is set - if ('identifier' not in params) or (params['identifier'] is None): - raise ValueError("Missing the required parameter `identifier` when calling `repos_read`") - - - collection_formats = {} - - path_params = {} - if 'owner' in params: - path_params['owner'] = params['owner'] - if 'identifier' in params: - path_params['identifier'] = params['identifier'] - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # Authentication setting - auth_settings = ['apikey'] - - return self.api_client.call_api('/repos/{owner}/{identifier}/', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='Repository', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) diff --git a/bindings/python/src/cloudsmith_api/apis/status_api.py b/bindings/python/src/cloudsmith_api/apis/status_api.py deleted file mode 100644 index 47c00acd..00000000 --- a/bindings/python/src/cloudsmith_api/apis/status_api.py +++ /dev/null @@ -1,131 +0,0 @@ -# coding: utf-8 - -""" - Cloudsmith API - - The API to the Cloudsmith Service - - OpenAPI spec version: v1 - Contact: support@cloudsmith.io - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import sys -import os -import re - -# python 2 and python 3 compatibility library -from six import iteritems - -from ..configuration import Configuration -from ..api_client import ApiClient - - -class StatusApi(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen - """ - - def __init__(self, api_client=None): - config = Configuration() - if api_client: - self.api_client = api_client - else: - if not config.api_client: - config.api_client = ApiClient() - self.api_client = config.api_client - - def status_check_basic(self, **kwargs): - """ - Endpoint to check basic API connectivity. - Endpoint to check basic API connectivity. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.status_check_basic(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :return: StatusBasic - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.status_check_basic_with_http_info(**kwargs) - else: - (data) = self.status_check_basic_with_http_info(**kwargs) - return data - - def status_check_basic_with_http_info(self, **kwargs): - """ - Endpoint to check basic API connectivity. - Endpoint to check basic API connectivity. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.status_check_basic_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :return: StatusBasic - If the method is called asynchronously, - returns the request thread. - """ - - all_params = [] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method status_check_basic" % key - ) - params[key] = val - del params['kwargs'] - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # Authentication setting - auth_settings = [] - - return self.api_client.call_api('/status/check/basic/', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='StatusBasic', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) diff --git a/bindings/python/src/cloudsmith_api/apis/storageregions_api.py b/bindings/python/src/cloudsmith_api/apis/storageregions_api.py deleted file mode 100644 index 021e8b7e..00000000 --- a/bindings/python/src/cloudsmith_api/apis/storageregions_api.py +++ /dev/null @@ -1,229 +0,0 @@ -# coding: utf-8 - -""" - Cloudsmith API - - The API to the Cloudsmith Service - - OpenAPI spec version: v1 - Contact: support@cloudsmith.io - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import sys -import os -import re - -# python 2 and python 3 compatibility library -from six import iteritems - -from ..configuration import Configuration -from ..api_client import ApiClient - - -class StorageregionsApi(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen - """ - - def __init__(self, api_client=None): - config = Configuration() - if api_client: - self.api_client = api_client - else: - if not config.api_client: - config.api_client = ApiClient() - self.api_client = config.api_client - - def storage_regions_list(self, **kwargs): - """ - Get a list of all available storage regions. - Get a list of all available storage regions. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.storage_regions_list(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :return: list[StorageRegion] - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.storage_regions_list_with_http_info(**kwargs) - else: - (data) = self.storage_regions_list_with_http_info(**kwargs) - return data - - def storage_regions_list_with_http_info(self, **kwargs): - """ - Get a list of all available storage regions. - Get a list of all available storage regions. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.storage_regions_list_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :return: list[StorageRegion] - If the method is called asynchronously, - returns the request thread. - """ - - all_params = [] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method storage_regions_list" % key - ) - params[key] = val - del params['kwargs'] - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # Authentication setting - auth_settings = ['apikey'] - - return self.api_client.call_api('/storage-regions/', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='list[StorageRegion]', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def storage_regions_read(self, slug, **kwargs): - """ - Get a specific storage region. - Get a specific storage region. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.storage_regions_read(slug, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str slug: (required) - :return: StorageRegion - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.storage_regions_read_with_http_info(slug, **kwargs) - else: - (data) = self.storage_regions_read_with_http_info(slug, **kwargs) - return data - - def storage_regions_read_with_http_info(self, slug, **kwargs): - """ - Get a specific storage region. - Get a specific storage region. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.storage_regions_read_with_http_info(slug, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str slug: (required) - :return: StorageRegion - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['slug'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method storage_regions_read" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'slug' is set - if ('slug' not in params) or (params['slug'] is None): - raise ValueError("Missing the required parameter `slug` when calling `storage_regions_read`") - - - collection_formats = {} - - path_params = {} - if 'slug' in params: - path_params['slug'] = params['slug'] - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # Authentication setting - auth_settings = ['apikey'] - - return self.api_client.call_api('/storage-regions/{slug}/', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='StorageRegion', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) diff --git a/bindings/python/src/cloudsmith_api/apis/user_api.py b/bindings/python/src/cloudsmith_api/apis/user_api.py deleted file mode 100644 index f3045ba9..00000000 --- a/bindings/python/src/cloudsmith_api/apis/user_api.py +++ /dev/null @@ -1,230 +0,0 @@ -# coding: utf-8 - -""" - Cloudsmith API - - The API to the Cloudsmith Service - - OpenAPI spec version: v1 - Contact: support@cloudsmith.io - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import sys -import os -import re - -# python 2 and python 3 compatibility library -from six import iteritems - -from ..configuration import Configuration -from ..api_client import ApiClient - - -class UserApi(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen - """ - - def __init__(self, api_client=None): - config = Configuration() - if api_client: - self.api_client = api_client - else: - if not config.api_client: - config.api_client = ApiClient() - self.api_client = config.api_client - - def user_self(self, **kwargs): - """ - Provide a brief for the current user (if any). - Provide a brief for the current user (if any). - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.user_self(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :return: UserBrief - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.user_self_with_http_info(**kwargs) - else: - (data) = self.user_self_with_http_info(**kwargs) - return data - - def user_self_with_http_info(self, **kwargs): - """ - Provide a brief for the current user (if any). - Provide a brief for the current user (if any). - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.user_self_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :return: UserBrief - If the method is called asynchronously, - returns the request thread. - """ - - all_params = [] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method user_self" % key - ) - params[key] = val - del params['kwargs'] - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # Authentication setting - auth_settings = ['apikey'] - - return self.api_client.call_api('/user/self/', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='UserBrief', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def user_token_create(self, **kwargs): - """ - Retrieve the API key/token for the authenticated user. - Retrieve the API key/token for the authenticated user. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.user_token_create(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param UserTokenCreate data: - :return: UserAuthToken - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.user_token_create_with_http_info(**kwargs) - else: - (data) = self.user_token_create_with_http_info(**kwargs) - return data - - def user_token_create_with_http_info(self, **kwargs): - """ - Retrieve the API key/token for the authenticated user. - Retrieve the API key/token for the authenticated user. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.user_token_create_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param UserTokenCreate data: - :return: UserAuthToken - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['data'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method user_token_create" % key - ) - params[key] = val - del params['kwargs'] - - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'data' in params: - body_params = params['data'] - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['apikey'] - - return self.api_client.call_api('/user/token/', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='UserAuthToken', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) diff --git a/bindings/python/src/cloudsmith_api/apis/users_api.py b/bindings/python/src/cloudsmith_api/apis/users_api.py deleted file mode 100644 index 7db9fcd7..00000000 --- a/bindings/python/src/cloudsmith_api/apis/users_api.py +++ /dev/null @@ -1,139 +0,0 @@ -# coding: utf-8 - -""" - Cloudsmith API - - The API to the Cloudsmith Service - - OpenAPI spec version: v1 - Contact: support@cloudsmith.io - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import sys -import os -import re - -# python 2 and python 3 compatibility library -from six import iteritems - -from ..configuration import Configuration -from ..api_client import ApiClient - - -class UsersApi(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen - """ - - def __init__(self, api_client=None): - config = Configuration() - if api_client: - self.api_client = api_client - else: - if not config.api_client: - config.api_client = ApiClient() - self.api_client = config.api_client - - def users_profile_read(self, slug, **kwargs): - """ - Provide a brief for the specified user (if any). - Provide a brief for the specified user (if any). - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.users_profile_read(slug, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str slug: (required) - :return: UserProfile - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.users_profile_read_with_http_info(slug, **kwargs) - else: - (data) = self.users_profile_read_with_http_info(slug, **kwargs) - return data - - def users_profile_read_with_http_info(self, slug, **kwargs): - """ - Provide a brief for the specified user (if any). - Provide a brief for the specified user (if any). - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.users_profile_read_with_http_info(slug, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str slug: (required) - :return: UserProfile - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['slug'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method users_profile_read" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'slug' is set - if ('slug' not in params) or (params['slug'] is None): - raise ValueError("Missing the required parameter `slug` when calling `users_profile_read`") - - - collection_formats = {} - - path_params = {} - if 'slug' in params: - path_params['slug'] = params['slug'] - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # Authentication setting - auth_settings = ['apikey'] - - return self.api_client.call_api('/users/profile/{slug}/', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='UserProfile', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) diff --git a/bindings/python/src/cloudsmith_api/apis/vulnerabilities_api.py b/bindings/python/src/cloudsmith_api/apis/vulnerabilities_api.py deleted file mode 100644 index 2697bc9e..00000000 --- a/bindings/python/src/cloudsmith_api/apis/vulnerabilities_api.py +++ /dev/null @@ -1,499 +0,0 @@ -# coding: utf-8 - -""" - Cloudsmith API - - The API to the Cloudsmith Service - - OpenAPI spec version: v1 - Contact: support@cloudsmith.io - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import sys -import os -import re - -# python 2 and python 3 compatibility library -from six import iteritems - -from ..configuration import Configuration -from ..api_client import ApiClient - - -class VulnerabilitiesApi(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen - """ - - def __init__(self, api_client=None): - config = Configuration() - if api_client: - self.api_client = api_client - else: - if not config.api_client: - config.api_client = ApiClient() - self.api_client = config.api_client - - def vulnerabilities_list(self, owner, **kwargs): - """ - Lists scan results for a specific namespace. - Lists scan results for a specific namespace. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.vulnerabilities_list(owner, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param int page: A page number within the paginated result set. - :param int page_size: Number of results to return per page. - :return: list[VulnerabilityScanResultsList] - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.vulnerabilities_list_with_http_info(owner, **kwargs) - else: - (data) = self.vulnerabilities_list_with_http_info(owner, **kwargs) - return data - - def vulnerabilities_list_with_http_info(self, owner, **kwargs): - """ - Lists scan results for a specific namespace. - Lists scan results for a specific namespace. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.vulnerabilities_list_with_http_info(owner, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param int page: A page number within the paginated result set. - :param int page_size: Number of results to return per page. - :return: list[VulnerabilityScanResultsList] - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['owner', 'page', 'page_size'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method vulnerabilities_list" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'owner' is set - if ('owner' not in params) or (params['owner'] is None): - raise ValueError("Missing the required parameter `owner` when calling `vulnerabilities_list`") - - - collection_formats = {} - - path_params = {} - if 'owner' in params: - path_params['owner'] = params['owner'] - - query_params = [] - if 'page' in params: - query_params.append(('page', params['page'])) - if 'page_size' in params: - query_params.append(('page_size', params['page_size'])) - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # Authentication setting - auth_settings = ['apikey'] - - return self.api_client.call_api('/vulnerabilities/{owner}/', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='list[VulnerabilityScanResultsList]', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def vulnerabilities_list0(self, owner, repo, **kwargs): - """ - Lists scan results for a specific repository. - Lists scan results for a specific repository. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.vulnerabilities_list0(owner, repo, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param int page: A page number within the paginated result set. - :param int page_size: Number of results to return per page. - :return: list[VulnerabilityScanResultsList] - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.vulnerabilities_list0_with_http_info(owner, repo, **kwargs) - else: - (data) = self.vulnerabilities_list0_with_http_info(owner, repo, **kwargs) - return data - - def vulnerabilities_list0_with_http_info(self, owner, repo, **kwargs): - """ - Lists scan results for a specific repository. - Lists scan results for a specific repository. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.vulnerabilities_list0_with_http_info(owner, repo, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param int page: A page number within the paginated result set. - :param int page_size: Number of results to return per page. - :return: list[VulnerabilityScanResultsList] - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['owner', 'repo', 'page', 'page_size'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method vulnerabilities_list0" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'owner' is set - if ('owner' not in params) or (params['owner'] is None): - raise ValueError("Missing the required parameter `owner` when calling `vulnerabilities_list0`") - # verify the required parameter 'repo' is set - if ('repo' not in params) or (params['repo'] is None): - raise ValueError("Missing the required parameter `repo` when calling `vulnerabilities_list0`") - - - collection_formats = {} - - path_params = {} - if 'owner' in params: - path_params['owner'] = params['owner'] - if 'repo' in params: - path_params['repo'] = params['repo'] - - query_params = [] - if 'page' in params: - query_params.append(('page', params['page'])) - if 'page_size' in params: - query_params.append(('page_size', params['page_size'])) - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # Authentication setting - auth_settings = ['apikey'] - - return self.api_client.call_api('/vulnerabilities/{owner}/{repo}/', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='list[VulnerabilityScanResultsList]', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def vulnerabilities_list1(self, owner, repo, package, **kwargs): - """ - Lists scan results for a specific package. - Lists scan results for a specific package. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.vulnerabilities_list1(owner, repo, package, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param str package: (required) - :param int page: A page number within the paginated result set. - :param int page_size: Number of results to return per page. - :return: list[VulnerabilityScanResultsList] - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.vulnerabilities_list1_with_http_info(owner, repo, package, **kwargs) - else: - (data) = self.vulnerabilities_list1_with_http_info(owner, repo, package, **kwargs) - return data - - def vulnerabilities_list1_with_http_info(self, owner, repo, package, **kwargs): - """ - Lists scan results for a specific package. - Lists scan results for a specific package. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.vulnerabilities_list1_with_http_info(owner, repo, package, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param str package: (required) - :param int page: A page number within the paginated result set. - :param int page_size: Number of results to return per page. - :return: list[VulnerabilityScanResultsList] - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['owner', 'repo', 'package', 'page', 'page_size'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method vulnerabilities_list1" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'owner' is set - if ('owner' not in params) or (params['owner'] is None): - raise ValueError("Missing the required parameter `owner` when calling `vulnerabilities_list1`") - # verify the required parameter 'repo' is set - if ('repo' not in params) or (params['repo'] is None): - raise ValueError("Missing the required parameter `repo` when calling `vulnerabilities_list1`") - # verify the required parameter 'package' is set - if ('package' not in params) or (params['package'] is None): - raise ValueError("Missing the required parameter `package` when calling `vulnerabilities_list1`") - - - collection_formats = {} - - path_params = {} - if 'owner' in params: - path_params['owner'] = params['owner'] - if 'repo' in params: - path_params['repo'] = params['repo'] - if 'package' in params: - path_params['package'] = params['package'] - - query_params = [] - if 'page' in params: - query_params.append(('page', params['page'])) - if 'page_size' in params: - query_params.append(('page_size', params['page_size'])) - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # Authentication setting - auth_settings = ['apikey'] - - return self.api_client.call_api('/vulnerabilities/{owner}/{repo}/{package}/', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='list[VulnerabilityScanResultsList]', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def vulnerabilities_read(self, owner, repo, package, scan_id, **kwargs): - """ - Returns a Scan Result. - Returns a Scan Result. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.vulnerabilities_read(owner, repo, package, scan_id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param str package: (required) - :param str scan_id: (required) - :return: VulnerabilityScanResults - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.vulnerabilities_read_with_http_info(owner, repo, package, scan_id, **kwargs) - else: - (data) = self.vulnerabilities_read_with_http_info(owner, repo, package, scan_id, **kwargs) - return data - - def vulnerabilities_read_with_http_info(self, owner, repo, package, scan_id, **kwargs): - """ - Returns a Scan Result. - Returns a Scan Result. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.vulnerabilities_read_with_http_info(owner, repo, package, scan_id, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param str package: (required) - :param str scan_id: (required) - :return: VulnerabilityScanResults - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['owner', 'repo', 'package', 'scan_id'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method vulnerabilities_read" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'owner' is set - if ('owner' not in params) or (params['owner'] is None): - raise ValueError("Missing the required parameter `owner` when calling `vulnerabilities_read`") - # verify the required parameter 'repo' is set - if ('repo' not in params) or (params['repo'] is None): - raise ValueError("Missing the required parameter `repo` when calling `vulnerabilities_read`") - # verify the required parameter 'package' is set - if ('package' not in params) or (params['package'] is None): - raise ValueError("Missing the required parameter `package` when calling `vulnerabilities_read`") - # verify the required parameter 'scan_id' is set - if ('scan_id' not in params) or (params['scan_id'] is None): - raise ValueError("Missing the required parameter `scan_id` when calling `vulnerabilities_read`") - - - collection_formats = {} - - path_params = {} - if 'owner' in params: - path_params['owner'] = params['owner'] - if 'repo' in params: - path_params['repo'] = params['repo'] - if 'package' in params: - path_params['package'] = params['package'] - if 'scan_id' in params: - path_params['scan_id'] = params['scan_id'] - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # Authentication setting - auth_settings = ['apikey'] - - return self.api_client.call_api('/vulnerabilities/{owner}/{repo}/{package}/{scan_id}/', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='VulnerabilityScanResults', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) diff --git a/bindings/python/src/cloudsmith_api/apis/webhooks_api.py b/bindings/python/src/cloudsmith_api/apis/webhooks_api.py deleted file mode 100644 index 415e9f5f..00000000 --- a/bindings/python/src/cloudsmith_api/apis/webhooks_api.py +++ /dev/null @@ -1,611 +0,0 @@ -# coding: utf-8 - -""" - Cloudsmith API - - The API to the Cloudsmith Service - - OpenAPI spec version: v1 - Contact: support@cloudsmith.io - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import sys -import os -import re - -# python 2 and python 3 compatibility library -from six import iteritems - -from ..configuration import Configuration -from ..api_client import ApiClient - - -class WebhooksApi(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen - """ - - def __init__(self, api_client=None): - config = Configuration() - if api_client: - self.api_client = api_client - else: - if not config.api_client: - config.api_client = ApiClient() - self.api_client = config.api_client - - def webhooks_create(self, owner, repo, **kwargs): - """ - Create a specific webhook in a repository. - Create a specific webhook in a repository. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.webhooks_create(owner, repo, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param WebhooksCreate data: - :return: RepositoryWebhook - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.webhooks_create_with_http_info(owner, repo, **kwargs) - else: - (data) = self.webhooks_create_with_http_info(owner, repo, **kwargs) - return data - - def webhooks_create_with_http_info(self, owner, repo, **kwargs): - """ - Create a specific webhook in a repository. - Create a specific webhook in a repository. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.webhooks_create_with_http_info(owner, repo, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param WebhooksCreate data: - :return: RepositoryWebhook - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['owner', 'repo', 'data'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method webhooks_create" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'owner' is set - if ('owner' not in params) or (params['owner'] is None): - raise ValueError("Missing the required parameter `owner` when calling `webhooks_create`") - # verify the required parameter 'repo' is set - if ('repo' not in params) or (params['repo'] is None): - raise ValueError("Missing the required parameter `repo` when calling `webhooks_create`") - - - collection_formats = {} - - path_params = {} - if 'owner' in params: - path_params['owner'] = params['owner'] - if 'repo' in params: - path_params['repo'] = params['repo'] - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'data' in params: - body_params = params['data'] - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['apikey'] - - return self.api_client.call_api('/webhooks/{owner}/{repo}/', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='RepositoryWebhook', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def webhooks_delete(self, owner, repo, identifier, **kwargs): - """ - Delete a specific webhook in a repository. - Delete a specific webhook in a repository. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.webhooks_delete(owner, repo, identifier, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param str identifier: (required) - :return: None - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.webhooks_delete_with_http_info(owner, repo, identifier, **kwargs) - else: - (data) = self.webhooks_delete_with_http_info(owner, repo, identifier, **kwargs) - return data - - def webhooks_delete_with_http_info(self, owner, repo, identifier, **kwargs): - """ - Delete a specific webhook in a repository. - Delete a specific webhook in a repository. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.webhooks_delete_with_http_info(owner, repo, identifier, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param str identifier: (required) - :return: None - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['owner', 'repo', 'identifier'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method webhooks_delete" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'owner' is set - if ('owner' not in params) or (params['owner'] is None): - raise ValueError("Missing the required parameter `owner` when calling `webhooks_delete`") - # verify the required parameter 'repo' is set - if ('repo' not in params) or (params['repo'] is None): - raise ValueError("Missing the required parameter `repo` when calling `webhooks_delete`") - # verify the required parameter 'identifier' is set - if ('identifier' not in params) or (params['identifier'] is None): - raise ValueError("Missing the required parameter `identifier` when calling `webhooks_delete`") - - - collection_formats = {} - - path_params = {} - if 'owner' in params: - path_params['owner'] = params['owner'] - if 'repo' in params: - path_params['repo'] = params['repo'] - if 'identifier' in params: - path_params['identifier'] = params['identifier'] - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # Authentication setting - auth_settings = ['apikey'] - - return self.api_client.call_api('/webhooks/{owner}/{repo}/{identifier}/', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type=None, - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def webhooks_list(self, owner, repo, **kwargs): - """ - Get a list of all webhooks in a repository. - Get a list of all webhooks in a repository. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.webhooks_list(owner, repo, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param int page: A page number within the paginated result set. - :param int page_size: Number of results to return per page. - :return: list[RepositoryWebhook] - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.webhooks_list_with_http_info(owner, repo, **kwargs) - else: - (data) = self.webhooks_list_with_http_info(owner, repo, **kwargs) - return data - - def webhooks_list_with_http_info(self, owner, repo, **kwargs): - """ - Get a list of all webhooks in a repository. - Get a list of all webhooks in a repository. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.webhooks_list_with_http_info(owner, repo, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param int page: A page number within the paginated result set. - :param int page_size: Number of results to return per page. - :return: list[RepositoryWebhook] - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['owner', 'repo', 'page', 'page_size'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method webhooks_list" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'owner' is set - if ('owner' not in params) or (params['owner'] is None): - raise ValueError("Missing the required parameter `owner` when calling `webhooks_list`") - # verify the required parameter 'repo' is set - if ('repo' not in params) or (params['repo'] is None): - raise ValueError("Missing the required parameter `repo` when calling `webhooks_list`") - - - collection_formats = {} - - path_params = {} - if 'owner' in params: - path_params['owner'] = params['owner'] - if 'repo' in params: - path_params['repo'] = params['repo'] - - query_params = [] - if 'page' in params: - query_params.append(('page', params['page'])) - if 'page_size' in params: - query_params.append(('page_size', params['page_size'])) - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # Authentication setting - auth_settings = ['apikey'] - - return self.api_client.call_api('/webhooks/{owner}/{repo}/', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='list[RepositoryWebhook]', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def webhooks_partial_update(self, owner, repo, identifier, **kwargs): - """ - Update a specific webhook in a repository. - Update a specific webhook in a repository. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.webhooks_partial_update(owner, repo, identifier, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param str identifier: (required) - :param WebhooksPartialUpdate data: - :return: RepositoryWebhook - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.webhooks_partial_update_with_http_info(owner, repo, identifier, **kwargs) - else: - (data) = self.webhooks_partial_update_with_http_info(owner, repo, identifier, **kwargs) - return data - - def webhooks_partial_update_with_http_info(self, owner, repo, identifier, **kwargs): - """ - Update a specific webhook in a repository. - Update a specific webhook in a repository. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.webhooks_partial_update_with_http_info(owner, repo, identifier, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param str identifier: (required) - :param WebhooksPartialUpdate data: - :return: RepositoryWebhook - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['owner', 'repo', 'identifier', 'data'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method webhooks_partial_update" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'owner' is set - if ('owner' not in params) or (params['owner'] is None): - raise ValueError("Missing the required parameter `owner` when calling `webhooks_partial_update`") - # verify the required parameter 'repo' is set - if ('repo' not in params) or (params['repo'] is None): - raise ValueError("Missing the required parameter `repo` when calling `webhooks_partial_update`") - # verify the required parameter 'identifier' is set - if ('identifier' not in params) or (params['identifier'] is None): - raise ValueError("Missing the required parameter `identifier` when calling `webhooks_partial_update`") - - - collection_formats = {} - - path_params = {} - if 'owner' in params: - path_params['owner'] = params['owner'] - if 'repo' in params: - path_params['repo'] = params['repo'] - if 'identifier' in params: - path_params['identifier'] = params['identifier'] - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'data' in params: - body_params = params['data'] - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = ['apikey'] - - return self.api_client.call_api('/webhooks/{owner}/{repo}/{identifier}/', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='RepositoryWebhook', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def webhooks_read(self, owner, repo, identifier, **kwargs): - """ - Views for working with repository webhooks. - Views for working with repository webhooks. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.webhooks_read(owner, repo, identifier, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param str identifier: (required) - :return: RepositoryWebhook - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.webhooks_read_with_http_info(owner, repo, identifier, **kwargs) - else: - (data) = self.webhooks_read_with_http_info(owner, repo, identifier, **kwargs) - return data - - def webhooks_read_with_http_info(self, owner, repo, identifier, **kwargs): - """ - Views for working with repository webhooks. - Views for working with repository webhooks. - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.webhooks_read_with_http_info(owner, repo, identifier, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str owner: (required) - :param str repo: (required) - :param str identifier: (required) - :return: RepositoryWebhook - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['owner', 'repo', 'identifier'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method webhooks_read" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'owner' is set - if ('owner' not in params) or (params['owner'] is None): - raise ValueError("Missing the required parameter `owner` when calling `webhooks_read`") - # verify the required parameter 'repo' is set - if ('repo' not in params) or (params['repo'] is None): - raise ValueError("Missing the required parameter `repo` when calling `webhooks_read`") - # verify the required parameter 'identifier' is set - if ('identifier' not in params) or (params['identifier'] is None): - raise ValueError("Missing the required parameter `identifier` when calling `webhooks_read`") - - - collection_formats = {} - - path_params = {} - if 'owner' in params: - path_params['owner'] = params['owner'] - if 'repo' in params: - path_params['repo'] = params['repo'] - if 'identifier' in params: - path_params['identifier'] = params['identifier'] - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # Authentication setting - auth_settings = ['apikey'] - - return self.api_client.call_api('/webhooks/{owner}/{repo}/{identifier}/', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='RepositoryWebhook', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) diff --git a/bindings/python/src/cloudsmith_api/configuration.py b/bindings/python/src/cloudsmith_api/configuration.py index cf7777a7..6de07f28 100644 --- a/bindings/python/src/cloudsmith_api/configuration.py +++ b/bindings/python/src/cloudsmith_api/configuration.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,41 +13,34 @@ from __future__ import absolute_import -import urllib3 - -import sys +import copy import logging +import multiprocessing +import sys +import urllib3 -from six import iteritems +import six from six.moves import http_client as httplib -def singleton(cls, *args, **kw): - instances = {} - - def _singleton(): - if cls not in instances: - instances[cls] = cls(*args, **kw) - return instances[cls] - return _singleton - - -@singleton class Configuration(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by the swagger code generator program. + Ref: https://github.com/swagger-api/swagger-codegen Do not edit the class manually. """ + _default = None + def __init__(self): - """ - Constructor - """ + """Constructor""" + if self._default: + for key in self._default.__dict__.keys(): + self.__dict__[key] = copy.copy(self._default.__dict__[key]) + return + # Default Base url self.host = "https://api.cloudsmith.io/v1" - # Default api client - self.api_client = None # Temp file folder for downloading files self.temp_folder_path = None @@ -56,6 +49,8 @@ def __init__(self): self.api_key = {} # dict to store API prefix (e.g. Bearer) self.api_key_prefix = {} + # function to refresh API key if expired + self.refresh_api_key_hook = None # Username for HTTP basic authentication self.username = "" # Password for HTTP basic authentication @@ -77,7 +72,8 @@ def __init__(self): self.debug = False # SSL/TLS verification - # Set this to false to skip verifying SSL certificate when calling API from https server. + # Set this to false to skip verifying SSL certificate when calling API + # from https server. self.verify_ssl = True # Set this to customize the certificate file to verify the peer. self.ssl_ca_cert = None @@ -85,26 +81,46 @@ def __init__(self): self.cert_file = None # client key file self.key_file = None + # Set this to True/False to enable/disable SSL hostname verification. + self.assert_hostname = None + + # urllib3 connection pool's maximum number of connections saved + # per pool. urllib3 uses 1 connection as default value, but this is + # not the best value when you are making a lot of possibly parallel + # requests to the same host, which is often the case here. + # cpu_count * 5 is used as default value to increase performance. + self.connection_pool_maxsize = multiprocessing.cpu_count() * 5 # Proxy URL self.proxy = None # Safe chars for path_param self.safe_chars_for_path_param = '' + # Disable client side validation + self.client_side_validation = True + + @classmethod + def set_default(cls, default): + cls._default = default + @property def logger_file(self): - """ - Gets the logger_file. + """The logger file. + + If the logger_file is None, then add stream handler and remove file + handler. Otherwise, add file handler and remove stream handler. + + :param value: The logger_file path. + :type: str """ return self.__logger_file @logger_file.setter def logger_file(self, value): - """ - Sets the logger_file. + """The logger file. - If the logger_file is None, then add stream handler and remove file handler. - Otherwise, add file handler and remove stream handler. + If the logger_file is None, then add stream handler and remove file + handler. Otherwise, add file handler and remove stream handler. :param value: The logger_file path. :type: str @@ -115,7 +131,7 @@ def logger_file(self, value): # then add file handler and remove stream handler. self.logger_file_handler = logging.FileHandler(self.__logger_file) self.logger_file_handler.setFormatter(self.logger_formatter) - for _, logger in iteritems(self.logger): + for _, logger in six.iteritems(self.logger): logger.addHandler(self.logger_file_handler) if self.logger_stream_handler: logger.removeHandler(self.logger_stream_handler) @@ -124,22 +140,23 @@ def logger_file(self, value): # then add stream handler and remove file handler. self.logger_stream_handler = logging.StreamHandler() self.logger_stream_handler.setFormatter(self.logger_formatter) - for _, logger in iteritems(self.logger): + for _, logger in six.iteritems(self.logger): logger.addHandler(self.logger_stream_handler) if self.logger_file_handler: logger.removeHandler(self.logger_file_handler) @property def debug(self): - """ - Gets the debug status. + """Debug status + + :param value: The debug status, True or False. + :type: bool """ return self.__debug @debug.setter def debug(self, value): - """ - Sets the debug status. + """Debug status :param value: The debug status, True or False. :type: bool @@ -147,29 +164,32 @@ def debug(self, value): self.__debug = value if self.__debug: # if debug status is True, turn on debug logging - for _, logger in iteritems(self.logger): + for _, logger in six.iteritems(self.logger): logger.setLevel(logging.DEBUG) # turn on httplib debug httplib.HTTPConnection.debuglevel = 1 else: # if debug status is False, turn off debug logging, # setting log level to default `logging.WARNING` - for _, logger in iteritems(self.logger): + for _, logger in six.iteritems(self.logger): logger.setLevel(logging.WARNING) # turn off httplib debug httplib.HTTPConnection.debuglevel = 0 @property def logger_format(self): - """ - Gets the logger_format. + """The logger format. + + The logger_formatter will be updated when sets logger_format. + + :param value: The format string. + :type: str """ return self.__logger_format @logger_format.setter def logger_format(self, value): - """ - Sets the logger_format. + """The logger format. The logger_formatter will be updated when sets logger_format. @@ -180,29 +200,34 @@ def logger_format(self, value): self.logger_formatter = logging.Formatter(self.__logger_format) def get_api_key_with_prefix(self, identifier): - """ - Gets API key (with prefix if set). + """Gets API key (with prefix if set). :param identifier: The identifier of apiKey. :return: The token for api key authentication. """ - if self.api_key.get(identifier) and self.api_key_prefix.get(identifier): - return self.api_key_prefix[identifier] + ' ' + self.api_key[identifier] - elif self.api_key.get(identifier): - return self.api_key[identifier] + + if self.refresh_api_key_hook: + self.refresh_api_key_hook(self) + + key = self.api_key.get(identifier) + if key: + prefix = self.api_key_prefix.get(identifier) + if prefix: + return "%s %s" % (prefix, key) + else: + return key def get_basic_auth_token(self): - """ - Gets HTTP basic authentication header (string). + """Gets HTTP basic authentication header (string). :return: The token for basic HTTP authentication. """ - return urllib3.util.make_headers(basic_auth=self.username + ':' + self.password)\ - .get('authorization') + return urllib3.util.make_headers( + basic_auth=self.username + ':' + self.password + ).get('authorization') def auth_settings(self): - """ - Gets Auth Settings dict for api client. + """Gets Auth Settings dict for api client. :return: The Auth Settings information dict. """ @@ -225,8 +250,7 @@ def auth_settings(self): } def to_debug_report(self): - """ - Gets the essential information for debugging. + """Gets the essential information for debugging. :return: The report for debugging. """ @@ -234,5 +258,5 @@ def to_debug_report(self): "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: v1\n"\ - "SDK Package Version: 1.30.0".\ + "SDK Package Version: 1.33.7".\ format(env=sys.platform, pyversion=sys.version) diff --git a/bindings/python/src/cloudsmith_api/models/__init__.py b/bindings/python/src/cloudsmith_api/models/__init__.py index a284f507..f2a7a2eb 100644 --- a/bindings/python/src/cloudsmith_api/models/__init__.py +++ b/bindings/python/src/cloudsmith_api/models/__init__.py @@ -1,9 +1,10 @@ # coding: utf-8 +# flake8: noqa """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -14,109 +15,109 @@ from __future__ import absolute_import # import models into model package -from .alpine_package_upload import AlpinePackageUpload -from .conan_package_upload import ConanPackageUpload -from .distribution import Distribution -from .distros_versions import DistrosVersions -from .entitlement_usage_metrics import EntitlementUsageMetrics -from .entitlements_create import EntitlementsCreate -from .entitlements_partial_update import EntitlementsPartialUpdate -from .entitlements_refresh import EntitlementsRefresh -from .entitlements_sync import EntitlementsSync -from .files_abort import FilesAbort -from .files_complete import FilesComplete -from .files_create import FilesCreate -from .files_validate import FilesValidate -from .format import Format -from .formats_distributions import FormatsDistributions -from .maven_package_upload import MavenPackageUpload -from .namespace import Namespace -from .organization import Organization -from .organization_membership import OrganizationMembership -from .package import Package -from .package_copy import PackageCopy -from .package_dependencies import PackageDependencies -from .package_dependencies_dependencies import PackageDependenciesDependencies -from .package_file_parts_upload import PackageFilePartsUpload -from .package_file_upload import PackageFileUpload -from .package_move import PackageMove -from .package_status import PackageStatus -from .package_usage_metrics import PackageUsageMetrics -from .packages_copy import PackagesCopy -from .packages_move import PackagesMove -from .packages_tag import PackagesTag -from .packages_upload_alpine import PackagesUploadAlpine -from .packages_upload_cargo import PackagesUploadCargo -from .packages_upload_cocoapods import PackagesUploadCocoapods -from .packages_upload_composer import PackagesUploadComposer -from .packages_upload_conan import PackagesUploadConan -from .packages_upload_conda import PackagesUploadConda -from .packages_upload_cran import PackagesUploadCran -from .packages_upload_dart import PackagesUploadDart -from .packages_upload_deb import PackagesUploadDeb -from .packages_upload_docker import PackagesUploadDocker -from .packages_upload_go import PackagesUploadGo -from .packages_upload_helm import PackagesUploadHelm -from .packages_upload_luarocks import PackagesUploadLuarocks -from .packages_upload_maven import PackagesUploadMaven -from .packages_upload_npm import PackagesUploadNpm -from .packages_upload_nuget import PackagesUploadNuget -from .packages_upload_p2 import PackagesUploadP2 -from .packages_upload_python import PackagesUploadPython -from .packages_upload_raw import PackagesUploadRaw -from .packages_upload_rpm import PackagesUploadRpm -from .packages_upload_ruby import PackagesUploadRuby -from .packages_upload_terraform import PackagesUploadTerraform -from .packages_upload_vagrant import PackagesUploadVagrant -from .packages_validateupload_alpine import PackagesValidateuploadAlpine -from .packages_validateupload_cargo import PackagesValidateuploadCargo -from .packages_validateupload_cocoapods import PackagesValidateuploadCocoapods -from .packages_validateupload_composer import PackagesValidateuploadComposer -from .packages_validateupload_conan import PackagesValidateuploadConan -from .packages_validateupload_conda import PackagesValidateuploadConda -from .packages_validateupload_cran import PackagesValidateuploadCran -from .packages_validateupload_dart import PackagesValidateuploadDart -from .packages_validateupload_deb import PackagesValidateuploadDeb -from .packages_validateupload_docker import PackagesValidateuploadDocker -from .packages_validateupload_go import PackagesValidateuploadGo -from .packages_validateupload_helm import PackagesValidateuploadHelm -from .packages_validateupload_luarocks import PackagesValidateuploadLuarocks -from .packages_validateupload_maven import PackagesValidateuploadMaven -from .packages_validateupload_npm import PackagesValidateuploadNpm -from .packages_validateupload_nuget import PackagesValidateuploadNuget -from .packages_validateupload_p2 import PackagesValidateuploadP2 -from .packages_validateupload_python import PackagesValidateuploadPython -from .packages_validateupload_raw import PackagesValidateuploadRaw -from .packages_validateupload_rpm import PackagesValidateuploadRpm -from .packages_validateupload_ruby import PackagesValidateuploadRuby -from .packages_validateupload_terraform import PackagesValidateuploadTerraform -from .packages_validateupload_vagrant import PackagesValidateuploadVagrant -from .packagesownerrepo_architectures import PackagesownerrepoArchitectures -from .packagesownerrepo_files import PackagesownerrepoFiles -from .quota import Quota -from .quota_history import QuotaHistory -from .quota_history_history import QuotaHistoryHistory -from .raw_package_upload import RawPackageUpload -from .repos_create import ReposCreate -from .repos_gpg_keys import ReposGpgKeys -from .repos_partial_update import ReposPartialUpdate -from .repository import Repository -from .repository_token import RepositoryToken -from .repository_token_refresh import RepositoryTokenRefresh -from .repository_token_sync import RepositoryTokenSync -from .repository_token_sync_tokens import RepositoryTokenSyncTokens -from .repository_webhook import RepositoryWebhook -from .resources_rate_check import ResourcesRateCheck -from .status import Status -from .status_basic import StatusBasic -from .storage_region import StorageRegion -from .user_auth_token import UserAuthToken -from .user_brief import UserBrief -from .user_profile import UserProfile -from .user_token_create import UserTokenCreate -from .vagrant_package_upload import VagrantPackageUpload -from .vulnerability_scan_results import VulnerabilityScanResults -from .vulnerability_scan_results_list import VulnerabilityScanResultsList -from .webhooks_create import WebhooksCreate -from .webhooks_partial_update import WebhooksPartialUpdate -from .webhooksownerrepo_templates import WebhooksownerrepoTemplates +from cloudsmith_api.models.alpine_package_upload import AlpinePackageUpload +from cloudsmith_api.models.conan_package_upload import ConanPackageUpload +from cloudsmith_api.models.distribution import Distribution +from cloudsmith_api.models.distros_versions import DistrosVersions +from cloudsmith_api.models.entitlement_usage_metrics import EntitlementUsageMetrics +from cloudsmith_api.models.entitlements_create import EntitlementsCreate +from cloudsmith_api.models.entitlements_partial_update import EntitlementsPartialUpdate +from cloudsmith_api.models.entitlements_refresh import EntitlementsRefresh +from cloudsmith_api.models.entitlements_sync import EntitlementsSync +from cloudsmith_api.models.files_abort import FilesAbort +from cloudsmith_api.models.files_complete import FilesComplete +from cloudsmith_api.models.files_create import FilesCreate +from cloudsmith_api.models.files_validate import FilesValidate +from cloudsmith_api.models.format import Format +from cloudsmith_api.models.formats_distributions import FormatsDistributions +from cloudsmith_api.models.maven_package_upload import MavenPackageUpload +from cloudsmith_api.models.namespace import Namespace +from cloudsmith_api.models.organization import Organization +from cloudsmith_api.models.organization_membership import OrganizationMembership +from cloudsmith_api.models.package import Package +from cloudsmith_api.models.package_copy import PackageCopy +from cloudsmith_api.models.package_dependencies import PackageDependencies +from cloudsmith_api.models.package_dependencies_dependencies import PackageDependenciesDependencies +from cloudsmith_api.models.package_file_parts_upload import PackageFilePartsUpload +from cloudsmith_api.models.package_file_upload import PackageFileUpload +from cloudsmith_api.models.package_move import PackageMove +from cloudsmith_api.models.package_status import PackageStatus +from cloudsmith_api.models.package_usage_metrics import PackageUsageMetrics +from cloudsmith_api.models.packages_copy import PackagesCopy +from cloudsmith_api.models.packages_move import PackagesMove +from cloudsmith_api.models.packages_tag import PackagesTag +from cloudsmith_api.models.packages_upload_alpine import PackagesUploadAlpine +from cloudsmith_api.models.packages_upload_cargo import PackagesUploadCargo +from cloudsmith_api.models.packages_upload_cocoapods import PackagesUploadCocoapods +from cloudsmith_api.models.packages_upload_composer import PackagesUploadComposer +from cloudsmith_api.models.packages_upload_conan import PackagesUploadConan +from cloudsmith_api.models.packages_upload_conda import PackagesUploadConda +from cloudsmith_api.models.packages_upload_cran import PackagesUploadCran +from cloudsmith_api.models.packages_upload_dart import PackagesUploadDart +from cloudsmith_api.models.packages_upload_deb import PackagesUploadDeb +from cloudsmith_api.models.packages_upload_docker import PackagesUploadDocker +from cloudsmith_api.models.packages_upload_go import PackagesUploadGo +from cloudsmith_api.models.packages_upload_helm import PackagesUploadHelm +from cloudsmith_api.models.packages_upload_luarocks import PackagesUploadLuarocks +from cloudsmith_api.models.packages_upload_maven import PackagesUploadMaven +from cloudsmith_api.models.packages_upload_npm import PackagesUploadNpm +from cloudsmith_api.models.packages_upload_nuget import PackagesUploadNuget +from cloudsmith_api.models.packages_upload_p2 import PackagesUploadP2 +from cloudsmith_api.models.packages_upload_python import PackagesUploadPython +from cloudsmith_api.models.packages_upload_raw import PackagesUploadRaw +from cloudsmith_api.models.packages_upload_rpm import PackagesUploadRpm +from cloudsmith_api.models.packages_upload_ruby import PackagesUploadRuby +from cloudsmith_api.models.packages_upload_terraform import PackagesUploadTerraform +from cloudsmith_api.models.packages_upload_vagrant import PackagesUploadVagrant +from cloudsmith_api.models.packages_validateupload_alpine import PackagesValidateuploadAlpine +from cloudsmith_api.models.packages_validateupload_cargo import PackagesValidateuploadCargo +from cloudsmith_api.models.packages_validateupload_cocoapods import PackagesValidateuploadCocoapods +from cloudsmith_api.models.packages_validateupload_composer import PackagesValidateuploadComposer +from cloudsmith_api.models.packages_validateupload_conan import PackagesValidateuploadConan +from cloudsmith_api.models.packages_validateupload_conda import PackagesValidateuploadConda +from cloudsmith_api.models.packages_validateupload_cran import PackagesValidateuploadCran +from cloudsmith_api.models.packages_validateupload_dart import PackagesValidateuploadDart +from cloudsmith_api.models.packages_validateupload_deb import PackagesValidateuploadDeb +from cloudsmith_api.models.packages_validateupload_docker import PackagesValidateuploadDocker +from cloudsmith_api.models.packages_validateupload_go import PackagesValidateuploadGo +from cloudsmith_api.models.packages_validateupload_helm import PackagesValidateuploadHelm +from cloudsmith_api.models.packages_validateupload_luarocks import PackagesValidateuploadLuarocks +from cloudsmith_api.models.packages_validateupload_maven import PackagesValidateuploadMaven +from cloudsmith_api.models.packages_validateupload_npm import PackagesValidateuploadNpm +from cloudsmith_api.models.packages_validateupload_nuget import PackagesValidateuploadNuget +from cloudsmith_api.models.packages_validateupload_p2 import PackagesValidateuploadP2 +from cloudsmith_api.models.packages_validateupload_python import PackagesValidateuploadPython +from cloudsmith_api.models.packages_validateupload_raw import PackagesValidateuploadRaw +from cloudsmith_api.models.packages_validateupload_rpm import PackagesValidateuploadRpm +from cloudsmith_api.models.packages_validateupload_ruby import PackagesValidateuploadRuby +from cloudsmith_api.models.packages_validateupload_terraform import PackagesValidateuploadTerraform +from cloudsmith_api.models.packages_validateupload_vagrant import PackagesValidateuploadVagrant +from cloudsmith_api.models.packagesownerrepo_architectures import PackagesownerrepoArchitectures +from cloudsmith_api.models.packagesownerrepo_files import PackagesownerrepoFiles +from cloudsmith_api.models.quota import Quota +from cloudsmith_api.models.quota_history import QuotaHistory +from cloudsmith_api.models.quota_history_history import QuotaHistoryHistory +from cloudsmith_api.models.raw_package_upload import RawPackageUpload +from cloudsmith_api.models.repos_create import ReposCreate +from cloudsmith_api.models.repos_gpg_keys import ReposGpgKeys +from cloudsmith_api.models.repos_partial_update import ReposPartialUpdate +from cloudsmith_api.models.repository import Repository +from cloudsmith_api.models.repository_token import RepositoryToken +from cloudsmith_api.models.repository_token_refresh import RepositoryTokenRefresh +from cloudsmith_api.models.repository_token_sync import RepositoryTokenSync +from cloudsmith_api.models.repository_token_sync_tokens import RepositoryTokenSyncTokens +from cloudsmith_api.models.repository_webhook import RepositoryWebhook +from cloudsmith_api.models.resources_rate_check import ResourcesRateCheck +from cloudsmith_api.models.status import Status +from cloudsmith_api.models.status_basic import StatusBasic +from cloudsmith_api.models.storage_region import StorageRegion +from cloudsmith_api.models.user_auth_token import UserAuthToken +from cloudsmith_api.models.user_brief import UserBrief +from cloudsmith_api.models.user_profile import UserProfile +from cloudsmith_api.models.user_token_create import UserTokenCreate +from cloudsmith_api.models.vagrant_package_upload import VagrantPackageUpload +from cloudsmith_api.models.vulnerability_scan_results import VulnerabilityScanResults +from cloudsmith_api.models.vulnerability_scan_results_list import VulnerabilityScanResultsList +from cloudsmith_api.models.webhooks_create import WebhooksCreate +from cloudsmith_api.models.webhooks_partial_update import WebhooksPartialUpdate +from cloudsmith_api.models.webhooksownerrepo_templates import WebhooksownerrepoTemplates diff --git a/bindings/python/src/cloudsmith_api/models/alpine_package_upload.py b/bindings/python/src/cloudsmith_api/models/alpine_package_upload.py index 2b0ba9ec..0d7a449f 100644 --- a/bindings/python/src/cloudsmith_api/models/alpine_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/alpine_package_upload.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -11,18 +11,20 @@ """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration class AlpinePackageUpload(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -164,10 +166,11 @@ class AlpinePackageUpload(object): 'vulnerability_scan_results_url': 'vulnerability_scan_results_url' } - def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, distro=None, distro_version=None, downloads=None, epoch=None, extension=None, filename=None, files=None, format=None, format_url=None, identifier_perm=None, indexed=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, package_type=None, release=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status=None, security_scan_status_updated_at=None, self_html_url=None, self_url=None, signature_url=None, size=None, slug=None, slug_perm=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_immutable=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_scan_results_url=None): - """ - AlpinePackageUpload - a model defined in Swagger - """ + def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, distro=None, distro_version=None, downloads=None, epoch=None, extension=None, filename=None, files=None, format=None, format_url=None, identifier_perm=None, indexed=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, package_type=None, release=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status=None, security_scan_status_updated_at=None, self_html_url=None, self_url=None, signature_url=None, size=None, slug=None, slug_perm=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_immutable=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 + """AlpinePackageUpload - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._architectures = None self._cdn_url = None @@ -233,154 +236,155 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._version = None self._version_orig = None self._vulnerability_scan_results_url = None + self.discriminator = None if architectures is not None: - self.architectures = architectures + self.architectures = architectures if cdn_url is not None: - self.cdn_url = cdn_url + self.cdn_url = cdn_url if checksum_md5 is not None: - self.checksum_md5 = checksum_md5 + self.checksum_md5 = checksum_md5 if checksum_sha1 is not None: - self.checksum_sha1 = checksum_sha1 + self.checksum_sha1 = checksum_sha1 if checksum_sha256 is not None: - self.checksum_sha256 = checksum_sha256 + self.checksum_sha256 = checksum_sha256 if checksum_sha512 is not None: - self.checksum_sha512 = checksum_sha512 + self.checksum_sha512 = checksum_sha512 if dependencies_checksum_md5 is not None: - self.dependencies_checksum_md5 = dependencies_checksum_md5 + self.dependencies_checksum_md5 = dependencies_checksum_md5 if dependencies_url is not None: - self.dependencies_url = dependencies_url + self.dependencies_url = dependencies_url if description is not None: - self.description = description + self.description = description if distro is not None: - self.distro = distro + self.distro = distro if distro_version is not None: - self.distro_version = distro_version + self.distro_version = distro_version if downloads is not None: - self.downloads = downloads + self.downloads = downloads if epoch is not None: - self.epoch = epoch + self.epoch = epoch if extension is not None: - self.extension = extension + self.extension = extension if filename is not None: - self.filename = filename + self.filename = filename if files is not None: - self.files = files + self.files = files if format is not None: - self.format = format + self.format = format if format_url is not None: - self.format_url = format_url + self.format_url = format_url if identifier_perm is not None: - self.identifier_perm = identifier_perm + self.identifier_perm = identifier_perm if indexed is not None: - self.indexed = indexed + self.indexed = indexed if is_sync_awaiting is not None: - self.is_sync_awaiting = is_sync_awaiting + self.is_sync_awaiting = is_sync_awaiting if is_sync_completed is not None: - self.is_sync_completed = is_sync_completed + self.is_sync_completed = is_sync_completed if is_sync_failed is not None: - self.is_sync_failed = is_sync_failed + self.is_sync_failed = is_sync_failed if is_sync_in_flight is not None: - self.is_sync_in_flight = is_sync_in_flight + self.is_sync_in_flight = is_sync_in_flight if is_sync_in_progress is not None: - self.is_sync_in_progress = is_sync_in_progress + self.is_sync_in_progress = is_sync_in_progress if license is not None: - self.license = license + self.license = license if name is not None: - self.name = name + self.name = name if namespace is not None: - self.namespace = namespace + self.namespace = namespace if namespace_url is not None: - self.namespace_url = namespace_url + self.namespace_url = namespace_url if num_files is not None: - self.num_files = num_files + self.num_files = num_files if package_type is not None: - self.package_type = package_type + self.package_type = package_type if release is not None: - self.release = release + self.release = release if repository is not None: - self.repository = repository + self.repository = repository if repository_url is not None: - self.repository_url = repository_url + self.repository_url = repository_url if security_scan_completed_at is not None: - self.security_scan_completed_at = security_scan_completed_at + self.security_scan_completed_at = security_scan_completed_at if security_scan_started_at is not None: - self.security_scan_started_at = security_scan_started_at + self.security_scan_started_at = security_scan_started_at if security_scan_status is not None: - self.security_scan_status = security_scan_status + self.security_scan_status = security_scan_status if security_scan_status_updated_at is not None: - self.security_scan_status_updated_at = security_scan_status_updated_at + self.security_scan_status_updated_at = security_scan_status_updated_at if self_html_url is not None: - self.self_html_url = self_html_url + self.self_html_url = self_html_url if self_url is not None: - self.self_url = self_url + self.self_url = self_url if signature_url is not None: - self.signature_url = signature_url + self.signature_url = signature_url if size is not None: - self.size = size + self.size = size if slug is not None: - self.slug = slug + self.slug = slug if slug_perm is not None: - self.slug_perm = slug_perm + self.slug_perm = slug_perm if stage is not None: - self.stage = stage + self.stage = stage if stage_str is not None: - self.stage_str = stage_str + self.stage_str = stage_str if stage_updated_at is not None: - self.stage_updated_at = stage_updated_at + self.stage_updated_at = stage_updated_at if status is not None: - self.status = status + self.status = status if status_reason is not None: - self.status_reason = status_reason + self.status_reason = status_reason if status_str is not None: - self.status_str = status_str + self.status_str = status_str if status_updated_at is not None: - self.status_updated_at = status_updated_at + self.status_updated_at = status_updated_at if status_url is not None: - self.status_url = status_url + self.status_url = status_url if subtype is not None: - self.subtype = subtype + self.subtype = subtype if summary is not None: - self.summary = summary + self.summary = summary if sync_finished_at is not None: - self.sync_finished_at = sync_finished_at + self.sync_finished_at = sync_finished_at if sync_progress is not None: - self.sync_progress = sync_progress + self.sync_progress = sync_progress if tags_immutable is not None: - self.tags_immutable = tags_immutable + self.tags_immutable = tags_immutable if type_display is not None: - self.type_display = type_display + self.type_display = type_display if uploaded_at is not None: - self.uploaded_at = uploaded_at + self.uploaded_at = uploaded_at if uploader is not None: - self.uploader = uploader + self.uploader = uploader if uploader_url is not None: - self.uploader_url = uploader_url + self.uploader_url = uploader_url if version is not None: - self.version = version + self.version = version if version_orig is not None: - self.version_orig = version_orig + self.version_orig = version_orig if vulnerability_scan_results_url is not None: - self.vulnerability_scan_results_url = vulnerability_scan_results_url + self.vulnerability_scan_results_url = vulnerability_scan_results_url @property def architectures(self): - """ - Gets the architectures of this AlpinePackageUpload. - + """Gets the architectures of this AlpinePackageUpload. # noqa: E501 + + # noqa: E501 - :return: The architectures of this AlpinePackageUpload. + :return: The architectures of this AlpinePackageUpload. # noqa: E501 :rtype: list[PackagesownerrepoArchitectures] """ return self._architectures @architectures.setter def architectures(self, architectures): - """ - Sets the architectures of this AlpinePackageUpload. - + """Sets the architectures of this AlpinePackageUpload. + + # noqa: E501 - :param architectures: The architectures of this AlpinePackageUpload. + :param architectures: The architectures of this AlpinePackageUpload. # noqa: E501 :type: list[PackagesownerrepoArchitectures] """ @@ -388,22 +392,22 @@ def architectures(self, architectures): @property def cdn_url(self): - """ - Gets the cdn_url of this AlpinePackageUpload. - + """Gets the cdn_url of this AlpinePackageUpload. # noqa: E501 - :return: The cdn_url of this AlpinePackageUpload. + # noqa: E501 + + :return: The cdn_url of this AlpinePackageUpload. # noqa: E501 :rtype: str """ return self._cdn_url @cdn_url.setter def cdn_url(self, cdn_url): - """ - Sets the cdn_url of this AlpinePackageUpload. - + """Sets the cdn_url of this AlpinePackageUpload. - :param cdn_url: The cdn_url of this AlpinePackageUpload. + # noqa: E501 + + :param cdn_url: The cdn_url of this AlpinePackageUpload. # noqa: E501 :type: str """ @@ -411,22 +415,22 @@ def cdn_url(self, cdn_url): @property def checksum_md5(self): - """ - Gets the checksum_md5 of this AlpinePackageUpload. - + """Gets the checksum_md5 of this AlpinePackageUpload. # noqa: E501 - :return: The checksum_md5 of this AlpinePackageUpload. + # noqa: E501 + + :return: The checksum_md5 of this AlpinePackageUpload. # noqa: E501 :rtype: str """ return self._checksum_md5 @checksum_md5.setter def checksum_md5(self, checksum_md5): - """ - Sets the checksum_md5 of this AlpinePackageUpload. - + """Sets the checksum_md5 of this AlpinePackageUpload. - :param checksum_md5: The checksum_md5 of this AlpinePackageUpload. + # noqa: E501 + + :param checksum_md5: The checksum_md5 of this AlpinePackageUpload. # noqa: E501 :type: str """ @@ -434,22 +438,22 @@ def checksum_md5(self, checksum_md5): @property def checksum_sha1(self): - """ - Gets the checksum_sha1 of this AlpinePackageUpload. - + """Gets the checksum_sha1 of this AlpinePackageUpload. # noqa: E501 + + # noqa: E501 - :return: The checksum_sha1 of this AlpinePackageUpload. + :return: The checksum_sha1 of this AlpinePackageUpload. # noqa: E501 :rtype: str """ return self._checksum_sha1 @checksum_sha1.setter def checksum_sha1(self, checksum_sha1): - """ - Sets the checksum_sha1 of this AlpinePackageUpload. - + """Sets the checksum_sha1 of this AlpinePackageUpload. + + # noqa: E501 - :param checksum_sha1: The checksum_sha1 of this AlpinePackageUpload. + :param checksum_sha1: The checksum_sha1 of this AlpinePackageUpload. # noqa: E501 :type: str """ @@ -457,22 +461,22 @@ def checksum_sha1(self, checksum_sha1): @property def checksum_sha256(self): - """ - Gets the checksum_sha256 of this AlpinePackageUpload. - + """Gets the checksum_sha256 of this AlpinePackageUpload. # noqa: E501 + + # noqa: E501 - :return: The checksum_sha256 of this AlpinePackageUpload. + :return: The checksum_sha256 of this AlpinePackageUpload. # noqa: E501 :rtype: str """ return self._checksum_sha256 @checksum_sha256.setter def checksum_sha256(self, checksum_sha256): - """ - Sets the checksum_sha256 of this AlpinePackageUpload. - + """Sets the checksum_sha256 of this AlpinePackageUpload. + + # noqa: E501 - :param checksum_sha256: The checksum_sha256 of this AlpinePackageUpload. + :param checksum_sha256: The checksum_sha256 of this AlpinePackageUpload. # noqa: E501 :type: str """ @@ -480,22 +484,22 @@ def checksum_sha256(self, checksum_sha256): @property def checksum_sha512(self): - """ - Gets the checksum_sha512 of this AlpinePackageUpload. - + """Gets the checksum_sha512 of this AlpinePackageUpload. # noqa: E501 + + # noqa: E501 - :return: The checksum_sha512 of this AlpinePackageUpload. + :return: The checksum_sha512 of this AlpinePackageUpload. # noqa: E501 :rtype: str """ return self._checksum_sha512 @checksum_sha512.setter def checksum_sha512(self, checksum_sha512): - """ - Sets the checksum_sha512 of this AlpinePackageUpload. - + """Sets the checksum_sha512 of this AlpinePackageUpload. + + # noqa: E501 - :param checksum_sha512: The checksum_sha512 of this AlpinePackageUpload. + :param checksum_sha512: The checksum_sha512 of this AlpinePackageUpload. # noqa: E501 :type: str """ @@ -503,22 +507,22 @@ def checksum_sha512(self, checksum_sha512): @property def dependencies_checksum_md5(self): - """ - Gets the dependencies_checksum_md5 of this AlpinePackageUpload. - A checksum of all of the package's dependencies. + """Gets the dependencies_checksum_md5 of this AlpinePackageUpload. # noqa: E501 + + A checksum of all of the package's dependencies. # noqa: E501 - :return: The dependencies_checksum_md5 of this AlpinePackageUpload. + :return: The dependencies_checksum_md5 of this AlpinePackageUpload. # noqa: E501 :rtype: str """ return self._dependencies_checksum_md5 @dependencies_checksum_md5.setter def dependencies_checksum_md5(self, dependencies_checksum_md5): - """ - Sets the dependencies_checksum_md5 of this AlpinePackageUpload. - A checksum of all of the package's dependencies. + """Sets the dependencies_checksum_md5 of this AlpinePackageUpload. + + A checksum of all of the package's dependencies. # noqa: E501 - :param dependencies_checksum_md5: The dependencies_checksum_md5 of this AlpinePackageUpload. + :param dependencies_checksum_md5: The dependencies_checksum_md5 of this AlpinePackageUpload. # noqa: E501 :type: str """ @@ -526,22 +530,22 @@ def dependencies_checksum_md5(self, dependencies_checksum_md5): @property def dependencies_url(self): - """ - Gets the dependencies_url of this AlpinePackageUpload. - + """Gets the dependencies_url of this AlpinePackageUpload. # noqa: E501 + + # noqa: E501 - :return: The dependencies_url of this AlpinePackageUpload. + :return: The dependencies_url of this AlpinePackageUpload. # noqa: E501 :rtype: str """ return self._dependencies_url @dependencies_url.setter def dependencies_url(self, dependencies_url): - """ - Sets the dependencies_url of this AlpinePackageUpload. - + """Sets the dependencies_url of this AlpinePackageUpload. - :param dependencies_url: The dependencies_url of this AlpinePackageUpload. + # noqa: E501 + + :param dependencies_url: The dependencies_url of this AlpinePackageUpload. # noqa: E501 :type: str """ @@ -549,22 +553,22 @@ def dependencies_url(self, dependencies_url): @property def description(self): - """ - Gets the description of this AlpinePackageUpload. - A textual description of this package. + """Gets the description of this AlpinePackageUpload. # noqa: E501 - :return: The description of this AlpinePackageUpload. + A textual description of this package. # noqa: E501 + + :return: The description of this AlpinePackageUpload. # noqa: E501 :rtype: str """ return self._description @description.setter def description(self, description): - """ - Sets the description of this AlpinePackageUpload. - A textual description of this package. + """Sets the description of this AlpinePackageUpload. - :param description: The description of this AlpinePackageUpload. + A textual description of this package. # noqa: E501 + + :param description: The description of this AlpinePackageUpload. # noqa: E501 :type: str """ @@ -572,22 +576,22 @@ def description(self, description): @property def distro(self): - """ - Gets the distro of this AlpinePackageUpload. - + """Gets the distro of this AlpinePackageUpload. # noqa: E501 - :return: The distro of this AlpinePackageUpload. + # noqa: E501 + + :return: The distro of this AlpinePackageUpload. # noqa: E501 :rtype: object """ return self._distro @distro.setter def distro(self, distro): - """ - Sets the distro of this AlpinePackageUpload. - + """Sets the distro of this AlpinePackageUpload. - :param distro: The distro of this AlpinePackageUpload. + # noqa: E501 + + :param distro: The distro of this AlpinePackageUpload. # noqa: E501 :type: object """ @@ -595,22 +599,22 @@ def distro(self, distro): @property def distro_version(self): - """ - Gets the distro_version of this AlpinePackageUpload. - + """Gets the distro_version of this AlpinePackageUpload. # noqa: E501 - :return: The distro_version of this AlpinePackageUpload. + # noqa: E501 + + :return: The distro_version of this AlpinePackageUpload. # noqa: E501 :rtype: object """ return self._distro_version @distro_version.setter def distro_version(self, distro_version): - """ - Sets the distro_version of this AlpinePackageUpload. - + """Sets the distro_version of this AlpinePackageUpload. - :param distro_version: The distro_version of this AlpinePackageUpload. + # noqa: E501 + + :param distro_version: The distro_version of this AlpinePackageUpload. # noqa: E501 :type: object """ @@ -618,22 +622,22 @@ def distro_version(self, distro_version): @property def downloads(self): - """ - Gets the downloads of this AlpinePackageUpload. - + """Gets the downloads of this AlpinePackageUpload. # noqa: E501 - :return: The downloads of this AlpinePackageUpload. + # noqa: E501 + + :return: The downloads of this AlpinePackageUpload. # noqa: E501 :rtype: int """ return self._downloads @downloads.setter def downloads(self, downloads): - """ - Sets the downloads of this AlpinePackageUpload. - + """Sets the downloads of this AlpinePackageUpload. + + # noqa: E501 - :param downloads: The downloads of this AlpinePackageUpload. + :param downloads: The downloads of this AlpinePackageUpload. # noqa: E501 :type: int """ @@ -641,22 +645,22 @@ def downloads(self, downloads): @property def epoch(self): - """ - Gets the epoch of this AlpinePackageUpload. - The epoch of the package version (if any). + """Gets the epoch of this AlpinePackageUpload. # noqa: E501 + + The epoch of the package version (if any). # noqa: E501 - :return: The epoch of this AlpinePackageUpload. + :return: The epoch of this AlpinePackageUpload. # noqa: E501 :rtype: int """ return self._epoch @epoch.setter def epoch(self, epoch): - """ - Sets the epoch of this AlpinePackageUpload. - The epoch of the package version (if any). + """Sets the epoch of this AlpinePackageUpload. + + The epoch of the package version (if any). # noqa: E501 - :param epoch: The epoch of this AlpinePackageUpload. + :param epoch: The epoch of this AlpinePackageUpload. # noqa: E501 :type: int """ @@ -664,22 +668,22 @@ def epoch(self, epoch): @property def extension(self): - """ - Gets the extension of this AlpinePackageUpload. - + """Gets the extension of this AlpinePackageUpload. # noqa: E501 + + # noqa: E501 - :return: The extension of this AlpinePackageUpload. + :return: The extension of this AlpinePackageUpload. # noqa: E501 :rtype: str """ return self._extension @extension.setter def extension(self, extension): - """ - Sets the extension of this AlpinePackageUpload. - + """Sets the extension of this AlpinePackageUpload. + + # noqa: E501 - :param extension: The extension of this AlpinePackageUpload. + :param extension: The extension of this AlpinePackageUpload. # noqa: E501 :type: str """ @@ -687,22 +691,22 @@ def extension(self, extension): @property def filename(self): - """ - Gets the filename of this AlpinePackageUpload. - + """Gets the filename of this AlpinePackageUpload. # noqa: E501 + + # noqa: E501 - :return: The filename of this AlpinePackageUpload. + :return: The filename of this AlpinePackageUpload. # noqa: E501 :rtype: str """ return self._filename @filename.setter def filename(self, filename): - """ - Sets the filename of this AlpinePackageUpload. - + """Sets the filename of this AlpinePackageUpload. + + # noqa: E501 - :param filename: The filename of this AlpinePackageUpload. + :param filename: The filename of this AlpinePackageUpload. # noqa: E501 :type: str """ @@ -710,22 +714,22 @@ def filename(self, filename): @property def files(self): - """ - Gets the files of this AlpinePackageUpload. - + """Gets the files of this AlpinePackageUpload. # noqa: E501 + + # noqa: E501 - :return: The files of this AlpinePackageUpload. + :return: The files of this AlpinePackageUpload. # noqa: E501 :rtype: list[PackagesownerrepoFiles] """ return self._files @files.setter def files(self, files): - """ - Sets the files of this AlpinePackageUpload. - + """Sets the files of this AlpinePackageUpload. + + # noqa: E501 - :param files: The files of this AlpinePackageUpload. + :param files: The files of this AlpinePackageUpload. # noqa: E501 :type: list[PackagesownerrepoFiles] """ @@ -733,22 +737,22 @@ def files(self, files): @property def format(self): - """ - Gets the format of this AlpinePackageUpload. - + """Gets the format of this AlpinePackageUpload. # noqa: E501 - :return: The format of this AlpinePackageUpload. + # noqa: E501 + + :return: The format of this AlpinePackageUpload. # noqa: E501 :rtype: str """ return self._format @format.setter def format(self, format): - """ - Sets the format of this AlpinePackageUpload. - + """Sets the format of this AlpinePackageUpload. - :param format: The format of this AlpinePackageUpload. + # noqa: E501 + + :param format: The format of this AlpinePackageUpload. # noqa: E501 :type: str """ @@ -756,22 +760,22 @@ def format(self, format): @property def format_url(self): - """ - Gets the format_url of this AlpinePackageUpload. - + """Gets the format_url of this AlpinePackageUpload. # noqa: E501 - :return: The format_url of this AlpinePackageUpload. + # noqa: E501 + + :return: The format_url of this AlpinePackageUpload. # noqa: E501 :rtype: str """ return self._format_url @format_url.setter def format_url(self, format_url): - """ - Sets the format_url of this AlpinePackageUpload. - + """Sets the format_url of this AlpinePackageUpload. - :param format_url: The format_url of this AlpinePackageUpload. + # noqa: E501 + + :param format_url: The format_url of this AlpinePackageUpload. # noqa: E501 :type: str """ @@ -779,22 +783,22 @@ def format_url(self, format_url): @property def identifier_perm(self): - """ - Gets the identifier_perm of this AlpinePackageUpload. - Unique and permanent identifier for the package. + """Gets the identifier_perm of this AlpinePackageUpload. # noqa: E501 + + Unique and permanent identifier for the package. # noqa: E501 - :return: The identifier_perm of this AlpinePackageUpload. + :return: The identifier_perm of this AlpinePackageUpload. # noqa: E501 :rtype: str """ return self._identifier_perm @identifier_perm.setter def identifier_perm(self, identifier_perm): - """ - Sets the identifier_perm of this AlpinePackageUpload. - Unique and permanent identifier for the package. + """Sets the identifier_perm of this AlpinePackageUpload. + + Unique and permanent identifier for the package. # noqa: E501 - :param identifier_perm: The identifier_perm of this AlpinePackageUpload. + :param identifier_perm: The identifier_perm of this AlpinePackageUpload. # noqa: E501 :type: str """ @@ -802,22 +806,22 @@ def identifier_perm(self, identifier_perm): @property def indexed(self): - """ - Gets the indexed of this AlpinePackageUpload. - + """Gets the indexed of this AlpinePackageUpload. # noqa: E501 + + # noqa: E501 - :return: The indexed of this AlpinePackageUpload. + :return: The indexed of this AlpinePackageUpload. # noqa: E501 :rtype: bool """ return self._indexed @indexed.setter def indexed(self, indexed): - """ - Sets the indexed of this AlpinePackageUpload. - + """Sets the indexed of this AlpinePackageUpload. + + # noqa: E501 - :param indexed: The indexed of this AlpinePackageUpload. + :param indexed: The indexed of this AlpinePackageUpload. # noqa: E501 :type: bool """ @@ -825,22 +829,22 @@ def indexed(self, indexed): @property def is_sync_awaiting(self): - """ - Gets the is_sync_awaiting of this AlpinePackageUpload. - + """Gets the is_sync_awaiting of this AlpinePackageUpload. # noqa: E501 + + # noqa: E501 - :return: The is_sync_awaiting of this AlpinePackageUpload. + :return: The is_sync_awaiting of this AlpinePackageUpload. # noqa: E501 :rtype: bool """ return self._is_sync_awaiting @is_sync_awaiting.setter def is_sync_awaiting(self, is_sync_awaiting): - """ - Sets the is_sync_awaiting of this AlpinePackageUpload. - + """Sets the is_sync_awaiting of this AlpinePackageUpload. - :param is_sync_awaiting: The is_sync_awaiting of this AlpinePackageUpload. + # noqa: E501 + + :param is_sync_awaiting: The is_sync_awaiting of this AlpinePackageUpload. # noqa: E501 :type: bool """ @@ -848,22 +852,22 @@ def is_sync_awaiting(self, is_sync_awaiting): @property def is_sync_completed(self): - """ - Gets the is_sync_completed of this AlpinePackageUpload. - + """Gets the is_sync_completed of this AlpinePackageUpload. # noqa: E501 - :return: The is_sync_completed of this AlpinePackageUpload. + # noqa: E501 + + :return: The is_sync_completed of this AlpinePackageUpload. # noqa: E501 :rtype: bool """ return self._is_sync_completed @is_sync_completed.setter def is_sync_completed(self, is_sync_completed): - """ - Sets the is_sync_completed of this AlpinePackageUpload. - + """Sets the is_sync_completed of this AlpinePackageUpload. - :param is_sync_completed: The is_sync_completed of this AlpinePackageUpload. + # noqa: E501 + + :param is_sync_completed: The is_sync_completed of this AlpinePackageUpload. # noqa: E501 :type: bool """ @@ -871,22 +875,22 @@ def is_sync_completed(self, is_sync_completed): @property def is_sync_failed(self): - """ - Gets the is_sync_failed of this AlpinePackageUpload. - + """Gets the is_sync_failed of this AlpinePackageUpload. # noqa: E501 - :return: The is_sync_failed of this AlpinePackageUpload. + # noqa: E501 + + :return: The is_sync_failed of this AlpinePackageUpload. # noqa: E501 :rtype: bool """ return self._is_sync_failed @is_sync_failed.setter def is_sync_failed(self, is_sync_failed): - """ - Sets the is_sync_failed of this AlpinePackageUpload. - + """Sets the is_sync_failed of this AlpinePackageUpload. - :param is_sync_failed: The is_sync_failed of this AlpinePackageUpload. + # noqa: E501 + + :param is_sync_failed: The is_sync_failed of this AlpinePackageUpload. # noqa: E501 :type: bool """ @@ -894,22 +898,22 @@ def is_sync_failed(self, is_sync_failed): @property def is_sync_in_flight(self): - """ - Gets the is_sync_in_flight of this AlpinePackageUpload. - + """Gets the is_sync_in_flight of this AlpinePackageUpload. # noqa: E501 - :return: The is_sync_in_flight of this AlpinePackageUpload. + # noqa: E501 + + :return: The is_sync_in_flight of this AlpinePackageUpload. # noqa: E501 :rtype: bool """ return self._is_sync_in_flight @is_sync_in_flight.setter def is_sync_in_flight(self, is_sync_in_flight): - """ - Sets the is_sync_in_flight of this AlpinePackageUpload. - + """Sets the is_sync_in_flight of this AlpinePackageUpload. - :param is_sync_in_flight: The is_sync_in_flight of this AlpinePackageUpload. + # noqa: E501 + + :param is_sync_in_flight: The is_sync_in_flight of this AlpinePackageUpload. # noqa: E501 :type: bool """ @@ -917,22 +921,22 @@ def is_sync_in_flight(self, is_sync_in_flight): @property def is_sync_in_progress(self): - """ - Gets the is_sync_in_progress of this AlpinePackageUpload. - + """Gets the is_sync_in_progress of this AlpinePackageUpload. # noqa: E501 - :return: The is_sync_in_progress of this AlpinePackageUpload. + # noqa: E501 + + :return: The is_sync_in_progress of this AlpinePackageUpload. # noqa: E501 :rtype: bool """ return self._is_sync_in_progress @is_sync_in_progress.setter def is_sync_in_progress(self, is_sync_in_progress): - """ - Sets the is_sync_in_progress of this AlpinePackageUpload. - + """Sets the is_sync_in_progress of this AlpinePackageUpload. + + # noqa: E501 - :param is_sync_in_progress: The is_sync_in_progress of this AlpinePackageUpload. + :param is_sync_in_progress: The is_sync_in_progress of this AlpinePackageUpload. # noqa: E501 :type: bool """ @@ -940,22 +944,22 @@ def is_sync_in_progress(self, is_sync_in_progress): @property def license(self): - """ - Gets the license of this AlpinePackageUpload. - The license of this package. + """Gets the license of this AlpinePackageUpload. # noqa: E501 + + The license of this package. # noqa: E501 - :return: The license of this AlpinePackageUpload. + :return: The license of this AlpinePackageUpload. # noqa: E501 :rtype: str """ return self._license @license.setter def license(self, license): - """ - Sets the license of this AlpinePackageUpload. - The license of this package. + """Sets the license of this AlpinePackageUpload. + + The license of this package. # noqa: E501 - :param license: The license of this AlpinePackageUpload. + :param license: The license of this AlpinePackageUpload. # noqa: E501 :type: str """ @@ -963,22 +967,22 @@ def license(self, license): @property def name(self): - """ - Gets the name of this AlpinePackageUpload. - The name of this package. + """Gets the name of this AlpinePackageUpload. # noqa: E501 + + The name of this package. # noqa: E501 - :return: The name of this AlpinePackageUpload. + :return: The name of this AlpinePackageUpload. # noqa: E501 :rtype: str """ return self._name @name.setter def name(self, name): - """ - Sets the name of this AlpinePackageUpload. - The name of this package. + """Sets the name of this AlpinePackageUpload. + + The name of this package. # noqa: E501 - :param name: The name of this AlpinePackageUpload. + :param name: The name of this AlpinePackageUpload. # noqa: E501 :type: str """ @@ -986,22 +990,22 @@ def name(self, name): @property def namespace(self): - """ - Gets the namespace of this AlpinePackageUpload. - + """Gets the namespace of this AlpinePackageUpload. # noqa: E501 + + # noqa: E501 - :return: The namespace of this AlpinePackageUpload. + :return: The namespace of this AlpinePackageUpload. # noqa: E501 :rtype: str """ return self._namespace @namespace.setter def namespace(self, namespace): - """ - Sets the namespace of this AlpinePackageUpload. - + """Sets the namespace of this AlpinePackageUpload. + + # noqa: E501 - :param namespace: The namespace of this AlpinePackageUpload. + :param namespace: The namespace of this AlpinePackageUpload. # noqa: E501 :type: str """ @@ -1009,22 +1013,22 @@ def namespace(self, namespace): @property def namespace_url(self): - """ - Gets the namespace_url of this AlpinePackageUpload. - + """Gets the namespace_url of this AlpinePackageUpload. # noqa: E501 + + # noqa: E501 - :return: The namespace_url of this AlpinePackageUpload. + :return: The namespace_url of this AlpinePackageUpload. # noqa: E501 :rtype: str """ return self._namespace_url @namespace_url.setter def namespace_url(self, namespace_url): - """ - Sets the namespace_url of this AlpinePackageUpload. - + """Sets the namespace_url of this AlpinePackageUpload. + + # noqa: E501 - :param namespace_url: The namespace_url of this AlpinePackageUpload. + :param namespace_url: The namespace_url of this AlpinePackageUpload. # noqa: E501 :type: str """ @@ -1032,22 +1036,22 @@ def namespace_url(self, namespace_url): @property def num_files(self): - """ - Gets the num_files of this AlpinePackageUpload. - + """Gets the num_files of this AlpinePackageUpload. # noqa: E501 - :return: The num_files of this AlpinePackageUpload. + # noqa: E501 + + :return: The num_files of this AlpinePackageUpload. # noqa: E501 :rtype: int """ return self._num_files @num_files.setter def num_files(self, num_files): - """ - Sets the num_files of this AlpinePackageUpload. - + """Sets the num_files of this AlpinePackageUpload. - :param num_files: The num_files of this AlpinePackageUpload. + # noqa: E501 + + :param num_files: The num_files of this AlpinePackageUpload. # noqa: E501 :type: int """ @@ -1055,22 +1059,22 @@ def num_files(self, num_files): @property def package_type(self): - """ - Gets the package_type of this AlpinePackageUpload. - The type of package contents. + """Gets the package_type of this AlpinePackageUpload. # noqa: E501 - :return: The package_type of this AlpinePackageUpload. + The type of package contents. # noqa: E501 + + :return: The package_type of this AlpinePackageUpload. # noqa: E501 :rtype: str """ return self._package_type @package_type.setter def package_type(self, package_type): - """ - Sets the package_type of this AlpinePackageUpload. - The type of package contents. + """Sets the package_type of this AlpinePackageUpload. - :param package_type: The package_type of this AlpinePackageUpload. + The type of package contents. # noqa: E501 + + :param package_type: The package_type of this AlpinePackageUpload. # noqa: E501 :type: str """ @@ -1078,22 +1082,22 @@ def package_type(self, package_type): @property def release(self): - """ - Gets the release of this AlpinePackageUpload. - The release of the package version (if any). + """Gets the release of this AlpinePackageUpload. # noqa: E501 - :return: The release of this AlpinePackageUpload. + The release of the package version (if any). # noqa: E501 + + :return: The release of this AlpinePackageUpload. # noqa: E501 :rtype: str """ return self._release @release.setter def release(self, release): - """ - Sets the release of this AlpinePackageUpload. - The release of the package version (if any). + """Sets the release of this AlpinePackageUpload. - :param release: The release of this AlpinePackageUpload. + The release of the package version (if any). # noqa: E501 + + :param release: The release of this AlpinePackageUpload. # noqa: E501 :type: str """ @@ -1101,22 +1105,22 @@ def release(self, release): @property def repository(self): - """ - Gets the repository of this AlpinePackageUpload. - + """Gets the repository of this AlpinePackageUpload. # noqa: E501 - :return: The repository of this AlpinePackageUpload. + # noqa: E501 + + :return: The repository of this AlpinePackageUpload. # noqa: E501 :rtype: str """ return self._repository @repository.setter def repository(self, repository): - """ - Sets the repository of this AlpinePackageUpload. - + """Sets the repository of this AlpinePackageUpload. - :param repository: The repository of this AlpinePackageUpload. + # noqa: E501 + + :param repository: The repository of this AlpinePackageUpload. # noqa: E501 :type: str """ @@ -1124,22 +1128,22 @@ def repository(self, repository): @property def repository_url(self): - """ - Gets the repository_url of this AlpinePackageUpload. - + """Gets the repository_url of this AlpinePackageUpload. # noqa: E501 + + # noqa: E501 - :return: The repository_url of this AlpinePackageUpload. + :return: The repository_url of this AlpinePackageUpload. # noqa: E501 :rtype: str """ return self._repository_url @repository_url.setter def repository_url(self, repository_url): - """ - Sets the repository_url of this AlpinePackageUpload. - + """Sets the repository_url of this AlpinePackageUpload. + + # noqa: E501 - :param repository_url: The repository_url of this AlpinePackageUpload. + :param repository_url: The repository_url of this AlpinePackageUpload. # noqa: E501 :type: str """ @@ -1147,22 +1151,22 @@ def repository_url(self, repository_url): @property def security_scan_completed_at(self): - """ - Gets the security_scan_completed_at of this AlpinePackageUpload. - The datetime the security scanning was completed. + """Gets the security_scan_completed_at of this AlpinePackageUpload. # noqa: E501 + + The datetime the security scanning was completed. # noqa: E501 - :return: The security_scan_completed_at of this AlpinePackageUpload. + :return: The security_scan_completed_at of this AlpinePackageUpload. # noqa: E501 :rtype: str """ return self._security_scan_completed_at @security_scan_completed_at.setter def security_scan_completed_at(self, security_scan_completed_at): - """ - Sets the security_scan_completed_at of this AlpinePackageUpload. - The datetime the security scanning was completed. + """Sets the security_scan_completed_at of this AlpinePackageUpload. + + The datetime the security scanning was completed. # noqa: E501 - :param security_scan_completed_at: The security_scan_completed_at of this AlpinePackageUpload. + :param security_scan_completed_at: The security_scan_completed_at of this AlpinePackageUpload. # noqa: E501 :type: str """ @@ -1170,22 +1174,22 @@ def security_scan_completed_at(self, security_scan_completed_at): @property def security_scan_started_at(self): - """ - Gets the security_scan_started_at of this AlpinePackageUpload. - The datetime the security scanning was started. + """Gets the security_scan_started_at of this AlpinePackageUpload. # noqa: E501 + + The datetime the security scanning was started. # noqa: E501 - :return: The security_scan_started_at of this AlpinePackageUpload. + :return: The security_scan_started_at of this AlpinePackageUpload. # noqa: E501 :rtype: str """ return self._security_scan_started_at @security_scan_started_at.setter def security_scan_started_at(self, security_scan_started_at): - """ - Sets the security_scan_started_at of this AlpinePackageUpload. - The datetime the security scanning was started. + """Sets the security_scan_started_at of this AlpinePackageUpload. - :param security_scan_started_at: The security_scan_started_at of this AlpinePackageUpload. + The datetime the security scanning was started. # noqa: E501 + + :param security_scan_started_at: The security_scan_started_at of this AlpinePackageUpload. # noqa: E501 :type: str """ @@ -1193,22 +1197,22 @@ def security_scan_started_at(self, security_scan_started_at): @property def security_scan_status(self): - """ - Gets the security_scan_status of this AlpinePackageUpload. - + """Gets the security_scan_status of this AlpinePackageUpload. # noqa: E501 - :return: The security_scan_status of this AlpinePackageUpload. + # noqa: E501 + + :return: The security_scan_status of this AlpinePackageUpload. # noqa: E501 :rtype: str """ return self._security_scan_status @security_scan_status.setter def security_scan_status(self, security_scan_status): - """ - Sets the security_scan_status of this AlpinePackageUpload. - + """Sets the security_scan_status of this AlpinePackageUpload. - :param security_scan_status: The security_scan_status of this AlpinePackageUpload. + # noqa: E501 + + :param security_scan_status: The security_scan_status of this AlpinePackageUpload. # noqa: E501 :type: str """ @@ -1216,22 +1220,22 @@ def security_scan_status(self, security_scan_status): @property def security_scan_status_updated_at(self): - """ - Gets the security_scan_status_updated_at of this AlpinePackageUpload. - The datetime the security scanning status was updated. + """Gets the security_scan_status_updated_at of this AlpinePackageUpload. # noqa: E501 - :return: The security_scan_status_updated_at of this AlpinePackageUpload. + The datetime the security scanning status was updated. # noqa: E501 + + :return: The security_scan_status_updated_at of this AlpinePackageUpload. # noqa: E501 :rtype: str """ return self._security_scan_status_updated_at @security_scan_status_updated_at.setter def security_scan_status_updated_at(self, security_scan_status_updated_at): - """ - Sets the security_scan_status_updated_at of this AlpinePackageUpload. - The datetime the security scanning status was updated. + """Sets the security_scan_status_updated_at of this AlpinePackageUpload. + + The datetime the security scanning status was updated. # noqa: E501 - :param security_scan_status_updated_at: The security_scan_status_updated_at of this AlpinePackageUpload. + :param security_scan_status_updated_at: The security_scan_status_updated_at of this AlpinePackageUpload. # noqa: E501 :type: str """ @@ -1239,22 +1243,22 @@ def security_scan_status_updated_at(self, security_scan_status_updated_at): @property def self_html_url(self): - """ - Gets the self_html_url of this AlpinePackageUpload. - + """Gets the self_html_url of this AlpinePackageUpload. # noqa: E501 + + # noqa: E501 - :return: The self_html_url of this AlpinePackageUpload. + :return: The self_html_url of this AlpinePackageUpload. # noqa: E501 :rtype: str """ return self._self_html_url @self_html_url.setter def self_html_url(self, self_html_url): - """ - Sets the self_html_url of this AlpinePackageUpload. - + """Sets the self_html_url of this AlpinePackageUpload. + + # noqa: E501 - :param self_html_url: The self_html_url of this AlpinePackageUpload. + :param self_html_url: The self_html_url of this AlpinePackageUpload. # noqa: E501 :type: str """ @@ -1262,22 +1266,22 @@ def self_html_url(self, self_html_url): @property def self_url(self): - """ - Gets the self_url of this AlpinePackageUpload. - + """Gets the self_url of this AlpinePackageUpload. # noqa: E501 + + # noqa: E501 - :return: The self_url of this AlpinePackageUpload. + :return: The self_url of this AlpinePackageUpload. # noqa: E501 :rtype: str """ return self._self_url @self_url.setter def self_url(self, self_url): - """ - Sets the self_url of this AlpinePackageUpload. - + """Sets the self_url of this AlpinePackageUpload. + + # noqa: E501 - :param self_url: The self_url of this AlpinePackageUpload. + :param self_url: The self_url of this AlpinePackageUpload. # noqa: E501 :type: str """ @@ -1285,22 +1289,22 @@ def self_url(self, self_url): @property def signature_url(self): - """ - Gets the signature_url of this AlpinePackageUpload. - + """Gets the signature_url of this AlpinePackageUpload. # noqa: E501 + + # noqa: E501 - :return: The signature_url of this AlpinePackageUpload. + :return: The signature_url of this AlpinePackageUpload. # noqa: E501 :rtype: str """ return self._signature_url @signature_url.setter def signature_url(self, signature_url): - """ - Sets the signature_url of this AlpinePackageUpload. - + """Sets the signature_url of this AlpinePackageUpload. + + # noqa: E501 - :param signature_url: The signature_url of this AlpinePackageUpload. + :param signature_url: The signature_url of this AlpinePackageUpload. # noqa: E501 :type: str """ @@ -1308,22 +1312,22 @@ def signature_url(self, signature_url): @property def size(self): - """ - Gets the size of this AlpinePackageUpload. - The calculated size of the package. + """Gets the size of this AlpinePackageUpload. # noqa: E501 + + The calculated size of the package. # noqa: E501 - :return: The size of this AlpinePackageUpload. + :return: The size of this AlpinePackageUpload. # noqa: E501 :rtype: int """ return self._size @size.setter def size(self, size): - """ - Sets the size of this AlpinePackageUpload. - The calculated size of the package. + """Sets the size of this AlpinePackageUpload. + + The calculated size of the package. # noqa: E501 - :param size: The size of this AlpinePackageUpload. + :param size: The size of this AlpinePackageUpload. # noqa: E501 :type: int """ @@ -1331,22 +1335,22 @@ def size(self, size): @property def slug(self): - """ - Gets the slug of this AlpinePackageUpload. - The public unique identifier for the package. + """Gets the slug of this AlpinePackageUpload. # noqa: E501 - :return: The slug of this AlpinePackageUpload. + The public unique identifier for the package. # noqa: E501 + + :return: The slug of this AlpinePackageUpload. # noqa: E501 :rtype: str """ return self._slug @slug.setter def slug(self, slug): - """ - Sets the slug of this AlpinePackageUpload. - The public unique identifier for the package. + """Sets the slug of this AlpinePackageUpload. - :param slug: The slug of this AlpinePackageUpload. + The public unique identifier for the package. # noqa: E501 + + :param slug: The slug of this AlpinePackageUpload. # noqa: E501 :type: str """ @@ -1354,22 +1358,22 @@ def slug(self, slug): @property def slug_perm(self): - """ - Gets the slug_perm of this AlpinePackageUpload. - + """Gets the slug_perm of this AlpinePackageUpload. # noqa: E501 - :return: The slug_perm of this AlpinePackageUpload. + # noqa: E501 + + :return: The slug_perm of this AlpinePackageUpload. # noqa: E501 :rtype: str """ return self._slug_perm @slug_perm.setter def slug_perm(self, slug_perm): - """ - Sets the slug_perm of this AlpinePackageUpload. - + """Sets the slug_perm of this AlpinePackageUpload. - :param slug_perm: The slug_perm of this AlpinePackageUpload. + # noqa: E501 + + :param slug_perm: The slug_perm of this AlpinePackageUpload. # noqa: E501 :type: str """ @@ -1377,22 +1381,22 @@ def slug_perm(self, slug_perm): @property def stage(self): - """ - Gets the stage of this AlpinePackageUpload. - The synchronisation (in progress) stage of the package. + """Gets the stage of this AlpinePackageUpload. # noqa: E501 - :return: The stage of this AlpinePackageUpload. + The synchronisation (in progress) stage of the package. # noqa: E501 + + :return: The stage of this AlpinePackageUpload. # noqa: E501 :rtype: str """ return self._stage @stage.setter def stage(self, stage): - """ - Sets the stage of this AlpinePackageUpload. - The synchronisation (in progress) stage of the package. + """Sets the stage of this AlpinePackageUpload. - :param stage: The stage of this AlpinePackageUpload. + The synchronisation (in progress) stage of the package. # noqa: E501 + + :param stage: The stage of this AlpinePackageUpload. # noqa: E501 :type: str """ @@ -1400,22 +1404,22 @@ def stage(self, stage): @property def stage_str(self): - """ - Gets the stage_str of this AlpinePackageUpload. - + """Gets the stage_str of this AlpinePackageUpload. # noqa: E501 - :return: The stage_str of this AlpinePackageUpload. + # noqa: E501 + + :return: The stage_str of this AlpinePackageUpload. # noqa: E501 :rtype: str """ return self._stage_str @stage_str.setter def stage_str(self, stage_str): - """ - Sets the stage_str of this AlpinePackageUpload. - + """Sets the stage_str of this AlpinePackageUpload. - :param stage_str: The stage_str of this AlpinePackageUpload. + # noqa: E501 + + :param stage_str: The stage_str of this AlpinePackageUpload. # noqa: E501 :type: str """ @@ -1423,22 +1427,22 @@ def stage_str(self, stage_str): @property def stage_updated_at(self): - """ - Gets the stage_updated_at of this AlpinePackageUpload. - The datetime the package stage was updated at. + """Gets the stage_updated_at of this AlpinePackageUpload. # noqa: E501 + + The datetime the package stage was updated at. # noqa: E501 - :return: The stage_updated_at of this AlpinePackageUpload. + :return: The stage_updated_at of this AlpinePackageUpload. # noqa: E501 :rtype: str """ return self._stage_updated_at @stage_updated_at.setter def stage_updated_at(self, stage_updated_at): - """ - Sets the stage_updated_at of this AlpinePackageUpload. - The datetime the package stage was updated at. + """Sets the stage_updated_at of this AlpinePackageUpload. + + The datetime the package stage was updated at. # noqa: E501 - :param stage_updated_at: The stage_updated_at of this AlpinePackageUpload. + :param stage_updated_at: The stage_updated_at of this AlpinePackageUpload. # noqa: E501 :type: str """ @@ -1446,22 +1450,22 @@ def stage_updated_at(self, stage_updated_at): @property def status(self): - """ - Gets the status of this AlpinePackageUpload. - The synchronisation status of the package. + """Gets the status of this AlpinePackageUpload. # noqa: E501 + + The synchronisation status of the package. # noqa: E501 - :return: The status of this AlpinePackageUpload. + :return: The status of this AlpinePackageUpload. # noqa: E501 :rtype: str """ return self._status @status.setter def status(self, status): - """ - Sets the status of this AlpinePackageUpload. - The synchronisation status of the package. + """Sets the status of this AlpinePackageUpload. + + The synchronisation status of the package. # noqa: E501 - :param status: The status of this AlpinePackageUpload. + :param status: The status of this AlpinePackageUpload. # noqa: E501 :type: str """ @@ -1469,22 +1473,22 @@ def status(self, status): @property def status_reason(self): - """ - Gets the status_reason of this AlpinePackageUpload. - A textual description for the synchronous status reason (if any + """Gets the status_reason of this AlpinePackageUpload. # noqa: E501 + + A textual description for the synchronous status reason (if any # noqa: E501 - :return: The status_reason of this AlpinePackageUpload. + :return: The status_reason of this AlpinePackageUpload. # noqa: E501 :rtype: str """ return self._status_reason @status_reason.setter def status_reason(self, status_reason): - """ - Sets the status_reason of this AlpinePackageUpload. - A textual description for the synchronous status reason (if any + """Sets the status_reason of this AlpinePackageUpload. + + A textual description for the synchronous status reason (if any # noqa: E501 - :param status_reason: The status_reason of this AlpinePackageUpload. + :param status_reason: The status_reason of this AlpinePackageUpload. # noqa: E501 :type: str """ @@ -1492,22 +1496,22 @@ def status_reason(self, status_reason): @property def status_str(self): - """ - Gets the status_str of this AlpinePackageUpload. - + """Gets the status_str of this AlpinePackageUpload. # noqa: E501 + + # noqa: E501 - :return: The status_str of this AlpinePackageUpload. + :return: The status_str of this AlpinePackageUpload. # noqa: E501 :rtype: str """ return self._status_str @status_str.setter def status_str(self, status_str): - """ - Sets the status_str of this AlpinePackageUpload. - + """Sets the status_str of this AlpinePackageUpload. + + # noqa: E501 - :param status_str: The status_str of this AlpinePackageUpload. + :param status_str: The status_str of this AlpinePackageUpload. # noqa: E501 :type: str """ @@ -1515,22 +1519,22 @@ def status_str(self, status_str): @property def status_updated_at(self): - """ - Gets the status_updated_at of this AlpinePackageUpload. - The datetime the package status was updated at. + """Gets the status_updated_at of this AlpinePackageUpload. # noqa: E501 + + The datetime the package status was updated at. # noqa: E501 - :return: The status_updated_at of this AlpinePackageUpload. + :return: The status_updated_at of this AlpinePackageUpload. # noqa: E501 :rtype: str """ return self._status_updated_at @status_updated_at.setter def status_updated_at(self, status_updated_at): - """ - Sets the status_updated_at of this AlpinePackageUpload. - The datetime the package status was updated at. + """Sets the status_updated_at of this AlpinePackageUpload. - :param status_updated_at: The status_updated_at of this AlpinePackageUpload. + The datetime the package status was updated at. # noqa: E501 + + :param status_updated_at: The status_updated_at of this AlpinePackageUpload. # noqa: E501 :type: str """ @@ -1538,22 +1542,22 @@ def status_updated_at(self, status_updated_at): @property def status_url(self): - """ - Gets the status_url of this AlpinePackageUpload. - + """Gets the status_url of this AlpinePackageUpload. # noqa: E501 - :return: The status_url of this AlpinePackageUpload. + # noqa: E501 + + :return: The status_url of this AlpinePackageUpload. # noqa: E501 :rtype: str """ return self._status_url @status_url.setter def status_url(self, status_url): - """ - Sets the status_url of this AlpinePackageUpload. - + """Sets the status_url of this AlpinePackageUpload. - :param status_url: The status_url of this AlpinePackageUpload. + # noqa: E501 + + :param status_url: The status_url of this AlpinePackageUpload. # noqa: E501 :type: str """ @@ -1561,22 +1565,22 @@ def status_url(self, status_url): @property def subtype(self): - """ - Gets the subtype of this AlpinePackageUpload. - + """Gets the subtype of this AlpinePackageUpload. # noqa: E501 - :return: The subtype of this AlpinePackageUpload. + # noqa: E501 + + :return: The subtype of this AlpinePackageUpload. # noqa: E501 :rtype: str """ return self._subtype @subtype.setter def subtype(self, subtype): - """ - Sets the subtype of this AlpinePackageUpload. - + """Sets the subtype of this AlpinePackageUpload. - :param subtype: The subtype of this AlpinePackageUpload. + # noqa: E501 + + :param subtype: The subtype of this AlpinePackageUpload. # noqa: E501 :type: str """ @@ -1584,22 +1588,22 @@ def subtype(self, subtype): @property def summary(self): - """ - Gets the summary of this AlpinePackageUpload. - A one-liner synopsis of this package. + """Gets the summary of this AlpinePackageUpload. # noqa: E501 - :return: The summary of this AlpinePackageUpload. + A one-liner synopsis of this package. # noqa: E501 + + :return: The summary of this AlpinePackageUpload. # noqa: E501 :rtype: str """ return self._summary @summary.setter def summary(self, summary): - """ - Sets the summary of this AlpinePackageUpload. - A one-liner synopsis of this package. + """Sets the summary of this AlpinePackageUpload. - :param summary: The summary of this AlpinePackageUpload. + A one-liner synopsis of this package. # noqa: E501 + + :param summary: The summary of this AlpinePackageUpload. # noqa: E501 :type: str """ @@ -1607,22 +1611,22 @@ def summary(self, summary): @property def sync_finished_at(self): - """ - Gets the sync_finished_at of this AlpinePackageUpload. - The datetime the package sync was finished at. + """Gets the sync_finished_at of this AlpinePackageUpload. # noqa: E501 - :return: The sync_finished_at of this AlpinePackageUpload. + The datetime the package sync was finished at. # noqa: E501 + + :return: The sync_finished_at of this AlpinePackageUpload. # noqa: E501 :rtype: str """ return self._sync_finished_at @sync_finished_at.setter def sync_finished_at(self, sync_finished_at): - """ - Sets the sync_finished_at of this AlpinePackageUpload. - The datetime the package sync was finished at. + """Sets the sync_finished_at of this AlpinePackageUpload. + + The datetime the package sync was finished at. # noqa: E501 - :param sync_finished_at: The sync_finished_at of this AlpinePackageUpload. + :param sync_finished_at: The sync_finished_at of this AlpinePackageUpload. # noqa: E501 :type: str """ @@ -1630,22 +1634,22 @@ def sync_finished_at(self, sync_finished_at): @property def sync_progress(self): - """ - Gets the sync_progress of this AlpinePackageUpload. - Synchronisation progress (from 0-100) + """Gets the sync_progress of this AlpinePackageUpload. # noqa: E501 + + Synchronisation progress (from 0-100) # noqa: E501 - :return: The sync_progress of this AlpinePackageUpload. + :return: The sync_progress of this AlpinePackageUpload. # noqa: E501 :rtype: int """ return self._sync_progress @sync_progress.setter def sync_progress(self, sync_progress): - """ - Sets the sync_progress of this AlpinePackageUpload. - Synchronisation progress (from 0-100) + """Sets the sync_progress of this AlpinePackageUpload. + + Synchronisation progress (from 0-100) # noqa: E501 - :param sync_progress: The sync_progress of this AlpinePackageUpload. + :param sync_progress: The sync_progress of this AlpinePackageUpload. # noqa: E501 :type: int """ @@ -1653,22 +1657,22 @@ def sync_progress(self, sync_progress): @property def tags_immutable(self): - """ - Gets the tags_immutable of this AlpinePackageUpload. - All immutable tags on the package, grouped by tag type. Immutable tags cannot be (easily) deleted. + """Gets the tags_immutable of this AlpinePackageUpload. # noqa: E501 + + All immutable tags on the package, grouped by tag type. Immutable tags cannot be (easily) deleted. # noqa: E501 - :return: The tags_immutable of this AlpinePackageUpload. + :return: The tags_immutable of this AlpinePackageUpload. # noqa: E501 :rtype: object """ return self._tags_immutable @tags_immutable.setter def tags_immutable(self, tags_immutable): - """ - Sets the tags_immutable of this AlpinePackageUpload. - All immutable tags on the package, grouped by tag type. Immutable tags cannot be (easily) deleted. + """Sets the tags_immutable of this AlpinePackageUpload. + + All immutable tags on the package, grouped by tag type. Immutable tags cannot be (easily) deleted. # noqa: E501 - :param tags_immutable: The tags_immutable of this AlpinePackageUpload. + :param tags_immutable: The tags_immutable of this AlpinePackageUpload. # noqa: E501 :type: object """ @@ -1676,22 +1680,22 @@ def tags_immutable(self, tags_immutable): @property def type_display(self): - """ - Gets the type_display of this AlpinePackageUpload. - + """Gets the type_display of this AlpinePackageUpload. # noqa: E501 + + # noqa: E501 - :return: The type_display of this AlpinePackageUpload. + :return: The type_display of this AlpinePackageUpload. # noqa: E501 :rtype: str """ return self._type_display @type_display.setter def type_display(self, type_display): - """ - Sets the type_display of this AlpinePackageUpload. - + """Sets the type_display of this AlpinePackageUpload. + + # noqa: E501 - :param type_display: The type_display of this AlpinePackageUpload. + :param type_display: The type_display of this AlpinePackageUpload. # noqa: E501 :type: str """ @@ -1699,22 +1703,22 @@ def type_display(self, type_display): @property def uploaded_at(self): - """ - Gets the uploaded_at of this AlpinePackageUpload. - The date this package was uploaded. + """Gets the uploaded_at of this AlpinePackageUpload. # noqa: E501 + + The date this package was uploaded. # noqa: E501 - :return: The uploaded_at of this AlpinePackageUpload. + :return: The uploaded_at of this AlpinePackageUpload. # noqa: E501 :rtype: str """ return self._uploaded_at @uploaded_at.setter def uploaded_at(self, uploaded_at): - """ - Sets the uploaded_at of this AlpinePackageUpload. - The date this package was uploaded. + """Sets the uploaded_at of this AlpinePackageUpload. + + The date this package was uploaded. # noqa: E501 - :param uploaded_at: The uploaded_at of this AlpinePackageUpload. + :param uploaded_at: The uploaded_at of this AlpinePackageUpload. # noqa: E501 :type: str """ @@ -1722,22 +1726,22 @@ def uploaded_at(self, uploaded_at): @property def uploader(self): - """ - Gets the uploader of this AlpinePackageUpload. - + """Gets the uploader of this AlpinePackageUpload. # noqa: E501 - :return: The uploader of this AlpinePackageUpload. + # noqa: E501 + + :return: The uploader of this AlpinePackageUpload. # noqa: E501 :rtype: str """ return self._uploader @uploader.setter def uploader(self, uploader): - """ - Sets the uploader of this AlpinePackageUpload. - + """Sets the uploader of this AlpinePackageUpload. - :param uploader: The uploader of this AlpinePackageUpload. + # noqa: E501 + + :param uploader: The uploader of this AlpinePackageUpload. # noqa: E501 :type: str """ @@ -1745,22 +1749,22 @@ def uploader(self, uploader): @property def uploader_url(self): - """ - Gets the uploader_url of this AlpinePackageUpload. - + """Gets the uploader_url of this AlpinePackageUpload. # noqa: E501 - :return: The uploader_url of this AlpinePackageUpload. + # noqa: E501 + + :return: The uploader_url of this AlpinePackageUpload. # noqa: E501 :rtype: str """ return self._uploader_url @uploader_url.setter def uploader_url(self, uploader_url): - """ - Sets the uploader_url of this AlpinePackageUpload. - + """Sets the uploader_url of this AlpinePackageUpload. - :param uploader_url: The uploader_url of this AlpinePackageUpload. + # noqa: E501 + + :param uploader_url: The uploader_url of this AlpinePackageUpload. # noqa: E501 :type: str """ @@ -1768,22 +1772,22 @@ def uploader_url(self, uploader_url): @property def version(self): - """ - Gets the version of this AlpinePackageUpload. - The raw version for this package. + """Gets the version of this AlpinePackageUpload. # noqa: E501 - :return: The version of this AlpinePackageUpload. + The raw version for this package. # noqa: E501 + + :return: The version of this AlpinePackageUpload. # noqa: E501 :rtype: str """ return self._version @version.setter def version(self, version): - """ - Sets the version of this AlpinePackageUpload. - The raw version for this package. + """Sets the version of this AlpinePackageUpload. - :param version: The version of this AlpinePackageUpload. + The raw version for this package. # noqa: E501 + + :param version: The version of this AlpinePackageUpload. # noqa: E501 :type: str """ @@ -1791,22 +1795,22 @@ def version(self, version): @property def version_orig(self): - """ - Gets the version_orig of this AlpinePackageUpload. - + """Gets the version_orig of this AlpinePackageUpload. # noqa: E501 - :return: The version_orig of this AlpinePackageUpload. + # noqa: E501 + + :return: The version_orig of this AlpinePackageUpload. # noqa: E501 :rtype: str """ return self._version_orig @version_orig.setter def version_orig(self, version_orig): - """ - Sets the version_orig of this AlpinePackageUpload. - + """Sets the version_orig of this AlpinePackageUpload. - :param version_orig: The version_orig of this AlpinePackageUpload. + # noqa: E501 + + :param version_orig: The version_orig of this AlpinePackageUpload. # noqa: E501 :type: str """ @@ -1814,34 +1818,32 @@ def version_orig(self, version_orig): @property def vulnerability_scan_results_url(self): - """ - Gets the vulnerability_scan_results_url of this AlpinePackageUpload. - + """Gets the vulnerability_scan_results_url of this AlpinePackageUpload. # noqa: E501 + + # noqa: E501 - :return: The vulnerability_scan_results_url of this AlpinePackageUpload. + :return: The vulnerability_scan_results_url of this AlpinePackageUpload. # noqa: E501 :rtype: str """ return self._vulnerability_scan_results_url @vulnerability_scan_results_url.setter def vulnerability_scan_results_url(self, vulnerability_scan_results_url): - """ - Sets the vulnerability_scan_results_url of this AlpinePackageUpload. - + """Sets the vulnerability_scan_results_url of this AlpinePackageUpload. + + # noqa: E501 - :param vulnerability_scan_results_url: The vulnerability_scan_results_url of this AlpinePackageUpload. + :param vulnerability_scan_results_url: The vulnerability_scan_results_url of this AlpinePackageUpload. # noqa: E501 :type: str """ self._vulnerability_scan_results_url = vulnerability_scan_results_url def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -1858,32 +1860,30 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(AlpinePackageUpload, dict): + for key, value in self.items(): + result[key] = value return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, AlpinePackageUpload): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other + """Returns true if both objects are not equal""" + if not isinstance(other, AlpinePackageUpload): + return True + + return self.to_dict() != other.to_dict() diff --git a/bindings/python/src/cloudsmith_api/models/conan_package_upload.py b/bindings/python/src/cloudsmith_api/models/conan_package_upload.py index cdb56b21..715205b4 100644 --- a/bindings/python/src/cloudsmith_api/models/conan_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/conan_package_upload.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -11,18 +11,20 @@ """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration class ConanPackageUpload(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -168,10 +170,11 @@ class ConanPackageUpload(object): 'vulnerability_scan_results_url': 'vulnerability_scan_results_url' } - def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, conan_channel=None, conan_prefix=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, distro=None, distro_version=None, downloads=None, epoch=None, extension=None, filename=None, files=None, format=None, format_url=None, identifier_perm=None, indexed=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, package_type=None, release=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status=None, security_scan_status_updated_at=None, self_html_url=None, self_url=None, signature_url=None, size=None, slug=None, slug_perm=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_immutable=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_scan_results_url=None): - """ - ConanPackageUpload - a model defined in Swagger - """ + def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, conan_channel=None, conan_prefix=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, distro=None, distro_version=None, downloads=None, epoch=None, extension=None, filename=None, files=None, format=None, format_url=None, identifier_perm=None, indexed=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, package_type=None, release=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status=None, security_scan_status_updated_at=None, self_html_url=None, self_url=None, signature_url=None, size=None, slug=None, slug_perm=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_immutable=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 + """ConanPackageUpload - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._architectures = None self._cdn_url = None @@ -239,158 +242,159 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._version = None self._version_orig = None self._vulnerability_scan_results_url = None + self.discriminator = None if architectures is not None: - self.architectures = architectures + self.architectures = architectures if cdn_url is not None: - self.cdn_url = cdn_url + self.cdn_url = cdn_url if checksum_md5 is not None: - self.checksum_md5 = checksum_md5 + self.checksum_md5 = checksum_md5 if checksum_sha1 is not None: - self.checksum_sha1 = checksum_sha1 + self.checksum_sha1 = checksum_sha1 if checksum_sha256 is not None: - self.checksum_sha256 = checksum_sha256 + self.checksum_sha256 = checksum_sha256 if checksum_sha512 is not None: - self.checksum_sha512 = checksum_sha512 + self.checksum_sha512 = checksum_sha512 if conan_channel is not None: - self.conan_channel = conan_channel + self.conan_channel = conan_channel if conan_prefix is not None: - self.conan_prefix = conan_prefix + self.conan_prefix = conan_prefix if dependencies_checksum_md5 is not None: - self.dependencies_checksum_md5 = dependencies_checksum_md5 + self.dependencies_checksum_md5 = dependencies_checksum_md5 if dependencies_url is not None: - self.dependencies_url = dependencies_url + self.dependencies_url = dependencies_url if description is not None: - self.description = description + self.description = description if distro is not None: - self.distro = distro + self.distro = distro if distro_version is not None: - self.distro_version = distro_version + self.distro_version = distro_version if downloads is not None: - self.downloads = downloads + self.downloads = downloads if epoch is not None: - self.epoch = epoch + self.epoch = epoch if extension is not None: - self.extension = extension + self.extension = extension if filename is not None: - self.filename = filename + self.filename = filename if files is not None: - self.files = files + self.files = files if format is not None: - self.format = format + self.format = format if format_url is not None: - self.format_url = format_url + self.format_url = format_url if identifier_perm is not None: - self.identifier_perm = identifier_perm + self.identifier_perm = identifier_perm if indexed is not None: - self.indexed = indexed + self.indexed = indexed if is_sync_awaiting is not None: - self.is_sync_awaiting = is_sync_awaiting + self.is_sync_awaiting = is_sync_awaiting if is_sync_completed is not None: - self.is_sync_completed = is_sync_completed + self.is_sync_completed = is_sync_completed if is_sync_failed is not None: - self.is_sync_failed = is_sync_failed + self.is_sync_failed = is_sync_failed if is_sync_in_flight is not None: - self.is_sync_in_flight = is_sync_in_flight + self.is_sync_in_flight = is_sync_in_flight if is_sync_in_progress is not None: - self.is_sync_in_progress = is_sync_in_progress + self.is_sync_in_progress = is_sync_in_progress if license is not None: - self.license = license + self.license = license if name is not None: - self.name = name + self.name = name if namespace is not None: - self.namespace = namespace + self.namespace = namespace if namespace_url is not None: - self.namespace_url = namespace_url + self.namespace_url = namespace_url if num_files is not None: - self.num_files = num_files + self.num_files = num_files if package_type is not None: - self.package_type = package_type + self.package_type = package_type if release is not None: - self.release = release + self.release = release if repository is not None: - self.repository = repository + self.repository = repository if repository_url is not None: - self.repository_url = repository_url + self.repository_url = repository_url if security_scan_completed_at is not None: - self.security_scan_completed_at = security_scan_completed_at + self.security_scan_completed_at = security_scan_completed_at if security_scan_started_at is not None: - self.security_scan_started_at = security_scan_started_at + self.security_scan_started_at = security_scan_started_at if security_scan_status is not None: - self.security_scan_status = security_scan_status + self.security_scan_status = security_scan_status if security_scan_status_updated_at is not None: - self.security_scan_status_updated_at = security_scan_status_updated_at + self.security_scan_status_updated_at = security_scan_status_updated_at if self_html_url is not None: - self.self_html_url = self_html_url + self.self_html_url = self_html_url if self_url is not None: - self.self_url = self_url + self.self_url = self_url if signature_url is not None: - self.signature_url = signature_url + self.signature_url = signature_url if size is not None: - self.size = size + self.size = size if slug is not None: - self.slug = slug + self.slug = slug if slug_perm is not None: - self.slug_perm = slug_perm + self.slug_perm = slug_perm if stage is not None: - self.stage = stage + self.stage = stage if stage_str is not None: - self.stage_str = stage_str + self.stage_str = stage_str if stage_updated_at is not None: - self.stage_updated_at = stage_updated_at + self.stage_updated_at = stage_updated_at if status is not None: - self.status = status + self.status = status if status_reason is not None: - self.status_reason = status_reason + self.status_reason = status_reason if status_str is not None: - self.status_str = status_str + self.status_str = status_str if status_updated_at is not None: - self.status_updated_at = status_updated_at + self.status_updated_at = status_updated_at if status_url is not None: - self.status_url = status_url + self.status_url = status_url if subtype is not None: - self.subtype = subtype + self.subtype = subtype if summary is not None: - self.summary = summary + self.summary = summary if sync_finished_at is not None: - self.sync_finished_at = sync_finished_at + self.sync_finished_at = sync_finished_at if sync_progress is not None: - self.sync_progress = sync_progress + self.sync_progress = sync_progress if tags_immutable is not None: - self.tags_immutable = tags_immutable + self.tags_immutable = tags_immutable if type_display is not None: - self.type_display = type_display + self.type_display = type_display if uploaded_at is not None: - self.uploaded_at = uploaded_at + self.uploaded_at = uploaded_at if uploader is not None: - self.uploader = uploader + self.uploader = uploader if uploader_url is not None: - self.uploader_url = uploader_url + self.uploader_url = uploader_url if version is not None: - self.version = version + self.version = version if version_orig is not None: - self.version_orig = version_orig + self.version_orig = version_orig if vulnerability_scan_results_url is not None: - self.vulnerability_scan_results_url = vulnerability_scan_results_url + self.vulnerability_scan_results_url = vulnerability_scan_results_url @property def architectures(self): - """ - Gets the architectures of this ConanPackageUpload. - + """Gets the architectures of this ConanPackageUpload. # noqa: E501 + + # noqa: E501 - :return: The architectures of this ConanPackageUpload. + :return: The architectures of this ConanPackageUpload. # noqa: E501 :rtype: list[PackagesownerrepoArchitectures] """ return self._architectures @architectures.setter def architectures(self, architectures): - """ - Sets the architectures of this ConanPackageUpload. - + """Sets the architectures of this ConanPackageUpload. + + # noqa: E501 - :param architectures: The architectures of this ConanPackageUpload. + :param architectures: The architectures of this ConanPackageUpload. # noqa: E501 :type: list[PackagesownerrepoArchitectures] """ @@ -398,22 +402,22 @@ def architectures(self, architectures): @property def cdn_url(self): - """ - Gets the cdn_url of this ConanPackageUpload. - + """Gets the cdn_url of this ConanPackageUpload. # noqa: E501 - :return: The cdn_url of this ConanPackageUpload. + # noqa: E501 + + :return: The cdn_url of this ConanPackageUpload. # noqa: E501 :rtype: str """ return self._cdn_url @cdn_url.setter def cdn_url(self, cdn_url): - """ - Sets the cdn_url of this ConanPackageUpload. - + """Sets the cdn_url of this ConanPackageUpload. - :param cdn_url: The cdn_url of this ConanPackageUpload. + # noqa: E501 + + :param cdn_url: The cdn_url of this ConanPackageUpload. # noqa: E501 :type: str """ @@ -421,22 +425,22 @@ def cdn_url(self, cdn_url): @property def checksum_md5(self): - """ - Gets the checksum_md5 of this ConanPackageUpload. - + """Gets the checksum_md5 of this ConanPackageUpload. # noqa: E501 - :return: The checksum_md5 of this ConanPackageUpload. + # noqa: E501 + + :return: The checksum_md5 of this ConanPackageUpload. # noqa: E501 :rtype: str """ return self._checksum_md5 @checksum_md5.setter def checksum_md5(self, checksum_md5): - """ - Sets the checksum_md5 of this ConanPackageUpload. - + """Sets the checksum_md5 of this ConanPackageUpload. - :param checksum_md5: The checksum_md5 of this ConanPackageUpload. + # noqa: E501 + + :param checksum_md5: The checksum_md5 of this ConanPackageUpload. # noqa: E501 :type: str """ @@ -444,22 +448,22 @@ def checksum_md5(self, checksum_md5): @property def checksum_sha1(self): - """ - Gets the checksum_sha1 of this ConanPackageUpload. - + """Gets the checksum_sha1 of this ConanPackageUpload. # noqa: E501 + + # noqa: E501 - :return: The checksum_sha1 of this ConanPackageUpload. + :return: The checksum_sha1 of this ConanPackageUpload. # noqa: E501 :rtype: str """ return self._checksum_sha1 @checksum_sha1.setter def checksum_sha1(self, checksum_sha1): - """ - Sets the checksum_sha1 of this ConanPackageUpload. - + """Sets the checksum_sha1 of this ConanPackageUpload. + + # noqa: E501 - :param checksum_sha1: The checksum_sha1 of this ConanPackageUpload. + :param checksum_sha1: The checksum_sha1 of this ConanPackageUpload. # noqa: E501 :type: str """ @@ -467,22 +471,22 @@ def checksum_sha1(self, checksum_sha1): @property def checksum_sha256(self): - """ - Gets the checksum_sha256 of this ConanPackageUpload. - + """Gets the checksum_sha256 of this ConanPackageUpload. # noqa: E501 + + # noqa: E501 - :return: The checksum_sha256 of this ConanPackageUpload. + :return: The checksum_sha256 of this ConanPackageUpload. # noqa: E501 :rtype: str """ return self._checksum_sha256 @checksum_sha256.setter def checksum_sha256(self, checksum_sha256): - """ - Sets the checksum_sha256 of this ConanPackageUpload. - + """Sets the checksum_sha256 of this ConanPackageUpload. + + # noqa: E501 - :param checksum_sha256: The checksum_sha256 of this ConanPackageUpload. + :param checksum_sha256: The checksum_sha256 of this ConanPackageUpload. # noqa: E501 :type: str """ @@ -490,22 +494,22 @@ def checksum_sha256(self, checksum_sha256): @property def checksum_sha512(self): - """ - Gets the checksum_sha512 of this ConanPackageUpload. - + """Gets the checksum_sha512 of this ConanPackageUpload. # noqa: E501 + + # noqa: E501 - :return: The checksum_sha512 of this ConanPackageUpload. + :return: The checksum_sha512 of this ConanPackageUpload. # noqa: E501 :rtype: str """ return self._checksum_sha512 @checksum_sha512.setter def checksum_sha512(self, checksum_sha512): - """ - Sets the checksum_sha512 of this ConanPackageUpload. - + """Sets the checksum_sha512 of this ConanPackageUpload. - :param checksum_sha512: The checksum_sha512 of this ConanPackageUpload. + # noqa: E501 + + :param checksum_sha512: The checksum_sha512 of this ConanPackageUpload. # noqa: E501 :type: str """ @@ -513,22 +517,22 @@ def checksum_sha512(self, checksum_sha512): @property def conan_channel(self): - """ - Gets the conan_channel of this ConanPackageUpload. - Conan channel. + """Gets the conan_channel of this ConanPackageUpload. # noqa: E501 - :return: The conan_channel of this ConanPackageUpload. + Conan channel. # noqa: E501 + + :return: The conan_channel of this ConanPackageUpload. # noqa: E501 :rtype: str """ return self._conan_channel @conan_channel.setter def conan_channel(self, conan_channel): - """ - Sets the conan_channel of this ConanPackageUpload. - Conan channel. + """Sets the conan_channel of this ConanPackageUpload. - :param conan_channel: The conan_channel of this ConanPackageUpload. + Conan channel. # noqa: E501 + + :param conan_channel: The conan_channel of this ConanPackageUpload. # noqa: E501 :type: str """ @@ -536,22 +540,22 @@ def conan_channel(self, conan_channel): @property def conan_prefix(self): - """ - Gets the conan_prefix of this ConanPackageUpload. - Conan prefix (User). + """Gets the conan_prefix of this ConanPackageUpload. # noqa: E501 - :return: The conan_prefix of this ConanPackageUpload. + Conan prefix (User). # noqa: E501 + + :return: The conan_prefix of this ConanPackageUpload. # noqa: E501 :rtype: str """ return self._conan_prefix @conan_prefix.setter def conan_prefix(self, conan_prefix): - """ - Sets the conan_prefix of this ConanPackageUpload. - Conan prefix (User). + """Sets the conan_prefix of this ConanPackageUpload. + + Conan prefix (User). # noqa: E501 - :param conan_prefix: The conan_prefix of this ConanPackageUpload. + :param conan_prefix: The conan_prefix of this ConanPackageUpload. # noqa: E501 :type: str """ @@ -559,22 +563,22 @@ def conan_prefix(self, conan_prefix): @property def dependencies_checksum_md5(self): - """ - Gets the dependencies_checksum_md5 of this ConanPackageUpload. - A checksum of all of the package's dependencies. + """Gets the dependencies_checksum_md5 of this ConanPackageUpload. # noqa: E501 + + A checksum of all of the package's dependencies. # noqa: E501 - :return: The dependencies_checksum_md5 of this ConanPackageUpload. + :return: The dependencies_checksum_md5 of this ConanPackageUpload. # noqa: E501 :rtype: str """ return self._dependencies_checksum_md5 @dependencies_checksum_md5.setter def dependencies_checksum_md5(self, dependencies_checksum_md5): - """ - Sets the dependencies_checksum_md5 of this ConanPackageUpload. - A checksum of all of the package's dependencies. + """Sets the dependencies_checksum_md5 of this ConanPackageUpload. + + A checksum of all of the package's dependencies. # noqa: E501 - :param dependencies_checksum_md5: The dependencies_checksum_md5 of this ConanPackageUpload. + :param dependencies_checksum_md5: The dependencies_checksum_md5 of this ConanPackageUpload. # noqa: E501 :type: str """ @@ -582,22 +586,22 @@ def dependencies_checksum_md5(self, dependencies_checksum_md5): @property def dependencies_url(self): - """ - Gets the dependencies_url of this ConanPackageUpload. - + """Gets the dependencies_url of this ConanPackageUpload. # noqa: E501 + + # noqa: E501 - :return: The dependencies_url of this ConanPackageUpload. + :return: The dependencies_url of this ConanPackageUpload. # noqa: E501 :rtype: str """ return self._dependencies_url @dependencies_url.setter def dependencies_url(self, dependencies_url): - """ - Sets the dependencies_url of this ConanPackageUpload. - + """Sets the dependencies_url of this ConanPackageUpload. + + # noqa: E501 - :param dependencies_url: The dependencies_url of this ConanPackageUpload. + :param dependencies_url: The dependencies_url of this ConanPackageUpload. # noqa: E501 :type: str """ @@ -605,22 +609,22 @@ def dependencies_url(self, dependencies_url): @property def description(self): - """ - Gets the description of this ConanPackageUpload. - A textual description of this package. + """Gets the description of this ConanPackageUpload. # noqa: E501 - :return: The description of this ConanPackageUpload. + A textual description of this package. # noqa: E501 + + :return: The description of this ConanPackageUpload. # noqa: E501 :rtype: str """ return self._description @description.setter def description(self, description): - """ - Sets the description of this ConanPackageUpload. - A textual description of this package. + """Sets the description of this ConanPackageUpload. - :param description: The description of this ConanPackageUpload. + A textual description of this package. # noqa: E501 + + :param description: The description of this ConanPackageUpload. # noqa: E501 :type: str """ @@ -628,22 +632,22 @@ def description(self, description): @property def distro(self): - """ - Gets the distro of this ConanPackageUpload. - + """Gets the distro of this ConanPackageUpload. # noqa: E501 - :return: The distro of this ConanPackageUpload. + # noqa: E501 + + :return: The distro of this ConanPackageUpload. # noqa: E501 :rtype: object """ return self._distro @distro.setter def distro(self, distro): - """ - Sets the distro of this ConanPackageUpload. - + """Sets the distro of this ConanPackageUpload. - :param distro: The distro of this ConanPackageUpload. + # noqa: E501 + + :param distro: The distro of this ConanPackageUpload. # noqa: E501 :type: object """ @@ -651,22 +655,22 @@ def distro(self, distro): @property def distro_version(self): - """ - Gets the distro_version of this ConanPackageUpload. - + """Gets the distro_version of this ConanPackageUpload. # noqa: E501 + + # noqa: E501 - :return: The distro_version of this ConanPackageUpload. + :return: The distro_version of this ConanPackageUpload. # noqa: E501 :rtype: object """ return self._distro_version @distro_version.setter def distro_version(self, distro_version): - """ - Sets the distro_version of this ConanPackageUpload. - + """Sets the distro_version of this ConanPackageUpload. + + # noqa: E501 - :param distro_version: The distro_version of this ConanPackageUpload. + :param distro_version: The distro_version of this ConanPackageUpload. # noqa: E501 :type: object """ @@ -674,22 +678,22 @@ def distro_version(self, distro_version): @property def downloads(self): - """ - Gets the downloads of this ConanPackageUpload. - + """Gets the downloads of this ConanPackageUpload. # noqa: E501 + + # noqa: E501 - :return: The downloads of this ConanPackageUpload. + :return: The downloads of this ConanPackageUpload. # noqa: E501 :rtype: int """ return self._downloads @downloads.setter def downloads(self, downloads): - """ - Sets the downloads of this ConanPackageUpload. - + """Sets the downloads of this ConanPackageUpload. + + # noqa: E501 - :param downloads: The downloads of this ConanPackageUpload. + :param downloads: The downloads of this ConanPackageUpload. # noqa: E501 :type: int """ @@ -697,22 +701,22 @@ def downloads(self, downloads): @property def epoch(self): - """ - Gets the epoch of this ConanPackageUpload. - The epoch of the package version (if any). + """Gets the epoch of this ConanPackageUpload. # noqa: E501 + + The epoch of the package version (if any). # noqa: E501 - :return: The epoch of this ConanPackageUpload. + :return: The epoch of this ConanPackageUpload. # noqa: E501 :rtype: int """ return self._epoch @epoch.setter def epoch(self, epoch): - """ - Sets the epoch of this ConanPackageUpload. - The epoch of the package version (if any). + """Sets the epoch of this ConanPackageUpload. + + The epoch of the package version (if any). # noqa: E501 - :param epoch: The epoch of this ConanPackageUpload. + :param epoch: The epoch of this ConanPackageUpload. # noqa: E501 :type: int """ @@ -720,22 +724,22 @@ def epoch(self, epoch): @property def extension(self): - """ - Gets the extension of this ConanPackageUpload. - + """Gets the extension of this ConanPackageUpload. # noqa: E501 + + # noqa: E501 - :return: The extension of this ConanPackageUpload. + :return: The extension of this ConanPackageUpload. # noqa: E501 :rtype: str """ return self._extension @extension.setter def extension(self, extension): - """ - Sets the extension of this ConanPackageUpload. - + """Sets the extension of this ConanPackageUpload. + + # noqa: E501 - :param extension: The extension of this ConanPackageUpload. + :param extension: The extension of this ConanPackageUpload. # noqa: E501 :type: str """ @@ -743,22 +747,22 @@ def extension(self, extension): @property def filename(self): - """ - Gets the filename of this ConanPackageUpload. - + """Gets the filename of this ConanPackageUpload. # noqa: E501 + + # noqa: E501 - :return: The filename of this ConanPackageUpload. + :return: The filename of this ConanPackageUpload. # noqa: E501 :rtype: str """ return self._filename @filename.setter def filename(self, filename): - """ - Sets the filename of this ConanPackageUpload. - + """Sets the filename of this ConanPackageUpload. - :param filename: The filename of this ConanPackageUpload. + # noqa: E501 + + :param filename: The filename of this ConanPackageUpload. # noqa: E501 :type: str """ @@ -766,22 +770,22 @@ def filename(self, filename): @property def files(self): - """ - Gets the files of this ConanPackageUpload. - + """Gets the files of this ConanPackageUpload. # noqa: E501 - :return: The files of this ConanPackageUpload. + # noqa: E501 + + :return: The files of this ConanPackageUpload. # noqa: E501 :rtype: list[PackagesownerrepoFiles] """ return self._files @files.setter def files(self, files): - """ - Sets the files of this ConanPackageUpload. - + """Sets the files of this ConanPackageUpload. - :param files: The files of this ConanPackageUpload. + # noqa: E501 + + :param files: The files of this ConanPackageUpload. # noqa: E501 :type: list[PackagesownerrepoFiles] """ @@ -789,22 +793,22 @@ def files(self, files): @property def format(self): - """ - Gets the format of this ConanPackageUpload. - + """Gets the format of this ConanPackageUpload. # noqa: E501 - :return: The format of this ConanPackageUpload. + # noqa: E501 + + :return: The format of this ConanPackageUpload. # noqa: E501 :rtype: str """ return self._format @format.setter def format(self, format): - """ - Sets the format of this ConanPackageUpload. - + """Sets the format of this ConanPackageUpload. + + # noqa: E501 - :param format: The format of this ConanPackageUpload. + :param format: The format of this ConanPackageUpload. # noqa: E501 :type: str """ @@ -812,22 +816,22 @@ def format(self, format): @property def format_url(self): - """ - Gets the format_url of this ConanPackageUpload. - + """Gets the format_url of this ConanPackageUpload. # noqa: E501 + + # noqa: E501 - :return: The format_url of this ConanPackageUpload. + :return: The format_url of this ConanPackageUpload. # noqa: E501 :rtype: str """ return self._format_url @format_url.setter def format_url(self, format_url): - """ - Sets the format_url of this ConanPackageUpload. - + """Sets the format_url of this ConanPackageUpload. + + # noqa: E501 - :param format_url: The format_url of this ConanPackageUpload. + :param format_url: The format_url of this ConanPackageUpload. # noqa: E501 :type: str """ @@ -835,22 +839,22 @@ def format_url(self, format_url): @property def identifier_perm(self): - """ - Gets the identifier_perm of this ConanPackageUpload. - Unique and permanent identifier for the package. + """Gets the identifier_perm of this ConanPackageUpload. # noqa: E501 + + Unique and permanent identifier for the package. # noqa: E501 - :return: The identifier_perm of this ConanPackageUpload. + :return: The identifier_perm of this ConanPackageUpload. # noqa: E501 :rtype: str """ return self._identifier_perm @identifier_perm.setter def identifier_perm(self, identifier_perm): - """ - Sets the identifier_perm of this ConanPackageUpload. - Unique and permanent identifier for the package. + """Sets the identifier_perm of this ConanPackageUpload. + + Unique and permanent identifier for the package. # noqa: E501 - :param identifier_perm: The identifier_perm of this ConanPackageUpload. + :param identifier_perm: The identifier_perm of this ConanPackageUpload. # noqa: E501 :type: str """ @@ -858,22 +862,22 @@ def identifier_perm(self, identifier_perm): @property def indexed(self): - """ - Gets the indexed of this ConanPackageUpload. - + """Gets the indexed of this ConanPackageUpload. # noqa: E501 - :return: The indexed of this ConanPackageUpload. + # noqa: E501 + + :return: The indexed of this ConanPackageUpload. # noqa: E501 :rtype: bool """ return self._indexed @indexed.setter def indexed(self, indexed): - """ - Sets the indexed of this ConanPackageUpload. - + """Sets the indexed of this ConanPackageUpload. - :param indexed: The indexed of this ConanPackageUpload. + # noqa: E501 + + :param indexed: The indexed of this ConanPackageUpload. # noqa: E501 :type: bool """ @@ -881,22 +885,22 @@ def indexed(self, indexed): @property def is_sync_awaiting(self): - """ - Gets the is_sync_awaiting of this ConanPackageUpload. - + """Gets the is_sync_awaiting of this ConanPackageUpload. # noqa: E501 - :return: The is_sync_awaiting of this ConanPackageUpload. + # noqa: E501 + + :return: The is_sync_awaiting of this ConanPackageUpload. # noqa: E501 :rtype: bool """ return self._is_sync_awaiting @is_sync_awaiting.setter def is_sync_awaiting(self, is_sync_awaiting): - """ - Sets the is_sync_awaiting of this ConanPackageUpload. - + """Sets the is_sync_awaiting of this ConanPackageUpload. - :param is_sync_awaiting: The is_sync_awaiting of this ConanPackageUpload. + # noqa: E501 + + :param is_sync_awaiting: The is_sync_awaiting of this ConanPackageUpload. # noqa: E501 :type: bool """ @@ -904,22 +908,22 @@ def is_sync_awaiting(self, is_sync_awaiting): @property def is_sync_completed(self): - """ - Gets the is_sync_completed of this ConanPackageUpload. - + """Gets the is_sync_completed of this ConanPackageUpload. # noqa: E501 + + # noqa: E501 - :return: The is_sync_completed of this ConanPackageUpload. + :return: The is_sync_completed of this ConanPackageUpload. # noqa: E501 :rtype: bool """ return self._is_sync_completed @is_sync_completed.setter def is_sync_completed(self, is_sync_completed): - """ - Sets the is_sync_completed of this ConanPackageUpload. - + """Sets the is_sync_completed of this ConanPackageUpload. + + # noqa: E501 - :param is_sync_completed: The is_sync_completed of this ConanPackageUpload. + :param is_sync_completed: The is_sync_completed of this ConanPackageUpload. # noqa: E501 :type: bool """ @@ -927,22 +931,22 @@ def is_sync_completed(self, is_sync_completed): @property def is_sync_failed(self): - """ - Gets the is_sync_failed of this ConanPackageUpload. - + """Gets the is_sync_failed of this ConanPackageUpload. # noqa: E501 + + # noqa: E501 - :return: The is_sync_failed of this ConanPackageUpload. + :return: The is_sync_failed of this ConanPackageUpload. # noqa: E501 :rtype: bool """ return self._is_sync_failed @is_sync_failed.setter def is_sync_failed(self, is_sync_failed): - """ - Sets the is_sync_failed of this ConanPackageUpload. - + """Sets the is_sync_failed of this ConanPackageUpload. + + # noqa: E501 - :param is_sync_failed: The is_sync_failed of this ConanPackageUpload. + :param is_sync_failed: The is_sync_failed of this ConanPackageUpload. # noqa: E501 :type: bool """ @@ -950,22 +954,22 @@ def is_sync_failed(self, is_sync_failed): @property def is_sync_in_flight(self): - """ - Gets the is_sync_in_flight of this ConanPackageUpload. - + """Gets the is_sync_in_flight of this ConanPackageUpload. # noqa: E501 + + # noqa: E501 - :return: The is_sync_in_flight of this ConanPackageUpload. + :return: The is_sync_in_flight of this ConanPackageUpload. # noqa: E501 :rtype: bool """ return self._is_sync_in_flight @is_sync_in_flight.setter def is_sync_in_flight(self, is_sync_in_flight): - """ - Sets the is_sync_in_flight of this ConanPackageUpload. - + """Sets the is_sync_in_flight of this ConanPackageUpload. - :param is_sync_in_flight: The is_sync_in_flight of this ConanPackageUpload. + # noqa: E501 + + :param is_sync_in_flight: The is_sync_in_flight of this ConanPackageUpload. # noqa: E501 :type: bool """ @@ -973,22 +977,22 @@ def is_sync_in_flight(self, is_sync_in_flight): @property def is_sync_in_progress(self): - """ - Gets the is_sync_in_progress of this ConanPackageUpload. - + """Gets the is_sync_in_progress of this ConanPackageUpload. # noqa: E501 - :return: The is_sync_in_progress of this ConanPackageUpload. + # noqa: E501 + + :return: The is_sync_in_progress of this ConanPackageUpload. # noqa: E501 :rtype: bool """ return self._is_sync_in_progress @is_sync_in_progress.setter def is_sync_in_progress(self, is_sync_in_progress): - """ - Sets the is_sync_in_progress of this ConanPackageUpload. - + """Sets the is_sync_in_progress of this ConanPackageUpload. - :param is_sync_in_progress: The is_sync_in_progress of this ConanPackageUpload. + # noqa: E501 + + :param is_sync_in_progress: The is_sync_in_progress of this ConanPackageUpload. # noqa: E501 :type: bool """ @@ -996,22 +1000,22 @@ def is_sync_in_progress(self, is_sync_in_progress): @property def license(self): - """ - Gets the license of this ConanPackageUpload. - The license of this package. + """Gets the license of this ConanPackageUpload. # noqa: E501 - :return: The license of this ConanPackageUpload. + The license of this package. # noqa: E501 + + :return: The license of this ConanPackageUpload. # noqa: E501 :rtype: str """ return self._license @license.setter def license(self, license): - """ - Sets the license of this ConanPackageUpload. - The license of this package. + """Sets the license of this ConanPackageUpload. + + The license of this package. # noqa: E501 - :param license: The license of this ConanPackageUpload. + :param license: The license of this ConanPackageUpload. # noqa: E501 :type: str """ @@ -1019,22 +1023,22 @@ def license(self, license): @property def name(self): - """ - Gets the name of this ConanPackageUpload. - The name of this package. + """Gets the name of this ConanPackageUpload. # noqa: E501 + + The name of this package. # noqa: E501 - :return: The name of this ConanPackageUpload. + :return: The name of this ConanPackageUpload. # noqa: E501 :rtype: str """ return self._name @name.setter def name(self, name): - """ - Sets the name of this ConanPackageUpload. - The name of this package. + """Sets the name of this ConanPackageUpload. + + The name of this package. # noqa: E501 - :param name: The name of this ConanPackageUpload. + :param name: The name of this ConanPackageUpload. # noqa: E501 :type: str """ @@ -1042,22 +1046,22 @@ def name(self, name): @property def namespace(self): - """ - Gets the namespace of this ConanPackageUpload. - + """Gets the namespace of this ConanPackageUpload. # noqa: E501 + + # noqa: E501 - :return: The namespace of this ConanPackageUpload. + :return: The namespace of this ConanPackageUpload. # noqa: E501 :rtype: str """ return self._namespace @namespace.setter def namespace(self, namespace): - """ - Sets the namespace of this ConanPackageUpload. - + """Sets the namespace of this ConanPackageUpload. + + # noqa: E501 - :param namespace: The namespace of this ConanPackageUpload. + :param namespace: The namespace of this ConanPackageUpload. # noqa: E501 :type: str """ @@ -1065,22 +1069,22 @@ def namespace(self, namespace): @property def namespace_url(self): - """ - Gets the namespace_url of this ConanPackageUpload. - + """Gets the namespace_url of this ConanPackageUpload. # noqa: E501 - :return: The namespace_url of this ConanPackageUpload. + # noqa: E501 + + :return: The namespace_url of this ConanPackageUpload. # noqa: E501 :rtype: str """ return self._namespace_url @namespace_url.setter def namespace_url(self, namespace_url): - """ - Sets the namespace_url of this ConanPackageUpload. - + """Sets the namespace_url of this ConanPackageUpload. - :param namespace_url: The namespace_url of this ConanPackageUpload. + # noqa: E501 + + :param namespace_url: The namespace_url of this ConanPackageUpload. # noqa: E501 :type: str """ @@ -1088,22 +1092,22 @@ def namespace_url(self, namespace_url): @property def num_files(self): - """ - Gets the num_files of this ConanPackageUpload. - + """Gets the num_files of this ConanPackageUpload. # noqa: E501 - :return: The num_files of this ConanPackageUpload. + # noqa: E501 + + :return: The num_files of this ConanPackageUpload. # noqa: E501 :rtype: int """ return self._num_files @num_files.setter def num_files(self, num_files): - """ - Sets the num_files of this ConanPackageUpload. - + """Sets the num_files of this ConanPackageUpload. - :param num_files: The num_files of this ConanPackageUpload. + # noqa: E501 + + :param num_files: The num_files of this ConanPackageUpload. # noqa: E501 :type: int """ @@ -1111,22 +1115,22 @@ def num_files(self, num_files): @property def package_type(self): - """ - Gets the package_type of this ConanPackageUpload. - The type of package contents. + """Gets the package_type of this ConanPackageUpload. # noqa: E501 - :return: The package_type of this ConanPackageUpload. + The type of package contents. # noqa: E501 + + :return: The package_type of this ConanPackageUpload. # noqa: E501 :rtype: str """ return self._package_type @package_type.setter def package_type(self, package_type): - """ - Sets the package_type of this ConanPackageUpload. - The type of package contents. + """Sets the package_type of this ConanPackageUpload. - :param package_type: The package_type of this ConanPackageUpload. + The type of package contents. # noqa: E501 + + :param package_type: The package_type of this ConanPackageUpload. # noqa: E501 :type: str """ @@ -1134,22 +1138,22 @@ def package_type(self, package_type): @property def release(self): - """ - Gets the release of this ConanPackageUpload. - The release of the package version (if any). + """Gets the release of this ConanPackageUpload. # noqa: E501 - :return: The release of this ConanPackageUpload. + The release of the package version (if any). # noqa: E501 + + :return: The release of this ConanPackageUpload. # noqa: E501 :rtype: str """ return self._release @release.setter def release(self, release): - """ - Sets the release of this ConanPackageUpload. - The release of the package version (if any). + """Sets the release of this ConanPackageUpload. - :param release: The release of this ConanPackageUpload. + The release of the package version (if any). # noqa: E501 + + :param release: The release of this ConanPackageUpload. # noqa: E501 :type: str """ @@ -1157,22 +1161,22 @@ def release(self, release): @property def repository(self): - """ - Gets the repository of this ConanPackageUpload. - + """Gets the repository of this ConanPackageUpload. # noqa: E501 + + # noqa: E501 - :return: The repository of this ConanPackageUpload. + :return: The repository of this ConanPackageUpload. # noqa: E501 :rtype: str """ return self._repository @repository.setter def repository(self, repository): - """ - Sets the repository of this ConanPackageUpload. - + """Sets the repository of this ConanPackageUpload. + + # noqa: E501 - :param repository: The repository of this ConanPackageUpload. + :param repository: The repository of this ConanPackageUpload. # noqa: E501 :type: str """ @@ -1180,22 +1184,22 @@ def repository(self, repository): @property def repository_url(self): - """ - Gets the repository_url of this ConanPackageUpload. - + """Gets the repository_url of this ConanPackageUpload. # noqa: E501 + + # noqa: E501 - :return: The repository_url of this ConanPackageUpload. + :return: The repository_url of this ConanPackageUpload. # noqa: E501 :rtype: str """ return self._repository_url @repository_url.setter def repository_url(self, repository_url): - """ - Sets the repository_url of this ConanPackageUpload. - + """Sets the repository_url of this ConanPackageUpload. + + # noqa: E501 - :param repository_url: The repository_url of this ConanPackageUpload. + :param repository_url: The repository_url of this ConanPackageUpload. # noqa: E501 :type: str """ @@ -1203,22 +1207,22 @@ def repository_url(self, repository_url): @property def security_scan_completed_at(self): - """ - Gets the security_scan_completed_at of this ConanPackageUpload. - The datetime the security scanning was completed. + """Gets the security_scan_completed_at of this ConanPackageUpload. # noqa: E501 + + The datetime the security scanning was completed. # noqa: E501 - :return: The security_scan_completed_at of this ConanPackageUpload. + :return: The security_scan_completed_at of this ConanPackageUpload. # noqa: E501 :rtype: str """ return self._security_scan_completed_at @security_scan_completed_at.setter def security_scan_completed_at(self, security_scan_completed_at): - """ - Sets the security_scan_completed_at of this ConanPackageUpload. - The datetime the security scanning was completed. + """Sets the security_scan_completed_at of this ConanPackageUpload. - :param security_scan_completed_at: The security_scan_completed_at of this ConanPackageUpload. + The datetime the security scanning was completed. # noqa: E501 + + :param security_scan_completed_at: The security_scan_completed_at of this ConanPackageUpload. # noqa: E501 :type: str """ @@ -1226,22 +1230,22 @@ def security_scan_completed_at(self, security_scan_completed_at): @property def security_scan_started_at(self): - """ - Gets the security_scan_started_at of this ConanPackageUpload. - The datetime the security scanning was started. + """Gets the security_scan_started_at of this ConanPackageUpload. # noqa: E501 - :return: The security_scan_started_at of this ConanPackageUpload. + The datetime the security scanning was started. # noqa: E501 + + :return: The security_scan_started_at of this ConanPackageUpload. # noqa: E501 :rtype: str """ return self._security_scan_started_at @security_scan_started_at.setter def security_scan_started_at(self, security_scan_started_at): - """ - Sets the security_scan_started_at of this ConanPackageUpload. - The datetime the security scanning was started. + """Sets the security_scan_started_at of this ConanPackageUpload. - :param security_scan_started_at: The security_scan_started_at of this ConanPackageUpload. + The datetime the security scanning was started. # noqa: E501 + + :param security_scan_started_at: The security_scan_started_at of this ConanPackageUpload. # noqa: E501 :type: str """ @@ -1249,22 +1253,22 @@ def security_scan_started_at(self, security_scan_started_at): @property def security_scan_status(self): - """ - Gets the security_scan_status of this ConanPackageUpload. - + """Gets the security_scan_status of this ConanPackageUpload. # noqa: E501 - :return: The security_scan_status of this ConanPackageUpload. + # noqa: E501 + + :return: The security_scan_status of this ConanPackageUpload. # noqa: E501 :rtype: str """ return self._security_scan_status @security_scan_status.setter def security_scan_status(self, security_scan_status): - """ - Sets the security_scan_status of this ConanPackageUpload. - + """Sets the security_scan_status of this ConanPackageUpload. + + # noqa: E501 - :param security_scan_status: The security_scan_status of this ConanPackageUpload. + :param security_scan_status: The security_scan_status of this ConanPackageUpload. # noqa: E501 :type: str """ @@ -1272,22 +1276,22 @@ def security_scan_status(self, security_scan_status): @property def security_scan_status_updated_at(self): - """ - Gets the security_scan_status_updated_at of this ConanPackageUpload. - The datetime the security scanning status was updated. + """Gets the security_scan_status_updated_at of this ConanPackageUpload. # noqa: E501 + + The datetime the security scanning status was updated. # noqa: E501 - :return: The security_scan_status_updated_at of this ConanPackageUpload. + :return: The security_scan_status_updated_at of this ConanPackageUpload. # noqa: E501 :rtype: str """ return self._security_scan_status_updated_at @security_scan_status_updated_at.setter def security_scan_status_updated_at(self, security_scan_status_updated_at): - """ - Sets the security_scan_status_updated_at of this ConanPackageUpload. - The datetime the security scanning status was updated. + """Sets the security_scan_status_updated_at of this ConanPackageUpload. + + The datetime the security scanning status was updated. # noqa: E501 - :param security_scan_status_updated_at: The security_scan_status_updated_at of this ConanPackageUpload. + :param security_scan_status_updated_at: The security_scan_status_updated_at of this ConanPackageUpload. # noqa: E501 :type: str """ @@ -1295,22 +1299,22 @@ def security_scan_status_updated_at(self, security_scan_status_updated_at): @property def self_html_url(self): - """ - Gets the self_html_url of this ConanPackageUpload. - + """Gets the self_html_url of this ConanPackageUpload. # noqa: E501 + + # noqa: E501 - :return: The self_html_url of this ConanPackageUpload. + :return: The self_html_url of this ConanPackageUpload. # noqa: E501 :rtype: str """ return self._self_html_url @self_html_url.setter def self_html_url(self, self_html_url): - """ - Sets the self_html_url of this ConanPackageUpload. - + """Sets the self_html_url of this ConanPackageUpload. + + # noqa: E501 - :param self_html_url: The self_html_url of this ConanPackageUpload. + :param self_html_url: The self_html_url of this ConanPackageUpload. # noqa: E501 :type: str """ @@ -1318,22 +1322,22 @@ def self_html_url(self, self_html_url): @property def self_url(self): - """ - Gets the self_url of this ConanPackageUpload. - + """Gets the self_url of this ConanPackageUpload. # noqa: E501 - :return: The self_url of this ConanPackageUpload. + # noqa: E501 + + :return: The self_url of this ConanPackageUpload. # noqa: E501 :rtype: str """ return self._self_url @self_url.setter def self_url(self, self_url): - """ - Sets the self_url of this ConanPackageUpload. - + """Sets the self_url of this ConanPackageUpload. - :param self_url: The self_url of this ConanPackageUpload. + # noqa: E501 + + :param self_url: The self_url of this ConanPackageUpload. # noqa: E501 :type: str """ @@ -1341,22 +1345,22 @@ def self_url(self, self_url): @property def signature_url(self): - """ - Gets the signature_url of this ConanPackageUpload. - + """Gets the signature_url of this ConanPackageUpload. # noqa: E501 - :return: The signature_url of this ConanPackageUpload. + # noqa: E501 + + :return: The signature_url of this ConanPackageUpload. # noqa: E501 :rtype: str """ return self._signature_url @signature_url.setter def signature_url(self, signature_url): - """ - Sets the signature_url of this ConanPackageUpload. - + """Sets the signature_url of this ConanPackageUpload. - :param signature_url: The signature_url of this ConanPackageUpload. + # noqa: E501 + + :param signature_url: The signature_url of this ConanPackageUpload. # noqa: E501 :type: str """ @@ -1364,22 +1368,22 @@ def signature_url(self, signature_url): @property def size(self): - """ - Gets the size of this ConanPackageUpload. - The calculated size of the package. + """Gets the size of this ConanPackageUpload. # noqa: E501 + + The calculated size of the package. # noqa: E501 - :return: The size of this ConanPackageUpload. + :return: The size of this ConanPackageUpload. # noqa: E501 :rtype: int """ return self._size @size.setter def size(self, size): - """ - Sets the size of this ConanPackageUpload. - The calculated size of the package. + """Sets the size of this ConanPackageUpload. + + The calculated size of the package. # noqa: E501 - :param size: The size of this ConanPackageUpload. + :param size: The size of this ConanPackageUpload. # noqa: E501 :type: int """ @@ -1387,22 +1391,22 @@ def size(self, size): @property def slug(self): - """ - Gets the slug of this ConanPackageUpload. - The public unique identifier for the package. + """Gets the slug of this ConanPackageUpload. # noqa: E501 + + The public unique identifier for the package. # noqa: E501 - :return: The slug of this ConanPackageUpload. + :return: The slug of this ConanPackageUpload. # noqa: E501 :rtype: str """ return self._slug @slug.setter def slug(self, slug): - """ - Sets the slug of this ConanPackageUpload. - The public unique identifier for the package. + """Sets the slug of this ConanPackageUpload. + + The public unique identifier for the package. # noqa: E501 - :param slug: The slug of this ConanPackageUpload. + :param slug: The slug of this ConanPackageUpload. # noqa: E501 :type: str """ @@ -1410,22 +1414,22 @@ def slug(self, slug): @property def slug_perm(self): - """ - Gets the slug_perm of this ConanPackageUpload. - + """Gets the slug_perm of this ConanPackageUpload. # noqa: E501 + + # noqa: E501 - :return: The slug_perm of this ConanPackageUpload. + :return: The slug_perm of this ConanPackageUpload. # noqa: E501 :rtype: str """ return self._slug_perm @slug_perm.setter def slug_perm(self, slug_perm): - """ - Sets the slug_perm of this ConanPackageUpload. - + """Sets the slug_perm of this ConanPackageUpload. - :param slug_perm: The slug_perm of this ConanPackageUpload. + # noqa: E501 + + :param slug_perm: The slug_perm of this ConanPackageUpload. # noqa: E501 :type: str """ @@ -1433,22 +1437,22 @@ def slug_perm(self, slug_perm): @property def stage(self): - """ - Gets the stage of this ConanPackageUpload. - The synchronisation (in progress) stage of the package. + """Gets the stage of this ConanPackageUpload. # noqa: E501 - :return: The stage of this ConanPackageUpload. + The synchronisation (in progress) stage of the package. # noqa: E501 + + :return: The stage of this ConanPackageUpload. # noqa: E501 :rtype: str """ return self._stage @stage.setter def stage(self, stage): - """ - Sets the stage of this ConanPackageUpload. - The synchronisation (in progress) stage of the package. + """Sets the stage of this ConanPackageUpload. - :param stage: The stage of this ConanPackageUpload. + The synchronisation (in progress) stage of the package. # noqa: E501 + + :param stage: The stage of this ConanPackageUpload. # noqa: E501 :type: str """ @@ -1456,22 +1460,22 @@ def stage(self, stage): @property def stage_str(self): - """ - Gets the stage_str of this ConanPackageUpload. - + """Gets the stage_str of this ConanPackageUpload. # noqa: E501 - :return: The stage_str of this ConanPackageUpload. + # noqa: E501 + + :return: The stage_str of this ConanPackageUpload. # noqa: E501 :rtype: str """ return self._stage_str @stage_str.setter def stage_str(self, stage_str): - """ - Sets the stage_str of this ConanPackageUpload. - + """Sets the stage_str of this ConanPackageUpload. + + # noqa: E501 - :param stage_str: The stage_str of this ConanPackageUpload. + :param stage_str: The stage_str of this ConanPackageUpload. # noqa: E501 :type: str """ @@ -1479,22 +1483,22 @@ def stage_str(self, stage_str): @property def stage_updated_at(self): - """ - Gets the stage_updated_at of this ConanPackageUpload. - The datetime the package stage was updated at. + """Gets the stage_updated_at of this ConanPackageUpload. # noqa: E501 + + The datetime the package stage was updated at. # noqa: E501 - :return: The stage_updated_at of this ConanPackageUpload. + :return: The stage_updated_at of this ConanPackageUpload. # noqa: E501 :rtype: str """ return self._stage_updated_at @stage_updated_at.setter def stage_updated_at(self, stage_updated_at): - """ - Sets the stage_updated_at of this ConanPackageUpload. - The datetime the package stage was updated at. + """Sets the stage_updated_at of this ConanPackageUpload. + + The datetime the package stage was updated at. # noqa: E501 - :param stage_updated_at: The stage_updated_at of this ConanPackageUpload. + :param stage_updated_at: The stage_updated_at of this ConanPackageUpload. # noqa: E501 :type: str """ @@ -1502,22 +1506,22 @@ def stage_updated_at(self, stage_updated_at): @property def status(self): - """ - Gets the status of this ConanPackageUpload. - The synchronisation status of the package. + """Gets the status of this ConanPackageUpload. # noqa: E501 + + The synchronisation status of the package. # noqa: E501 - :return: The status of this ConanPackageUpload. + :return: The status of this ConanPackageUpload. # noqa: E501 :rtype: str """ return self._status @status.setter def status(self, status): - """ - Sets the status of this ConanPackageUpload. - The synchronisation status of the package. + """Sets the status of this ConanPackageUpload. + + The synchronisation status of the package. # noqa: E501 - :param status: The status of this ConanPackageUpload. + :param status: The status of this ConanPackageUpload. # noqa: E501 :type: str """ @@ -1525,22 +1529,22 @@ def status(self, status): @property def status_reason(self): - """ - Gets the status_reason of this ConanPackageUpload. - A textual description for the synchronous status reason (if any + """Gets the status_reason of this ConanPackageUpload. # noqa: E501 + + A textual description for the synchronous status reason (if any # noqa: E501 - :return: The status_reason of this ConanPackageUpload. + :return: The status_reason of this ConanPackageUpload. # noqa: E501 :rtype: str """ return self._status_reason @status_reason.setter def status_reason(self, status_reason): - """ - Sets the status_reason of this ConanPackageUpload. - A textual description for the synchronous status reason (if any + """Sets the status_reason of this ConanPackageUpload. + + A textual description for the synchronous status reason (if any # noqa: E501 - :param status_reason: The status_reason of this ConanPackageUpload. + :param status_reason: The status_reason of this ConanPackageUpload. # noqa: E501 :type: str """ @@ -1548,22 +1552,22 @@ def status_reason(self, status_reason): @property def status_str(self): - """ - Gets the status_str of this ConanPackageUpload. - + """Gets the status_str of this ConanPackageUpload. # noqa: E501 + + # noqa: E501 - :return: The status_str of this ConanPackageUpload. + :return: The status_str of this ConanPackageUpload. # noqa: E501 :rtype: str """ return self._status_str @status_str.setter def status_str(self, status_str): - """ - Sets the status_str of this ConanPackageUpload. - + """Sets the status_str of this ConanPackageUpload. + + # noqa: E501 - :param status_str: The status_str of this ConanPackageUpload. + :param status_str: The status_str of this ConanPackageUpload. # noqa: E501 :type: str """ @@ -1571,22 +1575,22 @@ def status_str(self, status_str): @property def status_updated_at(self): - """ - Gets the status_updated_at of this ConanPackageUpload. - The datetime the package status was updated at. + """Gets the status_updated_at of this ConanPackageUpload. # noqa: E501 - :return: The status_updated_at of this ConanPackageUpload. + The datetime the package status was updated at. # noqa: E501 + + :return: The status_updated_at of this ConanPackageUpload. # noqa: E501 :rtype: str """ return self._status_updated_at @status_updated_at.setter def status_updated_at(self, status_updated_at): - """ - Sets the status_updated_at of this ConanPackageUpload. - The datetime the package status was updated at. + """Sets the status_updated_at of this ConanPackageUpload. - :param status_updated_at: The status_updated_at of this ConanPackageUpload. + The datetime the package status was updated at. # noqa: E501 + + :param status_updated_at: The status_updated_at of this ConanPackageUpload. # noqa: E501 :type: str """ @@ -1594,22 +1598,22 @@ def status_updated_at(self, status_updated_at): @property def status_url(self): - """ - Gets the status_url of this ConanPackageUpload. - + """Gets the status_url of this ConanPackageUpload. # noqa: E501 - :return: The status_url of this ConanPackageUpload. + # noqa: E501 + + :return: The status_url of this ConanPackageUpload. # noqa: E501 :rtype: str """ return self._status_url @status_url.setter def status_url(self, status_url): - """ - Sets the status_url of this ConanPackageUpload. - + """Sets the status_url of this ConanPackageUpload. - :param status_url: The status_url of this ConanPackageUpload. + # noqa: E501 + + :param status_url: The status_url of this ConanPackageUpload. # noqa: E501 :type: str """ @@ -1617,22 +1621,22 @@ def status_url(self, status_url): @property def subtype(self): - """ - Gets the subtype of this ConanPackageUpload. - + """Gets the subtype of this ConanPackageUpload. # noqa: E501 + + # noqa: E501 - :return: The subtype of this ConanPackageUpload. + :return: The subtype of this ConanPackageUpload. # noqa: E501 :rtype: str """ return self._subtype @subtype.setter def subtype(self, subtype): - """ - Sets the subtype of this ConanPackageUpload. - + """Sets the subtype of this ConanPackageUpload. + + # noqa: E501 - :param subtype: The subtype of this ConanPackageUpload. + :param subtype: The subtype of this ConanPackageUpload. # noqa: E501 :type: str """ @@ -1640,22 +1644,22 @@ def subtype(self, subtype): @property def summary(self): - """ - Gets the summary of this ConanPackageUpload. - A one-liner synopsis of this package. + """Gets the summary of this ConanPackageUpload. # noqa: E501 + + A one-liner synopsis of this package. # noqa: E501 - :return: The summary of this ConanPackageUpload. + :return: The summary of this ConanPackageUpload. # noqa: E501 :rtype: str """ return self._summary @summary.setter def summary(self, summary): - """ - Sets the summary of this ConanPackageUpload. - A one-liner synopsis of this package. + """Sets the summary of this ConanPackageUpload. + + A one-liner synopsis of this package. # noqa: E501 - :param summary: The summary of this ConanPackageUpload. + :param summary: The summary of this ConanPackageUpload. # noqa: E501 :type: str """ @@ -1663,22 +1667,22 @@ def summary(self, summary): @property def sync_finished_at(self): - """ - Gets the sync_finished_at of this ConanPackageUpload. - The datetime the package sync was finished at. + """Gets the sync_finished_at of this ConanPackageUpload. # noqa: E501 + + The datetime the package sync was finished at. # noqa: E501 - :return: The sync_finished_at of this ConanPackageUpload. + :return: The sync_finished_at of this ConanPackageUpload. # noqa: E501 :rtype: str """ return self._sync_finished_at @sync_finished_at.setter def sync_finished_at(self, sync_finished_at): - """ - Sets the sync_finished_at of this ConanPackageUpload. - The datetime the package sync was finished at. + """Sets the sync_finished_at of this ConanPackageUpload. - :param sync_finished_at: The sync_finished_at of this ConanPackageUpload. + The datetime the package sync was finished at. # noqa: E501 + + :param sync_finished_at: The sync_finished_at of this ConanPackageUpload. # noqa: E501 :type: str """ @@ -1686,22 +1690,22 @@ def sync_finished_at(self, sync_finished_at): @property def sync_progress(self): - """ - Gets the sync_progress of this ConanPackageUpload. - Synchronisation progress (from 0-100) + """Gets the sync_progress of this ConanPackageUpload. # noqa: E501 - :return: The sync_progress of this ConanPackageUpload. + Synchronisation progress (from 0-100) # noqa: E501 + + :return: The sync_progress of this ConanPackageUpload. # noqa: E501 :rtype: int """ return self._sync_progress @sync_progress.setter def sync_progress(self, sync_progress): - """ - Sets the sync_progress of this ConanPackageUpload. - Synchronisation progress (from 0-100) + """Sets the sync_progress of this ConanPackageUpload. - :param sync_progress: The sync_progress of this ConanPackageUpload. + Synchronisation progress (from 0-100) # noqa: E501 + + :param sync_progress: The sync_progress of this ConanPackageUpload. # noqa: E501 :type: int """ @@ -1709,22 +1713,22 @@ def sync_progress(self, sync_progress): @property def tags_immutable(self): - """ - Gets the tags_immutable of this ConanPackageUpload. - All immutable tags on the package, grouped by tag type. Immutable tags cannot be (easily) deleted. + """Gets the tags_immutable of this ConanPackageUpload. # noqa: E501 - :return: The tags_immutable of this ConanPackageUpload. + All immutable tags on the package, grouped by tag type. Immutable tags cannot be (easily) deleted. # noqa: E501 + + :return: The tags_immutable of this ConanPackageUpload. # noqa: E501 :rtype: object """ return self._tags_immutable @tags_immutable.setter def tags_immutable(self, tags_immutable): - """ - Sets the tags_immutable of this ConanPackageUpload. - All immutable tags on the package, grouped by tag type. Immutable tags cannot be (easily) deleted. + """Sets the tags_immutable of this ConanPackageUpload. - :param tags_immutable: The tags_immutable of this ConanPackageUpload. + All immutable tags on the package, grouped by tag type. Immutable tags cannot be (easily) deleted. # noqa: E501 + + :param tags_immutable: The tags_immutable of this ConanPackageUpload. # noqa: E501 :type: object """ @@ -1732,22 +1736,22 @@ def tags_immutable(self, tags_immutable): @property def type_display(self): - """ - Gets the type_display of this ConanPackageUpload. - + """Gets the type_display of this ConanPackageUpload. # noqa: E501 - :return: The type_display of this ConanPackageUpload. + # noqa: E501 + + :return: The type_display of this ConanPackageUpload. # noqa: E501 :rtype: str """ return self._type_display @type_display.setter def type_display(self, type_display): - """ - Sets the type_display of this ConanPackageUpload. - + """Sets the type_display of this ConanPackageUpload. - :param type_display: The type_display of this ConanPackageUpload. + # noqa: E501 + + :param type_display: The type_display of this ConanPackageUpload. # noqa: E501 :type: str """ @@ -1755,22 +1759,22 @@ def type_display(self, type_display): @property def uploaded_at(self): - """ - Gets the uploaded_at of this ConanPackageUpload. - The date this package was uploaded. + """Gets the uploaded_at of this ConanPackageUpload. # noqa: E501 - :return: The uploaded_at of this ConanPackageUpload. + The date this package was uploaded. # noqa: E501 + + :return: The uploaded_at of this ConanPackageUpload. # noqa: E501 :rtype: str """ return self._uploaded_at @uploaded_at.setter def uploaded_at(self, uploaded_at): - """ - Sets the uploaded_at of this ConanPackageUpload. - The date this package was uploaded. + """Sets the uploaded_at of this ConanPackageUpload. + + The date this package was uploaded. # noqa: E501 - :param uploaded_at: The uploaded_at of this ConanPackageUpload. + :param uploaded_at: The uploaded_at of this ConanPackageUpload. # noqa: E501 :type: str """ @@ -1778,22 +1782,22 @@ def uploaded_at(self, uploaded_at): @property def uploader(self): - """ - Gets the uploader of this ConanPackageUpload. - + """Gets the uploader of this ConanPackageUpload. # noqa: E501 + + # noqa: E501 - :return: The uploader of this ConanPackageUpload. + :return: The uploader of this ConanPackageUpload. # noqa: E501 :rtype: str """ return self._uploader @uploader.setter def uploader(self, uploader): - """ - Sets the uploader of this ConanPackageUpload. - + """Sets the uploader of this ConanPackageUpload. + + # noqa: E501 - :param uploader: The uploader of this ConanPackageUpload. + :param uploader: The uploader of this ConanPackageUpload. # noqa: E501 :type: str """ @@ -1801,22 +1805,22 @@ def uploader(self, uploader): @property def uploader_url(self): - """ - Gets the uploader_url of this ConanPackageUpload. - + """Gets the uploader_url of this ConanPackageUpload. # noqa: E501 + + # noqa: E501 - :return: The uploader_url of this ConanPackageUpload. + :return: The uploader_url of this ConanPackageUpload. # noqa: E501 :rtype: str """ return self._uploader_url @uploader_url.setter def uploader_url(self, uploader_url): - """ - Sets the uploader_url of this ConanPackageUpload. - + """Sets the uploader_url of this ConanPackageUpload. + + # noqa: E501 - :param uploader_url: The uploader_url of this ConanPackageUpload. + :param uploader_url: The uploader_url of this ConanPackageUpload. # noqa: E501 :type: str """ @@ -1824,22 +1828,22 @@ def uploader_url(self, uploader_url): @property def version(self): - """ - Gets the version of this ConanPackageUpload. - The raw version for this package. + """Gets the version of this ConanPackageUpload. # noqa: E501 - :return: The version of this ConanPackageUpload. + The raw version for this package. # noqa: E501 + + :return: The version of this ConanPackageUpload. # noqa: E501 :rtype: str """ return self._version @version.setter def version(self, version): - """ - Sets the version of this ConanPackageUpload. - The raw version for this package. + """Sets the version of this ConanPackageUpload. - :param version: The version of this ConanPackageUpload. + The raw version for this package. # noqa: E501 + + :param version: The version of this ConanPackageUpload. # noqa: E501 :type: str """ @@ -1847,22 +1851,22 @@ def version(self, version): @property def version_orig(self): - """ - Gets the version_orig of this ConanPackageUpload. - + """Gets the version_orig of this ConanPackageUpload. # noqa: E501 - :return: The version_orig of this ConanPackageUpload. + # noqa: E501 + + :return: The version_orig of this ConanPackageUpload. # noqa: E501 :rtype: str """ return self._version_orig @version_orig.setter def version_orig(self, version_orig): - """ - Sets the version_orig of this ConanPackageUpload. - + """Sets the version_orig of this ConanPackageUpload. - :param version_orig: The version_orig of this ConanPackageUpload. + # noqa: E501 + + :param version_orig: The version_orig of this ConanPackageUpload. # noqa: E501 :type: str """ @@ -1870,34 +1874,32 @@ def version_orig(self, version_orig): @property def vulnerability_scan_results_url(self): - """ - Gets the vulnerability_scan_results_url of this ConanPackageUpload. - + """Gets the vulnerability_scan_results_url of this ConanPackageUpload. # noqa: E501 + + # noqa: E501 - :return: The vulnerability_scan_results_url of this ConanPackageUpload. + :return: The vulnerability_scan_results_url of this ConanPackageUpload. # noqa: E501 :rtype: str """ return self._vulnerability_scan_results_url @vulnerability_scan_results_url.setter def vulnerability_scan_results_url(self, vulnerability_scan_results_url): - """ - Sets the vulnerability_scan_results_url of this ConanPackageUpload. - + """Sets the vulnerability_scan_results_url of this ConanPackageUpload. + + # noqa: E501 - :param vulnerability_scan_results_url: The vulnerability_scan_results_url of this ConanPackageUpload. + :param vulnerability_scan_results_url: The vulnerability_scan_results_url of this ConanPackageUpload. # noqa: E501 :type: str """ self._vulnerability_scan_results_url = vulnerability_scan_results_url def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -1914,32 +1916,30 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(ConanPackageUpload, dict): + for key, value in self.items(): + result[key] = value return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, ConanPackageUpload): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other + """Returns true if both objects are not equal""" + if not isinstance(other, ConanPackageUpload): + return True + + return self.to_dict() != other.to_dict() diff --git a/bindings/python/src/cloudsmith_api/models/distribution.py b/bindings/python/src/cloudsmith_api/models/distribution.py index 8e3cbdd4..193283b3 100644 --- a/bindings/python/src/cloudsmith_api/models/distribution.py +++ b/bindings/python/src/cloudsmith_api/models/distribution.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -11,18 +11,20 @@ """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration class Distribution(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -50,10 +52,11 @@ class Distribution(object): 'versions': 'versions' } - def __init__(self, format=None, format_url=None, name=None, self_url=None, slug=None, variants=None, versions=None): - """ - Distribution - a model defined in Swagger - """ + def __init__(self, format=None, format_url=None, name=None, self_url=None, slug=None, variants=None, versions=None, _configuration=None): # noqa: E501 + """Distribution - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._format = None self._format_url = None @@ -62,39 +65,40 @@ def __init__(self, format=None, format_url=None, name=None, self_url=None, slug= self._slug = None self._variants = None self._versions = None + self.discriminator = None if format is not None: - self.format = format + self.format = format if format_url is not None: - self.format_url = format_url + self.format_url = format_url self.name = name if self_url is not None: - self.self_url = self_url + self.self_url = self_url if slug is not None: - self.slug = slug + self.slug = slug if variants is not None: - self.variants = variants + self.variants = variants if versions is not None: - self.versions = versions + self.versions = versions @property def format(self): - """ - Gets the format of this Distribution. - + """Gets the format of this Distribution. # noqa: E501 + + # noqa: E501 - :return: The format of this Distribution. + :return: The format of this Distribution. # noqa: E501 :rtype: str """ return self._format @format.setter def format(self, format): - """ - Sets the format of this Distribution. - + """Sets the format of this Distribution. + + # noqa: E501 - :param format: The format of this Distribution. + :param format: The format of this Distribution. # noqa: E501 :type: str """ @@ -102,22 +106,22 @@ def format(self, format): @property def format_url(self): - """ - Gets the format_url of this Distribution. - + """Gets the format_url of this Distribution. # noqa: E501 - :return: The format_url of this Distribution. + # noqa: E501 + + :return: The format_url of this Distribution. # noqa: E501 :rtype: str """ return self._format_url @format_url.setter def format_url(self, format_url): - """ - Sets the format_url of this Distribution. - + """Sets the format_url of this Distribution. + + # noqa: E501 - :param format_url: The format_url of this Distribution. + :param format_url: The format_url of this Distribution. # noqa: E501 :type: str """ @@ -125,47 +129,47 @@ def format_url(self, format_url): @property def name(self): - """ - Gets the name of this Distribution. - + """Gets the name of this Distribution. # noqa: E501 + + # noqa: E501 - :return: The name of this Distribution. + :return: The name of this Distribution. # noqa: E501 :rtype: str """ return self._name @name.setter def name(self, name): - """ - Sets the name of this Distribution. - + """Sets the name of this Distribution. - :param name: The name of this Distribution. + # noqa: E501 + + :param name: The name of this Distribution. # noqa: E501 :type: str """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") + if self._configuration.client_side_validation and name is None: + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 self._name = name @property def self_url(self): - """ - Gets the self_url of this Distribution. - + """Gets the self_url of this Distribution. # noqa: E501 + + # noqa: E501 - :return: The self_url of this Distribution. + :return: The self_url of this Distribution. # noqa: E501 :rtype: str """ return self._self_url @self_url.setter def self_url(self, self_url): - """ - Sets the self_url of this Distribution. - + """Sets the self_url of this Distribution. + + # noqa: E501 - :param self_url: The self_url of this Distribution. + :param self_url: The self_url of this Distribution. # noqa: E501 :type: str """ @@ -173,22 +177,22 @@ def self_url(self, self_url): @property def slug(self): - """ - Gets the slug of this Distribution. - The slug identifier for this distribution + """Gets the slug of this Distribution. # noqa: E501 - :return: The slug of this Distribution. + The slug identifier for this distribution # noqa: E501 + + :return: The slug of this Distribution. # noqa: E501 :rtype: str """ return self._slug @slug.setter def slug(self, slug): - """ - Sets the slug of this Distribution. - The slug identifier for this distribution + """Sets the slug of this Distribution. + + The slug identifier for this distribution # noqa: E501 - :param slug: The slug of this Distribution. + :param slug: The slug of this Distribution. # noqa: E501 :type: str """ @@ -196,22 +200,22 @@ def slug(self, slug): @property def variants(self): - """ - Gets the variants of this Distribution. - + """Gets the variants of this Distribution. # noqa: E501 + + # noqa: E501 - :return: The variants of this Distribution. + :return: The variants of this Distribution. # noqa: E501 :rtype: str """ return self._variants @variants.setter def variants(self, variants): - """ - Sets the variants of this Distribution. - + """Sets the variants of this Distribution. - :param variants: The variants of this Distribution. + # noqa: E501 + + :param variants: The variants of this Distribution. # noqa: E501 :type: str """ @@ -219,34 +223,32 @@ def variants(self, variants): @property def versions(self): - """ - Gets the versions of this Distribution. - A list of the versions for this distribution + """Gets the versions of this Distribution. # noqa: E501 + + A list of the versions for this distribution # noqa: E501 - :return: The versions of this Distribution. + :return: The versions of this Distribution. # noqa: E501 :rtype: list[DistrosVersions] """ return self._versions @versions.setter def versions(self, versions): - """ - Sets the versions of this Distribution. - A list of the versions for this distribution + """Sets the versions of this Distribution. + + A list of the versions for this distribution # noqa: E501 - :param versions: The versions of this Distribution. + :param versions: The versions of this Distribution. # noqa: E501 :type: list[DistrosVersions] """ self._versions = versions def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -263,32 +265,30 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(Distribution, dict): + for key, value in self.items(): + result[key] = value return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, Distribution): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other + """Returns true if both objects are not equal""" + if not isinstance(other, Distribution): + return True + + return self.to_dict() != other.to_dict() diff --git a/bindings/python/src/cloudsmith_api/models/distros_versions.py b/bindings/python/src/cloudsmith_api/models/distros_versions.py index 45eee6de..ab659d76 100644 --- a/bindings/python/src/cloudsmith_api/models/distros_versions.py +++ b/bindings/python/src/cloudsmith_api/models/distros_versions.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -11,18 +11,20 @@ """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration class DistrosVersions(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -40,37 +42,39 @@ class DistrosVersions(object): 'slug': 'slug' } - def __init__(self, name=None, slug=None): - """ - DistrosVersions - a model defined in Swagger - """ + def __init__(self, name=None, slug=None, _configuration=None): # noqa: E501 + """DistrosVersions - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._name = None self._slug = None + self.discriminator = None if name is not None: - self.name = name + self.name = name if slug is not None: - self.slug = slug + self.slug = slug @property def name(self): - """ - Gets the name of this DistrosVersions. - The textual name for this version. + """Gets the name of this DistrosVersions. # noqa: E501 + + The textual name for this version. # noqa: E501 - :return: The name of this DistrosVersions. + :return: The name of this DistrosVersions. # noqa: E501 :rtype: str """ return self._name @name.setter def name(self, name): - """ - Sets the name of this DistrosVersions. - The textual name for this version. + """Sets the name of this DistrosVersions. + + The textual name for this version. # noqa: E501 - :param name: The name of this DistrosVersions. + :param name: The name of this DistrosVersions. # noqa: E501 :type: str """ @@ -78,34 +82,32 @@ def name(self, name): @property def slug(self): - """ - Gets the slug of this DistrosVersions. - The slug identifier for this version + """Gets the slug of this DistrosVersions. # noqa: E501 + + The slug identifier for this version # noqa: E501 - :return: The slug of this DistrosVersions. + :return: The slug of this DistrosVersions. # noqa: E501 :rtype: str """ return self._slug @slug.setter def slug(self, slug): - """ - Sets the slug of this DistrosVersions. - The slug identifier for this version + """Sets the slug of this DistrosVersions. - :param slug: The slug of this DistrosVersions. + The slug identifier for this version # noqa: E501 + + :param slug: The slug of this DistrosVersions. # noqa: E501 :type: str """ self._slug = slug def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -122,32 +124,30 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(DistrosVersions, dict): + for key, value in self.items(): + result[key] = value return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, DistrosVersions): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other + """Returns true if both objects are not equal""" + if not isinstance(other, DistrosVersions): + return True + + return self.to_dict() != other.to_dict() diff --git a/bindings/python/src/cloudsmith_api/models/entitlement_usage_metrics.py b/bindings/python/src/cloudsmith_api/models/entitlement_usage_metrics.py index 8cd78bda..a2dfe83a 100644 --- a/bindings/python/src/cloudsmith_api/models/entitlement_usage_metrics.py +++ b/bindings/python/src/cloudsmith_api/models/entitlement_usage_metrics.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -11,18 +11,20 @@ """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration class EntitlementUsageMetrics(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -38,47 +40,47 @@ class EntitlementUsageMetrics(object): 'tokens': 'tokens' } - def __init__(self, tokens=None): - """ - EntitlementUsageMetrics - a model defined in Swagger - """ + def __init__(self, tokens=None, _configuration=None): # noqa: E501 + """EntitlementUsageMetrics - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._tokens = None + self.discriminator = None self.tokens = tokens @property def tokens(self): - """ - Gets the tokens of this EntitlementUsageMetrics. - + """Gets the tokens of this EntitlementUsageMetrics. # noqa: E501 + + # noqa: E501 - :return: The tokens of this EntitlementUsageMetrics. + :return: The tokens of this EntitlementUsageMetrics. # noqa: E501 :rtype: object """ return self._tokens @tokens.setter def tokens(self, tokens): - """ - Sets the tokens of this EntitlementUsageMetrics. - + """Sets the tokens of this EntitlementUsageMetrics. + + # noqa: E501 - :param tokens: The tokens of this EntitlementUsageMetrics. + :param tokens: The tokens of this EntitlementUsageMetrics. # noqa: E501 :type: object """ - if tokens is None: - raise ValueError("Invalid value for `tokens`, must not be `None`") + if self._configuration.client_side_validation and tokens is None: + raise ValueError("Invalid value for `tokens`, must not be `None`") # noqa: E501 self._tokens = tokens def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -95,32 +97,30 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(EntitlementUsageMetrics, dict): + for key, value in self.items(): + result[key] = value return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, EntitlementUsageMetrics): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other + """Returns true if both objects are not equal""" + if not isinstance(other, EntitlementUsageMetrics): + return True + + return self.to_dict() != other.to_dict() diff --git a/bindings/python/src/cloudsmith_api/models/entitlements_create.py b/bindings/python/src/cloudsmith_api/models/entitlements_create.py index 7337daf0..9d2b7485 100644 --- a/bindings/python/src/cloudsmith_api/models/entitlements_create.py +++ b/bindings/python/src/cloudsmith_api/models/entitlements_create.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -11,18 +11,20 @@ """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration class EntitlementsCreate(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -66,10 +68,11 @@ class EntitlementsCreate(object): 'token': 'token' } - def __init__(self, eula_required=None, is_active=None, limit_bandwidth=None, limit_bandwidth_unit=None, limit_date_range_from=None, limit_date_range_to=None, limit_num_clients=None, limit_num_downloads=None, limit_package_query=None, limit_path_query=None, metadata=None, name=None, scheduled_reset_at=None, scheduled_reset_period=None, token=None): - """ - EntitlementsCreate - a model defined in Swagger - """ + def __init__(self, eula_required=None, is_active=None, limit_bandwidth=None, limit_bandwidth_unit=None, limit_date_range_from=None, limit_date_range_to=None, limit_num_clients=None, limit_num_downloads=None, limit_package_query=None, limit_path_query=None, metadata=None, name=None, scheduled_reset_at=None, scheduled_reset_period=None, token=None, _configuration=None): # noqa: E501 + """EntitlementsCreate - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._eula_required = None self._is_active = None @@ -86,55 +89,56 @@ def __init__(self, eula_required=None, is_active=None, limit_bandwidth=None, lim self._scheduled_reset_at = None self._scheduled_reset_period = None self._token = None + self.discriminator = None if eula_required is not None: - self.eula_required = eula_required + self.eula_required = eula_required if is_active is not None: - self.is_active = is_active + self.is_active = is_active if limit_bandwidth is not None: - self.limit_bandwidth = limit_bandwidth + self.limit_bandwidth = limit_bandwidth if limit_bandwidth_unit is not None: - self.limit_bandwidth_unit = limit_bandwidth_unit + self.limit_bandwidth_unit = limit_bandwidth_unit if limit_date_range_from is not None: - self.limit_date_range_from = limit_date_range_from + self.limit_date_range_from = limit_date_range_from if limit_date_range_to is not None: - self.limit_date_range_to = limit_date_range_to + self.limit_date_range_to = limit_date_range_to if limit_num_clients is not None: - self.limit_num_clients = limit_num_clients + self.limit_num_clients = limit_num_clients if limit_num_downloads is not None: - self.limit_num_downloads = limit_num_downloads + self.limit_num_downloads = limit_num_downloads if limit_package_query is not None: - self.limit_package_query = limit_package_query + self.limit_package_query = limit_package_query if limit_path_query is not None: - self.limit_path_query = limit_path_query + self.limit_path_query = limit_path_query if metadata is not None: - self.metadata = metadata + self.metadata = metadata self.name = name if scheduled_reset_at is not None: - self.scheduled_reset_at = scheduled_reset_at + self.scheduled_reset_at = scheduled_reset_at if scheduled_reset_period is not None: - self.scheduled_reset_period = scheduled_reset_period + self.scheduled_reset_period = scheduled_reset_period if token is not None: - self.token = token + self.token = token @property def eula_required(self): - """ - Gets the eula_required of this EntitlementsCreate. - If checked, a EULA acceptance is required for this token. + """Gets the eula_required of this EntitlementsCreate. # noqa: E501 - :return: The eula_required of this EntitlementsCreate. + If checked, a EULA acceptance is required for this token. # noqa: E501 + + :return: The eula_required of this EntitlementsCreate. # noqa: E501 :rtype: bool """ return self._eula_required @eula_required.setter def eula_required(self, eula_required): - """ - Sets the eula_required of this EntitlementsCreate. - If checked, a EULA acceptance is required for this token. + """Sets the eula_required of this EntitlementsCreate. - :param eula_required: The eula_required of this EntitlementsCreate. + If checked, a EULA acceptance is required for this token. # noqa: E501 + + :param eula_required: The eula_required of this EntitlementsCreate. # noqa: E501 :type: bool """ @@ -142,22 +146,22 @@ def eula_required(self, eula_required): @property def is_active(self): - """ - Gets the is_active of this EntitlementsCreate. - If enabled, the token will allow downloads based on configured restrictions (if any). + """Gets the is_active of this EntitlementsCreate. # noqa: E501 + + If enabled, the token will allow downloads based on configured restrictions (if any). # noqa: E501 - :return: The is_active of this EntitlementsCreate. + :return: The is_active of this EntitlementsCreate. # noqa: E501 :rtype: bool """ return self._is_active @is_active.setter def is_active(self, is_active): - """ - Sets the is_active of this EntitlementsCreate. - If enabled, the token will allow downloads based on configured restrictions (if any). + """Sets the is_active of this EntitlementsCreate. + + If enabled, the token will allow downloads based on configured restrictions (if any). # noqa: E501 - :param is_active: The is_active of this EntitlementsCreate. + :param is_active: The is_active of this EntitlementsCreate. # noqa: E501 :type: bool """ @@ -165,22 +169,22 @@ def is_active(self, is_active): @property def limit_bandwidth(self): - """ - Gets the limit_bandwidth of this EntitlementsCreate. - The maximum download bandwidth allowed for the token. Values are expressed as the selected unit of bandwidth. Please note that since downloads are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point. + """Gets the limit_bandwidth of this EntitlementsCreate. # noqa: E501 + + The maximum download bandwidth allowed for the token. Values are expressed as the selected unit of bandwidth. Please note that since downloads are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point. # noqa: E501 - :return: The limit_bandwidth of this EntitlementsCreate. + :return: The limit_bandwidth of this EntitlementsCreate. # noqa: E501 :rtype: int """ return self._limit_bandwidth @limit_bandwidth.setter def limit_bandwidth(self, limit_bandwidth): - """ - Sets the limit_bandwidth of this EntitlementsCreate. - The maximum download bandwidth allowed for the token. Values are expressed as the selected unit of bandwidth. Please note that since downloads are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point. + """Sets the limit_bandwidth of this EntitlementsCreate. - :param limit_bandwidth: The limit_bandwidth of this EntitlementsCreate. + The maximum download bandwidth allowed for the token. Values are expressed as the selected unit of bandwidth. Please note that since downloads are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point. # noqa: E501 + + :param limit_bandwidth: The limit_bandwidth of this EntitlementsCreate. # noqa: E501 :type: int """ @@ -188,22 +192,22 @@ def limit_bandwidth(self, limit_bandwidth): @property def limit_bandwidth_unit(self): - """ - Gets the limit_bandwidth_unit of this EntitlementsCreate. - None + """Gets the limit_bandwidth_unit of this EntitlementsCreate. # noqa: E501 - :return: The limit_bandwidth_unit of this EntitlementsCreate. + None # noqa: E501 + + :return: The limit_bandwidth_unit of this EntitlementsCreate. # noqa: E501 :rtype: str """ return self._limit_bandwidth_unit @limit_bandwidth_unit.setter def limit_bandwidth_unit(self, limit_bandwidth_unit): - """ - Sets the limit_bandwidth_unit of this EntitlementsCreate. - None + """Sets the limit_bandwidth_unit of this EntitlementsCreate. + + None # noqa: E501 - :param limit_bandwidth_unit: The limit_bandwidth_unit of this EntitlementsCreate. + :param limit_bandwidth_unit: The limit_bandwidth_unit of this EntitlementsCreate. # noqa: E501 :type: str """ @@ -211,22 +215,22 @@ def limit_bandwidth_unit(self, limit_bandwidth_unit): @property def limit_date_range_from(self): - """ - Gets the limit_date_range_from of this EntitlementsCreate. - The starting date/time the token is allowed to be used from. + """Gets the limit_date_range_from of this EntitlementsCreate. # noqa: E501 + + The starting date/time the token is allowed to be used from. # noqa: E501 - :return: The limit_date_range_from of this EntitlementsCreate. + :return: The limit_date_range_from of this EntitlementsCreate. # noqa: E501 :rtype: str """ return self._limit_date_range_from @limit_date_range_from.setter def limit_date_range_from(self, limit_date_range_from): - """ - Sets the limit_date_range_from of this EntitlementsCreate. - The starting date/time the token is allowed to be used from. + """Sets the limit_date_range_from of this EntitlementsCreate. + + The starting date/time the token is allowed to be used from. # noqa: E501 - :param limit_date_range_from: The limit_date_range_from of this EntitlementsCreate. + :param limit_date_range_from: The limit_date_range_from of this EntitlementsCreate. # noqa: E501 :type: str """ @@ -234,22 +238,22 @@ def limit_date_range_from(self, limit_date_range_from): @property def limit_date_range_to(self): - """ - Gets the limit_date_range_to of this EntitlementsCreate. - The ending date/time the token is allowed to be used until. + """Gets the limit_date_range_to of this EntitlementsCreate. # noqa: E501 - :return: The limit_date_range_to of this EntitlementsCreate. + The ending date/time the token is allowed to be used until. # noqa: E501 + + :return: The limit_date_range_to of this EntitlementsCreate. # noqa: E501 :rtype: str """ return self._limit_date_range_to @limit_date_range_to.setter def limit_date_range_to(self, limit_date_range_to): - """ - Sets the limit_date_range_to of this EntitlementsCreate. - The ending date/time the token is allowed to be used until. + """Sets the limit_date_range_to of this EntitlementsCreate. - :param limit_date_range_to: The limit_date_range_to of this EntitlementsCreate. + The ending date/time the token is allowed to be used until. # noqa: E501 + + :param limit_date_range_to: The limit_date_range_to of this EntitlementsCreate. # noqa: E501 :type: str """ @@ -257,22 +261,22 @@ def limit_date_range_to(self, limit_date_range_to): @property def limit_num_clients(self): - """ - Gets the limit_num_clients of this EntitlementsCreate. - The maximum number of unique clients allowed for the token. Please note that since clients are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point. + """Gets the limit_num_clients of this EntitlementsCreate. # noqa: E501 + + The maximum number of unique clients allowed for the token. Please note that since clients are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point. # noqa: E501 - :return: The limit_num_clients of this EntitlementsCreate. + :return: The limit_num_clients of this EntitlementsCreate. # noqa: E501 :rtype: int """ return self._limit_num_clients @limit_num_clients.setter def limit_num_clients(self, limit_num_clients): - """ - Sets the limit_num_clients of this EntitlementsCreate. - The maximum number of unique clients allowed for the token. Please note that since clients are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point. + """Sets the limit_num_clients of this EntitlementsCreate. + + The maximum number of unique clients allowed for the token. Please note that since clients are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point. # noqa: E501 - :param limit_num_clients: The limit_num_clients of this EntitlementsCreate. + :param limit_num_clients: The limit_num_clients of this EntitlementsCreate. # noqa: E501 :type: int """ @@ -280,22 +284,22 @@ def limit_num_clients(self, limit_num_clients): @property def limit_num_downloads(self): - """ - Gets the limit_num_downloads of this EntitlementsCreate. - The maximum number of downloads allowed for the token. Please note that since downloads are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point. + """Gets the limit_num_downloads of this EntitlementsCreate. # noqa: E501 + + The maximum number of downloads allowed for the token. Please note that since downloads are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point. # noqa: E501 - :return: The limit_num_downloads of this EntitlementsCreate. + :return: The limit_num_downloads of this EntitlementsCreate. # noqa: E501 :rtype: int """ return self._limit_num_downloads @limit_num_downloads.setter def limit_num_downloads(self, limit_num_downloads): - """ - Sets the limit_num_downloads of this EntitlementsCreate. - The maximum number of downloads allowed for the token. Please note that since downloads are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point. + """Sets the limit_num_downloads of this EntitlementsCreate. - :param limit_num_downloads: The limit_num_downloads of this EntitlementsCreate. + The maximum number of downloads allowed for the token. Please note that since downloads are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point. # noqa: E501 + + :param limit_num_downloads: The limit_num_downloads of this EntitlementsCreate. # noqa: E501 :type: int """ @@ -303,22 +307,22 @@ def limit_num_downloads(self, limit_num_downloads): @property def limit_package_query(self): - """ - Gets the limit_package_query of this EntitlementsCreate. - The package-based search query to apply to restrict downloads to. This uses the same syntax as the standard search used for repositories, and also supports boolean logic operators such as OR/AND/NOT and parentheses for grouping. This will still allow access to non-package files, such as metadata. + """Gets the limit_package_query of this EntitlementsCreate. # noqa: E501 - :return: The limit_package_query of this EntitlementsCreate. + The package-based search query to apply to restrict downloads to. This uses the same syntax as the standard search used for repositories, and also supports boolean logic operators such as OR/AND/NOT and parentheses for grouping. This will still allow access to non-package files, such as metadata. # noqa: E501 + + :return: The limit_package_query of this EntitlementsCreate. # noqa: E501 :rtype: str """ return self._limit_package_query @limit_package_query.setter def limit_package_query(self, limit_package_query): - """ - Sets the limit_package_query of this EntitlementsCreate. - The package-based search query to apply to restrict downloads to. This uses the same syntax as the standard search used for repositories, and also supports boolean logic operators such as OR/AND/NOT and parentheses for grouping. This will still allow access to non-package files, such as metadata. + """Sets the limit_package_query of this EntitlementsCreate. + + The package-based search query to apply to restrict downloads to. This uses the same syntax as the standard search used for repositories, and also supports boolean logic operators such as OR/AND/NOT and parentheses for grouping. This will still allow access to non-package files, such as metadata. # noqa: E501 - :param limit_package_query: The limit_package_query of this EntitlementsCreate. + :param limit_package_query: The limit_package_query of this EntitlementsCreate. # noqa: E501 :type: str """ @@ -326,22 +330,22 @@ def limit_package_query(self, limit_package_query): @property def limit_path_query(self): - """ - Gets the limit_path_query of this EntitlementsCreate. - The path-based search query to apply to restrict downloads to. This supports boolean logic operators such as OR/AND/NOT and parentheses for grouping. The path evaluated does not include the domain name, the namespace, the entitlement code used, the package format, etc. and it always starts with a forward slash. + """Gets the limit_path_query of this EntitlementsCreate. # noqa: E501 + + The path-based search query to apply to restrict downloads to. This supports boolean logic operators such as OR/AND/NOT and parentheses for grouping. The path evaluated does not include the domain name, the namespace, the entitlement code used, the package format, etc. and it always starts with a forward slash. # noqa: E501 - :return: The limit_path_query of this EntitlementsCreate. + :return: The limit_path_query of this EntitlementsCreate. # noqa: E501 :rtype: str """ return self._limit_path_query @limit_path_query.setter def limit_path_query(self, limit_path_query): - """ - Sets the limit_path_query of this EntitlementsCreate. - The path-based search query to apply to restrict downloads to. This supports boolean logic operators such as OR/AND/NOT and parentheses for grouping. The path evaluated does not include the domain name, the namespace, the entitlement code used, the package format, etc. and it always starts with a forward slash. + """Sets the limit_path_query of this EntitlementsCreate. + + The path-based search query to apply to restrict downloads to. This supports boolean logic operators such as OR/AND/NOT and parentheses for grouping. The path evaluated does not include the domain name, the namespace, the entitlement code used, the package format, etc. and it always starts with a forward slash. # noqa: E501 - :param limit_path_query: The limit_path_query of this EntitlementsCreate. + :param limit_path_query: The limit_path_query of this EntitlementsCreate. # noqa: E501 :type: str """ @@ -349,22 +353,22 @@ def limit_path_query(self, limit_path_query): @property def metadata(self): - """ - Gets the metadata of this EntitlementsCreate. - None + """Gets the metadata of this EntitlementsCreate. # noqa: E501 - :return: The metadata of this EntitlementsCreate. + None # noqa: E501 + + :return: The metadata of this EntitlementsCreate. # noqa: E501 :rtype: object """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this EntitlementsCreate. - None + """Sets the metadata of this EntitlementsCreate. - :param metadata: The metadata of this EntitlementsCreate. + None # noqa: E501 + + :param metadata: The metadata of this EntitlementsCreate. # noqa: E501 :type: object """ @@ -372,47 +376,47 @@ def metadata(self, metadata): @property def name(self): - """ - Gets the name of this EntitlementsCreate. - None + """Gets the name of this EntitlementsCreate. # noqa: E501 + + None # noqa: E501 - :return: The name of this EntitlementsCreate. + :return: The name of this EntitlementsCreate. # noqa: E501 :rtype: str """ return self._name @name.setter def name(self, name): - """ - Sets the name of this EntitlementsCreate. - None + """Sets the name of this EntitlementsCreate. + + None # noqa: E501 - :param name: The name of this EntitlementsCreate. + :param name: The name of this EntitlementsCreate. # noqa: E501 :type: str """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") + if self._configuration.client_side_validation and name is None: + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 self._name = name @property def scheduled_reset_at(self): - """ - Gets the scheduled_reset_at of this EntitlementsCreate. - The time at which the scheduled reset period has elapsed and the token limits were automatically reset to zero. + """Gets the scheduled_reset_at of this EntitlementsCreate. # noqa: E501 + + The time at which the scheduled reset period has elapsed and the token limits were automatically reset to zero. # noqa: E501 - :return: The scheduled_reset_at of this EntitlementsCreate. + :return: The scheduled_reset_at of this EntitlementsCreate. # noqa: E501 :rtype: str """ return self._scheduled_reset_at @scheduled_reset_at.setter def scheduled_reset_at(self, scheduled_reset_at): - """ - Sets the scheduled_reset_at of this EntitlementsCreate. - The time at which the scheduled reset period has elapsed and the token limits were automatically reset to zero. + """Sets the scheduled_reset_at of this EntitlementsCreate. - :param scheduled_reset_at: The scheduled_reset_at of this EntitlementsCreate. + The time at which the scheduled reset period has elapsed and the token limits were automatically reset to zero. # noqa: E501 + + :param scheduled_reset_at: The scheduled_reset_at of this EntitlementsCreate. # noqa: E501 :type: str """ @@ -420,22 +424,22 @@ def scheduled_reset_at(self, scheduled_reset_at): @property def scheduled_reset_period(self): - """ - Gets the scheduled_reset_period of this EntitlementsCreate. - None + """Gets the scheduled_reset_period of this EntitlementsCreate. # noqa: E501 - :return: The scheduled_reset_period of this EntitlementsCreate. + None # noqa: E501 + + :return: The scheduled_reset_period of this EntitlementsCreate. # noqa: E501 :rtype: str """ return self._scheduled_reset_period @scheduled_reset_period.setter def scheduled_reset_period(self, scheduled_reset_period): - """ - Sets the scheduled_reset_period of this EntitlementsCreate. - None + """Sets the scheduled_reset_period of this EntitlementsCreate. + + None # noqa: E501 - :param scheduled_reset_period: The scheduled_reset_period of this EntitlementsCreate. + :param scheduled_reset_period: The scheduled_reset_period of this EntitlementsCreate. # noqa: E501 :type: str """ @@ -443,34 +447,32 @@ def scheduled_reset_period(self, scheduled_reset_period): @property def token(self): - """ - Gets the token of this EntitlementsCreate. - None + """Gets the token of this EntitlementsCreate. # noqa: E501 + + None # noqa: E501 - :return: The token of this EntitlementsCreate. + :return: The token of this EntitlementsCreate. # noqa: E501 :rtype: str """ return self._token @token.setter def token(self, token): - """ - Sets the token of this EntitlementsCreate. - None + """Sets the token of this EntitlementsCreate. + + None # noqa: E501 - :param token: The token of this EntitlementsCreate. + :param token: The token of this EntitlementsCreate. # noqa: E501 :type: str """ self._token = token def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -487,32 +489,30 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(EntitlementsCreate, dict): + for key, value in self.items(): + result[key] = value return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, EntitlementsCreate): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other + """Returns true if both objects are not equal""" + if not isinstance(other, EntitlementsCreate): + return True + + return self.to_dict() != other.to_dict() diff --git a/bindings/python/src/cloudsmith_api/models/entitlements_partial_update.py b/bindings/python/src/cloudsmith_api/models/entitlements_partial_update.py index ccdde8f2..ecbc3f28 100644 --- a/bindings/python/src/cloudsmith_api/models/entitlements_partial_update.py +++ b/bindings/python/src/cloudsmith_api/models/entitlements_partial_update.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -11,18 +11,20 @@ """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration class EntitlementsPartialUpdate(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -66,10 +68,11 @@ class EntitlementsPartialUpdate(object): 'token': 'token' } - def __init__(self, eula_required=None, is_active=None, limit_bandwidth=None, limit_bandwidth_unit=None, limit_date_range_from=None, limit_date_range_to=None, limit_num_clients=None, limit_num_downloads=None, limit_package_query=None, limit_path_query=None, metadata=None, name=None, scheduled_reset_at=None, scheduled_reset_period=None, token=None): - """ - EntitlementsPartialUpdate - a model defined in Swagger - """ + def __init__(self, eula_required=None, is_active=None, limit_bandwidth=None, limit_bandwidth_unit=None, limit_date_range_from=None, limit_date_range_to=None, limit_num_clients=None, limit_num_downloads=None, limit_package_query=None, limit_path_query=None, metadata=None, name=None, scheduled_reset_at=None, scheduled_reset_period=None, token=None, _configuration=None): # noqa: E501 + """EntitlementsPartialUpdate - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._eula_required = None self._is_active = None @@ -86,56 +89,57 @@ def __init__(self, eula_required=None, is_active=None, limit_bandwidth=None, lim self._scheduled_reset_at = None self._scheduled_reset_period = None self._token = None + self.discriminator = None if eula_required is not None: - self.eula_required = eula_required + self.eula_required = eula_required if is_active is not None: - self.is_active = is_active + self.is_active = is_active if limit_bandwidth is not None: - self.limit_bandwidth = limit_bandwidth + self.limit_bandwidth = limit_bandwidth if limit_bandwidth_unit is not None: - self.limit_bandwidth_unit = limit_bandwidth_unit + self.limit_bandwidth_unit = limit_bandwidth_unit if limit_date_range_from is not None: - self.limit_date_range_from = limit_date_range_from + self.limit_date_range_from = limit_date_range_from if limit_date_range_to is not None: - self.limit_date_range_to = limit_date_range_to + self.limit_date_range_to = limit_date_range_to if limit_num_clients is not None: - self.limit_num_clients = limit_num_clients + self.limit_num_clients = limit_num_clients if limit_num_downloads is not None: - self.limit_num_downloads = limit_num_downloads + self.limit_num_downloads = limit_num_downloads if limit_package_query is not None: - self.limit_package_query = limit_package_query + self.limit_package_query = limit_package_query if limit_path_query is not None: - self.limit_path_query = limit_path_query + self.limit_path_query = limit_path_query if metadata is not None: - self.metadata = metadata + self.metadata = metadata if name is not None: - self.name = name + self.name = name if scheduled_reset_at is not None: - self.scheduled_reset_at = scheduled_reset_at + self.scheduled_reset_at = scheduled_reset_at if scheduled_reset_period is not None: - self.scheduled_reset_period = scheduled_reset_period + self.scheduled_reset_period = scheduled_reset_period if token is not None: - self.token = token + self.token = token @property def eula_required(self): - """ - Gets the eula_required of this EntitlementsPartialUpdate. - If checked, a EULA acceptance is required for this token. + """Gets the eula_required of this EntitlementsPartialUpdate. # noqa: E501 - :return: The eula_required of this EntitlementsPartialUpdate. + If checked, a EULA acceptance is required for this token. # noqa: E501 + + :return: The eula_required of this EntitlementsPartialUpdate. # noqa: E501 :rtype: bool """ return self._eula_required @eula_required.setter def eula_required(self, eula_required): - """ - Sets the eula_required of this EntitlementsPartialUpdate. - If checked, a EULA acceptance is required for this token. + """Sets the eula_required of this EntitlementsPartialUpdate. - :param eula_required: The eula_required of this EntitlementsPartialUpdate. + If checked, a EULA acceptance is required for this token. # noqa: E501 + + :param eula_required: The eula_required of this EntitlementsPartialUpdate. # noqa: E501 :type: bool """ @@ -143,22 +147,22 @@ def eula_required(self, eula_required): @property def is_active(self): - """ - Gets the is_active of this EntitlementsPartialUpdate. - If enabled, the token will allow downloads based on configured restrictions (if any). + """Gets the is_active of this EntitlementsPartialUpdate. # noqa: E501 + + If enabled, the token will allow downloads based on configured restrictions (if any). # noqa: E501 - :return: The is_active of this EntitlementsPartialUpdate. + :return: The is_active of this EntitlementsPartialUpdate. # noqa: E501 :rtype: bool """ return self._is_active @is_active.setter def is_active(self, is_active): - """ - Sets the is_active of this EntitlementsPartialUpdate. - If enabled, the token will allow downloads based on configured restrictions (if any). + """Sets the is_active of this EntitlementsPartialUpdate. + + If enabled, the token will allow downloads based on configured restrictions (if any). # noqa: E501 - :param is_active: The is_active of this EntitlementsPartialUpdate. + :param is_active: The is_active of this EntitlementsPartialUpdate. # noqa: E501 :type: bool """ @@ -166,22 +170,22 @@ def is_active(self, is_active): @property def limit_bandwidth(self): - """ - Gets the limit_bandwidth of this EntitlementsPartialUpdate. - The maximum download bandwidth allowed for the token. Values are expressed as the selected unit of bandwidth. Please note that since downloads are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point. + """Gets the limit_bandwidth of this EntitlementsPartialUpdate. # noqa: E501 + + The maximum download bandwidth allowed for the token. Values are expressed as the selected unit of bandwidth. Please note that since downloads are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point. # noqa: E501 - :return: The limit_bandwidth of this EntitlementsPartialUpdate. + :return: The limit_bandwidth of this EntitlementsPartialUpdate. # noqa: E501 :rtype: int """ return self._limit_bandwidth @limit_bandwidth.setter def limit_bandwidth(self, limit_bandwidth): - """ - Sets the limit_bandwidth of this EntitlementsPartialUpdate. - The maximum download bandwidth allowed for the token. Values are expressed as the selected unit of bandwidth. Please note that since downloads are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point. + """Sets the limit_bandwidth of this EntitlementsPartialUpdate. - :param limit_bandwidth: The limit_bandwidth of this EntitlementsPartialUpdate. + The maximum download bandwidth allowed for the token. Values are expressed as the selected unit of bandwidth. Please note that since downloads are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point. # noqa: E501 + + :param limit_bandwidth: The limit_bandwidth of this EntitlementsPartialUpdate. # noqa: E501 :type: int """ @@ -189,22 +193,22 @@ def limit_bandwidth(self, limit_bandwidth): @property def limit_bandwidth_unit(self): - """ - Gets the limit_bandwidth_unit of this EntitlementsPartialUpdate. - None + """Gets the limit_bandwidth_unit of this EntitlementsPartialUpdate. # noqa: E501 - :return: The limit_bandwidth_unit of this EntitlementsPartialUpdate. + None # noqa: E501 + + :return: The limit_bandwidth_unit of this EntitlementsPartialUpdate. # noqa: E501 :rtype: str """ return self._limit_bandwidth_unit @limit_bandwidth_unit.setter def limit_bandwidth_unit(self, limit_bandwidth_unit): - """ - Sets the limit_bandwidth_unit of this EntitlementsPartialUpdate. - None + """Sets the limit_bandwidth_unit of this EntitlementsPartialUpdate. + + None # noqa: E501 - :param limit_bandwidth_unit: The limit_bandwidth_unit of this EntitlementsPartialUpdate. + :param limit_bandwidth_unit: The limit_bandwidth_unit of this EntitlementsPartialUpdate. # noqa: E501 :type: str """ @@ -212,22 +216,22 @@ def limit_bandwidth_unit(self, limit_bandwidth_unit): @property def limit_date_range_from(self): - """ - Gets the limit_date_range_from of this EntitlementsPartialUpdate. - The starting date/time the token is allowed to be used from. + """Gets the limit_date_range_from of this EntitlementsPartialUpdate. # noqa: E501 + + The starting date/time the token is allowed to be used from. # noqa: E501 - :return: The limit_date_range_from of this EntitlementsPartialUpdate. + :return: The limit_date_range_from of this EntitlementsPartialUpdate. # noqa: E501 :rtype: str """ return self._limit_date_range_from @limit_date_range_from.setter def limit_date_range_from(self, limit_date_range_from): - """ - Sets the limit_date_range_from of this EntitlementsPartialUpdate. - The starting date/time the token is allowed to be used from. + """Sets the limit_date_range_from of this EntitlementsPartialUpdate. + + The starting date/time the token is allowed to be used from. # noqa: E501 - :param limit_date_range_from: The limit_date_range_from of this EntitlementsPartialUpdate. + :param limit_date_range_from: The limit_date_range_from of this EntitlementsPartialUpdate. # noqa: E501 :type: str """ @@ -235,22 +239,22 @@ def limit_date_range_from(self, limit_date_range_from): @property def limit_date_range_to(self): - """ - Gets the limit_date_range_to of this EntitlementsPartialUpdate. - The ending date/time the token is allowed to be used until. + """Gets the limit_date_range_to of this EntitlementsPartialUpdate. # noqa: E501 - :return: The limit_date_range_to of this EntitlementsPartialUpdate. + The ending date/time the token is allowed to be used until. # noqa: E501 + + :return: The limit_date_range_to of this EntitlementsPartialUpdate. # noqa: E501 :rtype: str """ return self._limit_date_range_to @limit_date_range_to.setter def limit_date_range_to(self, limit_date_range_to): - """ - Sets the limit_date_range_to of this EntitlementsPartialUpdate. - The ending date/time the token is allowed to be used until. + """Sets the limit_date_range_to of this EntitlementsPartialUpdate. - :param limit_date_range_to: The limit_date_range_to of this EntitlementsPartialUpdate. + The ending date/time the token is allowed to be used until. # noqa: E501 + + :param limit_date_range_to: The limit_date_range_to of this EntitlementsPartialUpdate. # noqa: E501 :type: str """ @@ -258,22 +262,22 @@ def limit_date_range_to(self, limit_date_range_to): @property def limit_num_clients(self): - """ - Gets the limit_num_clients of this EntitlementsPartialUpdate. - The maximum number of unique clients allowed for the token. Please note that since clients are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point. + """Gets the limit_num_clients of this EntitlementsPartialUpdate. # noqa: E501 + + The maximum number of unique clients allowed for the token. Please note that since clients are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point. # noqa: E501 - :return: The limit_num_clients of this EntitlementsPartialUpdate. + :return: The limit_num_clients of this EntitlementsPartialUpdate. # noqa: E501 :rtype: int """ return self._limit_num_clients @limit_num_clients.setter def limit_num_clients(self, limit_num_clients): - """ - Sets the limit_num_clients of this EntitlementsPartialUpdate. - The maximum number of unique clients allowed for the token. Please note that since clients are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point. + """Sets the limit_num_clients of this EntitlementsPartialUpdate. + + The maximum number of unique clients allowed for the token. Please note that since clients are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point. # noqa: E501 - :param limit_num_clients: The limit_num_clients of this EntitlementsPartialUpdate. + :param limit_num_clients: The limit_num_clients of this EntitlementsPartialUpdate. # noqa: E501 :type: int """ @@ -281,22 +285,22 @@ def limit_num_clients(self, limit_num_clients): @property def limit_num_downloads(self): - """ - Gets the limit_num_downloads of this EntitlementsPartialUpdate. - The maximum number of downloads allowed for the token. Please note that since downloads are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point. + """Gets the limit_num_downloads of this EntitlementsPartialUpdate. # noqa: E501 + + The maximum number of downloads allowed for the token. Please note that since downloads are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point. # noqa: E501 - :return: The limit_num_downloads of this EntitlementsPartialUpdate. + :return: The limit_num_downloads of this EntitlementsPartialUpdate. # noqa: E501 :rtype: int """ return self._limit_num_downloads @limit_num_downloads.setter def limit_num_downloads(self, limit_num_downloads): - """ - Sets the limit_num_downloads of this EntitlementsPartialUpdate. - The maximum number of downloads allowed for the token. Please note that since downloads are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point. + """Sets the limit_num_downloads of this EntitlementsPartialUpdate. - :param limit_num_downloads: The limit_num_downloads of this EntitlementsPartialUpdate. + The maximum number of downloads allowed for the token. Please note that since downloads are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point. # noqa: E501 + + :param limit_num_downloads: The limit_num_downloads of this EntitlementsPartialUpdate. # noqa: E501 :type: int """ @@ -304,22 +308,22 @@ def limit_num_downloads(self, limit_num_downloads): @property def limit_package_query(self): - """ - Gets the limit_package_query of this EntitlementsPartialUpdate. - The package-based search query to apply to restrict downloads to. This uses the same syntax as the standard search used for repositories, and also supports boolean logic operators such as OR/AND/NOT and parentheses for grouping. This will still allow access to non-package files, such as metadata. + """Gets the limit_package_query of this EntitlementsPartialUpdate. # noqa: E501 - :return: The limit_package_query of this EntitlementsPartialUpdate. + The package-based search query to apply to restrict downloads to. This uses the same syntax as the standard search used for repositories, and also supports boolean logic operators such as OR/AND/NOT and parentheses for grouping. This will still allow access to non-package files, such as metadata. # noqa: E501 + + :return: The limit_package_query of this EntitlementsPartialUpdate. # noqa: E501 :rtype: str """ return self._limit_package_query @limit_package_query.setter def limit_package_query(self, limit_package_query): - """ - Sets the limit_package_query of this EntitlementsPartialUpdate. - The package-based search query to apply to restrict downloads to. This uses the same syntax as the standard search used for repositories, and also supports boolean logic operators such as OR/AND/NOT and parentheses for grouping. This will still allow access to non-package files, such as metadata. + """Sets the limit_package_query of this EntitlementsPartialUpdate. + + The package-based search query to apply to restrict downloads to. This uses the same syntax as the standard search used for repositories, and also supports boolean logic operators such as OR/AND/NOT and parentheses for grouping. This will still allow access to non-package files, such as metadata. # noqa: E501 - :param limit_package_query: The limit_package_query of this EntitlementsPartialUpdate. + :param limit_package_query: The limit_package_query of this EntitlementsPartialUpdate. # noqa: E501 :type: str """ @@ -327,22 +331,22 @@ def limit_package_query(self, limit_package_query): @property def limit_path_query(self): - """ - Gets the limit_path_query of this EntitlementsPartialUpdate. - The path-based search query to apply to restrict downloads to. This supports boolean logic operators such as OR/AND/NOT and parentheses for grouping. The path evaluated does not include the domain name, the namespace, the entitlement code used, the package format, etc. and it always starts with a forward slash. + """Gets the limit_path_query of this EntitlementsPartialUpdate. # noqa: E501 + + The path-based search query to apply to restrict downloads to. This supports boolean logic operators such as OR/AND/NOT and parentheses for grouping. The path evaluated does not include the domain name, the namespace, the entitlement code used, the package format, etc. and it always starts with a forward slash. # noqa: E501 - :return: The limit_path_query of this EntitlementsPartialUpdate. + :return: The limit_path_query of this EntitlementsPartialUpdate. # noqa: E501 :rtype: str """ return self._limit_path_query @limit_path_query.setter def limit_path_query(self, limit_path_query): - """ - Sets the limit_path_query of this EntitlementsPartialUpdate. - The path-based search query to apply to restrict downloads to. This supports boolean logic operators such as OR/AND/NOT and parentheses for grouping. The path evaluated does not include the domain name, the namespace, the entitlement code used, the package format, etc. and it always starts with a forward slash. + """Sets the limit_path_query of this EntitlementsPartialUpdate. + + The path-based search query to apply to restrict downloads to. This supports boolean logic operators such as OR/AND/NOT and parentheses for grouping. The path evaluated does not include the domain name, the namespace, the entitlement code used, the package format, etc. and it always starts with a forward slash. # noqa: E501 - :param limit_path_query: The limit_path_query of this EntitlementsPartialUpdate. + :param limit_path_query: The limit_path_query of this EntitlementsPartialUpdate. # noqa: E501 :type: str """ @@ -350,22 +354,22 @@ def limit_path_query(self, limit_path_query): @property def metadata(self): - """ - Gets the metadata of this EntitlementsPartialUpdate. - None + """Gets the metadata of this EntitlementsPartialUpdate. # noqa: E501 - :return: The metadata of this EntitlementsPartialUpdate. + None # noqa: E501 + + :return: The metadata of this EntitlementsPartialUpdate. # noqa: E501 :rtype: object """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this EntitlementsPartialUpdate. - None + """Sets the metadata of this EntitlementsPartialUpdate. - :param metadata: The metadata of this EntitlementsPartialUpdate. + None # noqa: E501 + + :param metadata: The metadata of this EntitlementsPartialUpdate. # noqa: E501 :type: object """ @@ -373,22 +377,22 @@ def metadata(self, metadata): @property def name(self): - """ - Gets the name of this EntitlementsPartialUpdate. - None + """Gets the name of this EntitlementsPartialUpdate. # noqa: E501 + + None # noqa: E501 - :return: The name of this EntitlementsPartialUpdate. + :return: The name of this EntitlementsPartialUpdate. # noqa: E501 :rtype: str """ return self._name @name.setter def name(self, name): - """ - Sets the name of this EntitlementsPartialUpdate. - None + """Sets the name of this EntitlementsPartialUpdate. + + None # noqa: E501 - :param name: The name of this EntitlementsPartialUpdate. + :param name: The name of this EntitlementsPartialUpdate. # noqa: E501 :type: str """ @@ -396,22 +400,22 @@ def name(self, name): @property def scheduled_reset_at(self): - """ - Gets the scheduled_reset_at of this EntitlementsPartialUpdate. - The time at which the scheduled reset period has elapsed and the token limits were automatically reset to zero. + """Gets the scheduled_reset_at of this EntitlementsPartialUpdate. # noqa: E501 + + The time at which the scheduled reset period has elapsed and the token limits were automatically reset to zero. # noqa: E501 - :return: The scheduled_reset_at of this EntitlementsPartialUpdate. + :return: The scheduled_reset_at of this EntitlementsPartialUpdate. # noqa: E501 :rtype: str """ return self._scheduled_reset_at @scheduled_reset_at.setter def scheduled_reset_at(self, scheduled_reset_at): - """ - Sets the scheduled_reset_at of this EntitlementsPartialUpdate. - The time at which the scheduled reset period has elapsed and the token limits were automatically reset to zero. + """Sets the scheduled_reset_at of this EntitlementsPartialUpdate. - :param scheduled_reset_at: The scheduled_reset_at of this EntitlementsPartialUpdate. + The time at which the scheduled reset period has elapsed and the token limits were automatically reset to zero. # noqa: E501 + + :param scheduled_reset_at: The scheduled_reset_at of this EntitlementsPartialUpdate. # noqa: E501 :type: str """ @@ -419,22 +423,22 @@ def scheduled_reset_at(self, scheduled_reset_at): @property def scheduled_reset_period(self): - """ - Gets the scheduled_reset_period of this EntitlementsPartialUpdate. - None + """Gets the scheduled_reset_period of this EntitlementsPartialUpdate. # noqa: E501 - :return: The scheduled_reset_period of this EntitlementsPartialUpdate. + None # noqa: E501 + + :return: The scheduled_reset_period of this EntitlementsPartialUpdate. # noqa: E501 :rtype: str """ return self._scheduled_reset_period @scheduled_reset_period.setter def scheduled_reset_period(self, scheduled_reset_period): - """ - Sets the scheduled_reset_period of this EntitlementsPartialUpdate. - None + """Sets the scheduled_reset_period of this EntitlementsPartialUpdate. + + None # noqa: E501 - :param scheduled_reset_period: The scheduled_reset_period of this EntitlementsPartialUpdate. + :param scheduled_reset_period: The scheduled_reset_period of this EntitlementsPartialUpdate. # noqa: E501 :type: str """ @@ -442,34 +446,32 @@ def scheduled_reset_period(self, scheduled_reset_period): @property def token(self): - """ - Gets the token of this EntitlementsPartialUpdate. - None + """Gets the token of this EntitlementsPartialUpdate. # noqa: E501 + + None # noqa: E501 - :return: The token of this EntitlementsPartialUpdate. + :return: The token of this EntitlementsPartialUpdate. # noqa: E501 :rtype: str """ return self._token @token.setter def token(self, token): - """ - Sets the token of this EntitlementsPartialUpdate. - None + """Sets the token of this EntitlementsPartialUpdate. + + None # noqa: E501 - :param token: The token of this EntitlementsPartialUpdate. + :param token: The token of this EntitlementsPartialUpdate. # noqa: E501 :type: str """ self._token = token def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -486,32 +488,30 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(EntitlementsPartialUpdate, dict): + for key, value in self.items(): + result[key] = value return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, EntitlementsPartialUpdate): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other + """Returns true if both objects are not equal""" + if not isinstance(other, EntitlementsPartialUpdate): + return True + + return self.to_dict() != other.to_dict() diff --git a/bindings/python/src/cloudsmith_api/models/entitlements_refresh.py b/bindings/python/src/cloudsmith_api/models/entitlements_refresh.py index bec3e9b4..63b8f80f 100644 --- a/bindings/python/src/cloudsmith_api/models/entitlements_refresh.py +++ b/bindings/python/src/cloudsmith_api/models/entitlements_refresh.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -11,18 +11,20 @@ """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration class EntitlementsRefresh(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -64,10 +66,11 @@ class EntitlementsRefresh(object): 'token': 'token' } - def __init__(self, eula_required=None, is_active=None, limit_bandwidth=None, limit_bandwidth_unit=None, limit_date_range_from=None, limit_date_range_to=None, limit_num_clients=None, limit_num_downloads=None, limit_package_query=None, limit_path_query=None, metadata=None, scheduled_reset_at=None, scheduled_reset_period=None, token=None): - """ - EntitlementsRefresh - a model defined in Swagger - """ + def __init__(self, eula_required=None, is_active=None, limit_bandwidth=None, limit_bandwidth_unit=None, limit_date_range_from=None, limit_date_range_to=None, limit_num_clients=None, limit_num_downloads=None, limit_package_query=None, limit_path_query=None, metadata=None, scheduled_reset_at=None, scheduled_reset_period=None, token=None, _configuration=None): # noqa: E501 + """EntitlementsRefresh - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._eula_required = None self._is_active = None @@ -83,54 +86,55 @@ def __init__(self, eula_required=None, is_active=None, limit_bandwidth=None, lim self._scheduled_reset_at = None self._scheduled_reset_period = None self._token = None + self.discriminator = None if eula_required is not None: - self.eula_required = eula_required + self.eula_required = eula_required if is_active is not None: - self.is_active = is_active + self.is_active = is_active if limit_bandwidth is not None: - self.limit_bandwidth = limit_bandwidth + self.limit_bandwidth = limit_bandwidth if limit_bandwidth_unit is not None: - self.limit_bandwidth_unit = limit_bandwidth_unit + self.limit_bandwidth_unit = limit_bandwidth_unit if limit_date_range_from is not None: - self.limit_date_range_from = limit_date_range_from + self.limit_date_range_from = limit_date_range_from if limit_date_range_to is not None: - self.limit_date_range_to = limit_date_range_to + self.limit_date_range_to = limit_date_range_to if limit_num_clients is not None: - self.limit_num_clients = limit_num_clients + self.limit_num_clients = limit_num_clients if limit_num_downloads is not None: - self.limit_num_downloads = limit_num_downloads + self.limit_num_downloads = limit_num_downloads if limit_package_query is not None: - self.limit_package_query = limit_package_query + self.limit_package_query = limit_package_query if limit_path_query is not None: - self.limit_path_query = limit_path_query + self.limit_path_query = limit_path_query if metadata is not None: - self.metadata = metadata + self.metadata = metadata if scheduled_reset_at is not None: - self.scheduled_reset_at = scheduled_reset_at + self.scheduled_reset_at = scheduled_reset_at if scheduled_reset_period is not None: - self.scheduled_reset_period = scheduled_reset_period + self.scheduled_reset_period = scheduled_reset_period if token is not None: - self.token = token + self.token = token @property def eula_required(self): - """ - Gets the eula_required of this EntitlementsRefresh. - If checked, a EULA acceptance is required for this token. + """Gets the eula_required of this EntitlementsRefresh. # noqa: E501 - :return: The eula_required of this EntitlementsRefresh. + If checked, a EULA acceptance is required for this token. # noqa: E501 + + :return: The eula_required of this EntitlementsRefresh. # noqa: E501 :rtype: bool """ return self._eula_required @eula_required.setter def eula_required(self, eula_required): - """ - Sets the eula_required of this EntitlementsRefresh. - If checked, a EULA acceptance is required for this token. + """Sets the eula_required of this EntitlementsRefresh. - :param eula_required: The eula_required of this EntitlementsRefresh. + If checked, a EULA acceptance is required for this token. # noqa: E501 + + :param eula_required: The eula_required of this EntitlementsRefresh. # noqa: E501 :type: bool """ @@ -138,22 +142,22 @@ def eula_required(self, eula_required): @property def is_active(self): - """ - Gets the is_active of this EntitlementsRefresh. - If enabled, the token will allow downloads based on configured restrictions (if any). + """Gets the is_active of this EntitlementsRefresh. # noqa: E501 + + If enabled, the token will allow downloads based on configured restrictions (if any). # noqa: E501 - :return: The is_active of this EntitlementsRefresh. + :return: The is_active of this EntitlementsRefresh. # noqa: E501 :rtype: bool """ return self._is_active @is_active.setter def is_active(self, is_active): - """ - Sets the is_active of this EntitlementsRefresh. - If enabled, the token will allow downloads based on configured restrictions (if any). + """Sets the is_active of this EntitlementsRefresh. + + If enabled, the token will allow downloads based on configured restrictions (if any). # noqa: E501 - :param is_active: The is_active of this EntitlementsRefresh. + :param is_active: The is_active of this EntitlementsRefresh. # noqa: E501 :type: bool """ @@ -161,22 +165,22 @@ def is_active(self, is_active): @property def limit_bandwidth(self): - """ - Gets the limit_bandwidth of this EntitlementsRefresh. - The maximum download bandwidth allowed for the token. Values are expressed as the selected unit of bandwidth. Please note that since downloads are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point. + """Gets the limit_bandwidth of this EntitlementsRefresh. # noqa: E501 + + The maximum download bandwidth allowed for the token. Values are expressed as the selected unit of bandwidth. Please note that since downloads are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point. # noqa: E501 - :return: The limit_bandwidth of this EntitlementsRefresh. + :return: The limit_bandwidth of this EntitlementsRefresh. # noqa: E501 :rtype: int """ return self._limit_bandwidth @limit_bandwidth.setter def limit_bandwidth(self, limit_bandwidth): - """ - Sets the limit_bandwidth of this EntitlementsRefresh. - The maximum download bandwidth allowed for the token. Values are expressed as the selected unit of bandwidth. Please note that since downloads are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point. + """Sets the limit_bandwidth of this EntitlementsRefresh. + + The maximum download bandwidth allowed for the token. Values are expressed as the selected unit of bandwidth. Please note that since downloads are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point. # noqa: E501 - :param limit_bandwidth: The limit_bandwidth of this EntitlementsRefresh. + :param limit_bandwidth: The limit_bandwidth of this EntitlementsRefresh. # noqa: E501 :type: int """ @@ -184,22 +188,22 @@ def limit_bandwidth(self, limit_bandwidth): @property def limit_bandwidth_unit(self): - """ - Gets the limit_bandwidth_unit of this EntitlementsRefresh. - None + """Gets the limit_bandwidth_unit of this EntitlementsRefresh. # noqa: E501 + + None # noqa: E501 - :return: The limit_bandwidth_unit of this EntitlementsRefresh. + :return: The limit_bandwidth_unit of this EntitlementsRefresh. # noqa: E501 :rtype: str """ return self._limit_bandwidth_unit @limit_bandwidth_unit.setter def limit_bandwidth_unit(self, limit_bandwidth_unit): - """ - Sets the limit_bandwidth_unit of this EntitlementsRefresh. - None + """Sets the limit_bandwidth_unit of this EntitlementsRefresh. - :param limit_bandwidth_unit: The limit_bandwidth_unit of this EntitlementsRefresh. + None # noqa: E501 + + :param limit_bandwidth_unit: The limit_bandwidth_unit of this EntitlementsRefresh. # noqa: E501 :type: str """ @@ -207,22 +211,22 @@ def limit_bandwidth_unit(self, limit_bandwidth_unit): @property def limit_date_range_from(self): - """ - Gets the limit_date_range_from of this EntitlementsRefresh. - The starting date/time the token is allowed to be used from. + """Gets the limit_date_range_from of this EntitlementsRefresh. # noqa: E501 - :return: The limit_date_range_from of this EntitlementsRefresh. + The starting date/time the token is allowed to be used from. # noqa: E501 + + :return: The limit_date_range_from of this EntitlementsRefresh. # noqa: E501 :rtype: str """ return self._limit_date_range_from @limit_date_range_from.setter def limit_date_range_from(self, limit_date_range_from): - """ - Sets the limit_date_range_from of this EntitlementsRefresh. - The starting date/time the token is allowed to be used from. + """Sets the limit_date_range_from of this EntitlementsRefresh. + + The starting date/time the token is allowed to be used from. # noqa: E501 - :param limit_date_range_from: The limit_date_range_from of this EntitlementsRefresh. + :param limit_date_range_from: The limit_date_range_from of this EntitlementsRefresh. # noqa: E501 :type: str """ @@ -230,22 +234,22 @@ def limit_date_range_from(self, limit_date_range_from): @property def limit_date_range_to(self): - """ - Gets the limit_date_range_to of this EntitlementsRefresh. - The ending date/time the token is allowed to be used until. + """Gets the limit_date_range_to of this EntitlementsRefresh. # noqa: E501 + + The ending date/time the token is allowed to be used until. # noqa: E501 - :return: The limit_date_range_to of this EntitlementsRefresh. + :return: The limit_date_range_to of this EntitlementsRefresh. # noqa: E501 :rtype: str """ return self._limit_date_range_to @limit_date_range_to.setter def limit_date_range_to(self, limit_date_range_to): - """ - Sets the limit_date_range_to of this EntitlementsRefresh. - The ending date/time the token is allowed to be used until. + """Sets the limit_date_range_to of this EntitlementsRefresh. + + The ending date/time the token is allowed to be used until. # noqa: E501 - :param limit_date_range_to: The limit_date_range_to of this EntitlementsRefresh. + :param limit_date_range_to: The limit_date_range_to of this EntitlementsRefresh. # noqa: E501 :type: str """ @@ -253,22 +257,22 @@ def limit_date_range_to(self, limit_date_range_to): @property def limit_num_clients(self): - """ - Gets the limit_num_clients of this EntitlementsRefresh. - The maximum number of unique clients allowed for the token. Please note that since clients are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point. + """Gets the limit_num_clients of this EntitlementsRefresh. # noqa: E501 - :return: The limit_num_clients of this EntitlementsRefresh. + The maximum number of unique clients allowed for the token. Please note that since clients are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point. # noqa: E501 + + :return: The limit_num_clients of this EntitlementsRefresh. # noqa: E501 :rtype: int """ return self._limit_num_clients @limit_num_clients.setter def limit_num_clients(self, limit_num_clients): - """ - Sets the limit_num_clients of this EntitlementsRefresh. - The maximum number of unique clients allowed for the token. Please note that since clients are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point. + """Sets the limit_num_clients of this EntitlementsRefresh. - :param limit_num_clients: The limit_num_clients of this EntitlementsRefresh. + The maximum number of unique clients allowed for the token. Please note that since clients are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point. # noqa: E501 + + :param limit_num_clients: The limit_num_clients of this EntitlementsRefresh. # noqa: E501 :type: int """ @@ -276,22 +280,22 @@ def limit_num_clients(self, limit_num_clients): @property def limit_num_downloads(self): - """ - Gets the limit_num_downloads of this EntitlementsRefresh. - The maximum number of downloads allowed for the token. Please note that since downloads are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point. + """Gets the limit_num_downloads of this EntitlementsRefresh. # noqa: E501 - :return: The limit_num_downloads of this EntitlementsRefresh. + The maximum number of downloads allowed for the token. Please note that since downloads are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point. # noqa: E501 + + :return: The limit_num_downloads of this EntitlementsRefresh. # noqa: E501 :rtype: int """ return self._limit_num_downloads @limit_num_downloads.setter def limit_num_downloads(self, limit_num_downloads): - """ - Sets the limit_num_downloads of this EntitlementsRefresh. - The maximum number of downloads allowed for the token. Please note that since downloads are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point. + """Sets the limit_num_downloads of this EntitlementsRefresh. - :param limit_num_downloads: The limit_num_downloads of this EntitlementsRefresh. + The maximum number of downloads allowed for the token. Please note that since downloads are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point. # noqa: E501 + + :param limit_num_downloads: The limit_num_downloads of this EntitlementsRefresh. # noqa: E501 :type: int """ @@ -299,22 +303,22 @@ def limit_num_downloads(self, limit_num_downloads): @property def limit_package_query(self): - """ - Gets the limit_package_query of this EntitlementsRefresh. - The package-based search query to apply to restrict downloads to. This uses the same syntax as the standard search used for repositories, and also supports boolean logic operators such as OR/AND/NOT and parentheses for grouping. This will still allow access to non-package files, such as metadata. + """Gets the limit_package_query of this EntitlementsRefresh. # noqa: E501 + + The package-based search query to apply to restrict downloads to. This uses the same syntax as the standard search used for repositories, and also supports boolean logic operators such as OR/AND/NOT and parentheses for grouping. This will still allow access to non-package files, such as metadata. # noqa: E501 - :return: The limit_package_query of this EntitlementsRefresh. + :return: The limit_package_query of this EntitlementsRefresh. # noqa: E501 :rtype: str """ return self._limit_package_query @limit_package_query.setter def limit_package_query(self, limit_package_query): - """ - Sets the limit_package_query of this EntitlementsRefresh. - The package-based search query to apply to restrict downloads to. This uses the same syntax as the standard search used for repositories, and also supports boolean logic operators such as OR/AND/NOT and parentheses for grouping. This will still allow access to non-package files, such as metadata. + """Sets the limit_package_query of this EntitlementsRefresh. + + The package-based search query to apply to restrict downloads to. This uses the same syntax as the standard search used for repositories, and also supports boolean logic operators such as OR/AND/NOT and parentheses for grouping. This will still allow access to non-package files, such as metadata. # noqa: E501 - :param limit_package_query: The limit_package_query of this EntitlementsRefresh. + :param limit_package_query: The limit_package_query of this EntitlementsRefresh. # noqa: E501 :type: str """ @@ -322,22 +326,22 @@ def limit_package_query(self, limit_package_query): @property def limit_path_query(self): - """ - Gets the limit_path_query of this EntitlementsRefresh. - The path-based search query to apply to restrict downloads to. This supports boolean logic operators such as OR/AND/NOT and parentheses for grouping. The path evaluated does not include the domain name, the namespace, the entitlement code used, the package format, etc. and it always starts with a forward slash. + """Gets the limit_path_query of this EntitlementsRefresh. # noqa: E501 + + The path-based search query to apply to restrict downloads to. This supports boolean logic operators such as OR/AND/NOT and parentheses for grouping. The path evaluated does not include the domain name, the namespace, the entitlement code used, the package format, etc. and it always starts with a forward slash. # noqa: E501 - :return: The limit_path_query of this EntitlementsRefresh. + :return: The limit_path_query of this EntitlementsRefresh. # noqa: E501 :rtype: str """ return self._limit_path_query @limit_path_query.setter def limit_path_query(self, limit_path_query): - """ - Sets the limit_path_query of this EntitlementsRefresh. - The path-based search query to apply to restrict downloads to. This supports boolean logic operators such as OR/AND/NOT and parentheses for grouping. The path evaluated does not include the domain name, the namespace, the entitlement code used, the package format, etc. and it always starts with a forward slash. + """Sets the limit_path_query of this EntitlementsRefresh. - :param limit_path_query: The limit_path_query of this EntitlementsRefresh. + The path-based search query to apply to restrict downloads to. This supports boolean logic operators such as OR/AND/NOT and parentheses for grouping. The path evaluated does not include the domain name, the namespace, the entitlement code used, the package format, etc. and it always starts with a forward slash. # noqa: E501 + + :param limit_path_query: The limit_path_query of this EntitlementsRefresh. # noqa: E501 :type: str """ @@ -345,22 +349,22 @@ def limit_path_query(self, limit_path_query): @property def metadata(self): - """ - Gets the metadata of this EntitlementsRefresh. - None + """Gets the metadata of this EntitlementsRefresh. # noqa: E501 - :return: The metadata of this EntitlementsRefresh. + None # noqa: E501 + + :return: The metadata of this EntitlementsRefresh. # noqa: E501 :rtype: object """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this EntitlementsRefresh. - None + """Sets the metadata of this EntitlementsRefresh. + + None # noqa: E501 - :param metadata: The metadata of this EntitlementsRefresh. + :param metadata: The metadata of this EntitlementsRefresh. # noqa: E501 :type: object """ @@ -368,22 +372,22 @@ def metadata(self, metadata): @property def scheduled_reset_at(self): - """ - Gets the scheduled_reset_at of this EntitlementsRefresh. - The time at which the scheduled reset period has elapsed and the token limits were automatically reset to zero. + """Gets the scheduled_reset_at of this EntitlementsRefresh. # noqa: E501 + + The time at which the scheduled reset period has elapsed and the token limits were automatically reset to zero. # noqa: E501 - :return: The scheduled_reset_at of this EntitlementsRefresh. + :return: The scheduled_reset_at of this EntitlementsRefresh. # noqa: E501 :rtype: str """ return self._scheduled_reset_at @scheduled_reset_at.setter def scheduled_reset_at(self, scheduled_reset_at): - """ - Sets the scheduled_reset_at of this EntitlementsRefresh. - The time at which the scheduled reset period has elapsed and the token limits were automatically reset to zero. + """Sets the scheduled_reset_at of this EntitlementsRefresh. + + The time at which the scheduled reset period has elapsed and the token limits were automatically reset to zero. # noqa: E501 - :param scheduled_reset_at: The scheduled_reset_at of this EntitlementsRefresh. + :param scheduled_reset_at: The scheduled_reset_at of this EntitlementsRefresh. # noqa: E501 :type: str """ @@ -391,22 +395,22 @@ def scheduled_reset_at(self, scheduled_reset_at): @property def scheduled_reset_period(self): - """ - Gets the scheduled_reset_period of this EntitlementsRefresh. - None + """Gets the scheduled_reset_period of this EntitlementsRefresh. # noqa: E501 + + None # noqa: E501 - :return: The scheduled_reset_period of this EntitlementsRefresh. + :return: The scheduled_reset_period of this EntitlementsRefresh. # noqa: E501 :rtype: str """ return self._scheduled_reset_period @scheduled_reset_period.setter def scheduled_reset_period(self, scheduled_reset_period): - """ - Sets the scheduled_reset_period of this EntitlementsRefresh. - None + """Sets the scheduled_reset_period of this EntitlementsRefresh. + + None # noqa: E501 - :param scheduled_reset_period: The scheduled_reset_period of this EntitlementsRefresh. + :param scheduled_reset_period: The scheduled_reset_period of this EntitlementsRefresh. # noqa: E501 :type: str """ @@ -414,34 +418,32 @@ def scheduled_reset_period(self, scheduled_reset_period): @property def token(self): - """ - Gets the token of this EntitlementsRefresh. - None + """Gets the token of this EntitlementsRefresh. # noqa: E501 - :return: The token of this EntitlementsRefresh. + None # noqa: E501 + + :return: The token of this EntitlementsRefresh. # noqa: E501 :rtype: str """ return self._token @token.setter def token(self, token): - """ - Sets the token of this EntitlementsRefresh. - None + """Sets the token of this EntitlementsRefresh. - :param token: The token of this EntitlementsRefresh. + None # noqa: E501 + + :param token: The token of this EntitlementsRefresh. # noqa: E501 :type: str """ self._token = token def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -458,32 +460,30 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(EntitlementsRefresh, dict): + for key, value in self.items(): + result[key] = value return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, EntitlementsRefresh): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other + """Returns true if both objects are not equal""" + if not isinstance(other, EntitlementsRefresh): + return True + + return self.to_dict() != other.to_dict() diff --git a/bindings/python/src/cloudsmith_api/models/entitlements_sync.py b/bindings/python/src/cloudsmith_api/models/entitlements_sync.py index eda1601c..ad21bf68 100644 --- a/bindings/python/src/cloudsmith_api/models/entitlements_sync.py +++ b/bindings/python/src/cloudsmith_api/models/entitlements_sync.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -11,18 +11,20 @@ """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration class EntitlementsSync(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -38,47 +40,47 @@ class EntitlementsSync(object): 'source': 'source' } - def __init__(self, source=None): - """ - EntitlementsSync - a model defined in Swagger - """ + def __init__(self, source=None, _configuration=None): # noqa: E501 + """EntitlementsSync - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._source = None + self.discriminator = None self.source = source @property def source(self): - """ - Gets the source of this EntitlementsSync. - The source repository slug (in the same owner namespace). + """Gets the source of this EntitlementsSync. # noqa: E501 + + The source repository slug (in the same owner namespace). # noqa: E501 - :return: The source of this EntitlementsSync. + :return: The source of this EntitlementsSync. # noqa: E501 :rtype: str """ return self._source @source.setter def source(self, source): - """ - Sets the source of this EntitlementsSync. - The source repository slug (in the same owner namespace). + """Sets the source of this EntitlementsSync. + + The source repository slug (in the same owner namespace). # noqa: E501 - :param source: The source of this EntitlementsSync. + :param source: The source of this EntitlementsSync. # noqa: E501 :type: str """ - if source is None: - raise ValueError("Invalid value for `source`, must not be `None`") + if self._configuration.client_side_validation and source is None: + raise ValueError("Invalid value for `source`, must not be `None`") # noqa: E501 self._source = source def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -95,32 +97,30 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(EntitlementsSync, dict): + for key, value in self.items(): + result[key] = value return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, EntitlementsSync): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other + """Returns true if both objects are not equal""" + if not isinstance(other, EntitlementsSync): + return True + + return self.to_dict() != other.to_dict() diff --git a/bindings/python/src/cloudsmith_api/models/files_abort.py b/bindings/python/src/cloudsmith_api/models/files_abort.py index 0205424c..6223ebf0 100644 --- a/bindings/python/src/cloudsmith_api/models/files_abort.py +++ b/bindings/python/src/cloudsmith_api/models/files_abort.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -11,18 +11,20 @@ """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration class FilesAbort(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -44,67 +46,69 @@ class FilesAbort(object): 'sha256_checksum': 'sha256_checksum' } - def __init__(self, filename=None, md5_checksum=None, method=None, sha256_checksum=None): - """ - FilesAbort - a model defined in Swagger - """ + def __init__(self, filename=None, md5_checksum=None, method=None, sha256_checksum=None, _configuration=None): # noqa: E501 + """FilesAbort - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._filename = None self._md5_checksum = None self._method = None self._sha256_checksum = None + self.discriminator = None self.filename = filename if md5_checksum is not None: - self.md5_checksum = md5_checksum + self.md5_checksum = md5_checksum if method is not None: - self.method = method + self.method = method if sha256_checksum is not None: - self.sha256_checksum = sha256_checksum + self.sha256_checksum = sha256_checksum @property def filename(self): - """ - Gets the filename of this FilesAbort. - Filename for the package file upload. + """Gets the filename of this FilesAbort. # noqa: E501 + + Filename for the package file upload. # noqa: E501 - :return: The filename of this FilesAbort. + :return: The filename of this FilesAbort. # noqa: E501 :rtype: str """ return self._filename @filename.setter def filename(self, filename): - """ - Sets the filename of this FilesAbort. - Filename for the package file upload. + """Sets the filename of this FilesAbort. + + Filename for the package file upload. # noqa: E501 - :param filename: The filename of this FilesAbort. + :param filename: The filename of this FilesAbort. # noqa: E501 :type: str """ - if filename is None: - raise ValueError("Invalid value for `filename`, must not be `None`") + if self._configuration.client_side_validation and filename is None: + raise ValueError("Invalid value for `filename`, must not be `None`") # noqa: E501 self._filename = filename @property def md5_checksum(self): - """ - Gets the md5_checksum of this FilesAbort. - MD5 checksum for a POST-based package file upload. + """Gets the md5_checksum of this FilesAbort. # noqa: E501 - :return: The md5_checksum of this FilesAbort. + MD5 checksum for a POST-based package file upload. # noqa: E501 + + :return: The md5_checksum of this FilesAbort. # noqa: E501 :rtype: str """ return self._md5_checksum @md5_checksum.setter def md5_checksum(self, md5_checksum): - """ - Sets the md5_checksum of this FilesAbort. - MD5 checksum for a POST-based package file upload. + """Sets the md5_checksum of this FilesAbort. - :param md5_checksum: The md5_checksum of this FilesAbort. + MD5 checksum for a POST-based package file upload. # noqa: E501 + + :param md5_checksum: The md5_checksum of this FilesAbort. # noqa: E501 :type: str """ @@ -112,22 +116,22 @@ def md5_checksum(self, md5_checksum): @property def method(self): - """ - Gets the method of this FilesAbort. - The method to use for package file upload. + """Gets the method of this FilesAbort. # noqa: E501 - :return: The method of this FilesAbort. + The method to use for package file upload. # noqa: E501 + + :return: The method of this FilesAbort. # noqa: E501 :rtype: str """ return self._method @method.setter def method(self, method): - """ - Sets the method of this FilesAbort. - The method to use for package file upload. + """Sets the method of this FilesAbort. - :param method: The method of this FilesAbort. + The method to use for package file upload. # noqa: E501 + + :param method: The method of this FilesAbort. # noqa: E501 :type: str """ @@ -135,34 +139,32 @@ def method(self, method): @property def sha256_checksum(self): - """ - Gets the sha256_checksum of this FilesAbort. - SHA256 checksum for a PUT-based package file upload. + """Gets the sha256_checksum of this FilesAbort. # noqa: E501 + + SHA256 checksum for a PUT-based package file upload. # noqa: E501 - :return: The sha256_checksum of this FilesAbort. + :return: The sha256_checksum of this FilesAbort. # noqa: E501 :rtype: str """ return self._sha256_checksum @sha256_checksum.setter def sha256_checksum(self, sha256_checksum): - """ - Sets the sha256_checksum of this FilesAbort. - SHA256 checksum for a PUT-based package file upload. + """Sets the sha256_checksum of this FilesAbort. + + SHA256 checksum for a PUT-based package file upload. # noqa: E501 - :param sha256_checksum: The sha256_checksum of this FilesAbort. + :param sha256_checksum: The sha256_checksum of this FilesAbort. # noqa: E501 :type: str """ self._sha256_checksum = sha256_checksum def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -179,32 +181,30 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(FilesAbort, dict): + for key, value in self.items(): + result[key] = value return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, FilesAbort): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other + """Returns true if both objects are not equal""" + if not isinstance(other, FilesAbort): + return True + + return self.to_dict() != other.to_dict() diff --git a/bindings/python/src/cloudsmith_api/models/files_complete.py b/bindings/python/src/cloudsmith_api/models/files_complete.py index cf07a455..03f9f0ae 100644 --- a/bindings/python/src/cloudsmith_api/models/files_complete.py +++ b/bindings/python/src/cloudsmith_api/models/files_complete.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -11,18 +11,20 @@ """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration class FilesComplete(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -44,67 +46,69 @@ class FilesComplete(object): 'sha256_checksum': 'sha256_checksum' } - def __init__(self, filename=None, md5_checksum=None, method=None, sha256_checksum=None): - """ - FilesComplete - a model defined in Swagger - """ + def __init__(self, filename=None, md5_checksum=None, method=None, sha256_checksum=None, _configuration=None): # noqa: E501 + """FilesComplete - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._filename = None self._md5_checksum = None self._method = None self._sha256_checksum = None + self.discriminator = None self.filename = filename if md5_checksum is not None: - self.md5_checksum = md5_checksum + self.md5_checksum = md5_checksum if method is not None: - self.method = method + self.method = method if sha256_checksum is not None: - self.sha256_checksum = sha256_checksum + self.sha256_checksum = sha256_checksum @property def filename(self): - """ - Gets the filename of this FilesComplete. - Filename for the package file upload. + """Gets the filename of this FilesComplete. # noqa: E501 + + Filename for the package file upload. # noqa: E501 - :return: The filename of this FilesComplete. + :return: The filename of this FilesComplete. # noqa: E501 :rtype: str """ return self._filename @filename.setter def filename(self, filename): - """ - Sets the filename of this FilesComplete. - Filename for the package file upload. + """Sets the filename of this FilesComplete. + + Filename for the package file upload. # noqa: E501 - :param filename: The filename of this FilesComplete. + :param filename: The filename of this FilesComplete. # noqa: E501 :type: str """ - if filename is None: - raise ValueError("Invalid value for `filename`, must not be `None`") + if self._configuration.client_side_validation and filename is None: + raise ValueError("Invalid value for `filename`, must not be `None`") # noqa: E501 self._filename = filename @property def md5_checksum(self): - """ - Gets the md5_checksum of this FilesComplete. - MD5 checksum for a POST-based package file upload. + """Gets the md5_checksum of this FilesComplete. # noqa: E501 - :return: The md5_checksum of this FilesComplete. + MD5 checksum for a POST-based package file upload. # noqa: E501 + + :return: The md5_checksum of this FilesComplete. # noqa: E501 :rtype: str """ return self._md5_checksum @md5_checksum.setter def md5_checksum(self, md5_checksum): - """ - Sets the md5_checksum of this FilesComplete. - MD5 checksum for a POST-based package file upload. + """Sets the md5_checksum of this FilesComplete. - :param md5_checksum: The md5_checksum of this FilesComplete. + MD5 checksum for a POST-based package file upload. # noqa: E501 + + :param md5_checksum: The md5_checksum of this FilesComplete. # noqa: E501 :type: str """ @@ -112,22 +116,22 @@ def md5_checksum(self, md5_checksum): @property def method(self): - """ - Gets the method of this FilesComplete. - The method to use for package file upload. + """Gets the method of this FilesComplete. # noqa: E501 - :return: The method of this FilesComplete. + The method to use for package file upload. # noqa: E501 + + :return: The method of this FilesComplete. # noqa: E501 :rtype: str """ return self._method @method.setter def method(self, method): - """ - Sets the method of this FilesComplete. - The method to use for package file upload. + """Sets the method of this FilesComplete. - :param method: The method of this FilesComplete. + The method to use for package file upload. # noqa: E501 + + :param method: The method of this FilesComplete. # noqa: E501 :type: str """ @@ -135,34 +139,32 @@ def method(self, method): @property def sha256_checksum(self): - """ - Gets the sha256_checksum of this FilesComplete. - SHA256 checksum for a PUT-based package file upload. + """Gets the sha256_checksum of this FilesComplete. # noqa: E501 + + SHA256 checksum for a PUT-based package file upload. # noqa: E501 - :return: The sha256_checksum of this FilesComplete. + :return: The sha256_checksum of this FilesComplete. # noqa: E501 :rtype: str """ return self._sha256_checksum @sha256_checksum.setter def sha256_checksum(self, sha256_checksum): - """ - Sets the sha256_checksum of this FilesComplete. - SHA256 checksum for a PUT-based package file upload. + """Sets the sha256_checksum of this FilesComplete. + + SHA256 checksum for a PUT-based package file upload. # noqa: E501 - :param sha256_checksum: The sha256_checksum of this FilesComplete. + :param sha256_checksum: The sha256_checksum of this FilesComplete. # noqa: E501 :type: str """ self._sha256_checksum = sha256_checksum def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -179,32 +181,30 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(FilesComplete, dict): + for key, value in self.items(): + result[key] = value return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, FilesComplete): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other + """Returns true if both objects are not equal""" + if not isinstance(other, FilesComplete): + return True + + return self.to_dict() != other.to_dict() diff --git a/bindings/python/src/cloudsmith_api/models/files_create.py b/bindings/python/src/cloudsmith_api/models/files_create.py index 423f3d5f..e7919ed1 100644 --- a/bindings/python/src/cloudsmith_api/models/files_create.py +++ b/bindings/python/src/cloudsmith_api/models/files_create.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -11,18 +11,20 @@ """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration class FilesCreate(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -44,67 +46,69 @@ class FilesCreate(object): 'sha256_checksum': 'sha256_checksum' } - def __init__(self, filename=None, md5_checksum=None, method=None, sha256_checksum=None): - """ - FilesCreate - a model defined in Swagger - """ + def __init__(self, filename=None, md5_checksum=None, method=None, sha256_checksum=None, _configuration=None): # noqa: E501 + """FilesCreate - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._filename = None self._md5_checksum = None self._method = None self._sha256_checksum = None + self.discriminator = None self.filename = filename if md5_checksum is not None: - self.md5_checksum = md5_checksum + self.md5_checksum = md5_checksum if method is not None: - self.method = method + self.method = method if sha256_checksum is not None: - self.sha256_checksum = sha256_checksum + self.sha256_checksum = sha256_checksum @property def filename(self): - """ - Gets the filename of this FilesCreate. - Filename for the package file upload. + """Gets the filename of this FilesCreate. # noqa: E501 + + Filename for the package file upload. # noqa: E501 - :return: The filename of this FilesCreate. + :return: The filename of this FilesCreate. # noqa: E501 :rtype: str """ return self._filename @filename.setter def filename(self, filename): - """ - Sets the filename of this FilesCreate. - Filename for the package file upload. + """Sets the filename of this FilesCreate. + + Filename for the package file upload. # noqa: E501 - :param filename: The filename of this FilesCreate. + :param filename: The filename of this FilesCreate. # noqa: E501 :type: str """ - if filename is None: - raise ValueError("Invalid value for `filename`, must not be `None`") + if self._configuration.client_side_validation and filename is None: + raise ValueError("Invalid value for `filename`, must not be `None`") # noqa: E501 self._filename = filename @property def md5_checksum(self): - """ - Gets the md5_checksum of this FilesCreate. - MD5 checksum for a POST-based package file upload. + """Gets the md5_checksum of this FilesCreate. # noqa: E501 - :return: The md5_checksum of this FilesCreate. + MD5 checksum for a POST-based package file upload. # noqa: E501 + + :return: The md5_checksum of this FilesCreate. # noqa: E501 :rtype: str """ return self._md5_checksum @md5_checksum.setter def md5_checksum(self, md5_checksum): - """ - Sets the md5_checksum of this FilesCreate. - MD5 checksum for a POST-based package file upload. + """Sets the md5_checksum of this FilesCreate. - :param md5_checksum: The md5_checksum of this FilesCreate. + MD5 checksum for a POST-based package file upload. # noqa: E501 + + :param md5_checksum: The md5_checksum of this FilesCreate. # noqa: E501 :type: str """ @@ -112,22 +116,22 @@ def md5_checksum(self, md5_checksum): @property def method(self): - """ - Gets the method of this FilesCreate. - The method to use for package file upload. + """Gets the method of this FilesCreate. # noqa: E501 - :return: The method of this FilesCreate. + The method to use for package file upload. # noqa: E501 + + :return: The method of this FilesCreate. # noqa: E501 :rtype: str """ return self._method @method.setter def method(self, method): - """ - Sets the method of this FilesCreate. - The method to use for package file upload. + """Sets the method of this FilesCreate. - :param method: The method of this FilesCreate. + The method to use for package file upload. # noqa: E501 + + :param method: The method of this FilesCreate. # noqa: E501 :type: str """ @@ -135,34 +139,32 @@ def method(self, method): @property def sha256_checksum(self): - """ - Gets the sha256_checksum of this FilesCreate. - SHA256 checksum for a PUT-based package file upload. + """Gets the sha256_checksum of this FilesCreate. # noqa: E501 + + SHA256 checksum for a PUT-based package file upload. # noqa: E501 - :return: The sha256_checksum of this FilesCreate. + :return: The sha256_checksum of this FilesCreate. # noqa: E501 :rtype: str """ return self._sha256_checksum @sha256_checksum.setter def sha256_checksum(self, sha256_checksum): - """ - Sets the sha256_checksum of this FilesCreate. - SHA256 checksum for a PUT-based package file upload. + """Sets the sha256_checksum of this FilesCreate. + + SHA256 checksum for a PUT-based package file upload. # noqa: E501 - :param sha256_checksum: The sha256_checksum of this FilesCreate. + :param sha256_checksum: The sha256_checksum of this FilesCreate. # noqa: E501 :type: str """ self._sha256_checksum = sha256_checksum def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -179,32 +181,30 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(FilesCreate, dict): + for key, value in self.items(): + result[key] = value return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, FilesCreate): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other + """Returns true if both objects are not equal""" + if not isinstance(other, FilesCreate): + return True + + return self.to_dict() != other.to_dict() diff --git a/bindings/python/src/cloudsmith_api/models/files_validate.py b/bindings/python/src/cloudsmith_api/models/files_validate.py index 589a4f91..579c08c0 100644 --- a/bindings/python/src/cloudsmith_api/models/files_validate.py +++ b/bindings/python/src/cloudsmith_api/models/files_validate.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -11,18 +11,20 @@ """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration class FilesValidate(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -44,67 +46,69 @@ class FilesValidate(object): 'sha256_checksum': 'sha256_checksum' } - def __init__(self, filename=None, md5_checksum=None, method=None, sha256_checksum=None): - """ - FilesValidate - a model defined in Swagger - """ + def __init__(self, filename=None, md5_checksum=None, method=None, sha256_checksum=None, _configuration=None): # noqa: E501 + """FilesValidate - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._filename = None self._md5_checksum = None self._method = None self._sha256_checksum = None + self.discriminator = None self.filename = filename if md5_checksum is not None: - self.md5_checksum = md5_checksum + self.md5_checksum = md5_checksum if method is not None: - self.method = method + self.method = method if sha256_checksum is not None: - self.sha256_checksum = sha256_checksum + self.sha256_checksum = sha256_checksum @property def filename(self): - """ - Gets the filename of this FilesValidate. - Filename for the package file upload. + """Gets the filename of this FilesValidate. # noqa: E501 + + Filename for the package file upload. # noqa: E501 - :return: The filename of this FilesValidate. + :return: The filename of this FilesValidate. # noqa: E501 :rtype: str """ return self._filename @filename.setter def filename(self, filename): - """ - Sets the filename of this FilesValidate. - Filename for the package file upload. + """Sets the filename of this FilesValidate. + + Filename for the package file upload. # noqa: E501 - :param filename: The filename of this FilesValidate. + :param filename: The filename of this FilesValidate. # noqa: E501 :type: str """ - if filename is None: - raise ValueError("Invalid value for `filename`, must not be `None`") + if self._configuration.client_side_validation and filename is None: + raise ValueError("Invalid value for `filename`, must not be `None`") # noqa: E501 self._filename = filename @property def md5_checksum(self): - """ - Gets the md5_checksum of this FilesValidate. - MD5 checksum for a POST-based package file upload. + """Gets the md5_checksum of this FilesValidate. # noqa: E501 - :return: The md5_checksum of this FilesValidate. + MD5 checksum for a POST-based package file upload. # noqa: E501 + + :return: The md5_checksum of this FilesValidate. # noqa: E501 :rtype: str """ return self._md5_checksum @md5_checksum.setter def md5_checksum(self, md5_checksum): - """ - Sets the md5_checksum of this FilesValidate. - MD5 checksum for a POST-based package file upload. + """Sets the md5_checksum of this FilesValidate. - :param md5_checksum: The md5_checksum of this FilesValidate. + MD5 checksum for a POST-based package file upload. # noqa: E501 + + :param md5_checksum: The md5_checksum of this FilesValidate. # noqa: E501 :type: str """ @@ -112,22 +116,22 @@ def md5_checksum(self, md5_checksum): @property def method(self): - """ - Gets the method of this FilesValidate. - The method to use for package file upload. + """Gets the method of this FilesValidate. # noqa: E501 - :return: The method of this FilesValidate. + The method to use for package file upload. # noqa: E501 + + :return: The method of this FilesValidate. # noqa: E501 :rtype: str """ return self._method @method.setter def method(self, method): - """ - Sets the method of this FilesValidate. - The method to use for package file upload. + """Sets the method of this FilesValidate. - :param method: The method of this FilesValidate. + The method to use for package file upload. # noqa: E501 + + :param method: The method of this FilesValidate. # noqa: E501 :type: str """ @@ -135,34 +139,32 @@ def method(self, method): @property def sha256_checksum(self): - """ - Gets the sha256_checksum of this FilesValidate. - SHA256 checksum for a PUT-based package file upload. + """Gets the sha256_checksum of this FilesValidate. # noqa: E501 + + SHA256 checksum for a PUT-based package file upload. # noqa: E501 - :return: The sha256_checksum of this FilesValidate. + :return: The sha256_checksum of this FilesValidate. # noqa: E501 :rtype: str """ return self._sha256_checksum @sha256_checksum.setter def sha256_checksum(self, sha256_checksum): - """ - Sets the sha256_checksum of this FilesValidate. - SHA256 checksum for a PUT-based package file upload. + """Sets the sha256_checksum of this FilesValidate. + + SHA256 checksum for a PUT-based package file upload. # noqa: E501 - :param sha256_checksum: The sha256_checksum of this FilesValidate. + :param sha256_checksum: The sha256_checksum of this FilesValidate. # noqa: E501 :type: str """ self._sha256_checksum = sha256_checksum def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -179,32 +181,30 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(FilesValidate, dict): + for key, value in self.items(): + result[key] = value return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, FilesValidate): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other + """Returns true if both objects are not equal""" + if not isinstance(other, FilesValidate): + return True + + return self.to_dict() != other.to_dict() diff --git a/bindings/python/src/cloudsmith_api/models/format.py b/bindings/python/src/cloudsmith_api/models/format.py index c29f38dd..c697aa75 100644 --- a/bindings/python/src/cloudsmith_api/models/format.py +++ b/bindings/python/src/cloudsmith_api/models/format.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -11,18 +11,20 @@ """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration class Format(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -54,10 +56,11 @@ class Format(object): 'supports': 'supports' } - def __init__(self, description=None, distributions=None, extensions=None, name=None, premium=None, premium_plan_id=None, premium_plan_name=None, slug=None, supports=None): - """ - Format - a model defined in Swagger - """ + def __init__(self, description=None, distributions=None, extensions=None, name=None, premium=None, premium_plan_id=None, premium_plan_name=None, slug=None, supports=None, _configuration=None): # noqa: E501 + """Format - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._description = None self._distributions = None @@ -68,63 +71,64 @@ def __init__(self, description=None, distributions=None, extensions=None, name=N self._premium_plan_name = None self._slug = None self._supports = None + self.discriminator = None self.description = description if distributions is not None: - self.distributions = distributions + self.distributions = distributions self.extensions = extensions self.name = name self.premium = premium if premium_plan_id is not None: - self.premium_plan_id = premium_plan_id + self.premium_plan_id = premium_plan_id if premium_plan_name is not None: - self.premium_plan_name = premium_plan_name + self.premium_plan_name = premium_plan_name self.slug = slug self.supports = supports @property def description(self): - """ - Gets the description of this Format. - Description of the package format + """Gets the description of this Format. # noqa: E501 + + Description of the package format # noqa: E501 - :return: The description of this Format. + :return: The description of this Format. # noqa: E501 :rtype: str """ return self._description @description.setter def description(self, description): - """ - Sets the description of this Format. - Description of the package format + """Sets the description of this Format. + + Description of the package format # noqa: E501 - :param description: The description of this Format. + :param description: The description of this Format. # noqa: E501 :type: str """ - if description is None: - raise ValueError("Invalid value for `description`, must not be `None`") + if self._configuration.client_side_validation and description is None: + raise ValueError("Invalid value for `description`, must not be `None`") # noqa: E501 self._description = description @property def distributions(self): - """ - Gets the distributions of this Format. - The distributions supported by this package format + """Gets the distributions of this Format. # noqa: E501 + + The distributions supported by this package format # noqa: E501 - :return: The distributions of this Format. + :return: The distributions of this Format. # noqa: E501 :rtype: list[FormatsDistributions] """ return self._distributions @distributions.setter def distributions(self, distributions): - """ - Sets the distributions of this Format. - The distributions supported by this package format + """Sets the distributions of this Format. - :param distributions: The distributions of this Format. + The distributions supported by this package format # noqa: E501 + + :param distributions: The distributions of this Format. # noqa: E501 :type: list[FormatsDistributions] """ @@ -132,97 +136,97 @@ def distributions(self, distributions): @property def extensions(self): - """ - Gets the extensions of this Format. - A non-exhaustive list of extensions supported + """Gets the extensions of this Format. # noqa: E501 - :return: The extensions of this Format. + A non-exhaustive list of extensions supported # noqa: E501 + + :return: The extensions of this Format. # noqa: E501 :rtype: list[str] """ return self._extensions @extensions.setter def extensions(self, extensions): - """ - Sets the extensions of this Format. - A non-exhaustive list of extensions supported + """Sets the extensions of this Format. - :param extensions: The extensions of this Format. + A non-exhaustive list of extensions supported # noqa: E501 + + :param extensions: The extensions of this Format. # noqa: E501 :type: list[str] """ - if extensions is None: - raise ValueError("Invalid value for `extensions`, must not be `None`") + if self._configuration.client_side_validation and extensions is None: + raise ValueError("Invalid value for `extensions`, must not be `None`") # noqa: E501 self._extensions = extensions @property def name(self): - """ - Gets the name of this Format. - Name for the package format + """Gets the name of this Format. # noqa: E501 + + Name for the package format # noqa: E501 - :return: The name of this Format. + :return: The name of this Format. # noqa: E501 :rtype: str """ return self._name @name.setter def name(self, name): - """ - Sets the name of this Format. - Name for the package format + """Sets the name of this Format. + + Name for the package format # noqa: E501 - :param name: The name of this Format. + :param name: The name of this Format. # noqa: E501 :type: str """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") + if self._configuration.client_side_validation and name is None: + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 self._name = name @property def premium(self): - """ - Gets the premium of this Format. - If true the package format is a premium-only feature + """Gets the premium of this Format. # noqa: E501 + + If true the package format is a premium-only feature # noqa: E501 - :return: The premium of this Format. + :return: The premium of this Format. # noqa: E501 :rtype: bool """ return self._premium @premium.setter def premium(self, premium): - """ - Sets the premium of this Format. - If true the package format is a premium-only feature + """Sets the premium of this Format. + + If true the package format is a premium-only feature # noqa: E501 - :param premium: The premium of this Format. + :param premium: The premium of this Format. # noqa: E501 :type: bool """ - if premium is None: - raise ValueError("Invalid value for `premium`, must not be `None`") + if self._configuration.client_side_validation and premium is None: + raise ValueError("Invalid value for `premium`, must not be `None`") # noqa: E501 self._premium = premium @property def premium_plan_id(self): - """ - Gets the premium_plan_id of this Format. - The minimum plan id required for this package format + """Gets the premium_plan_id of this Format. # noqa: E501 - :return: The premium_plan_id of this Format. + The minimum plan id required for this package format # noqa: E501 + + :return: The premium_plan_id of this Format. # noqa: E501 :rtype: str """ return self._premium_plan_id @premium_plan_id.setter def premium_plan_id(self, premium_plan_id): - """ - Sets the premium_plan_id of this Format. - The minimum plan id required for this package format + """Sets the premium_plan_id of this Format. - :param premium_plan_id: The premium_plan_id of this Format. + The minimum plan id required for this package format # noqa: E501 + + :param premium_plan_id: The premium_plan_id of this Format. # noqa: E501 :type: str """ @@ -230,22 +234,22 @@ def premium_plan_id(self, premium_plan_id): @property def premium_plan_name(self): - """ - Gets the premium_plan_name of this Format. - The minimum plan name required for this package format + """Gets the premium_plan_name of this Format. # noqa: E501 - :return: The premium_plan_name of this Format. + The minimum plan name required for this package format # noqa: E501 + + :return: The premium_plan_name of this Format. # noqa: E501 :rtype: str """ return self._premium_plan_name @premium_plan_name.setter def premium_plan_name(self, premium_plan_name): - """ - Sets the premium_plan_name of this Format. - The minimum plan name required for this package format + """Sets the premium_plan_name of this Format. + + The minimum plan name required for this package format # noqa: E501 - :param premium_plan_name: The premium_plan_name of this Format. + :param premium_plan_name: The premium_plan_name of this Format. # noqa: E501 :type: str """ @@ -253,61 +257,59 @@ def premium_plan_name(self, premium_plan_name): @property def slug(self): - """ - Gets the slug of this Format. - Slug for the package format + """Gets the slug of this Format. # noqa: E501 + + Slug for the package format # noqa: E501 - :return: The slug of this Format. + :return: The slug of this Format. # noqa: E501 :rtype: str """ return self._slug @slug.setter def slug(self, slug): - """ - Sets the slug of this Format. - Slug for the package format + """Sets the slug of this Format. + + Slug for the package format # noqa: E501 - :param slug: The slug of this Format. + :param slug: The slug of this Format. # noqa: E501 :type: str """ - if slug is None: - raise ValueError("Invalid value for `slug`, must not be `None`") + if self._configuration.client_side_validation and slug is None: + raise ValueError("Invalid value for `slug`, must not be `None`") # noqa: E501 self._slug = slug @property def supports(self): - """ - Gets the supports of this Format. - A set of what the package format supports + """Gets the supports of this Format. # noqa: E501 + + A set of what the package format supports # noqa: E501 - :return: The supports of this Format. + :return: The supports of this Format. # noqa: E501 :rtype: object """ return self._supports @supports.setter def supports(self, supports): - """ - Sets the supports of this Format. - A set of what the package format supports + """Sets the supports of this Format. - :param supports: The supports of this Format. + A set of what the package format supports # noqa: E501 + + :param supports: The supports of this Format. # noqa: E501 :type: object """ - if supports is None: - raise ValueError("Invalid value for `supports`, must not be `None`") + if self._configuration.client_side_validation and supports is None: + raise ValueError("Invalid value for `supports`, must not be `None`") # noqa: E501 self._supports = supports def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -324,32 +326,30 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(Format, dict): + for key, value in self.items(): + result[key] = value return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, Format): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other + """Returns true if both objects are not equal""" + if not isinstance(other, Format): + return True + + return self.to_dict() != other.to_dict() diff --git a/bindings/python/src/cloudsmith_api/models/formats_distributions.py b/bindings/python/src/cloudsmith_api/models/formats_distributions.py index 4ebf12d0..34440b97 100644 --- a/bindings/python/src/cloudsmith_api/models/formats_distributions.py +++ b/bindings/python/src/cloudsmith_api/models/formats_distributions.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -11,18 +11,20 @@ """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration class FormatsDistributions(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -44,43 +46,45 @@ class FormatsDistributions(object): 'variants': 'variants' } - def __init__(self, name=None, self_url=None, slug=None, variants=None): - """ - FormatsDistributions - a model defined in Swagger - """ + def __init__(self, name=None, self_url=None, slug=None, variants=None, _configuration=None): # noqa: E501 + """FormatsDistributions - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._name = None self._self_url = None self._slug = None self._variants = None + self.discriminator = None if name is not None: - self.name = name + self.name = name if self_url is not None: - self.self_url = self_url + self.self_url = self_url if slug is not None: - self.slug = slug + self.slug = slug if variants is not None: - self.variants = variants + self.variants = variants @property def name(self): - """ - Gets the name of this FormatsDistributions. - + """Gets the name of this FormatsDistributions. # noqa: E501 + + # noqa: E501 - :return: The name of this FormatsDistributions. + :return: The name of this FormatsDistributions. # noqa: E501 :rtype: str """ return self._name @name.setter def name(self, name): - """ - Sets the name of this FormatsDistributions. - + """Sets the name of this FormatsDistributions. + + # noqa: E501 - :param name: The name of this FormatsDistributions. + :param name: The name of this FormatsDistributions. # noqa: E501 :type: str """ @@ -88,22 +92,22 @@ def name(self, name): @property def self_url(self): - """ - Gets the self_url of this FormatsDistributions. - + """Gets the self_url of this FormatsDistributions. # noqa: E501 - :return: The self_url of this FormatsDistributions. + # noqa: E501 + + :return: The self_url of this FormatsDistributions. # noqa: E501 :rtype: str """ return self._self_url @self_url.setter def self_url(self, self_url): - """ - Sets the self_url of this FormatsDistributions. - + """Sets the self_url of this FormatsDistributions. - :param self_url: The self_url of this FormatsDistributions. + # noqa: E501 + + :param self_url: The self_url of this FormatsDistributions. # noqa: E501 :type: str """ @@ -111,22 +115,22 @@ def self_url(self, self_url): @property def slug(self): - """ - Gets the slug of this FormatsDistributions. - The slug identifier for this distribution + """Gets the slug of this FormatsDistributions. # noqa: E501 - :return: The slug of this FormatsDistributions. + The slug identifier for this distribution # noqa: E501 + + :return: The slug of this FormatsDistributions. # noqa: E501 :rtype: str """ return self._slug @slug.setter def slug(self, slug): - """ - Sets the slug of this FormatsDistributions. - The slug identifier for this distribution + """Sets the slug of this FormatsDistributions. - :param slug: The slug of this FormatsDistributions. + The slug identifier for this distribution # noqa: E501 + + :param slug: The slug of this FormatsDistributions. # noqa: E501 :type: str """ @@ -134,34 +138,32 @@ def slug(self, slug): @property def variants(self): - """ - Gets the variants of this FormatsDistributions. - + """Gets the variants of this FormatsDistributions. # noqa: E501 + + # noqa: E501 - :return: The variants of this FormatsDistributions. + :return: The variants of this FormatsDistributions. # noqa: E501 :rtype: str """ return self._variants @variants.setter def variants(self, variants): - """ - Sets the variants of this FormatsDistributions. - + """Sets the variants of this FormatsDistributions. + + # noqa: E501 - :param variants: The variants of this FormatsDistributions. + :param variants: The variants of this FormatsDistributions. # noqa: E501 :type: str """ self._variants = variants def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -178,32 +180,30 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(FormatsDistributions, dict): + for key, value in self.items(): + result[key] = value return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, FormatsDistributions): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other + """Returns true if both objects are not equal""" + if not isinstance(other, FormatsDistributions): + return True + + return self.to_dict() != other.to_dict() diff --git a/bindings/python/src/cloudsmith_api/models/maven_package_upload.py b/bindings/python/src/cloudsmith_api/models/maven_package_upload.py index 7b7fe6d0..65d51596 100644 --- a/bindings/python/src/cloudsmith_api/models/maven_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/maven_package_upload.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -11,18 +11,20 @@ """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration class MavenPackageUpload(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -170,10 +172,11 @@ class MavenPackageUpload(object): 'vulnerability_scan_results_url': 'vulnerability_scan_results_url' } - def __init__(self, architectures=None, artifact_id=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, distro=None, distro_version=None, downloads=None, epoch=None, extension=None, filename=None, files=None, format=None, format_url=None, group_id=None, identifier_perm=None, indexed=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, package_type=None, packaging=None, release=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status=None, security_scan_status_updated_at=None, self_html_url=None, self_url=None, signature_url=None, size=None, slug=None, slug_perm=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_immutable=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_scan_results_url=None): - """ - MavenPackageUpload - a model defined in Swagger - """ + def __init__(self, architectures=None, artifact_id=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, distro=None, distro_version=None, downloads=None, epoch=None, extension=None, filename=None, files=None, format=None, format_url=None, group_id=None, identifier_perm=None, indexed=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, package_type=None, packaging=None, release=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status=None, security_scan_status_updated_at=None, self_html_url=None, self_url=None, signature_url=None, size=None, slug=None, slug_perm=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_immutable=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 + """MavenPackageUpload - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._architectures = None self._artifact_id = None @@ -242,160 +245,161 @@ def __init__(self, architectures=None, artifact_id=None, cdn_url=None, checksum_ self._version = None self._version_orig = None self._vulnerability_scan_results_url = None + self.discriminator = None if architectures is not None: - self.architectures = architectures + self.architectures = architectures if artifact_id is not None: - self.artifact_id = artifact_id + self.artifact_id = artifact_id if cdn_url is not None: - self.cdn_url = cdn_url + self.cdn_url = cdn_url if checksum_md5 is not None: - self.checksum_md5 = checksum_md5 + self.checksum_md5 = checksum_md5 if checksum_sha1 is not None: - self.checksum_sha1 = checksum_sha1 + self.checksum_sha1 = checksum_sha1 if checksum_sha256 is not None: - self.checksum_sha256 = checksum_sha256 + self.checksum_sha256 = checksum_sha256 if checksum_sha512 is not None: - self.checksum_sha512 = checksum_sha512 + self.checksum_sha512 = checksum_sha512 if dependencies_checksum_md5 is not None: - self.dependencies_checksum_md5 = dependencies_checksum_md5 + self.dependencies_checksum_md5 = dependencies_checksum_md5 if dependencies_url is not None: - self.dependencies_url = dependencies_url + self.dependencies_url = dependencies_url if description is not None: - self.description = description + self.description = description if distro is not None: - self.distro = distro + self.distro = distro if distro_version is not None: - self.distro_version = distro_version + self.distro_version = distro_version if downloads is not None: - self.downloads = downloads + self.downloads = downloads if epoch is not None: - self.epoch = epoch + self.epoch = epoch if extension is not None: - self.extension = extension + self.extension = extension if filename is not None: - self.filename = filename + self.filename = filename if files is not None: - self.files = files + self.files = files if format is not None: - self.format = format + self.format = format if format_url is not None: - self.format_url = format_url + self.format_url = format_url if group_id is not None: - self.group_id = group_id + self.group_id = group_id if identifier_perm is not None: - self.identifier_perm = identifier_perm + self.identifier_perm = identifier_perm if indexed is not None: - self.indexed = indexed + self.indexed = indexed if is_sync_awaiting is not None: - self.is_sync_awaiting = is_sync_awaiting + self.is_sync_awaiting = is_sync_awaiting if is_sync_completed is not None: - self.is_sync_completed = is_sync_completed + self.is_sync_completed = is_sync_completed if is_sync_failed is not None: - self.is_sync_failed = is_sync_failed + self.is_sync_failed = is_sync_failed if is_sync_in_flight is not None: - self.is_sync_in_flight = is_sync_in_flight + self.is_sync_in_flight = is_sync_in_flight if is_sync_in_progress is not None: - self.is_sync_in_progress = is_sync_in_progress + self.is_sync_in_progress = is_sync_in_progress if license is not None: - self.license = license + self.license = license if name is not None: - self.name = name + self.name = name if namespace is not None: - self.namespace = namespace + self.namespace = namespace if namespace_url is not None: - self.namespace_url = namespace_url + self.namespace_url = namespace_url if num_files is not None: - self.num_files = num_files + self.num_files = num_files if package_type is not None: - self.package_type = package_type + self.package_type = package_type if packaging is not None: - self.packaging = packaging + self.packaging = packaging if release is not None: - self.release = release + self.release = release if repository is not None: - self.repository = repository + self.repository = repository if repository_url is not None: - self.repository_url = repository_url + self.repository_url = repository_url if security_scan_completed_at is not None: - self.security_scan_completed_at = security_scan_completed_at + self.security_scan_completed_at = security_scan_completed_at if security_scan_started_at is not None: - self.security_scan_started_at = security_scan_started_at + self.security_scan_started_at = security_scan_started_at if security_scan_status is not None: - self.security_scan_status = security_scan_status + self.security_scan_status = security_scan_status if security_scan_status_updated_at is not None: - self.security_scan_status_updated_at = security_scan_status_updated_at + self.security_scan_status_updated_at = security_scan_status_updated_at if self_html_url is not None: - self.self_html_url = self_html_url + self.self_html_url = self_html_url if self_url is not None: - self.self_url = self_url + self.self_url = self_url if signature_url is not None: - self.signature_url = signature_url + self.signature_url = signature_url if size is not None: - self.size = size + self.size = size if slug is not None: - self.slug = slug + self.slug = slug if slug_perm is not None: - self.slug_perm = slug_perm + self.slug_perm = slug_perm if stage is not None: - self.stage = stage + self.stage = stage if stage_str is not None: - self.stage_str = stage_str + self.stage_str = stage_str if stage_updated_at is not None: - self.stage_updated_at = stage_updated_at + self.stage_updated_at = stage_updated_at if status is not None: - self.status = status + self.status = status if status_reason is not None: - self.status_reason = status_reason + self.status_reason = status_reason if status_str is not None: - self.status_str = status_str + self.status_str = status_str if status_updated_at is not None: - self.status_updated_at = status_updated_at + self.status_updated_at = status_updated_at if status_url is not None: - self.status_url = status_url + self.status_url = status_url if subtype is not None: - self.subtype = subtype + self.subtype = subtype if summary is not None: - self.summary = summary + self.summary = summary if sync_finished_at is not None: - self.sync_finished_at = sync_finished_at + self.sync_finished_at = sync_finished_at if sync_progress is not None: - self.sync_progress = sync_progress + self.sync_progress = sync_progress if tags_immutable is not None: - self.tags_immutable = tags_immutable + self.tags_immutable = tags_immutable if type_display is not None: - self.type_display = type_display + self.type_display = type_display if uploaded_at is not None: - self.uploaded_at = uploaded_at + self.uploaded_at = uploaded_at if uploader is not None: - self.uploader = uploader + self.uploader = uploader if uploader_url is not None: - self.uploader_url = uploader_url + self.uploader_url = uploader_url if version is not None: - self.version = version + self.version = version if version_orig is not None: - self.version_orig = version_orig + self.version_orig = version_orig if vulnerability_scan_results_url is not None: - self.vulnerability_scan_results_url = vulnerability_scan_results_url + self.vulnerability_scan_results_url = vulnerability_scan_results_url @property def architectures(self): - """ - Gets the architectures of this MavenPackageUpload. - + """Gets the architectures of this MavenPackageUpload. # noqa: E501 + + # noqa: E501 - :return: The architectures of this MavenPackageUpload. + :return: The architectures of this MavenPackageUpload. # noqa: E501 :rtype: list[PackagesownerrepoArchitectures] """ return self._architectures @architectures.setter def architectures(self, architectures): - """ - Sets the architectures of this MavenPackageUpload. - + """Sets the architectures of this MavenPackageUpload. + + # noqa: E501 - :param architectures: The architectures of this MavenPackageUpload. + :param architectures: The architectures of this MavenPackageUpload. # noqa: E501 :type: list[PackagesownerrepoArchitectures] """ @@ -403,22 +407,22 @@ def architectures(self, architectures): @property def artifact_id(self): - """ - Gets the artifact_id of this MavenPackageUpload. - The ID of the artifact. + """Gets the artifact_id of this MavenPackageUpload. # noqa: E501 - :return: The artifact_id of this MavenPackageUpload. + The ID of the artifact. # noqa: E501 + + :return: The artifact_id of this MavenPackageUpload. # noqa: E501 :rtype: str """ return self._artifact_id @artifact_id.setter def artifact_id(self, artifact_id): - """ - Sets the artifact_id of this MavenPackageUpload. - The ID of the artifact. + """Sets the artifact_id of this MavenPackageUpload. - :param artifact_id: The artifact_id of this MavenPackageUpload. + The ID of the artifact. # noqa: E501 + + :param artifact_id: The artifact_id of this MavenPackageUpload. # noqa: E501 :type: str """ @@ -426,22 +430,22 @@ def artifact_id(self, artifact_id): @property def cdn_url(self): - """ - Gets the cdn_url of this MavenPackageUpload. - + """Gets the cdn_url of this MavenPackageUpload. # noqa: E501 - :return: The cdn_url of this MavenPackageUpload. + # noqa: E501 + + :return: The cdn_url of this MavenPackageUpload. # noqa: E501 :rtype: str """ return self._cdn_url @cdn_url.setter def cdn_url(self, cdn_url): - """ - Sets the cdn_url of this MavenPackageUpload. - + """Sets the cdn_url of this MavenPackageUpload. - :param cdn_url: The cdn_url of this MavenPackageUpload. + # noqa: E501 + + :param cdn_url: The cdn_url of this MavenPackageUpload. # noqa: E501 :type: str """ @@ -449,22 +453,22 @@ def cdn_url(self, cdn_url): @property def checksum_md5(self): - """ - Gets the checksum_md5 of this MavenPackageUpload. - + """Gets the checksum_md5 of this MavenPackageUpload. # noqa: E501 + + # noqa: E501 - :return: The checksum_md5 of this MavenPackageUpload. + :return: The checksum_md5 of this MavenPackageUpload. # noqa: E501 :rtype: str """ return self._checksum_md5 @checksum_md5.setter def checksum_md5(self, checksum_md5): - """ - Sets the checksum_md5 of this MavenPackageUpload. - + """Sets the checksum_md5 of this MavenPackageUpload. + + # noqa: E501 - :param checksum_md5: The checksum_md5 of this MavenPackageUpload. + :param checksum_md5: The checksum_md5 of this MavenPackageUpload. # noqa: E501 :type: str """ @@ -472,22 +476,22 @@ def checksum_md5(self, checksum_md5): @property def checksum_sha1(self): - """ - Gets the checksum_sha1 of this MavenPackageUpload. - + """Gets the checksum_sha1 of this MavenPackageUpload. # noqa: E501 + + # noqa: E501 - :return: The checksum_sha1 of this MavenPackageUpload. + :return: The checksum_sha1 of this MavenPackageUpload. # noqa: E501 :rtype: str """ return self._checksum_sha1 @checksum_sha1.setter def checksum_sha1(self, checksum_sha1): - """ - Sets the checksum_sha1 of this MavenPackageUpload. - + """Sets the checksum_sha1 of this MavenPackageUpload. + + # noqa: E501 - :param checksum_sha1: The checksum_sha1 of this MavenPackageUpload. + :param checksum_sha1: The checksum_sha1 of this MavenPackageUpload. # noqa: E501 :type: str """ @@ -495,22 +499,22 @@ def checksum_sha1(self, checksum_sha1): @property def checksum_sha256(self): - """ - Gets the checksum_sha256 of this MavenPackageUpload. - + """Gets the checksum_sha256 of this MavenPackageUpload. # noqa: E501 + + # noqa: E501 - :return: The checksum_sha256 of this MavenPackageUpload. + :return: The checksum_sha256 of this MavenPackageUpload. # noqa: E501 :rtype: str """ return self._checksum_sha256 @checksum_sha256.setter def checksum_sha256(self, checksum_sha256): - """ - Sets the checksum_sha256 of this MavenPackageUpload. - + """Sets the checksum_sha256 of this MavenPackageUpload. - :param checksum_sha256: The checksum_sha256 of this MavenPackageUpload. + # noqa: E501 + + :param checksum_sha256: The checksum_sha256 of this MavenPackageUpload. # noqa: E501 :type: str """ @@ -518,22 +522,22 @@ def checksum_sha256(self, checksum_sha256): @property def checksum_sha512(self): - """ - Gets the checksum_sha512 of this MavenPackageUpload. - + """Gets the checksum_sha512 of this MavenPackageUpload. # noqa: E501 - :return: The checksum_sha512 of this MavenPackageUpload. + # noqa: E501 + + :return: The checksum_sha512 of this MavenPackageUpload. # noqa: E501 :rtype: str """ return self._checksum_sha512 @checksum_sha512.setter def checksum_sha512(self, checksum_sha512): - """ - Sets the checksum_sha512 of this MavenPackageUpload. - + """Sets the checksum_sha512 of this MavenPackageUpload. - :param checksum_sha512: The checksum_sha512 of this MavenPackageUpload. + # noqa: E501 + + :param checksum_sha512: The checksum_sha512 of this MavenPackageUpload. # noqa: E501 :type: str """ @@ -541,22 +545,22 @@ def checksum_sha512(self, checksum_sha512): @property def dependencies_checksum_md5(self): - """ - Gets the dependencies_checksum_md5 of this MavenPackageUpload. - A checksum of all of the package's dependencies. + """Gets the dependencies_checksum_md5 of this MavenPackageUpload. # noqa: E501 - :return: The dependencies_checksum_md5 of this MavenPackageUpload. + A checksum of all of the package's dependencies. # noqa: E501 + + :return: The dependencies_checksum_md5 of this MavenPackageUpload. # noqa: E501 :rtype: str """ return self._dependencies_checksum_md5 @dependencies_checksum_md5.setter def dependencies_checksum_md5(self, dependencies_checksum_md5): - """ - Sets the dependencies_checksum_md5 of this MavenPackageUpload. - A checksum of all of the package's dependencies. + """Sets the dependencies_checksum_md5 of this MavenPackageUpload. + + A checksum of all of the package's dependencies. # noqa: E501 - :param dependencies_checksum_md5: The dependencies_checksum_md5 of this MavenPackageUpload. + :param dependencies_checksum_md5: The dependencies_checksum_md5 of this MavenPackageUpload. # noqa: E501 :type: str """ @@ -564,22 +568,22 @@ def dependencies_checksum_md5(self, dependencies_checksum_md5): @property def dependencies_url(self): - """ - Gets the dependencies_url of this MavenPackageUpload. - + """Gets the dependencies_url of this MavenPackageUpload. # noqa: E501 + + # noqa: E501 - :return: The dependencies_url of this MavenPackageUpload. + :return: The dependencies_url of this MavenPackageUpload. # noqa: E501 :rtype: str """ return self._dependencies_url @dependencies_url.setter def dependencies_url(self, dependencies_url): - """ - Sets the dependencies_url of this MavenPackageUpload. - + """Sets the dependencies_url of this MavenPackageUpload. + + # noqa: E501 - :param dependencies_url: The dependencies_url of this MavenPackageUpload. + :param dependencies_url: The dependencies_url of this MavenPackageUpload. # noqa: E501 :type: str """ @@ -587,22 +591,22 @@ def dependencies_url(self, dependencies_url): @property def description(self): - """ - Gets the description of this MavenPackageUpload. - A textual description of this package. + """Gets the description of this MavenPackageUpload. # noqa: E501 + + A textual description of this package. # noqa: E501 - :return: The description of this MavenPackageUpload. + :return: The description of this MavenPackageUpload. # noqa: E501 :rtype: str """ return self._description @description.setter def description(self, description): - """ - Sets the description of this MavenPackageUpload. - A textual description of this package. + """Sets the description of this MavenPackageUpload. + + A textual description of this package. # noqa: E501 - :param description: The description of this MavenPackageUpload. + :param description: The description of this MavenPackageUpload. # noqa: E501 :type: str """ @@ -610,22 +614,22 @@ def description(self, description): @property def distro(self): - """ - Gets the distro of this MavenPackageUpload. - + """Gets the distro of this MavenPackageUpload. # noqa: E501 - :return: The distro of this MavenPackageUpload. + # noqa: E501 + + :return: The distro of this MavenPackageUpload. # noqa: E501 :rtype: object """ return self._distro @distro.setter def distro(self, distro): - """ - Sets the distro of this MavenPackageUpload. - + """Sets the distro of this MavenPackageUpload. - :param distro: The distro of this MavenPackageUpload. + # noqa: E501 + + :param distro: The distro of this MavenPackageUpload. # noqa: E501 :type: object """ @@ -633,22 +637,22 @@ def distro(self, distro): @property def distro_version(self): - """ - Gets the distro_version of this MavenPackageUpload. - + """Gets the distro_version of this MavenPackageUpload. # noqa: E501 - :return: The distro_version of this MavenPackageUpload. + # noqa: E501 + + :return: The distro_version of this MavenPackageUpload. # noqa: E501 :rtype: object """ return self._distro_version @distro_version.setter def distro_version(self, distro_version): - """ - Sets the distro_version of this MavenPackageUpload. - + """Sets the distro_version of this MavenPackageUpload. - :param distro_version: The distro_version of this MavenPackageUpload. + # noqa: E501 + + :param distro_version: The distro_version of this MavenPackageUpload. # noqa: E501 :type: object """ @@ -656,22 +660,22 @@ def distro_version(self, distro_version): @property def downloads(self): - """ - Gets the downloads of this MavenPackageUpload. - + """Gets the downloads of this MavenPackageUpload. # noqa: E501 + + # noqa: E501 - :return: The downloads of this MavenPackageUpload. + :return: The downloads of this MavenPackageUpload. # noqa: E501 :rtype: int """ return self._downloads @downloads.setter def downloads(self, downloads): - """ - Sets the downloads of this MavenPackageUpload. - + """Sets the downloads of this MavenPackageUpload. + + # noqa: E501 - :param downloads: The downloads of this MavenPackageUpload. + :param downloads: The downloads of this MavenPackageUpload. # noqa: E501 :type: int """ @@ -679,22 +683,22 @@ def downloads(self, downloads): @property def epoch(self): - """ - Gets the epoch of this MavenPackageUpload. - The epoch of the package version (if any). + """Gets the epoch of this MavenPackageUpload. # noqa: E501 + + The epoch of the package version (if any). # noqa: E501 - :return: The epoch of this MavenPackageUpload. + :return: The epoch of this MavenPackageUpload. # noqa: E501 :rtype: int """ return self._epoch @epoch.setter def epoch(self, epoch): - """ - Sets the epoch of this MavenPackageUpload. - The epoch of the package version (if any). + """Sets the epoch of this MavenPackageUpload. + + The epoch of the package version (if any). # noqa: E501 - :param epoch: The epoch of this MavenPackageUpload. + :param epoch: The epoch of this MavenPackageUpload. # noqa: E501 :type: int """ @@ -702,22 +706,22 @@ def epoch(self, epoch): @property def extension(self): - """ - Gets the extension of this MavenPackageUpload. - + """Gets the extension of this MavenPackageUpload. # noqa: E501 + + # noqa: E501 - :return: The extension of this MavenPackageUpload. + :return: The extension of this MavenPackageUpload. # noqa: E501 :rtype: str """ return self._extension @extension.setter def extension(self, extension): - """ - Sets the extension of this MavenPackageUpload. - + """Sets the extension of this MavenPackageUpload. - :param extension: The extension of this MavenPackageUpload. + # noqa: E501 + + :param extension: The extension of this MavenPackageUpload. # noqa: E501 :type: str """ @@ -725,22 +729,22 @@ def extension(self, extension): @property def filename(self): - """ - Gets the filename of this MavenPackageUpload. - + """Gets the filename of this MavenPackageUpload. # noqa: E501 - :return: The filename of this MavenPackageUpload. + # noqa: E501 + + :return: The filename of this MavenPackageUpload. # noqa: E501 :rtype: str """ return self._filename @filename.setter def filename(self, filename): - """ - Sets the filename of this MavenPackageUpload. - + """Sets the filename of this MavenPackageUpload. - :param filename: The filename of this MavenPackageUpload. + # noqa: E501 + + :param filename: The filename of this MavenPackageUpload. # noqa: E501 :type: str """ @@ -748,22 +752,22 @@ def filename(self, filename): @property def files(self): - """ - Gets the files of this MavenPackageUpload. - + """Gets the files of this MavenPackageUpload. # noqa: E501 - :return: The files of this MavenPackageUpload. + # noqa: E501 + + :return: The files of this MavenPackageUpload. # noqa: E501 :rtype: list[PackagesownerrepoFiles] """ return self._files @files.setter def files(self, files): - """ - Sets the files of this MavenPackageUpload. - + """Sets the files of this MavenPackageUpload. + + # noqa: E501 - :param files: The files of this MavenPackageUpload. + :param files: The files of this MavenPackageUpload. # noqa: E501 :type: list[PackagesownerrepoFiles] """ @@ -771,22 +775,22 @@ def files(self, files): @property def format(self): - """ - Gets the format of this MavenPackageUpload. - + """Gets the format of this MavenPackageUpload. # noqa: E501 + + # noqa: E501 - :return: The format of this MavenPackageUpload. + :return: The format of this MavenPackageUpload. # noqa: E501 :rtype: str """ return self._format @format.setter def format(self, format): - """ - Sets the format of this MavenPackageUpload. - + """Sets the format of this MavenPackageUpload. + + # noqa: E501 - :param format: The format of this MavenPackageUpload. + :param format: The format of this MavenPackageUpload. # noqa: E501 :type: str """ @@ -794,22 +798,22 @@ def format(self, format): @property def format_url(self): - """ - Gets the format_url of this MavenPackageUpload. - + """Gets the format_url of this MavenPackageUpload. # noqa: E501 + + # noqa: E501 - :return: The format_url of this MavenPackageUpload. + :return: The format_url of this MavenPackageUpload. # noqa: E501 :rtype: str """ return self._format_url @format_url.setter def format_url(self, format_url): - """ - Sets the format_url of this MavenPackageUpload. - + """Sets the format_url of this MavenPackageUpload. + + # noqa: E501 - :param format_url: The format_url of this MavenPackageUpload. + :param format_url: The format_url of this MavenPackageUpload. # noqa: E501 :type: str """ @@ -817,22 +821,22 @@ def format_url(self, format_url): @property def group_id(self): - """ - Gets the group_id of this MavenPackageUpload. - Artifact's group ID. + """Gets the group_id of this MavenPackageUpload. # noqa: E501 - :return: The group_id of this MavenPackageUpload. + Artifact's group ID. # noqa: E501 + + :return: The group_id of this MavenPackageUpload. # noqa: E501 :rtype: str """ return self._group_id @group_id.setter def group_id(self, group_id): - """ - Sets the group_id of this MavenPackageUpload. - Artifact's group ID. + """Sets the group_id of this MavenPackageUpload. - :param group_id: The group_id of this MavenPackageUpload. + Artifact's group ID. # noqa: E501 + + :param group_id: The group_id of this MavenPackageUpload. # noqa: E501 :type: str """ @@ -840,22 +844,22 @@ def group_id(self, group_id): @property def identifier_perm(self): - """ - Gets the identifier_perm of this MavenPackageUpload. - Unique and permanent identifier for the package. + """Gets the identifier_perm of this MavenPackageUpload. # noqa: E501 - :return: The identifier_perm of this MavenPackageUpload. + Unique and permanent identifier for the package. # noqa: E501 + + :return: The identifier_perm of this MavenPackageUpload. # noqa: E501 :rtype: str """ return self._identifier_perm @identifier_perm.setter def identifier_perm(self, identifier_perm): - """ - Sets the identifier_perm of this MavenPackageUpload. - Unique and permanent identifier for the package. + """Sets the identifier_perm of this MavenPackageUpload. - :param identifier_perm: The identifier_perm of this MavenPackageUpload. + Unique and permanent identifier for the package. # noqa: E501 + + :param identifier_perm: The identifier_perm of this MavenPackageUpload. # noqa: E501 :type: str """ @@ -863,22 +867,22 @@ def identifier_perm(self, identifier_perm): @property def indexed(self): - """ - Gets the indexed of this MavenPackageUpload. - + """Gets the indexed of this MavenPackageUpload. # noqa: E501 + + # noqa: E501 - :return: The indexed of this MavenPackageUpload. + :return: The indexed of this MavenPackageUpload. # noqa: E501 :rtype: bool """ return self._indexed @indexed.setter def indexed(self, indexed): - """ - Sets the indexed of this MavenPackageUpload. - + """Sets the indexed of this MavenPackageUpload. + + # noqa: E501 - :param indexed: The indexed of this MavenPackageUpload. + :param indexed: The indexed of this MavenPackageUpload. # noqa: E501 :type: bool """ @@ -886,22 +890,22 @@ def indexed(self, indexed): @property def is_sync_awaiting(self): - """ - Gets the is_sync_awaiting of this MavenPackageUpload. - + """Gets the is_sync_awaiting of this MavenPackageUpload. # noqa: E501 + + # noqa: E501 - :return: The is_sync_awaiting of this MavenPackageUpload. + :return: The is_sync_awaiting of this MavenPackageUpload. # noqa: E501 :rtype: bool """ return self._is_sync_awaiting @is_sync_awaiting.setter def is_sync_awaiting(self, is_sync_awaiting): - """ - Sets the is_sync_awaiting of this MavenPackageUpload. - + """Sets the is_sync_awaiting of this MavenPackageUpload. + + # noqa: E501 - :param is_sync_awaiting: The is_sync_awaiting of this MavenPackageUpload. + :param is_sync_awaiting: The is_sync_awaiting of this MavenPackageUpload. # noqa: E501 :type: bool """ @@ -909,22 +913,22 @@ def is_sync_awaiting(self, is_sync_awaiting): @property def is_sync_completed(self): - """ - Gets the is_sync_completed of this MavenPackageUpload. - + """Gets the is_sync_completed of this MavenPackageUpload. # noqa: E501 + + # noqa: E501 - :return: The is_sync_completed of this MavenPackageUpload. + :return: The is_sync_completed of this MavenPackageUpload. # noqa: E501 :rtype: bool """ return self._is_sync_completed @is_sync_completed.setter def is_sync_completed(self, is_sync_completed): - """ - Sets the is_sync_completed of this MavenPackageUpload. - + """Sets the is_sync_completed of this MavenPackageUpload. - :param is_sync_completed: The is_sync_completed of this MavenPackageUpload. + # noqa: E501 + + :param is_sync_completed: The is_sync_completed of this MavenPackageUpload. # noqa: E501 :type: bool """ @@ -932,22 +936,22 @@ def is_sync_completed(self, is_sync_completed): @property def is_sync_failed(self): - """ - Gets the is_sync_failed of this MavenPackageUpload. - + """Gets the is_sync_failed of this MavenPackageUpload. # noqa: E501 - :return: The is_sync_failed of this MavenPackageUpload. + # noqa: E501 + + :return: The is_sync_failed of this MavenPackageUpload. # noqa: E501 :rtype: bool """ return self._is_sync_failed @is_sync_failed.setter def is_sync_failed(self, is_sync_failed): - """ - Sets the is_sync_failed of this MavenPackageUpload. - + """Sets the is_sync_failed of this MavenPackageUpload. - :param is_sync_failed: The is_sync_failed of this MavenPackageUpload. + # noqa: E501 + + :param is_sync_failed: The is_sync_failed of this MavenPackageUpload. # noqa: E501 :type: bool """ @@ -955,22 +959,22 @@ def is_sync_failed(self, is_sync_failed): @property def is_sync_in_flight(self): - """ - Gets the is_sync_in_flight of this MavenPackageUpload. - + """Gets the is_sync_in_flight of this MavenPackageUpload. # noqa: E501 - :return: The is_sync_in_flight of this MavenPackageUpload. + # noqa: E501 + + :return: The is_sync_in_flight of this MavenPackageUpload. # noqa: E501 :rtype: bool """ return self._is_sync_in_flight @is_sync_in_flight.setter def is_sync_in_flight(self, is_sync_in_flight): - """ - Sets the is_sync_in_flight of this MavenPackageUpload. - + """Sets the is_sync_in_flight of this MavenPackageUpload. + + # noqa: E501 - :param is_sync_in_flight: The is_sync_in_flight of this MavenPackageUpload. + :param is_sync_in_flight: The is_sync_in_flight of this MavenPackageUpload. # noqa: E501 :type: bool """ @@ -978,22 +982,22 @@ def is_sync_in_flight(self, is_sync_in_flight): @property def is_sync_in_progress(self): - """ - Gets the is_sync_in_progress of this MavenPackageUpload. - + """Gets the is_sync_in_progress of this MavenPackageUpload. # noqa: E501 + + # noqa: E501 - :return: The is_sync_in_progress of this MavenPackageUpload. + :return: The is_sync_in_progress of this MavenPackageUpload. # noqa: E501 :rtype: bool """ return self._is_sync_in_progress @is_sync_in_progress.setter def is_sync_in_progress(self, is_sync_in_progress): - """ - Sets the is_sync_in_progress of this MavenPackageUpload. - + """Sets the is_sync_in_progress of this MavenPackageUpload. + + # noqa: E501 - :param is_sync_in_progress: The is_sync_in_progress of this MavenPackageUpload. + :param is_sync_in_progress: The is_sync_in_progress of this MavenPackageUpload. # noqa: E501 :type: bool """ @@ -1001,22 +1005,22 @@ def is_sync_in_progress(self, is_sync_in_progress): @property def license(self): - """ - Gets the license of this MavenPackageUpload. - The license of this package. + """Gets the license of this MavenPackageUpload. # noqa: E501 + + The license of this package. # noqa: E501 - :return: The license of this MavenPackageUpload. + :return: The license of this MavenPackageUpload. # noqa: E501 :rtype: str """ return self._license @license.setter def license(self, license): - """ - Sets the license of this MavenPackageUpload. - The license of this package. + """Sets the license of this MavenPackageUpload. + + The license of this package. # noqa: E501 - :param license: The license of this MavenPackageUpload. + :param license: The license of this MavenPackageUpload. # noqa: E501 :type: str """ @@ -1024,22 +1028,22 @@ def license(self, license): @property def name(self): - """ - Gets the name of this MavenPackageUpload. - The name of this package. + """Gets the name of this MavenPackageUpload. # noqa: E501 - :return: The name of this MavenPackageUpload. + The name of this package. # noqa: E501 + + :return: The name of this MavenPackageUpload. # noqa: E501 :rtype: str """ return self._name @name.setter def name(self, name): - """ - Sets the name of this MavenPackageUpload. - The name of this package. + """Sets the name of this MavenPackageUpload. - :param name: The name of this MavenPackageUpload. + The name of this package. # noqa: E501 + + :param name: The name of this MavenPackageUpload. # noqa: E501 :type: str """ @@ -1047,22 +1051,22 @@ def name(self, name): @property def namespace(self): - """ - Gets the namespace of this MavenPackageUpload. - + """Gets the namespace of this MavenPackageUpload. # noqa: E501 - :return: The namespace of this MavenPackageUpload. + # noqa: E501 + + :return: The namespace of this MavenPackageUpload. # noqa: E501 :rtype: str """ return self._namespace @namespace.setter def namespace(self, namespace): - """ - Sets the namespace of this MavenPackageUpload. - + """Sets the namespace of this MavenPackageUpload. - :param namespace: The namespace of this MavenPackageUpload. + # noqa: E501 + + :param namespace: The namespace of this MavenPackageUpload. # noqa: E501 :type: str """ @@ -1070,22 +1074,22 @@ def namespace(self, namespace): @property def namespace_url(self): - """ - Gets the namespace_url of this MavenPackageUpload. - + """Gets the namespace_url of this MavenPackageUpload. # noqa: E501 + + # noqa: E501 - :return: The namespace_url of this MavenPackageUpload. + :return: The namespace_url of this MavenPackageUpload. # noqa: E501 :rtype: str """ return self._namespace_url @namespace_url.setter def namespace_url(self, namespace_url): - """ - Sets the namespace_url of this MavenPackageUpload. - + """Sets the namespace_url of this MavenPackageUpload. + + # noqa: E501 - :param namespace_url: The namespace_url of this MavenPackageUpload. + :param namespace_url: The namespace_url of this MavenPackageUpload. # noqa: E501 :type: str """ @@ -1093,22 +1097,22 @@ def namespace_url(self, namespace_url): @property def num_files(self): - """ - Gets the num_files of this MavenPackageUpload. - + """Gets the num_files of this MavenPackageUpload. # noqa: E501 + + # noqa: E501 - :return: The num_files of this MavenPackageUpload. + :return: The num_files of this MavenPackageUpload. # noqa: E501 :rtype: int """ return self._num_files @num_files.setter def num_files(self, num_files): - """ - Sets the num_files of this MavenPackageUpload. - + """Sets the num_files of this MavenPackageUpload. + + # noqa: E501 - :param num_files: The num_files of this MavenPackageUpload. + :param num_files: The num_files of this MavenPackageUpload. # noqa: E501 :type: int """ @@ -1116,22 +1120,22 @@ def num_files(self, num_files): @property def package_type(self): - """ - Gets the package_type of this MavenPackageUpload. - The type of package contents. + """Gets the package_type of this MavenPackageUpload. # noqa: E501 + + The type of package contents. # noqa: E501 - :return: The package_type of this MavenPackageUpload. + :return: The package_type of this MavenPackageUpload. # noqa: E501 :rtype: str """ return self._package_type @package_type.setter def package_type(self, package_type): - """ - Sets the package_type of this MavenPackageUpload. - The type of package contents. + """Sets the package_type of this MavenPackageUpload. - :param package_type: The package_type of this MavenPackageUpload. + The type of package contents. # noqa: E501 + + :param package_type: The package_type of this MavenPackageUpload. # noqa: E501 :type: str """ @@ -1139,22 +1143,22 @@ def package_type(self, package_type): @property def packaging(self): - """ - Gets the packaging of this MavenPackageUpload. - Artifact's Maven packaging type. + """Gets the packaging of this MavenPackageUpload. # noqa: E501 - :return: The packaging of this MavenPackageUpload. + Artifact's Maven packaging type. # noqa: E501 + + :return: The packaging of this MavenPackageUpload. # noqa: E501 :rtype: str """ return self._packaging @packaging.setter def packaging(self, packaging): - """ - Sets the packaging of this MavenPackageUpload. - Artifact's Maven packaging type. + """Sets the packaging of this MavenPackageUpload. - :param packaging: The packaging of this MavenPackageUpload. + Artifact's Maven packaging type. # noqa: E501 + + :param packaging: The packaging of this MavenPackageUpload. # noqa: E501 :type: str """ @@ -1162,22 +1166,22 @@ def packaging(self, packaging): @property def release(self): - """ - Gets the release of this MavenPackageUpload. - The release of the package version (if any). + """Gets the release of this MavenPackageUpload. # noqa: E501 - :return: The release of this MavenPackageUpload. + The release of the package version (if any). # noqa: E501 + + :return: The release of this MavenPackageUpload. # noqa: E501 :rtype: str """ return self._release @release.setter def release(self, release): - """ - Sets the release of this MavenPackageUpload. - The release of the package version (if any). + """Sets the release of this MavenPackageUpload. + + The release of the package version (if any). # noqa: E501 - :param release: The release of this MavenPackageUpload. + :param release: The release of this MavenPackageUpload. # noqa: E501 :type: str """ @@ -1185,22 +1189,22 @@ def release(self, release): @property def repository(self): - """ - Gets the repository of this MavenPackageUpload. - + """Gets the repository of this MavenPackageUpload. # noqa: E501 + + # noqa: E501 - :return: The repository of this MavenPackageUpload. + :return: The repository of this MavenPackageUpload. # noqa: E501 :rtype: str """ return self._repository @repository.setter def repository(self, repository): - """ - Sets the repository of this MavenPackageUpload. - + """Sets the repository of this MavenPackageUpload. + + # noqa: E501 - :param repository: The repository of this MavenPackageUpload. + :param repository: The repository of this MavenPackageUpload. # noqa: E501 :type: str """ @@ -1208,22 +1212,22 @@ def repository(self, repository): @property def repository_url(self): - """ - Gets the repository_url of this MavenPackageUpload. - + """Gets the repository_url of this MavenPackageUpload. # noqa: E501 + + # noqa: E501 - :return: The repository_url of this MavenPackageUpload. + :return: The repository_url of this MavenPackageUpload. # noqa: E501 :rtype: str """ return self._repository_url @repository_url.setter def repository_url(self, repository_url): - """ - Sets the repository_url of this MavenPackageUpload. - + """Sets the repository_url of this MavenPackageUpload. + + # noqa: E501 - :param repository_url: The repository_url of this MavenPackageUpload. + :param repository_url: The repository_url of this MavenPackageUpload. # noqa: E501 :type: str """ @@ -1231,22 +1235,22 @@ def repository_url(self, repository_url): @property def security_scan_completed_at(self): - """ - Gets the security_scan_completed_at of this MavenPackageUpload. - The datetime the security scanning was completed. + """Gets the security_scan_completed_at of this MavenPackageUpload. # noqa: E501 - :return: The security_scan_completed_at of this MavenPackageUpload. + The datetime the security scanning was completed. # noqa: E501 + + :return: The security_scan_completed_at of this MavenPackageUpload. # noqa: E501 :rtype: str """ return self._security_scan_completed_at @security_scan_completed_at.setter def security_scan_completed_at(self, security_scan_completed_at): - """ - Sets the security_scan_completed_at of this MavenPackageUpload. - The datetime the security scanning was completed. + """Sets the security_scan_completed_at of this MavenPackageUpload. - :param security_scan_completed_at: The security_scan_completed_at of this MavenPackageUpload. + The datetime the security scanning was completed. # noqa: E501 + + :param security_scan_completed_at: The security_scan_completed_at of this MavenPackageUpload. # noqa: E501 :type: str """ @@ -1254,22 +1258,22 @@ def security_scan_completed_at(self, security_scan_completed_at): @property def security_scan_started_at(self): - """ - Gets the security_scan_started_at of this MavenPackageUpload. - The datetime the security scanning was started. + """Gets the security_scan_started_at of this MavenPackageUpload. # noqa: E501 - :return: The security_scan_started_at of this MavenPackageUpload. + The datetime the security scanning was started. # noqa: E501 + + :return: The security_scan_started_at of this MavenPackageUpload. # noqa: E501 :rtype: str """ return self._security_scan_started_at @security_scan_started_at.setter def security_scan_started_at(self, security_scan_started_at): - """ - Sets the security_scan_started_at of this MavenPackageUpload. - The datetime the security scanning was started. + """Sets the security_scan_started_at of this MavenPackageUpload. - :param security_scan_started_at: The security_scan_started_at of this MavenPackageUpload. + The datetime the security scanning was started. # noqa: E501 + + :param security_scan_started_at: The security_scan_started_at of this MavenPackageUpload. # noqa: E501 :type: str """ @@ -1277,22 +1281,22 @@ def security_scan_started_at(self, security_scan_started_at): @property def security_scan_status(self): - """ - Gets the security_scan_status of this MavenPackageUpload. - + """Gets the security_scan_status of this MavenPackageUpload. # noqa: E501 + + # noqa: E501 - :return: The security_scan_status of this MavenPackageUpload. + :return: The security_scan_status of this MavenPackageUpload. # noqa: E501 :rtype: str """ return self._security_scan_status @security_scan_status.setter def security_scan_status(self, security_scan_status): - """ - Sets the security_scan_status of this MavenPackageUpload. - + """Sets the security_scan_status of this MavenPackageUpload. + + # noqa: E501 - :param security_scan_status: The security_scan_status of this MavenPackageUpload. + :param security_scan_status: The security_scan_status of this MavenPackageUpload. # noqa: E501 :type: str """ @@ -1300,22 +1304,22 @@ def security_scan_status(self, security_scan_status): @property def security_scan_status_updated_at(self): - """ - Gets the security_scan_status_updated_at of this MavenPackageUpload. - The datetime the security scanning status was updated. + """Gets the security_scan_status_updated_at of this MavenPackageUpload. # noqa: E501 + + The datetime the security scanning status was updated. # noqa: E501 - :return: The security_scan_status_updated_at of this MavenPackageUpload. + :return: The security_scan_status_updated_at of this MavenPackageUpload. # noqa: E501 :rtype: str """ return self._security_scan_status_updated_at @security_scan_status_updated_at.setter def security_scan_status_updated_at(self, security_scan_status_updated_at): - """ - Sets the security_scan_status_updated_at of this MavenPackageUpload. - The datetime the security scanning status was updated. + """Sets the security_scan_status_updated_at of this MavenPackageUpload. + + The datetime the security scanning status was updated. # noqa: E501 - :param security_scan_status_updated_at: The security_scan_status_updated_at of this MavenPackageUpload. + :param security_scan_status_updated_at: The security_scan_status_updated_at of this MavenPackageUpload. # noqa: E501 :type: str """ @@ -1323,22 +1327,22 @@ def security_scan_status_updated_at(self, security_scan_status_updated_at): @property def self_html_url(self): - """ - Gets the self_html_url of this MavenPackageUpload. - + """Gets the self_html_url of this MavenPackageUpload. # noqa: E501 + + # noqa: E501 - :return: The self_html_url of this MavenPackageUpload. + :return: The self_html_url of this MavenPackageUpload. # noqa: E501 :rtype: str """ return self._self_html_url @self_html_url.setter def self_html_url(self, self_html_url): - """ - Sets the self_html_url of this MavenPackageUpload. - + """Sets the self_html_url of this MavenPackageUpload. - :param self_html_url: The self_html_url of this MavenPackageUpload. + # noqa: E501 + + :param self_html_url: The self_html_url of this MavenPackageUpload. # noqa: E501 :type: str """ @@ -1346,22 +1350,22 @@ def self_html_url(self, self_html_url): @property def self_url(self): - """ - Gets the self_url of this MavenPackageUpload. - + """Gets the self_url of this MavenPackageUpload. # noqa: E501 - :return: The self_url of this MavenPackageUpload. + # noqa: E501 + + :return: The self_url of this MavenPackageUpload. # noqa: E501 :rtype: str """ return self._self_url @self_url.setter def self_url(self, self_url): - """ - Sets the self_url of this MavenPackageUpload. - + """Sets the self_url of this MavenPackageUpload. - :param self_url: The self_url of this MavenPackageUpload. + # noqa: E501 + + :param self_url: The self_url of this MavenPackageUpload. # noqa: E501 :type: str """ @@ -1369,22 +1373,22 @@ def self_url(self, self_url): @property def signature_url(self): - """ - Gets the signature_url of this MavenPackageUpload. - + """Gets the signature_url of this MavenPackageUpload. # noqa: E501 - :return: The signature_url of this MavenPackageUpload. + # noqa: E501 + + :return: The signature_url of this MavenPackageUpload. # noqa: E501 :rtype: str """ return self._signature_url @signature_url.setter def signature_url(self, signature_url): - """ - Sets the signature_url of this MavenPackageUpload. - + """Sets the signature_url of this MavenPackageUpload. + + # noqa: E501 - :param signature_url: The signature_url of this MavenPackageUpload. + :param signature_url: The signature_url of this MavenPackageUpload. # noqa: E501 :type: str """ @@ -1392,22 +1396,22 @@ def signature_url(self, signature_url): @property def size(self): - """ - Gets the size of this MavenPackageUpload. - The calculated size of the package. + """Gets the size of this MavenPackageUpload. # noqa: E501 + + The calculated size of the package. # noqa: E501 - :return: The size of this MavenPackageUpload. + :return: The size of this MavenPackageUpload. # noqa: E501 :rtype: int """ return self._size @size.setter def size(self, size): - """ - Sets the size of this MavenPackageUpload. - The calculated size of the package. + """Sets the size of this MavenPackageUpload. + + The calculated size of the package. # noqa: E501 - :param size: The size of this MavenPackageUpload. + :param size: The size of this MavenPackageUpload. # noqa: E501 :type: int """ @@ -1415,22 +1419,22 @@ def size(self, size): @property def slug(self): - """ - Gets the slug of this MavenPackageUpload. - The public unique identifier for the package. + """Gets the slug of this MavenPackageUpload. # noqa: E501 + + The public unique identifier for the package. # noqa: E501 - :return: The slug of this MavenPackageUpload. + :return: The slug of this MavenPackageUpload. # noqa: E501 :rtype: str """ return self._slug @slug.setter def slug(self, slug): - """ - Sets the slug of this MavenPackageUpload. - The public unique identifier for the package. + """Sets the slug of this MavenPackageUpload. + + The public unique identifier for the package. # noqa: E501 - :param slug: The slug of this MavenPackageUpload. + :param slug: The slug of this MavenPackageUpload. # noqa: E501 :type: str """ @@ -1438,22 +1442,22 @@ def slug(self, slug): @property def slug_perm(self): - """ - Gets the slug_perm of this MavenPackageUpload. - + """Gets the slug_perm of this MavenPackageUpload. # noqa: E501 - :return: The slug_perm of this MavenPackageUpload. + # noqa: E501 + + :return: The slug_perm of this MavenPackageUpload. # noqa: E501 :rtype: str """ return self._slug_perm @slug_perm.setter def slug_perm(self, slug_perm): - """ - Sets the slug_perm of this MavenPackageUpload. - + """Sets the slug_perm of this MavenPackageUpload. - :param slug_perm: The slug_perm of this MavenPackageUpload. + # noqa: E501 + + :param slug_perm: The slug_perm of this MavenPackageUpload. # noqa: E501 :type: str """ @@ -1461,22 +1465,22 @@ def slug_perm(self, slug_perm): @property def stage(self): - """ - Gets the stage of this MavenPackageUpload. - The synchronisation (in progress) stage of the package. + """Gets the stage of this MavenPackageUpload. # noqa: E501 - :return: The stage of this MavenPackageUpload. + The synchronisation (in progress) stage of the package. # noqa: E501 + + :return: The stage of this MavenPackageUpload. # noqa: E501 :rtype: str """ return self._stage @stage.setter def stage(self, stage): - """ - Sets the stage of this MavenPackageUpload. - The synchronisation (in progress) stage of the package. + """Sets the stage of this MavenPackageUpload. - :param stage: The stage of this MavenPackageUpload. + The synchronisation (in progress) stage of the package. # noqa: E501 + + :param stage: The stage of this MavenPackageUpload. # noqa: E501 :type: str """ @@ -1484,22 +1488,22 @@ def stage(self, stage): @property def stage_str(self): - """ - Gets the stage_str of this MavenPackageUpload. - + """Gets the stage_str of this MavenPackageUpload. # noqa: E501 + + # noqa: E501 - :return: The stage_str of this MavenPackageUpload. + :return: The stage_str of this MavenPackageUpload. # noqa: E501 :rtype: str """ return self._stage_str @stage_str.setter def stage_str(self, stage_str): - """ - Sets the stage_str of this MavenPackageUpload. - + """Sets the stage_str of this MavenPackageUpload. + + # noqa: E501 - :param stage_str: The stage_str of this MavenPackageUpload. + :param stage_str: The stage_str of this MavenPackageUpload. # noqa: E501 :type: str """ @@ -1507,22 +1511,22 @@ def stage_str(self, stage_str): @property def stage_updated_at(self): - """ - Gets the stage_updated_at of this MavenPackageUpload. - The datetime the package stage was updated at. + """Gets the stage_updated_at of this MavenPackageUpload. # noqa: E501 + + The datetime the package stage was updated at. # noqa: E501 - :return: The stage_updated_at of this MavenPackageUpload. + :return: The stage_updated_at of this MavenPackageUpload. # noqa: E501 :rtype: str """ return self._stage_updated_at @stage_updated_at.setter def stage_updated_at(self, stage_updated_at): - """ - Sets the stage_updated_at of this MavenPackageUpload. - The datetime the package stage was updated at. + """Sets the stage_updated_at of this MavenPackageUpload. + + The datetime the package stage was updated at. # noqa: E501 - :param stage_updated_at: The stage_updated_at of this MavenPackageUpload. + :param stage_updated_at: The stage_updated_at of this MavenPackageUpload. # noqa: E501 :type: str """ @@ -1530,22 +1534,22 @@ def stage_updated_at(self, stage_updated_at): @property def status(self): - """ - Gets the status of this MavenPackageUpload. - The synchronisation status of the package. + """Gets the status of this MavenPackageUpload. # noqa: E501 + + The synchronisation status of the package. # noqa: E501 - :return: The status of this MavenPackageUpload. + :return: The status of this MavenPackageUpload. # noqa: E501 :rtype: str """ return self._status @status.setter def status(self, status): - """ - Sets the status of this MavenPackageUpload. - The synchronisation status of the package. + """Sets the status of this MavenPackageUpload. - :param status: The status of this MavenPackageUpload. + The synchronisation status of the package. # noqa: E501 + + :param status: The status of this MavenPackageUpload. # noqa: E501 :type: str """ @@ -1553,22 +1557,22 @@ def status(self, status): @property def status_reason(self): - """ - Gets the status_reason of this MavenPackageUpload. - A textual description for the synchronous status reason (if any + """Gets the status_reason of this MavenPackageUpload. # noqa: E501 - :return: The status_reason of this MavenPackageUpload. + A textual description for the synchronous status reason (if any # noqa: E501 + + :return: The status_reason of this MavenPackageUpload. # noqa: E501 :rtype: str """ return self._status_reason @status_reason.setter def status_reason(self, status_reason): - """ - Sets the status_reason of this MavenPackageUpload. - A textual description for the synchronous status reason (if any + """Sets the status_reason of this MavenPackageUpload. - :param status_reason: The status_reason of this MavenPackageUpload. + A textual description for the synchronous status reason (if any # noqa: E501 + + :param status_reason: The status_reason of this MavenPackageUpload. # noqa: E501 :type: str """ @@ -1576,22 +1580,22 @@ def status_reason(self, status_reason): @property def status_str(self): - """ - Gets the status_str of this MavenPackageUpload. - + """Gets the status_str of this MavenPackageUpload. # noqa: E501 - :return: The status_str of this MavenPackageUpload. + # noqa: E501 + + :return: The status_str of this MavenPackageUpload. # noqa: E501 :rtype: str """ return self._status_str @status_str.setter def status_str(self, status_str): - """ - Sets the status_str of this MavenPackageUpload. - + """Sets the status_str of this MavenPackageUpload. + + # noqa: E501 - :param status_str: The status_str of this MavenPackageUpload. + :param status_str: The status_str of this MavenPackageUpload. # noqa: E501 :type: str """ @@ -1599,22 +1603,22 @@ def status_str(self, status_str): @property def status_updated_at(self): - """ - Gets the status_updated_at of this MavenPackageUpload. - The datetime the package status was updated at. + """Gets the status_updated_at of this MavenPackageUpload. # noqa: E501 + + The datetime the package status was updated at. # noqa: E501 - :return: The status_updated_at of this MavenPackageUpload. + :return: The status_updated_at of this MavenPackageUpload. # noqa: E501 :rtype: str """ return self._status_updated_at @status_updated_at.setter def status_updated_at(self, status_updated_at): - """ - Sets the status_updated_at of this MavenPackageUpload. - The datetime the package status was updated at. + """Sets the status_updated_at of this MavenPackageUpload. + + The datetime the package status was updated at. # noqa: E501 - :param status_updated_at: The status_updated_at of this MavenPackageUpload. + :param status_updated_at: The status_updated_at of this MavenPackageUpload. # noqa: E501 :type: str """ @@ -1622,22 +1626,22 @@ def status_updated_at(self, status_updated_at): @property def status_url(self): - """ - Gets the status_url of this MavenPackageUpload. - + """Gets the status_url of this MavenPackageUpload. # noqa: E501 + + # noqa: E501 - :return: The status_url of this MavenPackageUpload. + :return: The status_url of this MavenPackageUpload. # noqa: E501 :rtype: str """ return self._status_url @status_url.setter def status_url(self, status_url): - """ - Sets the status_url of this MavenPackageUpload. - + """Sets the status_url of this MavenPackageUpload. + + # noqa: E501 - :param status_url: The status_url of this MavenPackageUpload. + :param status_url: The status_url of this MavenPackageUpload. # noqa: E501 :type: str """ @@ -1645,22 +1649,22 @@ def status_url(self, status_url): @property def subtype(self): - """ - Gets the subtype of this MavenPackageUpload. - + """Gets the subtype of this MavenPackageUpload. # noqa: E501 - :return: The subtype of this MavenPackageUpload. + # noqa: E501 + + :return: The subtype of this MavenPackageUpload. # noqa: E501 :rtype: str """ return self._subtype @subtype.setter def subtype(self, subtype): - """ - Sets the subtype of this MavenPackageUpload. - + """Sets the subtype of this MavenPackageUpload. - :param subtype: The subtype of this MavenPackageUpload. + # noqa: E501 + + :param subtype: The subtype of this MavenPackageUpload. # noqa: E501 :type: str """ @@ -1668,22 +1672,22 @@ def subtype(self, subtype): @property def summary(self): - """ - Gets the summary of this MavenPackageUpload. - A one-liner synopsis of this package. + """Gets the summary of this MavenPackageUpload. # noqa: E501 - :return: The summary of this MavenPackageUpload. + A one-liner synopsis of this package. # noqa: E501 + + :return: The summary of this MavenPackageUpload. # noqa: E501 :rtype: str """ return self._summary @summary.setter def summary(self, summary): - """ - Sets the summary of this MavenPackageUpload. - A one-liner synopsis of this package. + """Sets the summary of this MavenPackageUpload. - :param summary: The summary of this MavenPackageUpload. + A one-liner synopsis of this package. # noqa: E501 + + :param summary: The summary of this MavenPackageUpload. # noqa: E501 :type: str """ @@ -1691,22 +1695,22 @@ def summary(self, summary): @property def sync_finished_at(self): - """ - Gets the sync_finished_at of this MavenPackageUpload. - The datetime the package sync was finished at. + """Gets the sync_finished_at of this MavenPackageUpload. # noqa: E501 + + The datetime the package sync was finished at. # noqa: E501 - :return: The sync_finished_at of this MavenPackageUpload. + :return: The sync_finished_at of this MavenPackageUpload. # noqa: E501 :rtype: str """ return self._sync_finished_at @sync_finished_at.setter def sync_finished_at(self, sync_finished_at): - """ - Sets the sync_finished_at of this MavenPackageUpload. - The datetime the package sync was finished at. + """Sets the sync_finished_at of this MavenPackageUpload. + + The datetime the package sync was finished at. # noqa: E501 - :param sync_finished_at: The sync_finished_at of this MavenPackageUpload. + :param sync_finished_at: The sync_finished_at of this MavenPackageUpload. # noqa: E501 :type: str """ @@ -1714,22 +1718,22 @@ def sync_finished_at(self, sync_finished_at): @property def sync_progress(self): - """ - Gets the sync_progress of this MavenPackageUpload. - Synchronisation progress (from 0-100) + """Gets the sync_progress of this MavenPackageUpload. # noqa: E501 + + Synchronisation progress (from 0-100) # noqa: E501 - :return: The sync_progress of this MavenPackageUpload. + :return: The sync_progress of this MavenPackageUpload. # noqa: E501 :rtype: int """ return self._sync_progress @sync_progress.setter def sync_progress(self, sync_progress): - """ - Sets the sync_progress of this MavenPackageUpload. - Synchronisation progress (from 0-100) + """Sets the sync_progress of this MavenPackageUpload. + + Synchronisation progress (from 0-100) # noqa: E501 - :param sync_progress: The sync_progress of this MavenPackageUpload. + :param sync_progress: The sync_progress of this MavenPackageUpload. # noqa: E501 :type: int """ @@ -1737,22 +1741,22 @@ def sync_progress(self, sync_progress): @property def tags_immutable(self): - """ - Gets the tags_immutable of this MavenPackageUpload. - All immutable tags on the package, grouped by tag type. Immutable tags cannot be (easily) deleted. + """Gets the tags_immutable of this MavenPackageUpload. # noqa: E501 + + All immutable tags on the package, grouped by tag type. Immutable tags cannot be (easily) deleted. # noqa: E501 - :return: The tags_immutable of this MavenPackageUpload. + :return: The tags_immutable of this MavenPackageUpload. # noqa: E501 :rtype: object """ return self._tags_immutable @tags_immutable.setter def tags_immutable(self, tags_immutable): - """ - Sets the tags_immutable of this MavenPackageUpload. - All immutable tags on the package, grouped by tag type. Immutable tags cannot be (easily) deleted. + """Sets the tags_immutable of this MavenPackageUpload. - :param tags_immutable: The tags_immutable of this MavenPackageUpload. + All immutable tags on the package, grouped by tag type. Immutable tags cannot be (easily) deleted. # noqa: E501 + + :param tags_immutable: The tags_immutable of this MavenPackageUpload. # noqa: E501 :type: object """ @@ -1760,22 +1764,22 @@ def tags_immutable(self, tags_immutable): @property def type_display(self): - """ - Gets the type_display of this MavenPackageUpload. - + """Gets the type_display of this MavenPackageUpload. # noqa: E501 - :return: The type_display of this MavenPackageUpload. + # noqa: E501 + + :return: The type_display of this MavenPackageUpload. # noqa: E501 :rtype: str """ return self._type_display @type_display.setter def type_display(self, type_display): - """ - Sets the type_display of this MavenPackageUpload. - + """Sets the type_display of this MavenPackageUpload. - :param type_display: The type_display of this MavenPackageUpload. + # noqa: E501 + + :param type_display: The type_display of this MavenPackageUpload. # noqa: E501 :type: str """ @@ -1783,22 +1787,22 @@ def type_display(self, type_display): @property def uploaded_at(self): - """ - Gets the uploaded_at of this MavenPackageUpload. - The date this package was uploaded. + """Gets the uploaded_at of this MavenPackageUpload. # noqa: E501 - :return: The uploaded_at of this MavenPackageUpload. + The date this package was uploaded. # noqa: E501 + + :return: The uploaded_at of this MavenPackageUpload. # noqa: E501 :rtype: str """ return self._uploaded_at @uploaded_at.setter def uploaded_at(self, uploaded_at): - """ - Sets the uploaded_at of this MavenPackageUpload. - The date this package was uploaded. + """Sets the uploaded_at of this MavenPackageUpload. + + The date this package was uploaded. # noqa: E501 - :param uploaded_at: The uploaded_at of this MavenPackageUpload. + :param uploaded_at: The uploaded_at of this MavenPackageUpload. # noqa: E501 :type: str """ @@ -1806,22 +1810,22 @@ def uploaded_at(self, uploaded_at): @property def uploader(self): - """ - Gets the uploader of this MavenPackageUpload. - + """Gets the uploader of this MavenPackageUpload. # noqa: E501 + + # noqa: E501 - :return: The uploader of this MavenPackageUpload. + :return: The uploader of this MavenPackageUpload. # noqa: E501 :rtype: str """ return self._uploader @uploader.setter def uploader(self, uploader): - """ - Sets the uploader of this MavenPackageUpload. - + """Sets the uploader of this MavenPackageUpload. + + # noqa: E501 - :param uploader: The uploader of this MavenPackageUpload. + :param uploader: The uploader of this MavenPackageUpload. # noqa: E501 :type: str """ @@ -1829,22 +1833,22 @@ def uploader(self, uploader): @property def uploader_url(self): - """ - Gets the uploader_url of this MavenPackageUpload. - + """Gets the uploader_url of this MavenPackageUpload. # noqa: E501 + + # noqa: E501 - :return: The uploader_url of this MavenPackageUpload. + :return: The uploader_url of this MavenPackageUpload. # noqa: E501 :rtype: str """ return self._uploader_url @uploader_url.setter def uploader_url(self, uploader_url): - """ - Sets the uploader_url of this MavenPackageUpload. - + """Sets the uploader_url of this MavenPackageUpload. + + # noqa: E501 - :param uploader_url: The uploader_url of this MavenPackageUpload. + :param uploader_url: The uploader_url of this MavenPackageUpload. # noqa: E501 :type: str """ @@ -1852,22 +1856,22 @@ def uploader_url(self, uploader_url): @property def version(self): - """ - Gets the version of this MavenPackageUpload. - The raw version for this package. + """Gets the version of this MavenPackageUpload. # noqa: E501 - :return: The version of this MavenPackageUpload. + The raw version for this package. # noqa: E501 + + :return: The version of this MavenPackageUpload. # noqa: E501 :rtype: str """ return self._version @version.setter def version(self, version): - """ - Sets the version of this MavenPackageUpload. - The raw version for this package. + """Sets the version of this MavenPackageUpload. - :param version: The version of this MavenPackageUpload. + The raw version for this package. # noqa: E501 + + :param version: The version of this MavenPackageUpload. # noqa: E501 :type: str """ @@ -1875,22 +1879,22 @@ def version(self, version): @property def version_orig(self): - """ - Gets the version_orig of this MavenPackageUpload. - + """Gets the version_orig of this MavenPackageUpload. # noqa: E501 - :return: The version_orig of this MavenPackageUpload. + # noqa: E501 + + :return: The version_orig of this MavenPackageUpload. # noqa: E501 :rtype: str """ return self._version_orig @version_orig.setter def version_orig(self, version_orig): - """ - Sets the version_orig of this MavenPackageUpload. - + """Sets the version_orig of this MavenPackageUpload. - :param version_orig: The version_orig of this MavenPackageUpload. + # noqa: E501 + + :param version_orig: The version_orig of this MavenPackageUpload. # noqa: E501 :type: str """ @@ -1898,34 +1902,32 @@ def version_orig(self, version_orig): @property def vulnerability_scan_results_url(self): - """ - Gets the vulnerability_scan_results_url of this MavenPackageUpload. - + """Gets the vulnerability_scan_results_url of this MavenPackageUpload. # noqa: E501 + + # noqa: E501 - :return: The vulnerability_scan_results_url of this MavenPackageUpload. + :return: The vulnerability_scan_results_url of this MavenPackageUpload. # noqa: E501 :rtype: str """ return self._vulnerability_scan_results_url @vulnerability_scan_results_url.setter def vulnerability_scan_results_url(self, vulnerability_scan_results_url): - """ - Sets the vulnerability_scan_results_url of this MavenPackageUpload. - + """Sets the vulnerability_scan_results_url of this MavenPackageUpload. + + # noqa: E501 - :param vulnerability_scan_results_url: The vulnerability_scan_results_url of this MavenPackageUpload. + :param vulnerability_scan_results_url: The vulnerability_scan_results_url of this MavenPackageUpload. # noqa: E501 :type: str """ self._vulnerability_scan_results_url = vulnerability_scan_results_url def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -1942,32 +1944,30 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(MavenPackageUpload, dict): + for key, value in self.items(): + result[key] = value return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, MavenPackageUpload): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other + """Returns true if both objects are not equal""" + if not isinstance(other, MavenPackageUpload): + return True + + return self.to_dict() != other.to_dict() diff --git a/bindings/python/src/cloudsmith_api/models/namespace.py b/bindings/python/src/cloudsmith_api/models/namespace.py index c8d9e30e..35e68af4 100644 --- a/bindings/python/src/cloudsmith_api/models/namespace.py +++ b/bindings/python/src/cloudsmith_api/models/namespace.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -11,18 +11,20 @@ """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration class Namespace(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -44,43 +46,45 @@ class Namespace(object): 'type_name': 'type_name' } - def __init__(self, name=None, slug=None, slug_perm=None, type_name=None): - """ - Namespace - a model defined in Swagger - """ + def __init__(self, name=None, slug=None, slug_perm=None, type_name=None, _configuration=None): # noqa: E501 + """Namespace - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._name = None self._slug = None self._slug_perm = None self._type_name = None + self.discriminator = None if name is not None: - self.name = name + self.name = name if slug is not None: - self.slug = slug + self.slug = slug if slug_perm is not None: - self.slug_perm = slug_perm + self.slug_perm = slug_perm if type_name is not None: - self.type_name = type_name + self.type_name = type_name @property def name(self): - """ - Gets the name of this Namespace. - + """Gets the name of this Namespace. # noqa: E501 + + # noqa: E501 - :return: The name of this Namespace. + :return: The name of this Namespace. # noqa: E501 :rtype: str """ return self._name @name.setter def name(self, name): - """ - Sets the name of this Namespace. - + """Sets the name of this Namespace. + + # noqa: E501 - :param name: The name of this Namespace. + :param name: The name of this Namespace. # noqa: E501 :type: str """ @@ -88,22 +92,22 @@ def name(self, name): @property def slug(self): - """ - Gets the slug of this Namespace. - + """Gets the slug of this Namespace. # noqa: E501 - :return: The slug of this Namespace. + # noqa: E501 + + :return: The slug of this Namespace. # noqa: E501 :rtype: str """ return self._slug @slug.setter def slug(self, slug): - """ - Sets the slug of this Namespace. - + """Sets the slug of this Namespace. - :param slug: The slug of this Namespace. + # noqa: E501 + + :param slug: The slug of this Namespace. # noqa: E501 :type: str """ @@ -111,22 +115,22 @@ def slug(self, slug): @property def slug_perm(self): - """ - Gets the slug_perm of this Namespace. - + """Gets the slug_perm of this Namespace. # noqa: E501 - :return: The slug_perm of this Namespace. + # noqa: E501 + + :return: The slug_perm of this Namespace. # noqa: E501 :rtype: str """ return self._slug_perm @slug_perm.setter def slug_perm(self, slug_perm): - """ - Sets the slug_perm of this Namespace. - + """Sets the slug_perm of this Namespace. - :param slug_perm: The slug_perm of this Namespace. + # noqa: E501 + + :param slug_perm: The slug_perm of this Namespace. # noqa: E501 :type: str """ @@ -134,34 +138,32 @@ def slug_perm(self, slug_perm): @property def type_name(self): - """ - Gets the type_name of this Namespace. - + """Gets the type_name of this Namespace. # noqa: E501 + + # noqa: E501 - :return: The type_name of this Namespace. + :return: The type_name of this Namespace. # noqa: E501 :rtype: str """ return self._type_name @type_name.setter def type_name(self, type_name): - """ - Sets the type_name of this Namespace. - + """Sets the type_name of this Namespace. + + # noqa: E501 - :param type_name: The type_name of this Namespace. + :param type_name: The type_name of this Namespace. # noqa: E501 :type: str """ self._type_name = type_name def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -178,32 +180,30 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(Namespace, dict): + for key, value in self.items(): + result[key] = value return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, Namespace): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other + """Returns true if both objects are not equal""" + if not isinstance(other, Namespace): + return True + + return self.to_dict() != other.to_dict() diff --git a/bindings/python/src/cloudsmith_api/models/organization.py b/bindings/python/src/cloudsmith_api/models/organization.py index 4df16289..3a06971f 100644 --- a/bindings/python/src/cloudsmith_api/models/organization.py +++ b/bindings/python/src/cloudsmith_api/models/organization.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -11,18 +11,20 @@ """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration class Organization(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -50,10 +52,11 @@ class Organization(object): 'tagline': 'tagline' } - def __init__(self, country=None, created_at=None, location=None, name=None, slug=None, slug_perm=None, tagline=None): - """ - Organization - a model defined in Swagger - """ + def __init__(self, country=None, created_at=None, location=None, name=None, slug=None, slug_perm=None, tagline=None, _configuration=None): # noqa: E501 + """Organization - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._country = None self._created_at = None @@ -62,40 +65,41 @@ def __init__(self, country=None, created_at=None, location=None, name=None, slug self._slug = None self._slug_perm = None self._tagline = None + self.discriminator = None if country is not None: - self.country = country + self.country = country if created_at is not None: - self.created_at = created_at + self.created_at = created_at if location is not None: - self.location = location + self.location = location if name is not None: - self.name = name + self.name = name if slug is not None: - self.slug = slug + self.slug = slug if slug_perm is not None: - self.slug_perm = slug_perm + self.slug_perm = slug_perm if tagline is not None: - self.tagline = tagline + self.tagline = tagline @property def country(self): - """ - Gets the country of this Organization. - + """Gets the country of this Organization. # noqa: E501 + + # noqa: E501 - :return: The country of this Organization. + :return: The country of this Organization. # noqa: E501 :rtype: str """ return self._country @country.setter def country(self, country): - """ - Sets the country of this Organization. - + """Sets the country of this Organization. + + # noqa: E501 - :param country: The country of this Organization. + :param country: The country of this Organization. # noqa: E501 :type: str """ @@ -103,22 +107,22 @@ def country(self, country): @property def created_at(self): - """ - Gets the created_at of this Organization. - + """Gets the created_at of this Organization. # noqa: E501 - :return: The created_at of this Organization. + # noqa: E501 + + :return: The created_at of this Organization. # noqa: E501 :rtype: str """ return self._created_at @created_at.setter def created_at(self, created_at): - """ - Sets the created_at of this Organization. - + """Sets the created_at of this Organization. + + # noqa: E501 - :param created_at: The created_at of this Organization. + :param created_at: The created_at of this Organization. # noqa: E501 :type: str """ @@ -126,22 +130,22 @@ def created_at(self, created_at): @property def location(self): - """ - Gets the location of this Organization. - The city/town/area your organization is based in. + """Gets the location of this Organization. # noqa: E501 + + The city/town/area your organization is based in. # noqa: E501 - :return: The location of this Organization. + :return: The location of this Organization. # noqa: E501 :rtype: str """ return self._location @location.setter def location(self, location): - """ - Sets the location of this Organization. - The city/town/area your organization is based in. + """Sets the location of this Organization. - :param location: The location of this Organization. + The city/town/area your organization is based in. # noqa: E501 + + :param location: The location of this Organization. # noqa: E501 :type: str """ @@ -149,22 +153,22 @@ def location(self, location): @property def name(self): - """ - Gets the name of this Organization. - A descriptive name for your organization. + """Gets the name of this Organization. # noqa: E501 + + A descriptive name for your organization. # noqa: E501 - :return: The name of this Organization. + :return: The name of this Organization. # noqa: E501 :rtype: str """ return self._name @name.setter def name(self, name): - """ - Sets the name of this Organization. - A descriptive name for your organization. + """Sets the name of this Organization. + + A descriptive name for your organization. # noqa: E501 - :param name: The name of this Organization. + :param name: The name of this Organization. # noqa: E501 :type: str """ @@ -172,22 +176,22 @@ def name(self, name): @property def slug(self): - """ - Gets the slug of this Organization. - + """Gets the slug of this Organization. # noqa: E501 - :return: The slug of this Organization. + # noqa: E501 + + :return: The slug of this Organization. # noqa: E501 :rtype: str """ return self._slug @slug.setter def slug(self, slug): - """ - Sets the slug of this Organization. - + """Sets the slug of this Organization. + + # noqa: E501 - :param slug: The slug of this Organization. + :param slug: The slug of this Organization. # noqa: E501 :type: str """ @@ -195,22 +199,22 @@ def slug(self, slug): @property def slug_perm(self): - """ - Gets the slug_perm of this Organization. - + """Gets the slug_perm of this Organization. # noqa: E501 + + # noqa: E501 - :return: The slug_perm of this Organization. + :return: The slug_perm of this Organization. # noqa: E501 :rtype: str """ return self._slug_perm @slug_perm.setter def slug_perm(self, slug_perm): - """ - Sets the slug_perm of this Organization. - + """Sets the slug_perm of this Organization. - :param slug_perm: The slug_perm of this Organization. + # noqa: E501 + + :param slug_perm: The slug_perm of this Organization. # noqa: E501 :type: str """ @@ -218,34 +222,32 @@ def slug_perm(self, slug_perm): @property def tagline(self): - """ - Gets the tagline of this Organization. - A short public descriptive for your organization. + """Gets the tagline of this Organization. # noqa: E501 + + A short public descriptive for your organization. # noqa: E501 - :return: The tagline of this Organization. + :return: The tagline of this Organization. # noqa: E501 :rtype: str """ return self._tagline @tagline.setter def tagline(self, tagline): - """ - Sets the tagline of this Organization. - A short public descriptive for your organization. + """Sets the tagline of this Organization. + + A short public descriptive for your organization. # noqa: E501 - :param tagline: The tagline of this Organization. + :param tagline: The tagline of this Organization. # noqa: E501 :type: str """ self._tagline = tagline def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -262,32 +264,30 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(Organization, dict): + for key, value in self.items(): + result[key] = value return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, Organization): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other + """Returns true if both objects are not equal""" + if not isinstance(other, Organization): + return True + + return self.to_dict() != other.to_dict() diff --git a/bindings/python/src/cloudsmith_api/models/organization_membership.py b/bindings/python/src/cloudsmith_api/models/organization_membership.py index 97417cff..0444ef06 100644 --- a/bindings/python/src/cloudsmith_api/models/organization_membership.py +++ b/bindings/python/src/cloudsmith_api/models/organization_membership.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -11,18 +11,20 @@ """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration class OrganizationMembership(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -56,10 +58,11 @@ class OrganizationMembership(object): 'visibility': 'visibility' } - def __init__(self, email=None, has_two_factor=None, joined_at=None, last_login_at=None, role=None, user=None, user_id=None, user_name=None, user_url=None, visibility=None): - """ - OrganizationMembership - a model defined in Swagger - """ + def __init__(self, email=None, has_two_factor=None, joined_at=None, last_login_at=None, role=None, user=None, user_id=None, user_name=None, user_url=None, visibility=None, _configuration=None): # noqa: E501 + """OrganizationMembership - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._email = None self._has_two_factor = None @@ -71,46 +74,47 @@ def __init__(self, email=None, has_two_factor=None, joined_at=None, last_login_a self._user_name = None self._user_url = None self._visibility = None + self.discriminator = None if email is not None: - self.email = email + self.email = email if has_two_factor is not None: - self.has_two_factor = has_two_factor + self.has_two_factor = has_two_factor if joined_at is not None: - self.joined_at = joined_at + self.joined_at = joined_at if last_login_at is not None: - self.last_login_at = last_login_at + self.last_login_at = last_login_at if role is not None: - self.role = role + self.role = role if user is not None: - self.user = user + self.user = user if user_id is not None: - self.user_id = user_id + self.user_id = user_id if user_name is not None: - self.user_name = user_name + self.user_name = user_name if user_url is not None: - self.user_url = user_url + self.user_url = user_url if visibility is not None: - self.visibility = visibility + self.visibility = visibility @property def email(self): - """ - Gets the email of this OrganizationMembership. - + """Gets the email of this OrganizationMembership. # noqa: E501 - :return: The email of this OrganizationMembership. + # noqa: E501 + + :return: The email of this OrganizationMembership. # noqa: E501 :rtype: str """ return self._email @email.setter def email(self, email): - """ - Sets the email of this OrganizationMembership. - + """Sets the email of this OrganizationMembership. - :param email: The email of this OrganizationMembership. + # noqa: E501 + + :param email: The email of this OrganizationMembership. # noqa: E501 :type: str """ @@ -118,22 +122,22 @@ def email(self, email): @property def has_two_factor(self): - """ - Gets the has_two_factor of this OrganizationMembership. - + """Gets the has_two_factor of this OrganizationMembership. # noqa: E501 - :return: The has_two_factor of this OrganizationMembership. + # noqa: E501 + + :return: The has_two_factor of this OrganizationMembership. # noqa: E501 :rtype: bool """ return self._has_two_factor @has_two_factor.setter def has_two_factor(self, has_two_factor): - """ - Sets the has_two_factor of this OrganizationMembership. - + """Sets the has_two_factor of this OrganizationMembership. + + # noqa: E501 - :param has_two_factor: The has_two_factor of this OrganizationMembership. + :param has_two_factor: The has_two_factor of this OrganizationMembership. # noqa: E501 :type: bool """ @@ -141,22 +145,22 @@ def has_two_factor(self, has_two_factor): @property def joined_at(self): - """ - Gets the joined_at of this OrganizationMembership. - + """Gets the joined_at of this OrganizationMembership. # noqa: E501 + + # noqa: E501 - :return: The joined_at of this OrganizationMembership. + :return: The joined_at of this OrganizationMembership. # noqa: E501 :rtype: str """ return self._joined_at @joined_at.setter def joined_at(self, joined_at): - """ - Sets the joined_at of this OrganizationMembership. - + """Sets the joined_at of this OrganizationMembership. + + # noqa: E501 - :param joined_at: The joined_at of this OrganizationMembership. + :param joined_at: The joined_at of this OrganizationMembership. # noqa: E501 :type: str """ @@ -164,22 +168,22 @@ def joined_at(self, joined_at): @property def last_login_at(self): - """ - Gets the last_login_at of this OrganizationMembership. - + """Gets the last_login_at of this OrganizationMembership. # noqa: E501 + + # noqa: E501 - :return: The last_login_at of this OrganizationMembership. + :return: The last_login_at of this OrganizationMembership. # noqa: E501 :rtype: str """ return self._last_login_at @last_login_at.setter def last_login_at(self, last_login_at): - """ - Sets the last_login_at of this OrganizationMembership. - + """Sets the last_login_at of this OrganizationMembership. + + # noqa: E501 - :param last_login_at: The last_login_at of this OrganizationMembership. + :param last_login_at: The last_login_at of this OrganizationMembership. # noqa: E501 :type: str """ @@ -187,22 +191,22 @@ def last_login_at(self, last_login_at): @property def role(self): - """ - Gets the role of this OrganizationMembership. - + """Gets the role of this OrganizationMembership. # noqa: E501 + + # noqa: E501 - :return: The role of this OrganizationMembership. + :return: The role of this OrganizationMembership. # noqa: E501 :rtype: str """ return self._role @role.setter def role(self, role): - """ - Sets the role of this OrganizationMembership. - + """Sets the role of this OrganizationMembership. + + # noqa: E501 - :param role: The role of this OrganizationMembership. + :param role: The role of this OrganizationMembership. # noqa: E501 :type: str """ @@ -210,22 +214,22 @@ def role(self, role): @property def user(self): - """ - Gets the user of this OrganizationMembership. - + """Gets the user of this OrganizationMembership. # noqa: E501 + + # noqa: E501 - :return: The user of this OrganizationMembership. + :return: The user of this OrganizationMembership. # noqa: E501 :rtype: str """ return self._user @user.setter def user(self, user): - """ - Sets the user of this OrganizationMembership. - + """Sets the user of this OrganizationMembership. - :param user: The user of this OrganizationMembership. + # noqa: E501 + + :param user: The user of this OrganizationMembership. # noqa: E501 :type: str """ @@ -233,22 +237,22 @@ def user(self, user): @property def user_id(self): - """ - Gets the user_id of this OrganizationMembership. - + """Gets the user_id of this OrganizationMembership. # noqa: E501 - :return: The user_id of this OrganizationMembership. + # noqa: E501 + + :return: The user_id of this OrganizationMembership. # noqa: E501 :rtype: str """ return self._user_id @user_id.setter def user_id(self, user_id): - """ - Sets the user_id of this OrganizationMembership. - + """Sets the user_id of this OrganizationMembership. - :param user_id: The user_id of this OrganizationMembership. + # noqa: E501 + + :param user_id: The user_id of this OrganizationMembership. # noqa: E501 :type: str """ @@ -256,22 +260,22 @@ def user_id(self, user_id): @property def user_name(self): - """ - Gets the user_name of this OrganizationMembership. - + """Gets the user_name of this OrganizationMembership. # noqa: E501 - :return: The user_name of this OrganizationMembership. + # noqa: E501 + + :return: The user_name of this OrganizationMembership. # noqa: E501 :rtype: str """ return self._user_name @user_name.setter def user_name(self, user_name): - """ - Sets the user_name of this OrganizationMembership. - + """Sets the user_name of this OrganizationMembership. - :param user_name: The user_name of this OrganizationMembership. + # noqa: E501 + + :param user_name: The user_name of this OrganizationMembership. # noqa: E501 :type: str """ @@ -279,22 +283,22 @@ def user_name(self, user_name): @property def user_url(self): - """ - Gets the user_url of this OrganizationMembership. - + """Gets the user_url of this OrganizationMembership. # noqa: E501 - :return: The user_url of this OrganizationMembership. + # noqa: E501 + + :return: The user_url of this OrganizationMembership. # noqa: E501 :rtype: str """ return self._user_url @user_url.setter def user_url(self, user_url): - """ - Sets the user_url of this OrganizationMembership. - + """Sets the user_url of this OrganizationMembership. - :param user_url: The user_url of this OrganizationMembership. + # noqa: E501 + + :param user_url: The user_url of this OrganizationMembership. # noqa: E501 :type: str """ @@ -302,34 +306,32 @@ def user_url(self, user_url): @property def visibility(self): - """ - Gets the visibility of this OrganizationMembership. - + """Gets the visibility of this OrganizationMembership. # noqa: E501 + + # noqa: E501 - :return: The visibility of this OrganizationMembership. + :return: The visibility of this OrganizationMembership. # noqa: E501 :rtype: str """ return self._visibility @visibility.setter def visibility(self, visibility): - """ - Sets the visibility of this OrganizationMembership. - + """Sets the visibility of this OrganizationMembership. + + # noqa: E501 - :param visibility: The visibility of this OrganizationMembership. + :param visibility: The visibility of this OrganizationMembership. # noqa: E501 :type: str """ self._visibility = visibility def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -346,32 +348,30 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(OrganizationMembership, dict): + for key, value in self.items(): + result[key] = value return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, OrganizationMembership): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other + """Returns true if both objects are not equal""" + if not isinstance(other, OrganizationMembership): + return True + + return self.to_dict() != other.to_dict() diff --git a/bindings/python/src/cloudsmith_api/models/package.py b/bindings/python/src/cloudsmith_api/models/package.py index 5832a6e7..f69b6371 100644 --- a/bindings/python/src/cloudsmith_api/models/package.py +++ b/bindings/python/src/cloudsmith_api/models/package.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -11,18 +11,20 @@ """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration class Package(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -166,10 +168,11 @@ class Package(object): 'vulnerability_scan_results_url': 'vulnerability_scan_results_url' } - def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, distro=None, distro_version=None, downloads=None, epoch=None, extension=None, filename=None, files=None, format=None, format_url=None, identifier_perm=None, indexed=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, package_type=None, release=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status=None, security_scan_status_updated_at=None, self_html_url=None, self_url=None, signature_url=None, size=None, slug=None, slug_perm=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags=None, tags_immutable=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_scan_results_url=None): - """ - Package - a model defined in Swagger - """ + def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, distro=None, distro_version=None, downloads=None, epoch=None, extension=None, filename=None, files=None, format=None, format_url=None, identifier_perm=None, indexed=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, package_type=None, release=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status=None, security_scan_status_updated_at=None, self_html_url=None, self_url=None, signature_url=None, size=None, slug=None, slug_perm=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags=None, tags_immutable=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 + """Package - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._architectures = None self._cdn_url = None @@ -236,156 +239,157 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._version = None self._version_orig = None self._vulnerability_scan_results_url = None + self.discriminator = None if architectures is not None: - self.architectures = architectures + self.architectures = architectures if cdn_url is not None: - self.cdn_url = cdn_url + self.cdn_url = cdn_url if checksum_md5 is not None: - self.checksum_md5 = checksum_md5 + self.checksum_md5 = checksum_md5 if checksum_sha1 is not None: - self.checksum_sha1 = checksum_sha1 + self.checksum_sha1 = checksum_sha1 if checksum_sha256 is not None: - self.checksum_sha256 = checksum_sha256 + self.checksum_sha256 = checksum_sha256 if checksum_sha512 is not None: - self.checksum_sha512 = checksum_sha512 + self.checksum_sha512 = checksum_sha512 if dependencies_checksum_md5 is not None: - self.dependencies_checksum_md5 = dependencies_checksum_md5 + self.dependencies_checksum_md5 = dependencies_checksum_md5 if dependencies_url is not None: - self.dependencies_url = dependencies_url + self.dependencies_url = dependencies_url if description is not None: - self.description = description + self.description = description if distro is not None: - self.distro = distro + self.distro = distro if distro_version is not None: - self.distro_version = distro_version + self.distro_version = distro_version if downloads is not None: - self.downloads = downloads + self.downloads = downloads if epoch is not None: - self.epoch = epoch + self.epoch = epoch if extension is not None: - self.extension = extension + self.extension = extension if filename is not None: - self.filename = filename + self.filename = filename if files is not None: - self.files = files + self.files = files if format is not None: - self.format = format + self.format = format if format_url is not None: - self.format_url = format_url + self.format_url = format_url if identifier_perm is not None: - self.identifier_perm = identifier_perm + self.identifier_perm = identifier_perm if indexed is not None: - self.indexed = indexed + self.indexed = indexed if is_sync_awaiting is not None: - self.is_sync_awaiting = is_sync_awaiting + self.is_sync_awaiting = is_sync_awaiting if is_sync_completed is not None: - self.is_sync_completed = is_sync_completed + self.is_sync_completed = is_sync_completed if is_sync_failed is not None: - self.is_sync_failed = is_sync_failed + self.is_sync_failed = is_sync_failed if is_sync_in_flight is not None: - self.is_sync_in_flight = is_sync_in_flight + self.is_sync_in_flight = is_sync_in_flight if is_sync_in_progress is not None: - self.is_sync_in_progress = is_sync_in_progress + self.is_sync_in_progress = is_sync_in_progress if license is not None: - self.license = license + self.license = license if name is not None: - self.name = name + self.name = name if namespace is not None: - self.namespace = namespace + self.namespace = namespace if namespace_url is not None: - self.namespace_url = namespace_url + self.namespace_url = namespace_url if num_files is not None: - self.num_files = num_files + self.num_files = num_files if package_type is not None: - self.package_type = package_type + self.package_type = package_type if release is not None: - self.release = release + self.release = release if repository is not None: - self.repository = repository + self.repository = repository if repository_url is not None: - self.repository_url = repository_url + self.repository_url = repository_url if security_scan_completed_at is not None: - self.security_scan_completed_at = security_scan_completed_at + self.security_scan_completed_at = security_scan_completed_at if security_scan_started_at is not None: - self.security_scan_started_at = security_scan_started_at + self.security_scan_started_at = security_scan_started_at if security_scan_status is not None: - self.security_scan_status = security_scan_status + self.security_scan_status = security_scan_status if security_scan_status_updated_at is not None: - self.security_scan_status_updated_at = security_scan_status_updated_at + self.security_scan_status_updated_at = security_scan_status_updated_at if self_html_url is not None: - self.self_html_url = self_html_url + self.self_html_url = self_html_url if self_url is not None: - self.self_url = self_url + self.self_url = self_url if signature_url is not None: - self.signature_url = signature_url + self.signature_url = signature_url if size is not None: - self.size = size + self.size = size if slug is not None: - self.slug = slug + self.slug = slug if slug_perm is not None: - self.slug_perm = slug_perm + self.slug_perm = slug_perm if stage is not None: - self.stage = stage + self.stage = stage if stage_str is not None: - self.stage_str = stage_str + self.stage_str = stage_str if stage_updated_at is not None: - self.stage_updated_at = stage_updated_at + self.stage_updated_at = stage_updated_at if status is not None: - self.status = status + self.status = status if status_reason is not None: - self.status_reason = status_reason + self.status_reason = status_reason if status_str is not None: - self.status_str = status_str + self.status_str = status_str if status_updated_at is not None: - self.status_updated_at = status_updated_at + self.status_updated_at = status_updated_at if status_url is not None: - self.status_url = status_url + self.status_url = status_url if subtype is not None: - self.subtype = subtype + self.subtype = subtype if summary is not None: - self.summary = summary + self.summary = summary if sync_finished_at is not None: - self.sync_finished_at = sync_finished_at + self.sync_finished_at = sync_finished_at if sync_progress is not None: - self.sync_progress = sync_progress + self.sync_progress = sync_progress if tags is not None: - self.tags = tags + self.tags = tags if tags_immutable is not None: - self.tags_immutable = tags_immutable + self.tags_immutable = tags_immutable if type_display is not None: - self.type_display = type_display + self.type_display = type_display if uploaded_at is not None: - self.uploaded_at = uploaded_at + self.uploaded_at = uploaded_at if uploader is not None: - self.uploader = uploader + self.uploader = uploader if uploader_url is not None: - self.uploader_url = uploader_url + self.uploader_url = uploader_url if version is not None: - self.version = version + self.version = version if version_orig is not None: - self.version_orig = version_orig + self.version_orig = version_orig if vulnerability_scan_results_url is not None: - self.vulnerability_scan_results_url = vulnerability_scan_results_url + self.vulnerability_scan_results_url = vulnerability_scan_results_url @property def architectures(self): - """ - Gets the architectures of this Package. - + """Gets the architectures of this Package. # noqa: E501 + + # noqa: E501 - :return: The architectures of this Package. + :return: The architectures of this Package. # noqa: E501 :rtype: list[PackagesownerrepoArchitectures] """ return self._architectures @architectures.setter def architectures(self, architectures): - """ - Sets the architectures of this Package. - + """Sets the architectures of this Package. + + # noqa: E501 - :param architectures: The architectures of this Package. + :param architectures: The architectures of this Package. # noqa: E501 :type: list[PackagesownerrepoArchitectures] """ @@ -393,22 +397,22 @@ def architectures(self, architectures): @property def cdn_url(self): - """ - Gets the cdn_url of this Package. - + """Gets the cdn_url of this Package. # noqa: E501 - :return: The cdn_url of this Package. + # noqa: E501 + + :return: The cdn_url of this Package. # noqa: E501 :rtype: str """ return self._cdn_url @cdn_url.setter def cdn_url(self, cdn_url): - """ - Sets the cdn_url of this Package. - + """Sets the cdn_url of this Package. - :param cdn_url: The cdn_url of this Package. + # noqa: E501 + + :param cdn_url: The cdn_url of this Package. # noqa: E501 :type: str """ @@ -416,22 +420,22 @@ def cdn_url(self, cdn_url): @property def checksum_md5(self): - """ - Gets the checksum_md5 of this Package. - + """Gets the checksum_md5 of this Package. # noqa: E501 - :return: The checksum_md5 of this Package. + # noqa: E501 + + :return: The checksum_md5 of this Package. # noqa: E501 :rtype: str """ return self._checksum_md5 @checksum_md5.setter def checksum_md5(self, checksum_md5): - """ - Sets the checksum_md5 of this Package. - + """Sets the checksum_md5 of this Package. - :param checksum_md5: The checksum_md5 of this Package. + # noqa: E501 + + :param checksum_md5: The checksum_md5 of this Package. # noqa: E501 :type: str """ @@ -439,22 +443,22 @@ def checksum_md5(self, checksum_md5): @property def checksum_sha1(self): - """ - Gets the checksum_sha1 of this Package. - + """Gets the checksum_sha1 of this Package. # noqa: E501 + + # noqa: E501 - :return: The checksum_sha1 of this Package. + :return: The checksum_sha1 of this Package. # noqa: E501 :rtype: str """ return self._checksum_sha1 @checksum_sha1.setter def checksum_sha1(self, checksum_sha1): - """ - Sets the checksum_sha1 of this Package. - + """Sets the checksum_sha1 of this Package. + + # noqa: E501 - :param checksum_sha1: The checksum_sha1 of this Package. + :param checksum_sha1: The checksum_sha1 of this Package. # noqa: E501 :type: str """ @@ -462,22 +466,22 @@ def checksum_sha1(self, checksum_sha1): @property def checksum_sha256(self): - """ - Gets the checksum_sha256 of this Package. - + """Gets the checksum_sha256 of this Package. # noqa: E501 + + # noqa: E501 - :return: The checksum_sha256 of this Package. + :return: The checksum_sha256 of this Package. # noqa: E501 :rtype: str """ return self._checksum_sha256 @checksum_sha256.setter def checksum_sha256(self, checksum_sha256): - """ - Sets the checksum_sha256 of this Package. - + """Sets the checksum_sha256 of this Package. + + # noqa: E501 - :param checksum_sha256: The checksum_sha256 of this Package. + :param checksum_sha256: The checksum_sha256 of this Package. # noqa: E501 :type: str """ @@ -485,22 +489,22 @@ def checksum_sha256(self, checksum_sha256): @property def checksum_sha512(self): - """ - Gets the checksum_sha512 of this Package. - + """Gets the checksum_sha512 of this Package. # noqa: E501 + + # noqa: E501 - :return: The checksum_sha512 of this Package. + :return: The checksum_sha512 of this Package. # noqa: E501 :rtype: str """ return self._checksum_sha512 @checksum_sha512.setter def checksum_sha512(self, checksum_sha512): - """ - Sets the checksum_sha512 of this Package. - + """Sets the checksum_sha512 of this Package. + + # noqa: E501 - :param checksum_sha512: The checksum_sha512 of this Package. + :param checksum_sha512: The checksum_sha512 of this Package. # noqa: E501 :type: str """ @@ -508,22 +512,22 @@ def checksum_sha512(self, checksum_sha512): @property def dependencies_checksum_md5(self): - """ - Gets the dependencies_checksum_md5 of this Package. - A checksum of all of the package's dependencies. + """Gets the dependencies_checksum_md5 of this Package. # noqa: E501 + + A checksum of all of the package's dependencies. # noqa: E501 - :return: The dependencies_checksum_md5 of this Package. + :return: The dependencies_checksum_md5 of this Package. # noqa: E501 :rtype: str """ return self._dependencies_checksum_md5 @dependencies_checksum_md5.setter def dependencies_checksum_md5(self, dependencies_checksum_md5): - """ - Sets the dependencies_checksum_md5 of this Package. - A checksum of all of the package's dependencies. + """Sets the dependencies_checksum_md5 of this Package. + + A checksum of all of the package's dependencies. # noqa: E501 - :param dependencies_checksum_md5: The dependencies_checksum_md5 of this Package. + :param dependencies_checksum_md5: The dependencies_checksum_md5 of this Package. # noqa: E501 :type: str """ @@ -531,22 +535,22 @@ def dependencies_checksum_md5(self, dependencies_checksum_md5): @property def dependencies_url(self): - """ - Gets the dependencies_url of this Package. - + """Gets the dependencies_url of this Package. # noqa: E501 + + # noqa: E501 - :return: The dependencies_url of this Package. + :return: The dependencies_url of this Package. # noqa: E501 :rtype: str """ return self._dependencies_url @dependencies_url.setter def dependencies_url(self, dependencies_url): - """ - Sets the dependencies_url of this Package. - + """Sets the dependencies_url of this Package. - :param dependencies_url: The dependencies_url of this Package. + # noqa: E501 + + :param dependencies_url: The dependencies_url of this Package. # noqa: E501 :type: str """ @@ -554,22 +558,22 @@ def dependencies_url(self, dependencies_url): @property def description(self): - """ - Gets the description of this Package. - A textual description of this package. + """Gets the description of this Package. # noqa: E501 - :return: The description of this Package. + A textual description of this package. # noqa: E501 + + :return: The description of this Package. # noqa: E501 :rtype: str """ return self._description @description.setter def description(self, description): - """ - Sets the description of this Package. - A textual description of this package. + """Sets the description of this Package. - :param description: The description of this Package. + A textual description of this package. # noqa: E501 + + :param description: The description of this Package. # noqa: E501 :type: str """ @@ -577,22 +581,22 @@ def description(self, description): @property def distro(self): - """ - Gets the distro of this Package. - + """Gets the distro of this Package. # noqa: E501 - :return: The distro of this Package. + # noqa: E501 + + :return: The distro of this Package. # noqa: E501 :rtype: object """ return self._distro @distro.setter def distro(self, distro): - """ - Sets the distro of this Package. - + """Sets the distro of this Package. + + # noqa: E501 - :param distro: The distro of this Package. + :param distro: The distro of this Package. # noqa: E501 :type: object """ @@ -600,22 +604,22 @@ def distro(self, distro): @property def distro_version(self): - """ - Gets the distro_version of this Package. - + """Gets the distro_version of this Package. # noqa: E501 + + # noqa: E501 - :return: The distro_version of this Package. + :return: The distro_version of this Package. # noqa: E501 :rtype: object """ return self._distro_version @distro_version.setter def distro_version(self, distro_version): - """ - Sets the distro_version of this Package. - + """Sets the distro_version of this Package. + + # noqa: E501 - :param distro_version: The distro_version of this Package. + :param distro_version: The distro_version of this Package. # noqa: E501 :type: object """ @@ -623,22 +627,22 @@ def distro_version(self, distro_version): @property def downloads(self): - """ - Gets the downloads of this Package. - + """Gets the downloads of this Package. # noqa: E501 + + # noqa: E501 - :return: The downloads of this Package. + :return: The downloads of this Package. # noqa: E501 :rtype: int """ return self._downloads @downloads.setter def downloads(self, downloads): - """ - Sets the downloads of this Package. - + """Sets the downloads of this Package. + + # noqa: E501 - :param downloads: The downloads of this Package. + :param downloads: The downloads of this Package. # noqa: E501 :type: int """ @@ -646,22 +650,22 @@ def downloads(self, downloads): @property def epoch(self): - """ - Gets the epoch of this Package. - The epoch of the package version (if any). + """Gets the epoch of this Package. # noqa: E501 - :return: The epoch of this Package. + The epoch of the package version (if any). # noqa: E501 + + :return: The epoch of this Package. # noqa: E501 :rtype: int """ return self._epoch @epoch.setter def epoch(self, epoch): - """ - Sets the epoch of this Package. - The epoch of the package version (if any). + """Sets the epoch of this Package. - :param epoch: The epoch of this Package. + The epoch of the package version (if any). # noqa: E501 + + :param epoch: The epoch of this Package. # noqa: E501 :type: int """ @@ -669,22 +673,22 @@ def epoch(self, epoch): @property def extension(self): - """ - Gets the extension of this Package. - + """Gets the extension of this Package. # noqa: E501 - :return: The extension of this Package. + # noqa: E501 + + :return: The extension of this Package. # noqa: E501 :rtype: str """ return self._extension @extension.setter def extension(self, extension): - """ - Sets the extension of this Package. - + """Sets the extension of this Package. - :param extension: The extension of this Package. + # noqa: E501 + + :param extension: The extension of this Package. # noqa: E501 :type: str """ @@ -692,22 +696,22 @@ def extension(self, extension): @property def filename(self): - """ - Gets the filename of this Package. - + """Gets the filename of this Package. # noqa: E501 - :return: The filename of this Package. + # noqa: E501 + + :return: The filename of this Package. # noqa: E501 :rtype: str """ return self._filename @filename.setter def filename(self, filename): - """ - Sets the filename of this Package. - + """Sets the filename of this Package. - :param filename: The filename of this Package. + # noqa: E501 + + :param filename: The filename of this Package. # noqa: E501 :type: str """ @@ -715,22 +719,22 @@ def filename(self, filename): @property def files(self): - """ - Gets the files of this Package. - + """Gets the files of this Package. # noqa: E501 - :return: The files of this Package. + # noqa: E501 + + :return: The files of this Package. # noqa: E501 :rtype: list[PackagesownerrepoFiles] """ return self._files @files.setter def files(self, files): - """ - Sets the files of this Package. - + """Sets the files of this Package. - :param files: The files of this Package. + # noqa: E501 + + :param files: The files of this Package. # noqa: E501 :type: list[PackagesownerrepoFiles] """ @@ -738,22 +742,22 @@ def files(self, files): @property def format(self): - """ - Gets the format of this Package. - + """Gets the format of this Package. # noqa: E501 + + # noqa: E501 - :return: The format of this Package. + :return: The format of this Package. # noqa: E501 :rtype: str """ return self._format @format.setter def format(self, format): - """ - Sets the format of this Package. - + """Sets the format of this Package. + + # noqa: E501 - :param format: The format of this Package. + :param format: The format of this Package. # noqa: E501 :type: str """ @@ -761,22 +765,22 @@ def format(self, format): @property def format_url(self): - """ - Gets the format_url of this Package. - + """Gets the format_url of this Package. # noqa: E501 + + # noqa: E501 - :return: The format_url of this Package. + :return: The format_url of this Package. # noqa: E501 :rtype: str """ return self._format_url @format_url.setter def format_url(self, format_url): - """ - Sets the format_url of this Package. - + """Sets the format_url of this Package. + + # noqa: E501 - :param format_url: The format_url of this Package. + :param format_url: The format_url of this Package. # noqa: E501 :type: str """ @@ -784,22 +788,22 @@ def format_url(self, format_url): @property def identifier_perm(self): - """ - Gets the identifier_perm of this Package. - Unique and permanent identifier for the package. + """Gets the identifier_perm of this Package. # noqa: E501 + + Unique and permanent identifier for the package. # noqa: E501 - :return: The identifier_perm of this Package. + :return: The identifier_perm of this Package. # noqa: E501 :rtype: str """ return self._identifier_perm @identifier_perm.setter def identifier_perm(self, identifier_perm): - """ - Sets the identifier_perm of this Package. - Unique and permanent identifier for the package. + """Sets the identifier_perm of this Package. - :param identifier_perm: The identifier_perm of this Package. + Unique and permanent identifier for the package. # noqa: E501 + + :param identifier_perm: The identifier_perm of this Package. # noqa: E501 :type: str """ @@ -807,22 +811,22 @@ def identifier_perm(self, identifier_perm): @property def indexed(self): - """ - Gets the indexed of this Package. - + """Gets the indexed of this Package. # noqa: E501 - :return: The indexed of this Package. + # noqa: E501 + + :return: The indexed of this Package. # noqa: E501 :rtype: bool """ return self._indexed @indexed.setter def indexed(self, indexed): - """ - Sets the indexed of this Package. - + """Sets the indexed of this Package. - :param indexed: The indexed of this Package. + # noqa: E501 + + :param indexed: The indexed of this Package. # noqa: E501 :type: bool """ @@ -830,22 +834,22 @@ def indexed(self, indexed): @property def is_sync_awaiting(self): - """ - Gets the is_sync_awaiting of this Package. - + """Gets the is_sync_awaiting of this Package. # noqa: E501 - :return: The is_sync_awaiting of this Package. + # noqa: E501 + + :return: The is_sync_awaiting of this Package. # noqa: E501 :rtype: bool """ return self._is_sync_awaiting @is_sync_awaiting.setter def is_sync_awaiting(self, is_sync_awaiting): - """ - Sets the is_sync_awaiting of this Package. - + """Sets the is_sync_awaiting of this Package. + + # noqa: E501 - :param is_sync_awaiting: The is_sync_awaiting of this Package. + :param is_sync_awaiting: The is_sync_awaiting of this Package. # noqa: E501 :type: bool """ @@ -853,22 +857,22 @@ def is_sync_awaiting(self, is_sync_awaiting): @property def is_sync_completed(self): - """ - Gets the is_sync_completed of this Package. - + """Gets the is_sync_completed of this Package. # noqa: E501 + + # noqa: E501 - :return: The is_sync_completed of this Package. + :return: The is_sync_completed of this Package. # noqa: E501 :rtype: bool """ return self._is_sync_completed @is_sync_completed.setter def is_sync_completed(self, is_sync_completed): - """ - Sets the is_sync_completed of this Package. - + """Sets the is_sync_completed of this Package. + + # noqa: E501 - :param is_sync_completed: The is_sync_completed of this Package. + :param is_sync_completed: The is_sync_completed of this Package. # noqa: E501 :type: bool """ @@ -876,22 +880,22 @@ def is_sync_completed(self, is_sync_completed): @property def is_sync_failed(self): - """ - Gets the is_sync_failed of this Package. - + """Gets the is_sync_failed of this Package. # noqa: E501 + + # noqa: E501 - :return: The is_sync_failed of this Package. + :return: The is_sync_failed of this Package. # noqa: E501 :rtype: bool """ return self._is_sync_failed @is_sync_failed.setter def is_sync_failed(self, is_sync_failed): - """ - Sets the is_sync_failed of this Package. - + """Sets the is_sync_failed of this Package. + + # noqa: E501 - :param is_sync_failed: The is_sync_failed of this Package. + :param is_sync_failed: The is_sync_failed of this Package. # noqa: E501 :type: bool """ @@ -899,22 +903,22 @@ def is_sync_failed(self, is_sync_failed): @property def is_sync_in_flight(self): - """ - Gets the is_sync_in_flight of this Package. - + """Gets the is_sync_in_flight of this Package. # noqa: E501 + + # noqa: E501 - :return: The is_sync_in_flight of this Package. + :return: The is_sync_in_flight of this Package. # noqa: E501 :rtype: bool """ return self._is_sync_in_flight @is_sync_in_flight.setter def is_sync_in_flight(self, is_sync_in_flight): - """ - Sets the is_sync_in_flight of this Package. - + """Sets the is_sync_in_flight of this Package. + + # noqa: E501 - :param is_sync_in_flight: The is_sync_in_flight of this Package. + :param is_sync_in_flight: The is_sync_in_flight of this Package. # noqa: E501 :type: bool """ @@ -922,22 +926,22 @@ def is_sync_in_flight(self, is_sync_in_flight): @property def is_sync_in_progress(self): - """ - Gets the is_sync_in_progress of this Package. - + """Gets the is_sync_in_progress of this Package. # noqa: E501 + + # noqa: E501 - :return: The is_sync_in_progress of this Package. + :return: The is_sync_in_progress of this Package. # noqa: E501 :rtype: bool """ return self._is_sync_in_progress @is_sync_in_progress.setter def is_sync_in_progress(self, is_sync_in_progress): - """ - Sets the is_sync_in_progress of this Package. - + """Sets the is_sync_in_progress of this Package. + + # noqa: E501 - :param is_sync_in_progress: The is_sync_in_progress of this Package. + :param is_sync_in_progress: The is_sync_in_progress of this Package. # noqa: E501 :type: bool """ @@ -945,22 +949,22 @@ def is_sync_in_progress(self, is_sync_in_progress): @property def license(self): - """ - Gets the license of this Package. - The license of this package. + """Gets the license of this Package. # noqa: E501 - :return: The license of this Package. + The license of this package. # noqa: E501 + + :return: The license of this Package. # noqa: E501 :rtype: str """ return self._license @license.setter def license(self, license): - """ - Sets the license of this Package. - The license of this package. + """Sets the license of this Package. - :param license: The license of this Package. + The license of this package. # noqa: E501 + + :param license: The license of this Package. # noqa: E501 :type: str """ @@ -968,22 +972,22 @@ def license(self, license): @property def name(self): - """ - Gets the name of this Package. - The name of this package. + """Gets the name of this Package. # noqa: E501 - :return: The name of this Package. + The name of this package. # noqa: E501 + + :return: The name of this Package. # noqa: E501 :rtype: str """ return self._name @name.setter def name(self, name): - """ - Sets the name of this Package. - The name of this package. + """Sets the name of this Package. - :param name: The name of this Package. + The name of this package. # noqa: E501 + + :param name: The name of this Package. # noqa: E501 :type: str """ @@ -991,22 +995,22 @@ def name(self, name): @property def namespace(self): - """ - Gets the namespace of this Package. - + """Gets the namespace of this Package. # noqa: E501 + + # noqa: E501 - :return: The namespace of this Package. + :return: The namespace of this Package. # noqa: E501 :rtype: str """ return self._namespace @namespace.setter def namespace(self, namespace): - """ - Sets the namespace of this Package. - + """Sets the namespace of this Package. + + # noqa: E501 - :param namespace: The namespace of this Package. + :param namespace: The namespace of this Package. # noqa: E501 :type: str """ @@ -1014,22 +1018,22 @@ def namespace(self, namespace): @property def namespace_url(self): - """ - Gets the namespace_url of this Package. - + """Gets the namespace_url of this Package. # noqa: E501 + + # noqa: E501 - :return: The namespace_url of this Package. + :return: The namespace_url of this Package. # noqa: E501 :rtype: str """ return self._namespace_url @namespace_url.setter def namespace_url(self, namespace_url): - """ - Sets the namespace_url of this Package. - + """Sets the namespace_url of this Package. + + # noqa: E501 - :param namespace_url: The namespace_url of this Package. + :param namespace_url: The namespace_url of this Package. # noqa: E501 :type: str """ @@ -1037,22 +1041,22 @@ def namespace_url(self, namespace_url): @property def num_files(self): - """ - Gets the num_files of this Package. - + """Gets the num_files of this Package. # noqa: E501 + + # noqa: E501 - :return: The num_files of this Package. + :return: The num_files of this Package. # noqa: E501 :rtype: int """ return self._num_files @num_files.setter def num_files(self, num_files): - """ - Sets the num_files of this Package. - + """Sets the num_files of this Package. - :param num_files: The num_files of this Package. + # noqa: E501 + + :param num_files: The num_files of this Package. # noqa: E501 :type: int """ @@ -1060,22 +1064,22 @@ def num_files(self, num_files): @property def package_type(self): - """ - Gets the package_type of this Package. - The type of package contents. + """Gets the package_type of this Package. # noqa: E501 - :return: The package_type of this Package. + The type of package contents. # noqa: E501 + + :return: The package_type of this Package. # noqa: E501 :rtype: str """ return self._package_type @package_type.setter def package_type(self, package_type): - """ - Sets the package_type of this Package. - The type of package contents. + """Sets the package_type of this Package. - :param package_type: The package_type of this Package. + The type of package contents. # noqa: E501 + + :param package_type: The package_type of this Package. # noqa: E501 :type: str """ @@ -1083,22 +1087,22 @@ def package_type(self, package_type): @property def release(self): - """ - Gets the release of this Package. - The release of the package version (if any). + """Gets the release of this Package. # noqa: E501 - :return: The release of this Package. + The release of the package version (if any). # noqa: E501 + + :return: The release of this Package. # noqa: E501 :rtype: str """ return self._release @release.setter def release(self, release): - """ - Sets the release of this Package. - The release of the package version (if any). + """Sets the release of this Package. - :param release: The release of this Package. + The release of the package version (if any). # noqa: E501 + + :param release: The release of this Package. # noqa: E501 :type: str """ @@ -1106,22 +1110,22 @@ def release(self, release): @property def repository(self): - """ - Gets the repository of this Package. - + """Gets the repository of this Package. # noqa: E501 - :return: The repository of this Package. + # noqa: E501 + + :return: The repository of this Package. # noqa: E501 :rtype: str """ return self._repository @repository.setter def repository(self, repository): - """ - Sets the repository of this Package. - + """Sets the repository of this Package. - :param repository: The repository of this Package. + # noqa: E501 + + :param repository: The repository of this Package. # noqa: E501 :type: str """ @@ -1129,22 +1133,22 @@ def repository(self, repository): @property def repository_url(self): - """ - Gets the repository_url of this Package. - + """Gets the repository_url of this Package. # noqa: E501 - :return: The repository_url of this Package. + # noqa: E501 + + :return: The repository_url of this Package. # noqa: E501 :rtype: str """ return self._repository_url @repository_url.setter def repository_url(self, repository_url): - """ - Sets the repository_url of this Package. - + """Sets the repository_url of this Package. + + # noqa: E501 - :param repository_url: The repository_url of this Package. + :param repository_url: The repository_url of this Package. # noqa: E501 :type: str """ @@ -1152,22 +1156,22 @@ def repository_url(self, repository_url): @property def security_scan_completed_at(self): - """ - Gets the security_scan_completed_at of this Package. - The datetime the security scanning was completed. + """Gets the security_scan_completed_at of this Package. # noqa: E501 + + The datetime the security scanning was completed. # noqa: E501 - :return: The security_scan_completed_at of this Package. + :return: The security_scan_completed_at of this Package. # noqa: E501 :rtype: str """ return self._security_scan_completed_at @security_scan_completed_at.setter def security_scan_completed_at(self, security_scan_completed_at): - """ - Sets the security_scan_completed_at of this Package. - The datetime the security scanning was completed. + """Sets the security_scan_completed_at of this Package. + + The datetime the security scanning was completed. # noqa: E501 - :param security_scan_completed_at: The security_scan_completed_at of this Package. + :param security_scan_completed_at: The security_scan_completed_at of this Package. # noqa: E501 :type: str """ @@ -1175,22 +1179,22 @@ def security_scan_completed_at(self, security_scan_completed_at): @property def security_scan_started_at(self): - """ - Gets the security_scan_started_at of this Package. - The datetime the security scanning was started. + """Gets the security_scan_started_at of this Package. # noqa: E501 + + The datetime the security scanning was started. # noqa: E501 - :return: The security_scan_started_at of this Package. + :return: The security_scan_started_at of this Package. # noqa: E501 :rtype: str """ return self._security_scan_started_at @security_scan_started_at.setter def security_scan_started_at(self, security_scan_started_at): - """ - Sets the security_scan_started_at of this Package. - The datetime the security scanning was started. + """Sets the security_scan_started_at of this Package. + + The datetime the security scanning was started. # noqa: E501 - :param security_scan_started_at: The security_scan_started_at of this Package. + :param security_scan_started_at: The security_scan_started_at of this Package. # noqa: E501 :type: str """ @@ -1198,22 +1202,22 @@ def security_scan_started_at(self, security_scan_started_at): @property def security_scan_status(self): - """ - Gets the security_scan_status of this Package. - + """Gets the security_scan_status of this Package. # noqa: E501 - :return: The security_scan_status of this Package. + # noqa: E501 + + :return: The security_scan_status of this Package. # noqa: E501 :rtype: str """ return self._security_scan_status @security_scan_status.setter def security_scan_status(self, security_scan_status): - """ - Sets the security_scan_status of this Package. - + """Sets the security_scan_status of this Package. - :param security_scan_status: The security_scan_status of this Package. + # noqa: E501 + + :param security_scan_status: The security_scan_status of this Package. # noqa: E501 :type: str """ @@ -1221,22 +1225,22 @@ def security_scan_status(self, security_scan_status): @property def security_scan_status_updated_at(self): - """ - Gets the security_scan_status_updated_at of this Package. - The datetime the security scanning status was updated. + """Gets the security_scan_status_updated_at of this Package. # noqa: E501 - :return: The security_scan_status_updated_at of this Package. + The datetime the security scanning status was updated. # noqa: E501 + + :return: The security_scan_status_updated_at of this Package. # noqa: E501 :rtype: str """ return self._security_scan_status_updated_at @security_scan_status_updated_at.setter def security_scan_status_updated_at(self, security_scan_status_updated_at): - """ - Sets the security_scan_status_updated_at of this Package. - The datetime the security scanning status was updated. + """Sets the security_scan_status_updated_at of this Package. - :param security_scan_status_updated_at: The security_scan_status_updated_at of this Package. + The datetime the security scanning status was updated. # noqa: E501 + + :param security_scan_status_updated_at: The security_scan_status_updated_at of this Package. # noqa: E501 :type: str """ @@ -1244,22 +1248,22 @@ def security_scan_status_updated_at(self, security_scan_status_updated_at): @property def self_html_url(self): - """ - Gets the self_html_url of this Package. - + """Gets the self_html_url of this Package. # noqa: E501 + + # noqa: E501 - :return: The self_html_url of this Package. + :return: The self_html_url of this Package. # noqa: E501 :rtype: str """ return self._self_html_url @self_html_url.setter def self_html_url(self, self_html_url): - """ - Sets the self_html_url of this Package. - + """Sets the self_html_url of this Package. + + # noqa: E501 - :param self_html_url: The self_html_url of this Package. + :param self_html_url: The self_html_url of this Package. # noqa: E501 :type: str """ @@ -1267,22 +1271,22 @@ def self_html_url(self, self_html_url): @property def self_url(self): - """ - Gets the self_url of this Package. - + """Gets the self_url of this Package. # noqa: E501 + + # noqa: E501 - :return: The self_url of this Package. + :return: The self_url of this Package. # noqa: E501 :rtype: str """ return self._self_url @self_url.setter def self_url(self, self_url): - """ - Sets the self_url of this Package. - + """Sets the self_url of this Package. + + # noqa: E501 - :param self_url: The self_url of this Package. + :param self_url: The self_url of this Package. # noqa: E501 :type: str """ @@ -1290,22 +1294,22 @@ def self_url(self, self_url): @property def signature_url(self): - """ - Gets the signature_url of this Package. - + """Gets the signature_url of this Package. # noqa: E501 + + # noqa: E501 - :return: The signature_url of this Package. + :return: The signature_url of this Package. # noqa: E501 :rtype: str """ return self._signature_url @signature_url.setter def signature_url(self, signature_url): - """ - Sets the signature_url of this Package. - + """Sets the signature_url of this Package. + + # noqa: E501 - :param signature_url: The signature_url of this Package. + :param signature_url: The signature_url of this Package. # noqa: E501 :type: str """ @@ -1313,22 +1317,22 @@ def signature_url(self, signature_url): @property def size(self): - """ - Gets the size of this Package. - The calculated size of the package. + """Gets the size of this Package. # noqa: E501 + + The calculated size of the package. # noqa: E501 - :return: The size of this Package. + :return: The size of this Package. # noqa: E501 :rtype: int """ return self._size @size.setter def size(self, size): - """ - Sets the size of this Package. - The calculated size of the package. + """Sets the size of this Package. + + The calculated size of the package. # noqa: E501 - :param size: The size of this Package. + :param size: The size of this Package. # noqa: E501 :type: int """ @@ -1336,22 +1340,22 @@ def size(self, size): @property def slug(self): - """ - Gets the slug of this Package. - The public unique identifier for the package. + """Gets the slug of this Package. # noqa: E501 + + The public unique identifier for the package. # noqa: E501 - :return: The slug of this Package. + :return: The slug of this Package. # noqa: E501 :rtype: str """ return self._slug @slug.setter def slug(self, slug): - """ - Sets the slug of this Package. - The public unique identifier for the package. + """Sets the slug of this Package. - :param slug: The slug of this Package. + The public unique identifier for the package. # noqa: E501 + + :param slug: The slug of this Package. # noqa: E501 :type: str """ @@ -1359,22 +1363,22 @@ def slug(self, slug): @property def slug_perm(self): - """ - Gets the slug_perm of this Package. - + """Gets the slug_perm of this Package. # noqa: E501 - :return: The slug_perm of this Package. + # noqa: E501 + + :return: The slug_perm of this Package. # noqa: E501 :rtype: str """ return self._slug_perm @slug_perm.setter def slug_perm(self, slug_perm): - """ - Sets the slug_perm of this Package. - + """Sets the slug_perm of this Package. - :param slug_perm: The slug_perm of this Package. + # noqa: E501 + + :param slug_perm: The slug_perm of this Package. # noqa: E501 :type: str """ @@ -1382,22 +1386,22 @@ def slug_perm(self, slug_perm): @property def stage(self): - """ - Gets the stage of this Package. - The synchronisation (in progress) stage of the package. + """Gets the stage of this Package. # noqa: E501 - :return: The stage of this Package. + The synchronisation (in progress) stage of the package. # noqa: E501 + + :return: The stage of this Package. # noqa: E501 :rtype: str """ return self._stage @stage.setter def stage(self, stage): - """ - Sets the stage of this Package. - The synchronisation (in progress) stage of the package. + """Sets the stage of this Package. + + The synchronisation (in progress) stage of the package. # noqa: E501 - :param stage: The stage of this Package. + :param stage: The stage of this Package. # noqa: E501 :type: str """ @@ -1405,22 +1409,22 @@ def stage(self, stage): @property def stage_str(self): - """ - Gets the stage_str of this Package. - + """Gets the stage_str of this Package. # noqa: E501 + + # noqa: E501 - :return: The stage_str of this Package. + :return: The stage_str of this Package. # noqa: E501 :rtype: str """ return self._stage_str @stage_str.setter def stage_str(self, stage_str): - """ - Sets the stage_str of this Package. - + """Sets the stage_str of this Package. + + # noqa: E501 - :param stage_str: The stage_str of this Package. + :param stage_str: The stage_str of this Package. # noqa: E501 :type: str """ @@ -1428,22 +1432,22 @@ def stage_str(self, stage_str): @property def stage_updated_at(self): - """ - Gets the stage_updated_at of this Package. - The datetime the package stage was updated at. + """Gets the stage_updated_at of this Package. # noqa: E501 + + The datetime the package stage was updated at. # noqa: E501 - :return: The stage_updated_at of this Package. + :return: The stage_updated_at of this Package. # noqa: E501 :rtype: str """ return self._stage_updated_at @stage_updated_at.setter def stage_updated_at(self, stage_updated_at): - """ - Sets the stage_updated_at of this Package. - The datetime the package stage was updated at. + """Sets the stage_updated_at of this Package. + + The datetime the package stage was updated at. # noqa: E501 - :param stage_updated_at: The stage_updated_at of this Package. + :param stage_updated_at: The stage_updated_at of this Package. # noqa: E501 :type: str """ @@ -1451,22 +1455,22 @@ def stage_updated_at(self, stage_updated_at): @property def status(self): - """ - Gets the status of this Package. - The synchronisation status of the package. + """Gets the status of this Package. # noqa: E501 - :return: The status of this Package. + The synchronisation status of the package. # noqa: E501 + + :return: The status of this Package. # noqa: E501 :rtype: str """ return self._status @status.setter def status(self, status): - """ - Sets the status of this Package. - The synchronisation status of the package. + """Sets the status of this Package. - :param status: The status of this Package. + The synchronisation status of the package. # noqa: E501 + + :param status: The status of this Package. # noqa: E501 :type: str """ @@ -1474,22 +1478,22 @@ def status(self, status): @property def status_reason(self): - """ - Gets the status_reason of this Package. - A textual description for the synchronous status reason (if any + """Gets the status_reason of this Package. # noqa: E501 - :return: The status_reason of this Package. + A textual description for the synchronous status reason (if any # noqa: E501 + + :return: The status_reason of this Package. # noqa: E501 :rtype: str """ return self._status_reason @status_reason.setter def status_reason(self, status_reason): - """ - Sets the status_reason of this Package. - A textual description for the synchronous status reason (if any + """Sets the status_reason of this Package. - :param status_reason: The status_reason of this Package. + A textual description for the synchronous status reason (if any # noqa: E501 + + :param status_reason: The status_reason of this Package. # noqa: E501 :type: str """ @@ -1497,22 +1501,22 @@ def status_reason(self, status_reason): @property def status_str(self): - """ - Gets the status_str of this Package. - + """Gets the status_str of this Package. # noqa: E501 - :return: The status_str of this Package. + # noqa: E501 + + :return: The status_str of this Package. # noqa: E501 :rtype: str """ return self._status_str @status_str.setter def status_str(self, status_str): - """ - Sets the status_str of this Package. - + """Sets the status_str of this Package. - :param status_str: The status_str of this Package. + # noqa: E501 + + :param status_str: The status_str of this Package. # noqa: E501 :type: str """ @@ -1520,22 +1524,22 @@ def status_str(self, status_str): @property def status_updated_at(self): - """ - Gets the status_updated_at of this Package. - The datetime the package status was updated at. + """Gets the status_updated_at of this Package. # noqa: E501 - :return: The status_updated_at of this Package. + The datetime the package status was updated at. # noqa: E501 + + :return: The status_updated_at of this Package. # noqa: E501 :rtype: str """ return self._status_updated_at @status_updated_at.setter def status_updated_at(self, status_updated_at): - """ - Sets the status_updated_at of this Package. - The datetime the package status was updated at. + """Sets the status_updated_at of this Package. - :param status_updated_at: The status_updated_at of this Package. + The datetime the package status was updated at. # noqa: E501 + + :param status_updated_at: The status_updated_at of this Package. # noqa: E501 :type: str """ @@ -1543,22 +1547,22 @@ def status_updated_at(self, status_updated_at): @property def status_url(self): - """ - Gets the status_url of this Package. - + """Gets the status_url of this Package. # noqa: E501 + + # noqa: E501 - :return: The status_url of this Package. + :return: The status_url of this Package. # noqa: E501 :rtype: str """ return self._status_url @status_url.setter def status_url(self, status_url): - """ - Sets the status_url of this Package. - + """Sets the status_url of this Package. + + # noqa: E501 - :param status_url: The status_url of this Package. + :param status_url: The status_url of this Package. # noqa: E501 :type: str """ @@ -1566,22 +1570,22 @@ def status_url(self, status_url): @property def subtype(self): - """ - Gets the subtype of this Package. - + """Gets the subtype of this Package. # noqa: E501 + + # noqa: E501 - :return: The subtype of this Package. + :return: The subtype of this Package. # noqa: E501 :rtype: str """ return self._subtype @subtype.setter def subtype(self, subtype): - """ - Sets the subtype of this Package. - + """Sets the subtype of this Package. + + # noqa: E501 - :param subtype: The subtype of this Package. + :param subtype: The subtype of this Package. # noqa: E501 :type: str """ @@ -1589,22 +1593,22 @@ def subtype(self, subtype): @property def summary(self): - """ - Gets the summary of this Package. - A one-liner synopsis of this package. + """Gets the summary of this Package. # noqa: E501 + + A one-liner synopsis of this package. # noqa: E501 - :return: The summary of this Package. + :return: The summary of this Package. # noqa: E501 :rtype: str """ return self._summary @summary.setter def summary(self, summary): - """ - Sets the summary of this Package. - A one-liner synopsis of this package. + """Sets the summary of this Package. - :param summary: The summary of this Package. + A one-liner synopsis of this package. # noqa: E501 + + :param summary: The summary of this Package. # noqa: E501 :type: str """ @@ -1612,22 +1616,22 @@ def summary(self, summary): @property def sync_finished_at(self): - """ - Gets the sync_finished_at of this Package. - The datetime the package sync was finished at. + """Gets the sync_finished_at of this Package. # noqa: E501 - :return: The sync_finished_at of this Package. + The datetime the package sync was finished at. # noqa: E501 + + :return: The sync_finished_at of this Package. # noqa: E501 :rtype: str """ return self._sync_finished_at @sync_finished_at.setter def sync_finished_at(self, sync_finished_at): - """ - Sets the sync_finished_at of this Package. - The datetime the package sync was finished at. + """Sets the sync_finished_at of this Package. - :param sync_finished_at: The sync_finished_at of this Package. + The datetime the package sync was finished at. # noqa: E501 + + :param sync_finished_at: The sync_finished_at of this Package. # noqa: E501 :type: str """ @@ -1635,22 +1639,22 @@ def sync_finished_at(self, sync_finished_at): @property def sync_progress(self): - """ - Gets the sync_progress of this Package. - Synchronisation progress (from 0-100) + """Gets the sync_progress of this Package. # noqa: E501 - :return: The sync_progress of this Package. + Synchronisation progress (from 0-100) # noqa: E501 + + :return: The sync_progress of this Package. # noqa: E501 :rtype: int """ return self._sync_progress @sync_progress.setter def sync_progress(self, sync_progress): - """ - Sets the sync_progress of this Package. - Synchronisation progress (from 0-100) + """Sets the sync_progress of this Package. + + Synchronisation progress (from 0-100) # noqa: E501 - :param sync_progress: The sync_progress of this Package. + :param sync_progress: The sync_progress of this Package. # noqa: E501 :type: int """ @@ -1658,22 +1662,22 @@ def sync_progress(self, sync_progress): @property def tags(self): - """ - Gets the tags of this Package. - All tags on the package, grouped by tag type. This includes immutable tags, but doesn't distinguish them from mutable. To see which tags are immutable specifically, see the tags_immutable field. + """Gets the tags of this Package. # noqa: E501 + + All tags on the package, grouped by tag type. This includes immutable tags, but doesn't distinguish them from mutable. To see which tags are immutable specifically, see the tags_immutable field. # noqa: E501 - :return: The tags of this Package. + :return: The tags of this Package. # noqa: E501 :rtype: object """ return self._tags @tags.setter def tags(self, tags): - """ - Sets the tags of this Package. - All tags on the package, grouped by tag type. This includes immutable tags, but doesn't distinguish them from mutable. To see which tags are immutable specifically, see the tags_immutable field. + """Sets the tags of this Package. + + All tags on the package, grouped by tag type. This includes immutable tags, but doesn't distinguish them from mutable. To see which tags are immutable specifically, see the tags_immutable field. # noqa: E501 - :param tags: The tags of this Package. + :param tags: The tags of this Package. # noqa: E501 :type: object """ @@ -1681,22 +1685,22 @@ def tags(self, tags): @property def tags_immutable(self): - """ - Gets the tags_immutable of this Package. - All immutable tags on the package, grouped by tag type. Immutable tags cannot be (easily) deleted. + """Gets the tags_immutable of this Package. # noqa: E501 + + All immutable tags on the package, grouped by tag type. Immutable tags cannot be (easily) deleted. # noqa: E501 - :return: The tags_immutable of this Package. + :return: The tags_immutable of this Package. # noqa: E501 :rtype: object """ return self._tags_immutable @tags_immutable.setter def tags_immutable(self, tags_immutable): - """ - Sets the tags_immutable of this Package. - All immutable tags on the package, grouped by tag type. Immutable tags cannot be (easily) deleted. + """Sets the tags_immutable of this Package. + + All immutable tags on the package, grouped by tag type. Immutable tags cannot be (easily) deleted. # noqa: E501 - :param tags_immutable: The tags_immutable of this Package. + :param tags_immutable: The tags_immutable of this Package. # noqa: E501 :type: object """ @@ -1704,22 +1708,22 @@ def tags_immutable(self, tags_immutable): @property def type_display(self): - """ - Gets the type_display of this Package. - + """Gets the type_display of this Package. # noqa: E501 + + # noqa: E501 - :return: The type_display of this Package. + :return: The type_display of this Package. # noqa: E501 :rtype: str """ return self._type_display @type_display.setter def type_display(self, type_display): - """ - Sets the type_display of this Package. - + """Sets the type_display of this Package. + + # noqa: E501 - :param type_display: The type_display of this Package. + :param type_display: The type_display of this Package. # noqa: E501 :type: str """ @@ -1727,22 +1731,22 @@ def type_display(self, type_display): @property def uploaded_at(self): - """ - Gets the uploaded_at of this Package. - The date this package was uploaded. + """Gets the uploaded_at of this Package. # noqa: E501 + + The date this package was uploaded. # noqa: E501 - :return: The uploaded_at of this Package. + :return: The uploaded_at of this Package. # noqa: E501 :rtype: str """ return self._uploaded_at @uploaded_at.setter def uploaded_at(self, uploaded_at): - """ - Sets the uploaded_at of this Package. - The date this package was uploaded. + """Sets the uploaded_at of this Package. + + The date this package was uploaded. # noqa: E501 - :param uploaded_at: The uploaded_at of this Package. + :param uploaded_at: The uploaded_at of this Package. # noqa: E501 :type: str """ @@ -1750,22 +1754,22 @@ def uploaded_at(self, uploaded_at): @property def uploader(self): - """ - Gets the uploader of this Package. - + """Gets the uploader of this Package. # noqa: E501 - :return: The uploader of this Package. + # noqa: E501 + + :return: The uploader of this Package. # noqa: E501 :rtype: str """ return self._uploader @uploader.setter def uploader(self, uploader): - """ - Sets the uploader of this Package. - + """Sets the uploader of this Package. - :param uploader: The uploader of this Package. + # noqa: E501 + + :param uploader: The uploader of this Package. # noqa: E501 :type: str """ @@ -1773,22 +1777,22 @@ def uploader(self, uploader): @property def uploader_url(self): - """ - Gets the uploader_url of this Package. - + """Gets the uploader_url of this Package. # noqa: E501 - :return: The uploader_url of this Package. + # noqa: E501 + + :return: The uploader_url of this Package. # noqa: E501 :rtype: str """ return self._uploader_url @uploader_url.setter def uploader_url(self, uploader_url): - """ - Sets the uploader_url of this Package. - + """Sets the uploader_url of this Package. - :param uploader_url: The uploader_url of this Package. + # noqa: E501 + + :param uploader_url: The uploader_url of this Package. # noqa: E501 :type: str """ @@ -1796,22 +1800,22 @@ def uploader_url(self, uploader_url): @property def version(self): - """ - Gets the version of this Package. - The raw version for this package. + """Gets the version of this Package. # noqa: E501 - :return: The version of this Package. + The raw version for this package. # noqa: E501 + + :return: The version of this Package. # noqa: E501 :rtype: str """ return self._version @version.setter def version(self, version): - """ - Sets the version of this Package. - The raw version for this package. + """Sets the version of this Package. - :param version: The version of this Package. + The raw version for this package. # noqa: E501 + + :param version: The version of this Package. # noqa: E501 :type: str """ @@ -1819,22 +1823,22 @@ def version(self, version): @property def version_orig(self): - """ - Gets the version_orig of this Package. - + """Gets the version_orig of this Package. # noqa: E501 - :return: The version_orig of this Package. + # noqa: E501 + + :return: The version_orig of this Package. # noqa: E501 :rtype: str """ return self._version_orig @version_orig.setter def version_orig(self, version_orig): - """ - Sets the version_orig of this Package. - + """Sets the version_orig of this Package. - :param version_orig: The version_orig of this Package. + # noqa: E501 + + :param version_orig: The version_orig of this Package. # noqa: E501 :type: str """ @@ -1842,34 +1846,32 @@ def version_orig(self, version_orig): @property def vulnerability_scan_results_url(self): - """ - Gets the vulnerability_scan_results_url of this Package. - + """Gets the vulnerability_scan_results_url of this Package. # noqa: E501 + + # noqa: E501 - :return: The vulnerability_scan_results_url of this Package. + :return: The vulnerability_scan_results_url of this Package. # noqa: E501 :rtype: str """ return self._vulnerability_scan_results_url @vulnerability_scan_results_url.setter def vulnerability_scan_results_url(self, vulnerability_scan_results_url): - """ - Sets the vulnerability_scan_results_url of this Package. - + """Sets the vulnerability_scan_results_url of this Package. + + # noqa: E501 - :param vulnerability_scan_results_url: The vulnerability_scan_results_url of this Package. + :param vulnerability_scan_results_url: The vulnerability_scan_results_url of this Package. # noqa: E501 :type: str """ self._vulnerability_scan_results_url = vulnerability_scan_results_url def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -1886,32 +1888,30 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(Package, dict): + for key, value in self.items(): + result[key] = value return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, Package): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other + """Returns true if both objects are not equal""" + if not isinstance(other, Package): + return True + + return self.to_dict() != other.to_dict() diff --git a/bindings/python/src/cloudsmith_api/models/package_copy.py b/bindings/python/src/cloudsmith_api/models/package_copy.py index 72dff87a..5a8dbbfc 100644 --- a/bindings/python/src/cloudsmith_api/models/package_copy.py +++ b/bindings/python/src/cloudsmith_api/models/package_copy.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -11,18 +11,20 @@ """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration class PackageCopy(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -166,10 +168,11 @@ class PackageCopy(object): 'vulnerability_scan_results_url': 'vulnerability_scan_results_url' } - def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, distro=None, distro_version=None, downloads=None, epoch=None, extension=None, filename=None, files=None, format=None, format_url=None, identifier_perm=None, indexed=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, package_type=None, release=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status=None, security_scan_status_updated_at=None, self_html_url=None, self_url=None, signature_url=None, size=None, slug=None, slug_perm=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags=None, tags_immutable=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_scan_results_url=None): - """ - PackageCopy - a model defined in Swagger - """ + def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, distro=None, distro_version=None, downloads=None, epoch=None, extension=None, filename=None, files=None, format=None, format_url=None, identifier_perm=None, indexed=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, package_type=None, release=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status=None, security_scan_status_updated_at=None, self_html_url=None, self_url=None, signature_url=None, size=None, slug=None, slug_perm=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags=None, tags_immutable=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 + """PackageCopy - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._architectures = None self._cdn_url = None @@ -236,156 +239,157 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._version = None self._version_orig = None self._vulnerability_scan_results_url = None + self.discriminator = None if architectures is not None: - self.architectures = architectures + self.architectures = architectures if cdn_url is not None: - self.cdn_url = cdn_url + self.cdn_url = cdn_url if checksum_md5 is not None: - self.checksum_md5 = checksum_md5 + self.checksum_md5 = checksum_md5 if checksum_sha1 is not None: - self.checksum_sha1 = checksum_sha1 + self.checksum_sha1 = checksum_sha1 if checksum_sha256 is not None: - self.checksum_sha256 = checksum_sha256 + self.checksum_sha256 = checksum_sha256 if checksum_sha512 is not None: - self.checksum_sha512 = checksum_sha512 + self.checksum_sha512 = checksum_sha512 if dependencies_checksum_md5 is not None: - self.dependencies_checksum_md5 = dependencies_checksum_md5 + self.dependencies_checksum_md5 = dependencies_checksum_md5 if dependencies_url is not None: - self.dependencies_url = dependencies_url + self.dependencies_url = dependencies_url if description is not None: - self.description = description + self.description = description if distro is not None: - self.distro = distro + self.distro = distro if distro_version is not None: - self.distro_version = distro_version + self.distro_version = distro_version if downloads is not None: - self.downloads = downloads + self.downloads = downloads if epoch is not None: - self.epoch = epoch + self.epoch = epoch if extension is not None: - self.extension = extension + self.extension = extension if filename is not None: - self.filename = filename + self.filename = filename if files is not None: - self.files = files + self.files = files if format is not None: - self.format = format + self.format = format if format_url is not None: - self.format_url = format_url + self.format_url = format_url if identifier_perm is not None: - self.identifier_perm = identifier_perm + self.identifier_perm = identifier_perm if indexed is not None: - self.indexed = indexed + self.indexed = indexed if is_sync_awaiting is not None: - self.is_sync_awaiting = is_sync_awaiting + self.is_sync_awaiting = is_sync_awaiting if is_sync_completed is not None: - self.is_sync_completed = is_sync_completed + self.is_sync_completed = is_sync_completed if is_sync_failed is not None: - self.is_sync_failed = is_sync_failed + self.is_sync_failed = is_sync_failed if is_sync_in_flight is not None: - self.is_sync_in_flight = is_sync_in_flight + self.is_sync_in_flight = is_sync_in_flight if is_sync_in_progress is not None: - self.is_sync_in_progress = is_sync_in_progress + self.is_sync_in_progress = is_sync_in_progress if license is not None: - self.license = license + self.license = license if name is not None: - self.name = name + self.name = name if namespace is not None: - self.namespace = namespace + self.namespace = namespace if namespace_url is not None: - self.namespace_url = namespace_url + self.namespace_url = namespace_url if num_files is not None: - self.num_files = num_files + self.num_files = num_files if package_type is not None: - self.package_type = package_type + self.package_type = package_type if release is not None: - self.release = release + self.release = release if repository is not None: - self.repository = repository + self.repository = repository if repository_url is not None: - self.repository_url = repository_url + self.repository_url = repository_url if security_scan_completed_at is not None: - self.security_scan_completed_at = security_scan_completed_at + self.security_scan_completed_at = security_scan_completed_at if security_scan_started_at is not None: - self.security_scan_started_at = security_scan_started_at + self.security_scan_started_at = security_scan_started_at if security_scan_status is not None: - self.security_scan_status = security_scan_status + self.security_scan_status = security_scan_status if security_scan_status_updated_at is not None: - self.security_scan_status_updated_at = security_scan_status_updated_at + self.security_scan_status_updated_at = security_scan_status_updated_at if self_html_url is not None: - self.self_html_url = self_html_url + self.self_html_url = self_html_url if self_url is not None: - self.self_url = self_url + self.self_url = self_url if signature_url is not None: - self.signature_url = signature_url + self.signature_url = signature_url if size is not None: - self.size = size + self.size = size if slug is not None: - self.slug = slug + self.slug = slug if slug_perm is not None: - self.slug_perm = slug_perm + self.slug_perm = slug_perm if stage is not None: - self.stage = stage + self.stage = stage if stage_str is not None: - self.stage_str = stage_str + self.stage_str = stage_str if stage_updated_at is not None: - self.stage_updated_at = stage_updated_at + self.stage_updated_at = stage_updated_at if status is not None: - self.status = status + self.status = status if status_reason is not None: - self.status_reason = status_reason + self.status_reason = status_reason if status_str is not None: - self.status_str = status_str + self.status_str = status_str if status_updated_at is not None: - self.status_updated_at = status_updated_at + self.status_updated_at = status_updated_at if status_url is not None: - self.status_url = status_url + self.status_url = status_url if subtype is not None: - self.subtype = subtype + self.subtype = subtype if summary is not None: - self.summary = summary + self.summary = summary if sync_finished_at is not None: - self.sync_finished_at = sync_finished_at + self.sync_finished_at = sync_finished_at if sync_progress is not None: - self.sync_progress = sync_progress + self.sync_progress = sync_progress if tags is not None: - self.tags = tags + self.tags = tags if tags_immutable is not None: - self.tags_immutable = tags_immutable + self.tags_immutable = tags_immutable if type_display is not None: - self.type_display = type_display + self.type_display = type_display if uploaded_at is not None: - self.uploaded_at = uploaded_at + self.uploaded_at = uploaded_at if uploader is not None: - self.uploader = uploader + self.uploader = uploader if uploader_url is not None: - self.uploader_url = uploader_url + self.uploader_url = uploader_url if version is not None: - self.version = version + self.version = version if version_orig is not None: - self.version_orig = version_orig + self.version_orig = version_orig if vulnerability_scan_results_url is not None: - self.vulnerability_scan_results_url = vulnerability_scan_results_url + self.vulnerability_scan_results_url = vulnerability_scan_results_url @property def architectures(self): - """ - Gets the architectures of this PackageCopy. - + """Gets the architectures of this PackageCopy. # noqa: E501 + + # noqa: E501 - :return: The architectures of this PackageCopy. + :return: The architectures of this PackageCopy. # noqa: E501 :rtype: list[PackagesownerrepoArchitectures] """ return self._architectures @architectures.setter def architectures(self, architectures): - """ - Sets the architectures of this PackageCopy. - + """Sets the architectures of this PackageCopy. + + # noqa: E501 - :param architectures: The architectures of this PackageCopy. + :param architectures: The architectures of this PackageCopy. # noqa: E501 :type: list[PackagesownerrepoArchitectures] """ @@ -393,22 +397,22 @@ def architectures(self, architectures): @property def cdn_url(self): - """ - Gets the cdn_url of this PackageCopy. - + """Gets the cdn_url of this PackageCopy. # noqa: E501 - :return: The cdn_url of this PackageCopy. + # noqa: E501 + + :return: The cdn_url of this PackageCopy. # noqa: E501 :rtype: str """ return self._cdn_url @cdn_url.setter def cdn_url(self, cdn_url): - """ - Sets the cdn_url of this PackageCopy. - + """Sets the cdn_url of this PackageCopy. - :param cdn_url: The cdn_url of this PackageCopy. + # noqa: E501 + + :param cdn_url: The cdn_url of this PackageCopy. # noqa: E501 :type: str """ @@ -416,22 +420,22 @@ def cdn_url(self, cdn_url): @property def checksum_md5(self): - """ - Gets the checksum_md5 of this PackageCopy. - + """Gets the checksum_md5 of this PackageCopy. # noqa: E501 - :return: The checksum_md5 of this PackageCopy. + # noqa: E501 + + :return: The checksum_md5 of this PackageCopy. # noqa: E501 :rtype: str """ return self._checksum_md5 @checksum_md5.setter def checksum_md5(self, checksum_md5): - """ - Sets the checksum_md5 of this PackageCopy. - + """Sets the checksum_md5 of this PackageCopy. - :param checksum_md5: The checksum_md5 of this PackageCopy. + # noqa: E501 + + :param checksum_md5: The checksum_md5 of this PackageCopy. # noqa: E501 :type: str """ @@ -439,22 +443,22 @@ def checksum_md5(self, checksum_md5): @property def checksum_sha1(self): - """ - Gets the checksum_sha1 of this PackageCopy. - + """Gets the checksum_sha1 of this PackageCopy. # noqa: E501 + + # noqa: E501 - :return: The checksum_sha1 of this PackageCopy. + :return: The checksum_sha1 of this PackageCopy. # noqa: E501 :rtype: str """ return self._checksum_sha1 @checksum_sha1.setter def checksum_sha1(self, checksum_sha1): - """ - Sets the checksum_sha1 of this PackageCopy. - + """Sets the checksum_sha1 of this PackageCopy. + + # noqa: E501 - :param checksum_sha1: The checksum_sha1 of this PackageCopy. + :param checksum_sha1: The checksum_sha1 of this PackageCopy. # noqa: E501 :type: str """ @@ -462,22 +466,22 @@ def checksum_sha1(self, checksum_sha1): @property def checksum_sha256(self): - """ - Gets the checksum_sha256 of this PackageCopy. - + """Gets the checksum_sha256 of this PackageCopy. # noqa: E501 + + # noqa: E501 - :return: The checksum_sha256 of this PackageCopy. + :return: The checksum_sha256 of this PackageCopy. # noqa: E501 :rtype: str """ return self._checksum_sha256 @checksum_sha256.setter def checksum_sha256(self, checksum_sha256): - """ - Sets the checksum_sha256 of this PackageCopy. - + """Sets the checksum_sha256 of this PackageCopy. + + # noqa: E501 - :param checksum_sha256: The checksum_sha256 of this PackageCopy. + :param checksum_sha256: The checksum_sha256 of this PackageCopy. # noqa: E501 :type: str """ @@ -485,22 +489,22 @@ def checksum_sha256(self, checksum_sha256): @property def checksum_sha512(self): - """ - Gets the checksum_sha512 of this PackageCopy. - + """Gets the checksum_sha512 of this PackageCopy. # noqa: E501 + + # noqa: E501 - :return: The checksum_sha512 of this PackageCopy. + :return: The checksum_sha512 of this PackageCopy. # noqa: E501 :rtype: str """ return self._checksum_sha512 @checksum_sha512.setter def checksum_sha512(self, checksum_sha512): - """ - Sets the checksum_sha512 of this PackageCopy. - + """Sets the checksum_sha512 of this PackageCopy. + + # noqa: E501 - :param checksum_sha512: The checksum_sha512 of this PackageCopy. + :param checksum_sha512: The checksum_sha512 of this PackageCopy. # noqa: E501 :type: str """ @@ -508,22 +512,22 @@ def checksum_sha512(self, checksum_sha512): @property def dependencies_checksum_md5(self): - """ - Gets the dependencies_checksum_md5 of this PackageCopy. - A checksum of all of the package's dependencies. + """Gets the dependencies_checksum_md5 of this PackageCopy. # noqa: E501 + + A checksum of all of the package's dependencies. # noqa: E501 - :return: The dependencies_checksum_md5 of this PackageCopy. + :return: The dependencies_checksum_md5 of this PackageCopy. # noqa: E501 :rtype: str """ return self._dependencies_checksum_md5 @dependencies_checksum_md5.setter def dependencies_checksum_md5(self, dependencies_checksum_md5): - """ - Sets the dependencies_checksum_md5 of this PackageCopy. - A checksum of all of the package's dependencies. + """Sets the dependencies_checksum_md5 of this PackageCopy. + + A checksum of all of the package's dependencies. # noqa: E501 - :param dependencies_checksum_md5: The dependencies_checksum_md5 of this PackageCopy. + :param dependencies_checksum_md5: The dependencies_checksum_md5 of this PackageCopy. # noqa: E501 :type: str """ @@ -531,22 +535,22 @@ def dependencies_checksum_md5(self, dependencies_checksum_md5): @property def dependencies_url(self): - """ - Gets the dependencies_url of this PackageCopy. - + """Gets the dependencies_url of this PackageCopy. # noqa: E501 + + # noqa: E501 - :return: The dependencies_url of this PackageCopy. + :return: The dependencies_url of this PackageCopy. # noqa: E501 :rtype: str """ return self._dependencies_url @dependencies_url.setter def dependencies_url(self, dependencies_url): - """ - Sets the dependencies_url of this PackageCopy. - + """Sets the dependencies_url of this PackageCopy. - :param dependencies_url: The dependencies_url of this PackageCopy. + # noqa: E501 + + :param dependencies_url: The dependencies_url of this PackageCopy. # noqa: E501 :type: str """ @@ -554,22 +558,22 @@ def dependencies_url(self, dependencies_url): @property def description(self): - """ - Gets the description of this PackageCopy. - A textual description of this package. + """Gets the description of this PackageCopy. # noqa: E501 - :return: The description of this PackageCopy. + A textual description of this package. # noqa: E501 + + :return: The description of this PackageCopy. # noqa: E501 :rtype: str """ return self._description @description.setter def description(self, description): - """ - Sets the description of this PackageCopy. - A textual description of this package. + """Sets the description of this PackageCopy. - :param description: The description of this PackageCopy. + A textual description of this package. # noqa: E501 + + :param description: The description of this PackageCopy. # noqa: E501 :type: str """ @@ -577,22 +581,22 @@ def description(self, description): @property def distro(self): - """ - Gets the distro of this PackageCopy. - + """Gets the distro of this PackageCopy. # noqa: E501 - :return: The distro of this PackageCopy. + # noqa: E501 + + :return: The distro of this PackageCopy. # noqa: E501 :rtype: object """ return self._distro @distro.setter def distro(self, distro): - """ - Sets the distro of this PackageCopy. - + """Sets the distro of this PackageCopy. + + # noqa: E501 - :param distro: The distro of this PackageCopy. + :param distro: The distro of this PackageCopy. # noqa: E501 :type: object """ @@ -600,22 +604,22 @@ def distro(self, distro): @property def distro_version(self): - """ - Gets the distro_version of this PackageCopy. - + """Gets the distro_version of this PackageCopy. # noqa: E501 + + # noqa: E501 - :return: The distro_version of this PackageCopy. + :return: The distro_version of this PackageCopy. # noqa: E501 :rtype: object """ return self._distro_version @distro_version.setter def distro_version(self, distro_version): - """ - Sets the distro_version of this PackageCopy. - + """Sets the distro_version of this PackageCopy. + + # noqa: E501 - :param distro_version: The distro_version of this PackageCopy. + :param distro_version: The distro_version of this PackageCopy. # noqa: E501 :type: object """ @@ -623,22 +627,22 @@ def distro_version(self, distro_version): @property def downloads(self): - """ - Gets the downloads of this PackageCopy. - + """Gets the downloads of this PackageCopy. # noqa: E501 + + # noqa: E501 - :return: The downloads of this PackageCopy. + :return: The downloads of this PackageCopy. # noqa: E501 :rtype: int """ return self._downloads @downloads.setter def downloads(self, downloads): - """ - Sets the downloads of this PackageCopy. - + """Sets the downloads of this PackageCopy. + + # noqa: E501 - :param downloads: The downloads of this PackageCopy. + :param downloads: The downloads of this PackageCopy. # noqa: E501 :type: int """ @@ -646,22 +650,22 @@ def downloads(self, downloads): @property def epoch(self): - """ - Gets the epoch of this PackageCopy. - The epoch of the package version (if any). + """Gets the epoch of this PackageCopy. # noqa: E501 - :return: The epoch of this PackageCopy. + The epoch of the package version (if any). # noqa: E501 + + :return: The epoch of this PackageCopy. # noqa: E501 :rtype: int """ return self._epoch @epoch.setter def epoch(self, epoch): - """ - Sets the epoch of this PackageCopy. - The epoch of the package version (if any). + """Sets the epoch of this PackageCopy. - :param epoch: The epoch of this PackageCopy. + The epoch of the package version (if any). # noqa: E501 + + :param epoch: The epoch of this PackageCopy. # noqa: E501 :type: int """ @@ -669,22 +673,22 @@ def epoch(self, epoch): @property def extension(self): - """ - Gets the extension of this PackageCopy. - + """Gets the extension of this PackageCopy. # noqa: E501 - :return: The extension of this PackageCopy. + # noqa: E501 + + :return: The extension of this PackageCopy. # noqa: E501 :rtype: str """ return self._extension @extension.setter def extension(self, extension): - """ - Sets the extension of this PackageCopy. - + """Sets the extension of this PackageCopy. - :param extension: The extension of this PackageCopy. + # noqa: E501 + + :param extension: The extension of this PackageCopy. # noqa: E501 :type: str """ @@ -692,22 +696,22 @@ def extension(self, extension): @property def filename(self): - """ - Gets the filename of this PackageCopy. - + """Gets the filename of this PackageCopy. # noqa: E501 - :return: The filename of this PackageCopy. + # noqa: E501 + + :return: The filename of this PackageCopy. # noqa: E501 :rtype: str """ return self._filename @filename.setter def filename(self, filename): - """ - Sets the filename of this PackageCopy. - + """Sets the filename of this PackageCopy. - :param filename: The filename of this PackageCopy. + # noqa: E501 + + :param filename: The filename of this PackageCopy. # noqa: E501 :type: str """ @@ -715,22 +719,22 @@ def filename(self, filename): @property def files(self): - """ - Gets the files of this PackageCopy. - + """Gets the files of this PackageCopy. # noqa: E501 - :return: The files of this PackageCopy. + # noqa: E501 + + :return: The files of this PackageCopy. # noqa: E501 :rtype: list[PackagesownerrepoFiles] """ return self._files @files.setter def files(self, files): - """ - Sets the files of this PackageCopy. - + """Sets the files of this PackageCopy. - :param files: The files of this PackageCopy. + # noqa: E501 + + :param files: The files of this PackageCopy. # noqa: E501 :type: list[PackagesownerrepoFiles] """ @@ -738,22 +742,22 @@ def files(self, files): @property def format(self): - """ - Gets the format of this PackageCopy. - + """Gets the format of this PackageCopy. # noqa: E501 + + # noqa: E501 - :return: The format of this PackageCopy. + :return: The format of this PackageCopy. # noqa: E501 :rtype: str """ return self._format @format.setter def format(self, format): - """ - Sets the format of this PackageCopy. - + """Sets the format of this PackageCopy. + + # noqa: E501 - :param format: The format of this PackageCopy. + :param format: The format of this PackageCopy. # noqa: E501 :type: str """ @@ -761,22 +765,22 @@ def format(self, format): @property def format_url(self): - """ - Gets the format_url of this PackageCopy. - + """Gets the format_url of this PackageCopy. # noqa: E501 + + # noqa: E501 - :return: The format_url of this PackageCopy. + :return: The format_url of this PackageCopy. # noqa: E501 :rtype: str """ return self._format_url @format_url.setter def format_url(self, format_url): - """ - Sets the format_url of this PackageCopy. - + """Sets the format_url of this PackageCopy. + + # noqa: E501 - :param format_url: The format_url of this PackageCopy. + :param format_url: The format_url of this PackageCopy. # noqa: E501 :type: str """ @@ -784,22 +788,22 @@ def format_url(self, format_url): @property def identifier_perm(self): - """ - Gets the identifier_perm of this PackageCopy. - Unique and permanent identifier for the package. + """Gets the identifier_perm of this PackageCopy. # noqa: E501 + + Unique and permanent identifier for the package. # noqa: E501 - :return: The identifier_perm of this PackageCopy. + :return: The identifier_perm of this PackageCopy. # noqa: E501 :rtype: str """ return self._identifier_perm @identifier_perm.setter def identifier_perm(self, identifier_perm): - """ - Sets the identifier_perm of this PackageCopy. - Unique and permanent identifier for the package. + """Sets the identifier_perm of this PackageCopy. - :param identifier_perm: The identifier_perm of this PackageCopy. + Unique and permanent identifier for the package. # noqa: E501 + + :param identifier_perm: The identifier_perm of this PackageCopy. # noqa: E501 :type: str """ @@ -807,22 +811,22 @@ def identifier_perm(self, identifier_perm): @property def indexed(self): - """ - Gets the indexed of this PackageCopy. - + """Gets the indexed of this PackageCopy. # noqa: E501 - :return: The indexed of this PackageCopy. + # noqa: E501 + + :return: The indexed of this PackageCopy. # noqa: E501 :rtype: bool """ return self._indexed @indexed.setter def indexed(self, indexed): - """ - Sets the indexed of this PackageCopy. - + """Sets the indexed of this PackageCopy. - :param indexed: The indexed of this PackageCopy. + # noqa: E501 + + :param indexed: The indexed of this PackageCopy. # noqa: E501 :type: bool """ @@ -830,22 +834,22 @@ def indexed(self, indexed): @property def is_sync_awaiting(self): - """ - Gets the is_sync_awaiting of this PackageCopy. - + """Gets the is_sync_awaiting of this PackageCopy. # noqa: E501 - :return: The is_sync_awaiting of this PackageCopy. + # noqa: E501 + + :return: The is_sync_awaiting of this PackageCopy. # noqa: E501 :rtype: bool """ return self._is_sync_awaiting @is_sync_awaiting.setter def is_sync_awaiting(self, is_sync_awaiting): - """ - Sets the is_sync_awaiting of this PackageCopy. - + """Sets the is_sync_awaiting of this PackageCopy. + + # noqa: E501 - :param is_sync_awaiting: The is_sync_awaiting of this PackageCopy. + :param is_sync_awaiting: The is_sync_awaiting of this PackageCopy. # noqa: E501 :type: bool """ @@ -853,22 +857,22 @@ def is_sync_awaiting(self, is_sync_awaiting): @property def is_sync_completed(self): - """ - Gets the is_sync_completed of this PackageCopy. - + """Gets the is_sync_completed of this PackageCopy. # noqa: E501 + + # noqa: E501 - :return: The is_sync_completed of this PackageCopy. + :return: The is_sync_completed of this PackageCopy. # noqa: E501 :rtype: bool """ return self._is_sync_completed @is_sync_completed.setter def is_sync_completed(self, is_sync_completed): - """ - Sets the is_sync_completed of this PackageCopy. - + """Sets the is_sync_completed of this PackageCopy. + + # noqa: E501 - :param is_sync_completed: The is_sync_completed of this PackageCopy. + :param is_sync_completed: The is_sync_completed of this PackageCopy. # noqa: E501 :type: bool """ @@ -876,22 +880,22 @@ def is_sync_completed(self, is_sync_completed): @property def is_sync_failed(self): - """ - Gets the is_sync_failed of this PackageCopy. - + """Gets the is_sync_failed of this PackageCopy. # noqa: E501 + + # noqa: E501 - :return: The is_sync_failed of this PackageCopy. + :return: The is_sync_failed of this PackageCopy. # noqa: E501 :rtype: bool """ return self._is_sync_failed @is_sync_failed.setter def is_sync_failed(self, is_sync_failed): - """ - Sets the is_sync_failed of this PackageCopy. - + """Sets the is_sync_failed of this PackageCopy. + + # noqa: E501 - :param is_sync_failed: The is_sync_failed of this PackageCopy. + :param is_sync_failed: The is_sync_failed of this PackageCopy. # noqa: E501 :type: bool """ @@ -899,22 +903,22 @@ def is_sync_failed(self, is_sync_failed): @property def is_sync_in_flight(self): - """ - Gets the is_sync_in_flight of this PackageCopy. - + """Gets the is_sync_in_flight of this PackageCopy. # noqa: E501 + + # noqa: E501 - :return: The is_sync_in_flight of this PackageCopy. + :return: The is_sync_in_flight of this PackageCopy. # noqa: E501 :rtype: bool """ return self._is_sync_in_flight @is_sync_in_flight.setter def is_sync_in_flight(self, is_sync_in_flight): - """ - Sets the is_sync_in_flight of this PackageCopy. - + """Sets the is_sync_in_flight of this PackageCopy. + + # noqa: E501 - :param is_sync_in_flight: The is_sync_in_flight of this PackageCopy. + :param is_sync_in_flight: The is_sync_in_flight of this PackageCopy. # noqa: E501 :type: bool """ @@ -922,22 +926,22 @@ def is_sync_in_flight(self, is_sync_in_flight): @property def is_sync_in_progress(self): - """ - Gets the is_sync_in_progress of this PackageCopy. - + """Gets the is_sync_in_progress of this PackageCopy. # noqa: E501 + + # noqa: E501 - :return: The is_sync_in_progress of this PackageCopy. + :return: The is_sync_in_progress of this PackageCopy. # noqa: E501 :rtype: bool """ return self._is_sync_in_progress @is_sync_in_progress.setter def is_sync_in_progress(self, is_sync_in_progress): - """ - Sets the is_sync_in_progress of this PackageCopy. - + """Sets the is_sync_in_progress of this PackageCopy. + + # noqa: E501 - :param is_sync_in_progress: The is_sync_in_progress of this PackageCopy. + :param is_sync_in_progress: The is_sync_in_progress of this PackageCopy. # noqa: E501 :type: bool """ @@ -945,22 +949,22 @@ def is_sync_in_progress(self, is_sync_in_progress): @property def license(self): - """ - Gets the license of this PackageCopy. - The license of this package. + """Gets the license of this PackageCopy. # noqa: E501 - :return: The license of this PackageCopy. + The license of this package. # noqa: E501 + + :return: The license of this PackageCopy. # noqa: E501 :rtype: str """ return self._license @license.setter def license(self, license): - """ - Sets the license of this PackageCopy. - The license of this package. + """Sets the license of this PackageCopy. - :param license: The license of this PackageCopy. + The license of this package. # noqa: E501 + + :param license: The license of this PackageCopy. # noqa: E501 :type: str """ @@ -968,22 +972,22 @@ def license(self, license): @property def name(self): - """ - Gets the name of this PackageCopy. - The name of this package. + """Gets the name of this PackageCopy. # noqa: E501 - :return: The name of this PackageCopy. + The name of this package. # noqa: E501 + + :return: The name of this PackageCopy. # noqa: E501 :rtype: str """ return self._name @name.setter def name(self, name): - """ - Sets the name of this PackageCopy. - The name of this package. + """Sets the name of this PackageCopy. - :param name: The name of this PackageCopy. + The name of this package. # noqa: E501 + + :param name: The name of this PackageCopy. # noqa: E501 :type: str """ @@ -991,22 +995,22 @@ def name(self, name): @property def namespace(self): - """ - Gets the namespace of this PackageCopy. - + """Gets the namespace of this PackageCopy. # noqa: E501 + + # noqa: E501 - :return: The namespace of this PackageCopy. + :return: The namespace of this PackageCopy. # noqa: E501 :rtype: str """ return self._namespace @namespace.setter def namespace(self, namespace): - """ - Sets the namespace of this PackageCopy. - + """Sets the namespace of this PackageCopy. + + # noqa: E501 - :param namespace: The namespace of this PackageCopy. + :param namespace: The namespace of this PackageCopy. # noqa: E501 :type: str """ @@ -1014,22 +1018,22 @@ def namespace(self, namespace): @property def namespace_url(self): - """ - Gets the namespace_url of this PackageCopy. - + """Gets the namespace_url of this PackageCopy. # noqa: E501 + + # noqa: E501 - :return: The namespace_url of this PackageCopy. + :return: The namespace_url of this PackageCopy. # noqa: E501 :rtype: str """ return self._namespace_url @namespace_url.setter def namespace_url(self, namespace_url): - """ - Sets the namespace_url of this PackageCopy. - + """Sets the namespace_url of this PackageCopy. + + # noqa: E501 - :param namespace_url: The namespace_url of this PackageCopy. + :param namespace_url: The namespace_url of this PackageCopy. # noqa: E501 :type: str """ @@ -1037,22 +1041,22 @@ def namespace_url(self, namespace_url): @property def num_files(self): - """ - Gets the num_files of this PackageCopy. - + """Gets the num_files of this PackageCopy. # noqa: E501 + + # noqa: E501 - :return: The num_files of this PackageCopy. + :return: The num_files of this PackageCopy. # noqa: E501 :rtype: int """ return self._num_files @num_files.setter def num_files(self, num_files): - """ - Sets the num_files of this PackageCopy. - + """Sets the num_files of this PackageCopy. - :param num_files: The num_files of this PackageCopy. + # noqa: E501 + + :param num_files: The num_files of this PackageCopy. # noqa: E501 :type: int """ @@ -1060,22 +1064,22 @@ def num_files(self, num_files): @property def package_type(self): - """ - Gets the package_type of this PackageCopy. - The type of package contents. + """Gets the package_type of this PackageCopy. # noqa: E501 - :return: The package_type of this PackageCopy. + The type of package contents. # noqa: E501 + + :return: The package_type of this PackageCopy. # noqa: E501 :rtype: str """ return self._package_type @package_type.setter def package_type(self, package_type): - """ - Sets the package_type of this PackageCopy. - The type of package contents. + """Sets the package_type of this PackageCopy. - :param package_type: The package_type of this PackageCopy. + The type of package contents. # noqa: E501 + + :param package_type: The package_type of this PackageCopy. # noqa: E501 :type: str """ @@ -1083,22 +1087,22 @@ def package_type(self, package_type): @property def release(self): - """ - Gets the release of this PackageCopy. - The release of the package version (if any). + """Gets the release of this PackageCopy. # noqa: E501 - :return: The release of this PackageCopy. + The release of the package version (if any). # noqa: E501 + + :return: The release of this PackageCopy. # noqa: E501 :rtype: str """ return self._release @release.setter def release(self, release): - """ - Sets the release of this PackageCopy. - The release of the package version (if any). + """Sets the release of this PackageCopy. - :param release: The release of this PackageCopy. + The release of the package version (if any). # noqa: E501 + + :param release: The release of this PackageCopy. # noqa: E501 :type: str """ @@ -1106,22 +1110,22 @@ def release(self, release): @property def repository(self): - """ - Gets the repository of this PackageCopy. - The repository the package will be copied to. + """Gets the repository of this PackageCopy. # noqa: E501 - :return: The repository of this PackageCopy. + The repository the package will be copied to. # noqa: E501 + + :return: The repository of this PackageCopy. # noqa: E501 :rtype: str """ return self._repository @repository.setter def repository(self, repository): - """ - Sets the repository of this PackageCopy. - The repository the package will be copied to. + """Sets the repository of this PackageCopy. - :param repository: The repository of this PackageCopy. + The repository the package will be copied to. # noqa: E501 + + :param repository: The repository of this PackageCopy. # noqa: E501 :type: str """ @@ -1129,22 +1133,22 @@ def repository(self, repository): @property def repository_url(self): - """ - Gets the repository_url of this PackageCopy. - + """Gets the repository_url of this PackageCopy. # noqa: E501 - :return: The repository_url of this PackageCopy. + # noqa: E501 + + :return: The repository_url of this PackageCopy. # noqa: E501 :rtype: str """ return self._repository_url @repository_url.setter def repository_url(self, repository_url): - """ - Sets the repository_url of this PackageCopy. - + """Sets the repository_url of this PackageCopy. + + # noqa: E501 - :param repository_url: The repository_url of this PackageCopy. + :param repository_url: The repository_url of this PackageCopy. # noqa: E501 :type: str """ @@ -1152,22 +1156,22 @@ def repository_url(self, repository_url): @property def security_scan_completed_at(self): - """ - Gets the security_scan_completed_at of this PackageCopy. - The datetime the security scanning was completed. + """Gets the security_scan_completed_at of this PackageCopy. # noqa: E501 + + The datetime the security scanning was completed. # noqa: E501 - :return: The security_scan_completed_at of this PackageCopy. + :return: The security_scan_completed_at of this PackageCopy. # noqa: E501 :rtype: str """ return self._security_scan_completed_at @security_scan_completed_at.setter def security_scan_completed_at(self, security_scan_completed_at): - """ - Sets the security_scan_completed_at of this PackageCopy. - The datetime the security scanning was completed. + """Sets the security_scan_completed_at of this PackageCopy. + + The datetime the security scanning was completed. # noqa: E501 - :param security_scan_completed_at: The security_scan_completed_at of this PackageCopy. + :param security_scan_completed_at: The security_scan_completed_at of this PackageCopy. # noqa: E501 :type: str """ @@ -1175,22 +1179,22 @@ def security_scan_completed_at(self, security_scan_completed_at): @property def security_scan_started_at(self): - """ - Gets the security_scan_started_at of this PackageCopy. - The datetime the security scanning was started. + """Gets the security_scan_started_at of this PackageCopy. # noqa: E501 + + The datetime the security scanning was started. # noqa: E501 - :return: The security_scan_started_at of this PackageCopy. + :return: The security_scan_started_at of this PackageCopy. # noqa: E501 :rtype: str """ return self._security_scan_started_at @security_scan_started_at.setter def security_scan_started_at(self, security_scan_started_at): - """ - Sets the security_scan_started_at of this PackageCopy. - The datetime the security scanning was started. + """Sets the security_scan_started_at of this PackageCopy. + + The datetime the security scanning was started. # noqa: E501 - :param security_scan_started_at: The security_scan_started_at of this PackageCopy. + :param security_scan_started_at: The security_scan_started_at of this PackageCopy. # noqa: E501 :type: str """ @@ -1198,22 +1202,22 @@ def security_scan_started_at(self, security_scan_started_at): @property def security_scan_status(self): - """ - Gets the security_scan_status of this PackageCopy. - + """Gets the security_scan_status of this PackageCopy. # noqa: E501 - :return: The security_scan_status of this PackageCopy. + # noqa: E501 + + :return: The security_scan_status of this PackageCopy. # noqa: E501 :rtype: str """ return self._security_scan_status @security_scan_status.setter def security_scan_status(self, security_scan_status): - """ - Sets the security_scan_status of this PackageCopy. - + """Sets the security_scan_status of this PackageCopy. - :param security_scan_status: The security_scan_status of this PackageCopy. + # noqa: E501 + + :param security_scan_status: The security_scan_status of this PackageCopy. # noqa: E501 :type: str """ @@ -1221,22 +1225,22 @@ def security_scan_status(self, security_scan_status): @property def security_scan_status_updated_at(self): - """ - Gets the security_scan_status_updated_at of this PackageCopy. - The datetime the security scanning status was updated. + """Gets the security_scan_status_updated_at of this PackageCopy. # noqa: E501 - :return: The security_scan_status_updated_at of this PackageCopy. + The datetime the security scanning status was updated. # noqa: E501 + + :return: The security_scan_status_updated_at of this PackageCopy. # noqa: E501 :rtype: str """ return self._security_scan_status_updated_at @security_scan_status_updated_at.setter def security_scan_status_updated_at(self, security_scan_status_updated_at): - """ - Sets the security_scan_status_updated_at of this PackageCopy. - The datetime the security scanning status was updated. + """Sets the security_scan_status_updated_at of this PackageCopy. - :param security_scan_status_updated_at: The security_scan_status_updated_at of this PackageCopy. + The datetime the security scanning status was updated. # noqa: E501 + + :param security_scan_status_updated_at: The security_scan_status_updated_at of this PackageCopy. # noqa: E501 :type: str """ @@ -1244,22 +1248,22 @@ def security_scan_status_updated_at(self, security_scan_status_updated_at): @property def self_html_url(self): - """ - Gets the self_html_url of this PackageCopy. - + """Gets the self_html_url of this PackageCopy. # noqa: E501 + + # noqa: E501 - :return: The self_html_url of this PackageCopy. + :return: The self_html_url of this PackageCopy. # noqa: E501 :rtype: str """ return self._self_html_url @self_html_url.setter def self_html_url(self, self_html_url): - """ - Sets the self_html_url of this PackageCopy. - + """Sets the self_html_url of this PackageCopy. + + # noqa: E501 - :param self_html_url: The self_html_url of this PackageCopy. + :param self_html_url: The self_html_url of this PackageCopy. # noqa: E501 :type: str """ @@ -1267,22 +1271,22 @@ def self_html_url(self, self_html_url): @property def self_url(self): - """ - Gets the self_url of this PackageCopy. - + """Gets the self_url of this PackageCopy. # noqa: E501 + + # noqa: E501 - :return: The self_url of this PackageCopy. + :return: The self_url of this PackageCopy. # noqa: E501 :rtype: str """ return self._self_url @self_url.setter def self_url(self, self_url): - """ - Sets the self_url of this PackageCopy. - + """Sets the self_url of this PackageCopy. + + # noqa: E501 - :param self_url: The self_url of this PackageCopy. + :param self_url: The self_url of this PackageCopy. # noqa: E501 :type: str """ @@ -1290,22 +1294,22 @@ def self_url(self, self_url): @property def signature_url(self): - """ - Gets the signature_url of this PackageCopy. - + """Gets the signature_url of this PackageCopy. # noqa: E501 + + # noqa: E501 - :return: The signature_url of this PackageCopy. + :return: The signature_url of this PackageCopy. # noqa: E501 :rtype: str """ return self._signature_url @signature_url.setter def signature_url(self, signature_url): - """ - Sets the signature_url of this PackageCopy. - + """Sets the signature_url of this PackageCopy. + + # noqa: E501 - :param signature_url: The signature_url of this PackageCopy. + :param signature_url: The signature_url of this PackageCopy. # noqa: E501 :type: str """ @@ -1313,22 +1317,22 @@ def signature_url(self, signature_url): @property def size(self): - """ - Gets the size of this PackageCopy. - The calculated size of the package. + """Gets the size of this PackageCopy. # noqa: E501 + + The calculated size of the package. # noqa: E501 - :return: The size of this PackageCopy. + :return: The size of this PackageCopy. # noqa: E501 :rtype: int """ return self._size @size.setter def size(self, size): - """ - Sets the size of this PackageCopy. - The calculated size of the package. + """Sets the size of this PackageCopy. + + The calculated size of the package. # noqa: E501 - :param size: The size of this PackageCopy. + :param size: The size of this PackageCopy. # noqa: E501 :type: int """ @@ -1336,22 +1340,22 @@ def size(self, size): @property def slug(self): - """ - Gets the slug of this PackageCopy. - The public unique identifier for the package. + """Gets the slug of this PackageCopy. # noqa: E501 + + The public unique identifier for the package. # noqa: E501 - :return: The slug of this PackageCopy. + :return: The slug of this PackageCopy. # noqa: E501 :rtype: str """ return self._slug @slug.setter def slug(self, slug): - """ - Sets the slug of this PackageCopy. - The public unique identifier for the package. + """Sets the slug of this PackageCopy. - :param slug: The slug of this PackageCopy. + The public unique identifier for the package. # noqa: E501 + + :param slug: The slug of this PackageCopy. # noqa: E501 :type: str """ @@ -1359,22 +1363,22 @@ def slug(self, slug): @property def slug_perm(self): - """ - Gets the slug_perm of this PackageCopy. - + """Gets the slug_perm of this PackageCopy. # noqa: E501 - :return: The slug_perm of this PackageCopy. + # noqa: E501 + + :return: The slug_perm of this PackageCopy. # noqa: E501 :rtype: str """ return self._slug_perm @slug_perm.setter def slug_perm(self, slug_perm): - """ - Sets the slug_perm of this PackageCopy. - + """Sets the slug_perm of this PackageCopy. - :param slug_perm: The slug_perm of this PackageCopy. + # noqa: E501 + + :param slug_perm: The slug_perm of this PackageCopy. # noqa: E501 :type: str """ @@ -1382,22 +1386,22 @@ def slug_perm(self, slug_perm): @property def stage(self): - """ - Gets the stage of this PackageCopy. - The synchronisation (in progress) stage of the package. + """Gets the stage of this PackageCopy. # noqa: E501 - :return: The stage of this PackageCopy. + The synchronisation (in progress) stage of the package. # noqa: E501 + + :return: The stage of this PackageCopy. # noqa: E501 :rtype: str """ return self._stage @stage.setter def stage(self, stage): - """ - Sets the stage of this PackageCopy. - The synchronisation (in progress) stage of the package. + """Sets the stage of this PackageCopy. + + The synchronisation (in progress) stage of the package. # noqa: E501 - :param stage: The stage of this PackageCopy. + :param stage: The stage of this PackageCopy. # noqa: E501 :type: str """ @@ -1405,22 +1409,22 @@ def stage(self, stage): @property def stage_str(self): - """ - Gets the stage_str of this PackageCopy. - + """Gets the stage_str of this PackageCopy. # noqa: E501 + + # noqa: E501 - :return: The stage_str of this PackageCopy. + :return: The stage_str of this PackageCopy. # noqa: E501 :rtype: str """ return self._stage_str @stage_str.setter def stage_str(self, stage_str): - """ - Sets the stage_str of this PackageCopy. - + """Sets the stage_str of this PackageCopy. + + # noqa: E501 - :param stage_str: The stage_str of this PackageCopy. + :param stage_str: The stage_str of this PackageCopy. # noqa: E501 :type: str """ @@ -1428,22 +1432,22 @@ def stage_str(self, stage_str): @property def stage_updated_at(self): - """ - Gets the stage_updated_at of this PackageCopy. - The datetime the package stage was updated at. + """Gets the stage_updated_at of this PackageCopy. # noqa: E501 + + The datetime the package stage was updated at. # noqa: E501 - :return: The stage_updated_at of this PackageCopy. + :return: The stage_updated_at of this PackageCopy. # noqa: E501 :rtype: str """ return self._stage_updated_at @stage_updated_at.setter def stage_updated_at(self, stage_updated_at): - """ - Sets the stage_updated_at of this PackageCopy. - The datetime the package stage was updated at. + """Sets the stage_updated_at of this PackageCopy. + + The datetime the package stage was updated at. # noqa: E501 - :param stage_updated_at: The stage_updated_at of this PackageCopy. + :param stage_updated_at: The stage_updated_at of this PackageCopy. # noqa: E501 :type: str """ @@ -1451,22 +1455,22 @@ def stage_updated_at(self, stage_updated_at): @property def status(self): - """ - Gets the status of this PackageCopy. - The synchronisation status of the package. + """Gets the status of this PackageCopy. # noqa: E501 - :return: The status of this PackageCopy. + The synchronisation status of the package. # noqa: E501 + + :return: The status of this PackageCopy. # noqa: E501 :rtype: str """ return self._status @status.setter def status(self, status): - """ - Sets the status of this PackageCopy. - The synchronisation status of the package. + """Sets the status of this PackageCopy. - :param status: The status of this PackageCopy. + The synchronisation status of the package. # noqa: E501 + + :param status: The status of this PackageCopy. # noqa: E501 :type: str """ @@ -1474,22 +1478,22 @@ def status(self, status): @property def status_reason(self): - """ - Gets the status_reason of this PackageCopy. - A textual description for the synchronous status reason (if any + """Gets the status_reason of this PackageCopy. # noqa: E501 - :return: The status_reason of this PackageCopy. + A textual description for the synchronous status reason (if any # noqa: E501 + + :return: The status_reason of this PackageCopy. # noqa: E501 :rtype: str """ return self._status_reason @status_reason.setter def status_reason(self, status_reason): - """ - Sets the status_reason of this PackageCopy. - A textual description for the synchronous status reason (if any + """Sets the status_reason of this PackageCopy. - :param status_reason: The status_reason of this PackageCopy. + A textual description for the synchronous status reason (if any # noqa: E501 + + :param status_reason: The status_reason of this PackageCopy. # noqa: E501 :type: str """ @@ -1497,22 +1501,22 @@ def status_reason(self, status_reason): @property def status_str(self): - """ - Gets the status_str of this PackageCopy. - + """Gets the status_str of this PackageCopy. # noqa: E501 - :return: The status_str of this PackageCopy. + # noqa: E501 + + :return: The status_str of this PackageCopy. # noqa: E501 :rtype: str """ return self._status_str @status_str.setter def status_str(self, status_str): - """ - Sets the status_str of this PackageCopy. - + """Sets the status_str of this PackageCopy. - :param status_str: The status_str of this PackageCopy. + # noqa: E501 + + :param status_str: The status_str of this PackageCopy. # noqa: E501 :type: str """ @@ -1520,22 +1524,22 @@ def status_str(self, status_str): @property def status_updated_at(self): - """ - Gets the status_updated_at of this PackageCopy. - The datetime the package status was updated at. + """Gets the status_updated_at of this PackageCopy. # noqa: E501 - :return: The status_updated_at of this PackageCopy. + The datetime the package status was updated at. # noqa: E501 + + :return: The status_updated_at of this PackageCopy. # noqa: E501 :rtype: str """ return self._status_updated_at @status_updated_at.setter def status_updated_at(self, status_updated_at): - """ - Sets the status_updated_at of this PackageCopy. - The datetime the package status was updated at. + """Sets the status_updated_at of this PackageCopy. - :param status_updated_at: The status_updated_at of this PackageCopy. + The datetime the package status was updated at. # noqa: E501 + + :param status_updated_at: The status_updated_at of this PackageCopy. # noqa: E501 :type: str """ @@ -1543,22 +1547,22 @@ def status_updated_at(self, status_updated_at): @property def status_url(self): - """ - Gets the status_url of this PackageCopy. - + """Gets the status_url of this PackageCopy. # noqa: E501 + + # noqa: E501 - :return: The status_url of this PackageCopy. + :return: The status_url of this PackageCopy. # noqa: E501 :rtype: str """ return self._status_url @status_url.setter def status_url(self, status_url): - """ - Sets the status_url of this PackageCopy. - + """Sets the status_url of this PackageCopy. + + # noqa: E501 - :param status_url: The status_url of this PackageCopy. + :param status_url: The status_url of this PackageCopy. # noqa: E501 :type: str """ @@ -1566,22 +1570,22 @@ def status_url(self, status_url): @property def subtype(self): - """ - Gets the subtype of this PackageCopy. - + """Gets the subtype of this PackageCopy. # noqa: E501 + + # noqa: E501 - :return: The subtype of this PackageCopy. + :return: The subtype of this PackageCopy. # noqa: E501 :rtype: str """ return self._subtype @subtype.setter def subtype(self, subtype): - """ - Sets the subtype of this PackageCopy. - + """Sets the subtype of this PackageCopy. + + # noqa: E501 - :param subtype: The subtype of this PackageCopy. + :param subtype: The subtype of this PackageCopy. # noqa: E501 :type: str """ @@ -1589,22 +1593,22 @@ def subtype(self, subtype): @property def summary(self): - """ - Gets the summary of this PackageCopy. - A one-liner synopsis of this package. + """Gets the summary of this PackageCopy. # noqa: E501 + + A one-liner synopsis of this package. # noqa: E501 - :return: The summary of this PackageCopy. + :return: The summary of this PackageCopy. # noqa: E501 :rtype: str """ return self._summary @summary.setter def summary(self, summary): - """ - Sets the summary of this PackageCopy. - A one-liner synopsis of this package. + """Sets the summary of this PackageCopy. - :param summary: The summary of this PackageCopy. + A one-liner synopsis of this package. # noqa: E501 + + :param summary: The summary of this PackageCopy. # noqa: E501 :type: str """ @@ -1612,22 +1616,22 @@ def summary(self, summary): @property def sync_finished_at(self): - """ - Gets the sync_finished_at of this PackageCopy. - The datetime the package sync was finished at. + """Gets the sync_finished_at of this PackageCopy. # noqa: E501 - :return: The sync_finished_at of this PackageCopy. + The datetime the package sync was finished at. # noqa: E501 + + :return: The sync_finished_at of this PackageCopy. # noqa: E501 :rtype: str """ return self._sync_finished_at @sync_finished_at.setter def sync_finished_at(self, sync_finished_at): - """ - Sets the sync_finished_at of this PackageCopy. - The datetime the package sync was finished at. + """Sets the sync_finished_at of this PackageCopy. - :param sync_finished_at: The sync_finished_at of this PackageCopy. + The datetime the package sync was finished at. # noqa: E501 + + :param sync_finished_at: The sync_finished_at of this PackageCopy. # noqa: E501 :type: str """ @@ -1635,22 +1639,22 @@ def sync_finished_at(self, sync_finished_at): @property def sync_progress(self): - """ - Gets the sync_progress of this PackageCopy. - Synchronisation progress (from 0-100) + """Gets the sync_progress of this PackageCopy. # noqa: E501 - :return: The sync_progress of this PackageCopy. + Synchronisation progress (from 0-100) # noqa: E501 + + :return: The sync_progress of this PackageCopy. # noqa: E501 :rtype: int """ return self._sync_progress @sync_progress.setter def sync_progress(self, sync_progress): - """ - Sets the sync_progress of this PackageCopy. - Synchronisation progress (from 0-100) + """Sets the sync_progress of this PackageCopy. + + Synchronisation progress (from 0-100) # noqa: E501 - :param sync_progress: The sync_progress of this PackageCopy. + :param sync_progress: The sync_progress of this PackageCopy. # noqa: E501 :type: int """ @@ -1658,22 +1662,22 @@ def sync_progress(self, sync_progress): @property def tags(self): - """ - Gets the tags of this PackageCopy. - All tags on the package, grouped by tag type. This includes immutable tags, but doesn't distinguish them from mutable. To see which tags are immutable specifically, see the tags_immutable field. + """Gets the tags of this PackageCopy. # noqa: E501 + + All tags on the package, grouped by tag type. This includes immutable tags, but doesn't distinguish them from mutable. To see which tags are immutable specifically, see the tags_immutable field. # noqa: E501 - :return: The tags of this PackageCopy. + :return: The tags of this PackageCopy. # noqa: E501 :rtype: object """ return self._tags @tags.setter def tags(self, tags): - """ - Sets the tags of this PackageCopy. - All tags on the package, grouped by tag type. This includes immutable tags, but doesn't distinguish them from mutable. To see which tags are immutable specifically, see the tags_immutable field. + """Sets the tags of this PackageCopy. + + All tags on the package, grouped by tag type. This includes immutable tags, but doesn't distinguish them from mutable. To see which tags are immutable specifically, see the tags_immutable field. # noqa: E501 - :param tags: The tags of this PackageCopy. + :param tags: The tags of this PackageCopy. # noqa: E501 :type: object """ @@ -1681,22 +1685,22 @@ def tags(self, tags): @property def tags_immutable(self): - """ - Gets the tags_immutable of this PackageCopy. - All immutable tags on the package, grouped by tag type. Immutable tags cannot be (easily) deleted. + """Gets the tags_immutable of this PackageCopy. # noqa: E501 + + All immutable tags on the package, grouped by tag type. Immutable tags cannot be (easily) deleted. # noqa: E501 - :return: The tags_immutable of this PackageCopy. + :return: The tags_immutable of this PackageCopy. # noqa: E501 :rtype: object """ return self._tags_immutable @tags_immutable.setter def tags_immutable(self, tags_immutable): - """ - Sets the tags_immutable of this PackageCopy. - All immutable tags on the package, grouped by tag type. Immutable tags cannot be (easily) deleted. + """Sets the tags_immutable of this PackageCopy. + + All immutable tags on the package, grouped by tag type. Immutable tags cannot be (easily) deleted. # noqa: E501 - :param tags_immutable: The tags_immutable of this PackageCopy. + :param tags_immutable: The tags_immutable of this PackageCopy. # noqa: E501 :type: object """ @@ -1704,22 +1708,22 @@ def tags_immutable(self, tags_immutable): @property def type_display(self): - """ - Gets the type_display of this PackageCopy. - + """Gets the type_display of this PackageCopy. # noqa: E501 + + # noqa: E501 - :return: The type_display of this PackageCopy. + :return: The type_display of this PackageCopy. # noqa: E501 :rtype: str """ return self._type_display @type_display.setter def type_display(self, type_display): - """ - Sets the type_display of this PackageCopy. - + """Sets the type_display of this PackageCopy. + + # noqa: E501 - :param type_display: The type_display of this PackageCopy. + :param type_display: The type_display of this PackageCopy. # noqa: E501 :type: str """ @@ -1727,22 +1731,22 @@ def type_display(self, type_display): @property def uploaded_at(self): - """ - Gets the uploaded_at of this PackageCopy. - The date this package was uploaded. + """Gets the uploaded_at of this PackageCopy. # noqa: E501 + + The date this package was uploaded. # noqa: E501 - :return: The uploaded_at of this PackageCopy. + :return: The uploaded_at of this PackageCopy. # noqa: E501 :rtype: str """ return self._uploaded_at @uploaded_at.setter def uploaded_at(self, uploaded_at): - """ - Sets the uploaded_at of this PackageCopy. - The date this package was uploaded. + """Sets the uploaded_at of this PackageCopy. + + The date this package was uploaded. # noqa: E501 - :param uploaded_at: The uploaded_at of this PackageCopy. + :param uploaded_at: The uploaded_at of this PackageCopy. # noqa: E501 :type: str """ @@ -1750,22 +1754,22 @@ def uploaded_at(self, uploaded_at): @property def uploader(self): - """ - Gets the uploader of this PackageCopy. - + """Gets the uploader of this PackageCopy. # noqa: E501 - :return: The uploader of this PackageCopy. + # noqa: E501 + + :return: The uploader of this PackageCopy. # noqa: E501 :rtype: str """ return self._uploader @uploader.setter def uploader(self, uploader): - """ - Sets the uploader of this PackageCopy. - + """Sets the uploader of this PackageCopy. - :param uploader: The uploader of this PackageCopy. + # noqa: E501 + + :param uploader: The uploader of this PackageCopy. # noqa: E501 :type: str """ @@ -1773,22 +1777,22 @@ def uploader(self, uploader): @property def uploader_url(self): - """ - Gets the uploader_url of this PackageCopy. - + """Gets the uploader_url of this PackageCopy. # noqa: E501 - :return: The uploader_url of this PackageCopy. + # noqa: E501 + + :return: The uploader_url of this PackageCopy. # noqa: E501 :rtype: str """ return self._uploader_url @uploader_url.setter def uploader_url(self, uploader_url): - """ - Sets the uploader_url of this PackageCopy. - + """Sets the uploader_url of this PackageCopy. - :param uploader_url: The uploader_url of this PackageCopy. + # noqa: E501 + + :param uploader_url: The uploader_url of this PackageCopy. # noqa: E501 :type: str """ @@ -1796,22 +1800,22 @@ def uploader_url(self, uploader_url): @property def version(self): - """ - Gets the version of this PackageCopy. - The raw version for this package. + """Gets the version of this PackageCopy. # noqa: E501 - :return: The version of this PackageCopy. + The raw version for this package. # noqa: E501 + + :return: The version of this PackageCopy. # noqa: E501 :rtype: str """ return self._version @version.setter def version(self, version): - """ - Sets the version of this PackageCopy. - The raw version for this package. + """Sets the version of this PackageCopy. - :param version: The version of this PackageCopy. + The raw version for this package. # noqa: E501 + + :param version: The version of this PackageCopy. # noqa: E501 :type: str """ @@ -1819,22 +1823,22 @@ def version(self, version): @property def version_orig(self): - """ - Gets the version_orig of this PackageCopy. - + """Gets the version_orig of this PackageCopy. # noqa: E501 - :return: The version_orig of this PackageCopy. + # noqa: E501 + + :return: The version_orig of this PackageCopy. # noqa: E501 :rtype: str """ return self._version_orig @version_orig.setter def version_orig(self, version_orig): - """ - Sets the version_orig of this PackageCopy. - + """Sets the version_orig of this PackageCopy. - :param version_orig: The version_orig of this PackageCopy. + # noqa: E501 + + :param version_orig: The version_orig of this PackageCopy. # noqa: E501 :type: str """ @@ -1842,34 +1846,32 @@ def version_orig(self, version_orig): @property def vulnerability_scan_results_url(self): - """ - Gets the vulnerability_scan_results_url of this PackageCopy. - + """Gets the vulnerability_scan_results_url of this PackageCopy. # noqa: E501 + + # noqa: E501 - :return: The vulnerability_scan_results_url of this PackageCopy. + :return: The vulnerability_scan_results_url of this PackageCopy. # noqa: E501 :rtype: str """ return self._vulnerability_scan_results_url @vulnerability_scan_results_url.setter def vulnerability_scan_results_url(self, vulnerability_scan_results_url): - """ - Sets the vulnerability_scan_results_url of this PackageCopy. - + """Sets the vulnerability_scan_results_url of this PackageCopy. + + # noqa: E501 - :param vulnerability_scan_results_url: The vulnerability_scan_results_url of this PackageCopy. + :param vulnerability_scan_results_url: The vulnerability_scan_results_url of this PackageCopy. # noqa: E501 :type: str """ self._vulnerability_scan_results_url = vulnerability_scan_results_url def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -1886,32 +1888,30 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(PackageCopy, dict): + for key, value in self.items(): + result[key] = value return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, PackageCopy): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other + """Returns true if both objects are not equal""" + if not isinstance(other, PackageCopy): + return True + + return self.to_dict() != other.to_dict() diff --git a/bindings/python/src/cloudsmith_api/models/package_dependencies.py b/bindings/python/src/cloudsmith_api/models/package_dependencies.py index a4e855d9..f8305a28 100644 --- a/bindings/python/src/cloudsmith_api/models/package_dependencies.py +++ b/bindings/python/src/cloudsmith_api/models/package_dependencies.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -11,18 +11,20 @@ """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration class PackageDependencies(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -38,47 +40,47 @@ class PackageDependencies(object): 'dependencies': 'dependencies' } - def __init__(self, dependencies=None): - """ - PackageDependencies - a model defined in Swagger - """ + def __init__(self, dependencies=None, _configuration=None): # noqa: E501 + """PackageDependencies - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._dependencies = None + self.discriminator = None self.dependencies = dependencies @property def dependencies(self): - """ - Gets the dependencies of this PackageDependencies. - + """Gets the dependencies of this PackageDependencies. # noqa: E501 + + # noqa: E501 - :return: The dependencies of this PackageDependencies. + :return: The dependencies of this PackageDependencies. # noqa: E501 :rtype: list[PackageDependenciesDependencies] """ return self._dependencies @dependencies.setter def dependencies(self, dependencies): - """ - Sets the dependencies of this PackageDependencies. - + """Sets the dependencies of this PackageDependencies. + + # noqa: E501 - :param dependencies: The dependencies of this PackageDependencies. + :param dependencies: The dependencies of this PackageDependencies. # noqa: E501 :type: list[PackageDependenciesDependencies] """ - if dependencies is None: - raise ValueError("Invalid value for `dependencies`, must not be `None`") + if self._configuration.client_side_validation and dependencies is None: + raise ValueError("Invalid value for `dependencies`, must not be `None`") # noqa: E501 self._dependencies = dependencies def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -95,32 +97,30 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(PackageDependencies, dict): + for key, value in self.items(): + result[key] = value return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, PackageDependencies): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other + """Returns true if both objects are not equal""" + if not isinstance(other, PackageDependencies): + return True + + return self.to_dict() != other.to_dict() diff --git a/bindings/python/src/cloudsmith_api/models/package_dependencies_dependencies.py b/bindings/python/src/cloudsmith_api/models/package_dependencies_dependencies.py index cd5f1e6a..6fe7bd33 100644 --- a/bindings/python/src/cloudsmith_api/models/package_dependencies_dependencies.py +++ b/bindings/python/src/cloudsmith_api/models/package_dependencies_dependencies.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -11,18 +11,20 @@ """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration class PackageDependenciesDependencies(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -44,43 +46,45 @@ class PackageDependenciesDependencies(object): 'version': 'version' } - def __init__(self, dep_type=None, name=None, operator=None, version=None): - """ - PackageDependenciesDependencies - a model defined in Swagger - """ + def __init__(self, dep_type=None, name=None, operator=None, version=None, _configuration=None): # noqa: E501 + """PackageDependenciesDependencies - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._dep_type = None self._name = None self._operator = None self._version = None + self.discriminator = None if dep_type is not None: - self.dep_type = dep_type + self.dep_type = dep_type if name is not None: - self.name = name + self.name = name if operator is not None: - self.operator = operator + self.operator = operator if version is not None: - self.version = version + self.version = version @property def dep_type(self): - """ - Gets the dep_type of this PackageDependenciesDependencies. - + """Gets the dep_type of this PackageDependenciesDependencies. # noqa: E501 + + # noqa: E501 - :return: The dep_type of this PackageDependenciesDependencies. + :return: The dep_type of this PackageDependenciesDependencies. # noqa: E501 :rtype: str """ return self._dep_type @dep_type.setter def dep_type(self, dep_type): - """ - Sets the dep_type of this PackageDependenciesDependencies. - + """Sets the dep_type of this PackageDependenciesDependencies. + + # noqa: E501 - :param dep_type: The dep_type of this PackageDependenciesDependencies. + :param dep_type: The dep_type of this PackageDependenciesDependencies. # noqa: E501 :type: str """ @@ -88,22 +92,22 @@ def dep_type(self, dep_type): @property def name(self): - """ - Gets the name of this PackageDependenciesDependencies. - The name of the package dependency. + """Gets the name of this PackageDependenciesDependencies. # noqa: E501 - :return: The name of this PackageDependenciesDependencies. + The name of the package dependency. # noqa: E501 + + :return: The name of this PackageDependenciesDependencies. # noqa: E501 :rtype: str """ return self._name @name.setter def name(self, name): - """ - Sets the name of this PackageDependenciesDependencies. - The name of the package dependency. + """Sets the name of this PackageDependenciesDependencies. - :param name: The name of this PackageDependenciesDependencies. + The name of the package dependency. # noqa: E501 + + :param name: The name of this PackageDependenciesDependencies. # noqa: E501 :type: str """ @@ -111,22 +115,22 @@ def name(self, name): @property def operator(self): - """ - Gets the operator of this PackageDependenciesDependencies. - + """Gets the operator of this PackageDependenciesDependencies. # noqa: E501 - :return: The operator of this PackageDependenciesDependencies. + # noqa: E501 + + :return: The operator of this PackageDependenciesDependencies. # noqa: E501 :rtype: str """ return self._operator @operator.setter def operator(self, operator): - """ - Sets the operator of this PackageDependenciesDependencies. - + """Sets the operator of this PackageDependenciesDependencies. - :param operator: The operator of this PackageDependenciesDependencies. + # noqa: E501 + + :param operator: The operator of this PackageDependenciesDependencies. # noqa: E501 :type: str """ @@ -134,34 +138,32 @@ def operator(self, operator): @property def version(self): - """ - Gets the version of this PackageDependenciesDependencies. - The raw dependency version (if any). + """Gets the version of this PackageDependenciesDependencies. # noqa: E501 + + The raw dependency version (if any). # noqa: E501 - :return: The version of this PackageDependenciesDependencies. + :return: The version of this PackageDependenciesDependencies. # noqa: E501 :rtype: str """ return self._version @version.setter def version(self, version): - """ - Sets the version of this PackageDependenciesDependencies. - The raw dependency version (if any). + """Sets the version of this PackageDependenciesDependencies. + + The raw dependency version (if any). # noqa: E501 - :param version: The version of this PackageDependenciesDependencies. + :param version: The version of this PackageDependenciesDependencies. # noqa: E501 :type: str """ self._version = version def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -178,32 +180,30 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(PackageDependenciesDependencies, dict): + for key, value in self.items(): + result[key] = value return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, PackageDependenciesDependencies): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other + """Returns true if both objects are not equal""" + if not isinstance(other, PackageDependenciesDependencies): + return True + + return self.to_dict() != other.to_dict() diff --git a/bindings/python/src/cloudsmith_api/models/package_file_parts_upload.py b/bindings/python/src/cloudsmith_api/models/package_file_parts_upload.py index 1a1860e7..376b9e21 100644 --- a/bindings/python/src/cloudsmith_api/models/package_file_parts_upload.py +++ b/bindings/python/src/cloudsmith_api/models/package_file_parts_upload.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -11,18 +11,20 @@ """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration class PackageFilePartsUpload(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -42,40 +44,42 @@ class PackageFilePartsUpload(object): 'upload_url': 'upload_url' } - def __init__(self, identifier=None, upload_querystring=None, upload_url=None): - """ - PackageFilePartsUpload - a model defined in Swagger - """ + def __init__(self, identifier=None, upload_querystring=None, upload_url=None, _configuration=None): # noqa: E501 + """PackageFilePartsUpload - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._identifier = None self._upload_querystring = None self._upload_url = None + self.discriminator = None if identifier is not None: - self.identifier = identifier + self.identifier = identifier if upload_querystring is not None: - self.upload_querystring = upload_querystring + self.upload_querystring = upload_querystring if upload_url is not None: - self.upload_url = upload_url + self.upload_url = upload_url @property def identifier(self): - """ - Gets the identifier of this PackageFilePartsUpload. - The identifier for the file to use uploading parts. + """Gets the identifier of this PackageFilePartsUpload. # noqa: E501 - :return: The identifier of this PackageFilePartsUpload. + The identifier for the file to use uploading parts. # noqa: E501 + + :return: The identifier of this PackageFilePartsUpload. # noqa: E501 :rtype: str """ return self._identifier @identifier.setter def identifier(self, identifier): - """ - Sets the identifier of this PackageFilePartsUpload. - The identifier for the file to use uploading parts. + """Sets the identifier of this PackageFilePartsUpload. - :param identifier: The identifier of this PackageFilePartsUpload. + The identifier for the file to use uploading parts. # noqa: E501 + + :param identifier: The identifier of this PackageFilePartsUpload. # noqa: E501 :type: str """ @@ -83,22 +87,22 @@ def identifier(self, identifier): @property def upload_querystring(self): - """ - Gets the upload_querystring of this PackageFilePartsUpload. - The querystring to use for the next-step PUT upload. + """Gets the upload_querystring of this PackageFilePartsUpload. # noqa: E501 - :return: The upload_querystring of this PackageFilePartsUpload. + The querystring to use for the next-step PUT upload. # noqa: E501 + + :return: The upload_querystring of this PackageFilePartsUpload. # noqa: E501 :rtype: str """ return self._upload_querystring @upload_querystring.setter def upload_querystring(self, upload_querystring): - """ - Sets the upload_querystring of this PackageFilePartsUpload. - The querystring to use for the next-step PUT upload. + """Sets the upload_querystring of this PackageFilePartsUpload. - :param upload_querystring: The upload_querystring of this PackageFilePartsUpload. + The querystring to use for the next-step PUT upload. # noqa: E501 + + :param upload_querystring: The upload_querystring of this PackageFilePartsUpload. # noqa: E501 :type: str """ @@ -106,34 +110,32 @@ def upload_querystring(self, upload_querystring): @property def upload_url(self): - """ - Gets the upload_url of this PackageFilePartsUpload. - The URL to use for the next-step PUT upload + """Gets the upload_url of this PackageFilePartsUpload. # noqa: E501 - :return: The upload_url of this PackageFilePartsUpload. + The URL to use for the next-step PUT upload # noqa: E501 + + :return: The upload_url of this PackageFilePartsUpload. # noqa: E501 :rtype: str """ return self._upload_url @upload_url.setter def upload_url(self, upload_url): - """ - Sets the upload_url of this PackageFilePartsUpload. - The URL to use for the next-step PUT upload + """Sets the upload_url of this PackageFilePartsUpload. - :param upload_url: The upload_url of this PackageFilePartsUpload. + The URL to use for the next-step PUT upload # noqa: E501 + + :param upload_url: The upload_url of this PackageFilePartsUpload. # noqa: E501 :type: str """ self._upload_url = upload_url def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -150,32 +152,30 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(PackageFilePartsUpload, dict): + for key, value in self.items(): + result[key] = value return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, PackageFilePartsUpload): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other + """Returns true if both objects are not equal""" + if not isinstance(other, PackageFilePartsUpload): + return True + + return self.to_dict() != other.to_dict() diff --git a/bindings/python/src/cloudsmith_api/models/package_file_upload.py b/bindings/python/src/cloudsmith_api/models/package_file_upload.py index e36906e8..fbf04175 100644 --- a/bindings/python/src/cloudsmith_api/models/package_file_upload.py +++ b/bindings/python/src/cloudsmith_api/models/package_file_upload.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -11,18 +11,20 @@ """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration class PackageFileUpload(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -46,46 +48,48 @@ class PackageFileUpload(object): 'upload_url': 'upload_url' } - def __init__(self, identifier=None, upload_fields=None, upload_headers=None, upload_querystring=None, upload_url=None): - """ - PackageFileUpload - a model defined in Swagger - """ + def __init__(self, identifier=None, upload_fields=None, upload_headers=None, upload_querystring=None, upload_url=None, _configuration=None): # noqa: E501 + """PackageFileUpload - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._identifier = None self._upload_fields = None self._upload_headers = None self._upload_querystring = None self._upload_url = None + self.discriminator = None if identifier is not None: - self.identifier = identifier + self.identifier = identifier if upload_fields is not None: - self.upload_fields = upload_fields + self.upload_fields = upload_fields if upload_headers is not None: - self.upload_headers = upload_headers + self.upload_headers = upload_headers if upload_querystring is not None: - self.upload_querystring = upload_querystring + self.upload_querystring = upload_querystring if upload_url is not None: - self.upload_url = upload_url + self.upload_url = upload_url @property def identifier(self): - """ - Gets the identifier of this PackageFileUpload. - The identifier for the file to use when creating packages + """Gets the identifier of this PackageFileUpload. # noqa: E501 - :return: The identifier of this PackageFileUpload. + The identifier for the file to use when creating packages # noqa: E501 + + :return: The identifier of this PackageFileUpload. # noqa: E501 :rtype: str """ return self._identifier @identifier.setter def identifier(self, identifier): - """ - Sets the identifier of this PackageFileUpload. - The identifier for the file to use when creating packages + """Sets the identifier of this PackageFileUpload. - :param identifier: The identifier of this PackageFileUpload. + The identifier for the file to use when creating packages # noqa: E501 + + :param identifier: The identifier of this PackageFileUpload. # noqa: E501 :type: str """ @@ -93,22 +97,22 @@ def identifier(self, identifier): @property def upload_fields(self): - """ - Gets the upload_fields of this PackageFileUpload. - The dictionary of fields that must be sent with POST uploads + """Gets the upload_fields of this PackageFileUpload. # noqa: E501 + + The dictionary of fields that must be sent with POST uploads # noqa: E501 - :return: The upload_fields of this PackageFileUpload. + :return: The upload_fields of this PackageFileUpload. # noqa: E501 :rtype: object """ return self._upload_fields @upload_fields.setter def upload_fields(self, upload_fields): - """ - Sets the upload_fields of this PackageFileUpload. - The dictionary of fields that must be sent with POST uploads + """Sets the upload_fields of this PackageFileUpload. + + The dictionary of fields that must be sent with POST uploads # noqa: E501 - :param upload_fields: The upload_fields of this PackageFileUpload. + :param upload_fields: The upload_fields of this PackageFileUpload. # noqa: E501 :type: object """ @@ -116,22 +120,22 @@ def upload_fields(self, upload_fields): @property def upload_headers(self): - """ - Gets the upload_headers of this PackageFileUpload. - The dictionary of headers that must be sent with uploads + """Gets the upload_headers of this PackageFileUpload. # noqa: E501 + + The dictionary of headers that must be sent with uploads # noqa: E501 - :return: The upload_headers of this PackageFileUpload. + :return: The upload_headers of this PackageFileUpload. # noqa: E501 :rtype: object """ return self._upload_headers @upload_headers.setter def upload_headers(self, upload_headers): - """ - Sets the upload_headers of this PackageFileUpload. - The dictionary of headers that must be sent with uploads + """Sets the upload_headers of this PackageFileUpload. - :param upload_headers: The upload_headers of this PackageFileUpload. + The dictionary of headers that must be sent with uploads # noqa: E501 + + :param upload_headers: The upload_headers of this PackageFileUpload. # noqa: E501 :type: object """ @@ -139,22 +143,22 @@ def upload_headers(self, upload_headers): @property def upload_querystring(self): - """ - Gets the upload_querystring of this PackageFileUpload. - The querystring to use for the next-step POST or PUT upload + """Gets the upload_querystring of this PackageFileUpload. # noqa: E501 - :return: The upload_querystring of this PackageFileUpload. + The querystring to use for the next-step POST or PUT upload # noqa: E501 + + :return: The upload_querystring of this PackageFileUpload. # noqa: E501 :rtype: str """ return self._upload_querystring @upload_querystring.setter def upload_querystring(self, upload_querystring): - """ - Sets the upload_querystring of this PackageFileUpload. - The querystring to use for the next-step POST or PUT upload + """Sets the upload_querystring of this PackageFileUpload. + + The querystring to use for the next-step POST or PUT upload # noqa: E501 - :param upload_querystring: The upload_querystring of this PackageFileUpload. + :param upload_querystring: The upload_querystring of this PackageFileUpload. # noqa: E501 :type: str """ @@ -162,34 +166,32 @@ def upload_querystring(self, upload_querystring): @property def upload_url(self): - """ - Gets the upload_url of this PackageFileUpload. - The URL to use for the next-step POST or PUT upload + """Gets the upload_url of this PackageFileUpload. # noqa: E501 + + The URL to use for the next-step POST or PUT upload # noqa: E501 - :return: The upload_url of this PackageFileUpload. + :return: The upload_url of this PackageFileUpload. # noqa: E501 :rtype: str """ return self._upload_url @upload_url.setter def upload_url(self, upload_url): - """ - Sets the upload_url of this PackageFileUpload. - The URL to use for the next-step POST or PUT upload + """Sets the upload_url of this PackageFileUpload. + + The URL to use for the next-step POST or PUT upload # noqa: E501 - :param upload_url: The upload_url of this PackageFileUpload. + :param upload_url: The upload_url of this PackageFileUpload. # noqa: E501 :type: str """ self._upload_url = upload_url def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -206,32 +208,30 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(PackageFileUpload, dict): + for key, value in self.items(): + result[key] = value return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, PackageFileUpload): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other + """Returns true if both objects are not equal""" + if not isinstance(other, PackageFileUpload): + return True + + return self.to_dict() != other.to_dict() diff --git a/bindings/python/src/cloudsmith_api/models/package_move.py b/bindings/python/src/cloudsmith_api/models/package_move.py index affa3951..364022df 100644 --- a/bindings/python/src/cloudsmith_api/models/package_move.py +++ b/bindings/python/src/cloudsmith_api/models/package_move.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -11,18 +11,20 @@ """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration class PackageMove(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -166,10 +168,11 @@ class PackageMove(object): 'vulnerability_scan_results_url': 'vulnerability_scan_results_url' } - def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, distro=None, distro_version=None, downloads=None, epoch=None, extension=None, filename=None, files=None, format=None, format_url=None, identifier_perm=None, indexed=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, package_type=None, release=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status=None, security_scan_status_updated_at=None, self_html_url=None, self_url=None, signature_url=None, size=None, slug=None, slug_perm=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags=None, tags_immutable=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_scan_results_url=None): - """ - PackageMove - a model defined in Swagger - """ + def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, distro=None, distro_version=None, downloads=None, epoch=None, extension=None, filename=None, files=None, format=None, format_url=None, identifier_perm=None, indexed=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, package_type=None, release=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status=None, security_scan_status_updated_at=None, self_html_url=None, self_url=None, signature_url=None, size=None, slug=None, slug_perm=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags=None, tags_immutable=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 + """PackageMove - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._architectures = None self._cdn_url = None @@ -236,156 +239,157 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._version = None self._version_orig = None self._vulnerability_scan_results_url = None + self.discriminator = None if architectures is not None: - self.architectures = architectures + self.architectures = architectures if cdn_url is not None: - self.cdn_url = cdn_url + self.cdn_url = cdn_url if checksum_md5 is not None: - self.checksum_md5 = checksum_md5 + self.checksum_md5 = checksum_md5 if checksum_sha1 is not None: - self.checksum_sha1 = checksum_sha1 + self.checksum_sha1 = checksum_sha1 if checksum_sha256 is not None: - self.checksum_sha256 = checksum_sha256 + self.checksum_sha256 = checksum_sha256 if checksum_sha512 is not None: - self.checksum_sha512 = checksum_sha512 + self.checksum_sha512 = checksum_sha512 if dependencies_checksum_md5 is not None: - self.dependencies_checksum_md5 = dependencies_checksum_md5 + self.dependencies_checksum_md5 = dependencies_checksum_md5 if dependencies_url is not None: - self.dependencies_url = dependencies_url + self.dependencies_url = dependencies_url if description is not None: - self.description = description + self.description = description if distro is not None: - self.distro = distro + self.distro = distro if distro_version is not None: - self.distro_version = distro_version + self.distro_version = distro_version if downloads is not None: - self.downloads = downloads + self.downloads = downloads if epoch is not None: - self.epoch = epoch + self.epoch = epoch if extension is not None: - self.extension = extension + self.extension = extension if filename is not None: - self.filename = filename + self.filename = filename if files is not None: - self.files = files + self.files = files if format is not None: - self.format = format + self.format = format if format_url is not None: - self.format_url = format_url + self.format_url = format_url if identifier_perm is not None: - self.identifier_perm = identifier_perm + self.identifier_perm = identifier_perm if indexed is not None: - self.indexed = indexed + self.indexed = indexed if is_sync_awaiting is not None: - self.is_sync_awaiting = is_sync_awaiting + self.is_sync_awaiting = is_sync_awaiting if is_sync_completed is not None: - self.is_sync_completed = is_sync_completed + self.is_sync_completed = is_sync_completed if is_sync_failed is not None: - self.is_sync_failed = is_sync_failed + self.is_sync_failed = is_sync_failed if is_sync_in_flight is not None: - self.is_sync_in_flight = is_sync_in_flight + self.is_sync_in_flight = is_sync_in_flight if is_sync_in_progress is not None: - self.is_sync_in_progress = is_sync_in_progress + self.is_sync_in_progress = is_sync_in_progress if license is not None: - self.license = license + self.license = license if name is not None: - self.name = name + self.name = name if namespace is not None: - self.namespace = namespace + self.namespace = namespace if namespace_url is not None: - self.namespace_url = namespace_url + self.namespace_url = namespace_url if num_files is not None: - self.num_files = num_files + self.num_files = num_files if package_type is not None: - self.package_type = package_type + self.package_type = package_type if release is not None: - self.release = release + self.release = release if repository is not None: - self.repository = repository + self.repository = repository if repository_url is not None: - self.repository_url = repository_url + self.repository_url = repository_url if security_scan_completed_at is not None: - self.security_scan_completed_at = security_scan_completed_at + self.security_scan_completed_at = security_scan_completed_at if security_scan_started_at is not None: - self.security_scan_started_at = security_scan_started_at + self.security_scan_started_at = security_scan_started_at if security_scan_status is not None: - self.security_scan_status = security_scan_status + self.security_scan_status = security_scan_status if security_scan_status_updated_at is not None: - self.security_scan_status_updated_at = security_scan_status_updated_at + self.security_scan_status_updated_at = security_scan_status_updated_at if self_html_url is not None: - self.self_html_url = self_html_url + self.self_html_url = self_html_url if self_url is not None: - self.self_url = self_url + self.self_url = self_url if signature_url is not None: - self.signature_url = signature_url + self.signature_url = signature_url if size is not None: - self.size = size + self.size = size if slug is not None: - self.slug = slug + self.slug = slug if slug_perm is not None: - self.slug_perm = slug_perm + self.slug_perm = slug_perm if stage is not None: - self.stage = stage + self.stage = stage if stage_str is not None: - self.stage_str = stage_str + self.stage_str = stage_str if stage_updated_at is not None: - self.stage_updated_at = stage_updated_at + self.stage_updated_at = stage_updated_at if status is not None: - self.status = status + self.status = status if status_reason is not None: - self.status_reason = status_reason + self.status_reason = status_reason if status_str is not None: - self.status_str = status_str + self.status_str = status_str if status_updated_at is not None: - self.status_updated_at = status_updated_at + self.status_updated_at = status_updated_at if status_url is not None: - self.status_url = status_url + self.status_url = status_url if subtype is not None: - self.subtype = subtype + self.subtype = subtype if summary is not None: - self.summary = summary + self.summary = summary if sync_finished_at is not None: - self.sync_finished_at = sync_finished_at + self.sync_finished_at = sync_finished_at if sync_progress is not None: - self.sync_progress = sync_progress + self.sync_progress = sync_progress if tags is not None: - self.tags = tags + self.tags = tags if tags_immutable is not None: - self.tags_immutable = tags_immutable + self.tags_immutable = tags_immutable if type_display is not None: - self.type_display = type_display + self.type_display = type_display if uploaded_at is not None: - self.uploaded_at = uploaded_at + self.uploaded_at = uploaded_at if uploader is not None: - self.uploader = uploader + self.uploader = uploader if uploader_url is not None: - self.uploader_url = uploader_url + self.uploader_url = uploader_url if version is not None: - self.version = version + self.version = version if version_orig is not None: - self.version_orig = version_orig + self.version_orig = version_orig if vulnerability_scan_results_url is not None: - self.vulnerability_scan_results_url = vulnerability_scan_results_url + self.vulnerability_scan_results_url = vulnerability_scan_results_url @property def architectures(self): - """ - Gets the architectures of this PackageMove. - + """Gets the architectures of this PackageMove. # noqa: E501 + + # noqa: E501 - :return: The architectures of this PackageMove. + :return: The architectures of this PackageMove. # noqa: E501 :rtype: list[PackagesownerrepoArchitectures] """ return self._architectures @architectures.setter def architectures(self, architectures): - """ - Sets the architectures of this PackageMove. - + """Sets the architectures of this PackageMove. + + # noqa: E501 - :param architectures: The architectures of this PackageMove. + :param architectures: The architectures of this PackageMove. # noqa: E501 :type: list[PackagesownerrepoArchitectures] """ @@ -393,22 +397,22 @@ def architectures(self, architectures): @property def cdn_url(self): - """ - Gets the cdn_url of this PackageMove. - + """Gets the cdn_url of this PackageMove. # noqa: E501 - :return: The cdn_url of this PackageMove. + # noqa: E501 + + :return: The cdn_url of this PackageMove. # noqa: E501 :rtype: str """ return self._cdn_url @cdn_url.setter def cdn_url(self, cdn_url): - """ - Sets the cdn_url of this PackageMove. - + """Sets the cdn_url of this PackageMove. - :param cdn_url: The cdn_url of this PackageMove. + # noqa: E501 + + :param cdn_url: The cdn_url of this PackageMove. # noqa: E501 :type: str """ @@ -416,22 +420,22 @@ def cdn_url(self, cdn_url): @property def checksum_md5(self): - """ - Gets the checksum_md5 of this PackageMove. - + """Gets the checksum_md5 of this PackageMove. # noqa: E501 - :return: The checksum_md5 of this PackageMove. + # noqa: E501 + + :return: The checksum_md5 of this PackageMove. # noqa: E501 :rtype: str """ return self._checksum_md5 @checksum_md5.setter def checksum_md5(self, checksum_md5): - """ - Sets the checksum_md5 of this PackageMove. - + """Sets the checksum_md5 of this PackageMove. - :param checksum_md5: The checksum_md5 of this PackageMove. + # noqa: E501 + + :param checksum_md5: The checksum_md5 of this PackageMove. # noqa: E501 :type: str """ @@ -439,22 +443,22 @@ def checksum_md5(self, checksum_md5): @property def checksum_sha1(self): - """ - Gets the checksum_sha1 of this PackageMove. - + """Gets the checksum_sha1 of this PackageMove. # noqa: E501 + + # noqa: E501 - :return: The checksum_sha1 of this PackageMove. + :return: The checksum_sha1 of this PackageMove. # noqa: E501 :rtype: str """ return self._checksum_sha1 @checksum_sha1.setter def checksum_sha1(self, checksum_sha1): - """ - Sets the checksum_sha1 of this PackageMove. - + """Sets the checksum_sha1 of this PackageMove. + + # noqa: E501 - :param checksum_sha1: The checksum_sha1 of this PackageMove. + :param checksum_sha1: The checksum_sha1 of this PackageMove. # noqa: E501 :type: str """ @@ -462,22 +466,22 @@ def checksum_sha1(self, checksum_sha1): @property def checksum_sha256(self): - """ - Gets the checksum_sha256 of this PackageMove. - + """Gets the checksum_sha256 of this PackageMove. # noqa: E501 + + # noqa: E501 - :return: The checksum_sha256 of this PackageMove. + :return: The checksum_sha256 of this PackageMove. # noqa: E501 :rtype: str """ return self._checksum_sha256 @checksum_sha256.setter def checksum_sha256(self, checksum_sha256): - """ - Sets the checksum_sha256 of this PackageMove. - + """Sets the checksum_sha256 of this PackageMove. + + # noqa: E501 - :param checksum_sha256: The checksum_sha256 of this PackageMove. + :param checksum_sha256: The checksum_sha256 of this PackageMove. # noqa: E501 :type: str """ @@ -485,22 +489,22 @@ def checksum_sha256(self, checksum_sha256): @property def checksum_sha512(self): - """ - Gets the checksum_sha512 of this PackageMove. - + """Gets the checksum_sha512 of this PackageMove. # noqa: E501 + + # noqa: E501 - :return: The checksum_sha512 of this PackageMove. + :return: The checksum_sha512 of this PackageMove. # noqa: E501 :rtype: str """ return self._checksum_sha512 @checksum_sha512.setter def checksum_sha512(self, checksum_sha512): - """ - Sets the checksum_sha512 of this PackageMove. - + """Sets the checksum_sha512 of this PackageMove. + + # noqa: E501 - :param checksum_sha512: The checksum_sha512 of this PackageMove. + :param checksum_sha512: The checksum_sha512 of this PackageMove. # noqa: E501 :type: str """ @@ -508,22 +512,22 @@ def checksum_sha512(self, checksum_sha512): @property def dependencies_checksum_md5(self): - """ - Gets the dependencies_checksum_md5 of this PackageMove. - A checksum of all of the package's dependencies. + """Gets the dependencies_checksum_md5 of this PackageMove. # noqa: E501 + + A checksum of all of the package's dependencies. # noqa: E501 - :return: The dependencies_checksum_md5 of this PackageMove. + :return: The dependencies_checksum_md5 of this PackageMove. # noqa: E501 :rtype: str """ return self._dependencies_checksum_md5 @dependencies_checksum_md5.setter def dependencies_checksum_md5(self, dependencies_checksum_md5): - """ - Sets the dependencies_checksum_md5 of this PackageMove. - A checksum of all of the package's dependencies. + """Sets the dependencies_checksum_md5 of this PackageMove. + + A checksum of all of the package's dependencies. # noqa: E501 - :param dependencies_checksum_md5: The dependencies_checksum_md5 of this PackageMove. + :param dependencies_checksum_md5: The dependencies_checksum_md5 of this PackageMove. # noqa: E501 :type: str """ @@ -531,22 +535,22 @@ def dependencies_checksum_md5(self, dependencies_checksum_md5): @property def dependencies_url(self): - """ - Gets the dependencies_url of this PackageMove. - + """Gets the dependencies_url of this PackageMove. # noqa: E501 + + # noqa: E501 - :return: The dependencies_url of this PackageMove. + :return: The dependencies_url of this PackageMove. # noqa: E501 :rtype: str """ return self._dependencies_url @dependencies_url.setter def dependencies_url(self, dependencies_url): - """ - Sets the dependencies_url of this PackageMove. - + """Sets the dependencies_url of this PackageMove. - :param dependencies_url: The dependencies_url of this PackageMove. + # noqa: E501 + + :param dependencies_url: The dependencies_url of this PackageMove. # noqa: E501 :type: str """ @@ -554,22 +558,22 @@ def dependencies_url(self, dependencies_url): @property def description(self): - """ - Gets the description of this PackageMove. - A textual description of this package. + """Gets the description of this PackageMove. # noqa: E501 - :return: The description of this PackageMove. + A textual description of this package. # noqa: E501 + + :return: The description of this PackageMove. # noqa: E501 :rtype: str """ return self._description @description.setter def description(self, description): - """ - Sets the description of this PackageMove. - A textual description of this package. + """Sets the description of this PackageMove. - :param description: The description of this PackageMove. + A textual description of this package. # noqa: E501 + + :param description: The description of this PackageMove. # noqa: E501 :type: str """ @@ -577,22 +581,22 @@ def description(self, description): @property def distro(self): - """ - Gets the distro of this PackageMove. - + """Gets the distro of this PackageMove. # noqa: E501 - :return: The distro of this PackageMove. + # noqa: E501 + + :return: The distro of this PackageMove. # noqa: E501 :rtype: object """ return self._distro @distro.setter def distro(self, distro): - """ - Sets the distro of this PackageMove. - + """Sets the distro of this PackageMove. + + # noqa: E501 - :param distro: The distro of this PackageMove. + :param distro: The distro of this PackageMove. # noqa: E501 :type: object """ @@ -600,22 +604,22 @@ def distro(self, distro): @property def distro_version(self): - """ - Gets the distro_version of this PackageMove. - + """Gets the distro_version of this PackageMove. # noqa: E501 + + # noqa: E501 - :return: The distro_version of this PackageMove. + :return: The distro_version of this PackageMove. # noqa: E501 :rtype: object """ return self._distro_version @distro_version.setter def distro_version(self, distro_version): - """ - Sets the distro_version of this PackageMove. - + """Sets the distro_version of this PackageMove. + + # noqa: E501 - :param distro_version: The distro_version of this PackageMove. + :param distro_version: The distro_version of this PackageMove. # noqa: E501 :type: object """ @@ -623,22 +627,22 @@ def distro_version(self, distro_version): @property def downloads(self): - """ - Gets the downloads of this PackageMove. - + """Gets the downloads of this PackageMove. # noqa: E501 + + # noqa: E501 - :return: The downloads of this PackageMove. + :return: The downloads of this PackageMove. # noqa: E501 :rtype: int """ return self._downloads @downloads.setter def downloads(self, downloads): - """ - Sets the downloads of this PackageMove. - + """Sets the downloads of this PackageMove. + + # noqa: E501 - :param downloads: The downloads of this PackageMove. + :param downloads: The downloads of this PackageMove. # noqa: E501 :type: int """ @@ -646,22 +650,22 @@ def downloads(self, downloads): @property def epoch(self): - """ - Gets the epoch of this PackageMove. - The epoch of the package version (if any). + """Gets the epoch of this PackageMove. # noqa: E501 - :return: The epoch of this PackageMove. + The epoch of the package version (if any). # noqa: E501 + + :return: The epoch of this PackageMove. # noqa: E501 :rtype: int """ return self._epoch @epoch.setter def epoch(self, epoch): - """ - Sets the epoch of this PackageMove. - The epoch of the package version (if any). + """Sets the epoch of this PackageMove. - :param epoch: The epoch of this PackageMove. + The epoch of the package version (if any). # noqa: E501 + + :param epoch: The epoch of this PackageMove. # noqa: E501 :type: int """ @@ -669,22 +673,22 @@ def epoch(self, epoch): @property def extension(self): - """ - Gets the extension of this PackageMove. - + """Gets the extension of this PackageMove. # noqa: E501 - :return: The extension of this PackageMove. + # noqa: E501 + + :return: The extension of this PackageMove. # noqa: E501 :rtype: str """ return self._extension @extension.setter def extension(self, extension): - """ - Sets the extension of this PackageMove. - + """Sets the extension of this PackageMove. - :param extension: The extension of this PackageMove. + # noqa: E501 + + :param extension: The extension of this PackageMove. # noqa: E501 :type: str """ @@ -692,22 +696,22 @@ def extension(self, extension): @property def filename(self): - """ - Gets the filename of this PackageMove. - + """Gets the filename of this PackageMove. # noqa: E501 - :return: The filename of this PackageMove. + # noqa: E501 + + :return: The filename of this PackageMove. # noqa: E501 :rtype: str """ return self._filename @filename.setter def filename(self, filename): - """ - Sets the filename of this PackageMove. - + """Sets the filename of this PackageMove. - :param filename: The filename of this PackageMove. + # noqa: E501 + + :param filename: The filename of this PackageMove. # noqa: E501 :type: str """ @@ -715,22 +719,22 @@ def filename(self, filename): @property def files(self): - """ - Gets the files of this PackageMove. - + """Gets the files of this PackageMove. # noqa: E501 - :return: The files of this PackageMove. + # noqa: E501 + + :return: The files of this PackageMove. # noqa: E501 :rtype: list[PackagesownerrepoFiles] """ return self._files @files.setter def files(self, files): - """ - Sets the files of this PackageMove. - + """Sets the files of this PackageMove. - :param files: The files of this PackageMove. + # noqa: E501 + + :param files: The files of this PackageMove. # noqa: E501 :type: list[PackagesownerrepoFiles] """ @@ -738,22 +742,22 @@ def files(self, files): @property def format(self): - """ - Gets the format of this PackageMove. - + """Gets the format of this PackageMove. # noqa: E501 + + # noqa: E501 - :return: The format of this PackageMove. + :return: The format of this PackageMove. # noqa: E501 :rtype: str """ return self._format @format.setter def format(self, format): - """ - Sets the format of this PackageMove. - + """Sets the format of this PackageMove. + + # noqa: E501 - :param format: The format of this PackageMove. + :param format: The format of this PackageMove. # noqa: E501 :type: str """ @@ -761,22 +765,22 @@ def format(self, format): @property def format_url(self): - """ - Gets the format_url of this PackageMove. - + """Gets the format_url of this PackageMove. # noqa: E501 + + # noqa: E501 - :return: The format_url of this PackageMove. + :return: The format_url of this PackageMove. # noqa: E501 :rtype: str """ return self._format_url @format_url.setter def format_url(self, format_url): - """ - Sets the format_url of this PackageMove. - + """Sets the format_url of this PackageMove. + + # noqa: E501 - :param format_url: The format_url of this PackageMove. + :param format_url: The format_url of this PackageMove. # noqa: E501 :type: str """ @@ -784,22 +788,22 @@ def format_url(self, format_url): @property def identifier_perm(self): - """ - Gets the identifier_perm of this PackageMove. - Unique and permanent identifier for the package. + """Gets the identifier_perm of this PackageMove. # noqa: E501 + + Unique and permanent identifier for the package. # noqa: E501 - :return: The identifier_perm of this PackageMove. + :return: The identifier_perm of this PackageMove. # noqa: E501 :rtype: str """ return self._identifier_perm @identifier_perm.setter def identifier_perm(self, identifier_perm): - """ - Sets the identifier_perm of this PackageMove. - Unique and permanent identifier for the package. + """Sets the identifier_perm of this PackageMove. - :param identifier_perm: The identifier_perm of this PackageMove. + Unique and permanent identifier for the package. # noqa: E501 + + :param identifier_perm: The identifier_perm of this PackageMove. # noqa: E501 :type: str """ @@ -807,22 +811,22 @@ def identifier_perm(self, identifier_perm): @property def indexed(self): - """ - Gets the indexed of this PackageMove. - + """Gets the indexed of this PackageMove. # noqa: E501 - :return: The indexed of this PackageMove. + # noqa: E501 + + :return: The indexed of this PackageMove. # noqa: E501 :rtype: bool """ return self._indexed @indexed.setter def indexed(self, indexed): - """ - Sets the indexed of this PackageMove. - + """Sets the indexed of this PackageMove. - :param indexed: The indexed of this PackageMove. + # noqa: E501 + + :param indexed: The indexed of this PackageMove. # noqa: E501 :type: bool """ @@ -830,22 +834,22 @@ def indexed(self, indexed): @property def is_sync_awaiting(self): - """ - Gets the is_sync_awaiting of this PackageMove. - + """Gets the is_sync_awaiting of this PackageMove. # noqa: E501 - :return: The is_sync_awaiting of this PackageMove. + # noqa: E501 + + :return: The is_sync_awaiting of this PackageMove. # noqa: E501 :rtype: bool """ return self._is_sync_awaiting @is_sync_awaiting.setter def is_sync_awaiting(self, is_sync_awaiting): - """ - Sets the is_sync_awaiting of this PackageMove. - + """Sets the is_sync_awaiting of this PackageMove. + + # noqa: E501 - :param is_sync_awaiting: The is_sync_awaiting of this PackageMove. + :param is_sync_awaiting: The is_sync_awaiting of this PackageMove. # noqa: E501 :type: bool """ @@ -853,22 +857,22 @@ def is_sync_awaiting(self, is_sync_awaiting): @property def is_sync_completed(self): - """ - Gets the is_sync_completed of this PackageMove. - + """Gets the is_sync_completed of this PackageMove. # noqa: E501 + + # noqa: E501 - :return: The is_sync_completed of this PackageMove. + :return: The is_sync_completed of this PackageMove. # noqa: E501 :rtype: bool """ return self._is_sync_completed @is_sync_completed.setter def is_sync_completed(self, is_sync_completed): - """ - Sets the is_sync_completed of this PackageMove. - + """Sets the is_sync_completed of this PackageMove. + + # noqa: E501 - :param is_sync_completed: The is_sync_completed of this PackageMove. + :param is_sync_completed: The is_sync_completed of this PackageMove. # noqa: E501 :type: bool """ @@ -876,22 +880,22 @@ def is_sync_completed(self, is_sync_completed): @property def is_sync_failed(self): - """ - Gets the is_sync_failed of this PackageMove. - + """Gets the is_sync_failed of this PackageMove. # noqa: E501 + + # noqa: E501 - :return: The is_sync_failed of this PackageMove. + :return: The is_sync_failed of this PackageMove. # noqa: E501 :rtype: bool """ return self._is_sync_failed @is_sync_failed.setter def is_sync_failed(self, is_sync_failed): - """ - Sets the is_sync_failed of this PackageMove. - + """Sets the is_sync_failed of this PackageMove. + + # noqa: E501 - :param is_sync_failed: The is_sync_failed of this PackageMove. + :param is_sync_failed: The is_sync_failed of this PackageMove. # noqa: E501 :type: bool """ @@ -899,22 +903,22 @@ def is_sync_failed(self, is_sync_failed): @property def is_sync_in_flight(self): - """ - Gets the is_sync_in_flight of this PackageMove. - + """Gets the is_sync_in_flight of this PackageMove. # noqa: E501 + + # noqa: E501 - :return: The is_sync_in_flight of this PackageMove. + :return: The is_sync_in_flight of this PackageMove. # noqa: E501 :rtype: bool """ return self._is_sync_in_flight @is_sync_in_flight.setter def is_sync_in_flight(self, is_sync_in_flight): - """ - Sets the is_sync_in_flight of this PackageMove. - + """Sets the is_sync_in_flight of this PackageMove. + + # noqa: E501 - :param is_sync_in_flight: The is_sync_in_flight of this PackageMove. + :param is_sync_in_flight: The is_sync_in_flight of this PackageMove. # noqa: E501 :type: bool """ @@ -922,22 +926,22 @@ def is_sync_in_flight(self, is_sync_in_flight): @property def is_sync_in_progress(self): - """ - Gets the is_sync_in_progress of this PackageMove. - + """Gets the is_sync_in_progress of this PackageMove. # noqa: E501 + + # noqa: E501 - :return: The is_sync_in_progress of this PackageMove. + :return: The is_sync_in_progress of this PackageMove. # noqa: E501 :rtype: bool """ return self._is_sync_in_progress @is_sync_in_progress.setter def is_sync_in_progress(self, is_sync_in_progress): - """ - Sets the is_sync_in_progress of this PackageMove. - + """Sets the is_sync_in_progress of this PackageMove. + + # noqa: E501 - :param is_sync_in_progress: The is_sync_in_progress of this PackageMove. + :param is_sync_in_progress: The is_sync_in_progress of this PackageMove. # noqa: E501 :type: bool """ @@ -945,22 +949,22 @@ def is_sync_in_progress(self, is_sync_in_progress): @property def license(self): - """ - Gets the license of this PackageMove. - The license of this package. + """Gets the license of this PackageMove. # noqa: E501 - :return: The license of this PackageMove. + The license of this package. # noqa: E501 + + :return: The license of this PackageMove. # noqa: E501 :rtype: str """ return self._license @license.setter def license(self, license): - """ - Sets the license of this PackageMove. - The license of this package. + """Sets the license of this PackageMove. - :param license: The license of this PackageMove. + The license of this package. # noqa: E501 + + :param license: The license of this PackageMove. # noqa: E501 :type: str """ @@ -968,22 +972,22 @@ def license(self, license): @property def name(self): - """ - Gets the name of this PackageMove. - The name of this package. + """Gets the name of this PackageMove. # noqa: E501 - :return: The name of this PackageMove. + The name of this package. # noqa: E501 + + :return: The name of this PackageMove. # noqa: E501 :rtype: str """ return self._name @name.setter def name(self, name): - """ - Sets the name of this PackageMove. - The name of this package. + """Sets the name of this PackageMove. - :param name: The name of this PackageMove. + The name of this package. # noqa: E501 + + :param name: The name of this PackageMove. # noqa: E501 :type: str """ @@ -991,22 +995,22 @@ def name(self, name): @property def namespace(self): - """ - Gets the namespace of this PackageMove. - + """Gets the namespace of this PackageMove. # noqa: E501 + + # noqa: E501 - :return: The namespace of this PackageMove. + :return: The namespace of this PackageMove. # noqa: E501 :rtype: str """ return self._namespace @namespace.setter def namespace(self, namespace): - """ - Sets the namespace of this PackageMove. - + """Sets the namespace of this PackageMove. + + # noqa: E501 - :param namespace: The namespace of this PackageMove. + :param namespace: The namespace of this PackageMove. # noqa: E501 :type: str """ @@ -1014,22 +1018,22 @@ def namespace(self, namespace): @property def namespace_url(self): - """ - Gets the namespace_url of this PackageMove. - + """Gets the namespace_url of this PackageMove. # noqa: E501 + + # noqa: E501 - :return: The namespace_url of this PackageMove. + :return: The namespace_url of this PackageMove. # noqa: E501 :rtype: str """ return self._namespace_url @namespace_url.setter def namespace_url(self, namespace_url): - """ - Sets the namespace_url of this PackageMove. - + """Sets the namespace_url of this PackageMove. + + # noqa: E501 - :param namespace_url: The namespace_url of this PackageMove. + :param namespace_url: The namespace_url of this PackageMove. # noqa: E501 :type: str """ @@ -1037,22 +1041,22 @@ def namespace_url(self, namespace_url): @property def num_files(self): - """ - Gets the num_files of this PackageMove. - + """Gets the num_files of this PackageMove. # noqa: E501 + + # noqa: E501 - :return: The num_files of this PackageMove. + :return: The num_files of this PackageMove. # noqa: E501 :rtype: int """ return self._num_files @num_files.setter def num_files(self, num_files): - """ - Sets the num_files of this PackageMove. - + """Sets the num_files of this PackageMove. - :param num_files: The num_files of this PackageMove. + # noqa: E501 + + :param num_files: The num_files of this PackageMove. # noqa: E501 :type: int """ @@ -1060,22 +1064,22 @@ def num_files(self, num_files): @property def package_type(self): - """ - Gets the package_type of this PackageMove. - The type of package contents. + """Gets the package_type of this PackageMove. # noqa: E501 - :return: The package_type of this PackageMove. + The type of package contents. # noqa: E501 + + :return: The package_type of this PackageMove. # noqa: E501 :rtype: str """ return self._package_type @package_type.setter def package_type(self, package_type): - """ - Sets the package_type of this PackageMove. - The type of package contents. + """Sets the package_type of this PackageMove. - :param package_type: The package_type of this PackageMove. + The type of package contents. # noqa: E501 + + :param package_type: The package_type of this PackageMove. # noqa: E501 :type: str """ @@ -1083,22 +1087,22 @@ def package_type(self, package_type): @property def release(self): - """ - Gets the release of this PackageMove. - The release of the package version (if any). + """Gets the release of this PackageMove. # noqa: E501 - :return: The release of this PackageMove. + The release of the package version (if any). # noqa: E501 + + :return: The release of this PackageMove. # noqa: E501 :rtype: str """ return self._release @release.setter def release(self, release): - """ - Sets the release of this PackageMove. - The release of the package version (if any). + """Sets the release of this PackageMove. - :param release: The release of this PackageMove. + The release of the package version (if any). # noqa: E501 + + :param release: The release of this PackageMove. # noqa: E501 :type: str """ @@ -1106,22 +1110,22 @@ def release(self, release): @property def repository(self): - """ - Gets the repository of this PackageMove. - The repository the package will be moved to. + """Gets the repository of this PackageMove. # noqa: E501 - :return: The repository of this PackageMove. + The repository the package will be moved to. # noqa: E501 + + :return: The repository of this PackageMove. # noqa: E501 :rtype: str """ return self._repository @repository.setter def repository(self, repository): - """ - Sets the repository of this PackageMove. - The repository the package will be moved to. + """Sets the repository of this PackageMove. - :param repository: The repository of this PackageMove. + The repository the package will be moved to. # noqa: E501 + + :param repository: The repository of this PackageMove. # noqa: E501 :type: str """ @@ -1129,22 +1133,22 @@ def repository(self, repository): @property def repository_url(self): - """ - Gets the repository_url of this PackageMove. - + """Gets the repository_url of this PackageMove. # noqa: E501 - :return: The repository_url of this PackageMove. + # noqa: E501 + + :return: The repository_url of this PackageMove. # noqa: E501 :rtype: str """ return self._repository_url @repository_url.setter def repository_url(self, repository_url): - """ - Sets the repository_url of this PackageMove. - + """Sets the repository_url of this PackageMove. + + # noqa: E501 - :param repository_url: The repository_url of this PackageMove. + :param repository_url: The repository_url of this PackageMove. # noqa: E501 :type: str """ @@ -1152,22 +1156,22 @@ def repository_url(self, repository_url): @property def security_scan_completed_at(self): - """ - Gets the security_scan_completed_at of this PackageMove. - The datetime the security scanning was completed. + """Gets the security_scan_completed_at of this PackageMove. # noqa: E501 + + The datetime the security scanning was completed. # noqa: E501 - :return: The security_scan_completed_at of this PackageMove. + :return: The security_scan_completed_at of this PackageMove. # noqa: E501 :rtype: str """ return self._security_scan_completed_at @security_scan_completed_at.setter def security_scan_completed_at(self, security_scan_completed_at): - """ - Sets the security_scan_completed_at of this PackageMove. - The datetime the security scanning was completed. + """Sets the security_scan_completed_at of this PackageMove. + + The datetime the security scanning was completed. # noqa: E501 - :param security_scan_completed_at: The security_scan_completed_at of this PackageMove. + :param security_scan_completed_at: The security_scan_completed_at of this PackageMove. # noqa: E501 :type: str """ @@ -1175,22 +1179,22 @@ def security_scan_completed_at(self, security_scan_completed_at): @property def security_scan_started_at(self): - """ - Gets the security_scan_started_at of this PackageMove. - The datetime the security scanning was started. + """Gets the security_scan_started_at of this PackageMove. # noqa: E501 + + The datetime the security scanning was started. # noqa: E501 - :return: The security_scan_started_at of this PackageMove. + :return: The security_scan_started_at of this PackageMove. # noqa: E501 :rtype: str """ return self._security_scan_started_at @security_scan_started_at.setter def security_scan_started_at(self, security_scan_started_at): - """ - Sets the security_scan_started_at of this PackageMove. - The datetime the security scanning was started. + """Sets the security_scan_started_at of this PackageMove. + + The datetime the security scanning was started. # noqa: E501 - :param security_scan_started_at: The security_scan_started_at of this PackageMove. + :param security_scan_started_at: The security_scan_started_at of this PackageMove. # noqa: E501 :type: str """ @@ -1198,22 +1202,22 @@ def security_scan_started_at(self, security_scan_started_at): @property def security_scan_status(self): - """ - Gets the security_scan_status of this PackageMove. - + """Gets the security_scan_status of this PackageMove. # noqa: E501 - :return: The security_scan_status of this PackageMove. + # noqa: E501 + + :return: The security_scan_status of this PackageMove. # noqa: E501 :rtype: str """ return self._security_scan_status @security_scan_status.setter def security_scan_status(self, security_scan_status): - """ - Sets the security_scan_status of this PackageMove. - + """Sets the security_scan_status of this PackageMove. - :param security_scan_status: The security_scan_status of this PackageMove. + # noqa: E501 + + :param security_scan_status: The security_scan_status of this PackageMove. # noqa: E501 :type: str """ @@ -1221,22 +1225,22 @@ def security_scan_status(self, security_scan_status): @property def security_scan_status_updated_at(self): - """ - Gets the security_scan_status_updated_at of this PackageMove. - The datetime the security scanning status was updated. + """Gets the security_scan_status_updated_at of this PackageMove. # noqa: E501 - :return: The security_scan_status_updated_at of this PackageMove. + The datetime the security scanning status was updated. # noqa: E501 + + :return: The security_scan_status_updated_at of this PackageMove. # noqa: E501 :rtype: str """ return self._security_scan_status_updated_at @security_scan_status_updated_at.setter def security_scan_status_updated_at(self, security_scan_status_updated_at): - """ - Sets the security_scan_status_updated_at of this PackageMove. - The datetime the security scanning status was updated. + """Sets the security_scan_status_updated_at of this PackageMove. - :param security_scan_status_updated_at: The security_scan_status_updated_at of this PackageMove. + The datetime the security scanning status was updated. # noqa: E501 + + :param security_scan_status_updated_at: The security_scan_status_updated_at of this PackageMove. # noqa: E501 :type: str """ @@ -1244,22 +1248,22 @@ def security_scan_status_updated_at(self, security_scan_status_updated_at): @property def self_html_url(self): - """ - Gets the self_html_url of this PackageMove. - + """Gets the self_html_url of this PackageMove. # noqa: E501 + + # noqa: E501 - :return: The self_html_url of this PackageMove. + :return: The self_html_url of this PackageMove. # noqa: E501 :rtype: str """ return self._self_html_url @self_html_url.setter def self_html_url(self, self_html_url): - """ - Sets the self_html_url of this PackageMove. - + """Sets the self_html_url of this PackageMove. + + # noqa: E501 - :param self_html_url: The self_html_url of this PackageMove. + :param self_html_url: The self_html_url of this PackageMove. # noqa: E501 :type: str """ @@ -1267,22 +1271,22 @@ def self_html_url(self, self_html_url): @property def self_url(self): - """ - Gets the self_url of this PackageMove. - + """Gets the self_url of this PackageMove. # noqa: E501 + + # noqa: E501 - :return: The self_url of this PackageMove. + :return: The self_url of this PackageMove. # noqa: E501 :rtype: str """ return self._self_url @self_url.setter def self_url(self, self_url): - """ - Sets the self_url of this PackageMove. - + """Sets the self_url of this PackageMove. + + # noqa: E501 - :param self_url: The self_url of this PackageMove. + :param self_url: The self_url of this PackageMove. # noqa: E501 :type: str """ @@ -1290,22 +1294,22 @@ def self_url(self, self_url): @property def signature_url(self): - """ - Gets the signature_url of this PackageMove. - + """Gets the signature_url of this PackageMove. # noqa: E501 + + # noqa: E501 - :return: The signature_url of this PackageMove. + :return: The signature_url of this PackageMove. # noqa: E501 :rtype: str """ return self._signature_url @signature_url.setter def signature_url(self, signature_url): - """ - Sets the signature_url of this PackageMove. - + """Sets the signature_url of this PackageMove. + + # noqa: E501 - :param signature_url: The signature_url of this PackageMove. + :param signature_url: The signature_url of this PackageMove. # noqa: E501 :type: str """ @@ -1313,22 +1317,22 @@ def signature_url(self, signature_url): @property def size(self): - """ - Gets the size of this PackageMove. - The calculated size of the package. + """Gets the size of this PackageMove. # noqa: E501 + + The calculated size of the package. # noqa: E501 - :return: The size of this PackageMove. + :return: The size of this PackageMove. # noqa: E501 :rtype: int """ return self._size @size.setter def size(self, size): - """ - Sets the size of this PackageMove. - The calculated size of the package. + """Sets the size of this PackageMove. + + The calculated size of the package. # noqa: E501 - :param size: The size of this PackageMove. + :param size: The size of this PackageMove. # noqa: E501 :type: int """ @@ -1336,22 +1340,22 @@ def size(self, size): @property def slug(self): - """ - Gets the slug of this PackageMove. - The public unique identifier for the package. + """Gets the slug of this PackageMove. # noqa: E501 + + The public unique identifier for the package. # noqa: E501 - :return: The slug of this PackageMove. + :return: The slug of this PackageMove. # noqa: E501 :rtype: str """ return self._slug @slug.setter def slug(self, slug): - """ - Sets the slug of this PackageMove. - The public unique identifier for the package. + """Sets the slug of this PackageMove. - :param slug: The slug of this PackageMove. + The public unique identifier for the package. # noqa: E501 + + :param slug: The slug of this PackageMove. # noqa: E501 :type: str """ @@ -1359,22 +1363,22 @@ def slug(self, slug): @property def slug_perm(self): - """ - Gets the slug_perm of this PackageMove. - + """Gets the slug_perm of this PackageMove. # noqa: E501 - :return: The slug_perm of this PackageMove. + # noqa: E501 + + :return: The slug_perm of this PackageMove. # noqa: E501 :rtype: str """ return self._slug_perm @slug_perm.setter def slug_perm(self, slug_perm): - """ - Sets the slug_perm of this PackageMove. - + """Sets the slug_perm of this PackageMove. - :param slug_perm: The slug_perm of this PackageMove. + # noqa: E501 + + :param slug_perm: The slug_perm of this PackageMove. # noqa: E501 :type: str """ @@ -1382,22 +1386,22 @@ def slug_perm(self, slug_perm): @property def stage(self): - """ - Gets the stage of this PackageMove. - The synchronisation (in progress) stage of the package. + """Gets the stage of this PackageMove. # noqa: E501 - :return: The stage of this PackageMove. + The synchronisation (in progress) stage of the package. # noqa: E501 + + :return: The stage of this PackageMove. # noqa: E501 :rtype: str """ return self._stage @stage.setter def stage(self, stage): - """ - Sets the stage of this PackageMove. - The synchronisation (in progress) stage of the package. + """Sets the stage of this PackageMove. + + The synchronisation (in progress) stage of the package. # noqa: E501 - :param stage: The stage of this PackageMove. + :param stage: The stage of this PackageMove. # noqa: E501 :type: str """ @@ -1405,22 +1409,22 @@ def stage(self, stage): @property def stage_str(self): - """ - Gets the stage_str of this PackageMove. - + """Gets the stage_str of this PackageMove. # noqa: E501 + + # noqa: E501 - :return: The stage_str of this PackageMove. + :return: The stage_str of this PackageMove. # noqa: E501 :rtype: str """ return self._stage_str @stage_str.setter def stage_str(self, stage_str): - """ - Sets the stage_str of this PackageMove. - + """Sets the stage_str of this PackageMove. + + # noqa: E501 - :param stage_str: The stage_str of this PackageMove. + :param stage_str: The stage_str of this PackageMove. # noqa: E501 :type: str """ @@ -1428,22 +1432,22 @@ def stage_str(self, stage_str): @property def stage_updated_at(self): - """ - Gets the stage_updated_at of this PackageMove. - The datetime the package stage was updated at. + """Gets the stage_updated_at of this PackageMove. # noqa: E501 + + The datetime the package stage was updated at. # noqa: E501 - :return: The stage_updated_at of this PackageMove. + :return: The stage_updated_at of this PackageMove. # noqa: E501 :rtype: str """ return self._stage_updated_at @stage_updated_at.setter def stage_updated_at(self, stage_updated_at): - """ - Sets the stage_updated_at of this PackageMove. - The datetime the package stage was updated at. + """Sets the stage_updated_at of this PackageMove. + + The datetime the package stage was updated at. # noqa: E501 - :param stage_updated_at: The stage_updated_at of this PackageMove. + :param stage_updated_at: The stage_updated_at of this PackageMove. # noqa: E501 :type: str """ @@ -1451,22 +1455,22 @@ def stage_updated_at(self, stage_updated_at): @property def status(self): - """ - Gets the status of this PackageMove. - The synchronisation status of the package. + """Gets the status of this PackageMove. # noqa: E501 - :return: The status of this PackageMove. + The synchronisation status of the package. # noqa: E501 + + :return: The status of this PackageMove. # noqa: E501 :rtype: str """ return self._status @status.setter def status(self, status): - """ - Sets the status of this PackageMove. - The synchronisation status of the package. + """Sets the status of this PackageMove. - :param status: The status of this PackageMove. + The synchronisation status of the package. # noqa: E501 + + :param status: The status of this PackageMove. # noqa: E501 :type: str """ @@ -1474,22 +1478,22 @@ def status(self, status): @property def status_reason(self): - """ - Gets the status_reason of this PackageMove. - A textual description for the synchronous status reason (if any + """Gets the status_reason of this PackageMove. # noqa: E501 - :return: The status_reason of this PackageMove. + A textual description for the synchronous status reason (if any # noqa: E501 + + :return: The status_reason of this PackageMove. # noqa: E501 :rtype: str """ return self._status_reason @status_reason.setter def status_reason(self, status_reason): - """ - Sets the status_reason of this PackageMove. - A textual description for the synchronous status reason (if any + """Sets the status_reason of this PackageMove. - :param status_reason: The status_reason of this PackageMove. + A textual description for the synchronous status reason (if any # noqa: E501 + + :param status_reason: The status_reason of this PackageMove. # noqa: E501 :type: str """ @@ -1497,22 +1501,22 @@ def status_reason(self, status_reason): @property def status_str(self): - """ - Gets the status_str of this PackageMove. - + """Gets the status_str of this PackageMove. # noqa: E501 - :return: The status_str of this PackageMove. + # noqa: E501 + + :return: The status_str of this PackageMove. # noqa: E501 :rtype: str """ return self._status_str @status_str.setter def status_str(self, status_str): - """ - Sets the status_str of this PackageMove. - + """Sets the status_str of this PackageMove. - :param status_str: The status_str of this PackageMove. + # noqa: E501 + + :param status_str: The status_str of this PackageMove. # noqa: E501 :type: str """ @@ -1520,22 +1524,22 @@ def status_str(self, status_str): @property def status_updated_at(self): - """ - Gets the status_updated_at of this PackageMove. - The datetime the package status was updated at. + """Gets the status_updated_at of this PackageMove. # noqa: E501 - :return: The status_updated_at of this PackageMove. + The datetime the package status was updated at. # noqa: E501 + + :return: The status_updated_at of this PackageMove. # noqa: E501 :rtype: str """ return self._status_updated_at @status_updated_at.setter def status_updated_at(self, status_updated_at): - """ - Sets the status_updated_at of this PackageMove. - The datetime the package status was updated at. + """Sets the status_updated_at of this PackageMove. - :param status_updated_at: The status_updated_at of this PackageMove. + The datetime the package status was updated at. # noqa: E501 + + :param status_updated_at: The status_updated_at of this PackageMove. # noqa: E501 :type: str """ @@ -1543,22 +1547,22 @@ def status_updated_at(self, status_updated_at): @property def status_url(self): - """ - Gets the status_url of this PackageMove. - + """Gets the status_url of this PackageMove. # noqa: E501 + + # noqa: E501 - :return: The status_url of this PackageMove. + :return: The status_url of this PackageMove. # noqa: E501 :rtype: str """ return self._status_url @status_url.setter def status_url(self, status_url): - """ - Sets the status_url of this PackageMove. - + """Sets the status_url of this PackageMove. + + # noqa: E501 - :param status_url: The status_url of this PackageMove. + :param status_url: The status_url of this PackageMove. # noqa: E501 :type: str """ @@ -1566,22 +1570,22 @@ def status_url(self, status_url): @property def subtype(self): - """ - Gets the subtype of this PackageMove. - + """Gets the subtype of this PackageMove. # noqa: E501 + + # noqa: E501 - :return: The subtype of this PackageMove. + :return: The subtype of this PackageMove. # noqa: E501 :rtype: str """ return self._subtype @subtype.setter def subtype(self, subtype): - """ - Sets the subtype of this PackageMove. - + """Sets the subtype of this PackageMove. + + # noqa: E501 - :param subtype: The subtype of this PackageMove. + :param subtype: The subtype of this PackageMove. # noqa: E501 :type: str """ @@ -1589,22 +1593,22 @@ def subtype(self, subtype): @property def summary(self): - """ - Gets the summary of this PackageMove. - A one-liner synopsis of this package. + """Gets the summary of this PackageMove. # noqa: E501 + + A one-liner synopsis of this package. # noqa: E501 - :return: The summary of this PackageMove. + :return: The summary of this PackageMove. # noqa: E501 :rtype: str """ return self._summary @summary.setter def summary(self, summary): - """ - Sets the summary of this PackageMove. - A one-liner synopsis of this package. + """Sets the summary of this PackageMove. - :param summary: The summary of this PackageMove. + A one-liner synopsis of this package. # noqa: E501 + + :param summary: The summary of this PackageMove. # noqa: E501 :type: str """ @@ -1612,22 +1616,22 @@ def summary(self, summary): @property def sync_finished_at(self): - """ - Gets the sync_finished_at of this PackageMove. - The datetime the package sync was finished at. + """Gets the sync_finished_at of this PackageMove. # noqa: E501 - :return: The sync_finished_at of this PackageMove. + The datetime the package sync was finished at. # noqa: E501 + + :return: The sync_finished_at of this PackageMove. # noqa: E501 :rtype: str """ return self._sync_finished_at @sync_finished_at.setter def sync_finished_at(self, sync_finished_at): - """ - Sets the sync_finished_at of this PackageMove. - The datetime the package sync was finished at. + """Sets the sync_finished_at of this PackageMove. - :param sync_finished_at: The sync_finished_at of this PackageMove. + The datetime the package sync was finished at. # noqa: E501 + + :param sync_finished_at: The sync_finished_at of this PackageMove. # noqa: E501 :type: str """ @@ -1635,22 +1639,22 @@ def sync_finished_at(self, sync_finished_at): @property def sync_progress(self): - """ - Gets the sync_progress of this PackageMove. - Synchronisation progress (from 0-100) + """Gets the sync_progress of this PackageMove. # noqa: E501 - :return: The sync_progress of this PackageMove. + Synchronisation progress (from 0-100) # noqa: E501 + + :return: The sync_progress of this PackageMove. # noqa: E501 :rtype: int """ return self._sync_progress @sync_progress.setter def sync_progress(self, sync_progress): - """ - Sets the sync_progress of this PackageMove. - Synchronisation progress (from 0-100) + """Sets the sync_progress of this PackageMove. + + Synchronisation progress (from 0-100) # noqa: E501 - :param sync_progress: The sync_progress of this PackageMove. + :param sync_progress: The sync_progress of this PackageMove. # noqa: E501 :type: int """ @@ -1658,22 +1662,22 @@ def sync_progress(self, sync_progress): @property def tags(self): - """ - Gets the tags of this PackageMove. - All tags on the package, grouped by tag type. This includes immutable tags, but doesn't distinguish them from mutable. To see which tags are immutable specifically, see the tags_immutable field. + """Gets the tags of this PackageMove. # noqa: E501 + + All tags on the package, grouped by tag type. This includes immutable tags, but doesn't distinguish them from mutable. To see which tags are immutable specifically, see the tags_immutable field. # noqa: E501 - :return: The tags of this PackageMove. + :return: The tags of this PackageMove. # noqa: E501 :rtype: object """ return self._tags @tags.setter def tags(self, tags): - """ - Sets the tags of this PackageMove. - All tags on the package, grouped by tag type. This includes immutable tags, but doesn't distinguish them from mutable. To see which tags are immutable specifically, see the tags_immutable field. + """Sets the tags of this PackageMove. + + All tags on the package, grouped by tag type. This includes immutable tags, but doesn't distinguish them from mutable. To see which tags are immutable specifically, see the tags_immutable field. # noqa: E501 - :param tags: The tags of this PackageMove. + :param tags: The tags of this PackageMove. # noqa: E501 :type: object """ @@ -1681,22 +1685,22 @@ def tags(self, tags): @property def tags_immutable(self): - """ - Gets the tags_immutable of this PackageMove. - All immutable tags on the package, grouped by tag type. Immutable tags cannot be (easily) deleted. + """Gets the tags_immutable of this PackageMove. # noqa: E501 + + All immutable tags on the package, grouped by tag type. Immutable tags cannot be (easily) deleted. # noqa: E501 - :return: The tags_immutable of this PackageMove. + :return: The tags_immutable of this PackageMove. # noqa: E501 :rtype: object """ return self._tags_immutable @tags_immutable.setter def tags_immutable(self, tags_immutable): - """ - Sets the tags_immutable of this PackageMove. - All immutable tags on the package, grouped by tag type. Immutable tags cannot be (easily) deleted. + """Sets the tags_immutable of this PackageMove. + + All immutable tags on the package, grouped by tag type. Immutable tags cannot be (easily) deleted. # noqa: E501 - :param tags_immutable: The tags_immutable of this PackageMove. + :param tags_immutable: The tags_immutable of this PackageMove. # noqa: E501 :type: object """ @@ -1704,22 +1708,22 @@ def tags_immutable(self, tags_immutable): @property def type_display(self): - """ - Gets the type_display of this PackageMove. - + """Gets the type_display of this PackageMove. # noqa: E501 + + # noqa: E501 - :return: The type_display of this PackageMove. + :return: The type_display of this PackageMove. # noqa: E501 :rtype: str """ return self._type_display @type_display.setter def type_display(self, type_display): - """ - Sets the type_display of this PackageMove. - + """Sets the type_display of this PackageMove. + + # noqa: E501 - :param type_display: The type_display of this PackageMove. + :param type_display: The type_display of this PackageMove. # noqa: E501 :type: str """ @@ -1727,22 +1731,22 @@ def type_display(self, type_display): @property def uploaded_at(self): - """ - Gets the uploaded_at of this PackageMove. - The date this package was uploaded. + """Gets the uploaded_at of this PackageMove. # noqa: E501 + + The date this package was uploaded. # noqa: E501 - :return: The uploaded_at of this PackageMove. + :return: The uploaded_at of this PackageMove. # noqa: E501 :rtype: str """ return self._uploaded_at @uploaded_at.setter def uploaded_at(self, uploaded_at): - """ - Sets the uploaded_at of this PackageMove. - The date this package was uploaded. + """Sets the uploaded_at of this PackageMove. + + The date this package was uploaded. # noqa: E501 - :param uploaded_at: The uploaded_at of this PackageMove. + :param uploaded_at: The uploaded_at of this PackageMove. # noqa: E501 :type: str """ @@ -1750,22 +1754,22 @@ def uploaded_at(self, uploaded_at): @property def uploader(self): - """ - Gets the uploader of this PackageMove. - + """Gets the uploader of this PackageMove. # noqa: E501 - :return: The uploader of this PackageMove. + # noqa: E501 + + :return: The uploader of this PackageMove. # noqa: E501 :rtype: str """ return self._uploader @uploader.setter def uploader(self, uploader): - """ - Sets the uploader of this PackageMove. - + """Sets the uploader of this PackageMove. - :param uploader: The uploader of this PackageMove. + # noqa: E501 + + :param uploader: The uploader of this PackageMove. # noqa: E501 :type: str """ @@ -1773,22 +1777,22 @@ def uploader(self, uploader): @property def uploader_url(self): - """ - Gets the uploader_url of this PackageMove. - + """Gets the uploader_url of this PackageMove. # noqa: E501 - :return: The uploader_url of this PackageMove. + # noqa: E501 + + :return: The uploader_url of this PackageMove. # noqa: E501 :rtype: str """ return self._uploader_url @uploader_url.setter def uploader_url(self, uploader_url): - """ - Sets the uploader_url of this PackageMove. - + """Sets the uploader_url of this PackageMove. - :param uploader_url: The uploader_url of this PackageMove. + # noqa: E501 + + :param uploader_url: The uploader_url of this PackageMove. # noqa: E501 :type: str """ @@ -1796,22 +1800,22 @@ def uploader_url(self, uploader_url): @property def version(self): - """ - Gets the version of this PackageMove. - The raw version for this package. + """Gets the version of this PackageMove. # noqa: E501 - :return: The version of this PackageMove. + The raw version for this package. # noqa: E501 + + :return: The version of this PackageMove. # noqa: E501 :rtype: str """ return self._version @version.setter def version(self, version): - """ - Sets the version of this PackageMove. - The raw version for this package. + """Sets the version of this PackageMove. - :param version: The version of this PackageMove. + The raw version for this package. # noqa: E501 + + :param version: The version of this PackageMove. # noqa: E501 :type: str """ @@ -1819,22 +1823,22 @@ def version(self, version): @property def version_orig(self): - """ - Gets the version_orig of this PackageMove. - + """Gets the version_orig of this PackageMove. # noqa: E501 - :return: The version_orig of this PackageMove. + # noqa: E501 + + :return: The version_orig of this PackageMove. # noqa: E501 :rtype: str """ return self._version_orig @version_orig.setter def version_orig(self, version_orig): - """ - Sets the version_orig of this PackageMove. - + """Sets the version_orig of this PackageMove. - :param version_orig: The version_orig of this PackageMove. + # noqa: E501 + + :param version_orig: The version_orig of this PackageMove. # noqa: E501 :type: str """ @@ -1842,34 +1846,32 @@ def version_orig(self, version_orig): @property def vulnerability_scan_results_url(self): - """ - Gets the vulnerability_scan_results_url of this PackageMove. - + """Gets the vulnerability_scan_results_url of this PackageMove. # noqa: E501 + + # noqa: E501 - :return: The vulnerability_scan_results_url of this PackageMove. + :return: The vulnerability_scan_results_url of this PackageMove. # noqa: E501 :rtype: str """ return self._vulnerability_scan_results_url @vulnerability_scan_results_url.setter def vulnerability_scan_results_url(self, vulnerability_scan_results_url): - """ - Sets the vulnerability_scan_results_url of this PackageMove. - + """Sets the vulnerability_scan_results_url of this PackageMove. + + # noqa: E501 - :param vulnerability_scan_results_url: The vulnerability_scan_results_url of this PackageMove. + :param vulnerability_scan_results_url: The vulnerability_scan_results_url of this PackageMove. # noqa: E501 :type: str """ self._vulnerability_scan_results_url = vulnerability_scan_results_url def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -1886,32 +1888,30 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(PackageMove, dict): + for key, value in self.items(): + result[key] = value return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, PackageMove): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other + """Returns true if both objects are not equal""" + if not isinstance(other, PackageMove): + return True + + return self.to_dict() != other.to_dict() diff --git a/bindings/python/src/cloudsmith_api/models/package_status.py b/bindings/python/src/cloudsmith_api/models/package_status.py index 569f4d70..1b1d70ff 100644 --- a/bindings/python/src/cloudsmith_api/models/package_status.py +++ b/bindings/python/src/cloudsmith_api/models/package_status.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -11,18 +11,20 @@ """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration class PackageStatus(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -66,10 +68,11 @@ class PackageStatus(object): 'sync_progress': 'sync_progress' } - def __init__(self, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, self_url=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, sync_finished_at=None, sync_progress=None): - """ - PackageStatus - a model defined in Swagger - """ + def __init__(self, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, self_url=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, sync_finished_at=None, sync_progress=None, _configuration=None): # noqa: E501 + """PackageStatus - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._is_sync_awaiting = None self._is_sync_completed = None @@ -86,56 +89,57 @@ def __init__(self, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed self._status_updated_at = None self._sync_finished_at = None self._sync_progress = None + self.discriminator = None if is_sync_awaiting is not None: - self.is_sync_awaiting = is_sync_awaiting + self.is_sync_awaiting = is_sync_awaiting if is_sync_completed is not None: - self.is_sync_completed = is_sync_completed + self.is_sync_completed = is_sync_completed if is_sync_failed is not None: - self.is_sync_failed = is_sync_failed + self.is_sync_failed = is_sync_failed if is_sync_in_flight is not None: - self.is_sync_in_flight = is_sync_in_flight + self.is_sync_in_flight = is_sync_in_flight if is_sync_in_progress is not None: - self.is_sync_in_progress = is_sync_in_progress + self.is_sync_in_progress = is_sync_in_progress if self_url is not None: - self.self_url = self_url + self.self_url = self_url if stage is not None: - self.stage = stage + self.stage = stage if stage_str is not None: - self.stage_str = stage_str + self.stage_str = stage_str if stage_updated_at is not None: - self.stage_updated_at = stage_updated_at + self.stage_updated_at = stage_updated_at if status is not None: - self.status = status + self.status = status if status_reason is not None: - self.status_reason = status_reason + self.status_reason = status_reason if status_str is not None: - self.status_str = status_str + self.status_str = status_str if status_updated_at is not None: - self.status_updated_at = status_updated_at + self.status_updated_at = status_updated_at if sync_finished_at is not None: - self.sync_finished_at = sync_finished_at + self.sync_finished_at = sync_finished_at if sync_progress is not None: - self.sync_progress = sync_progress + self.sync_progress = sync_progress @property def is_sync_awaiting(self): - """ - Gets the is_sync_awaiting of this PackageStatus. - + """Gets the is_sync_awaiting of this PackageStatus. # noqa: E501 - :return: The is_sync_awaiting of this PackageStatus. + # noqa: E501 + + :return: The is_sync_awaiting of this PackageStatus. # noqa: E501 :rtype: bool """ return self._is_sync_awaiting @is_sync_awaiting.setter def is_sync_awaiting(self, is_sync_awaiting): - """ - Sets the is_sync_awaiting of this PackageStatus. - + """Sets the is_sync_awaiting of this PackageStatus. - :param is_sync_awaiting: The is_sync_awaiting of this PackageStatus. + # noqa: E501 + + :param is_sync_awaiting: The is_sync_awaiting of this PackageStatus. # noqa: E501 :type: bool """ @@ -143,22 +147,22 @@ def is_sync_awaiting(self, is_sync_awaiting): @property def is_sync_completed(self): - """ - Gets the is_sync_completed of this PackageStatus. - + """Gets the is_sync_completed of this PackageStatus. # noqa: E501 + + # noqa: E501 - :return: The is_sync_completed of this PackageStatus. + :return: The is_sync_completed of this PackageStatus. # noqa: E501 :rtype: bool """ return self._is_sync_completed @is_sync_completed.setter def is_sync_completed(self, is_sync_completed): - """ - Sets the is_sync_completed of this PackageStatus. - + """Sets the is_sync_completed of this PackageStatus. + + # noqa: E501 - :param is_sync_completed: The is_sync_completed of this PackageStatus. + :param is_sync_completed: The is_sync_completed of this PackageStatus. # noqa: E501 :type: bool """ @@ -166,22 +170,22 @@ def is_sync_completed(self, is_sync_completed): @property def is_sync_failed(self): - """ - Gets the is_sync_failed of this PackageStatus. - + """Gets the is_sync_failed of this PackageStatus. # noqa: E501 + + # noqa: E501 - :return: The is_sync_failed of this PackageStatus. + :return: The is_sync_failed of this PackageStatus. # noqa: E501 :rtype: bool """ return self._is_sync_failed @is_sync_failed.setter def is_sync_failed(self, is_sync_failed): - """ - Sets the is_sync_failed of this PackageStatus. - + """Sets the is_sync_failed of this PackageStatus. - :param is_sync_failed: The is_sync_failed of this PackageStatus. + # noqa: E501 + + :param is_sync_failed: The is_sync_failed of this PackageStatus. # noqa: E501 :type: bool """ @@ -189,22 +193,22 @@ def is_sync_failed(self, is_sync_failed): @property def is_sync_in_flight(self): - """ - Gets the is_sync_in_flight of this PackageStatus. - + """Gets the is_sync_in_flight of this PackageStatus. # noqa: E501 - :return: The is_sync_in_flight of this PackageStatus. + # noqa: E501 + + :return: The is_sync_in_flight of this PackageStatus. # noqa: E501 :rtype: bool """ return self._is_sync_in_flight @is_sync_in_flight.setter def is_sync_in_flight(self, is_sync_in_flight): - """ - Sets the is_sync_in_flight of this PackageStatus. - + """Sets the is_sync_in_flight of this PackageStatus. + + # noqa: E501 - :param is_sync_in_flight: The is_sync_in_flight of this PackageStatus. + :param is_sync_in_flight: The is_sync_in_flight of this PackageStatus. # noqa: E501 :type: bool """ @@ -212,22 +216,22 @@ def is_sync_in_flight(self, is_sync_in_flight): @property def is_sync_in_progress(self): - """ - Gets the is_sync_in_progress of this PackageStatus. - + """Gets the is_sync_in_progress of this PackageStatus. # noqa: E501 + + # noqa: E501 - :return: The is_sync_in_progress of this PackageStatus. + :return: The is_sync_in_progress of this PackageStatus. # noqa: E501 :rtype: bool """ return self._is_sync_in_progress @is_sync_in_progress.setter def is_sync_in_progress(self, is_sync_in_progress): - """ - Sets the is_sync_in_progress of this PackageStatus. - + """Sets the is_sync_in_progress of this PackageStatus. + + # noqa: E501 - :param is_sync_in_progress: The is_sync_in_progress of this PackageStatus. + :param is_sync_in_progress: The is_sync_in_progress of this PackageStatus. # noqa: E501 :type: bool """ @@ -235,22 +239,22 @@ def is_sync_in_progress(self, is_sync_in_progress): @property def self_url(self): - """ - Gets the self_url of this PackageStatus. - + """Gets the self_url of this PackageStatus. # noqa: E501 - :return: The self_url of this PackageStatus. + # noqa: E501 + + :return: The self_url of this PackageStatus. # noqa: E501 :rtype: str """ return self._self_url @self_url.setter def self_url(self, self_url): - """ - Sets the self_url of this PackageStatus. - + """Sets the self_url of this PackageStatus. - :param self_url: The self_url of this PackageStatus. + # noqa: E501 + + :param self_url: The self_url of this PackageStatus. # noqa: E501 :type: str """ @@ -258,22 +262,22 @@ def self_url(self, self_url): @property def stage(self): - """ - Gets the stage of this PackageStatus. - The synchronisation (in progress) stage of the package. + """Gets the stage of this PackageStatus. # noqa: E501 + + The synchronisation (in progress) stage of the package. # noqa: E501 - :return: The stage of this PackageStatus. + :return: The stage of this PackageStatus. # noqa: E501 :rtype: str """ return self._stage @stage.setter def stage(self, stage): - """ - Sets the stage of this PackageStatus. - The synchronisation (in progress) stage of the package. + """Sets the stage of this PackageStatus. + + The synchronisation (in progress) stage of the package. # noqa: E501 - :param stage: The stage of this PackageStatus. + :param stage: The stage of this PackageStatus. # noqa: E501 :type: str """ @@ -281,22 +285,22 @@ def stage(self, stage): @property def stage_str(self): - """ - Gets the stage_str of this PackageStatus. - + """Gets the stage_str of this PackageStatus. # noqa: E501 + + # noqa: E501 - :return: The stage_str of this PackageStatus. + :return: The stage_str of this PackageStatus. # noqa: E501 :rtype: str """ return self._stage_str @stage_str.setter def stage_str(self, stage_str): - """ - Sets the stage_str of this PackageStatus. - + """Sets the stage_str of this PackageStatus. - :param stage_str: The stage_str of this PackageStatus. + # noqa: E501 + + :param stage_str: The stage_str of this PackageStatus. # noqa: E501 :type: str """ @@ -304,22 +308,22 @@ def stage_str(self, stage_str): @property def stage_updated_at(self): - """ - Gets the stage_updated_at of this PackageStatus. - The datetime the package stage was updated at. + """Gets the stage_updated_at of this PackageStatus. # noqa: E501 - :return: The stage_updated_at of this PackageStatus. + The datetime the package stage was updated at. # noqa: E501 + + :return: The stage_updated_at of this PackageStatus. # noqa: E501 :rtype: str """ return self._stage_updated_at @stage_updated_at.setter def stage_updated_at(self, stage_updated_at): - """ - Sets the stage_updated_at of this PackageStatus. - The datetime the package stage was updated at. + """Sets the stage_updated_at of this PackageStatus. + + The datetime the package stage was updated at. # noqa: E501 - :param stage_updated_at: The stage_updated_at of this PackageStatus. + :param stage_updated_at: The stage_updated_at of this PackageStatus. # noqa: E501 :type: str """ @@ -327,22 +331,22 @@ def stage_updated_at(self, stage_updated_at): @property def status(self): - """ - Gets the status of this PackageStatus. - The synchronisation status of the package. + """Gets the status of this PackageStatus. # noqa: E501 + + The synchronisation status of the package. # noqa: E501 - :return: The status of this PackageStatus. + :return: The status of this PackageStatus. # noqa: E501 :rtype: str """ return self._status @status.setter def status(self, status): - """ - Sets the status of this PackageStatus. - The synchronisation status of the package. + """Sets the status of this PackageStatus. + + The synchronisation status of the package. # noqa: E501 - :param status: The status of this PackageStatus. + :param status: The status of this PackageStatus. # noqa: E501 :type: str """ @@ -350,22 +354,22 @@ def status(self, status): @property def status_reason(self): - """ - Gets the status_reason of this PackageStatus. - A textual description for the synchronous status reason (if any + """Gets the status_reason of this PackageStatus. # noqa: E501 - :return: The status_reason of this PackageStatus. + A textual description for the synchronous status reason (if any # noqa: E501 + + :return: The status_reason of this PackageStatus. # noqa: E501 :rtype: str """ return self._status_reason @status_reason.setter def status_reason(self, status_reason): - """ - Sets the status_reason of this PackageStatus. - A textual description for the synchronous status reason (if any + """Sets the status_reason of this PackageStatus. - :param status_reason: The status_reason of this PackageStatus. + A textual description for the synchronous status reason (if any # noqa: E501 + + :param status_reason: The status_reason of this PackageStatus. # noqa: E501 :type: str """ @@ -373,22 +377,22 @@ def status_reason(self, status_reason): @property def status_str(self): - """ - Gets the status_str of this PackageStatus. - + """Gets the status_str of this PackageStatus. # noqa: E501 + + # noqa: E501 - :return: The status_str of this PackageStatus. + :return: The status_str of this PackageStatus. # noqa: E501 :rtype: str """ return self._status_str @status_str.setter def status_str(self, status_str): - """ - Sets the status_str of this PackageStatus. - + """Sets the status_str of this PackageStatus. + + # noqa: E501 - :param status_str: The status_str of this PackageStatus. + :param status_str: The status_str of this PackageStatus. # noqa: E501 :type: str """ @@ -396,22 +400,22 @@ def status_str(self, status_str): @property def status_updated_at(self): - """ - Gets the status_updated_at of this PackageStatus. - The datetime the package status was updated at. + """Gets the status_updated_at of this PackageStatus. # noqa: E501 + + The datetime the package status was updated at. # noqa: E501 - :return: The status_updated_at of this PackageStatus. + :return: The status_updated_at of this PackageStatus. # noqa: E501 :rtype: str """ return self._status_updated_at @status_updated_at.setter def status_updated_at(self, status_updated_at): - """ - Sets the status_updated_at of this PackageStatus. - The datetime the package status was updated at. + """Sets the status_updated_at of this PackageStatus. - :param status_updated_at: The status_updated_at of this PackageStatus. + The datetime the package status was updated at. # noqa: E501 + + :param status_updated_at: The status_updated_at of this PackageStatus. # noqa: E501 :type: str """ @@ -419,22 +423,22 @@ def status_updated_at(self, status_updated_at): @property def sync_finished_at(self): - """ - Gets the sync_finished_at of this PackageStatus. - The datetime the package sync was finished at. + """Gets the sync_finished_at of this PackageStatus. # noqa: E501 - :return: The sync_finished_at of this PackageStatus. + The datetime the package sync was finished at. # noqa: E501 + + :return: The sync_finished_at of this PackageStatus. # noqa: E501 :rtype: str """ return self._sync_finished_at @sync_finished_at.setter def sync_finished_at(self, sync_finished_at): - """ - Sets the sync_finished_at of this PackageStatus. - The datetime the package sync was finished at. + """Sets the sync_finished_at of this PackageStatus. + + The datetime the package sync was finished at. # noqa: E501 - :param sync_finished_at: The sync_finished_at of this PackageStatus. + :param sync_finished_at: The sync_finished_at of this PackageStatus. # noqa: E501 :type: str """ @@ -442,34 +446,32 @@ def sync_finished_at(self, sync_finished_at): @property def sync_progress(self): - """ - Gets the sync_progress of this PackageStatus. - Synchronisation progress (from 0-100) + """Gets the sync_progress of this PackageStatus. # noqa: E501 + + Synchronisation progress (from 0-100) # noqa: E501 - :return: The sync_progress of this PackageStatus. + :return: The sync_progress of this PackageStatus. # noqa: E501 :rtype: int """ return self._sync_progress @sync_progress.setter def sync_progress(self, sync_progress): - """ - Sets the sync_progress of this PackageStatus. - Synchronisation progress (from 0-100) + """Sets the sync_progress of this PackageStatus. + + Synchronisation progress (from 0-100) # noqa: E501 - :param sync_progress: The sync_progress of this PackageStatus. + :param sync_progress: The sync_progress of this PackageStatus. # noqa: E501 :type: int """ self._sync_progress = sync_progress def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -486,32 +488,30 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(PackageStatus, dict): + for key, value in self.items(): + result[key] = value return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, PackageStatus): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other + """Returns true if both objects are not equal""" + if not isinstance(other, PackageStatus): + return True + + return self.to_dict() != other.to_dict() diff --git a/bindings/python/src/cloudsmith_api/models/package_usage_metrics.py b/bindings/python/src/cloudsmith_api/models/package_usage_metrics.py index d049f244..b657b962 100644 --- a/bindings/python/src/cloudsmith_api/models/package_usage_metrics.py +++ b/bindings/python/src/cloudsmith_api/models/package_usage_metrics.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -11,18 +11,20 @@ """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration class PackageUsageMetrics(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -38,47 +40,47 @@ class PackageUsageMetrics(object): 'packages': 'packages' } - def __init__(self, packages=None): - """ - PackageUsageMetrics - a model defined in Swagger - """ + def __init__(self, packages=None, _configuration=None): # noqa: E501 + """PackageUsageMetrics - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._packages = None + self.discriminator = None self.packages = packages @property def packages(self): - """ - Gets the packages of this PackageUsageMetrics. - + """Gets the packages of this PackageUsageMetrics. # noqa: E501 + + # noqa: E501 - :return: The packages of this PackageUsageMetrics. + :return: The packages of this PackageUsageMetrics. # noqa: E501 :rtype: object """ return self._packages @packages.setter def packages(self, packages): - """ - Sets the packages of this PackageUsageMetrics. - + """Sets the packages of this PackageUsageMetrics. + + # noqa: E501 - :param packages: The packages of this PackageUsageMetrics. + :param packages: The packages of this PackageUsageMetrics. # noqa: E501 :type: object """ - if packages is None: - raise ValueError("Invalid value for `packages`, must not be `None`") + if self._configuration.client_side_validation and packages is None: + raise ValueError("Invalid value for `packages`, must not be `None`") # noqa: E501 self._packages = packages def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -95,32 +97,30 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(PackageUsageMetrics, dict): + for key, value in self.items(): + result[key] = value return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, PackageUsageMetrics): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other + """Returns true if both objects are not equal""" + if not isinstance(other, PackageUsageMetrics): + return True + + return self.to_dict() != other.to_dict() diff --git a/bindings/python/src/cloudsmith_api/models/packages_copy.py b/bindings/python/src/cloudsmith_api/models/packages_copy.py index 82a12ef3..598234a7 100644 --- a/bindings/python/src/cloudsmith_api/models/packages_copy.py +++ b/bindings/python/src/cloudsmith_api/models/packages_copy.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -11,18 +11,20 @@ """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration class PackagesCopy(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -40,73 +42,73 @@ class PackagesCopy(object): 'republish': 'republish' } - def __init__(self, destination=None, republish=None): - """ - PackagesCopy - a model defined in Swagger - """ + def __init__(self, destination=None, republish=None, _configuration=None): # noqa: E501 + """PackagesCopy - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._destination = None self._republish = None + self.discriminator = None self.destination = destination if republish is not None: - self.republish = republish + self.republish = republish @property def destination(self): - """ - Gets the destination of this PackagesCopy. - None + """Gets the destination of this PackagesCopy. # noqa: E501 + + None # noqa: E501 - :return: The destination of this PackagesCopy. + :return: The destination of this PackagesCopy. # noqa: E501 :rtype: str """ return self._destination @destination.setter def destination(self, destination): - """ - Sets the destination of this PackagesCopy. - None + """Sets the destination of this PackagesCopy. + + None # noqa: E501 - :param destination: The destination of this PackagesCopy. + :param destination: The destination of this PackagesCopy. # noqa: E501 :type: str """ - if destination is None: - raise ValueError("Invalid value for `destination`, must not be `None`") + if self._configuration.client_side_validation and destination is None: + raise ValueError("Invalid value for `destination`, must not be `None`") # noqa: E501 self._destination = destination @property def republish(self): - """ - Gets the republish of this PackagesCopy. - If true, the package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. + """Gets the republish of this PackagesCopy. # noqa: E501 + + If true, the package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. # noqa: E501 - :return: The republish of this PackagesCopy. + :return: The republish of this PackagesCopy. # noqa: E501 :rtype: bool """ return self._republish @republish.setter def republish(self, republish): - """ - Sets the republish of this PackagesCopy. - If true, the package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. + """Sets the republish of this PackagesCopy. - :param republish: The republish of this PackagesCopy. + If true, the package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. # noqa: E501 + + :param republish: The republish of this PackagesCopy. # noqa: E501 :type: bool """ self._republish = republish def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -123,32 +125,30 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(PackagesCopy, dict): + for key, value in self.items(): + result[key] = value return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, PackagesCopy): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other + """Returns true if both objects are not equal""" + if not isinstance(other, PackagesCopy): + return True + + return self.to_dict() != other.to_dict() diff --git a/bindings/python/src/cloudsmith_api/models/packages_move.py b/bindings/python/src/cloudsmith_api/models/packages_move.py index cf603861..07612831 100644 --- a/bindings/python/src/cloudsmith_api/models/packages_move.py +++ b/bindings/python/src/cloudsmith_api/models/packages_move.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -11,18 +11,20 @@ """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration class PackagesMove(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -38,47 +40,47 @@ class PackagesMove(object): 'destination': 'destination' } - def __init__(self, destination=None): - """ - PackagesMove - a model defined in Swagger - """ + def __init__(self, destination=None, _configuration=None): # noqa: E501 + """PackagesMove - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._destination = None + self.discriminator = None self.destination = destination @property def destination(self): - """ - Gets the destination of this PackagesMove. - None + """Gets the destination of this PackagesMove. # noqa: E501 + + None # noqa: E501 - :return: The destination of this PackagesMove. + :return: The destination of this PackagesMove. # noqa: E501 :rtype: str """ return self._destination @destination.setter def destination(self, destination): - """ - Sets the destination of this PackagesMove. - None + """Sets the destination of this PackagesMove. + + None # noqa: E501 - :param destination: The destination of this PackagesMove. + :param destination: The destination of this PackagesMove. # noqa: E501 :type: str """ - if destination is None: - raise ValueError("Invalid value for `destination`, must not be `None`") + if self._configuration.client_side_validation and destination is None: + raise ValueError("Invalid value for `destination`, must not be `None`") # noqa: E501 self._destination = destination def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -95,32 +97,30 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(PackagesMove, dict): + for key, value in self.items(): + result[key] = value return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, PackagesMove): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other + """Returns true if both objects are not equal""" + if not isinstance(other, PackagesMove): + return True + + return self.to_dict() != other.to_dict() diff --git a/bindings/python/src/cloudsmith_api/models/packages_tag.py b/bindings/python/src/cloudsmith_api/models/packages_tag.py index bfa160c8..075334a6 100644 --- a/bindings/python/src/cloudsmith_api/models/packages_tag.py +++ b/bindings/python/src/cloudsmith_api/models/packages_tag.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -11,18 +11,20 @@ """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration class PackagesTag(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -42,40 +44,42 @@ class PackagesTag(object): 'tags': 'tags' } - def __init__(self, action=None, is_immutable=None, tags=None): - """ - PackagesTag - a model defined in Swagger - """ + def __init__(self, action=None, is_immutable=None, tags=None, _configuration=None): # noqa: E501 + """PackagesTag - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._action = None self._is_immutable = None self._tags = None + self.discriminator = None if action is not None: - self.action = action + self.action = action if is_immutable is not None: - self.is_immutable = is_immutable + self.is_immutable = is_immutable if tags is not None: - self.tags = tags + self.tags = tags @property def action(self): - """ - Gets the action of this PackagesTag. - None + """Gets the action of this PackagesTag. # noqa: E501 - :return: The action of this PackagesTag. + None # noqa: E501 + + :return: The action of this PackagesTag. # noqa: E501 :rtype: str """ return self._action @action.setter def action(self, action): - """ - Sets the action of this PackagesTag. - None + """Sets the action of this PackagesTag. - :param action: The action of this PackagesTag. + None # noqa: E501 + + :param action: The action of this PackagesTag. # noqa: E501 :type: str """ @@ -83,22 +87,22 @@ def action(self, action): @property def is_immutable(self): - """ - Gets the is_immutable of this PackagesTag. - If true, created tags will be immutable. An immutable flag is a tag that cannot be removed from a package. + """Gets the is_immutable of this PackagesTag. # noqa: E501 - :return: The is_immutable of this PackagesTag. + If true, created tags will be immutable. An immutable flag is a tag that cannot be removed from a package. # noqa: E501 + + :return: The is_immutable of this PackagesTag. # noqa: E501 :rtype: bool """ return self._is_immutable @is_immutable.setter def is_immutable(self, is_immutable): - """ - Sets the is_immutable of this PackagesTag. - If true, created tags will be immutable. An immutable flag is a tag that cannot be removed from a package. + """Sets the is_immutable of this PackagesTag. - :param is_immutable: The is_immutable of this PackagesTag. + If true, created tags will be immutable. An immutable flag is a tag that cannot be removed from a package. # noqa: E501 + + :param is_immutable: The is_immutable of this PackagesTag. # noqa: E501 :type: bool """ @@ -106,34 +110,32 @@ def is_immutable(self, is_immutable): @property def tags(self): - """ - Gets the tags of this PackagesTag. - A list of tags to apply the action to. Not required for clears. + """Gets the tags of this PackagesTag. # noqa: E501 - :return: The tags of this PackagesTag. + A list of tags to apply the action to. Not required for clears. # noqa: E501 + + :return: The tags of this PackagesTag. # noqa: E501 :rtype: list[str] """ return self._tags @tags.setter def tags(self, tags): - """ - Sets the tags of this PackagesTag. - A list of tags to apply the action to. Not required for clears. + """Sets the tags of this PackagesTag. - :param tags: The tags of this PackagesTag. + A list of tags to apply the action to. Not required for clears. # noqa: E501 + + :param tags: The tags of this PackagesTag. # noqa: E501 :type: list[str] """ self._tags = tags def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -150,32 +152,30 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(PackagesTag, dict): + for key, value in self.items(): + result[key] = value return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, PackagesTag): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other + """Returns true if both objects are not equal""" + if not isinstance(other, PackagesTag): + return True + + return self.to_dict() != other.to_dict() diff --git a/bindings/python/src/cloudsmith_api/models/packages_upload_alpine.py b/bindings/python/src/cloudsmith_api/models/packages_upload_alpine.py index 8a53435c..f57048e9 100644 --- a/bindings/python/src/cloudsmith_api/models/packages_upload_alpine.py +++ b/bindings/python/src/cloudsmith_api/models/packages_upload_alpine.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -11,18 +11,20 @@ """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration class PackagesUploadAlpine(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -44,91 +46,93 @@ class PackagesUploadAlpine(object): 'tags': 'tags' } - def __init__(self, distribution=None, package_file=None, republish=None, tags=None): - """ - PackagesUploadAlpine - a model defined in Swagger - """ + def __init__(self, distribution=None, package_file=None, republish=None, tags=None, _configuration=None): # noqa: E501 + """PackagesUploadAlpine - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._distribution = None self._package_file = None self._republish = None self._tags = None + self.discriminator = None self.distribution = distribution self.package_file = package_file if republish is not None: - self.republish = republish + self.republish = republish if tags is not None: - self.tags = tags + self.tags = tags @property def distribution(self): - """ - Gets the distribution of this PackagesUploadAlpine. - The distribution to store the package for. + """Gets the distribution of this PackagesUploadAlpine. # noqa: E501 + + The distribution to store the package for. # noqa: E501 - :return: The distribution of this PackagesUploadAlpine. + :return: The distribution of this PackagesUploadAlpine. # noqa: E501 :rtype: str """ return self._distribution @distribution.setter def distribution(self, distribution): - """ - Sets the distribution of this PackagesUploadAlpine. - The distribution to store the package for. + """Sets the distribution of this PackagesUploadAlpine. + + The distribution to store the package for. # noqa: E501 - :param distribution: The distribution of this PackagesUploadAlpine. + :param distribution: The distribution of this PackagesUploadAlpine. # noqa: E501 :type: str """ - if distribution is None: - raise ValueError("Invalid value for `distribution`, must not be `None`") + if self._configuration.client_side_validation and distribution is None: + raise ValueError("Invalid value for `distribution`, must not be `None`") # noqa: E501 self._distribution = distribution @property def package_file(self): - """ - Gets the package_file of this PackagesUploadAlpine. - The primary file for the package. + """Gets the package_file of this PackagesUploadAlpine. # noqa: E501 - :return: The package_file of this PackagesUploadAlpine. + The primary file for the package. # noqa: E501 + + :return: The package_file of this PackagesUploadAlpine. # noqa: E501 :rtype: str """ return self._package_file @package_file.setter def package_file(self, package_file): - """ - Sets the package_file of this PackagesUploadAlpine. - The primary file for the package. + """Sets the package_file of this PackagesUploadAlpine. - :param package_file: The package_file of this PackagesUploadAlpine. + The primary file for the package. # noqa: E501 + + :param package_file: The package_file of this PackagesUploadAlpine. # noqa: E501 :type: str """ - if package_file is None: - raise ValueError("Invalid value for `package_file`, must not be `None`") + if self._configuration.client_side_validation and package_file is None: + raise ValueError("Invalid value for `package_file`, must not be `None`") # noqa: E501 self._package_file = package_file @property def republish(self): - """ - Gets the republish of this PackagesUploadAlpine. - If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. + """Gets the republish of this PackagesUploadAlpine. # noqa: E501 - :return: The republish of this PackagesUploadAlpine. + If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. # noqa: E501 + + :return: The republish of this PackagesUploadAlpine. # noqa: E501 :rtype: bool """ return self._republish @republish.setter def republish(self, republish): - """ - Sets the republish of this PackagesUploadAlpine. - If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. + """Sets the republish of this PackagesUploadAlpine. - :param republish: The republish of this PackagesUploadAlpine. + If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. # noqa: E501 + + :param republish: The republish of this PackagesUploadAlpine. # noqa: E501 :type: bool """ @@ -136,34 +140,32 @@ def republish(self, republish): @property def tags(self): - """ - Gets the tags of this PackagesUploadAlpine. - A comma-separated values list of tags to add to the package. + """Gets the tags of this PackagesUploadAlpine. # noqa: E501 + + A comma-separated values list of tags to add to the package. # noqa: E501 - :return: The tags of this PackagesUploadAlpine. + :return: The tags of this PackagesUploadAlpine. # noqa: E501 :rtype: str """ return self._tags @tags.setter def tags(self, tags): - """ - Sets the tags of this PackagesUploadAlpine. - A comma-separated values list of tags to add to the package. + """Sets the tags of this PackagesUploadAlpine. + + A comma-separated values list of tags to add to the package. # noqa: E501 - :param tags: The tags of this PackagesUploadAlpine. + :param tags: The tags of this PackagesUploadAlpine. # noqa: E501 :type: str """ self._tags = tags def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -180,32 +182,30 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(PackagesUploadAlpine, dict): + for key, value in self.items(): + result[key] = value return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, PackagesUploadAlpine): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other + """Returns true if both objects are not equal""" + if not isinstance(other, PackagesUploadAlpine): + return True + + return self.to_dict() != other.to_dict() diff --git a/bindings/python/src/cloudsmith_api/models/packages_upload_cargo.py b/bindings/python/src/cloudsmith_api/models/packages_upload_cargo.py index 86674860..e9464050 100644 --- a/bindings/python/src/cloudsmith_api/models/packages_upload_cargo.py +++ b/bindings/python/src/cloudsmith_api/models/packages_upload_cargo.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -11,18 +11,20 @@ """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration class PackagesUploadCargo(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -42,64 +44,66 @@ class PackagesUploadCargo(object): 'tags': 'tags' } - def __init__(self, package_file=None, republish=None, tags=None): - """ - PackagesUploadCargo - a model defined in Swagger - """ + def __init__(self, package_file=None, republish=None, tags=None, _configuration=None): # noqa: E501 + """PackagesUploadCargo - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._package_file = None self._republish = None self._tags = None + self.discriminator = None self.package_file = package_file if republish is not None: - self.republish = republish + self.republish = republish if tags is not None: - self.tags = tags + self.tags = tags @property def package_file(self): - """ - Gets the package_file of this PackagesUploadCargo. - The primary file for the package. + """Gets the package_file of this PackagesUploadCargo. # noqa: E501 - :return: The package_file of this PackagesUploadCargo. + The primary file for the package. # noqa: E501 + + :return: The package_file of this PackagesUploadCargo. # noqa: E501 :rtype: str """ return self._package_file @package_file.setter def package_file(self, package_file): - """ - Sets the package_file of this PackagesUploadCargo. - The primary file for the package. + """Sets the package_file of this PackagesUploadCargo. - :param package_file: The package_file of this PackagesUploadCargo. + The primary file for the package. # noqa: E501 + + :param package_file: The package_file of this PackagesUploadCargo. # noqa: E501 :type: str """ - if package_file is None: - raise ValueError("Invalid value for `package_file`, must not be `None`") + if self._configuration.client_side_validation and package_file is None: + raise ValueError("Invalid value for `package_file`, must not be `None`") # noqa: E501 self._package_file = package_file @property def republish(self): - """ - Gets the republish of this PackagesUploadCargo. - If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. + """Gets the republish of this PackagesUploadCargo. # noqa: E501 - :return: The republish of this PackagesUploadCargo. + If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. # noqa: E501 + + :return: The republish of this PackagesUploadCargo. # noqa: E501 :rtype: bool """ return self._republish @republish.setter def republish(self, republish): - """ - Sets the republish of this PackagesUploadCargo. - If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. + """Sets the republish of this PackagesUploadCargo. - :param republish: The republish of this PackagesUploadCargo. + If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. # noqa: E501 + + :param republish: The republish of this PackagesUploadCargo. # noqa: E501 :type: bool """ @@ -107,34 +111,32 @@ def republish(self, republish): @property def tags(self): - """ - Gets the tags of this PackagesUploadCargo. - A comma-separated values list of tags to add to the package. + """Gets the tags of this PackagesUploadCargo. # noqa: E501 - :return: The tags of this PackagesUploadCargo. + A comma-separated values list of tags to add to the package. # noqa: E501 + + :return: The tags of this PackagesUploadCargo. # noqa: E501 :rtype: str """ return self._tags @tags.setter def tags(self, tags): - """ - Sets the tags of this PackagesUploadCargo. - A comma-separated values list of tags to add to the package. + """Sets the tags of this PackagesUploadCargo. - :param tags: The tags of this PackagesUploadCargo. + A comma-separated values list of tags to add to the package. # noqa: E501 + + :param tags: The tags of this PackagesUploadCargo. # noqa: E501 :type: str """ self._tags = tags def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -151,32 +153,30 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(PackagesUploadCargo, dict): + for key, value in self.items(): + result[key] = value return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, PackagesUploadCargo): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other + """Returns true if both objects are not equal""" + if not isinstance(other, PackagesUploadCargo): + return True + + return self.to_dict() != other.to_dict() diff --git a/bindings/python/src/cloudsmith_api/models/packages_upload_cocoapods.py b/bindings/python/src/cloudsmith_api/models/packages_upload_cocoapods.py index aec694ca..430f8242 100644 --- a/bindings/python/src/cloudsmith_api/models/packages_upload_cocoapods.py +++ b/bindings/python/src/cloudsmith_api/models/packages_upload_cocoapods.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -11,18 +11,20 @@ """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration class PackagesUploadCocoapods(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -42,64 +44,66 @@ class PackagesUploadCocoapods(object): 'tags': 'tags' } - def __init__(self, package_file=None, republish=None, tags=None): - """ - PackagesUploadCocoapods - a model defined in Swagger - """ + def __init__(self, package_file=None, republish=None, tags=None, _configuration=None): # noqa: E501 + """PackagesUploadCocoapods - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._package_file = None self._republish = None self._tags = None + self.discriminator = None self.package_file = package_file if republish is not None: - self.republish = republish + self.republish = republish if tags is not None: - self.tags = tags + self.tags = tags @property def package_file(self): - """ - Gets the package_file of this PackagesUploadCocoapods. - The primary file for the package. + """Gets the package_file of this PackagesUploadCocoapods. # noqa: E501 - :return: The package_file of this PackagesUploadCocoapods. + The primary file for the package. # noqa: E501 + + :return: The package_file of this PackagesUploadCocoapods. # noqa: E501 :rtype: str """ return self._package_file @package_file.setter def package_file(self, package_file): - """ - Sets the package_file of this PackagesUploadCocoapods. - The primary file for the package. + """Sets the package_file of this PackagesUploadCocoapods. - :param package_file: The package_file of this PackagesUploadCocoapods. + The primary file for the package. # noqa: E501 + + :param package_file: The package_file of this PackagesUploadCocoapods. # noqa: E501 :type: str """ - if package_file is None: - raise ValueError("Invalid value for `package_file`, must not be `None`") + if self._configuration.client_side_validation and package_file is None: + raise ValueError("Invalid value for `package_file`, must not be `None`") # noqa: E501 self._package_file = package_file @property def republish(self): - """ - Gets the republish of this PackagesUploadCocoapods. - If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. + """Gets the republish of this PackagesUploadCocoapods. # noqa: E501 - :return: The republish of this PackagesUploadCocoapods. + If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. # noqa: E501 + + :return: The republish of this PackagesUploadCocoapods. # noqa: E501 :rtype: bool """ return self._republish @republish.setter def republish(self, republish): - """ - Sets the republish of this PackagesUploadCocoapods. - If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. + """Sets the republish of this PackagesUploadCocoapods. - :param republish: The republish of this PackagesUploadCocoapods. + If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. # noqa: E501 + + :param republish: The republish of this PackagesUploadCocoapods. # noqa: E501 :type: bool """ @@ -107,34 +111,32 @@ def republish(self, republish): @property def tags(self): - """ - Gets the tags of this PackagesUploadCocoapods. - A comma-separated values list of tags to add to the package. + """Gets the tags of this PackagesUploadCocoapods. # noqa: E501 - :return: The tags of this PackagesUploadCocoapods. + A comma-separated values list of tags to add to the package. # noqa: E501 + + :return: The tags of this PackagesUploadCocoapods. # noqa: E501 :rtype: str """ return self._tags @tags.setter def tags(self, tags): - """ - Sets the tags of this PackagesUploadCocoapods. - A comma-separated values list of tags to add to the package. + """Sets the tags of this PackagesUploadCocoapods. - :param tags: The tags of this PackagesUploadCocoapods. + A comma-separated values list of tags to add to the package. # noqa: E501 + + :param tags: The tags of this PackagesUploadCocoapods. # noqa: E501 :type: str """ self._tags = tags def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -151,32 +153,30 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(PackagesUploadCocoapods, dict): + for key, value in self.items(): + result[key] = value return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, PackagesUploadCocoapods): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other + """Returns true if both objects are not equal""" + if not isinstance(other, PackagesUploadCocoapods): + return True + + return self.to_dict() != other.to_dict() diff --git a/bindings/python/src/cloudsmith_api/models/packages_upload_composer.py b/bindings/python/src/cloudsmith_api/models/packages_upload_composer.py index d15c4cc6..49089094 100644 --- a/bindings/python/src/cloudsmith_api/models/packages_upload_composer.py +++ b/bindings/python/src/cloudsmith_api/models/packages_upload_composer.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -11,18 +11,20 @@ """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration class PackagesUploadComposer(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -42,64 +44,66 @@ class PackagesUploadComposer(object): 'tags': 'tags' } - def __init__(self, package_file=None, republish=None, tags=None): - """ - PackagesUploadComposer - a model defined in Swagger - """ + def __init__(self, package_file=None, republish=None, tags=None, _configuration=None): # noqa: E501 + """PackagesUploadComposer - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._package_file = None self._republish = None self._tags = None + self.discriminator = None self.package_file = package_file if republish is not None: - self.republish = republish + self.republish = republish if tags is not None: - self.tags = tags + self.tags = tags @property def package_file(self): - """ - Gets the package_file of this PackagesUploadComposer. - The primary file for the package. + """Gets the package_file of this PackagesUploadComposer. # noqa: E501 - :return: The package_file of this PackagesUploadComposer. + The primary file for the package. # noqa: E501 + + :return: The package_file of this PackagesUploadComposer. # noqa: E501 :rtype: str """ return self._package_file @package_file.setter def package_file(self, package_file): - """ - Sets the package_file of this PackagesUploadComposer. - The primary file for the package. + """Sets the package_file of this PackagesUploadComposer. - :param package_file: The package_file of this PackagesUploadComposer. + The primary file for the package. # noqa: E501 + + :param package_file: The package_file of this PackagesUploadComposer. # noqa: E501 :type: str """ - if package_file is None: - raise ValueError("Invalid value for `package_file`, must not be `None`") + if self._configuration.client_side_validation and package_file is None: + raise ValueError("Invalid value for `package_file`, must not be `None`") # noqa: E501 self._package_file = package_file @property def republish(self): - """ - Gets the republish of this PackagesUploadComposer. - If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. + """Gets the republish of this PackagesUploadComposer. # noqa: E501 - :return: The republish of this PackagesUploadComposer. + If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. # noqa: E501 + + :return: The republish of this PackagesUploadComposer. # noqa: E501 :rtype: bool """ return self._republish @republish.setter def republish(self, republish): - """ - Sets the republish of this PackagesUploadComposer. - If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. + """Sets the republish of this PackagesUploadComposer. - :param republish: The republish of this PackagesUploadComposer. + If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. # noqa: E501 + + :param republish: The republish of this PackagesUploadComposer. # noqa: E501 :type: bool """ @@ -107,34 +111,32 @@ def republish(self, republish): @property def tags(self): - """ - Gets the tags of this PackagesUploadComposer. - A comma-separated values list of tags to add to the package. + """Gets the tags of this PackagesUploadComposer. # noqa: E501 - :return: The tags of this PackagesUploadComposer. + A comma-separated values list of tags to add to the package. # noqa: E501 + + :return: The tags of this PackagesUploadComposer. # noqa: E501 :rtype: str """ return self._tags @tags.setter def tags(self, tags): - """ - Sets the tags of this PackagesUploadComposer. - A comma-separated values list of tags to add to the package. + """Sets the tags of this PackagesUploadComposer. - :param tags: The tags of this PackagesUploadComposer. + A comma-separated values list of tags to add to the package. # noqa: E501 + + :param tags: The tags of this PackagesUploadComposer. # noqa: E501 :type: str """ self._tags = tags def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -151,32 +153,30 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(PackagesUploadComposer, dict): + for key, value in self.items(): + result[key] = value return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, PackagesUploadComposer): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other + """Returns true if both objects are not equal""" + if not isinstance(other, PackagesUploadComposer): + return True + + return self.to_dict() != other.to_dict() diff --git a/bindings/python/src/cloudsmith_api/models/packages_upload_conan.py b/bindings/python/src/cloudsmith_api/models/packages_upload_conan.py index 9ea9d10f..b55a3b18 100644 --- a/bindings/python/src/cloudsmith_api/models/packages_upload_conan.py +++ b/bindings/python/src/cloudsmith_api/models/packages_upload_conan.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -11,18 +11,20 @@ """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration class PackagesUploadConan(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -56,10 +58,11 @@ class PackagesUploadConan(object): 'version': 'version' } - def __init__(self, conan_channel=None, conan_prefix=None, info_file=None, manifest_file=None, metadata_file=None, name=None, package_file=None, republish=None, tags=None, version=None): - """ - PackagesUploadConan - a model defined in Swagger - """ + def __init__(self, conan_channel=None, conan_prefix=None, info_file=None, manifest_file=None, metadata_file=None, name=None, package_file=None, republish=None, tags=None, version=None, _configuration=None): # noqa: E501 + """PackagesUploadConan - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._conan_channel = None self._conan_prefix = None @@ -71,42 +74,43 @@ def __init__(self, conan_channel=None, conan_prefix=None, info_file=None, manife self._republish = None self._tags = None self._version = None + self.discriminator = None if conan_channel is not None: - self.conan_channel = conan_channel + self.conan_channel = conan_channel if conan_prefix is not None: - self.conan_prefix = conan_prefix + self.conan_prefix = conan_prefix self.info_file = info_file self.manifest_file = manifest_file self.metadata_file = metadata_file if name is not None: - self.name = name + self.name = name self.package_file = package_file if republish is not None: - self.republish = republish + self.republish = republish if tags is not None: - self.tags = tags + self.tags = tags if version is not None: - self.version = version + self.version = version @property def conan_channel(self): - """ - Gets the conan_channel of this PackagesUploadConan. - Conan channel. + """Gets the conan_channel of this PackagesUploadConan. # noqa: E501 - :return: The conan_channel of this PackagesUploadConan. + Conan channel. # noqa: E501 + + :return: The conan_channel of this PackagesUploadConan. # noqa: E501 :rtype: str """ return self._conan_channel @conan_channel.setter def conan_channel(self, conan_channel): - """ - Sets the conan_channel of this PackagesUploadConan. - Conan channel. + """Sets the conan_channel of this PackagesUploadConan. - :param conan_channel: The conan_channel of this PackagesUploadConan. + Conan channel. # noqa: E501 + + :param conan_channel: The conan_channel of this PackagesUploadConan. # noqa: E501 :type: str """ @@ -114,22 +118,22 @@ def conan_channel(self, conan_channel): @property def conan_prefix(self): - """ - Gets the conan_prefix of this PackagesUploadConan. - Conan prefix (User). + """Gets the conan_prefix of this PackagesUploadConan. # noqa: E501 - :return: The conan_prefix of this PackagesUploadConan. + Conan prefix (User). # noqa: E501 + + :return: The conan_prefix of this PackagesUploadConan. # noqa: E501 :rtype: str """ return self._conan_prefix @conan_prefix.setter def conan_prefix(self, conan_prefix): - """ - Sets the conan_prefix of this PackagesUploadConan. - Conan prefix (User). + """Sets the conan_prefix of this PackagesUploadConan. + + Conan prefix (User). # noqa: E501 - :param conan_prefix: The conan_prefix of this PackagesUploadConan. + :param conan_prefix: The conan_prefix of this PackagesUploadConan. # noqa: E501 :type: str """ @@ -137,97 +141,97 @@ def conan_prefix(self, conan_prefix): @property def info_file(self): - """ - Gets the info_file of this PackagesUploadConan. - The info file is an python file containing the package metadata. + """Gets the info_file of this PackagesUploadConan. # noqa: E501 + + The info file is an python file containing the package metadata. # noqa: E501 - :return: The info_file of this PackagesUploadConan. + :return: The info_file of this PackagesUploadConan. # noqa: E501 :rtype: str """ return self._info_file @info_file.setter def info_file(self, info_file): - """ - Sets the info_file of this PackagesUploadConan. - The info file is an python file containing the package metadata. + """Sets the info_file of this PackagesUploadConan. + + The info file is an python file containing the package metadata. # noqa: E501 - :param info_file: The info_file of this PackagesUploadConan. + :param info_file: The info_file of this PackagesUploadConan. # noqa: E501 :type: str """ - if info_file is None: - raise ValueError("Invalid value for `info_file`, must not be `None`") + if self._configuration.client_side_validation and info_file is None: + raise ValueError("Invalid value for `info_file`, must not be `None`") # noqa: E501 self._info_file = info_file @property def manifest_file(self): - """ - Gets the manifest_file of this PackagesUploadConan. - The info file is an python file containing the package metadata. + """Gets the manifest_file of this PackagesUploadConan. # noqa: E501 + + The info file is an python file containing the package metadata. # noqa: E501 - :return: The manifest_file of this PackagesUploadConan. + :return: The manifest_file of this PackagesUploadConan. # noqa: E501 :rtype: str """ return self._manifest_file @manifest_file.setter def manifest_file(self, manifest_file): - """ - Sets the manifest_file of this PackagesUploadConan. - The info file is an python file containing the package metadata. + """Sets the manifest_file of this PackagesUploadConan. + + The info file is an python file containing the package metadata. # noqa: E501 - :param manifest_file: The manifest_file of this PackagesUploadConan. + :param manifest_file: The manifest_file of this PackagesUploadConan. # noqa: E501 :type: str """ - if manifest_file is None: - raise ValueError("Invalid value for `manifest_file`, must not be `None`") + if self._configuration.client_side_validation and manifest_file is None: + raise ValueError("Invalid value for `manifest_file`, must not be `None`") # noqa: E501 self._manifest_file = manifest_file @property def metadata_file(self): - """ - Gets the metadata_file of this PackagesUploadConan. - The conan file is an python file containing the package metadata. + """Gets the metadata_file of this PackagesUploadConan. # noqa: E501 + + The conan file is an python file containing the package metadata. # noqa: E501 - :return: The metadata_file of this PackagesUploadConan. + :return: The metadata_file of this PackagesUploadConan. # noqa: E501 :rtype: str """ return self._metadata_file @metadata_file.setter def metadata_file(self, metadata_file): - """ - Sets the metadata_file of this PackagesUploadConan. - The conan file is an python file containing the package metadata. + """Sets the metadata_file of this PackagesUploadConan. + + The conan file is an python file containing the package metadata. # noqa: E501 - :param metadata_file: The metadata_file of this PackagesUploadConan. + :param metadata_file: The metadata_file of this PackagesUploadConan. # noqa: E501 :type: str """ - if metadata_file is None: - raise ValueError("Invalid value for `metadata_file`, must not be `None`") + if self._configuration.client_side_validation and metadata_file is None: + raise ValueError("Invalid value for `metadata_file`, must not be `None`") # noqa: E501 self._metadata_file = metadata_file @property def name(self): - """ - Gets the name of this PackagesUploadConan. - The name of this package. + """Gets the name of this PackagesUploadConan. # noqa: E501 + + The name of this package. # noqa: E501 - :return: The name of this PackagesUploadConan. + :return: The name of this PackagesUploadConan. # noqa: E501 :rtype: str """ return self._name @name.setter def name(self, name): - """ - Sets the name of this PackagesUploadConan. - The name of this package. + """Sets the name of this PackagesUploadConan. - :param name: The name of this PackagesUploadConan. + The name of this package. # noqa: E501 + + :param name: The name of this PackagesUploadConan. # noqa: E501 :type: str """ @@ -235,47 +239,47 @@ def name(self, name): @property def package_file(self): - """ - Gets the package_file of this PackagesUploadConan. - The primary file for the package. + """Gets the package_file of this PackagesUploadConan. # noqa: E501 - :return: The package_file of this PackagesUploadConan. + The primary file for the package. # noqa: E501 + + :return: The package_file of this PackagesUploadConan. # noqa: E501 :rtype: str """ return self._package_file @package_file.setter def package_file(self, package_file): - """ - Sets the package_file of this PackagesUploadConan. - The primary file for the package. + """Sets the package_file of this PackagesUploadConan. - :param package_file: The package_file of this PackagesUploadConan. + The primary file for the package. # noqa: E501 + + :param package_file: The package_file of this PackagesUploadConan. # noqa: E501 :type: str """ - if package_file is None: - raise ValueError("Invalid value for `package_file`, must not be `None`") + if self._configuration.client_side_validation and package_file is None: + raise ValueError("Invalid value for `package_file`, must not be `None`") # noqa: E501 self._package_file = package_file @property def republish(self): - """ - Gets the republish of this PackagesUploadConan. - If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. + """Gets the republish of this PackagesUploadConan. # noqa: E501 - :return: The republish of this PackagesUploadConan. + If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. # noqa: E501 + + :return: The republish of this PackagesUploadConan. # noqa: E501 :rtype: bool """ return self._republish @republish.setter def republish(self, republish): - """ - Sets the republish of this PackagesUploadConan. - If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. + """Sets the republish of this PackagesUploadConan. - :param republish: The republish of this PackagesUploadConan. + If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. # noqa: E501 + + :param republish: The republish of this PackagesUploadConan. # noqa: E501 :type: bool """ @@ -283,22 +287,22 @@ def republish(self, republish): @property def tags(self): - """ - Gets the tags of this PackagesUploadConan. - A comma-separated values list of tags to add to the package. + """Gets the tags of this PackagesUploadConan. # noqa: E501 - :return: The tags of this PackagesUploadConan. + A comma-separated values list of tags to add to the package. # noqa: E501 + + :return: The tags of this PackagesUploadConan. # noqa: E501 :rtype: str """ return self._tags @tags.setter def tags(self, tags): - """ - Sets the tags of this PackagesUploadConan. - A comma-separated values list of tags to add to the package. + """Sets the tags of this PackagesUploadConan. - :param tags: The tags of this PackagesUploadConan. + A comma-separated values list of tags to add to the package. # noqa: E501 + + :param tags: The tags of this PackagesUploadConan. # noqa: E501 :type: str """ @@ -306,34 +310,32 @@ def tags(self, tags): @property def version(self): - """ - Gets the version of this PackagesUploadConan. - The raw version for this package. + """Gets the version of this PackagesUploadConan. # noqa: E501 + + The raw version for this package. # noqa: E501 - :return: The version of this PackagesUploadConan. + :return: The version of this PackagesUploadConan. # noqa: E501 :rtype: str """ return self._version @version.setter def version(self, version): - """ - Sets the version of this PackagesUploadConan. - The raw version for this package. + """Sets the version of this PackagesUploadConan. + + The raw version for this package. # noqa: E501 - :param version: The version of this PackagesUploadConan. + :param version: The version of this PackagesUploadConan. # noqa: E501 :type: str """ self._version = version def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -350,32 +352,30 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(PackagesUploadConan, dict): + for key, value in self.items(): + result[key] = value return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, PackagesUploadConan): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other + """Returns true if both objects are not equal""" + if not isinstance(other, PackagesUploadConan): + return True + + return self.to_dict() != other.to_dict() diff --git a/bindings/python/src/cloudsmith_api/models/packages_upload_conda.py b/bindings/python/src/cloudsmith_api/models/packages_upload_conda.py index 13a73442..c35d8781 100644 --- a/bindings/python/src/cloudsmith_api/models/packages_upload_conda.py +++ b/bindings/python/src/cloudsmith_api/models/packages_upload_conda.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -11,18 +11,20 @@ """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration class PackagesUploadConda(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -42,64 +44,66 @@ class PackagesUploadConda(object): 'tags': 'tags' } - def __init__(self, package_file=None, republish=None, tags=None): - """ - PackagesUploadConda - a model defined in Swagger - """ + def __init__(self, package_file=None, republish=None, tags=None, _configuration=None): # noqa: E501 + """PackagesUploadConda - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._package_file = None self._republish = None self._tags = None + self.discriminator = None self.package_file = package_file if republish is not None: - self.republish = republish + self.republish = republish if tags is not None: - self.tags = tags + self.tags = tags @property def package_file(self): - """ - Gets the package_file of this PackagesUploadConda. - The primary file for the package. + """Gets the package_file of this PackagesUploadConda. # noqa: E501 - :return: The package_file of this PackagesUploadConda. + The primary file for the package. # noqa: E501 + + :return: The package_file of this PackagesUploadConda. # noqa: E501 :rtype: str """ return self._package_file @package_file.setter def package_file(self, package_file): - """ - Sets the package_file of this PackagesUploadConda. - The primary file for the package. + """Sets the package_file of this PackagesUploadConda. - :param package_file: The package_file of this PackagesUploadConda. + The primary file for the package. # noqa: E501 + + :param package_file: The package_file of this PackagesUploadConda. # noqa: E501 :type: str """ - if package_file is None: - raise ValueError("Invalid value for `package_file`, must not be `None`") + if self._configuration.client_side_validation and package_file is None: + raise ValueError("Invalid value for `package_file`, must not be `None`") # noqa: E501 self._package_file = package_file @property def republish(self): - """ - Gets the republish of this PackagesUploadConda. - If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. + """Gets the republish of this PackagesUploadConda. # noqa: E501 - :return: The republish of this PackagesUploadConda. + If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. # noqa: E501 + + :return: The republish of this PackagesUploadConda. # noqa: E501 :rtype: bool """ return self._republish @republish.setter def republish(self, republish): - """ - Sets the republish of this PackagesUploadConda. - If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. + """Sets the republish of this PackagesUploadConda. - :param republish: The republish of this PackagesUploadConda. + If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. # noqa: E501 + + :param republish: The republish of this PackagesUploadConda. # noqa: E501 :type: bool """ @@ -107,34 +111,32 @@ def republish(self, republish): @property def tags(self): - """ - Gets the tags of this PackagesUploadConda. - A comma-separated values list of tags to add to the package. + """Gets the tags of this PackagesUploadConda. # noqa: E501 - :return: The tags of this PackagesUploadConda. + A comma-separated values list of tags to add to the package. # noqa: E501 + + :return: The tags of this PackagesUploadConda. # noqa: E501 :rtype: str """ return self._tags @tags.setter def tags(self, tags): - """ - Sets the tags of this PackagesUploadConda. - A comma-separated values list of tags to add to the package. + """Sets the tags of this PackagesUploadConda. - :param tags: The tags of this PackagesUploadConda. + A comma-separated values list of tags to add to the package. # noqa: E501 + + :param tags: The tags of this PackagesUploadConda. # noqa: E501 :type: str """ self._tags = tags def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -151,32 +153,30 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(PackagesUploadConda, dict): + for key, value in self.items(): + result[key] = value return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, PackagesUploadConda): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other + """Returns true if both objects are not equal""" + if not isinstance(other, PackagesUploadConda): + return True + + return self.to_dict() != other.to_dict() diff --git a/bindings/python/src/cloudsmith_api/models/packages_upload_cran.py b/bindings/python/src/cloudsmith_api/models/packages_upload_cran.py index fda3d8ef..bf9f1dbb 100644 --- a/bindings/python/src/cloudsmith_api/models/packages_upload_cran.py +++ b/bindings/python/src/cloudsmith_api/models/packages_upload_cran.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -11,18 +11,20 @@ """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration class PackagesUploadCran(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -42,64 +44,66 @@ class PackagesUploadCran(object): 'tags': 'tags' } - def __init__(self, package_file=None, republish=None, tags=None): - """ - PackagesUploadCran - a model defined in Swagger - """ + def __init__(self, package_file=None, republish=None, tags=None, _configuration=None): # noqa: E501 + """PackagesUploadCran - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._package_file = None self._republish = None self._tags = None + self.discriminator = None self.package_file = package_file if republish is not None: - self.republish = republish + self.republish = republish if tags is not None: - self.tags = tags + self.tags = tags @property def package_file(self): - """ - Gets the package_file of this PackagesUploadCran. - The primary file for the package. + """Gets the package_file of this PackagesUploadCran. # noqa: E501 - :return: The package_file of this PackagesUploadCran. + The primary file for the package. # noqa: E501 + + :return: The package_file of this PackagesUploadCran. # noqa: E501 :rtype: str """ return self._package_file @package_file.setter def package_file(self, package_file): - """ - Sets the package_file of this PackagesUploadCran. - The primary file for the package. + """Sets the package_file of this PackagesUploadCran. - :param package_file: The package_file of this PackagesUploadCran. + The primary file for the package. # noqa: E501 + + :param package_file: The package_file of this PackagesUploadCran. # noqa: E501 :type: str """ - if package_file is None: - raise ValueError("Invalid value for `package_file`, must not be `None`") + if self._configuration.client_side_validation and package_file is None: + raise ValueError("Invalid value for `package_file`, must not be `None`") # noqa: E501 self._package_file = package_file @property def republish(self): - """ - Gets the republish of this PackagesUploadCran. - If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. + """Gets the republish of this PackagesUploadCran. # noqa: E501 - :return: The republish of this PackagesUploadCran. + If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. # noqa: E501 + + :return: The republish of this PackagesUploadCran. # noqa: E501 :rtype: bool """ return self._republish @republish.setter def republish(self, republish): - """ - Sets the republish of this PackagesUploadCran. - If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. + """Sets the republish of this PackagesUploadCran. - :param republish: The republish of this PackagesUploadCran. + If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. # noqa: E501 + + :param republish: The republish of this PackagesUploadCran. # noqa: E501 :type: bool """ @@ -107,34 +111,32 @@ def republish(self, republish): @property def tags(self): - """ - Gets the tags of this PackagesUploadCran. - A comma-separated values list of tags to add to the package. + """Gets the tags of this PackagesUploadCran. # noqa: E501 - :return: The tags of this PackagesUploadCran. + A comma-separated values list of tags to add to the package. # noqa: E501 + + :return: The tags of this PackagesUploadCran. # noqa: E501 :rtype: str """ return self._tags @tags.setter def tags(self, tags): - """ - Sets the tags of this PackagesUploadCran. - A comma-separated values list of tags to add to the package. + """Sets the tags of this PackagesUploadCran. - :param tags: The tags of this PackagesUploadCran. + A comma-separated values list of tags to add to the package. # noqa: E501 + + :param tags: The tags of this PackagesUploadCran. # noqa: E501 :type: str """ self._tags = tags def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -151,32 +153,30 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(PackagesUploadCran, dict): + for key, value in self.items(): + result[key] = value return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, PackagesUploadCran): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other + """Returns true if both objects are not equal""" + if not isinstance(other, PackagesUploadCran): + return True + + return self.to_dict() != other.to_dict() diff --git a/bindings/python/src/cloudsmith_api/models/packages_upload_dart.py b/bindings/python/src/cloudsmith_api/models/packages_upload_dart.py index 29953fb3..8bb4a6d6 100644 --- a/bindings/python/src/cloudsmith_api/models/packages_upload_dart.py +++ b/bindings/python/src/cloudsmith_api/models/packages_upload_dart.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -11,18 +11,20 @@ """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration class PackagesUploadDart(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -42,64 +44,66 @@ class PackagesUploadDart(object): 'tags': 'tags' } - def __init__(self, package_file=None, republish=None, tags=None): - """ - PackagesUploadDart - a model defined in Swagger - """ + def __init__(self, package_file=None, republish=None, tags=None, _configuration=None): # noqa: E501 + """PackagesUploadDart - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._package_file = None self._republish = None self._tags = None + self.discriminator = None self.package_file = package_file if republish is not None: - self.republish = republish + self.republish = republish if tags is not None: - self.tags = tags + self.tags = tags @property def package_file(self): - """ - Gets the package_file of this PackagesUploadDart. - The primary file for the package. + """Gets the package_file of this PackagesUploadDart. # noqa: E501 - :return: The package_file of this PackagesUploadDart. + The primary file for the package. # noqa: E501 + + :return: The package_file of this PackagesUploadDart. # noqa: E501 :rtype: str """ return self._package_file @package_file.setter def package_file(self, package_file): - """ - Sets the package_file of this PackagesUploadDart. - The primary file for the package. + """Sets the package_file of this PackagesUploadDart. - :param package_file: The package_file of this PackagesUploadDart. + The primary file for the package. # noqa: E501 + + :param package_file: The package_file of this PackagesUploadDart. # noqa: E501 :type: str """ - if package_file is None: - raise ValueError("Invalid value for `package_file`, must not be `None`") + if self._configuration.client_side_validation and package_file is None: + raise ValueError("Invalid value for `package_file`, must not be `None`") # noqa: E501 self._package_file = package_file @property def republish(self): - """ - Gets the republish of this PackagesUploadDart. - If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. + """Gets the republish of this PackagesUploadDart. # noqa: E501 - :return: The republish of this PackagesUploadDart. + If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. # noqa: E501 + + :return: The republish of this PackagesUploadDart. # noqa: E501 :rtype: bool """ return self._republish @republish.setter def republish(self, republish): - """ - Sets the republish of this PackagesUploadDart. - If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. + """Sets the republish of this PackagesUploadDart. - :param republish: The republish of this PackagesUploadDart. + If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. # noqa: E501 + + :param republish: The republish of this PackagesUploadDart. # noqa: E501 :type: bool """ @@ -107,34 +111,32 @@ def republish(self, republish): @property def tags(self): - """ - Gets the tags of this PackagesUploadDart. - A comma-separated values list of tags to add to the package. + """Gets the tags of this PackagesUploadDart. # noqa: E501 - :return: The tags of this PackagesUploadDart. + A comma-separated values list of tags to add to the package. # noqa: E501 + + :return: The tags of this PackagesUploadDart. # noqa: E501 :rtype: str """ return self._tags @tags.setter def tags(self, tags): - """ - Sets the tags of this PackagesUploadDart. - A comma-separated values list of tags to add to the package. + """Sets the tags of this PackagesUploadDart. - :param tags: The tags of this PackagesUploadDart. + A comma-separated values list of tags to add to the package. # noqa: E501 + + :param tags: The tags of this PackagesUploadDart. # noqa: E501 :type: str """ self._tags = tags def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -151,32 +153,30 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(PackagesUploadDart, dict): + for key, value in self.items(): + result[key] = value return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, PackagesUploadDart): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other + """Returns true if both objects are not equal""" + if not isinstance(other, PackagesUploadDart): + return True + + return self.to_dict() != other.to_dict() diff --git a/bindings/python/src/cloudsmith_api/models/packages_upload_deb.py b/bindings/python/src/cloudsmith_api/models/packages_upload_deb.py index e4b191d5..b914f2ae 100644 --- a/bindings/python/src/cloudsmith_api/models/packages_upload_deb.py +++ b/bindings/python/src/cloudsmith_api/models/packages_upload_deb.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -11,18 +11,20 @@ """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration class PackagesUploadDeb(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -48,10 +50,11 @@ class PackagesUploadDeb(object): 'tags': 'tags' } - def __init__(self, changes_file=None, distribution=None, package_file=None, republish=None, sources_file=None, tags=None): - """ - PackagesUploadDeb - a model defined in Swagger - """ + def __init__(self, changes_file=None, distribution=None, package_file=None, republish=None, sources_file=None, tags=None, _configuration=None): # noqa: E501 + """PackagesUploadDeb - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._changes_file = None self._distribution = None @@ -59,36 +62,37 @@ def __init__(self, changes_file=None, distribution=None, package_file=None, repu self._republish = None self._sources_file = None self._tags = None + self.discriminator = None if changes_file is not None: - self.changes_file = changes_file + self.changes_file = changes_file self.distribution = distribution self.package_file = package_file if republish is not None: - self.republish = republish + self.republish = republish if sources_file is not None: - self.sources_file = sources_file + self.sources_file = sources_file if tags is not None: - self.tags = tags + self.tags = tags @property def changes_file(self): - """ - Gets the changes_file of this PackagesUploadDeb. - The changes archive containing the changes made to the source and debian packaging files + """Gets the changes_file of this PackagesUploadDeb. # noqa: E501 + + The changes archive containing the changes made to the source and debian packaging files # noqa: E501 - :return: The changes_file of this PackagesUploadDeb. + :return: The changes_file of this PackagesUploadDeb. # noqa: E501 :rtype: str """ return self._changes_file @changes_file.setter def changes_file(self, changes_file): - """ - Sets the changes_file of this PackagesUploadDeb. - The changes archive containing the changes made to the source and debian packaging files + """Sets the changes_file of this PackagesUploadDeb. + + The changes archive containing the changes made to the source and debian packaging files # noqa: E501 - :param changes_file: The changes_file of this PackagesUploadDeb. + :param changes_file: The changes_file of this PackagesUploadDeb. # noqa: E501 :type: str """ @@ -96,72 +100,72 @@ def changes_file(self, changes_file): @property def distribution(self): - """ - Gets the distribution of this PackagesUploadDeb. - The distribution to store the package for. + """Gets the distribution of this PackagesUploadDeb. # noqa: E501 + + The distribution to store the package for. # noqa: E501 - :return: The distribution of this PackagesUploadDeb. + :return: The distribution of this PackagesUploadDeb. # noqa: E501 :rtype: str """ return self._distribution @distribution.setter def distribution(self, distribution): - """ - Sets the distribution of this PackagesUploadDeb. - The distribution to store the package for. + """Sets the distribution of this PackagesUploadDeb. - :param distribution: The distribution of this PackagesUploadDeb. + The distribution to store the package for. # noqa: E501 + + :param distribution: The distribution of this PackagesUploadDeb. # noqa: E501 :type: str """ - if distribution is None: - raise ValueError("Invalid value for `distribution`, must not be `None`") + if self._configuration.client_side_validation and distribution is None: + raise ValueError("Invalid value for `distribution`, must not be `None`") # noqa: E501 self._distribution = distribution @property def package_file(self): - """ - Gets the package_file of this PackagesUploadDeb. - The primary file for the package. + """Gets the package_file of this PackagesUploadDeb. # noqa: E501 + + The primary file for the package. # noqa: E501 - :return: The package_file of this PackagesUploadDeb. + :return: The package_file of this PackagesUploadDeb. # noqa: E501 :rtype: str """ return self._package_file @package_file.setter def package_file(self, package_file): - """ - Sets the package_file of this PackagesUploadDeb. - The primary file for the package. + """Sets the package_file of this PackagesUploadDeb. + + The primary file for the package. # noqa: E501 - :param package_file: The package_file of this PackagesUploadDeb. + :param package_file: The package_file of this PackagesUploadDeb. # noqa: E501 :type: str """ - if package_file is None: - raise ValueError("Invalid value for `package_file`, must not be `None`") + if self._configuration.client_side_validation and package_file is None: + raise ValueError("Invalid value for `package_file`, must not be `None`") # noqa: E501 self._package_file = package_file @property def republish(self): - """ - Gets the republish of this PackagesUploadDeb. - If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. + """Gets the republish of this PackagesUploadDeb. # noqa: E501 - :return: The republish of this PackagesUploadDeb. + If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. # noqa: E501 + + :return: The republish of this PackagesUploadDeb. # noqa: E501 :rtype: bool """ return self._republish @republish.setter def republish(self, republish): - """ - Sets the republish of this PackagesUploadDeb. - If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. + """Sets the republish of this PackagesUploadDeb. - :param republish: The republish of this PackagesUploadDeb. + If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. # noqa: E501 + + :param republish: The republish of this PackagesUploadDeb. # noqa: E501 :type: bool """ @@ -169,22 +173,22 @@ def republish(self, republish): @property def sources_file(self): - """ - Gets the sources_file of this PackagesUploadDeb. - The sources archive containing the source code for the binary + """Gets the sources_file of this PackagesUploadDeb. # noqa: E501 + + The sources archive containing the source code for the binary # noqa: E501 - :return: The sources_file of this PackagesUploadDeb. + :return: The sources_file of this PackagesUploadDeb. # noqa: E501 :rtype: str """ return self._sources_file @sources_file.setter def sources_file(self, sources_file): - """ - Sets the sources_file of this PackagesUploadDeb. - The sources archive containing the source code for the binary + """Sets the sources_file of this PackagesUploadDeb. + + The sources archive containing the source code for the binary # noqa: E501 - :param sources_file: The sources_file of this PackagesUploadDeb. + :param sources_file: The sources_file of this PackagesUploadDeb. # noqa: E501 :type: str """ @@ -192,34 +196,32 @@ def sources_file(self, sources_file): @property def tags(self): - """ - Gets the tags of this PackagesUploadDeb. - A comma-separated values list of tags to add to the package. + """Gets the tags of this PackagesUploadDeb. # noqa: E501 - :return: The tags of this PackagesUploadDeb. + A comma-separated values list of tags to add to the package. # noqa: E501 + + :return: The tags of this PackagesUploadDeb. # noqa: E501 :rtype: str """ return self._tags @tags.setter def tags(self, tags): - """ - Sets the tags of this PackagesUploadDeb. - A comma-separated values list of tags to add to the package. + """Sets the tags of this PackagesUploadDeb. + + A comma-separated values list of tags to add to the package. # noqa: E501 - :param tags: The tags of this PackagesUploadDeb. + :param tags: The tags of this PackagesUploadDeb. # noqa: E501 :type: str """ self._tags = tags def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -236,32 +238,30 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(PackagesUploadDeb, dict): + for key, value in self.items(): + result[key] = value return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, PackagesUploadDeb): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other + """Returns true if both objects are not equal""" + if not isinstance(other, PackagesUploadDeb): + return True + + return self.to_dict() != other.to_dict() diff --git a/bindings/python/src/cloudsmith_api/models/packages_upload_docker.py b/bindings/python/src/cloudsmith_api/models/packages_upload_docker.py index 2b87721e..9ab5db97 100644 --- a/bindings/python/src/cloudsmith_api/models/packages_upload_docker.py +++ b/bindings/python/src/cloudsmith_api/models/packages_upload_docker.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -11,18 +11,20 @@ """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration class PackagesUploadDocker(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -42,64 +44,66 @@ class PackagesUploadDocker(object): 'tags': 'tags' } - def __init__(self, package_file=None, republish=None, tags=None): - """ - PackagesUploadDocker - a model defined in Swagger - """ + def __init__(self, package_file=None, republish=None, tags=None, _configuration=None): # noqa: E501 + """PackagesUploadDocker - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._package_file = None self._republish = None self._tags = None + self.discriminator = None self.package_file = package_file if republish is not None: - self.republish = republish + self.republish = republish if tags is not None: - self.tags = tags + self.tags = tags @property def package_file(self): - """ - Gets the package_file of this PackagesUploadDocker. - The primary file for the package. + """Gets the package_file of this PackagesUploadDocker. # noqa: E501 - :return: The package_file of this PackagesUploadDocker. + The primary file for the package. # noqa: E501 + + :return: The package_file of this PackagesUploadDocker. # noqa: E501 :rtype: str """ return self._package_file @package_file.setter def package_file(self, package_file): - """ - Sets the package_file of this PackagesUploadDocker. - The primary file for the package. + """Sets the package_file of this PackagesUploadDocker. - :param package_file: The package_file of this PackagesUploadDocker. + The primary file for the package. # noqa: E501 + + :param package_file: The package_file of this PackagesUploadDocker. # noqa: E501 :type: str """ - if package_file is None: - raise ValueError("Invalid value for `package_file`, must not be `None`") + if self._configuration.client_side_validation and package_file is None: + raise ValueError("Invalid value for `package_file`, must not be `None`") # noqa: E501 self._package_file = package_file @property def republish(self): - """ - Gets the republish of this PackagesUploadDocker. - If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. + """Gets the republish of this PackagesUploadDocker. # noqa: E501 - :return: The republish of this PackagesUploadDocker. + If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. # noqa: E501 + + :return: The republish of this PackagesUploadDocker. # noqa: E501 :rtype: bool """ return self._republish @republish.setter def republish(self, republish): - """ - Sets the republish of this PackagesUploadDocker. - If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. + """Sets the republish of this PackagesUploadDocker. - :param republish: The republish of this PackagesUploadDocker. + If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. # noqa: E501 + + :param republish: The republish of this PackagesUploadDocker. # noqa: E501 :type: bool """ @@ -107,34 +111,32 @@ def republish(self, republish): @property def tags(self): - """ - Gets the tags of this PackagesUploadDocker. - A comma-separated values list of tags to add to the package. + """Gets the tags of this PackagesUploadDocker. # noqa: E501 - :return: The tags of this PackagesUploadDocker. + A comma-separated values list of tags to add to the package. # noqa: E501 + + :return: The tags of this PackagesUploadDocker. # noqa: E501 :rtype: str """ return self._tags @tags.setter def tags(self, tags): - """ - Sets the tags of this PackagesUploadDocker. - A comma-separated values list of tags to add to the package. + """Sets the tags of this PackagesUploadDocker. - :param tags: The tags of this PackagesUploadDocker. + A comma-separated values list of tags to add to the package. # noqa: E501 + + :param tags: The tags of this PackagesUploadDocker. # noqa: E501 :type: str """ self._tags = tags def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -151,32 +153,30 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(PackagesUploadDocker, dict): + for key, value in self.items(): + result[key] = value return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, PackagesUploadDocker): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other + """Returns true if both objects are not equal""" + if not isinstance(other, PackagesUploadDocker): + return True + + return self.to_dict() != other.to_dict() diff --git a/bindings/python/src/cloudsmith_api/models/packages_upload_go.py b/bindings/python/src/cloudsmith_api/models/packages_upload_go.py index ffbd12c7..214e81fb 100644 --- a/bindings/python/src/cloudsmith_api/models/packages_upload_go.py +++ b/bindings/python/src/cloudsmith_api/models/packages_upload_go.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -11,18 +11,20 @@ """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration class PackagesUploadGo(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -42,64 +44,66 @@ class PackagesUploadGo(object): 'tags': 'tags' } - def __init__(self, package_file=None, republish=None, tags=None): - """ - PackagesUploadGo - a model defined in Swagger - """ + def __init__(self, package_file=None, republish=None, tags=None, _configuration=None): # noqa: E501 + """PackagesUploadGo - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._package_file = None self._republish = None self._tags = None + self.discriminator = None self.package_file = package_file if republish is not None: - self.republish = republish + self.republish = republish if tags is not None: - self.tags = tags + self.tags = tags @property def package_file(self): - """ - Gets the package_file of this PackagesUploadGo. - The primary file for the package. + """Gets the package_file of this PackagesUploadGo. # noqa: E501 - :return: The package_file of this PackagesUploadGo. + The primary file for the package. # noqa: E501 + + :return: The package_file of this PackagesUploadGo. # noqa: E501 :rtype: str """ return self._package_file @package_file.setter def package_file(self, package_file): - """ - Sets the package_file of this PackagesUploadGo. - The primary file for the package. + """Sets the package_file of this PackagesUploadGo. - :param package_file: The package_file of this PackagesUploadGo. + The primary file for the package. # noqa: E501 + + :param package_file: The package_file of this PackagesUploadGo. # noqa: E501 :type: str """ - if package_file is None: - raise ValueError("Invalid value for `package_file`, must not be `None`") + if self._configuration.client_side_validation and package_file is None: + raise ValueError("Invalid value for `package_file`, must not be `None`") # noqa: E501 self._package_file = package_file @property def republish(self): - """ - Gets the republish of this PackagesUploadGo. - If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. + """Gets the republish of this PackagesUploadGo. # noqa: E501 - :return: The republish of this PackagesUploadGo. + If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. # noqa: E501 + + :return: The republish of this PackagesUploadGo. # noqa: E501 :rtype: bool """ return self._republish @republish.setter def republish(self, republish): - """ - Sets the republish of this PackagesUploadGo. - If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. + """Sets the republish of this PackagesUploadGo. - :param republish: The republish of this PackagesUploadGo. + If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. # noqa: E501 + + :param republish: The republish of this PackagesUploadGo. # noqa: E501 :type: bool """ @@ -107,34 +111,32 @@ def republish(self, republish): @property def tags(self): - """ - Gets the tags of this PackagesUploadGo. - A comma-separated values list of tags to add to the package. + """Gets the tags of this PackagesUploadGo. # noqa: E501 - :return: The tags of this PackagesUploadGo. + A comma-separated values list of tags to add to the package. # noqa: E501 + + :return: The tags of this PackagesUploadGo. # noqa: E501 :rtype: str """ return self._tags @tags.setter def tags(self, tags): - """ - Sets the tags of this PackagesUploadGo. - A comma-separated values list of tags to add to the package. + """Sets the tags of this PackagesUploadGo. - :param tags: The tags of this PackagesUploadGo. + A comma-separated values list of tags to add to the package. # noqa: E501 + + :param tags: The tags of this PackagesUploadGo. # noqa: E501 :type: str """ self._tags = tags def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -151,32 +153,30 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(PackagesUploadGo, dict): + for key, value in self.items(): + result[key] = value return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, PackagesUploadGo): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other + """Returns true if both objects are not equal""" + if not isinstance(other, PackagesUploadGo): + return True + + return self.to_dict() != other.to_dict() diff --git a/bindings/python/src/cloudsmith_api/models/packages_upload_helm.py b/bindings/python/src/cloudsmith_api/models/packages_upload_helm.py index 35c0afe9..8170258f 100644 --- a/bindings/python/src/cloudsmith_api/models/packages_upload_helm.py +++ b/bindings/python/src/cloudsmith_api/models/packages_upload_helm.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -11,18 +11,20 @@ """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration class PackagesUploadHelm(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -42,64 +44,66 @@ class PackagesUploadHelm(object): 'tags': 'tags' } - def __init__(self, package_file=None, republish=None, tags=None): - """ - PackagesUploadHelm - a model defined in Swagger - """ + def __init__(self, package_file=None, republish=None, tags=None, _configuration=None): # noqa: E501 + """PackagesUploadHelm - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._package_file = None self._republish = None self._tags = None + self.discriminator = None self.package_file = package_file if republish is not None: - self.republish = republish + self.republish = republish if tags is not None: - self.tags = tags + self.tags = tags @property def package_file(self): - """ - Gets the package_file of this PackagesUploadHelm. - The primary file for the package. + """Gets the package_file of this PackagesUploadHelm. # noqa: E501 - :return: The package_file of this PackagesUploadHelm. + The primary file for the package. # noqa: E501 + + :return: The package_file of this PackagesUploadHelm. # noqa: E501 :rtype: str """ return self._package_file @package_file.setter def package_file(self, package_file): - """ - Sets the package_file of this PackagesUploadHelm. - The primary file for the package. + """Sets the package_file of this PackagesUploadHelm. - :param package_file: The package_file of this PackagesUploadHelm. + The primary file for the package. # noqa: E501 + + :param package_file: The package_file of this PackagesUploadHelm. # noqa: E501 :type: str """ - if package_file is None: - raise ValueError("Invalid value for `package_file`, must not be `None`") + if self._configuration.client_side_validation and package_file is None: + raise ValueError("Invalid value for `package_file`, must not be `None`") # noqa: E501 self._package_file = package_file @property def republish(self): - """ - Gets the republish of this PackagesUploadHelm. - If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. + """Gets the republish of this PackagesUploadHelm. # noqa: E501 - :return: The republish of this PackagesUploadHelm. + If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. # noqa: E501 + + :return: The republish of this PackagesUploadHelm. # noqa: E501 :rtype: bool """ return self._republish @republish.setter def republish(self, republish): - """ - Sets the republish of this PackagesUploadHelm. - If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. + """Sets the republish of this PackagesUploadHelm. - :param republish: The republish of this PackagesUploadHelm. + If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. # noqa: E501 + + :param republish: The republish of this PackagesUploadHelm. # noqa: E501 :type: bool """ @@ -107,34 +111,32 @@ def republish(self, republish): @property def tags(self): - """ - Gets the tags of this PackagesUploadHelm. - A comma-separated values list of tags to add to the package. + """Gets the tags of this PackagesUploadHelm. # noqa: E501 - :return: The tags of this PackagesUploadHelm. + A comma-separated values list of tags to add to the package. # noqa: E501 + + :return: The tags of this PackagesUploadHelm. # noqa: E501 :rtype: str """ return self._tags @tags.setter def tags(self, tags): - """ - Sets the tags of this PackagesUploadHelm. - A comma-separated values list of tags to add to the package. + """Sets the tags of this PackagesUploadHelm. - :param tags: The tags of this PackagesUploadHelm. + A comma-separated values list of tags to add to the package. # noqa: E501 + + :param tags: The tags of this PackagesUploadHelm. # noqa: E501 :type: str """ self._tags = tags def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -151,32 +153,30 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(PackagesUploadHelm, dict): + for key, value in self.items(): + result[key] = value return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, PackagesUploadHelm): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other + """Returns true if both objects are not equal""" + if not isinstance(other, PackagesUploadHelm): + return True + + return self.to_dict() != other.to_dict() diff --git a/bindings/python/src/cloudsmith_api/models/packages_upload_luarocks.py b/bindings/python/src/cloudsmith_api/models/packages_upload_luarocks.py index 4a4a8ccb..e0e958b7 100644 --- a/bindings/python/src/cloudsmith_api/models/packages_upload_luarocks.py +++ b/bindings/python/src/cloudsmith_api/models/packages_upload_luarocks.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -11,18 +11,20 @@ """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration class PackagesUploadLuarocks(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -42,64 +44,66 @@ class PackagesUploadLuarocks(object): 'tags': 'tags' } - def __init__(self, package_file=None, republish=None, tags=None): - """ - PackagesUploadLuarocks - a model defined in Swagger - """ + def __init__(self, package_file=None, republish=None, tags=None, _configuration=None): # noqa: E501 + """PackagesUploadLuarocks - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._package_file = None self._republish = None self._tags = None + self.discriminator = None self.package_file = package_file if republish is not None: - self.republish = republish + self.republish = republish if tags is not None: - self.tags = tags + self.tags = tags @property def package_file(self): - """ - Gets the package_file of this PackagesUploadLuarocks. - The primary file for the package. + """Gets the package_file of this PackagesUploadLuarocks. # noqa: E501 - :return: The package_file of this PackagesUploadLuarocks. + The primary file for the package. # noqa: E501 + + :return: The package_file of this PackagesUploadLuarocks. # noqa: E501 :rtype: str """ return self._package_file @package_file.setter def package_file(self, package_file): - """ - Sets the package_file of this PackagesUploadLuarocks. - The primary file for the package. + """Sets the package_file of this PackagesUploadLuarocks. - :param package_file: The package_file of this PackagesUploadLuarocks. + The primary file for the package. # noqa: E501 + + :param package_file: The package_file of this PackagesUploadLuarocks. # noqa: E501 :type: str """ - if package_file is None: - raise ValueError("Invalid value for `package_file`, must not be `None`") + if self._configuration.client_side_validation and package_file is None: + raise ValueError("Invalid value for `package_file`, must not be `None`") # noqa: E501 self._package_file = package_file @property def republish(self): - """ - Gets the republish of this PackagesUploadLuarocks. - If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. + """Gets the republish of this PackagesUploadLuarocks. # noqa: E501 - :return: The republish of this PackagesUploadLuarocks. + If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. # noqa: E501 + + :return: The republish of this PackagesUploadLuarocks. # noqa: E501 :rtype: bool """ return self._republish @republish.setter def republish(self, republish): - """ - Sets the republish of this PackagesUploadLuarocks. - If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. + """Sets the republish of this PackagesUploadLuarocks. - :param republish: The republish of this PackagesUploadLuarocks. + If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. # noqa: E501 + + :param republish: The republish of this PackagesUploadLuarocks. # noqa: E501 :type: bool """ @@ -107,34 +111,32 @@ def republish(self, republish): @property def tags(self): - """ - Gets the tags of this PackagesUploadLuarocks. - A comma-separated values list of tags to add to the package. + """Gets the tags of this PackagesUploadLuarocks. # noqa: E501 - :return: The tags of this PackagesUploadLuarocks. + A comma-separated values list of tags to add to the package. # noqa: E501 + + :return: The tags of this PackagesUploadLuarocks. # noqa: E501 :rtype: str """ return self._tags @tags.setter def tags(self, tags): - """ - Sets the tags of this PackagesUploadLuarocks. - A comma-separated values list of tags to add to the package. + """Sets the tags of this PackagesUploadLuarocks. - :param tags: The tags of this PackagesUploadLuarocks. + A comma-separated values list of tags to add to the package. # noqa: E501 + + :param tags: The tags of this PackagesUploadLuarocks. # noqa: E501 :type: str """ self._tags = tags def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -151,32 +153,30 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(PackagesUploadLuarocks, dict): + for key, value in self.items(): + result[key] = value return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, PackagesUploadLuarocks): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other + """Returns true if both objects are not equal""" + if not isinstance(other, PackagesUploadLuarocks): + return True + + return self.to_dict() != other.to_dict() diff --git a/bindings/python/src/cloudsmith_api/models/packages_upload_maven.py b/bindings/python/src/cloudsmith_api/models/packages_upload_maven.py index 5efd8a80..34540854 100644 --- a/bindings/python/src/cloudsmith_api/models/packages_upload_maven.py +++ b/bindings/python/src/cloudsmith_api/models/packages_upload_maven.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -11,18 +11,20 @@ """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration class PackagesUploadMaven(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -58,10 +60,11 @@ class PackagesUploadMaven(object): 'version': 'version' } - def __init__(self, artifact_id=None, group_id=None, javadoc_file=None, package_file=None, packaging=None, pom_file=None, republish=None, sources_file=None, tags=None, tests_file=None, version=None): - """ - PackagesUploadMaven - a model defined in Swagger - """ + def __init__(self, artifact_id=None, group_id=None, javadoc_file=None, package_file=None, packaging=None, pom_file=None, republish=None, sources_file=None, tags=None, tests_file=None, version=None, _configuration=None): # noqa: E501 + """PackagesUploadMaven - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._artifact_id = None self._group_id = None @@ -74,47 +77,48 @@ def __init__(self, artifact_id=None, group_id=None, javadoc_file=None, package_f self._tags = None self._tests_file = None self._version = None + self.discriminator = None if artifact_id is not None: - self.artifact_id = artifact_id + self.artifact_id = artifact_id if group_id is not None: - self.group_id = group_id + self.group_id = group_id if javadoc_file is not None: - self.javadoc_file = javadoc_file + self.javadoc_file = javadoc_file self.package_file = package_file if packaging is not None: - self.packaging = packaging + self.packaging = packaging if pom_file is not None: - self.pom_file = pom_file + self.pom_file = pom_file if republish is not None: - self.republish = republish + self.republish = republish if sources_file is not None: - self.sources_file = sources_file + self.sources_file = sources_file if tags is not None: - self.tags = tags + self.tags = tags if tests_file is not None: - self.tests_file = tests_file + self.tests_file = tests_file if version is not None: - self.version = version + self.version = version @property def artifact_id(self): - """ - Gets the artifact_id of this PackagesUploadMaven. - The ID of the artifact. + """Gets the artifact_id of this PackagesUploadMaven. # noqa: E501 - :return: The artifact_id of this PackagesUploadMaven. + The ID of the artifact. # noqa: E501 + + :return: The artifact_id of this PackagesUploadMaven. # noqa: E501 :rtype: str """ return self._artifact_id @artifact_id.setter def artifact_id(self, artifact_id): - """ - Sets the artifact_id of this PackagesUploadMaven. - The ID of the artifact. + """Sets the artifact_id of this PackagesUploadMaven. - :param artifact_id: The artifact_id of this PackagesUploadMaven. + The ID of the artifact. # noqa: E501 + + :param artifact_id: The artifact_id of this PackagesUploadMaven. # noqa: E501 :type: str """ @@ -122,22 +126,22 @@ def artifact_id(self, artifact_id): @property def group_id(self): - """ - Gets the group_id of this PackagesUploadMaven. - Artifact's group ID. + """Gets the group_id of this PackagesUploadMaven. # noqa: E501 - :return: The group_id of this PackagesUploadMaven. + Artifact's group ID. # noqa: E501 + + :return: The group_id of this PackagesUploadMaven. # noqa: E501 :rtype: str """ return self._group_id @group_id.setter def group_id(self, group_id): - """ - Sets the group_id of this PackagesUploadMaven. - Artifact's group ID. + """Sets the group_id of this PackagesUploadMaven. - :param group_id: The group_id of this PackagesUploadMaven. + Artifact's group ID. # noqa: E501 + + :param group_id: The group_id of this PackagesUploadMaven. # noqa: E501 :type: str """ @@ -145,22 +149,22 @@ def group_id(self, group_id): @property def javadoc_file(self): - """ - Gets the javadoc_file of this PackagesUploadMaven. - Adds bundled Java documentation to the Maven package + """Gets the javadoc_file of this PackagesUploadMaven. # noqa: E501 - :return: The javadoc_file of this PackagesUploadMaven. + Adds bundled Java documentation to the Maven package # noqa: E501 + + :return: The javadoc_file of this PackagesUploadMaven. # noqa: E501 :rtype: str """ return self._javadoc_file @javadoc_file.setter def javadoc_file(self, javadoc_file): - """ - Sets the javadoc_file of this PackagesUploadMaven. - Adds bundled Java documentation to the Maven package + """Sets the javadoc_file of this PackagesUploadMaven. - :param javadoc_file: The javadoc_file of this PackagesUploadMaven. + Adds bundled Java documentation to the Maven package # noqa: E501 + + :param javadoc_file: The javadoc_file of this PackagesUploadMaven. # noqa: E501 :type: str """ @@ -168,47 +172,47 @@ def javadoc_file(self, javadoc_file): @property def package_file(self): - """ - Gets the package_file of this PackagesUploadMaven. - The primary file for the package. + """Gets the package_file of this PackagesUploadMaven. # noqa: E501 - :return: The package_file of this PackagesUploadMaven. + The primary file for the package. # noqa: E501 + + :return: The package_file of this PackagesUploadMaven. # noqa: E501 :rtype: str """ return self._package_file @package_file.setter def package_file(self, package_file): - """ - Sets the package_file of this PackagesUploadMaven. - The primary file for the package. + """Sets the package_file of this PackagesUploadMaven. - :param package_file: The package_file of this PackagesUploadMaven. + The primary file for the package. # noqa: E501 + + :param package_file: The package_file of this PackagesUploadMaven. # noqa: E501 :type: str """ - if package_file is None: - raise ValueError("Invalid value for `package_file`, must not be `None`") + if self._configuration.client_side_validation and package_file is None: + raise ValueError("Invalid value for `package_file`, must not be `None`") # noqa: E501 self._package_file = package_file @property def packaging(self): - """ - Gets the packaging of this PackagesUploadMaven. - Artifact's Maven packaging type. + """Gets the packaging of this PackagesUploadMaven. # noqa: E501 - :return: The packaging of this PackagesUploadMaven. + Artifact's Maven packaging type. # noqa: E501 + + :return: The packaging of this PackagesUploadMaven. # noqa: E501 :rtype: str """ return self._packaging @packaging.setter def packaging(self, packaging): - """ - Sets the packaging of this PackagesUploadMaven. - Artifact's Maven packaging type. + """Sets the packaging of this PackagesUploadMaven. - :param packaging: The packaging of this PackagesUploadMaven. + Artifact's Maven packaging type. # noqa: E501 + + :param packaging: The packaging of this PackagesUploadMaven. # noqa: E501 :type: str """ @@ -216,22 +220,22 @@ def packaging(self, packaging): @property def pom_file(self): - """ - Gets the pom_file of this PackagesUploadMaven. - The POM file is an XML file containing the Maven coordinates. + """Gets the pom_file of this PackagesUploadMaven. # noqa: E501 - :return: The pom_file of this PackagesUploadMaven. + The POM file is an XML file containing the Maven coordinates. # noqa: E501 + + :return: The pom_file of this PackagesUploadMaven. # noqa: E501 :rtype: str """ return self._pom_file @pom_file.setter def pom_file(self, pom_file): - """ - Sets the pom_file of this PackagesUploadMaven. - The POM file is an XML file containing the Maven coordinates. + """Sets the pom_file of this PackagesUploadMaven. - :param pom_file: The pom_file of this PackagesUploadMaven. + The POM file is an XML file containing the Maven coordinates. # noqa: E501 + + :param pom_file: The pom_file of this PackagesUploadMaven. # noqa: E501 :type: str """ @@ -239,22 +243,22 @@ def pom_file(self, pom_file): @property def republish(self): - """ - Gets the republish of this PackagesUploadMaven. - If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. + """Gets the republish of this PackagesUploadMaven. # noqa: E501 - :return: The republish of this PackagesUploadMaven. + If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. # noqa: E501 + + :return: The republish of this PackagesUploadMaven. # noqa: E501 :rtype: bool """ return self._republish @republish.setter def republish(self, republish): - """ - Sets the republish of this PackagesUploadMaven. - If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. + """Sets the republish of this PackagesUploadMaven. - :param republish: The republish of this PackagesUploadMaven. + If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. # noqa: E501 + + :param republish: The republish of this PackagesUploadMaven. # noqa: E501 :type: bool """ @@ -262,22 +266,22 @@ def republish(self, republish): @property def sources_file(self): - """ - Gets the sources_file of this PackagesUploadMaven. - Adds bundled Java source code to the Maven package. + """Gets the sources_file of this PackagesUploadMaven. # noqa: E501 - :return: The sources_file of this PackagesUploadMaven. + Adds bundled Java source code to the Maven package. # noqa: E501 + + :return: The sources_file of this PackagesUploadMaven. # noqa: E501 :rtype: str """ return self._sources_file @sources_file.setter def sources_file(self, sources_file): - """ - Sets the sources_file of this PackagesUploadMaven. - Adds bundled Java source code to the Maven package. + """Sets the sources_file of this PackagesUploadMaven. - :param sources_file: The sources_file of this PackagesUploadMaven. + Adds bundled Java source code to the Maven package. # noqa: E501 + + :param sources_file: The sources_file of this PackagesUploadMaven. # noqa: E501 :type: str """ @@ -285,22 +289,22 @@ def sources_file(self, sources_file): @property def tags(self): - """ - Gets the tags of this PackagesUploadMaven. - A comma-separated values list of tags to add to the package. + """Gets the tags of this PackagesUploadMaven. # noqa: E501 - :return: The tags of this PackagesUploadMaven. + A comma-separated values list of tags to add to the package. # noqa: E501 + + :return: The tags of this PackagesUploadMaven. # noqa: E501 :rtype: str """ return self._tags @tags.setter def tags(self, tags): - """ - Sets the tags of this PackagesUploadMaven. - A comma-separated values list of tags to add to the package. + """Sets the tags of this PackagesUploadMaven. - :param tags: The tags of this PackagesUploadMaven. + A comma-separated values list of tags to add to the package. # noqa: E501 + + :param tags: The tags of this PackagesUploadMaven. # noqa: E501 :type: str """ @@ -308,22 +312,22 @@ def tags(self, tags): @property def tests_file(self): - """ - Gets the tests_file of this PackagesUploadMaven. - Adds bundled Java tests to the Maven package. + """Gets the tests_file of this PackagesUploadMaven. # noqa: E501 - :return: The tests_file of this PackagesUploadMaven. + Adds bundled Java tests to the Maven package. # noqa: E501 + + :return: The tests_file of this PackagesUploadMaven. # noqa: E501 :rtype: str """ return self._tests_file @tests_file.setter def tests_file(self, tests_file): - """ - Sets the tests_file of this PackagesUploadMaven. - Adds bundled Java tests to the Maven package. + """Sets the tests_file of this PackagesUploadMaven. - :param tests_file: The tests_file of this PackagesUploadMaven. + Adds bundled Java tests to the Maven package. # noqa: E501 + + :param tests_file: The tests_file of this PackagesUploadMaven. # noqa: E501 :type: str """ @@ -331,34 +335,32 @@ def tests_file(self, tests_file): @property def version(self): - """ - Gets the version of this PackagesUploadMaven. - The raw version for this package. + """Gets the version of this PackagesUploadMaven. # noqa: E501 - :return: The version of this PackagesUploadMaven. + The raw version for this package. # noqa: E501 + + :return: The version of this PackagesUploadMaven. # noqa: E501 :rtype: str """ return self._version @version.setter def version(self, version): - """ - Sets the version of this PackagesUploadMaven. - The raw version for this package. + """Sets the version of this PackagesUploadMaven. - :param version: The version of this PackagesUploadMaven. + The raw version for this package. # noqa: E501 + + :param version: The version of this PackagesUploadMaven. # noqa: E501 :type: str """ self._version = version def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -375,32 +377,30 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(PackagesUploadMaven, dict): + for key, value in self.items(): + result[key] = value return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, PackagesUploadMaven): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other + """Returns true if both objects are not equal""" + if not isinstance(other, PackagesUploadMaven): + return True + + return self.to_dict() != other.to_dict() diff --git a/bindings/python/src/cloudsmith_api/models/packages_upload_npm.py b/bindings/python/src/cloudsmith_api/models/packages_upload_npm.py index 3568c9d7..34176d07 100644 --- a/bindings/python/src/cloudsmith_api/models/packages_upload_npm.py +++ b/bindings/python/src/cloudsmith_api/models/packages_upload_npm.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -11,18 +11,20 @@ """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration class PackagesUploadNpm(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -44,42 +46,44 @@ class PackagesUploadNpm(object): 'tags': 'tags' } - def __init__(self, npm_dist_tag=None, package_file=None, republish=None, tags=None): - """ - PackagesUploadNpm - a model defined in Swagger - """ + def __init__(self, npm_dist_tag=None, package_file=None, republish=None, tags=None, _configuration=None): # noqa: E501 + """PackagesUploadNpm - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._npm_dist_tag = None self._package_file = None self._republish = None self._tags = None + self.discriminator = None if npm_dist_tag is not None: - self.npm_dist_tag = npm_dist_tag + self.npm_dist_tag = npm_dist_tag self.package_file = package_file if republish is not None: - self.republish = republish + self.republish = republish if tags is not None: - self.tags = tags + self.tags = tags @property def npm_dist_tag(self): - """ - Gets the npm_dist_tag of this PackagesUploadNpm. - The default npm dist-tag for this package/version - This will replace any other package/version if they are using the same tag. + """Gets the npm_dist_tag of this PackagesUploadNpm. # noqa: E501 + + The default npm dist-tag for this package/version - This will replace any other package/version if they are using the same tag. # noqa: E501 - :return: The npm_dist_tag of this PackagesUploadNpm. + :return: The npm_dist_tag of this PackagesUploadNpm. # noqa: E501 :rtype: str """ return self._npm_dist_tag @npm_dist_tag.setter def npm_dist_tag(self, npm_dist_tag): - """ - Sets the npm_dist_tag of this PackagesUploadNpm. - The default npm dist-tag for this package/version - This will replace any other package/version if they are using the same tag. + """Sets the npm_dist_tag of this PackagesUploadNpm. + + The default npm dist-tag for this package/version - This will replace any other package/version if they are using the same tag. # noqa: E501 - :param npm_dist_tag: The npm_dist_tag of this PackagesUploadNpm. + :param npm_dist_tag: The npm_dist_tag of this PackagesUploadNpm. # noqa: E501 :type: str """ @@ -87,47 +91,47 @@ def npm_dist_tag(self, npm_dist_tag): @property def package_file(self): - """ - Gets the package_file of this PackagesUploadNpm. - The primary file for the package. + """Gets the package_file of this PackagesUploadNpm. # noqa: E501 - :return: The package_file of this PackagesUploadNpm. + The primary file for the package. # noqa: E501 + + :return: The package_file of this PackagesUploadNpm. # noqa: E501 :rtype: str """ return self._package_file @package_file.setter def package_file(self, package_file): - """ - Sets the package_file of this PackagesUploadNpm. - The primary file for the package. + """Sets the package_file of this PackagesUploadNpm. - :param package_file: The package_file of this PackagesUploadNpm. + The primary file for the package. # noqa: E501 + + :param package_file: The package_file of this PackagesUploadNpm. # noqa: E501 :type: str """ - if package_file is None: - raise ValueError("Invalid value for `package_file`, must not be `None`") + if self._configuration.client_side_validation and package_file is None: + raise ValueError("Invalid value for `package_file`, must not be `None`") # noqa: E501 self._package_file = package_file @property def republish(self): - """ - Gets the republish of this PackagesUploadNpm. - If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. + """Gets the republish of this PackagesUploadNpm. # noqa: E501 - :return: The republish of this PackagesUploadNpm. + If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. # noqa: E501 + + :return: The republish of this PackagesUploadNpm. # noqa: E501 :rtype: bool """ return self._republish @republish.setter def republish(self, republish): - """ - Sets the republish of this PackagesUploadNpm. - If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. + """Sets the republish of this PackagesUploadNpm. - :param republish: The republish of this PackagesUploadNpm. + If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. # noqa: E501 + + :param republish: The republish of this PackagesUploadNpm. # noqa: E501 :type: bool """ @@ -135,34 +139,32 @@ def republish(self, republish): @property def tags(self): - """ - Gets the tags of this PackagesUploadNpm. - A comma-separated values list of tags to add to the package. + """Gets the tags of this PackagesUploadNpm. # noqa: E501 + + A comma-separated values list of tags to add to the package. # noqa: E501 - :return: The tags of this PackagesUploadNpm. + :return: The tags of this PackagesUploadNpm. # noqa: E501 :rtype: str """ return self._tags @tags.setter def tags(self, tags): - """ - Sets the tags of this PackagesUploadNpm. - A comma-separated values list of tags to add to the package. + """Sets the tags of this PackagesUploadNpm. + + A comma-separated values list of tags to add to the package. # noqa: E501 - :param tags: The tags of this PackagesUploadNpm. + :param tags: The tags of this PackagesUploadNpm. # noqa: E501 :type: str """ self._tags = tags def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -179,32 +181,30 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(PackagesUploadNpm, dict): + for key, value in self.items(): + result[key] = value return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, PackagesUploadNpm): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other + """Returns true if both objects are not equal""" + if not isinstance(other, PackagesUploadNpm): + return True + + return self.to_dict() != other.to_dict() diff --git a/bindings/python/src/cloudsmith_api/models/packages_upload_nuget.py b/bindings/python/src/cloudsmith_api/models/packages_upload_nuget.py index 5f01925f..80810b41 100644 --- a/bindings/python/src/cloudsmith_api/models/packages_upload_nuget.py +++ b/bindings/python/src/cloudsmith_api/models/packages_upload_nuget.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -11,18 +11,20 @@ """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration class PackagesUploadNuget(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -44,67 +46,69 @@ class PackagesUploadNuget(object): 'tags': 'tags' } - def __init__(self, package_file=None, republish=None, symbols_file=None, tags=None): - """ - PackagesUploadNuget - a model defined in Swagger - """ + def __init__(self, package_file=None, republish=None, symbols_file=None, tags=None, _configuration=None): # noqa: E501 + """PackagesUploadNuget - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._package_file = None self._republish = None self._symbols_file = None self._tags = None + self.discriminator = None self.package_file = package_file if republish is not None: - self.republish = republish + self.republish = republish if symbols_file is not None: - self.symbols_file = symbols_file + self.symbols_file = symbols_file if tags is not None: - self.tags = tags + self.tags = tags @property def package_file(self): - """ - Gets the package_file of this PackagesUploadNuget. - The primary file for the package. + """Gets the package_file of this PackagesUploadNuget. # noqa: E501 + + The primary file for the package. # noqa: E501 - :return: The package_file of this PackagesUploadNuget. + :return: The package_file of this PackagesUploadNuget. # noqa: E501 :rtype: str """ return self._package_file @package_file.setter def package_file(self, package_file): - """ - Sets the package_file of this PackagesUploadNuget. - The primary file for the package. + """Sets the package_file of this PackagesUploadNuget. + + The primary file for the package. # noqa: E501 - :param package_file: The package_file of this PackagesUploadNuget. + :param package_file: The package_file of this PackagesUploadNuget. # noqa: E501 :type: str """ - if package_file is None: - raise ValueError("Invalid value for `package_file`, must not be `None`") + if self._configuration.client_side_validation and package_file is None: + raise ValueError("Invalid value for `package_file`, must not be `None`") # noqa: E501 self._package_file = package_file @property def republish(self): - """ - Gets the republish of this PackagesUploadNuget. - If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. + """Gets the republish of this PackagesUploadNuget. # noqa: E501 - :return: The republish of this PackagesUploadNuget. + If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. # noqa: E501 + + :return: The republish of this PackagesUploadNuget. # noqa: E501 :rtype: bool """ return self._republish @republish.setter def republish(self, republish): - """ - Sets the republish of this PackagesUploadNuget. - If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. + """Sets the republish of this PackagesUploadNuget. - :param republish: The republish of this PackagesUploadNuget. + If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. # noqa: E501 + + :param republish: The republish of this PackagesUploadNuget. # noqa: E501 :type: bool """ @@ -112,22 +116,22 @@ def republish(self, republish): @property def symbols_file(self): - """ - Gets the symbols_file of this PackagesUploadNuget. - Attaches a symbols file to the package. + """Gets the symbols_file of this PackagesUploadNuget. # noqa: E501 - :return: The symbols_file of this PackagesUploadNuget. + Attaches a symbols file to the package. # noqa: E501 + + :return: The symbols_file of this PackagesUploadNuget. # noqa: E501 :rtype: str """ return self._symbols_file @symbols_file.setter def symbols_file(self, symbols_file): - """ - Sets the symbols_file of this PackagesUploadNuget. - Attaches a symbols file to the package. + """Sets the symbols_file of this PackagesUploadNuget. - :param symbols_file: The symbols_file of this PackagesUploadNuget. + Attaches a symbols file to the package. # noqa: E501 + + :param symbols_file: The symbols_file of this PackagesUploadNuget. # noqa: E501 :type: str """ @@ -135,34 +139,32 @@ def symbols_file(self, symbols_file): @property def tags(self): - """ - Gets the tags of this PackagesUploadNuget. - A comma-separated values list of tags to add to the package. + """Gets the tags of this PackagesUploadNuget. # noqa: E501 + + A comma-separated values list of tags to add to the package. # noqa: E501 - :return: The tags of this PackagesUploadNuget. + :return: The tags of this PackagesUploadNuget. # noqa: E501 :rtype: str """ return self._tags @tags.setter def tags(self, tags): - """ - Sets the tags of this PackagesUploadNuget. - A comma-separated values list of tags to add to the package. + """Sets the tags of this PackagesUploadNuget. + + A comma-separated values list of tags to add to the package. # noqa: E501 - :param tags: The tags of this PackagesUploadNuget. + :param tags: The tags of this PackagesUploadNuget. # noqa: E501 :type: str """ self._tags = tags def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -179,32 +181,30 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(PackagesUploadNuget, dict): + for key, value in self.items(): + result[key] = value return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, PackagesUploadNuget): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other + """Returns true if both objects are not equal""" + if not isinstance(other, PackagesUploadNuget): + return True + + return self.to_dict() != other.to_dict() diff --git a/bindings/python/src/cloudsmith_api/models/packages_upload_p2.py b/bindings/python/src/cloudsmith_api/models/packages_upload_p2.py index ada96abe..e46a3a78 100644 --- a/bindings/python/src/cloudsmith_api/models/packages_upload_p2.py +++ b/bindings/python/src/cloudsmith_api/models/packages_upload_p2.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -11,18 +11,20 @@ """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration class PackagesUploadP2(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -42,64 +44,66 @@ class PackagesUploadP2(object): 'tags': 'tags' } - def __init__(self, package_file=None, republish=None, tags=None): - """ - PackagesUploadP2 - a model defined in Swagger - """ + def __init__(self, package_file=None, republish=None, tags=None, _configuration=None): # noqa: E501 + """PackagesUploadP2 - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._package_file = None self._republish = None self._tags = None + self.discriminator = None self.package_file = package_file if republish is not None: - self.republish = republish + self.republish = republish if tags is not None: - self.tags = tags + self.tags = tags @property def package_file(self): - """ - Gets the package_file of this PackagesUploadP2. - The primary file for the package. + """Gets the package_file of this PackagesUploadP2. # noqa: E501 - :return: The package_file of this PackagesUploadP2. + The primary file for the package. # noqa: E501 + + :return: The package_file of this PackagesUploadP2. # noqa: E501 :rtype: str """ return self._package_file @package_file.setter def package_file(self, package_file): - """ - Sets the package_file of this PackagesUploadP2. - The primary file for the package. + """Sets the package_file of this PackagesUploadP2. - :param package_file: The package_file of this PackagesUploadP2. + The primary file for the package. # noqa: E501 + + :param package_file: The package_file of this PackagesUploadP2. # noqa: E501 :type: str """ - if package_file is None: - raise ValueError("Invalid value for `package_file`, must not be `None`") + if self._configuration.client_side_validation and package_file is None: + raise ValueError("Invalid value for `package_file`, must not be `None`") # noqa: E501 self._package_file = package_file @property def republish(self): - """ - Gets the republish of this PackagesUploadP2. - If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. + """Gets the republish of this PackagesUploadP2. # noqa: E501 - :return: The republish of this PackagesUploadP2. + If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. # noqa: E501 + + :return: The republish of this PackagesUploadP2. # noqa: E501 :rtype: bool """ return self._republish @republish.setter def republish(self, republish): - """ - Sets the republish of this PackagesUploadP2. - If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. + """Sets the republish of this PackagesUploadP2. - :param republish: The republish of this PackagesUploadP2. + If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. # noqa: E501 + + :param republish: The republish of this PackagesUploadP2. # noqa: E501 :type: bool """ @@ -107,34 +111,32 @@ def republish(self, republish): @property def tags(self): - """ - Gets the tags of this PackagesUploadP2. - A comma-separated values list of tags to add to the package. + """Gets the tags of this PackagesUploadP2. # noqa: E501 - :return: The tags of this PackagesUploadP2. + A comma-separated values list of tags to add to the package. # noqa: E501 + + :return: The tags of this PackagesUploadP2. # noqa: E501 :rtype: str """ return self._tags @tags.setter def tags(self, tags): - """ - Sets the tags of this PackagesUploadP2. - A comma-separated values list of tags to add to the package. + """Sets the tags of this PackagesUploadP2. - :param tags: The tags of this PackagesUploadP2. + A comma-separated values list of tags to add to the package. # noqa: E501 + + :param tags: The tags of this PackagesUploadP2. # noqa: E501 :type: str """ self._tags = tags def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -151,32 +153,30 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(PackagesUploadP2, dict): + for key, value in self.items(): + result[key] = value return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, PackagesUploadP2): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other + """Returns true if both objects are not equal""" + if not isinstance(other, PackagesUploadP2): + return True + + return self.to_dict() != other.to_dict() diff --git a/bindings/python/src/cloudsmith_api/models/packages_upload_python.py b/bindings/python/src/cloudsmith_api/models/packages_upload_python.py index 9c444fd1..4b3a7d3f 100644 --- a/bindings/python/src/cloudsmith_api/models/packages_upload_python.py +++ b/bindings/python/src/cloudsmith_api/models/packages_upload_python.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -11,18 +11,20 @@ """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration class PackagesUploadPython(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -42,64 +44,66 @@ class PackagesUploadPython(object): 'tags': 'tags' } - def __init__(self, package_file=None, republish=None, tags=None): - """ - PackagesUploadPython - a model defined in Swagger - """ + def __init__(self, package_file=None, republish=None, tags=None, _configuration=None): # noqa: E501 + """PackagesUploadPython - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._package_file = None self._republish = None self._tags = None + self.discriminator = None self.package_file = package_file if republish is not None: - self.republish = republish + self.republish = republish if tags is not None: - self.tags = tags + self.tags = tags @property def package_file(self): - """ - Gets the package_file of this PackagesUploadPython. - The primary file for the package. + """Gets the package_file of this PackagesUploadPython. # noqa: E501 - :return: The package_file of this PackagesUploadPython. + The primary file for the package. # noqa: E501 + + :return: The package_file of this PackagesUploadPython. # noqa: E501 :rtype: str """ return self._package_file @package_file.setter def package_file(self, package_file): - """ - Sets the package_file of this PackagesUploadPython. - The primary file for the package. + """Sets the package_file of this PackagesUploadPython. - :param package_file: The package_file of this PackagesUploadPython. + The primary file for the package. # noqa: E501 + + :param package_file: The package_file of this PackagesUploadPython. # noqa: E501 :type: str """ - if package_file is None: - raise ValueError("Invalid value for `package_file`, must not be `None`") + if self._configuration.client_side_validation and package_file is None: + raise ValueError("Invalid value for `package_file`, must not be `None`") # noqa: E501 self._package_file = package_file @property def republish(self): - """ - Gets the republish of this PackagesUploadPython. - If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. + """Gets the republish of this PackagesUploadPython. # noqa: E501 - :return: The republish of this PackagesUploadPython. + If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. # noqa: E501 + + :return: The republish of this PackagesUploadPython. # noqa: E501 :rtype: bool """ return self._republish @republish.setter def republish(self, republish): - """ - Sets the republish of this PackagesUploadPython. - If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. + """Sets the republish of this PackagesUploadPython. - :param republish: The republish of this PackagesUploadPython. + If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. # noqa: E501 + + :param republish: The republish of this PackagesUploadPython. # noqa: E501 :type: bool """ @@ -107,34 +111,32 @@ def republish(self, republish): @property def tags(self): - """ - Gets the tags of this PackagesUploadPython. - A comma-separated values list of tags to add to the package. + """Gets the tags of this PackagesUploadPython. # noqa: E501 - :return: The tags of this PackagesUploadPython. + A comma-separated values list of tags to add to the package. # noqa: E501 + + :return: The tags of this PackagesUploadPython. # noqa: E501 :rtype: str """ return self._tags @tags.setter def tags(self, tags): - """ - Sets the tags of this PackagesUploadPython. - A comma-separated values list of tags to add to the package. + """Sets the tags of this PackagesUploadPython. - :param tags: The tags of this PackagesUploadPython. + A comma-separated values list of tags to add to the package. # noqa: E501 + + :param tags: The tags of this PackagesUploadPython. # noqa: E501 :type: str """ self._tags = tags def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -151,32 +153,30 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(PackagesUploadPython, dict): + for key, value in self.items(): + result[key] = value return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, PackagesUploadPython): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other + """Returns true if both objects are not equal""" + if not isinstance(other, PackagesUploadPython): + return True + + return self.to_dict() != other.to_dict() diff --git a/bindings/python/src/cloudsmith_api/models/packages_upload_raw.py b/bindings/python/src/cloudsmith_api/models/packages_upload_raw.py index 512b8076..4dce0c6d 100644 --- a/bindings/python/src/cloudsmith_api/models/packages_upload_raw.py +++ b/bindings/python/src/cloudsmith_api/models/packages_upload_raw.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -11,18 +11,20 @@ """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration class PackagesUploadRaw(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -52,10 +54,11 @@ class PackagesUploadRaw(object): 'version': 'version' } - def __init__(self, content_type=None, description=None, name=None, package_file=None, republish=None, summary=None, tags=None, version=None): - """ - PackagesUploadRaw - a model defined in Swagger - """ + def __init__(self, content_type=None, description=None, name=None, package_file=None, republish=None, summary=None, tags=None, version=None, _configuration=None): # noqa: E501 + """PackagesUploadRaw - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._content_type = None self._description = None @@ -65,41 +68,42 @@ def __init__(self, content_type=None, description=None, name=None, package_file= self._summary = None self._tags = None self._version = None + self.discriminator = None if content_type is not None: - self.content_type = content_type + self.content_type = content_type if description is not None: - self.description = description + self.description = description if name is not None: - self.name = name + self.name = name self.package_file = package_file if republish is not None: - self.republish = republish + self.republish = republish if summary is not None: - self.summary = summary + self.summary = summary if tags is not None: - self.tags = tags + self.tags = tags if version is not None: - self.version = version + self.version = version @property def content_type(self): - """ - Gets the content_type of this PackagesUploadRaw. - A custom content/media (also known as MIME) type to be sent when downloading this file. By default Cloudsmith will attempt to detect the type, but if you need to override it, you can specify it here. + """Gets the content_type of this PackagesUploadRaw. # noqa: E501 + + A custom content/media (also known as MIME) type to be sent when downloading this file. By default Cloudsmith will attempt to detect the type, but if you need to override it, you can specify it here. # noqa: E501 - :return: The content_type of this PackagesUploadRaw. + :return: The content_type of this PackagesUploadRaw. # noqa: E501 :rtype: str """ return self._content_type @content_type.setter def content_type(self, content_type): - """ - Sets the content_type of this PackagesUploadRaw. - A custom content/media (also known as MIME) type to be sent when downloading this file. By default Cloudsmith will attempt to detect the type, but if you need to override it, you can specify it here. + """Sets the content_type of this PackagesUploadRaw. - :param content_type: The content_type of this PackagesUploadRaw. + A custom content/media (also known as MIME) type to be sent when downloading this file. By default Cloudsmith will attempt to detect the type, but if you need to override it, you can specify it here. # noqa: E501 + + :param content_type: The content_type of this PackagesUploadRaw. # noqa: E501 :type: str """ @@ -107,22 +111,22 @@ def content_type(self, content_type): @property def description(self): - """ - Gets the description of this PackagesUploadRaw. - A textual description of this package. + """Gets the description of this PackagesUploadRaw. # noqa: E501 + + A textual description of this package. # noqa: E501 - :return: The description of this PackagesUploadRaw. + :return: The description of this PackagesUploadRaw. # noqa: E501 :rtype: str """ return self._description @description.setter def description(self, description): - """ - Sets the description of this PackagesUploadRaw. - A textual description of this package. + """Sets the description of this PackagesUploadRaw. + + A textual description of this package. # noqa: E501 - :param description: The description of this PackagesUploadRaw. + :param description: The description of this PackagesUploadRaw. # noqa: E501 :type: str """ @@ -130,22 +134,22 @@ def description(self, description): @property def name(self): - """ - Gets the name of this PackagesUploadRaw. - The name of this package. + """Gets the name of this PackagesUploadRaw. # noqa: E501 + + The name of this package. # noqa: E501 - :return: The name of this PackagesUploadRaw. + :return: The name of this PackagesUploadRaw. # noqa: E501 :rtype: str """ return self._name @name.setter def name(self, name): - """ - Sets the name of this PackagesUploadRaw. - The name of this package. + """Sets the name of this PackagesUploadRaw. + + The name of this package. # noqa: E501 - :param name: The name of this PackagesUploadRaw. + :param name: The name of this PackagesUploadRaw. # noqa: E501 :type: str """ @@ -153,47 +157,47 @@ def name(self, name): @property def package_file(self): - """ - Gets the package_file of this PackagesUploadRaw. - The primary file for the package. + """Gets the package_file of this PackagesUploadRaw. # noqa: E501 - :return: The package_file of this PackagesUploadRaw. + The primary file for the package. # noqa: E501 + + :return: The package_file of this PackagesUploadRaw. # noqa: E501 :rtype: str """ return self._package_file @package_file.setter def package_file(self, package_file): - """ - Sets the package_file of this PackagesUploadRaw. - The primary file for the package. + """Sets the package_file of this PackagesUploadRaw. + + The primary file for the package. # noqa: E501 - :param package_file: The package_file of this PackagesUploadRaw. + :param package_file: The package_file of this PackagesUploadRaw. # noqa: E501 :type: str """ - if package_file is None: - raise ValueError("Invalid value for `package_file`, must not be `None`") + if self._configuration.client_side_validation and package_file is None: + raise ValueError("Invalid value for `package_file`, must not be `None`") # noqa: E501 self._package_file = package_file @property def republish(self): - """ - Gets the republish of this PackagesUploadRaw. - If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. + """Gets the republish of this PackagesUploadRaw. # noqa: E501 + + If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. # noqa: E501 - :return: The republish of this PackagesUploadRaw. + :return: The republish of this PackagesUploadRaw. # noqa: E501 :rtype: bool """ return self._republish @republish.setter def republish(self, republish): - """ - Sets the republish of this PackagesUploadRaw. - If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. + """Sets the republish of this PackagesUploadRaw. - :param republish: The republish of this PackagesUploadRaw. + If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. # noqa: E501 + + :param republish: The republish of this PackagesUploadRaw. # noqa: E501 :type: bool """ @@ -201,22 +205,22 @@ def republish(self, republish): @property def summary(self): - """ - Gets the summary of this PackagesUploadRaw. - A one-liner synopsis of this package. + """Gets the summary of this PackagesUploadRaw. # noqa: E501 - :return: The summary of this PackagesUploadRaw. + A one-liner synopsis of this package. # noqa: E501 + + :return: The summary of this PackagesUploadRaw. # noqa: E501 :rtype: str """ return self._summary @summary.setter def summary(self, summary): - """ - Sets the summary of this PackagesUploadRaw. - A one-liner synopsis of this package. + """Sets the summary of this PackagesUploadRaw. - :param summary: The summary of this PackagesUploadRaw. + A one-liner synopsis of this package. # noqa: E501 + + :param summary: The summary of this PackagesUploadRaw. # noqa: E501 :type: str """ @@ -224,22 +228,22 @@ def summary(self, summary): @property def tags(self): - """ - Gets the tags of this PackagesUploadRaw. - A comma-separated values list of tags to add to the package. + """Gets the tags of this PackagesUploadRaw. # noqa: E501 + + A comma-separated values list of tags to add to the package. # noqa: E501 - :return: The tags of this PackagesUploadRaw. + :return: The tags of this PackagesUploadRaw. # noqa: E501 :rtype: str """ return self._tags @tags.setter def tags(self, tags): - """ - Sets the tags of this PackagesUploadRaw. - A comma-separated values list of tags to add to the package. + """Sets the tags of this PackagesUploadRaw. + + A comma-separated values list of tags to add to the package. # noqa: E501 - :param tags: The tags of this PackagesUploadRaw. + :param tags: The tags of this PackagesUploadRaw. # noqa: E501 :type: str """ @@ -247,34 +251,32 @@ def tags(self, tags): @property def version(self): - """ - Gets the version of this PackagesUploadRaw. - The raw version for this package. + """Gets the version of this PackagesUploadRaw. # noqa: E501 - :return: The version of this PackagesUploadRaw. + The raw version for this package. # noqa: E501 + + :return: The version of this PackagesUploadRaw. # noqa: E501 :rtype: str """ return self._version @version.setter def version(self, version): - """ - Sets the version of this PackagesUploadRaw. - The raw version for this package. + """Sets the version of this PackagesUploadRaw. + + The raw version for this package. # noqa: E501 - :param version: The version of this PackagesUploadRaw. + :param version: The version of this PackagesUploadRaw. # noqa: E501 :type: str """ self._version = version def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -291,32 +293,30 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(PackagesUploadRaw, dict): + for key, value in self.items(): + result[key] = value return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, PackagesUploadRaw): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other + """Returns true if both objects are not equal""" + if not isinstance(other, PackagesUploadRaw): + return True + + return self.to_dict() != other.to_dict() diff --git a/bindings/python/src/cloudsmith_api/models/packages_upload_rpm.py b/bindings/python/src/cloudsmith_api/models/packages_upload_rpm.py index b01c108e..b0537516 100644 --- a/bindings/python/src/cloudsmith_api/models/packages_upload_rpm.py +++ b/bindings/python/src/cloudsmith_api/models/packages_upload_rpm.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -11,18 +11,20 @@ """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration class PackagesUploadRpm(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -44,91 +46,93 @@ class PackagesUploadRpm(object): 'tags': 'tags' } - def __init__(self, distribution=None, package_file=None, republish=None, tags=None): - """ - PackagesUploadRpm - a model defined in Swagger - """ + def __init__(self, distribution=None, package_file=None, republish=None, tags=None, _configuration=None): # noqa: E501 + """PackagesUploadRpm - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._distribution = None self._package_file = None self._republish = None self._tags = None + self.discriminator = None self.distribution = distribution self.package_file = package_file if republish is not None: - self.republish = republish + self.republish = republish if tags is not None: - self.tags = tags + self.tags = tags @property def distribution(self): - """ - Gets the distribution of this PackagesUploadRpm. - The distribution to store the package for. + """Gets the distribution of this PackagesUploadRpm. # noqa: E501 + + The distribution to store the package for. # noqa: E501 - :return: The distribution of this PackagesUploadRpm. + :return: The distribution of this PackagesUploadRpm. # noqa: E501 :rtype: str """ return self._distribution @distribution.setter def distribution(self, distribution): - """ - Sets the distribution of this PackagesUploadRpm. - The distribution to store the package for. + """Sets the distribution of this PackagesUploadRpm. + + The distribution to store the package for. # noqa: E501 - :param distribution: The distribution of this PackagesUploadRpm. + :param distribution: The distribution of this PackagesUploadRpm. # noqa: E501 :type: str """ - if distribution is None: - raise ValueError("Invalid value for `distribution`, must not be `None`") + if self._configuration.client_side_validation and distribution is None: + raise ValueError("Invalid value for `distribution`, must not be `None`") # noqa: E501 self._distribution = distribution @property def package_file(self): - """ - Gets the package_file of this PackagesUploadRpm. - The primary file for the package. + """Gets the package_file of this PackagesUploadRpm. # noqa: E501 - :return: The package_file of this PackagesUploadRpm. + The primary file for the package. # noqa: E501 + + :return: The package_file of this PackagesUploadRpm. # noqa: E501 :rtype: str """ return self._package_file @package_file.setter def package_file(self, package_file): - """ - Sets the package_file of this PackagesUploadRpm. - The primary file for the package. + """Sets the package_file of this PackagesUploadRpm. - :param package_file: The package_file of this PackagesUploadRpm. + The primary file for the package. # noqa: E501 + + :param package_file: The package_file of this PackagesUploadRpm. # noqa: E501 :type: str """ - if package_file is None: - raise ValueError("Invalid value for `package_file`, must not be `None`") + if self._configuration.client_side_validation and package_file is None: + raise ValueError("Invalid value for `package_file`, must not be `None`") # noqa: E501 self._package_file = package_file @property def republish(self): - """ - Gets the republish of this PackagesUploadRpm. - If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. + """Gets the republish of this PackagesUploadRpm. # noqa: E501 - :return: The republish of this PackagesUploadRpm. + If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. # noqa: E501 + + :return: The republish of this PackagesUploadRpm. # noqa: E501 :rtype: bool """ return self._republish @republish.setter def republish(self, republish): - """ - Sets the republish of this PackagesUploadRpm. - If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. + """Sets the republish of this PackagesUploadRpm. - :param republish: The republish of this PackagesUploadRpm. + If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. # noqa: E501 + + :param republish: The republish of this PackagesUploadRpm. # noqa: E501 :type: bool """ @@ -136,34 +140,32 @@ def republish(self, republish): @property def tags(self): - """ - Gets the tags of this PackagesUploadRpm. - A comma-separated values list of tags to add to the package. + """Gets the tags of this PackagesUploadRpm. # noqa: E501 + + A comma-separated values list of tags to add to the package. # noqa: E501 - :return: The tags of this PackagesUploadRpm. + :return: The tags of this PackagesUploadRpm. # noqa: E501 :rtype: str """ return self._tags @tags.setter def tags(self, tags): - """ - Sets the tags of this PackagesUploadRpm. - A comma-separated values list of tags to add to the package. + """Sets the tags of this PackagesUploadRpm. + + A comma-separated values list of tags to add to the package. # noqa: E501 - :param tags: The tags of this PackagesUploadRpm. + :param tags: The tags of this PackagesUploadRpm. # noqa: E501 :type: str """ self._tags = tags def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -180,32 +182,30 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(PackagesUploadRpm, dict): + for key, value in self.items(): + result[key] = value return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, PackagesUploadRpm): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other + """Returns true if both objects are not equal""" + if not isinstance(other, PackagesUploadRpm): + return True + + return self.to_dict() != other.to_dict() diff --git a/bindings/python/src/cloudsmith_api/models/packages_upload_ruby.py b/bindings/python/src/cloudsmith_api/models/packages_upload_ruby.py index ac52c94f..e4dda593 100644 --- a/bindings/python/src/cloudsmith_api/models/packages_upload_ruby.py +++ b/bindings/python/src/cloudsmith_api/models/packages_upload_ruby.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -11,18 +11,20 @@ """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration class PackagesUploadRuby(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -42,64 +44,66 @@ class PackagesUploadRuby(object): 'tags': 'tags' } - def __init__(self, package_file=None, republish=None, tags=None): - """ - PackagesUploadRuby - a model defined in Swagger - """ + def __init__(self, package_file=None, republish=None, tags=None, _configuration=None): # noqa: E501 + """PackagesUploadRuby - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._package_file = None self._republish = None self._tags = None + self.discriminator = None self.package_file = package_file if republish is not None: - self.republish = republish + self.republish = republish if tags is not None: - self.tags = tags + self.tags = tags @property def package_file(self): - """ - Gets the package_file of this PackagesUploadRuby. - The primary file for the package. + """Gets the package_file of this PackagesUploadRuby. # noqa: E501 - :return: The package_file of this PackagesUploadRuby. + The primary file for the package. # noqa: E501 + + :return: The package_file of this PackagesUploadRuby. # noqa: E501 :rtype: str """ return self._package_file @package_file.setter def package_file(self, package_file): - """ - Sets the package_file of this PackagesUploadRuby. - The primary file for the package. + """Sets the package_file of this PackagesUploadRuby. - :param package_file: The package_file of this PackagesUploadRuby. + The primary file for the package. # noqa: E501 + + :param package_file: The package_file of this PackagesUploadRuby. # noqa: E501 :type: str """ - if package_file is None: - raise ValueError("Invalid value for `package_file`, must not be `None`") + if self._configuration.client_side_validation and package_file is None: + raise ValueError("Invalid value for `package_file`, must not be `None`") # noqa: E501 self._package_file = package_file @property def republish(self): - """ - Gets the republish of this PackagesUploadRuby. - If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. + """Gets the republish of this PackagesUploadRuby. # noqa: E501 - :return: The republish of this PackagesUploadRuby. + If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. # noqa: E501 + + :return: The republish of this PackagesUploadRuby. # noqa: E501 :rtype: bool """ return self._republish @republish.setter def republish(self, republish): - """ - Sets the republish of this PackagesUploadRuby. - If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. + """Sets the republish of this PackagesUploadRuby. - :param republish: The republish of this PackagesUploadRuby. + If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. # noqa: E501 + + :param republish: The republish of this PackagesUploadRuby. # noqa: E501 :type: bool """ @@ -107,34 +111,32 @@ def republish(self, republish): @property def tags(self): - """ - Gets the tags of this PackagesUploadRuby. - A comma-separated values list of tags to add to the package. + """Gets the tags of this PackagesUploadRuby. # noqa: E501 - :return: The tags of this PackagesUploadRuby. + A comma-separated values list of tags to add to the package. # noqa: E501 + + :return: The tags of this PackagesUploadRuby. # noqa: E501 :rtype: str """ return self._tags @tags.setter def tags(self, tags): - """ - Sets the tags of this PackagesUploadRuby. - A comma-separated values list of tags to add to the package. + """Sets the tags of this PackagesUploadRuby. - :param tags: The tags of this PackagesUploadRuby. + A comma-separated values list of tags to add to the package. # noqa: E501 + + :param tags: The tags of this PackagesUploadRuby. # noqa: E501 :type: str """ self._tags = tags def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -151,32 +153,30 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(PackagesUploadRuby, dict): + for key, value in self.items(): + result[key] = value return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, PackagesUploadRuby): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other + """Returns true if both objects are not equal""" + if not isinstance(other, PackagesUploadRuby): + return True + + return self.to_dict() != other.to_dict() diff --git a/bindings/python/src/cloudsmith_api/models/packages_upload_terraform.py b/bindings/python/src/cloudsmith_api/models/packages_upload_terraform.py index 6b8e927e..e9af20e5 100644 --- a/bindings/python/src/cloudsmith_api/models/packages_upload_terraform.py +++ b/bindings/python/src/cloudsmith_api/models/packages_upload_terraform.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -11,18 +11,20 @@ """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration class PackagesUploadTerraform(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -42,64 +44,66 @@ class PackagesUploadTerraform(object): 'tags': 'tags' } - def __init__(self, package_file=None, republish=None, tags=None): - """ - PackagesUploadTerraform - a model defined in Swagger - """ + def __init__(self, package_file=None, republish=None, tags=None, _configuration=None): # noqa: E501 + """PackagesUploadTerraform - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._package_file = None self._republish = None self._tags = None + self.discriminator = None self.package_file = package_file if republish is not None: - self.republish = republish + self.republish = republish if tags is not None: - self.tags = tags + self.tags = tags @property def package_file(self): - """ - Gets the package_file of this PackagesUploadTerraform. - The primary file for the package. + """Gets the package_file of this PackagesUploadTerraform. # noqa: E501 - :return: The package_file of this PackagesUploadTerraform. + The primary file for the package. # noqa: E501 + + :return: The package_file of this PackagesUploadTerraform. # noqa: E501 :rtype: str """ return self._package_file @package_file.setter def package_file(self, package_file): - """ - Sets the package_file of this PackagesUploadTerraform. - The primary file for the package. + """Sets the package_file of this PackagesUploadTerraform. - :param package_file: The package_file of this PackagesUploadTerraform. + The primary file for the package. # noqa: E501 + + :param package_file: The package_file of this PackagesUploadTerraform. # noqa: E501 :type: str """ - if package_file is None: - raise ValueError("Invalid value for `package_file`, must not be `None`") + if self._configuration.client_side_validation and package_file is None: + raise ValueError("Invalid value for `package_file`, must not be `None`") # noqa: E501 self._package_file = package_file @property def republish(self): - """ - Gets the republish of this PackagesUploadTerraform. - If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. + """Gets the republish of this PackagesUploadTerraform. # noqa: E501 - :return: The republish of this PackagesUploadTerraform. + If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. # noqa: E501 + + :return: The republish of this PackagesUploadTerraform. # noqa: E501 :rtype: bool """ return self._republish @republish.setter def republish(self, republish): - """ - Sets the republish of this PackagesUploadTerraform. - If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. + """Sets the republish of this PackagesUploadTerraform. - :param republish: The republish of this PackagesUploadTerraform. + If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. # noqa: E501 + + :param republish: The republish of this PackagesUploadTerraform. # noqa: E501 :type: bool """ @@ -107,34 +111,32 @@ def republish(self, republish): @property def tags(self): - """ - Gets the tags of this PackagesUploadTerraform. - A comma-separated values list of tags to add to the package. + """Gets the tags of this PackagesUploadTerraform. # noqa: E501 - :return: The tags of this PackagesUploadTerraform. + A comma-separated values list of tags to add to the package. # noqa: E501 + + :return: The tags of this PackagesUploadTerraform. # noqa: E501 :rtype: str """ return self._tags @tags.setter def tags(self, tags): - """ - Sets the tags of this PackagesUploadTerraform. - A comma-separated values list of tags to add to the package. + """Sets the tags of this PackagesUploadTerraform. - :param tags: The tags of this PackagesUploadTerraform. + A comma-separated values list of tags to add to the package. # noqa: E501 + + :param tags: The tags of this PackagesUploadTerraform. # noqa: E501 :type: str """ self._tags = tags def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -151,32 +153,30 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(PackagesUploadTerraform, dict): + for key, value in self.items(): + result[key] = value return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, PackagesUploadTerraform): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other + """Returns true if both objects are not equal""" + if not isinstance(other, PackagesUploadTerraform): + return True + + return self.to_dict() != other.to_dict() diff --git a/bindings/python/src/cloudsmith_api/models/packages_upload_vagrant.py b/bindings/python/src/cloudsmith_api/models/packages_upload_vagrant.py index b2fd4758..c6cc18e9 100644 --- a/bindings/python/src/cloudsmith_api/models/packages_upload_vagrant.py +++ b/bindings/python/src/cloudsmith_api/models/packages_upload_vagrant.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -11,18 +11,20 @@ """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration class PackagesUploadVagrant(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -48,10 +50,11 @@ class PackagesUploadVagrant(object): 'version': 'version' } - def __init__(self, name=None, package_file=None, provider=None, republish=None, tags=None, version=None): - """ - PackagesUploadVagrant - a model defined in Swagger - """ + def __init__(self, name=None, package_file=None, provider=None, republish=None, tags=None, version=None, _configuration=None): # noqa: E501 + """PackagesUploadVagrant - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._name = None self._package_file = None @@ -59,109 +62,110 @@ def __init__(self, name=None, package_file=None, provider=None, republish=None, self._republish = None self._tags = None self._version = None + self.discriminator = None self.name = name self.package_file = package_file self.provider = provider if republish is not None: - self.republish = republish + self.republish = republish if tags is not None: - self.tags = tags + self.tags = tags self.version = version @property def name(self): - """ - Gets the name of this PackagesUploadVagrant. - The name of this package. + """Gets the name of this PackagesUploadVagrant. # noqa: E501 + + The name of this package. # noqa: E501 - :return: The name of this PackagesUploadVagrant. + :return: The name of this PackagesUploadVagrant. # noqa: E501 :rtype: str """ return self._name @name.setter def name(self, name): - """ - Sets the name of this PackagesUploadVagrant. - The name of this package. + """Sets the name of this PackagesUploadVagrant. + + The name of this package. # noqa: E501 - :param name: The name of this PackagesUploadVagrant. + :param name: The name of this PackagesUploadVagrant. # noqa: E501 :type: str """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") + if self._configuration.client_side_validation and name is None: + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 self._name = name @property def package_file(self): - """ - Gets the package_file of this PackagesUploadVagrant. - The primary file for the package. + """Gets the package_file of this PackagesUploadVagrant. # noqa: E501 + + The primary file for the package. # noqa: E501 - :return: The package_file of this PackagesUploadVagrant. + :return: The package_file of this PackagesUploadVagrant. # noqa: E501 :rtype: str """ return self._package_file @package_file.setter def package_file(self, package_file): - """ - Sets the package_file of this PackagesUploadVagrant. - The primary file for the package. + """Sets the package_file of this PackagesUploadVagrant. - :param package_file: The package_file of this PackagesUploadVagrant. + The primary file for the package. # noqa: E501 + + :param package_file: The package_file of this PackagesUploadVagrant. # noqa: E501 :type: str """ - if package_file is None: - raise ValueError("Invalid value for `package_file`, must not be `None`") + if self._configuration.client_side_validation and package_file is None: + raise ValueError("Invalid value for `package_file`, must not be `None`") # noqa: E501 self._package_file = package_file @property def provider(self): - """ - Gets the provider of this PackagesUploadVagrant. - The virtual machine provider for the box. + """Gets the provider of this PackagesUploadVagrant. # noqa: E501 + + The virtual machine provider for the box. # noqa: E501 - :return: The provider of this PackagesUploadVagrant. + :return: The provider of this PackagesUploadVagrant. # noqa: E501 :rtype: str """ return self._provider @provider.setter def provider(self, provider): - """ - Sets the provider of this PackagesUploadVagrant. - The virtual machine provider for the box. + """Sets the provider of this PackagesUploadVagrant. + + The virtual machine provider for the box. # noqa: E501 - :param provider: The provider of this PackagesUploadVagrant. + :param provider: The provider of this PackagesUploadVagrant. # noqa: E501 :type: str """ - if provider is None: - raise ValueError("Invalid value for `provider`, must not be `None`") + if self._configuration.client_side_validation and provider is None: + raise ValueError("Invalid value for `provider`, must not be `None`") # noqa: E501 self._provider = provider @property def republish(self): - """ - Gets the republish of this PackagesUploadVagrant. - If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. + """Gets the republish of this PackagesUploadVagrant. # noqa: E501 - :return: The republish of this PackagesUploadVagrant. + If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. # noqa: E501 + + :return: The republish of this PackagesUploadVagrant. # noqa: E501 :rtype: bool """ return self._republish @republish.setter def republish(self, republish): - """ - Sets the republish of this PackagesUploadVagrant. - If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. + """Sets the republish of this PackagesUploadVagrant. - :param republish: The republish of this PackagesUploadVagrant. + If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. # noqa: E501 + + :param republish: The republish of this PackagesUploadVagrant. # noqa: E501 :type: bool """ @@ -169,22 +173,22 @@ def republish(self, republish): @property def tags(self): - """ - Gets the tags of this PackagesUploadVagrant. - A comma-separated values list of tags to add to the package. + """Gets the tags of this PackagesUploadVagrant. # noqa: E501 + + A comma-separated values list of tags to add to the package. # noqa: E501 - :return: The tags of this PackagesUploadVagrant. + :return: The tags of this PackagesUploadVagrant. # noqa: E501 :rtype: str """ return self._tags @tags.setter def tags(self, tags): - """ - Sets the tags of this PackagesUploadVagrant. - A comma-separated values list of tags to add to the package. + """Sets the tags of this PackagesUploadVagrant. + + A comma-separated values list of tags to add to the package. # noqa: E501 - :param tags: The tags of this PackagesUploadVagrant. + :param tags: The tags of this PackagesUploadVagrant. # noqa: E501 :type: str """ @@ -192,36 +196,34 @@ def tags(self, tags): @property def version(self): - """ - Gets the version of this PackagesUploadVagrant. - The raw version for this package. + """Gets the version of this PackagesUploadVagrant. # noqa: E501 - :return: The version of this PackagesUploadVagrant. + The raw version for this package. # noqa: E501 + + :return: The version of this PackagesUploadVagrant. # noqa: E501 :rtype: str """ return self._version @version.setter def version(self, version): - """ - Sets the version of this PackagesUploadVagrant. - The raw version for this package. + """Sets the version of this PackagesUploadVagrant. + + The raw version for this package. # noqa: E501 - :param version: The version of this PackagesUploadVagrant. + :param version: The version of this PackagesUploadVagrant. # noqa: E501 :type: str """ - if version is None: - raise ValueError("Invalid value for `version`, must not be `None`") + if self._configuration.client_side_validation and version is None: + raise ValueError("Invalid value for `version`, must not be `None`") # noqa: E501 self._version = version def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -238,32 +240,30 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(PackagesUploadVagrant, dict): + for key, value in self.items(): + result[key] = value return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, PackagesUploadVagrant): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other + """Returns true if both objects are not equal""" + if not isinstance(other, PackagesUploadVagrant): + return True + + return self.to_dict() != other.to_dict() diff --git a/bindings/python/src/cloudsmith_api/models/packages_validateupload_alpine.py b/bindings/python/src/cloudsmith_api/models/packages_validateupload_alpine.py index c0ce6ff4..17237357 100644 --- a/bindings/python/src/cloudsmith_api/models/packages_validateupload_alpine.py +++ b/bindings/python/src/cloudsmith_api/models/packages_validateupload_alpine.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -11,18 +11,20 @@ """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration class PackagesValidateuploadAlpine(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -44,91 +46,93 @@ class PackagesValidateuploadAlpine(object): 'tags': 'tags' } - def __init__(self, distribution=None, package_file=None, republish=None, tags=None): - """ - PackagesValidateuploadAlpine - a model defined in Swagger - """ + def __init__(self, distribution=None, package_file=None, republish=None, tags=None, _configuration=None): # noqa: E501 + """PackagesValidateuploadAlpine - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._distribution = None self._package_file = None self._republish = None self._tags = None + self.discriminator = None self.distribution = distribution self.package_file = package_file if republish is not None: - self.republish = republish + self.republish = republish if tags is not None: - self.tags = tags + self.tags = tags @property def distribution(self): - """ - Gets the distribution of this PackagesValidateuploadAlpine. - The distribution to store the package for. + """Gets the distribution of this PackagesValidateuploadAlpine. # noqa: E501 + + The distribution to store the package for. # noqa: E501 - :return: The distribution of this PackagesValidateuploadAlpine. + :return: The distribution of this PackagesValidateuploadAlpine. # noqa: E501 :rtype: str """ return self._distribution @distribution.setter def distribution(self, distribution): - """ - Sets the distribution of this PackagesValidateuploadAlpine. - The distribution to store the package for. + """Sets the distribution of this PackagesValidateuploadAlpine. + + The distribution to store the package for. # noqa: E501 - :param distribution: The distribution of this PackagesValidateuploadAlpine. + :param distribution: The distribution of this PackagesValidateuploadAlpine. # noqa: E501 :type: str """ - if distribution is None: - raise ValueError("Invalid value for `distribution`, must not be `None`") + if self._configuration.client_side_validation and distribution is None: + raise ValueError("Invalid value for `distribution`, must not be `None`") # noqa: E501 self._distribution = distribution @property def package_file(self): - """ - Gets the package_file of this PackagesValidateuploadAlpine. - The primary file for the package. + """Gets the package_file of this PackagesValidateuploadAlpine. # noqa: E501 - :return: The package_file of this PackagesValidateuploadAlpine. + The primary file for the package. # noqa: E501 + + :return: The package_file of this PackagesValidateuploadAlpine. # noqa: E501 :rtype: str """ return self._package_file @package_file.setter def package_file(self, package_file): - """ - Sets the package_file of this PackagesValidateuploadAlpine. - The primary file for the package. + """Sets the package_file of this PackagesValidateuploadAlpine. - :param package_file: The package_file of this PackagesValidateuploadAlpine. + The primary file for the package. # noqa: E501 + + :param package_file: The package_file of this PackagesValidateuploadAlpine. # noqa: E501 :type: str """ - if package_file is None: - raise ValueError("Invalid value for `package_file`, must not be `None`") + if self._configuration.client_side_validation and package_file is None: + raise ValueError("Invalid value for `package_file`, must not be `None`") # noqa: E501 self._package_file = package_file @property def republish(self): - """ - Gets the republish of this PackagesValidateuploadAlpine. - If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. + """Gets the republish of this PackagesValidateuploadAlpine. # noqa: E501 - :return: The republish of this PackagesValidateuploadAlpine. + If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. # noqa: E501 + + :return: The republish of this PackagesValidateuploadAlpine. # noqa: E501 :rtype: bool """ return self._republish @republish.setter def republish(self, republish): - """ - Sets the republish of this PackagesValidateuploadAlpine. - If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. + """Sets the republish of this PackagesValidateuploadAlpine. - :param republish: The republish of this PackagesValidateuploadAlpine. + If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. # noqa: E501 + + :param republish: The republish of this PackagesValidateuploadAlpine. # noqa: E501 :type: bool """ @@ -136,34 +140,32 @@ def republish(self, republish): @property def tags(self): - """ - Gets the tags of this PackagesValidateuploadAlpine. - A comma-separated values list of tags to add to the package. + """Gets the tags of this PackagesValidateuploadAlpine. # noqa: E501 + + A comma-separated values list of tags to add to the package. # noqa: E501 - :return: The tags of this PackagesValidateuploadAlpine. + :return: The tags of this PackagesValidateuploadAlpine. # noqa: E501 :rtype: str """ return self._tags @tags.setter def tags(self, tags): - """ - Sets the tags of this PackagesValidateuploadAlpine. - A comma-separated values list of tags to add to the package. + """Sets the tags of this PackagesValidateuploadAlpine. + + A comma-separated values list of tags to add to the package. # noqa: E501 - :param tags: The tags of this PackagesValidateuploadAlpine. + :param tags: The tags of this PackagesValidateuploadAlpine. # noqa: E501 :type: str """ self._tags = tags def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -180,32 +182,30 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(PackagesValidateuploadAlpine, dict): + for key, value in self.items(): + result[key] = value return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, PackagesValidateuploadAlpine): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other + """Returns true if both objects are not equal""" + if not isinstance(other, PackagesValidateuploadAlpine): + return True + + return self.to_dict() != other.to_dict() diff --git a/bindings/python/src/cloudsmith_api/models/packages_validateupload_cargo.py b/bindings/python/src/cloudsmith_api/models/packages_validateupload_cargo.py index b9d1dcc3..f059985c 100644 --- a/bindings/python/src/cloudsmith_api/models/packages_validateupload_cargo.py +++ b/bindings/python/src/cloudsmith_api/models/packages_validateupload_cargo.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -11,18 +11,20 @@ """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration class PackagesValidateuploadCargo(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -42,64 +44,66 @@ class PackagesValidateuploadCargo(object): 'tags': 'tags' } - def __init__(self, package_file=None, republish=None, tags=None): - """ - PackagesValidateuploadCargo - a model defined in Swagger - """ + def __init__(self, package_file=None, republish=None, tags=None, _configuration=None): # noqa: E501 + """PackagesValidateuploadCargo - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._package_file = None self._republish = None self._tags = None + self.discriminator = None self.package_file = package_file if republish is not None: - self.republish = republish + self.republish = republish if tags is not None: - self.tags = tags + self.tags = tags @property def package_file(self): - """ - Gets the package_file of this PackagesValidateuploadCargo. - The primary file for the package. + """Gets the package_file of this PackagesValidateuploadCargo. # noqa: E501 - :return: The package_file of this PackagesValidateuploadCargo. + The primary file for the package. # noqa: E501 + + :return: The package_file of this PackagesValidateuploadCargo. # noqa: E501 :rtype: str """ return self._package_file @package_file.setter def package_file(self, package_file): - """ - Sets the package_file of this PackagesValidateuploadCargo. - The primary file for the package. + """Sets the package_file of this PackagesValidateuploadCargo. - :param package_file: The package_file of this PackagesValidateuploadCargo. + The primary file for the package. # noqa: E501 + + :param package_file: The package_file of this PackagesValidateuploadCargo. # noqa: E501 :type: str """ - if package_file is None: - raise ValueError("Invalid value for `package_file`, must not be `None`") + if self._configuration.client_side_validation and package_file is None: + raise ValueError("Invalid value for `package_file`, must not be `None`") # noqa: E501 self._package_file = package_file @property def republish(self): - """ - Gets the republish of this PackagesValidateuploadCargo. - If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. + """Gets the republish of this PackagesValidateuploadCargo. # noqa: E501 - :return: The republish of this PackagesValidateuploadCargo. + If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. # noqa: E501 + + :return: The republish of this PackagesValidateuploadCargo. # noqa: E501 :rtype: bool """ return self._republish @republish.setter def republish(self, republish): - """ - Sets the republish of this PackagesValidateuploadCargo. - If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. + """Sets the republish of this PackagesValidateuploadCargo. - :param republish: The republish of this PackagesValidateuploadCargo. + If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. # noqa: E501 + + :param republish: The republish of this PackagesValidateuploadCargo. # noqa: E501 :type: bool """ @@ -107,34 +111,32 @@ def republish(self, republish): @property def tags(self): - """ - Gets the tags of this PackagesValidateuploadCargo. - A comma-separated values list of tags to add to the package. + """Gets the tags of this PackagesValidateuploadCargo. # noqa: E501 - :return: The tags of this PackagesValidateuploadCargo. + A comma-separated values list of tags to add to the package. # noqa: E501 + + :return: The tags of this PackagesValidateuploadCargo. # noqa: E501 :rtype: str """ return self._tags @tags.setter def tags(self, tags): - """ - Sets the tags of this PackagesValidateuploadCargo. - A comma-separated values list of tags to add to the package. + """Sets the tags of this PackagesValidateuploadCargo. - :param tags: The tags of this PackagesValidateuploadCargo. + A comma-separated values list of tags to add to the package. # noqa: E501 + + :param tags: The tags of this PackagesValidateuploadCargo. # noqa: E501 :type: str """ self._tags = tags def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -151,32 +153,30 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(PackagesValidateuploadCargo, dict): + for key, value in self.items(): + result[key] = value return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, PackagesValidateuploadCargo): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other + """Returns true if both objects are not equal""" + if not isinstance(other, PackagesValidateuploadCargo): + return True + + return self.to_dict() != other.to_dict() diff --git a/bindings/python/src/cloudsmith_api/models/packages_validateupload_cocoapods.py b/bindings/python/src/cloudsmith_api/models/packages_validateupload_cocoapods.py index d4c3be9f..dad63ac4 100644 --- a/bindings/python/src/cloudsmith_api/models/packages_validateupload_cocoapods.py +++ b/bindings/python/src/cloudsmith_api/models/packages_validateupload_cocoapods.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -11,18 +11,20 @@ """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration class PackagesValidateuploadCocoapods(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -42,64 +44,66 @@ class PackagesValidateuploadCocoapods(object): 'tags': 'tags' } - def __init__(self, package_file=None, republish=None, tags=None): - """ - PackagesValidateuploadCocoapods - a model defined in Swagger - """ + def __init__(self, package_file=None, republish=None, tags=None, _configuration=None): # noqa: E501 + """PackagesValidateuploadCocoapods - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._package_file = None self._republish = None self._tags = None + self.discriminator = None self.package_file = package_file if republish is not None: - self.republish = republish + self.republish = republish if tags is not None: - self.tags = tags + self.tags = tags @property def package_file(self): - """ - Gets the package_file of this PackagesValidateuploadCocoapods. - The primary file for the package. + """Gets the package_file of this PackagesValidateuploadCocoapods. # noqa: E501 - :return: The package_file of this PackagesValidateuploadCocoapods. + The primary file for the package. # noqa: E501 + + :return: The package_file of this PackagesValidateuploadCocoapods. # noqa: E501 :rtype: str """ return self._package_file @package_file.setter def package_file(self, package_file): - """ - Sets the package_file of this PackagesValidateuploadCocoapods. - The primary file for the package. + """Sets the package_file of this PackagesValidateuploadCocoapods. - :param package_file: The package_file of this PackagesValidateuploadCocoapods. + The primary file for the package. # noqa: E501 + + :param package_file: The package_file of this PackagesValidateuploadCocoapods. # noqa: E501 :type: str """ - if package_file is None: - raise ValueError("Invalid value for `package_file`, must not be `None`") + if self._configuration.client_side_validation and package_file is None: + raise ValueError("Invalid value for `package_file`, must not be `None`") # noqa: E501 self._package_file = package_file @property def republish(self): - """ - Gets the republish of this PackagesValidateuploadCocoapods. - If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. + """Gets the republish of this PackagesValidateuploadCocoapods. # noqa: E501 - :return: The republish of this PackagesValidateuploadCocoapods. + If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. # noqa: E501 + + :return: The republish of this PackagesValidateuploadCocoapods. # noqa: E501 :rtype: bool """ return self._republish @republish.setter def republish(self, republish): - """ - Sets the republish of this PackagesValidateuploadCocoapods. - If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. + """Sets the republish of this PackagesValidateuploadCocoapods. - :param republish: The republish of this PackagesValidateuploadCocoapods. + If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. # noqa: E501 + + :param republish: The republish of this PackagesValidateuploadCocoapods. # noqa: E501 :type: bool """ @@ -107,34 +111,32 @@ def republish(self, republish): @property def tags(self): - """ - Gets the tags of this PackagesValidateuploadCocoapods. - A comma-separated values list of tags to add to the package. + """Gets the tags of this PackagesValidateuploadCocoapods. # noqa: E501 - :return: The tags of this PackagesValidateuploadCocoapods. + A comma-separated values list of tags to add to the package. # noqa: E501 + + :return: The tags of this PackagesValidateuploadCocoapods. # noqa: E501 :rtype: str """ return self._tags @tags.setter def tags(self, tags): - """ - Sets the tags of this PackagesValidateuploadCocoapods. - A comma-separated values list of tags to add to the package. + """Sets the tags of this PackagesValidateuploadCocoapods. - :param tags: The tags of this PackagesValidateuploadCocoapods. + A comma-separated values list of tags to add to the package. # noqa: E501 + + :param tags: The tags of this PackagesValidateuploadCocoapods. # noqa: E501 :type: str """ self._tags = tags def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -151,32 +153,30 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(PackagesValidateuploadCocoapods, dict): + for key, value in self.items(): + result[key] = value return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, PackagesValidateuploadCocoapods): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other + """Returns true if both objects are not equal""" + if not isinstance(other, PackagesValidateuploadCocoapods): + return True + + return self.to_dict() != other.to_dict() diff --git a/bindings/python/src/cloudsmith_api/models/packages_validateupload_composer.py b/bindings/python/src/cloudsmith_api/models/packages_validateupload_composer.py index 47efb586..dbe41b84 100644 --- a/bindings/python/src/cloudsmith_api/models/packages_validateupload_composer.py +++ b/bindings/python/src/cloudsmith_api/models/packages_validateupload_composer.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -11,18 +11,20 @@ """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration class PackagesValidateuploadComposer(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -42,64 +44,66 @@ class PackagesValidateuploadComposer(object): 'tags': 'tags' } - def __init__(self, package_file=None, republish=None, tags=None): - """ - PackagesValidateuploadComposer - a model defined in Swagger - """ + def __init__(self, package_file=None, republish=None, tags=None, _configuration=None): # noqa: E501 + """PackagesValidateuploadComposer - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._package_file = None self._republish = None self._tags = None + self.discriminator = None self.package_file = package_file if republish is not None: - self.republish = republish + self.republish = republish if tags is not None: - self.tags = tags + self.tags = tags @property def package_file(self): - """ - Gets the package_file of this PackagesValidateuploadComposer. - The primary file for the package. + """Gets the package_file of this PackagesValidateuploadComposer. # noqa: E501 - :return: The package_file of this PackagesValidateuploadComposer. + The primary file for the package. # noqa: E501 + + :return: The package_file of this PackagesValidateuploadComposer. # noqa: E501 :rtype: str """ return self._package_file @package_file.setter def package_file(self, package_file): - """ - Sets the package_file of this PackagesValidateuploadComposer. - The primary file for the package. + """Sets the package_file of this PackagesValidateuploadComposer. - :param package_file: The package_file of this PackagesValidateuploadComposer. + The primary file for the package. # noqa: E501 + + :param package_file: The package_file of this PackagesValidateuploadComposer. # noqa: E501 :type: str """ - if package_file is None: - raise ValueError("Invalid value for `package_file`, must not be `None`") + if self._configuration.client_side_validation and package_file is None: + raise ValueError("Invalid value for `package_file`, must not be `None`") # noqa: E501 self._package_file = package_file @property def republish(self): - """ - Gets the republish of this PackagesValidateuploadComposer. - If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. + """Gets the republish of this PackagesValidateuploadComposer. # noqa: E501 - :return: The republish of this PackagesValidateuploadComposer. + If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. # noqa: E501 + + :return: The republish of this PackagesValidateuploadComposer. # noqa: E501 :rtype: bool """ return self._republish @republish.setter def republish(self, republish): - """ - Sets the republish of this PackagesValidateuploadComposer. - If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. + """Sets the republish of this PackagesValidateuploadComposer. - :param republish: The republish of this PackagesValidateuploadComposer. + If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. # noqa: E501 + + :param republish: The republish of this PackagesValidateuploadComposer. # noqa: E501 :type: bool """ @@ -107,34 +111,32 @@ def republish(self, republish): @property def tags(self): - """ - Gets the tags of this PackagesValidateuploadComposer. - A comma-separated values list of tags to add to the package. + """Gets the tags of this PackagesValidateuploadComposer. # noqa: E501 - :return: The tags of this PackagesValidateuploadComposer. + A comma-separated values list of tags to add to the package. # noqa: E501 + + :return: The tags of this PackagesValidateuploadComposer. # noqa: E501 :rtype: str """ return self._tags @tags.setter def tags(self, tags): - """ - Sets the tags of this PackagesValidateuploadComposer. - A comma-separated values list of tags to add to the package. + """Sets the tags of this PackagesValidateuploadComposer. - :param tags: The tags of this PackagesValidateuploadComposer. + A comma-separated values list of tags to add to the package. # noqa: E501 + + :param tags: The tags of this PackagesValidateuploadComposer. # noqa: E501 :type: str """ self._tags = tags def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -151,32 +153,30 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(PackagesValidateuploadComposer, dict): + for key, value in self.items(): + result[key] = value return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, PackagesValidateuploadComposer): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other + """Returns true if both objects are not equal""" + if not isinstance(other, PackagesValidateuploadComposer): + return True + + return self.to_dict() != other.to_dict() diff --git a/bindings/python/src/cloudsmith_api/models/packages_validateupload_conan.py b/bindings/python/src/cloudsmith_api/models/packages_validateupload_conan.py index 3dfe9f35..bc1d862c 100644 --- a/bindings/python/src/cloudsmith_api/models/packages_validateupload_conan.py +++ b/bindings/python/src/cloudsmith_api/models/packages_validateupload_conan.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -11,18 +11,20 @@ """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration class PackagesValidateuploadConan(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -56,10 +58,11 @@ class PackagesValidateuploadConan(object): 'version': 'version' } - def __init__(self, conan_channel=None, conan_prefix=None, info_file=None, manifest_file=None, metadata_file=None, name=None, package_file=None, republish=None, tags=None, version=None): - """ - PackagesValidateuploadConan - a model defined in Swagger - """ + def __init__(self, conan_channel=None, conan_prefix=None, info_file=None, manifest_file=None, metadata_file=None, name=None, package_file=None, republish=None, tags=None, version=None, _configuration=None): # noqa: E501 + """PackagesValidateuploadConan - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._conan_channel = None self._conan_prefix = None @@ -71,42 +74,43 @@ def __init__(self, conan_channel=None, conan_prefix=None, info_file=None, manife self._republish = None self._tags = None self._version = None + self.discriminator = None if conan_channel is not None: - self.conan_channel = conan_channel + self.conan_channel = conan_channel if conan_prefix is not None: - self.conan_prefix = conan_prefix + self.conan_prefix = conan_prefix self.info_file = info_file self.manifest_file = manifest_file self.metadata_file = metadata_file if name is not None: - self.name = name + self.name = name self.package_file = package_file if republish is not None: - self.republish = republish + self.republish = republish if tags is not None: - self.tags = tags + self.tags = tags if version is not None: - self.version = version + self.version = version @property def conan_channel(self): - """ - Gets the conan_channel of this PackagesValidateuploadConan. - Conan channel. + """Gets the conan_channel of this PackagesValidateuploadConan. # noqa: E501 - :return: The conan_channel of this PackagesValidateuploadConan. + Conan channel. # noqa: E501 + + :return: The conan_channel of this PackagesValidateuploadConan. # noqa: E501 :rtype: str """ return self._conan_channel @conan_channel.setter def conan_channel(self, conan_channel): - """ - Sets the conan_channel of this PackagesValidateuploadConan. - Conan channel. + """Sets the conan_channel of this PackagesValidateuploadConan. - :param conan_channel: The conan_channel of this PackagesValidateuploadConan. + Conan channel. # noqa: E501 + + :param conan_channel: The conan_channel of this PackagesValidateuploadConan. # noqa: E501 :type: str """ @@ -114,22 +118,22 @@ def conan_channel(self, conan_channel): @property def conan_prefix(self): - """ - Gets the conan_prefix of this PackagesValidateuploadConan. - Conan prefix (User). + """Gets the conan_prefix of this PackagesValidateuploadConan. # noqa: E501 - :return: The conan_prefix of this PackagesValidateuploadConan. + Conan prefix (User). # noqa: E501 + + :return: The conan_prefix of this PackagesValidateuploadConan. # noqa: E501 :rtype: str """ return self._conan_prefix @conan_prefix.setter def conan_prefix(self, conan_prefix): - """ - Sets the conan_prefix of this PackagesValidateuploadConan. - Conan prefix (User). + """Sets the conan_prefix of this PackagesValidateuploadConan. + + Conan prefix (User). # noqa: E501 - :param conan_prefix: The conan_prefix of this PackagesValidateuploadConan. + :param conan_prefix: The conan_prefix of this PackagesValidateuploadConan. # noqa: E501 :type: str """ @@ -137,97 +141,97 @@ def conan_prefix(self, conan_prefix): @property def info_file(self): - """ - Gets the info_file of this PackagesValidateuploadConan. - The info file is an python file containing the package metadata. + """Gets the info_file of this PackagesValidateuploadConan. # noqa: E501 + + The info file is an python file containing the package metadata. # noqa: E501 - :return: The info_file of this PackagesValidateuploadConan. + :return: The info_file of this PackagesValidateuploadConan. # noqa: E501 :rtype: str """ return self._info_file @info_file.setter def info_file(self, info_file): - """ - Sets the info_file of this PackagesValidateuploadConan. - The info file is an python file containing the package metadata. + """Sets the info_file of this PackagesValidateuploadConan. + + The info file is an python file containing the package metadata. # noqa: E501 - :param info_file: The info_file of this PackagesValidateuploadConan. + :param info_file: The info_file of this PackagesValidateuploadConan. # noqa: E501 :type: str """ - if info_file is None: - raise ValueError("Invalid value for `info_file`, must not be `None`") + if self._configuration.client_side_validation and info_file is None: + raise ValueError("Invalid value for `info_file`, must not be `None`") # noqa: E501 self._info_file = info_file @property def manifest_file(self): - """ - Gets the manifest_file of this PackagesValidateuploadConan. - The info file is an python file containing the package metadata. + """Gets the manifest_file of this PackagesValidateuploadConan. # noqa: E501 + + The info file is an python file containing the package metadata. # noqa: E501 - :return: The manifest_file of this PackagesValidateuploadConan. + :return: The manifest_file of this PackagesValidateuploadConan. # noqa: E501 :rtype: str """ return self._manifest_file @manifest_file.setter def manifest_file(self, manifest_file): - """ - Sets the manifest_file of this PackagesValidateuploadConan. - The info file is an python file containing the package metadata. + """Sets the manifest_file of this PackagesValidateuploadConan. + + The info file is an python file containing the package metadata. # noqa: E501 - :param manifest_file: The manifest_file of this PackagesValidateuploadConan. + :param manifest_file: The manifest_file of this PackagesValidateuploadConan. # noqa: E501 :type: str """ - if manifest_file is None: - raise ValueError("Invalid value for `manifest_file`, must not be `None`") + if self._configuration.client_side_validation and manifest_file is None: + raise ValueError("Invalid value for `manifest_file`, must not be `None`") # noqa: E501 self._manifest_file = manifest_file @property def metadata_file(self): - """ - Gets the metadata_file of this PackagesValidateuploadConan. - The conan file is an python file containing the package metadata. + """Gets the metadata_file of this PackagesValidateuploadConan. # noqa: E501 + + The conan file is an python file containing the package metadata. # noqa: E501 - :return: The metadata_file of this PackagesValidateuploadConan. + :return: The metadata_file of this PackagesValidateuploadConan. # noqa: E501 :rtype: str """ return self._metadata_file @metadata_file.setter def metadata_file(self, metadata_file): - """ - Sets the metadata_file of this PackagesValidateuploadConan. - The conan file is an python file containing the package metadata. + """Sets the metadata_file of this PackagesValidateuploadConan. + + The conan file is an python file containing the package metadata. # noqa: E501 - :param metadata_file: The metadata_file of this PackagesValidateuploadConan. + :param metadata_file: The metadata_file of this PackagesValidateuploadConan. # noqa: E501 :type: str """ - if metadata_file is None: - raise ValueError("Invalid value for `metadata_file`, must not be `None`") + if self._configuration.client_side_validation and metadata_file is None: + raise ValueError("Invalid value for `metadata_file`, must not be `None`") # noqa: E501 self._metadata_file = metadata_file @property def name(self): - """ - Gets the name of this PackagesValidateuploadConan. - The name of this package. + """Gets the name of this PackagesValidateuploadConan. # noqa: E501 + + The name of this package. # noqa: E501 - :return: The name of this PackagesValidateuploadConan. + :return: The name of this PackagesValidateuploadConan. # noqa: E501 :rtype: str """ return self._name @name.setter def name(self, name): - """ - Sets the name of this PackagesValidateuploadConan. - The name of this package. + """Sets the name of this PackagesValidateuploadConan. - :param name: The name of this PackagesValidateuploadConan. + The name of this package. # noqa: E501 + + :param name: The name of this PackagesValidateuploadConan. # noqa: E501 :type: str """ @@ -235,47 +239,47 @@ def name(self, name): @property def package_file(self): - """ - Gets the package_file of this PackagesValidateuploadConan. - The primary file for the package. + """Gets the package_file of this PackagesValidateuploadConan. # noqa: E501 - :return: The package_file of this PackagesValidateuploadConan. + The primary file for the package. # noqa: E501 + + :return: The package_file of this PackagesValidateuploadConan. # noqa: E501 :rtype: str """ return self._package_file @package_file.setter def package_file(self, package_file): - """ - Sets the package_file of this PackagesValidateuploadConan. - The primary file for the package. + """Sets the package_file of this PackagesValidateuploadConan. - :param package_file: The package_file of this PackagesValidateuploadConan. + The primary file for the package. # noqa: E501 + + :param package_file: The package_file of this PackagesValidateuploadConan. # noqa: E501 :type: str """ - if package_file is None: - raise ValueError("Invalid value for `package_file`, must not be `None`") + if self._configuration.client_side_validation and package_file is None: + raise ValueError("Invalid value for `package_file`, must not be `None`") # noqa: E501 self._package_file = package_file @property def republish(self): - """ - Gets the republish of this PackagesValidateuploadConan. - If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. + """Gets the republish of this PackagesValidateuploadConan. # noqa: E501 - :return: The republish of this PackagesValidateuploadConan. + If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. # noqa: E501 + + :return: The republish of this PackagesValidateuploadConan. # noqa: E501 :rtype: bool """ return self._republish @republish.setter def republish(self, republish): - """ - Sets the republish of this PackagesValidateuploadConan. - If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. + """Sets the republish of this PackagesValidateuploadConan. - :param republish: The republish of this PackagesValidateuploadConan. + If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. # noqa: E501 + + :param republish: The republish of this PackagesValidateuploadConan. # noqa: E501 :type: bool """ @@ -283,22 +287,22 @@ def republish(self, republish): @property def tags(self): - """ - Gets the tags of this PackagesValidateuploadConan. - A comma-separated values list of tags to add to the package. + """Gets the tags of this PackagesValidateuploadConan. # noqa: E501 - :return: The tags of this PackagesValidateuploadConan. + A comma-separated values list of tags to add to the package. # noqa: E501 + + :return: The tags of this PackagesValidateuploadConan. # noqa: E501 :rtype: str """ return self._tags @tags.setter def tags(self, tags): - """ - Sets the tags of this PackagesValidateuploadConan. - A comma-separated values list of tags to add to the package. + """Sets the tags of this PackagesValidateuploadConan. - :param tags: The tags of this PackagesValidateuploadConan. + A comma-separated values list of tags to add to the package. # noqa: E501 + + :param tags: The tags of this PackagesValidateuploadConan. # noqa: E501 :type: str """ @@ -306,34 +310,32 @@ def tags(self, tags): @property def version(self): - """ - Gets the version of this PackagesValidateuploadConan. - The raw version for this package. + """Gets the version of this PackagesValidateuploadConan. # noqa: E501 + + The raw version for this package. # noqa: E501 - :return: The version of this PackagesValidateuploadConan. + :return: The version of this PackagesValidateuploadConan. # noqa: E501 :rtype: str """ return self._version @version.setter def version(self, version): - """ - Sets the version of this PackagesValidateuploadConan. - The raw version for this package. + """Sets the version of this PackagesValidateuploadConan. + + The raw version for this package. # noqa: E501 - :param version: The version of this PackagesValidateuploadConan. + :param version: The version of this PackagesValidateuploadConan. # noqa: E501 :type: str """ self._version = version def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -350,32 +352,30 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(PackagesValidateuploadConan, dict): + for key, value in self.items(): + result[key] = value return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, PackagesValidateuploadConan): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other + """Returns true if both objects are not equal""" + if not isinstance(other, PackagesValidateuploadConan): + return True + + return self.to_dict() != other.to_dict() diff --git a/bindings/python/src/cloudsmith_api/models/packages_validateupload_conda.py b/bindings/python/src/cloudsmith_api/models/packages_validateupload_conda.py index bb4beee1..c7ee0fbc 100644 --- a/bindings/python/src/cloudsmith_api/models/packages_validateupload_conda.py +++ b/bindings/python/src/cloudsmith_api/models/packages_validateupload_conda.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -11,18 +11,20 @@ """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration class PackagesValidateuploadConda(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -42,64 +44,66 @@ class PackagesValidateuploadConda(object): 'tags': 'tags' } - def __init__(self, package_file=None, republish=None, tags=None): - """ - PackagesValidateuploadConda - a model defined in Swagger - """ + def __init__(self, package_file=None, republish=None, tags=None, _configuration=None): # noqa: E501 + """PackagesValidateuploadConda - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._package_file = None self._republish = None self._tags = None + self.discriminator = None self.package_file = package_file if republish is not None: - self.republish = republish + self.republish = republish if tags is not None: - self.tags = tags + self.tags = tags @property def package_file(self): - """ - Gets the package_file of this PackagesValidateuploadConda. - The primary file for the package. + """Gets the package_file of this PackagesValidateuploadConda. # noqa: E501 - :return: The package_file of this PackagesValidateuploadConda. + The primary file for the package. # noqa: E501 + + :return: The package_file of this PackagesValidateuploadConda. # noqa: E501 :rtype: str """ return self._package_file @package_file.setter def package_file(self, package_file): - """ - Sets the package_file of this PackagesValidateuploadConda. - The primary file for the package. + """Sets the package_file of this PackagesValidateuploadConda. - :param package_file: The package_file of this PackagesValidateuploadConda. + The primary file for the package. # noqa: E501 + + :param package_file: The package_file of this PackagesValidateuploadConda. # noqa: E501 :type: str """ - if package_file is None: - raise ValueError("Invalid value for `package_file`, must not be `None`") + if self._configuration.client_side_validation and package_file is None: + raise ValueError("Invalid value for `package_file`, must not be `None`") # noqa: E501 self._package_file = package_file @property def republish(self): - """ - Gets the republish of this PackagesValidateuploadConda. - If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. + """Gets the republish of this PackagesValidateuploadConda. # noqa: E501 - :return: The republish of this PackagesValidateuploadConda. + If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. # noqa: E501 + + :return: The republish of this PackagesValidateuploadConda. # noqa: E501 :rtype: bool """ return self._republish @republish.setter def republish(self, republish): - """ - Sets the republish of this PackagesValidateuploadConda. - If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. + """Sets the republish of this PackagesValidateuploadConda. - :param republish: The republish of this PackagesValidateuploadConda. + If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. # noqa: E501 + + :param republish: The republish of this PackagesValidateuploadConda. # noqa: E501 :type: bool """ @@ -107,34 +111,32 @@ def republish(self, republish): @property def tags(self): - """ - Gets the tags of this PackagesValidateuploadConda. - A comma-separated values list of tags to add to the package. + """Gets the tags of this PackagesValidateuploadConda. # noqa: E501 - :return: The tags of this PackagesValidateuploadConda. + A comma-separated values list of tags to add to the package. # noqa: E501 + + :return: The tags of this PackagesValidateuploadConda. # noqa: E501 :rtype: str """ return self._tags @tags.setter def tags(self, tags): - """ - Sets the tags of this PackagesValidateuploadConda. - A comma-separated values list of tags to add to the package. + """Sets the tags of this PackagesValidateuploadConda. - :param tags: The tags of this PackagesValidateuploadConda. + A comma-separated values list of tags to add to the package. # noqa: E501 + + :param tags: The tags of this PackagesValidateuploadConda. # noqa: E501 :type: str """ self._tags = tags def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -151,32 +153,30 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(PackagesValidateuploadConda, dict): + for key, value in self.items(): + result[key] = value return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, PackagesValidateuploadConda): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other + """Returns true if both objects are not equal""" + if not isinstance(other, PackagesValidateuploadConda): + return True + + return self.to_dict() != other.to_dict() diff --git a/bindings/python/src/cloudsmith_api/models/packages_validateupload_cran.py b/bindings/python/src/cloudsmith_api/models/packages_validateupload_cran.py index b8391ae8..697d2786 100644 --- a/bindings/python/src/cloudsmith_api/models/packages_validateupload_cran.py +++ b/bindings/python/src/cloudsmith_api/models/packages_validateupload_cran.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -11,18 +11,20 @@ """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration class PackagesValidateuploadCran(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -42,64 +44,66 @@ class PackagesValidateuploadCran(object): 'tags': 'tags' } - def __init__(self, package_file=None, republish=None, tags=None): - """ - PackagesValidateuploadCran - a model defined in Swagger - """ + def __init__(self, package_file=None, republish=None, tags=None, _configuration=None): # noqa: E501 + """PackagesValidateuploadCran - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._package_file = None self._republish = None self._tags = None + self.discriminator = None self.package_file = package_file if republish is not None: - self.republish = republish + self.republish = republish if tags is not None: - self.tags = tags + self.tags = tags @property def package_file(self): - """ - Gets the package_file of this PackagesValidateuploadCran. - The primary file for the package. + """Gets the package_file of this PackagesValidateuploadCran. # noqa: E501 - :return: The package_file of this PackagesValidateuploadCran. + The primary file for the package. # noqa: E501 + + :return: The package_file of this PackagesValidateuploadCran. # noqa: E501 :rtype: str """ return self._package_file @package_file.setter def package_file(self, package_file): - """ - Sets the package_file of this PackagesValidateuploadCran. - The primary file for the package. + """Sets the package_file of this PackagesValidateuploadCran. - :param package_file: The package_file of this PackagesValidateuploadCran. + The primary file for the package. # noqa: E501 + + :param package_file: The package_file of this PackagesValidateuploadCran. # noqa: E501 :type: str """ - if package_file is None: - raise ValueError("Invalid value for `package_file`, must not be `None`") + if self._configuration.client_side_validation and package_file is None: + raise ValueError("Invalid value for `package_file`, must not be `None`") # noqa: E501 self._package_file = package_file @property def republish(self): - """ - Gets the republish of this PackagesValidateuploadCran. - If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. + """Gets the republish of this PackagesValidateuploadCran. # noqa: E501 - :return: The republish of this PackagesValidateuploadCran. + If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. # noqa: E501 + + :return: The republish of this PackagesValidateuploadCran. # noqa: E501 :rtype: bool """ return self._republish @republish.setter def republish(self, republish): - """ - Sets the republish of this PackagesValidateuploadCran. - If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. + """Sets the republish of this PackagesValidateuploadCran. - :param republish: The republish of this PackagesValidateuploadCran. + If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. # noqa: E501 + + :param republish: The republish of this PackagesValidateuploadCran. # noqa: E501 :type: bool """ @@ -107,34 +111,32 @@ def republish(self, republish): @property def tags(self): - """ - Gets the tags of this PackagesValidateuploadCran. - A comma-separated values list of tags to add to the package. + """Gets the tags of this PackagesValidateuploadCran. # noqa: E501 - :return: The tags of this PackagesValidateuploadCran. + A comma-separated values list of tags to add to the package. # noqa: E501 + + :return: The tags of this PackagesValidateuploadCran. # noqa: E501 :rtype: str """ return self._tags @tags.setter def tags(self, tags): - """ - Sets the tags of this PackagesValidateuploadCran. - A comma-separated values list of tags to add to the package. + """Sets the tags of this PackagesValidateuploadCran. - :param tags: The tags of this PackagesValidateuploadCran. + A comma-separated values list of tags to add to the package. # noqa: E501 + + :param tags: The tags of this PackagesValidateuploadCran. # noqa: E501 :type: str """ self._tags = tags def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -151,32 +153,30 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(PackagesValidateuploadCran, dict): + for key, value in self.items(): + result[key] = value return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, PackagesValidateuploadCran): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other + """Returns true if both objects are not equal""" + if not isinstance(other, PackagesValidateuploadCran): + return True + + return self.to_dict() != other.to_dict() diff --git a/bindings/python/src/cloudsmith_api/models/packages_validateupload_dart.py b/bindings/python/src/cloudsmith_api/models/packages_validateupload_dart.py index a7c9c184..8ae80fb8 100644 --- a/bindings/python/src/cloudsmith_api/models/packages_validateupload_dart.py +++ b/bindings/python/src/cloudsmith_api/models/packages_validateupload_dart.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -11,18 +11,20 @@ """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration class PackagesValidateuploadDart(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -42,64 +44,66 @@ class PackagesValidateuploadDart(object): 'tags': 'tags' } - def __init__(self, package_file=None, republish=None, tags=None): - """ - PackagesValidateuploadDart - a model defined in Swagger - """ + def __init__(self, package_file=None, republish=None, tags=None, _configuration=None): # noqa: E501 + """PackagesValidateuploadDart - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._package_file = None self._republish = None self._tags = None + self.discriminator = None self.package_file = package_file if republish is not None: - self.republish = republish + self.republish = republish if tags is not None: - self.tags = tags + self.tags = tags @property def package_file(self): - """ - Gets the package_file of this PackagesValidateuploadDart. - The primary file for the package. + """Gets the package_file of this PackagesValidateuploadDart. # noqa: E501 - :return: The package_file of this PackagesValidateuploadDart. + The primary file for the package. # noqa: E501 + + :return: The package_file of this PackagesValidateuploadDart. # noqa: E501 :rtype: str """ return self._package_file @package_file.setter def package_file(self, package_file): - """ - Sets the package_file of this PackagesValidateuploadDart. - The primary file for the package. + """Sets the package_file of this PackagesValidateuploadDart. - :param package_file: The package_file of this PackagesValidateuploadDart. + The primary file for the package. # noqa: E501 + + :param package_file: The package_file of this PackagesValidateuploadDart. # noqa: E501 :type: str """ - if package_file is None: - raise ValueError("Invalid value for `package_file`, must not be `None`") + if self._configuration.client_side_validation and package_file is None: + raise ValueError("Invalid value for `package_file`, must not be `None`") # noqa: E501 self._package_file = package_file @property def republish(self): - """ - Gets the republish of this PackagesValidateuploadDart. - If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. + """Gets the republish of this PackagesValidateuploadDart. # noqa: E501 - :return: The republish of this PackagesValidateuploadDart. + If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. # noqa: E501 + + :return: The republish of this PackagesValidateuploadDart. # noqa: E501 :rtype: bool """ return self._republish @republish.setter def republish(self, republish): - """ - Sets the republish of this PackagesValidateuploadDart. - If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. + """Sets the republish of this PackagesValidateuploadDart. - :param republish: The republish of this PackagesValidateuploadDart. + If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. # noqa: E501 + + :param republish: The republish of this PackagesValidateuploadDart. # noqa: E501 :type: bool """ @@ -107,34 +111,32 @@ def republish(self, republish): @property def tags(self): - """ - Gets the tags of this PackagesValidateuploadDart. - A comma-separated values list of tags to add to the package. + """Gets the tags of this PackagesValidateuploadDart. # noqa: E501 - :return: The tags of this PackagesValidateuploadDart. + A comma-separated values list of tags to add to the package. # noqa: E501 + + :return: The tags of this PackagesValidateuploadDart. # noqa: E501 :rtype: str """ return self._tags @tags.setter def tags(self, tags): - """ - Sets the tags of this PackagesValidateuploadDart. - A comma-separated values list of tags to add to the package. + """Sets the tags of this PackagesValidateuploadDart. - :param tags: The tags of this PackagesValidateuploadDart. + A comma-separated values list of tags to add to the package. # noqa: E501 + + :param tags: The tags of this PackagesValidateuploadDart. # noqa: E501 :type: str """ self._tags = tags def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -151,32 +153,30 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(PackagesValidateuploadDart, dict): + for key, value in self.items(): + result[key] = value return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, PackagesValidateuploadDart): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other + """Returns true if both objects are not equal""" + if not isinstance(other, PackagesValidateuploadDart): + return True + + return self.to_dict() != other.to_dict() diff --git a/bindings/python/src/cloudsmith_api/models/packages_validateupload_deb.py b/bindings/python/src/cloudsmith_api/models/packages_validateupload_deb.py index 2752021e..91356720 100644 --- a/bindings/python/src/cloudsmith_api/models/packages_validateupload_deb.py +++ b/bindings/python/src/cloudsmith_api/models/packages_validateupload_deb.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -11,18 +11,20 @@ """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration class PackagesValidateuploadDeb(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -48,10 +50,11 @@ class PackagesValidateuploadDeb(object): 'tags': 'tags' } - def __init__(self, changes_file=None, distribution=None, package_file=None, republish=None, sources_file=None, tags=None): - """ - PackagesValidateuploadDeb - a model defined in Swagger - """ + def __init__(self, changes_file=None, distribution=None, package_file=None, republish=None, sources_file=None, tags=None, _configuration=None): # noqa: E501 + """PackagesValidateuploadDeb - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._changes_file = None self._distribution = None @@ -59,36 +62,37 @@ def __init__(self, changes_file=None, distribution=None, package_file=None, repu self._republish = None self._sources_file = None self._tags = None + self.discriminator = None if changes_file is not None: - self.changes_file = changes_file + self.changes_file = changes_file self.distribution = distribution self.package_file = package_file if republish is not None: - self.republish = republish + self.republish = republish if sources_file is not None: - self.sources_file = sources_file + self.sources_file = sources_file if tags is not None: - self.tags = tags + self.tags = tags @property def changes_file(self): - """ - Gets the changes_file of this PackagesValidateuploadDeb. - The changes archive containing the changes made to the source and debian packaging files + """Gets the changes_file of this PackagesValidateuploadDeb. # noqa: E501 + + The changes archive containing the changes made to the source and debian packaging files # noqa: E501 - :return: The changes_file of this PackagesValidateuploadDeb. + :return: The changes_file of this PackagesValidateuploadDeb. # noqa: E501 :rtype: str """ return self._changes_file @changes_file.setter def changes_file(self, changes_file): - """ - Sets the changes_file of this PackagesValidateuploadDeb. - The changes archive containing the changes made to the source and debian packaging files + """Sets the changes_file of this PackagesValidateuploadDeb. + + The changes archive containing the changes made to the source and debian packaging files # noqa: E501 - :param changes_file: The changes_file of this PackagesValidateuploadDeb. + :param changes_file: The changes_file of this PackagesValidateuploadDeb. # noqa: E501 :type: str """ @@ -96,72 +100,72 @@ def changes_file(self, changes_file): @property def distribution(self): - """ - Gets the distribution of this PackagesValidateuploadDeb. - The distribution to store the package for. + """Gets the distribution of this PackagesValidateuploadDeb. # noqa: E501 + + The distribution to store the package for. # noqa: E501 - :return: The distribution of this PackagesValidateuploadDeb. + :return: The distribution of this PackagesValidateuploadDeb. # noqa: E501 :rtype: str """ return self._distribution @distribution.setter def distribution(self, distribution): - """ - Sets the distribution of this PackagesValidateuploadDeb. - The distribution to store the package for. + """Sets the distribution of this PackagesValidateuploadDeb. - :param distribution: The distribution of this PackagesValidateuploadDeb. + The distribution to store the package for. # noqa: E501 + + :param distribution: The distribution of this PackagesValidateuploadDeb. # noqa: E501 :type: str """ - if distribution is None: - raise ValueError("Invalid value for `distribution`, must not be `None`") + if self._configuration.client_side_validation and distribution is None: + raise ValueError("Invalid value for `distribution`, must not be `None`") # noqa: E501 self._distribution = distribution @property def package_file(self): - """ - Gets the package_file of this PackagesValidateuploadDeb. - The primary file for the package. + """Gets the package_file of this PackagesValidateuploadDeb. # noqa: E501 + + The primary file for the package. # noqa: E501 - :return: The package_file of this PackagesValidateuploadDeb. + :return: The package_file of this PackagesValidateuploadDeb. # noqa: E501 :rtype: str """ return self._package_file @package_file.setter def package_file(self, package_file): - """ - Sets the package_file of this PackagesValidateuploadDeb. - The primary file for the package. + """Sets the package_file of this PackagesValidateuploadDeb. + + The primary file for the package. # noqa: E501 - :param package_file: The package_file of this PackagesValidateuploadDeb. + :param package_file: The package_file of this PackagesValidateuploadDeb. # noqa: E501 :type: str """ - if package_file is None: - raise ValueError("Invalid value for `package_file`, must not be `None`") + if self._configuration.client_side_validation and package_file is None: + raise ValueError("Invalid value for `package_file`, must not be `None`") # noqa: E501 self._package_file = package_file @property def republish(self): - """ - Gets the republish of this PackagesValidateuploadDeb. - If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. + """Gets the republish of this PackagesValidateuploadDeb. # noqa: E501 - :return: The republish of this PackagesValidateuploadDeb. + If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. # noqa: E501 + + :return: The republish of this PackagesValidateuploadDeb. # noqa: E501 :rtype: bool """ return self._republish @republish.setter def republish(self, republish): - """ - Sets the republish of this PackagesValidateuploadDeb. - If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. + """Sets the republish of this PackagesValidateuploadDeb. - :param republish: The republish of this PackagesValidateuploadDeb. + If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. # noqa: E501 + + :param republish: The republish of this PackagesValidateuploadDeb. # noqa: E501 :type: bool """ @@ -169,22 +173,22 @@ def republish(self, republish): @property def sources_file(self): - """ - Gets the sources_file of this PackagesValidateuploadDeb. - The sources archive containing the source code for the binary + """Gets the sources_file of this PackagesValidateuploadDeb. # noqa: E501 + + The sources archive containing the source code for the binary # noqa: E501 - :return: The sources_file of this PackagesValidateuploadDeb. + :return: The sources_file of this PackagesValidateuploadDeb. # noqa: E501 :rtype: str """ return self._sources_file @sources_file.setter def sources_file(self, sources_file): - """ - Sets the sources_file of this PackagesValidateuploadDeb. - The sources archive containing the source code for the binary + """Sets the sources_file of this PackagesValidateuploadDeb. + + The sources archive containing the source code for the binary # noqa: E501 - :param sources_file: The sources_file of this PackagesValidateuploadDeb. + :param sources_file: The sources_file of this PackagesValidateuploadDeb. # noqa: E501 :type: str """ @@ -192,34 +196,32 @@ def sources_file(self, sources_file): @property def tags(self): - """ - Gets the tags of this PackagesValidateuploadDeb. - A comma-separated values list of tags to add to the package. + """Gets the tags of this PackagesValidateuploadDeb. # noqa: E501 - :return: The tags of this PackagesValidateuploadDeb. + A comma-separated values list of tags to add to the package. # noqa: E501 + + :return: The tags of this PackagesValidateuploadDeb. # noqa: E501 :rtype: str """ return self._tags @tags.setter def tags(self, tags): - """ - Sets the tags of this PackagesValidateuploadDeb. - A comma-separated values list of tags to add to the package. + """Sets the tags of this PackagesValidateuploadDeb. + + A comma-separated values list of tags to add to the package. # noqa: E501 - :param tags: The tags of this PackagesValidateuploadDeb. + :param tags: The tags of this PackagesValidateuploadDeb. # noqa: E501 :type: str """ self._tags = tags def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -236,32 +238,30 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(PackagesValidateuploadDeb, dict): + for key, value in self.items(): + result[key] = value return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, PackagesValidateuploadDeb): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other + """Returns true if both objects are not equal""" + if not isinstance(other, PackagesValidateuploadDeb): + return True + + return self.to_dict() != other.to_dict() diff --git a/bindings/python/src/cloudsmith_api/models/packages_validateupload_docker.py b/bindings/python/src/cloudsmith_api/models/packages_validateupload_docker.py index f63b566d..9a29494f 100644 --- a/bindings/python/src/cloudsmith_api/models/packages_validateupload_docker.py +++ b/bindings/python/src/cloudsmith_api/models/packages_validateupload_docker.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -11,18 +11,20 @@ """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration class PackagesValidateuploadDocker(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -42,64 +44,66 @@ class PackagesValidateuploadDocker(object): 'tags': 'tags' } - def __init__(self, package_file=None, republish=None, tags=None): - """ - PackagesValidateuploadDocker - a model defined in Swagger - """ + def __init__(self, package_file=None, republish=None, tags=None, _configuration=None): # noqa: E501 + """PackagesValidateuploadDocker - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._package_file = None self._republish = None self._tags = None + self.discriminator = None self.package_file = package_file if republish is not None: - self.republish = republish + self.republish = republish if tags is not None: - self.tags = tags + self.tags = tags @property def package_file(self): - """ - Gets the package_file of this PackagesValidateuploadDocker. - The primary file for the package. + """Gets the package_file of this PackagesValidateuploadDocker. # noqa: E501 - :return: The package_file of this PackagesValidateuploadDocker. + The primary file for the package. # noqa: E501 + + :return: The package_file of this PackagesValidateuploadDocker. # noqa: E501 :rtype: str """ return self._package_file @package_file.setter def package_file(self, package_file): - """ - Sets the package_file of this PackagesValidateuploadDocker. - The primary file for the package. + """Sets the package_file of this PackagesValidateuploadDocker. - :param package_file: The package_file of this PackagesValidateuploadDocker. + The primary file for the package. # noqa: E501 + + :param package_file: The package_file of this PackagesValidateuploadDocker. # noqa: E501 :type: str """ - if package_file is None: - raise ValueError("Invalid value for `package_file`, must not be `None`") + if self._configuration.client_side_validation and package_file is None: + raise ValueError("Invalid value for `package_file`, must not be `None`") # noqa: E501 self._package_file = package_file @property def republish(self): - """ - Gets the republish of this PackagesValidateuploadDocker. - If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. + """Gets the republish of this PackagesValidateuploadDocker. # noqa: E501 - :return: The republish of this PackagesValidateuploadDocker. + If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. # noqa: E501 + + :return: The republish of this PackagesValidateuploadDocker. # noqa: E501 :rtype: bool """ return self._republish @republish.setter def republish(self, republish): - """ - Sets the republish of this PackagesValidateuploadDocker. - If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. + """Sets the republish of this PackagesValidateuploadDocker. - :param republish: The republish of this PackagesValidateuploadDocker. + If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. # noqa: E501 + + :param republish: The republish of this PackagesValidateuploadDocker. # noqa: E501 :type: bool """ @@ -107,34 +111,32 @@ def republish(self, republish): @property def tags(self): - """ - Gets the tags of this PackagesValidateuploadDocker. - A comma-separated values list of tags to add to the package. + """Gets the tags of this PackagesValidateuploadDocker. # noqa: E501 - :return: The tags of this PackagesValidateuploadDocker. + A comma-separated values list of tags to add to the package. # noqa: E501 + + :return: The tags of this PackagesValidateuploadDocker. # noqa: E501 :rtype: str """ return self._tags @tags.setter def tags(self, tags): - """ - Sets the tags of this PackagesValidateuploadDocker. - A comma-separated values list of tags to add to the package. + """Sets the tags of this PackagesValidateuploadDocker. - :param tags: The tags of this PackagesValidateuploadDocker. + A comma-separated values list of tags to add to the package. # noqa: E501 + + :param tags: The tags of this PackagesValidateuploadDocker. # noqa: E501 :type: str """ self._tags = tags def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -151,32 +153,30 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(PackagesValidateuploadDocker, dict): + for key, value in self.items(): + result[key] = value return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, PackagesValidateuploadDocker): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other + """Returns true if both objects are not equal""" + if not isinstance(other, PackagesValidateuploadDocker): + return True + + return self.to_dict() != other.to_dict() diff --git a/bindings/python/src/cloudsmith_api/models/packages_validateupload_go.py b/bindings/python/src/cloudsmith_api/models/packages_validateupload_go.py index c6712bc9..c5588534 100644 --- a/bindings/python/src/cloudsmith_api/models/packages_validateupload_go.py +++ b/bindings/python/src/cloudsmith_api/models/packages_validateupload_go.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -11,18 +11,20 @@ """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration class PackagesValidateuploadGo(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -42,64 +44,66 @@ class PackagesValidateuploadGo(object): 'tags': 'tags' } - def __init__(self, package_file=None, republish=None, tags=None): - """ - PackagesValidateuploadGo - a model defined in Swagger - """ + def __init__(self, package_file=None, republish=None, tags=None, _configuration=None): # noqa: E501 + """PackagesValidateuploadGo - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._package_file = None self._republish = None self._tags = None + self.discriminator = None self.package_file = package_file if republish is not None: - self.republish = republish + self.republish = republish if tags is not None: - self.tags = tags + self.tags = tags @property def package_file(self): - """ - Gets the package_file of this PackagesValidateuploadGo. - The primary file for the package. + """Gets the package_file of this PackagesValidateuploadGo. # noqa: E501 - :return: The package_file of this PackagesValidateuploadGo. + The primary file for the package. # noqa: E501 + + :return: The package_file of this PackagesValidateuploadGo. # noqa: E501 :rtype: str """ return self._package_file @package_file.setter def package_file(self, package_file): - """ - Sets the package_file of this PackagesValidateuploadGo. - The primary file for the package. + """Sets the package_file of this PackagesValidateuploadGo. - :param package_file: The package_file of this PackagesValidateuploadGo. + The primary file for the package. # noqa: E501 + + :param package_file: The package_file of this PackagesValidateuploadGo. # noqa: E501 :type: str """ - if package_file is None: - raise ValueError("Invalid value for `package_file`, must not be `None`") + if self._configuration.client_side_validation and package_file is None: + raise ValueError("Invalid value for `package_file`, must not be `None`") # noqa: E501 self._package_file = package_file @property def republish(self): - """ - Gets the republish of this PackagesValidateuploadGo. - If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. + """Gets the republish of this PackagesValidateuploadGo. # noqa: E501 - :return: The republish of this PackagesValidateuploadGo. + If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. # noqa: E501 + + :return: The republish of this PackagesValidateuploadGo. # noqa: E501 :rtype: bool """ return self._republish @republish.setter def republish(self, republish): - """ - Sets the republish of this PackagesValidateuploadGo. - If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. + """Sets the republish of this PackagesValidateuploadGo. - :param republish: The republish of this PackagesValidateuploadGo. + If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. # noqa: E501 + + :param republish: The republish of this PackagesValidateuploadGo. # noqa: E501 :type: bool """ @@ -107,34 +111,32 @@ def republish(self, republish): @property def tags(self): - """ - Gets the tags of this PackagesValidateuploadGo. - A comma-separated values list of tags to add to the package. + """Gets the tags of this PackagesValidateuploadGo. # noqa: E501 - :return: The tags of this PackagesValidateuploadGo. + A comma-separated values list of tags to add to the package. # noqa: E501 + + :return: The tags of this PackagesValidateuploadGo. # noqa: E501 :rtype: str """ return self._tags @tags.setter def tags(self, tags): - """ - Sets the tags of this PackagesValidateuploadGo. - A comma-separated values list of tags to add to the package. + """Sets the tags of this PackagesValidateuploadGo. - :param tags: The tags of this PackagesValidateuploadGo. + A comma-separated values list of tags to add to the package. # noqa: E501 + + :param tags: The tags of this PackagesValidateuploadGo. # noqa: E501 :type: str """ self._tags = tags def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -151,32 +153,30 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(PackagesValidateuploadGo, dict): + for key, value in self.items(): + result[key] = value return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, PackagesValidateuploadGo): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other + """Returns true if both objects are not equal""" + if not isinstance(other, PackagesValidateuploadGo): + return True + + return self.to_dict() != other.to_dict() diff --git a/bindings/python/src/cloudsmith_api/models/packages_validateupload_helm.py b/bindings/python/src/cloudsmith_api/models/packages_validateupload_helm.py index f87b1bd8..ceb47e32 100644 --- a/bindings/python/src/cloudsmith_api/models/packages_validateupload_helm.py +++ b/bindings/python/src/cloudsmith_api/models/packages_validateupload_helm.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -11,18 +11,20 @@ """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration class PackagesValidateuploadHelm(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -42,64 +44,66 @@ class PackagesValidateuploadHelm(object): 'tags': 'tags' } - def __init__(self, package_file=None, republish=None, tags=None): - """ - PackagesValidateuploadHelm - a model defined in Swagger - """ + def __init__(self, package_file=None, republish=None, tags=None, _configuration=None): # noqa: E501 + """PackagesValidateuploadHelm - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._package_file = None self._republish = None self._tags = None + self.discriminator = None self.package_file = package_file if republish is not None: - self.republish = republish + self.republish = republish if tags is not None: - self.tags = tags + self.tags = tags @property def package_file(self): - """ - Gets the package_file of this PackagesValidateuploadHelm. - The primary file for the package. + """Gets the package_file of this PackagesValidateuploadHelm. # noqa: E501 - :return: The package_file of this PackagesValidateuploadHelm. + The primary file for the package. # noqa: E501 + + :return: The package_file of this PackagesValidateuploadHelm. # noqa: E501 :rtype: str """ return self._package_file @package_file.setter def package_file(self, package_file): - """ - Sets the package_file of this PackagesValidateuploadHelm. - The primary file for the package. + """Sets the package_file of this PackagesValidateuploadHelm. - :param package_file: The package_file of this PackagesValidateuploadHelm. + The primary file for the package. # noqa: E501 + + :param package_file: The package_file of this PackagesValidateuploadHelm. # noqa: E501 :type: str """ - if package_file is None: - raise ValueError("Invalid value for `package_file`, must not be `None`") + if self._configuration.client_side_validation and package_file is None: + raise ValueError("Invalid value for `package_file`, must not be `None`") # noqa: E501 self._package_file = package_file @property def republish(self): - """ - Gets the republish of this PackagesValidateuploadHelm. - If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. + """Gets the republish of this PackagesValidateuploadHelm. # noqa: E501 - :return: The republish of this PackagesValidateuploadHelm. + If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. # noqa: E501 + + :return: The republish of this PackagesValidateuploadHelm. # noqa: E501 :rtype: bool """ return self._republish @republish.setter def republish(self, republish): - """ - Sets the republish of this PackagesValidateuploadHelm. - If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. + """Sets the republish of this PackagesValidateuploadHelm. - :param republish: The republish of this PackagesValidateuploadHelm. + If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. # noqa: E501 + + :param republish: The republish of this PackagesValidateuploadHelm. # noqa: E501 :type: bool """ @@ -107,34 +111,32 @@ def republish(self, republish): @property def tags(self): - """ - Gets the tags of this PackagesValidateuploadHelm. - A comma-separated values list of tags to add to the package. + """Gets the tags of this PackagesValidateuploadHelm. # noqa: E501 - :return: The tags of this PackagesValidateuploadHelm. + A comma-separated values list of tags to add to the package. # noqa: E501 + + :return: The tags of this PackagesValidateuploadHelm. # noqa: E501 :rtype: str """ return self._tags @tags.setter def tags(self, tags): - """ - Sets the tags of this PackagesValidateuploadHelm. - A comma-separated values list of tags to add to the package. + """Sets the tags of this PackagesValidateuploadHelm. - :param tags: The tags of this PackagesValidateuploadHelm. + A comma-separated values list of tags to add to the package. # noqa: E501 + + :param tags: The tags of this PackagesValidateuploadHelm. # noqa: E501 :type: str """ self._tags = tags def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -151,32 +153,30 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(PackagesValidateuploadHelm, dict): + for key, value in self.items(): + result[key] = value return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, PackagesValidateuploadHelm): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other + """Returns true if both objects are not equal""" + if not isinstance(other, PackagesValidateuploadHelm): + return True + + return self.to_dict() != other.to_dict() diff --git a/bindings/python/src/cloudsmith_api/models/packages_validateupload_luarocks.py b/bindings/python/src/cloudsmith_api/models/packages_validateupload_luarocks.py index acfe0534..46fe56c2 100644 --- a/bindings/python/src/cloudsmith_api/models/packages_validateupload_luarocks.py +++ b/bindings/python/src/cloudsmith_api/models/packages_validateupload_luarocks.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -11,18 +11,20 @@ """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration class PackagesValidateuploadLuarocks(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -42,64 +44,66 @@ class PackagesValidateuploadLuarocks(object): 'tags': 'tags' } - def __init__(self, package_file=None, republish=None, tags=None): - """ - PackagesValidateuploadLuarocks - a model defined in Swagger - """ + def __init__(self, package_file=None, republish=None, tags=None, _configuration=None): # noqa: E501 + """PackagesValidateuploadLuarocks - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._package_file = None self._republish = None self._tags = None + self.discriminator = None self.package_file = package_file if republish is not None: - self.republish = republish + self.republish = republish if tags is not None: - self.tags = tags + self.tags = tags @property def package_file(self): - """ - Gets the package_file of this PackagesValidateuploadLuarocks. - The primary file for the package. + """Gets the package_file of this PackagesValidateuploadLuarocks. # noqa: E501 - :return: The package_file of this PackagesValidateuploadLuarocks. + The primary file for the package. # noqa: E501 + + :return: The package_file of this PackagesValidateuploadLuarocks. # noqa: E501 :rtype: str """ return self._package_file @package_file.setter def package_file(self, package_file): - """ - Sets the package_file of this PackagesValidateuploadLuarocks. - The primary file for the package. + """Sets the package_file of this PackagesValidateuploadLuarocks. - :param package_file: The package_file of this PackagesValidateuploadLuarocks. + The primary file for the package. # noqa: E501 + + :param package_file: The package_file of this PackagesValidateuploadLuarocks. # noqa: E501 :type: str """ - if package_file is None: - raise ValueError("Invalid value for `package_file`, must not be `None`") + if self._configuration.client_side_validation and package_file is None: + raise ValueError("Invalid value for `package_file`, must not be `None`") # noqa: E501 self._package_file = package_file @property def republish(self): - """ - Gets the republish of this PackagesValidateuploadLuarocks. - If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. + """Gets the republish of this PackagesValidateuploadLuarocks. # noqa: E501 - :return: The republish of this PackagesValidateuploadLuarocks. + If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. # noqa: E501 + + :return: The republish of this PackagesValidateuploadLuarocks. # noqa: E501 :rtype: bool """ return self._republish @republish.setter def republish(self, republish): - """ - Sets the republish of this PackagesValidateuploadLuarocks. - If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. + """Sets the republish of this PackagesValidateuploadLuarocks. - :param republish: The republish of this PackagesValidateuploadLuarocks. + If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. # noqa: E501 + + :param republish: The republish of this PackagesValidateuploadLuarocks. # noqa: E501 :type: bool """ @@ -107,34 +111,32 @@ def republish(self, republish): @property def tags(self): - """ - Gets the tags of this PackagesValidateuploadLuarocks. - A comma-separated values list of tags to add to the package. + """Gets the tags of this PackagesValidateuploadLuarocks. # noqa: E501 - :return: The tags of this PackagesValidateuploadLuarocks. + A comma-separated values list of tags to add to the package. # noqa: E501 + + :return: The tags of this PackagesValidateuploadLuarocks. # noqa: E501 :rtype: str """ return self._tags @tags.setter def tags(self, tags): - """ - Sets the tags of this PackagesValidateuploadLuarocks. - A comma-separated values list of tags to add to the package. + """Sets the tags of this PackagesValidateuploadLuarocks. - :param tags: The tags of this PackagesValidateuploadLuarocks. + A comma-separated values list of tags to add to the package. # noqa: E501 + + :param tags: The tags of this PackagesValidateuploadLuarocks. # noqa: E501 :type: str """ self._tags = tags def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -151,32 +153,30 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(PackagesValidateuploadLuarocks, dict): + for key, value in self.items(): + result[key] = value return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, PackagesValidateuploadLuarocks): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other + """Returns true if both objects are not equal""" + if not isinstance(other, PackagesValidateuploadLuarocks): + return True + + return self.to_dict() != other.to_dict() diff --git a/bindings/python/src/cloudsmith_api/models/packages_validateupload_maven.py b/bindings/python/src/cloudsmith_api/models/packages_validateupload_maven.py index 3438f5ca..e6ec1d22 100644 --- a/bindings/python/src/cloudsmith_api/models/packages_validateupload_maven.py +++ b/bindings/python/src/cloudsmith_api/models/packages_validateupload_maven.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -11,18 +11,20 @@ """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration class PackagesValidateuploadMaven(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -58,10 +60,11 @@ class PackagesValidateuploadMaven(object): 'version': 'version' } - def __init__(self, artifact_id=None, group_id=None, javadoc_file=None, package_file=None, packaging=None, pom_file=None, republish=None, sources_file=None, tags=None, tests_file=None, version=None): - """ - PackagesValidateuploadMaven - a model defined in Swagger - """ + def __init__(self, artifact_id=None, group_id=None, javadoc_file=None, package_file=None, packaging=None, pom_file=None, republish=None, sources_file=None, tags=None, tests_file=None, version=None, _configuration=None): # noqa: E501 + """PackagesValidateuploadMaven - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._artifact_id = None self._group_id = None @@ -74,47 +77,48 @@ def __init__(self, artifact_id=None, group_id=None, javadoc_file=None, package_f self._tags = None self._tests_file = None self._version = None + self.discriminator = None if artifact_id is not None: - self.artifact_id = artifact_id + self.artifact_id = artifact_id if group_id is not None: - self.group_id = group_id + self.group_id = group_id if javadoc_file is not None: - self.javadoc_file = javadoc_file + self.javadoc_file = javadoc_file self.package_file = package_file if packaging is not None: - self.packaging = packaging + self.packaging = packaging if pom_file is not None: - self.pom_file = pom_file + self.pom_file = pom_file if republish is not None: - self.republish = republish + self.republish = republish if sources_file is not None: - self.sources_file = sources_file + self.sources_file = sources_file if tags is not None: - self.tags = tags + self.tags = tags if tests_file is not None: - self.tests_file = tests_file + self.tests_file = tests_file if version is not None: - self.version = version + self.version = version @property def artifact_id(self): - """ - Gets the artifact_id of this PackagesValidateuploadMaven. - The ID of the artifact. + """Gets the artifact_id of this PackagesValidateuploadMaven. # noqa: E501 - :return: The artifact_id of this PackagesValidateuploadMaven. + The ID of the artifact. # noqa: E501 + + :return: The artifact_id of this PackagesValidateuploadMaven. # noqa: E501 :rtype: str """ return self._artifact_id @artifact_id.setter def artifact_id(self, artifact_id): - """ - Sets the artifact_id of this PackagesValidateuploadMaven. - The ID of the artifact. + """Sets the artifact_id of this PackagesValidateuploadMaven. - :param artifact_id: The artifact_id of this PackagesValidateuploadMaven. + The ID of the artifact. # noqa: E501 + + :param artifact_id: The artifact_id of this PackagesValidateuploadMaven. # noqa: E501 :type: str """ @@ -122,22 +126,22 @@ def artifact_id(self, artifact_id): @property def group_id(self): - """ - Gets the group_id of this PackagesValidateuploadMaven. - Artifact's group ID. + """Gets the group_id of this PackagesValidateuploadMaven. # noqa: E501 - :return: The group_id of this PackagesValidateuploadMaven. + Artifact's group ID. # noqa: E501 + + :return: The group_id of this PackagesValidateuploadMaven. # noqa: E501 :rtype: str """ return self._group_id @group_id.setter def group_id(self, group_id): - """ - Sets the group_id of this PackagesValidateuploadMaven. - Artifact's group ID. + """Sets the group_id of this PackagesValidateuploadMaven. - :param group_id: The group_id of this PackagesValidateuploadMaven. + Artifact's group ID. # noqa: E501 + + :param group_id: The group_id of this PackagesValidateuploadMaven. # noqa: E501 :type: str """ @@ -145,22 +149,22 @@ def group_id(self, group_id): @property def javadoc_file(self): - """ - Gets the javadoc_file of this PackagesValidateuploadMaven. - Adds bundled Java documentation to the Maven package + """Gets the javadoc_file of this PackagesValidateuploadMaven. # noqa: E501 - :return: The javadoc_file of this PackagesValidateuploadMaven. + Adds bundled Java documentation to the Maven package # noqa: E501 + + :return: The javadoc_file of this PackagesValidateuploadMaven. # noqa: E501 :rtype: str """ return self._javadoc_file @javadoc_file.setter def javadoc_file(self, javadoc_file): - """ - Sets the javadoc_file of this PackagesValidateuploadMaven. - Adds bundled Java documentation to the Maven package + """Sets the javadoc_file of this PackagesValidateuploadMaven. - :param javadoc_file: The javadoc_file of this PackagesValidateuploadMaven. + Adds bundled Java documentation to the Maven package # noqa: E501 + + :param javadoc_file: The javadoc_file of this PackagesValidateuploadMaven. # noqa: E501 :type: str """ @@ -168,47 +172,47 @@ def javadoc_file(self, javadoc_file): @property def package_file(self): - """ - Gets the package_file of this PackagesValidateuploadMaven. - The primary file for the package. + """Gets the package_file of this PackagesValidateuploadMaven. # noqa: E501 - :return: The package_file of this PackagesValidateuploadMaven. + The primary file for the package. # noqa: E501 + + :return: The package_file of this PackagesValidateuploadMaven. # noqa: E501 :rtype: str """ return self._package_file @package_file.setter def package_file(self, package_file): - """ - Sets the package_file of this PackagesValidateuploadMaven. - The primary file for the package. + """Sets the package_file of this PackagesValidateuploadMaven. - :param package_file: The package_file of this PackagesValidateuploadMaven. + The primary file for the package. # noqa: E501 + + :param package_file: The package_file of this PackagesValidateuploadMaven. # noqa: E501 :type: str """ - if package_file is None: - raise ValueError("Invalid value for `package_file`, must not be `None`") + if self._configuration.client_side_validation and package_file is None: + raise ValueError("Invalid value for `package_file`, must not be `None`") # noqa: E501 self._package_file = package_file @property def packaging(self): - """ - Gets the packaging of this PackagesValidateuploadMaven. - Artifact's Maven packaging type. + """Gets the packaging of this PackagesValidateuploadMaven. # noqa: E501 - :return: The packaging of this PackagesValidateuploadMaven. + Artifact's Maven packaging type. # noqa: E501 + + :return: The packaging of this PackagesValidateuploadMaven. # noqa: E501 :rtype: str """ return self._packaging @packaging.setter def packaging(self, packaging): - """ - Sets the packaging of this PackagesValidateuploadMaven. - Artifact's Maven packaging type. + """Sets the packaging of this PackagesValidateuploadMaven. - :param packaging: The packaging of this PackagesValidateuploadMaven. + Artifact's Maven packaging type. # noqa: E501 + + :param packaging: The packaging of this PackagesValidateuploadMaven. # noqa: E501 :type: str """ @@ -216,22 +220,22 @@ def packaging(self, packaging): @property def pom_file(self): - """ - Gets the pom_file of this PackagesValidateuploadMaven. - The POM file is an XML file containing the Maven coordinates. + """Gets the pom_file of this PackagesValidateuploadMaven. # noqa: E501 - :return: The pom_file of this PackagesValidateuploadMaven. + The POM file is an XML file containing the Maven coordinates. # noqa: E501 + + :return: The pom_file of this PackagesValidateuploadMaven. # noqa: E501 :rtype: str """ return self._pom_file @pom_file.setter def pom_file(self, pom_file): - """ - Sets the pom_file of this PackagesValidateuploadMaven. - The POM file is an XML file containing the Maven coordinates. + """Sets the pom_file of this PackagesValidateuploadMaven. - :param pom_file: The pom_file of this PackagesValidateuploadMaven. + The POM file is an XML file containing the Maven coordinates. # noqa: E501 + + :param pom_file: The pom_file of this PackagesValidateuploadMaven. # noqa: E501 :type: str """ @@ -239,22 +243,22 @@ def pom_file(self, pom_file): @property def republish(self): - """ - Gets the republish of this PackagesValidateuploadMaven. - If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. + """Gets the republish of this PackagesValidateuploadMaven. # noqa: E501 - :return: The republish of this PackagesValidateuploadMaven. + If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. # noqa: E501 + + :return: The republish of this PackagesValidateuploadMaven. # noqa: E501 :rtype: bool """ return self._republish @republish.setter def republish(self, republish): - """ - Sets the republish of this PackagesValidateuploadMaven. - If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. + """Sets the republish of this PackagesValidateuploadMaven. - :param republish: The republish of this PackagesValidateuploadMaven. + If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. # noqa: E501 + + :param republish: The republish of this PackagesValidateuploadMaven. # noqa: E501 :type: bool """ @@ -262,22 +266,22 @@ def republish(self, republish): @property def sources_file(self): - """ - Gets the sources_file of this PackagesValidateuploadMaven. - Adds bundled Java source code to the Maven package. + """Gets the sources_file of this PackagesValidateuploadMaven. # noqa: E501 - :return: The sources_file of this PackagesValidateuploadMaven. + Adds bundled Java source code to the Maven package. # noqa: E501 + + :return: The sources_file of this PackagesValidateuploadMaven. # noqa: E501 :rtype: str """ return self._sources_file @sources_file.setter def sources_file(self, sources_file): - """ - Sets the sources_file of this PackagesValidateuploadMaven. - Adds bundled Java source code to the Maven package. + """Sets the sources_file of this PackagesValidateuploadMaven. - :param sources_file: The sources_file of this PackagesValidateuploadMaven. + Adds bundled Java source code to the Maven package. # noqa: E501 + + :param sources_file: The sources_file of this PackagesValidateuploadMaven. # noqa: E501 :type: str """ @@ -285,22 +289,22 @@ def sources_file(self, sources_file): @property def tags(self): - """ - Gets the tags of this PackagesValidateuploadMaven. - A comma-separated values list of tags to add to the package. + """Gets the tags of this PackagesValidateuploadMaven. # noqa: E501 - :return: The tags of this PackagesValidateuploadMaven. + A comma-separated values list of tags to add to the package. # noqa: E501 + + :return: The tags of this PackagesValidateuploadMaven. # noqa: E501 :rtype: str """ return self._tags @tags.setter def tags(self, tags): - """ - Sets the tags of this PackagesValidateuploadMaven. - A comma-separated values list of tags to add to the package. + """Sets the tags of this PackagesValidateuploadMaven. - :param tags: The tags of this PackagesValidateuploadMaven. + A comma-separated values list of tags to add to the package. # noqa: E501 + + :param tags: The tags of this PackagesValidateuploadMaven. # noqa: E501 :type: str """ @@ -308,22 +312,22 @@ def tags(self, tags): @property def tests_file(self): - """ - Gets the tests_file of this PackagesValidateuploadMaven. - Adds bundled Java tests to the Maven package. + """Gets the tests_file of this PackagesValidateuploadMaven. # noqa: E501 - :return: The tests_file of this PackagesValidateuploadMaven. + Adds bundled Java tests to the Maven package. # noqa: E501 + + :return: The tests_file of this PackagesValidateuploadMaven. # noqa: E501 :rtype: str """ return self._tests_file @tests_file.setter def tests_file(self, tests_file): - """ - Sets the tests_file of this PackagesValidateuploadMaven. - Adds bundled Java tests to the Maven package. + """Sets the tests_file of this PackagesValidateuploadMaven. - :param tests_file: The tests_file of this PackagesValidateuploadMaven. + Adds bundled Java tests to the Maven package. # noqa: E501 + + :param tests_file: The tests_file of this PackagesValidateuploadMaven. # noqa: E501 :type: str """ @@ -331,34 +335,32 @@ def tests_file(self, tests_file): @property def version(self): - """ - Gets the version of this PackagesValidateuploadMaven. - The raw version for this package. + """Gets the version of this PackagesValidateuploadMaven. # noqa: E501 - :return: The version of this PackagesValidateuploadMaven. + The raw version for this package. # noqa: E501 + + :return: The version of this PackagesValidateuploadMaven. # noqa: E501 :rtype: str """ return self._version @version.setter def version(self, version): - """ - Sets the version of this PackagesValidateuploadMaven. - The raw version for this package. + """Sets the version of this PackagesValidateuploadMaven. - :param version: The version of this PackagesValidateuploadMaven. + The raw version for this package. # noqa: E501 + + :param version: The version of this PackagesValidateuploadMaven. # noqa: E501 :type: str """ self._version = version def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -375,32 +377,30 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(PackagesValidateuploadMaven, dict): + for key, value in self.items(): + result[key] = value return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, PackagesValidateuploadMaven): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other + """Returns true if both objects are not equal""" + if not isinstance(other, PackagesValidateuploadMaven): + return True + + return self.to_dict() != other.to_dict() diff --git a/bindings/python/src/cloudsmith_api/models/packages_validateupload_npm.py b/bindings/python/src/cloudsmith_api/models/packages_validateupload_npm.py index deddd5b1..bce31890 100644 --- a/bindings/python/src/cloudsmith_api/models/packages_validateupload_npm.py +++ b/bindings/python/src/cloudsmith_api/models/packages_validateupload_npm.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -11,18 +11,20 @@ """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration class PackagesValidateuploadNpm(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -44,42 +46,44 @@ class PackagesValidateuploadNpm(object): 'tags': 'tags' } - def __init__(self, npm_dist_tag=None, package_file=None, republish=None, tags=None): - """ - PackagesValidateuploadNpm - a model defined in Swagger - """ + def __init__(self, npm_dist_tag=None, package_file=None, republish=None, tags=None, _configuration=None): # noqa: E501 + """PackagesValidateuploadNpm - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._npm_dist_tag = None self._package_file = None self._republish = None self._tags = None + self.discriminator = None if npm_dist_tag is not None: - self.npm_dist_tag = npm_dist_tag + self.npm_dist_tag = npm_dist_tag self.package_file = package_file if republish is not None: - self.republish = republish + self.republish = republish if tags is not None: - self.tags = tags + self.tags = tags @property def npm_dist_tag(self): - """ - Gets the npm_dist_tag of this PackagesValidateuploadNpm. - The default npm dist-tag for this package/version - This will replace any other package/version if they are using the same tag. + """Gets the npm_dist_tag of this PackagesValidateuploadNpm. # noqa: E501 + + The default npm dist-tag for this package/version - This will replace any other package/version if they are using the same tag. # noqa: E501 - :return: The npm_dist_tag of this PackagesValidateuploadNpm. + :return: The npm_dist_tag of this PackagesValidateuploadNpm. # noqa: E501 :rtype: str """ return self._npm_dist_tag @npm_dist_tag.setter def npm_dist_tag(self, npm_dist_tag): - """ - Sets the npm_dist_tag of this PackagesValidateuploadNpm. - The default npm dist-tag for this package/version - This will replace any other package/version if they are using the same tag. + """Sets the npm_dist_tag of this PackagesValidateuploadNpm. + + The default npm dist-tag for this package/version - This will replace any other package/version if they are using the same tag. # noqa: E501 - :param npm_dist_tag: The npm_dist_tag of this PackagesValidateuploadNpm. + :param npm_dist_tag: The npm_dist_tag of this PackagesValidateuploadNpm. # noqa: E501 :type: str """ @@ -87,47 +91,47 @@ def npm_dist_tag(self, npm_dist_tag): @property def package_file(self): - """ - Gets the package_file of this PackagesValidateuploadNpm. - The primary file for the package. + """Gets the package_file of this PackagesValidateuploadNpm. # noqa: E501 - :return: The package_file of this PackagesValidateuploadNpm. + The primary file for the package. # noqa: E501 + + :return: The package_file of this PackagesValidateuploadNpm. # noqa: E501 :rtype: str """ return self._package_file @package_file.setter def package_file(self, package_file): - """ - Sets the package_file of this PackagesValidateuploadNpm. - The primary file for the package. + """Sets the package_file of this PackagesValidateuploadNpm. - :param package_file: The package_file of this PackagesValidateuploadNpm. + The primary file for the package. # noqa: E501 + + :param package_file: The package_file of this PackagesValidateuploadNpm. # noqa: E501 :type: str """ - if package_file is None: - raise ValueError("Invalid value for `package_file`, must not be `None`") + if self._configuration.client_side_validation and package_file is None: + raise ValueError("Invalid value for `package_file`, must not be `None`") # noqa: E501 self._package_file = package_file @property def republish(self): - """ - Gets the republish of this PackagesValidateuploadNpm. - If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. + """Gets the republish of this PackagesValidateuploadNpm. # noqa: E501 - :return: The republish of this PackagesValidateuploadNpm. + If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. # noqa: E501 + + :return: The republish of this PackagesValidateuploadNpm. # noqa: E501 :rtype: bool """ return self._republish @republish.setter def republish(self, republish): - """ - Sets the republish of this PackagesValidateuploadNpm. - If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. + """Sets the republish of this PackagesValidateuploadNpm. - :param republish: The republish of this PackagesValidateuploadNpm. + If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. # noqa: E501 + + :param republish: The republish of this PackagesValidateuploadNpm. # noqa: E501 :type: bool """ @@ -135,34 +139,32 @@ def republish(self, republish): @property def tags(self): - """ - Gets the tags of this PackagesValidateuploadNpm. - A comma-separated values list of tags to add to the package. + """Gets the tags of this PackagesValidateuploadNpm. # noqa: E501 + + A comma-separated values list of tags to add to the package. # noqa: E501 - :return: The tags of this PackagesValidateuploadNpm. + :return: The tags of this PackagesValidateuploadNpm. # noqa: E501 :rtype: str """ return self._tags @tags.setter def tags(self, tags): - """ - Sets the tags of this PackagesValidateuploadNpm. - A comma-separated values list of tags to add to the package. + """Sets the tags of this PackagesValidateuploadNpm. + + A comma-separated values list of tags to add to the package. # noqa: E501 - :param tags: The tags of this PackagesValidateuploadNpm. + :param tags: The tags of this PackagesValidateuploadNpm. # noqa: E501 :type: str """ self._tags = tags def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -179,32 +181,30 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(PackagesValidateuploadNpm, dict): + for key, value in self.items(): + result[key] = value return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, PackagesValidateuploadNpm): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other + """Returns true if both objects are not equal""" + if not isinstance(other, PackagesValidateuploadNpm): + return True + + return self.to_dict() != other.to_dict() diff --git a/bindings/python/src/cloudsmith_api/models/packages_validateupload_nuget.py b/bindings/python/src/cloudsmith_api/models/packages_validateupload_nuget.py index b7ff2290..b097b3f0 100644 --- a/bindings/python/src/cloudsmith_api/models/packages_validateupload_nuget.py +++ b/bindings/python/src/cloudsmith_api/models/packages_validateupload_nuget.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -11,18 +11,20 @@ """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration class PackagesValidateuploadNuget(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -44,67 +46,69 @@ class PackagesValidateuploadNuget(object): 'tags': 'tags' } - def __init__(self, package_file=None, republish=None, symbols_file=None, tags=None): - """ - PackagesValidateuploadNuget - a model defined in Swagger - """ + def __init__(self, package_file=None, republish=None, symbols_file=None, tags=None, _configuration=None): # noqa: E501 + """PackagesValidateuploadNuget - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._package_file = None self._republish = None self._symbols_file = None self._tags = None + self.discriminator = None self.package_file = package_file if republish is not None: - self.republish = republish + self.republish = republish if symbols_file is not None: - self.symbols_file = symbols_file + self.symbols_file = symbols_file if tags is not None: - self.tags = tags + self.tags = tags @property def package_file(self): - """ - Gets the package_file of this PackagesValidateuploadNuget. - The primary file for the package. + """Gets the package_file of this PackagesValidateuploadNuget. # noqa: E501 + + The primary file for the package. # noqa: E501 - :return: The package_file of this PackagesValidateuploadNuget. + :return: The package_file of this PackagesValidateuploadNuget. # noqa: E501 :rtype: str """ return self._package_file @package_file.setter def package_file(self, package_file): - """ - Sets the package_file of this PackagesValidateuploadNuget. - The primary file for the package. + """Sets the package_file of this PackagesValidateuploadNuget. + + The primary file for the package. # noqa: E501 - :param package_file: The package_file of this PackagesValidateuploadNuget. + :param package_file: The package_file of this PackagesValidateuploadNuget. # noqa: E501 :type: str """ - if package_file is None: - raise ValueError("Invalid value for `package_file`, must not be `None`") + if self._configuration.client_side_validation and package_file is None: + raise ValueError("Invalid value for `package_file`, must not be `None`") # noqa: E501 self._package_file = package_file @property def republish(self): - """ - Gets the republish of this PackagesValidateuploadNuget. - If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. + """Gets the republish of this PackagesValidateuploadNuget. # noqa: E501 - :return: The republish of this PackagesValidateuploadNuget. + If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. # noqa: E501 + + :return: The republish of this PackagesValidateuploadNuget. # noqa: E501 :rtype: bool """ return self._republish @republish.setter def republish(self, republish): - """ - Sets the republish of this PackagesValidateuploadNuget. - If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. + """Sets the republish of this PackagesValidateuploadNuget. - :param republish: The republish of this PackagesValidateuploadNuget. + If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. # noqa: E501 + + :param republish: The republish of this PackagesValidateuploadNuget. # noqa: E501 :type: bool """ @@ -112,22 +116,22 @@ def republish(self, republish): @property def symbols_file(self): - """ - Gets the symbols_file of this PackagesValidateuploadNuget. - Attaches a symbols file to the package. + """Gets the symbols_file of this PackagesValidateuploadNuget. # noqa: E501 - :return: The symbols_file of this PackagesValidateuploadNuget. + Attaches a symbols file to the package. # noqa: E501 + + :return: The symbols_file of this PackagesValidateuploadNuget. # noqa: E501 :rtype: str """ return self._symbols_file @symbols_file.setter def symbols_file(self, symbols_file): - """ - Sets the symbols_file of this PackagesValidateuploadNuget. - Attaches a symbols file to the package. + """Sets the symbols_file of this PackagesValidateuploadNuget. - :param symbols_file: The symbols_file of this PackagesValidateuploadNuget. + Attaches a symbols file to the package. # noqa: E501 + + :param symbols_file: The symbols_file of this PackagesValidateuploadNuget. # noqa: E501 :type: str """ @@ -135,34 +139,32 @@ def symbols_file(self, symbols_file): @property def tags(self): - """ - Gets the tags of this PackagesValidateuploadNuget. - A comma-separated values list of tags to add to the package. + """Gets the tags of this PackagesValidateuploadNuget. # noqa: E501 + + A comma-separated values list of tags to add to the package. # noqa: E501 - :return: The tags of this PackagesValidateuploadNuget. + :return: The tags of this PackagesValidateuploadNuget. # noqa: E501 :rtype: str """ return self._tags @tags.setter def tags(self, tags): - """ - Sets the tags of this PackagesValidateuploadNuget. - A comma-separated values list of tags to add to the package. + """Sets the tags of this PackagesValidateuploadNuget. + + A comma-separated values list of tags to add to the package. # noqa: E501 - :param tags: The tags of this PackagesValidateuploadNuget. + :param tags: The tags of this PackagesValidateuploadNuget. # noqa: E501 :type: str """ self._tags = tags def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -179,32 +181,30 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(PackagesValidateuploadNuget, dict): + for key, value in self.items(): + result[key] = value return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, PackagesValidateuploadNuget): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other + """Returns true if both objects are not equal""" + if not isinstance(other, PackagesValidateuploadNuget): + return True + + return self.to_dict() != other.to_dict() diff --git a/bindings/python/src/cloudsmith_api/models/packages_validateupload_p2.py b/bindings/python/src/cloudsmith_api/models/packages_validateupload_p2.py index 79b8444c..a07841b5 100644 --- a/bindings/python/src/cloudsmith_api/models/packages_validateupload_p2.py +++ b/bindings/python/src/cloudsmith_api/models/packages_validateupload_p2.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -11,18 +11,20 @@ """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration class PackagesValidateuploadP2(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -42,64 +44,66 @@ class PackagesValidateuploadP2(object): 'tags': 'tags' } - def __init__(self, package_file=None, republish=None, tags=None): - """ - PackagesValidateuploadP2 - a model defined in Swagger - """ + def __init__(self, package_file=None, republish=None, tags=None, _configuration=None): # noqa: E501 + """PackagesValidateuploadP2 - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._package_file = None self._republish = None self._tags = None + self.discriminator = None self.package_file = package_file if republish is not None: - self.republish = republish + self.republish = republish if tags is not None: - self.tags = tags + self.tags = tags @property def package_file(self): - """ - Gets the package_file of this PackagesValidateuploadP2. - The primary file for the package. + """Gets the package_file of this PackagesValidateuploadP2. # noqa: E501 - :return: The package_file of this PackagesValidateuploadP2. + The primary file for the package. # noqa: E501 + + :return: The package_file of this PackagesValidateuploadP2. # noqa: E501 :rtype: str """ return self._package_file @package_file.setter def package_file(self, package_file): - """ - Sets the package_file of this PackagesValidateuploadP2. - The primary file for the package. + """Sets the package_file of this PackagesValidateuploadP2. - :param package_file: The package_file of this PackagesValidateuploadP2. + The primary file for the package. # noqa: E501 + + :param package_file: The package_file of this PackagesValidateuploadP2. # noqa: E501 :type: str """ - if package_file is None: - raise ValueError("Invalid value for `package_file`, must not be `None`") + if self._configuration.client_side_validation and package_file is None: + raise ValueError("Invalid value for `package_file`, must not be `None`") # noqa: E501 self._package_file = package_file @property def republish(self): - """ - Gets the republish of this PackagesValidateuploadP2. - If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. + """Gets the republish of this PackagesValidateuploadP2. # noqa: E501 - :return: The republish of this PackagesValidateuploadP2. + If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. # noqa: E501 + + :return: The republish of this PackagesValidateuploadP2. # noqa: E501 :rtype: bool """ return self._republish @republish.setter def republish(self, republish): - """ - Sets the republish of this PackagesValidateuploadP2. - If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. + """Sets the republish of this PackagesValidateuploadP2. - :param republish: The republish of this PackagesValidateuploadP2. + If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. # noqa: E501 + + :param republish: The republish of this PackagesValidateuploadP2. # noqa: E501 :type: bool """ @@ -107,34 +111,32 @@ def republish(self, republish): @property def tags(self): - """ - Gets the tags of this PackagesValidateuploadP2. - A comma-separated values list of tags to add to the package. + """Gets the tags of this PackagesValidateuploadP2. # noqa: E501 - :return: The tags of this PackagesValidateuploadP2. + A comma-separated values list of tags to add to the package. # noqa: E501 + + :return: The tags of this PackagesValidateuploadP2. # noqa: E501 :rtype: str """ return self._tags @tags.setter def tags(self, tags): - """ - Sets the tags of this PackagesValidateuploadP2. - A comma-separated values list of tags to add to the package. + """Sets the tags of this PackagesValidateuploadP2. - :param tags: The tags of this PackagesValidateuploadP2. + A comma-separated values list of tags to add to the package. # noqa: E501 + + :param tags: The tags of this PackagesValidateuploadP2. # noqa: E501 :type: str """ self._tags = tags def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -151,32 +153,30 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(PackagesValidateuploadP2, dict): + for key, value in self.items(): + result[key] = value return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, PackagesValidateuploadP2): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other + """Returns true if both objects are not equal""" + if not isinstance(other, PackagesValidateuploadP2): + return True + + return self.to_dict() != other.to_dict() diff --git a/bindings/python/src/cloudsmith_api/models/packages_validateupload_python.py b/bindings/python/src/cloudsmith_api/models/packages_validateupload_python.py index fafa9f9a..c18b9ce5 100644 --- a/bindings/python/src/cloudsmith_api/models/packages_validateupload_python.py +++ b/bindings/python/src/cloudsmith_api/models/packages_validateupload_python.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -11,18 +11,20 @@ """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration class PackagesValidateuploadPython(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -42,64 +44,66 @@ class PackagesValidateuploadPython(object): 'tags': 'tags' } - def __init__(self, package_file=None, republish=None, tags=None): - """ - PackagesValidateuploadPython - a model defined in Swagger - """ + def __init__(self, package_file=None, republish=None, tags=None, _configuration=None): # noqa: E501 + """PackagesValidateuploadPython - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._package_file = None self._republish = None self._tags = None + self.discriminator = None self.package_file = package_file if republish is not None: - self.republish = republish + self.republish = republish if tags is not None: - self.tags = tags + self.tags = tags @property def package_file(self): - """ - Gets the package_file of this PackagesValidateuploadPython. - The primary file for the package. + """Gets the package_file of this PackagesValidateuploadPython. # noqa: E501 - :return: The package_file of this PackagesValidateuploadPython. + The primary file for the package. # noqa: E501 + + :return: The package_file of this PackagesValidateuploadPython. # noqa: E501 :rtype: str """ return self._package_file @package_file.setter def package_file(self, package_file): - """ - Sets the package_file of this PackagesValidateuploadPython. - The primary file for the package. + """Sets the package_file of this PackagesValidateuploadPython. - :param package_file: The package_file of this PackagesValidateuploadPython. + The primary file for the package. # noqa: E501 + + :param package_file: The package_file of this PackagesValidateuploadPython. # noqa: E501 :type: str """ - if package_file is None: - raise ValueError("Invalid value for `package_file`, must not be `None`") + if self._configuration.client_side_validation and package_file is None: + raise ValueError("Invalid value for `package_file`, must not be `None`") # noqa: E501 self._package_file = package_file @property def republish(self): - """ - Gets the republish of this PackagesValidateuploadPython. - If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. + """Gets the republish of this PackagesValidateuploadPython. # noqa: E501 - :return: The republish of this PackagesValidateuploadPython. + If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. # noqa: E501 + + :return: The republish of this PackagesValidateuploadPython. # noqa: E501 :rtype: bool """ return self._republish @republish.setter def republish(self, republish): - """ - Sets the republish of this PackagesValidateuploadPython. - If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. + """Sets the republish of this PackagesValidateuploadPython. - :param republish: The republish of this PackagesValidateuploadPython. + If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. # noqa: E501 + + :param republish: The republish of this PackagesValidateuploadPython. # noqa: E501 :type: bool """ @@ -107,34 +111,32 @@ def republish(self, republish): @property def tags(self): - """ - Gets the tags of this PackagesValidateuploadPython. - A comma-separated values list of tags to add to the package. + """Gets the tags of this PackagesValidateuploadPython. # noqa: E501 - :return: The tags of this PackagesValidateuploadPython. + A comma-separated values list of tags to add to the package. # noqa: E501 + + :return: The tags of this PackagesValidateuploadPython. # noqa: E501 :rtype: str """ return self._tags @tags.setter def tags(self, tags): - """ - Sets the tags of this PackagesValidateuploadPython. - A comma-separated values list of tags to add to the package. + """Sets the tags of this PackagesValidateuploadPython. - :param tags: The tags of this PackagesValidateuploadPython. + A comma-separated values list of tags to add to the package. # noqa: E501 + + :param tags: The tags of this PackagesValidateuploadPython. # noqa: E501 :type: str """ self._tags = tags def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -151,32 +153,30 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(PackagesValidateuploadPython, dict): + for key, value in self.items(): + result[key] = value return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, PackagesValidateuploadPython): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other + """Returns true if both objects are not equal""" + if not isinstance(other, PackagesValidateuploadPython): + return True + + return self.to_dict() != other.to_dict() diff --git a/bindings/python/src/cloudsmith_api/models/packages_validateupload_raw.py b/bindings/python/src/cloudsmith_api/models/packages_validateupload_raw.py index 70c6a1fb..8b1bad50 100644 --- a/bindings/python/src/cloudsmith_api/models/packages_validateupload_raw.py +++ b/bindings/python/src/cloudsmith_api/models/packages_validateupload_raw.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -11,18 +11,20 @@ """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration class PackagesValidateuploadRaw(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -52,10 +54,11 @@ class PackagesValidateuploadRaw(object): 'version': 'version' } - def __init__(self, content_type=None, description=None, name=None, package_file=None, republish=None, summary=None, tags=None, version=None): - """ - PackagesValidateuploadRaw - a model defined in Swagger - """ + def __init__(self, content_type=None, description=None, name=None, package_file=None, republish=None, summary=None, tags=None, version=None, _configuration=None): # noqa: E501 + """PackagesValidateuploadRaw - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._content_type = None self._description = None @@ -65,41 +68,42 @@ def __init__(self, content_type=None, description=None, name=None, package_file= self._summary = None self._tags = None self._version = None + self.discriminator = None if content_type is not None: - self.content_type = content_type + self.content_type = content_type if description is not None: - self.description = description + self.description = description if name is not None: - self.name = name + self.name = name self.package_file = package_file if republish is not None: - self.republish = republish + self.republish = republish if summary is not None: - self.summary = summary + self.summary = summary if tags is not None: - self.tags = tags + self.tags = tags if version is not None: - self.version = version + self.version = version @property def content_type(self): - """ - Gets the content_type of this PackagesValidateuploadRaw. - A custom content/media (also known as MIME) type to be sent when downloading this file. By default Cloudsmith will attempt to detect the type, but if you need to override it, you can specify it here. + """Gets the content_type of this PackagesValidateuploadRaw. # noqa: E501 + + A custom content/media (also known as MIME) type to be sent when downloading this file. By default Cloudsmith will attempt to detect the type, but if you need to override it, you can specify it here. # noqa: E501 - :return: The content_type of this PackagesValidateuploadRaw. + :return: The content_type of this PackagesValidateuploadRaw. # noqa: E501 :rtype: str """ return self._content_type @content_type.setter def content_type(self, content_type): - """ - Sets the content_type of this PackagesValidateuploadRaw. - A custom content/media (also known as MIME) type to be sent when downloading this file. By default Cloudsmith will attempt to detect the type, but if you need to override it, you can specify it here. + """Sets the content_type of this PackagesValidateuploadRaw. - :param content_type: The content_type of this PackagesValidateuploadRaw. + A custom content/media (also known as MIME) type to be sent when downloading this file. By default Cloudsmith will attempt to detect the type, but if you need to override it, you can specify it here. # noqa: E501 + + :param content_type: The content_type of this PackagesValidateuploadRaw. # noqa: E501 :type: str """ @@ -107,22 +111,22 @@ def content_type(self, content_type): @property def description(self): - """ - Gets the description of this PackagesValidateuploadRaw. - A textual description of this package. + """Gets the description of this PackagesValidateuploadRaw. # noqa: E501 + + A textual description of this package. # noqa: E501 - :return: The description of this PackagesValidateuploadRaw. + :return: The description of this PackagesValidateuploadRaw. # noqa: E501 :rtype: str """ return self._description @description.setter def description(self, description): - """ - Sets the description of this PackagesValidateuploadRaw. - A textual description of this package. + """Sets the description of this PackagesValidateuploadRaw. + + A textual description of this package. # noqa: E501 - :param description: The description of this PackagesValidateuploadRaw. + :param description: The description of this PackagesValidateuploadRaw. # noqa: E501 :type: str """ @@ -130,22 +134,22 @@ def description(self, description): @property def name(self): - """ - Gets the name of this PackagesValidateuploadRaw. - The name of this package. + """Gets the name of this PackagesValidateuploadRaw. # noqa: E501 + + The name of this package. # noqa: E501 - :return: The name of this PackagesValidateuploadRaw. + :return: The name of this PackagesValidateuploadRaw. # noqa: E501 :rtype: str """ return self._name @name.setter def name(self, name): - """ - Sets the name of this PackagesValidateuploadRaw. - The name of this package. + """Sets the name of this PackagesValidateuploadRaw. + + The name of this package. # noqa: E501 - :param name: The name of this PackagesValidateuploadRaw. + :param name: The name of this PackagesValidateuploadRaw. # noqa: E501 :type: str """ @@ -153,47 +157,47 @@ def name(self, name): @property def package_file(self): - """ - Gets the package_file of this PackagesValidateuploadRaw. - The primary file for the package. + """Gets the package_file of this PackagesValidateuploadRaw. # noqa: E501 - :return: The package_file of this PackagesValidateuploadRaw. + The primary file for the package. # noqa: E501 + + :return: The package_file of this PackagesValidateuploadRaw. # noqa: E501 :rtype: str """ return self._package_file @package_file.setter def package_file(self, package_file): - """ - Sets the package_file of this PackagesValidateuploadRaw. - The primary file for the package. + """Sets the package_file of this PackagesValidateuploadRaw. + + The primary file for the package. # noqa: E501 - :param package_file: The package_file of this PackagesValidateuploadRaw. + :param package_file: The package_file of this PackagesValidateuploadRaw. # noqa: E501 :type: str """ - if package_file is None: - raise ValueError("Invalid value for `package_file`, must not be `None`") + if self._configuration.client_side_validation and package_file is None: + raise ValueError("Invalid value for `package_file`, must not be `None`") # noqa: E501 self._package_file = package_file @property def republish(self): - """ - Gets the republish of this PackagesValidateuploadRaw. - If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. + """Gets the republish of this PackagesValidateuploadRaw. # noqa: E501 + + If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. # noqa: E501 - :return: The republish of this PackagesValidateuploadRaw. + :return: The republish of this PackagesValidateuploadRaw. # noqa: E501 :rtype: bool """ return self._republish @republish.setter def republish(self, republish): - """ - Sets the republish of this PackagesValidateuploadRaw. - If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. + """Sets the republish of this PackagesValidateuploadRaw. - :param republish: The republish of this PackagesValidateuploadRaw. + If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. # noqa: E501 + + :param republish: The republish of this PackagesValidateuploadRaw. # noqa: E501 :type: bool """ @@ -201,22 +205,22 @@ def republish(self, republish): @property def summary(self): - """ - Gets the summary of this PackagesValidateuploadRaw. - A one-liner synopsis of this package. + """Gets the summary of this PackagesValidateuploadRaw. # noqa: E501 - :return: The summary of this PackagesValidateuploadRaw. + A one-liner synopsis of this package. # noqa: E501 + + :return: The summary of this PackagesValidateuploadRaw. # noqa: E501 :rtype: str """ return self._summary @summary.setter def summary(self, summary): - """ - Sets the summary of this PackagesValidateuploadRaw. - A one-liner synopsis of this package. + """Sets the summary of this PackagesValidateuploadRaw. - :param summary: The summary of this PackagesValidateuploadRaw. + A one-liner synopsis of this package. # noqa: E501 + + :param summary: The summary of this PackagesValidateuploadRaw. # noqa: E501 :type: str """ @@ -224,22 +228,22 @@ def summary(self, summary): @property def tags(self): - """ - Gets the tags of this PackagesValidateuploadRaw. - A comma-separated values list of tags to add to the package. + """Gets the tags of this PackagesValidateuploadRaw. # noqa: E501 + + A comma-separated values list of tags to add to the package. # noqa: E501 - :return: The tags of this PackagesValidateuploadRaw. + :return: The tags of this PackagesValidateuploadRaw. # noqa: E501 :rtype: str """ return self._tags @tags.setter def tags(self, tags): - """ - Sets the tags of this PackagesValidateuploadRaw. - A comma-separated values list of tags to add to the package. + """Sets the tags of this PackagesValidateuploadRaw. + + A comma-separated values list of tags to add to the package. # noqa: E501 - :param tags: The tags of this PackagesValidateuploadRaw. + :param tags: The tags of this PackagesValidateuploadRaw. # noqa: E501 :type: str """ @@ -247,34 +251,32 @@ def tags(self, tags): @property def version(self): - """ - Gets the version of this PackagesValidateuploadRaw. - The raw version for this package. + """Gets the version of this PackagesValidateuploadRaw. # noqa: E501 - :return: The version of this PackagesValidateuploadRaw. + The raw version for this package. # noqa: E501 + + :return: The version of this PackagesValidateuploadRaw. # noqa: E501 :rtype: str """ return self._version @version.setter def version(self, version): - """ - Sets the version of this PackagesValidateuploadRaw. - The raw version for this package. + """Sets the version of this PackagesValidateuploadRaw. + + The raw version for this package. # noqa: E501 - :param version: The version of this PackagesValidateuploadRaw. + :param version: The version of this PackagesValidateuploadRaw. # noqa: E501 :type: str """ self._version = version def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -291,32 +293,30 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(PackagesValidateuploadRaw, dict): + for key, value in self.items(): + result[key] = value return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, PackagesValidateuploadRaw): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other + """Returns true if both objects are not equal""" + if not isinstance(other, PackagesValidateuploadRaw): + return True + + return self.to_dict() != other.to_dict() diff --git a/bindings/python/src/cloudsmith_api/models/packages_validateupload_rpm.py b/bindings/python/src/cloudsmith_api/models/packages_validateupload_rpm.py index 84c86743..6ec54106 100644 --- a/bindings/python/src/cloudsmith_api/models/packages_validateupload_rpm.py +++ b/bindings/python/src/cloudsmith_api/models/packages_validateupload_rpm.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -11,18 +11,20 @@ """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration class PackagesValidateuploadRpm(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -44,91 +46,93 @@ class PackagesValidateuploadRpm(object): 'tags': 'tags' } - def __init__(self, distribution=None, package_file=None, republish=None, tags=None): - """ - PackagesValidateuploadRpm - a model defined in Swagger - """ + def __init__(self, distribution=None, package_file=None, republish=None, tags=None, _configuration=None): # noqa: E501 + """PackagesValidateuploadRpm - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._distribution = None self._package_file = None self._republish = None self._tags = None + self.discriminator = None self.distribution = distribution self.package_file = package_file if republish is not None: - self.republish = republish + self.republish = republish if tags is not None: - self.tags = tags + self.tags = tags @property def distribution(self): - """ - Gets the distribution of this PackagesValidateuploadRpm. - The distribution to store the package for. + """Gets the distribution of this PackagesValidateuploadRpm. # noqa: E501 + + The distribution to store the package for. # noqa: E501 - :return: The distribution of this PackagesValidateuploadRpm. + :return: The distribution of this PackagesValidateuploadRpm. # noqa: E501 :rtype: str """ return self._distribution @distribution.setter def distribution(self, distribution): - """ - Sets the distribution of this PackagesValidateuploadRpm. - The distribution to store the package for. + """Sets the distribution of this PackagesValidateuploadRpm. + + The distribution to store the package for. # noqa: E501 - :param distribution: The distribution of this PackagesValidateuploadRpm. + :param distribution: The distribution of this PackagesValidateuploadRpm. # noqa: E501 :type: str """ - if distribution is None: - raise ValueError("Invalid value for `distribution`, must not be `None`") + if self._configuration.client_side_validation and distribution is None: + raise ValueError("Invalid value for `distribution`, must not be `None`") # noqa: E501 self._distribution = distribution @property def package_file(self): - """ - Gets the package_file of this PackagesValidateuploadRpm. - The primary file for the package. + """Gets the package_file of this PackagesValidateuploadRpm. # noqa: E501 - :return: The package_file of this PackagesValidateuploadRpm. + The primary file for the package. # noqa: E501 + + :return: The package_file of this PackagesValidateuploadRpm. # noqa: E501 :rtype: str """ return self._package_file @package_file.setter def package_file(self, package_file): - """ - Sets the package_file of this PackagesValidateuploadRpm. - The primary file for the package. + """Sets the package_file of this PackagesValidateuploadRpm. - :param package_file: The package_file of this PackagesValidateuploadRpm. + The primary file for the package. # noqa: E501 + + :param package_file: The package_file of this PackagesValidateuploadRpm. # noqa: E501 :type: str """ - if package_file is None: - raise ValueError("Invalid value for `package_file`, must not be `None`") + if self._configuration.client_side_validation and package_file is None: + raise ValueError("Invalid value for `package_file`, must not be `None`") # noqa: E501 self._package_file = package_file @property def republish(self): - """ - Gets the republish of this PackagesValidateuploadRpm. - If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. + """Gets the republish of this PackagesValidateuploadRpm. # noqa: E501 - :return: The republish of this PackagesValidateuploadRpm. + If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. # noqa: E501 + + :return: The republish of this PackagesValidateuploadRpm. # noqa: E501 :rtype: bool """ return self._republish @republish.setter def republish(self, republish): - """ - Sets the republish of this PackagesValidateuploadRpm. - If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. + """Sets the republish of this PackagesValidateuploadRpm. - :param republish: The republish of this PackagesValidateuploadRpm. + If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. # noqa: E501 + + :param republish: The republish of this PackagesValidateuploadRpm. # noqa: E501 :type: bool """ @@ -136,34 +140,32 @@ def republish(self, republish): @property def tags(self): - """ - Gets the tags of this PackagesValidateuploadRpm. - A comma-separated values list of tags to add to the package. + """Gets the tags of this PackagesValidateuploadRpm. # noqa: E501 + + A comma-separated values list of tags to add to the package. # noqa: E501 - :return: The tags of this PackagesValidateuploadRpm. + :return: The tags of this PackagesValidateuploadRpm. # noqa: E501 :rtype: str """ return self._tags @tags.setter def tags(self, tags): - """ - Sets the tags of this PackagesValidateuploadRpm. - A comma-separated values list of tags to add to the package. + """Sets the tags of this PackagesValidateuploadRpm. + + A comma-separated values list of tags to add to the package. # noqa: E501 - :param tags: The tags of this PackagesValidateuploadRpm. + :param tags: The tags of this PackagesValidateuploadRpm. # noqa: E501 :type: str """ self._tags = tags def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -180,32 +182,30 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(PackagesValidateuploadRpm, dict): + for key, value in self.items(): + result[key] = value return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, PackagesValidateuploadRpm): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other + """Returns true if both objects are not equal""" + if not isinstance(other, PackagesValidateuploadRpm): + return True + + return self.to_dict() != other.to_dict() diff --git a/bindings/python/src/cloudsmith_api/models/packages_validateupload_ruby.py b/bindings/python/src/cloudsmith_api/models/packages_validateupload_ruby.py index 26c748d9..97d16a72 100644 --- a/bindings/python/src/cloudsmith_api/models/packages_validateupload_ruby.py +++ b/bindings/python/src/cloudsmith_api/models/packages_validateupload_ruby.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -11,18 +11,20 @@ """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration class PackagesValidateuploadRuby(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -42,64 +44,66 @@ class PackagesValidateuploadRuby(object): 'tags': 'tags' } - def __init__(self, package_file=None, republish=None, tags=None): - """ - PackagesValidateuploadRuby - a model defined in Swagger - """ + def __init__(self, package_file=None, republish=None, tags=None, _configuration=None): # noqa: E501 + """PackagesValidateuploadRuby - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._package_file = None self._republish = None self._tags = None + self.discriminator = None self.package_file = package_file if republish is not None: - self.republish = republish + self.republish = republish if tags is not None: - self.tags = tags + self.tags = tags @property def package_file(self): - """ - Gets the package_file of this PackagesValidateuploadRuby. - The primary file for the package. + """Gets the package_file of this PackagesValidateuploadRuby. # noqa: E501 - :return: The package_file of this PackagesValidateuploadRuby. + The primary file for the package. # noqa: E501 + + :return: The package_file of this PackagesValidateuploadRuby. # noqa: E501 :rtype: str """ return self._package_file @package_file.setter def package_file(self, package_file): - """ - Sets the package_file of this PackagesValidateuploadRuby. - The primary file for the package. + """Sets the package_file of this PackagesValidateuploadRuby. - :param package_file: The package_file of this PackagesValidateuploadRuby. + The primary file for the package. # noqa: E501 + + :param package_file: The package_file of this PackagesValidateuploadRuby. # noqa: E501 :type: str """ - if package_file is None: - raise ValueError("Invalid value for `package_file`, must not be `None`") + if self._configuration.client_side_validation and package_file is None: + raise ValueError("Invalid value for `package_file`, must not be `None`") # noqa: E501 self._package_file = package_file @property def republish(self): - """ - Gets the republish of this PackagesValidateuploadRuby. - If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. + """Gets the republish of this PackagesValidateuploadRuby. # noqa: E501 - :return: The republish of this PackagesValidateuploadRuby. + If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. # noqa: E501 + + :return: The republish of this PackagesValidateuploadRuby. # noqa: E501 :rtype: bool """ return self._republish @republish.setter def republish(self, republish): - """ - Sets the republish of this PackagesValidateuploadRuby. - If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. + """Sets the republish of this PackagesValidateuploadRuby. - :param republish: The republish of this PackagesValidateuploadRuby. + If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. # noqa: E501 + + :param republish: The republish of this PackagesValidateuploadRuby. # noqa: E501 :type: bool """ @@ -107,34 +111,32 @@ def republish(self, republish): @property def tags(self): - """ - Gets the tags of this PackagesValidateuploadRuby. - A comma-separated values list of tags to add to the package. + """Gets the tags of this PackagesValidateuploadRuby. # noqa: E501 - :return: The tags of this PackagesValidateuploadRuby. + A comma-separated values list of tags to add to the package. # noqa: E501 + + :return: The tags of this PackagesValidateuploadRuby. # noqa: E501 :rtype: str """ return self._tags @tags.setter def tags(self, tags): - """ - Sets the tags of this PackagesValidateuploadRuby. - A comma-separated values list of tags to add to the package. + """Sets the tags of this PackagesValidateuploadRuby. - :param tags: The tags of this PackagesValidateuploadRuby. + A comma-separated values list of tags to add to the package. # noqa: E501 + + :param tags: The tags of this PackagesValidateuploadRuby. # noqa: E501 :type: str """ self._tags = tags def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -151,32 +153,30 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(PackagesValidateuploadRuby, dict): + for key, value in self.items(): + result[key] = value return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, PackagesValidateuploadRuby): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other + """Returns true if both objects are not equal""" + if not isinstance(other, PackagesValidateuploadRuby): + return True + + return self.to_dict() != other.to_dict() diff --git a/bindings/python/src/cloudsmith_api/models/packages_validateupload_terraform.py b/bindings/python/src/cloudsmith_api/models/packages_validateupload_terraform.py index cd3b0ab8..13dee351 100644 --- a/bindings/python/src/cloudsmith_api/models/packages_validateupload_terraform.py +++ b/bindings/python/src/cloudsmith_api/models/packages_validateupload_terraform.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -11,18 +11,20 @@ """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration class PackagesValidateuploadTerraform(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -42,64 +44,66 @@ class PackagesValidateuploadTerraform(object): 'tags': 'tags' } - def __init__(self, package_file=None, republish=None, tags=None): - """ - PackagesValidateuploadTerraform - a model defined in Swagger - """ + def __init__(self, package_file=None, republish=None, tags=None, _configuration=None): # noqa: E501 + """PackagesValidateuploadTerraform - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._package_file = None self._republish = None self._tags = None + self.discriminator = None self.package_file = package_file if republish is not None: - self.republish = republish + self.republish = republish if tags is not None: - self.tags = tags + self.tags = tags @property def package_file(self): - """ - Gets the package_file of this PackagesValidateuploadTerraform. - The primary file for the package. + """Gets the package_file of this PackagesValidateuploadTerraform. # noqa: E501 - :return: The package_file of this PackagesValidateuploadTerraform. + The primary file for the package. # noqa: E501 + + :return: The package_file of this PackagesValidateuploadTerraform. # noqa: E501 :rtype: str """ return self._package_file @package_file.setter def package_file(self, package_file): - """ - Sets the package_file of this PackagesValidateuploadTerraform. - The primary file for the package. + """Sets the package_file of this PackagesValidateuploadTerraform. - :param package_file: The package_file of this PackagesValidateuploadTerraform. + The primary file for the package. # noqa: E501 + + :param package_file: The package_file of this PackagesValidateuploadTerraform. # noqa: E501 :type: str """ - if package_file is None: - raise ValueError("Invalid value for `package_file`, must not be `None`") + if self._configuration.client_side_validation and package_file is None: + raise ValueError("Invalid value for `package_file`, must not be `None`") # noqa: E501 self._package_file = package_file @property def republish(self): - """ - Gets the republish of this PackagesValidateuploadTerraform. - If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. + """Gets the republish of this PackagesValidateuploadTerraform. # noqa: E501 - :return: The republish of this PackagesValidateuploadTerraform. + If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. # noqa: E501 + + :return: The republish of this PackagesValidateuploadTerraform. # noqa: E501 :rtype: bool """ return self._republish @republish.setter def republish(self, republish): - """ - Sets the republish of this PackagesValidateuploadTerraform. - If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. + """Sets the republish of this PackagesValidateuploadTerraform. - :param republish: The republish of this PackagesValidateuploadTerraform. + If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. # noqa: E501 + + :param republish: The republish of this PackagesValidateuploadTerraform. # noqa: E501 :type: bool """ @@ -107,34 +111,32 @@ def republish(self, republish): @property def tags(self): - """ - Gets the tags of this PackagesValidateuploadTerraform. - A comma-separated values list of tags to add to the package. + """Gets the tags of this PackagesValidateuploadTerraform. # noqa: E501 - :return: The tags of this PackagesValidateuploadTerraform. + A comma-separated values list of tags to add to the package. # noqa: E501 + + :return: The tags of this PackagesValidateuploadTerraform. # noqa: E501 :rtype: str """ return self._tags @tags.setter def tags(self, tags): - """ - Sets the tags of this PackagesValidateuploadTerraform. - A comma-separated values list of tags to add to the package. + """Sets the tags of this PackagesValidateuploadTerraform. - :param tags: The tags of this PackagesValidateuploadTerraform. + A comma-separated values list of tags to add to the package. # noqa: E501 + + :param tags: The tags of this PackagesValidateuploadTerraform. # noqa: E501 :type: str """ self._tags = tags def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -151,32 +153,30 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(PackagesValidateuploadTerraform, dict): + for key, value in self.items(): + result[key] = value return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, PackagesValidateuploadTerraform): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other + """Returns true if both objects are not equal""" + if not isinstance(other, PackagesValidateuploadTerraform): + return True + + return self.to_dict() != other.to_dict() diff --git a/bindings/python/src/cloudsmith_api/models/packages_validateupload_vagrant.py b/bindings/python/src/cloudsmith_api/models/packages_validateupload_vagrant.py index baf07405..e85c6c83 100644 --- a/bindings/python/src/cloudsmith_api/models/packages_validateupload_vagrant.py +++ b/bindings/python/src/cloudsmith_api/models/packages_validateupload_vagrant.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -11,18 +11,20 @@ """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration class PackagesValidateuploadVagrant(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -48,10 +50,11 @@ class PackagesValidateuploadVagrant(object): 'version': 'version' } - def __init__(self, name=None, package_file=None, provider=None, republish=None, tags=None, version=None): - """ - PackagesValidateuploadVagrant - a model defined in Swagger - """ + def __init__(self, name=None, package_file=None, provider=None, republish=None, tags=None, version=None, _configuration=None): # noqa: E501 + """PackagesValidateuploadVagrant - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._name = None self._package_file = None @@ -59,109 +62,110 @@ def __init__(self, name=None, package_file=None, provider=None, republish=None, self._republish = None self._tags = None self._version = None + self.discriminator = None self.name = name self.package_file = package_file self.provider = provider if republish is not None: - self.republish = republish + self.republish = republish if tags is not None: - self.tags = tags + self.tags = tags self.version = version @property def name(self): - """ - Gets the name of this PackagesValidateuploadVagrant. - The name of this package. + """Gets the name of this PackagesValidateuploadVagrant. # noqa: E501 + + The name of this package. # noqa: E501 - :return: The name of this PackagesValidateuploadVagrant. + :return: The name of this PackagesValidateuploadVagrant. # noqa: E501 :rtype: str """ return self._name @name.setter def name(self, name): - """ - Sets the name of this PackagesValidateuploadVagrant. - The name of this package. + """Sets the name of this PackagesValidateuploadVagrant. + + The name of this package. # noqa: E501 - :param name: The name of this PackagesValidateuploadVagrant. + :param name: The name of this PackagesValidateuploadVagrant. # noqa: E501 :type: str """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") + if self._configuration.client_side_validation and name is None: + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 self._name = name @property def package_file(self): - """ - Gets the package_file of this PackagesValidateuploadVagrant. - The primary file for the package. + """Gets the package_file of this PackagesValidateuploadVagrant. # noqa: E501 + + The primary file for the package. # noqa: E501 - :return: The package_file of this PackagesValidateuploadVagrant. + :return: The package_file of this PackagesValidateuploadVagrant. # noqa: E501 :rtype: str """ return self._package_file @package_file.setter def package_file(self, package_file): - """ - Sets the package_file of this PackagesValidateuploadVagrant. - The primary file for the package. + """Sets the package_file of this PackagesValidateuploadVagrant. - :param package_file: The package_file of this PackagesValidateuploadVagrant. + The primary file for the package. # noqa: E501 + + :param package_file: The package_file of this PackagesValidateuploadVagrant. # noqa: E501 :type: str """ - if package_file is None: - raise ValueError("Invalid value for `package_file`, must not be `None`") + if self._configuration.client_side_validation and package_file is None: + raise ValueError("Invalid value for `package_file`, must not be `None`") # noqa: E501 self._package_file = package_file @property def provider(self): - """ - Gets the provider of this PackagesValidateuploadVagrant. - The virtual machine provider for the box. + """Gets the provider of this PackagesValidateuploadVagrant. # noqa: E501 + + The virtual machine provider for the box. # noqa: E501 - :return: The provider of this PackagesValidateuploadVagrant. + :return: The provider of this PackagesValidateuploadVagrant. # noqa: E501 :rtype: str """ return self._provider @provider.setter def provider(self, provider): - """ - Sets the provider of this PackagesValidateuploadVagrant. - The virtual machine provider for the box. + """Sets the provider of this PackagesValidateuploadVagrant. + + The virtual machine provider for the box. # noqa: E501 - :param provider: The provider of this PackagesValidateuploadVagrant. + :param provider: The provider of this PackagesValidateuploadVagrant. # noqa: E501 :type: str """ - if provider is None: - raise ValueError("Invalid value for `provider`, must not be `None`") + if self._configuration.client_side_validation and provider is None: + raise ValueError("Invalid value for `provider`, must not be `None`") # noqa: E501 self._provider = provider @property def republish(self): - """ - Gets the republish of this PackagesValidateuploadVagrant. - If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. + """Gets the republish of this PackagesValidateuploadVagrant. # noqa: E501 - :return: The republish of this PackagesValidateuploadVagrant. + If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. # noqa: E501 + + :return: The republish of this PackagesValidateuploadVagrant. # noqa: E501 :rtype: bool """ return self._republish @republish.setter def republish(self, republish): - """ - Sets the republish of this PackagesValidateuploadVagrant. - If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. + """Sets the republish of this PackagesValidateuploadVagrant. - :param republish: The republish of this PackagesValidateuploadVagrant. + If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. # noqa: E501 + + :param republish: The republish of this PackagesValidateuploadVagrant. # noqa: E501 :type: bool """ @@ -169,22 +173,22 @@ def republish(self, republish): @property def tags(self): - """ - Gets the tags of this PackagesValidateuploadVagrant. - A comma-separated values list of tags to add to the package. + """Gets the tags of this PackagesValidateuploadVagrant. # noqa: E501 + + A comma-separated values list of tags to add to the package. # noqa: E501 - :return: The tags of this PackagesValidateuploadVagrant. + :return: The tags of this PackagesValidateuploadVagrant. # noqa: E501 :rtype: str """ return self._tags @tags.setter def tags(self, tags): - """ - Sets the tags of this PackagesValidateuploadVagrant. - A comma-separated values list of tags to add to the package. + """Sets the tags of this PackagesValidateuploadVagrant. + + A comma-separated values list of tags to add to the package. # noqa: E501 - :param tags: The tags of this PackagesValidateuploadVagrant. + :param tags: The tags of this PackagesValidateuploadVagrant. # noqa: E501 :type: str """ @@ -192,36 +196,34 @@ def tags(self, tags): @property def version(self): - """ - Gets the version of this PackagesValidateuploadVagrant. - The raw version for this package. + """Gets the version of this PackagesValidateuploadVagrant. # noqa: E501 - :return: The version of this PackagesValidateuploadVagrant. + The raw version for this package. # noqa: E501 + + :return: The version of this PackagesValidateuploadVagrant. # noqa: E501 :rtype: str """ return self._version @version.setter def version(self, version): - """ - Sets the version of this PackagesValidateuploadVagrant. - The raw version for this package. + """Sets the version of this PackagesValidateuploadVagrant. + + The raw version for this package. # noqa: E501 - :param version: The version of this PackagesValidateuploadVagrant. + :param version: The version of this PackagesValidateuploadVagrant. # noqa: E501 :type: str """ - if version is None: - raise ValueError("Invalid value for `version`, must not be `None`") + if self._configuration.client_side_validation and version is None: + raise ValueError("Invalid value for `version`, must not be `None`") # noqa: E501 self._version = version def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -238,32 +240,30 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(PackagesValidateuploadVagrant, dict): + for key, value in self.items(): + result[key] = value return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, PackagesValidateuploadVagrant): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other + """Returns true if both objects are not equal""" + if not isinstance(other, PackagesValidateuploadVagrant): + return True + + return self.to_dict() != other.to_dict() diff --git a/bindings/python/src/cloudsmith_api/models/packagesownerrepo_architectures.py b/bindings/python/src/cloudsmith_api/models/packagesownerrepo_architectures.py index c4e698fa..160c2f9b 100644 --- a/bindings/python/src/cloudsmith_api/models/packagesownerrepo_architectures.py +++ b/bindings/python/src/cloudsmith_api/models/packagesownerrepo_architectures.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -11,18 +11,20 @@ """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration class PackagesownerrepoArchitectures(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -40,37 +42,39 @@ class PackagesownerrepoArchitectures(object): 'name': 'name' } - def __init__(self, description=None, name=None): - """ - PackagesownerrepoArchitectures - a model defined in Swagger - """ + def __init__(self, description=None, name=None, _configuration=None): # noqa: E501 + """PackagesownerrepoArchitectures - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._description = None self._name = None + self.discriminator = None if description is not None: - self.description = description + self.description = description if name is not None: - self.name = name + self.name = name @property def description(self): - """ - Gets the description of this PackagesownerrepoArchitectures. - + """Gets the description of this PackagesownerrepoArchitectures. # noqa: E501 + + # noqa: E501 - :return: The description of this PackagesownerrepoArchitectures. + :return: The description of this PackagesownerrepoArchitectures. # noqa: E501 :rtype: str """ return self._description @description.setter def description(self, description): - """ - Sets the description of this PackagesownerrepoArchitectures. - + """Sets the description of this PackagesownerrepoArchitectures. + + # noqa: E501 - :param description: The description of this PackagesownerrepoArchitectures. + :param description: The description of this PackagesownerrepoArchitectures. # noqa: E501 :type: str """ @@ -78,34 +82,32 @@ def description(self, description): @property def name(self): - """ - Gets the name of this PackagesownerrepoArchitectures. - + """Gets the name of this PackagesownerrepoArchitectures. # noqa: E501 + + # noqa: E501 - :return: The name of this PackagesownerrepoArchitectures. + :return: The name of this PackagesownerrepoArchitectures. # noqa: E501 :rtype: str """ return self._name @name.setter def name(self, name): - """ - Sets the name of this PackagesownerrepoArchitectures. - + """Sets the name of this PackagesownerrepoArchitectures. - :param name: The name of this PackagesownerrepoArchitectures. + # noqa: E501 + + :param name: The name of this PackagesownerrepoArchitectures. # noqa: E501 :type: str """ self._name = name def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -122,32 +124,30 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(PackagesownerrepoArchitectures, dict): + for key, value in self.items(): + result[key] = value return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, PackagesownerrepoArchitectures): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other + """Returns true if both objects are not equal""" + if not isinstance(other, PackagesownerrepoArchitectures): + return True + + return self.to_dict() != other.to_dict() diff --git a/bindings/python/src/cloudsmith_api/models/packagesownerrepo_files.py b/bindings/python/src/cloudsmith_api/models/packagesownerrepo_files.py index e4262ff2..4eb96887 100644 --- a/bindings/python/src/cloudsmith_api/models/packagesownerrepo_files.py +++ b/bindings/python/src/cloudsmith_api/models/packagesownerrepo_files.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -11,18 +11,20 @@ """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration class PackagesownerrepoFiles(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -64,10 +66,11 @@ class PackagesownerrepoFiles(object): 'tag': 'tag' } - def __init__(self, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, downloads=None, filename=None, is_downloadable=None, is_primary=None, is_synchronised=None, signature_url=None, size=None, slug_perm=None, tag=None): - """ - PackagesownerrepoFiles - a model defined in Swagger - """ + def __init__(self, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, downloads=None, filename=None, is_downloadable=None, is_primary=None, is_synchronised=None, signature_url=None, size=None, slug_perm=None, tag=None, _configuration=None): # noqa: E501 + """PackagesownerrepoFiles - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._cdn_url = None self._checksum_md5 = None @@ -83,54 +86,55 @@ def __init__(self, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum self._size = None self._slug_perm = None self._tag = None + self.discriminator = None if cdn_url is not None: - self.cdn_url = cdn_url + self.cdn_url = cdn_url if checksum_md5 is not None: - self.checksum_md5 = checksum_md5 + self.checksum_md5 = checksum_md5 if checksum_sha1 is not None: - self.checksum_sha1 = checksum_sha1 + self.checksum_sha1 = checksum_sha1 if checksum_sha256 is not None: - self.checksum_sha256 = checksum_sha256 + self.checksum_sha256 = checksum_sha256 if checksum_sha512 is not None: - self.checksum_sha512 = checksum_sha512 + self.checksum_sha512 = checksum_sha512 if downloads is not None: - self.downloads = downloads + self.downloads = downloads if filename is not None: - self.filename = filename + self.filename = filename if is_downloadable is not None: - self.is_downloadable = is_downloadable + self.is_downloadable = is_downloadable if is_primary is not None: - self.is_primary = is_primary + self.is_primary = is_primary if is_synchronised is not None: - self.is_synchronised = is_synchronised + self.is_synchronised = is_synchronised if signature_url is not None: - self.signature_url = signature_url + self.signature_url = signature_url if size is not None: - self.size = size + self.size = size if slug_perm is not None: - self.slug_perm = slug_perm + self.slug_perm = slug_perm if tag is not None: - self.tag = tag + self.tag = tag @property def cdn_url(self): - """ - Gets the cdn_url of this PackagesownerrepoFiles. - + """Gets the cdn_url of this PackagesownerrepoFiles. # noqa: E501 - :return: The cdn_url of this PackagesownerrepoFiles. + # noqa: E501 + + :return: The cdn_url of this PackagesownerrepoFiles. # noqa: E501 :rtype: str """ return self._cdn_url @cdn_url.setter def cdn_url(self, cdn_url): - """ - Sets the cdn_url of this PackagesownerrepoFiles. - + """Sets the cdn_url of this PackagesownerrepoFiles. - :param cdn_url: The cdn_url of this PackagesownerrepoFiles. + # noqa: E501 + + :param cdn_url: The cdn_url of this PackagesownerrepoFiles. # noqa: E501 :type: str """ @@ -138,22 +142,22 @@ def cdn_url(self, cdn_url): @property def checksum_md5(self): - """ - Gets the checksum_md5 of this PackagesownerrepoFiles. - + """Gets the checksum_md5 of this PackagesownerrepoFiles. # noqa: E501 + + # noqa: E501 - :return: The checksum_md5 of this PackagesownerrepoFiles. + :return: The checksum_md5 of this PackagesownerrepoFiles. # noqa: E501 :rtype: str """ return self._checksum_md5 @checksum_md5.setter def checksum_md5(self, checksum_md5): - """ - Sets the checksum_md5 of this PackagesownerrepoFiles. - + """Sets the checksum_md5 of this PackagesownerrepoFiles. + + # noqa: E501 - :param checksum_md5: The checksum_md5 of this PackagesownerrepoFiles. + :param checksum_md5: The checksum_md5 of this PackagesownerrepoFiles. # noqa: E501 :type: str """ @@ -161,22 +165,22 @@ def checksum_md5(self, checksum_md5): @property def checksum_sha1(self): - """ - Gets the checksum_sha1 of this PackagesownerrepoFiles. - + """Gets the checksum_sha1 of this PackagesownerrepoFiles. # noqa: E501 + + # noqa: E501 - :return: The checksum_sha1 of this PackagesownerrepoFiles. + :return: The checksum_sha1 of this PackagesownerrepoFiles. # noqa: E501 :rtype: str """ return self._checksum_sha1 @checksum_sha1.setter def checksum_sha1(self, checksum_sha1): - """ - Sets the checksum_sha1 of this PackagesownerrepoFiles. - + """Sets the checksum_sha1 of this PackagesownerrepoFiles. + + # noqa: E501 - :param checksum_sha1: The checksum_sha1 of this PackagesownerrepoFiles. + :param checksum_sha1: The checksum_sha1 of this PackagesownerrepoFiles. # noqa: E501 :type: str """ @@ -184,22 +188,22 @@ def checksum_sha1(self, checksum_sha1): @property def checksum_sha256(self): - """ - Gets the checksum_sha256 of this PackagesownerrepoFiles. - + """Gets the checksum_sha256 of this PackagesownerrepoFiles. # noqa: E501 + + # noqa: E501 - :return: The checksum_sha256 of this PackagesownerrepoFiles. + :return: The checksum_sha256 of this PackagesownerrepoFiles. # noqa: E501 :rtype: str """ return self._checksum_sha256 @checksum_sha256.setter def checksum_sha256(self, checksum_sha256): - """ - Sets the checksum_sha256 of this PackagesownerrepoFiles. - + """Sets the checksum_sha256 of this PackagesownerrepoFiles. - :param checksum_sha256: The checksum_sha256 of this PackagesownerrepoFiles. + # noqa: E501 + + :param checksum_sha256: The checksum_sha256 of this PackagesownerrepoFiles. # noqa: E501 :type: str """ @@ -207,22 +211,22 @@ def checksum_sha256(self, checksum_sha256): @property def checksum_sha512(self): - """ - Gets the checksum_sha512 of this PackagesownerrepoFiles. - + """Gets the checksum_sha512 of this PackagesownerrepoFiles. # noqa: E501 - :return: The checksum_sha512 of this PackagesownerrepoFiles. + # noqa: E501 + + :return: The checksum_sha512 of this PackagesownerrepoFiles. # noqa: E501 :rtype: str """ return self._checksum_sha512 @checksum_sha512.setter def checksum_sha512(self, checksum_sha512): - """ - Sets the checksum_sha512 of this PackagesownerrepoFiles. - + """Sets the checksum_sha512 of this PackagesownerrepoFiles. + + # noqa: E501 - :param checksum_sha512: The checksum_sha512 of this PackagesownerrepoFiles. + :param checksum_sha512: The checksum_sha512 of this PackagesownerrepoFiles. # noqa: E501 :type: str """ @@ -230,22 +234,22 @@ def checksum_sha512(self, checksum_sha512): @property def downloads(self): - """ - Gets the downloads of this PackagesownerrepoFiles. - + """Gets the downloads of this PackagesownerrepoFiles. # noqa: E501 + + # noqa: E501 - :return: The downloads of this PackagesownerrepoFiles. + :return: The downloads of this PackagesownerrepoFiles. # noqa: E501 :rtype: int """ return self._downloads @downloads.setter def downloads(self, downloads): - """ - Sets the downloads of this PackagesownerrepoFiles. - + """Sets the downloads of this PackagesownerrepoFiles. + + # noqa: E501 - :param downloads: The downloads of this PackagesownerrepoFiles. + :param downloads: The downloads of this PackagesownerrepoFiles. # noqa: E501 :type: int """ @@ -253,22 +257,22 @@ def downloads(self, downloads): @property def filename(self): - """ - Gets the filename of this PackagesownerrepoFiles. - + """Gets the filename of this PackagesownerrepoFiles. # noqa: E501 - :return: The filename of this PackagesownerrepoFiles. + # noqa: E501 + + :return: The filename of this PackagesownerrepoFiles. # noqa: E501 :rtype: str """ return self._filename @filename.setter def filename(self, filename): - """ - Sets the filename of this PackagesownerrepoFiles. - + """Sets the filename of this PackagesownerrepoFiles. - :param filename: The filename of this PackagesownerrepoFiles. + # noqa: E501 + + :param filename: The filename of this PackagesownerrepoFiles. # noqa: E501 :type: str """ @@ -276,22 +280,22 @@ def filename(self, filename): @property def is_downloadable(self): - """ - Gets the is_downloadable of this PackagesownerrepoFiles. - + """Gets the is_downloadable of this PackagesownerrepoFiles. # noqa: E501 - :return: The is_downloadable of this PackagesownerrepoFiles. + # noqa: E501 + + :return: The is_downloadable of this PackagesownerrepoFiles. # noqa: E501 :rtype: bool """ return self._is_downloadable @is_downloadable.setter def is_downloadable(self, is_downloadable): - """ - Sets the is_downloadable of this PackagesownerrepoFiles. - + """Sets the is_downloadable of this PackagesownerrepoFiles. - :param is_downloadable: The is_downloadable of this PackagesownerrepoFiles. + # noqa: E501 + + :param is_downloadable: The is_downloadable of this PackagesownerrepoFiles. # noqa: E501 :type: bool """ @@ -299,22 +303,22 @@ def is_downloadable(self, is_downloadable): @property def is_primary(self): - """ - Gets the is_primary of this PackagesownerrepoFiles. - + """Gets the is_primary of this PackagesownerrepoFiles. # noqa: E501 + + # noqa: E501 - :return: The is_primary of this PackagesownerrepoFiles. + :return: The is_primary of this PackagesownerrepoFiles. # noqa: E501 :rtype: bool """ return self._is_primary @is_primary.setter def is_primary(self, is_primary): - """ - Sets the is_primary of this PackagesownerrepoFiles. - + """Sets the is_primary of this PackagesownerrepoFiles. + + # noqa: E501 - :param is_primary: The is_primary of this PackagesownerrepoFiles. + :param is_primary: The is_primary of this PackagesownerrepoFiles. # noqa: E501 :type: bool """ @@ -322,22 +326,22 @@ def is_primary(self, is_primary): @property def is_synchronised(self): - """ - Gets the is_synchronised of this PackagesownerrepoFiles. - + """Gets the is_synchronised of this PackagesownerrepoFiles. # noqa: E501 + + # noqa: E501 - :return: The is_synchronised of this PackagesownerrepoFiles. + :return: The is_synchronised of this PackagesownerrepoFiles. # noqa: E501 :rtype: bool """ return self._is_synchronised @is_synchronised.setter def is_synchronised(self, is_synchronised): - """ - Sets the is_synchronised of this PackagesownerrepoFiles. - + """Sets the is_synchronised of this PackagesownerrepoFiles. - :param is_synchronised: The is_synchronised of this PackagesownerrepoFiles. + # noqa: E501 + + :param is_synchronised: The is_synchronised of this PackagesownerrepoFiles. # noqa: E501 :type: bool """ @@ -345,22 +349,22 @@ def is_synchronised(self, is_synchronised): @property def signature_url(self): - """ - Gets the signature_url of this PackagesownerrepoFiles. - + """Gets the signature_url of this PackagesownerrepoFiles. # noqa: E501 - :return: The signature_url of this PackagesownerrepoFiles. + # noqa: E501 + + :return: The signature_url of this PackagesownerrepoFiles. # noqa: E501 :rtype: str """ return self._signature_url @signature_url.setter def signature_url(self, signature_url): - """ - Sets the signature_url of this PackagesownerrepoFiles. - + """Sets the signature_url of this PackagesownerrepoFiles. + + # noqa: E501 - :param signature_url: The signature_url of this PackagesownerrepoFiles. + :param signature_url: The signature_url of this PackagesownerrepoFiles. # noqa: E501 :type: str """ @@ -368,22 +372,22 @@ def signature_url(self, signature_url): @property def size(self): - """ - Gets the size of this PackagesownerrepoFiles. - The calculated size of the file. + """Gets the size of this PackagesownerrepoFiles. # noqa: E501 + + The calculated size of the file. # noqa: E501 - :return: The size of this PackagesownerrepoFiles. + :return: The size of this PackagesownerrepoFiles. # noqa: E501 :rtype: int """ return self._size @size.setter def size(self, size): - """ - Sets the size of this PackagesownerrepoFiles. - The calculated size of the file. + """Sets the size of this PackagesownerrepoFiles. + + The calculated size of the file. # noqa: E501 - :param size: The size of this PackagesownerrepoFiles. + :param size: The size of this PackagesownerrepoFiles. # noqa: E501 :type: int """ @@ -391,22 +395,22 @@ def size(self, size): @property def slug_perm(self): - """ - Gets the slug_perm of this PackagesownerrepoFiles. - + """Gets the slug_perm of this PackagesownerrepoFiles. # noqa: E501 + + # noqa: E501 - :return: The slug_perm of this PackagesownerrepoFiles. + :return: The slug_perm of this PackagesownerrepoFiles. # noqa: E501 :rtype: str """ return self._slug_perm @slug_perm.setter def slug_perm(self, slug_perm): - """ - Sets the slug_perm of this PackagesownerrepoFiles. - + """Sets the slug_perm of this PackagesownerrepoFiles. + + # noqa: E501 - :param slug_perm: The slug_perm of this PackagesownerrepoFiles. + :param slug_perm: The slug_perm of this PackagesownerrepoFiles. # noqa: E501 :type: str """ @@ -414,34 +418,32 @@ def slug_perm(self, slug_perm): @property def tag(self): - """ - Gets the tag of this PackagesownerrepoFiles. - Freeform descriptor that describes what the file is. + """Gets the tag of this PackagesownerrepoFiles. # noqa: E501 - :return: The tag of this PackagesownerrepoFiles. + Freeform descriptor that describes what the file is. # noqa: E501 + + :return: The tag of this PackagesownerrepoFiles. # noqa: E501 :rtype: str """ return self._tag @tag.setter def tag(self, tag): - """ - Sets the tag of this PackagesownerrepoFiles. - Freeform descriptor that describes what the file is. + """Sets the tag of this PackagesownerrepoFiles. - :param tag: The tag of this PackagesownerrepoFiles. + Freeform descriptor that describes what the file is. # noqa: E501 + + :param tag: The tag of this PackagesownerrepoFiles. # noqa: E501 :type: str """ self._tag = tag def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -458,32 +460,30 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(PackagesownerrepoFiles, dict): + for key, value in self.items(): + result[key] = value return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, PackagesownerrepoFiles): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other + """Returns true if both objects are not equal""" + if not isinstance(other, PackagesownerrepoFiles): + return True + + return self.to_dict() != other.to_dict() diff --git a/bindings/python/src/cloudsmith_api/models/quota.py b/bindings/python/src/cloudsmith_api/models/quota.py index 69b3f6aa..4563815e 100644 --- a/bindings/python/src/cloudsmith_api/models/quota.py +++ b/bindings/python/src/cloudsmith_api/models/quota.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -11,18 +11,20 @@ """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration class Quota(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -38,47 +40,47 @@ class Quota(object): 'usage': 'usage' } - def __init__(self, usage=None): - """ - Quota - a model defined in Swagger - """ + def __init__(self, usage=None, _configuration=None): # noqa: E501 + """Quota - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._usage = None + self.discriminator = None self.usage = usage @property def usage(self): - """ - Gets the usage of this Quota. - + """Gets the usage of this Quota. # noqa: E501 + + # noqa: E501 - :return: The usage of this Quota. + :return: The usage of this Quota. # noqa: E501 :rtype: object """ return self._usage @usage.setter def usage(self, usage): - """ - Sets the usage of this Quota. - + """Sets the usage of this Quota. + + # noqa: E501 - :param usage: The usage of this Quota. + :param usage: The usage of this Quota. # noqa: E501 :type: object """ - if usage is None: - raise ValueError("Invalid value for `usage`, must not be `None`") + if self._configuration.client_side_validation and usage is None: + raise ValueError("Invalid value for `usage`, must not be `None`") # noqa: E501 self._usage = usage def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -95,32 +97,30 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(Quota, dict): + for key, value in self.items(): + result[key] = value return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, Quota): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other + """Returns true if both objects are not equal""" + if not isinstance(other, Quota): + return True + + return self.to_dict() != other.to_dict() diff --git a/bindings/python/src/cloudsmith_api/models/quota_history.py b/bindings/python/src/cloudsmith_api/models/quota_history.py index 1748558a..7e2aac8b 100644 --- a/bindings/python/src/cloudsmith_api/models/quota_history.py +++ b/bindings/python/src/cloudsmith_api/models/quota_history.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -11,18 +11,20 @@ """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration class QuotaHistory(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -38,47 +40,47 @@ class QuotaHistory(object): 'history': 'history' } - def __init__(self, history=None): - """ - QuotaHistory - a model defined in Swagger - """ + def __init__(self, history=None, _configuration=None): # noqa: E501 + """QuotaHistory - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._history = None + self.discriminator = None self.history = history @property def history(self): - """ - Gets the history of this QuotaHistory. - + """Gets the history of this QuotaHistory. # noqa: E501 + + # noqa: E501 - :return: The history of this QuotaHistory. + :return: The history of this QuotaHistory. # noqa: E501 :rtype: list[QuotaHistoryHistory] """ return self._history @history.setter def history(self, history): - """ - Sets the history of this QuotaHistory. - + """Sets the history of this QuotaHistory. + + # noqa: E501 - :param history: The history of this QuotaHistory. + :param history: The history of this QuotaHistory. # noqa: E501 :type: list[QuotaHistoryHistory] """ - if history is None: - raise ValueError("Invalid value for `history`, must not be `None`") + if self._configuration.client_side_validation and history is None: + raise ValueError("Invalid value for `history`, must not be `None`") # noqa: E501 self._history = history def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -95,32 +97,30 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(QuotaHistory, dict): + for key, value in self.items(): + result[key] = value return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, QuotaHistory): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other + """Returns true if both objects are not equal""" + if not isinstance(other, QuotaHistory): + return True + + return self.to_dict() != other.to_dict() diff --git a/bindings/python/src/cloudsmith_api/models/quota_history_history.py b/bindings/python/src/cloudsmith_api/models/quota_history_history.py index 6f748001..f724c7da 100644 --- a/bindings/python/src/cloudsmith_api/models/quota_history_history.py +++ b/bindings/python/src/cloudsmith_api/models/quota_history_history.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -11,18 +11,20 @@ """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration class QuotaHistoryHistory(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -48,10 +50,11 @@ class QuotaHistoryHistory(object): 'start': 'start' } - def __init__(self, days=None, display=None, end=None, plan=None, raw=None, start=None): - """ - QuotaHistoryHistory - a model defined in Swagger - """ + def __init__(self, days=None, display=None, end=None, plan=None, raw=None, start=None, _configuration=None): # noqa: E501 + """QuotaHistoryHistory - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._days = None self._display = None @@ -59,38 +62,39 @@ def __init__(self, days=None, display=None, end=None, plan=None, raw=None, start self._plan = None self._raw = None self._start = None + self.discriminator = None if days is not None: - self.days = days + self.days = days if display is not None: - self.display = display + self.display = display if end is not None: - self.end = end + self.end = end if plan is not None: - self.plan = plan + self.plan = plan if raw is not None: - self.raw = raw + self.raw = raw if start is not None: - self.start = start + self.start = start @property def days(self): - """ - Gets the days of this QuotaHistoryHistory. - + """Gets the days of this QuotaHistoryHistory. # noqa: E501 + + # noqa: E501 - :return: The days of this QuotaHistoryHistory. + :return: The days of this QuotaHistoryHistory. # noqa: E501 :rtype: int """ return self._days @days.setter def days(self, days): - """ - Sets the days of this QuotaHistoryHistory. - + """Sets the days of this QuotaHistoryHistory. + + # noqa: E501 - :param days: The days of this QuotaHistoryHistory. + :param days: The days of this QuotaHistoryHistory. # noqa: E501 :type: int """ @@ -98,22 +102,22 @@ def days(self, days): @property def display(self): - """ - Gets the display of this QuotaHistoryHistory. - + """Gets the display of this QuotaHistoryHistory. # noqa: E501 + + # noqa: E501 - :return: The display of this QuotaHistoryHistory. + :return: The display of this QuotaHistoryHistory. # noqa: E501 :rtype: object """ return self._display @display.setter def display(self, display): - """ - Sets the display of this QuotaHistoryHistory. - + """Sets the display of this QuotaHistoryHistory. - :param display: The display of this QuotaHistoryHistory. + # noqa: E501 + + :param display: The display of this QuotaHistoryHistory. # noqa: E501 :type: object """ @@ -121,22 +125,22 @@ def display(self, display): @property def end(self): - """ - Gets the end of this QuotaHistoryHistory. - + """Gets the end of this QuotaHistoryHistory. # noqa: E501 + + # noqa: E501 - :return: The end of this QuotaHistoryHistory. + :return: The end of this QuotaHistoryHistory. # noqa: E501 :rtype: str """ return self._end @end.setter def end(self, end): - """ - Sets the end of this QuotaHistoryHistory. - + """Sets the end of this QuotaHistoryHistory. + + # noqa: E501 - :param end: The end of this QuotaHistoryHistory. + :param end: The end of this QuotaHistoryHistory. # noqa: E501 :type: str """ @@ -144,22 +148,22 @@ def end(self, end): @property def plan(self): - """ - Gets the plan of this QuotaHistoryHistory. - + """Gets the plan of this QuotaHistoryHistory. # noqa: E501 - :return: The plan of this QuotaHistoryHistory. + # noqa: E501 + + :return: The plan of this QuotaHistoryHistory. # noqa: E501 :rtype: str """ return self._plan @plan.setter def plan(self, plan): - """ - Sets the plan of this QuotaHistoryHistory. - + """Sets the plan of this QuotaHistoryHistory. - :param plan: The plan of this QuotaHistoryHistory. + # noqa: E501 + + :param plan: The plan of this QuotaHistoryHistory. # noqa: E501 :type: str """ @@ -167,22 +171,22 @@ def plan(self, plan): @property def raw(self): - """ - Gets the raw of this QuotaHistoryHistory. - + """Gets the raw of this QuotaHistoryHistory. # noqa: E501 + + # noqa: E501 - :return: The raw of this QuotaHistoryHistory. + :return: The raw of this QuotaHistoryHistory. # noqa: E501 :rtype: object """ return self._raw @raw.setter def raw(self, raw): - """ - Sets the raw of this QuotaHistoryHistory. - + """Sets the raw of this QuotaHistoryHistory. + + # noqa: E501 - :param raw: The raw of this QuotaHistoryHistory. + :param raw: The raw of this QuotaHistoryHistory. # noqa: E501 :type: object """ @@ -190,34 +194,32 @@ def raw(self, raw): @property def start(self): - """ - Gets the start of this QuotaHistoryHistory. - + """Gets the start of this QuotaHistoryHistory. # noqa: E501 - :return: The start of this QuotaHistoryHistory. + # noqa: E501 + + :return: The start of this QuotaHistoryHistory. # noqa: E501 :rtype: str """ return self._start @start.setter def start(self, start): - """ - Sets the start of this QuotaHistoryHistory. - + """Sets the start of this QuotaHistoryHistory. + + # noqa: E501 - :param start: The start of this QuotaHistoryHistory. + :param start: The start of this QuotaHistoryHistory. # noqa: E501 :type: str """ self._start = start def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -234,32 +236,30 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(QuotaHistoryHistory, dict): + for key, value in self.items(): + result[key] = value return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, QuotaHistoryHistory): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other + """Returns true if both objects are not equal""" + if not isinstance(other, QuotaHistoryHistory): + return True + + return self.to_dict() != other.to_dict() diff --git a/bindings/python/src/cloudsmith_api/models/raw_package_upload.py b/bindings/python/src/cloudsmith_api/models/raw_package_upload.py index 7529b594..578257eb 100644 --- a/bindings/python/src/cloudsmith_api/models/raw_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/raw_package_upload.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -11,18 +11,20 @@ """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration class RawPackageUpload(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -164,10 +166,11 @@ class RawPackageUpload(object): 'vulnerability_scan_results_url': 'vulnerability_scan_results_url' } - def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, distro=None, distro_version=None, downloads=None, epoch=None, extension=None, filename=None, files=None, format=None, format_url=None, identifier_perm=None, indexed=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, package_type=None, release=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status=None, security_scan_status_updated_at=None, self_html_url=None, self_url=None, signature_url=None, size=None, slug=None, slug_perm=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_immutable=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_scan_results_url=None): - """ - RawPackageUpload - a model defined in Swagger - """ + def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, distro=None, distro_version=None, downloads=None, epoch=None, extension=None, filename=None, files=None, format=None, format_url=None, identifier_perm=None, indexed=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, package_type=None, release=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status=None, security_scan_status_updated_at=None, self_html_url=None, self_url=None, signature_url=None, size=None, slug=None, slug_perm=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_immutable=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 + """RawPackageUpload - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._architectures = None self._cdn_url = None @@ -233,154 +236,155 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._version = None self._version_orig = None self._vulnerability_scan_results_url = None + self.discriminator = None if architectures is not None: - self.architectures = architectures + self.architectures = architectures if cdn_url is not None: - self.cdn_url = cdn_url + self.cdn_url = cdn_url if checksum_md5 is not None: - self.checksum_md5 = checksum_md5 + self.checksum_md5 = checksum_md5 if checksum_sha1 is not None: - self.checksum_sha1 = checksum_sha1 + self.checksum_sha1 = checksum_sha1 if checksum_sha256 is not None: - self.checksum_sha256 = checksum_sha256 + self.checksum_sha256 = checksum_sha256 if checksum_sha512 is not None: - self.checksum_sha512 = checksum_sha512 + self.checksum_sha512 = checksum_sha512 if dependencies_checksum_md5 is not None: - self.dependencies_checksum_md5 = dependencies_checksum_md5 + self.dependencies_checksum_md5 = dependencies_checksum_md5 if dependencies_url is not None: - self.dependencies_url = dependencies_url + self.dependencies_url = dependencies_url if description is not None: - self.description = description + self.description = description if distro is not None: - self.distro = distro + self.distro = distro if distro_version is not None: - self.distro_version = distro_version + self.distro_version = distro_version if downloads is not None: - self.downloads = downloads + self.downloads = downloads if epoch is not None: - self.epoch = epoch + self.epoch = epoch if extension is not None: - self.extension = extension + self.extension = extension if filename is not None: - self.filename = filename + self.filename = filename if files is not None: - self.files = files + self.files = files if format is not None: - self.format = format + self.format = format if format_url is not None: - self.format_url = format_url + self.format_url = format_url if identifier_perm is not None: - self.identifier_perm = identifier_perm + self.identifier_perm = identifier_perm if indexed is not None: - self.indexed = indexed + self.indexed = indexed if is_sync_awaiting is not None: - self.is_sync_awaiting = is_sync_awaiting + self.is_sync_awaiting = is_sync_awaiting if is_sync_completed is not None: - self.is_sync_completed = is_sync_completed + self.is_sync_completed = is_sync_completed if is_sync_failed is not None: - self.is_sync_failed = is_sync_failed + self.is_sync_failed = is_sync_failed if is_sync_in_flight is not None: - self.is_sync_in_flight = is_sync_in_flight + self.is_sync_in_flight = is_sync_in_flight if is_sync_in_progress is not None: - self.is_sync_in_progress = is_sync_in_progress + self.is_sync_in_progress = is_sync_in_progress if license is not None: - self.license = license + self.license = license if name is not None: - self.name = name + self.name = name if namespace is not None: - self.namespace = namespace + self.namespace = namespace if namespace_url is not None: - self.namespace_url = namespace_url + self.namespace_url = namespace_url if num_files is not None: - self.num_files = num_files + self.num_files = num_files if package_type is not None: - self.package_type = package_type + self.package_type = package_type if release is not None: - self.release = release + self.release = release if repository is not None: - self.repository = repository + self.repository = repository if repository_url is not None: - self.repository_url = repository_url + self.repository_url = repository_url if security_scan_completed_at is not None: - self.security_scan_completed_at = security_scan_completed_at + self.security_scan_completed_at = security_scan_completed_at if security_scan_started_at is not None: - self.security_scan_started_at = security_scan_started_at + self.security_scan_started_at = security_scan_started_at if security_scan_status is not None: - self.security_scan_status = security_scan_status + self.security_scan_status = security_scan_status if security_scan_status_updated_at is not None: - self.security_scan_status_updated_at = security_scan_status_updated_at + self.security_scan_status_updated_at = security_scan_status_updated_at if self_html_url is not None: - self.self_html_url = self_html_url + self.self_html_url = self_html_url if self_url is not None: - self.self_url = self_url + self.self_url = self_url if signature_url is not None: - self.signature_url = signature_url + self.signature_url = signature_url if size is not None: - self.size = size + self.size = size if slug is not None: - self.slug = slug + self.slug = slug if slug_perm is not None: - self.slug_perm = slug_perm + self.slug_perm = slug_perm if stage is not None: - self.stage = stage + self.stage = stage if stage_str is not None: - self.stage_str = stage_str + self.stage_str = stage_str if stage_updated_at is not None: - self.stage_updated_at = stage_updated_at + self.stage_updated_at = stage_updated_at if status is not None: - self.status = status + self.status = status if status_reason is not None: - self.status_reason = status_reason + self.status_reason = status_reason if status_str is not None: - self.status_str = status_str + self.status_str = status_str if status_updated_at is not None: - self.status_updated_at = status_updated_at + self.status_updated_at = status_updated_at if status_url is not None: - self.status_url = status_url + self.status_url = status_url if subtype is not None: - self.subtype = subtype + self.subtype = subtype if summary is not None: - self.summary = summary + self.summary = summary if sync_finished_at is not None: - self.sync_finished_at = sync_finished_at + self.sync_finished_at = sync_finished_at if sync_progress is not None: - self.sync_progress = sync_progress + self.sync_progress = sync_progress if tags_immutable is not None: - self.tags_immutable = tags_immutable + self.tags_immutable = tags_immutable if type_display is not None: - self.type_display = type_display + self.type_display = type_display if uploaded_at is not None: - self.uploaded_at = uploaded_at + self.uploaded_at = uploaded_at if uploader is not None: - self.uploader = uploader + self.uploader = uploader if uploader_url is not None: - self.uploader_url = uploader_url + self.uploader_url = uploader_url if version is not None: - self.version = version + self.version = version if version_orig is not None: - self.version_orig = version_orig + self.version_orig = version_orig if vulnerability_scan_results_url is not None: - self.vulnerability_scan_results_url = vulnerability_scan_results_url + self.vulnerability_scan_results_url = vulnerability_scan_results_url @property def architectures(self): - """ - Gets the architectures of this RawPackageUpload. - + """Gets the architectures of this RawPackageUpload. # noqa: E501 + + # noqa: E501 - :return: The architectures of this RawPackageUpload. + :return: The architectures of this RawPackageUpload. # noqa: E501 :rtype: list[PackagesownerrepoArchitectures] """ return self._architectures @architectures.setter def architectures(self, architectures): - """ - Sets the architectures of this RawPackageUpload. - + """Sets the architectures of this RawPackageUpload. + + # noqa: E501 - :param architectures: The architectures of this RawPackageUpload. + :param architectures: The architectures of this RawPackageUpload. # noqa: E501 :type: list[PackagesownerrepoArchitectures] """ @@ -388,22 +392,22 @@ def architectures(self, architectures): @property def cdn_url(self): - """ - Gets the cdn_url of this RawPackageUpload. - + """Gets the cdn_url of this RawPackageUpload. # noqa: E501 - :return: The cdn_url of this RawPackageUpload. + # noqa: E501 + + :return: The cdn_url of this RawPackageUpload. # noqa: E501 :rtype: str """ return self._cdn_url @cdn_url.setter def cdn_url(self, cdn_url): - """ - Sets the cdn_url of this RawPackageUpload. - + """Sets the cdn_url of this RawPackageUpload. - :param cdn_url: The cdn_url of this RawPackageUpload. + # noqa: E501 + + :param cdn_url: The cdn_url of this RawPackageUpload. # noqa: E501 :type: str """ @@ -411,22 +415,22 @@ def cdn_url(self, cdn_url): @property def checksum_md5(self): - """ - Gets the checksum_md5 of this RawPackageUpload. - + """Gets the checksum_md5 of this RawPackageUpload. # noqa: E501 - :return: The checksum_md5 of this RawPackageUpload. + # noqa: E501 + + :return: The checksum_md5 of this RawPackageUpload. # noqa: E501 :rtype: str """ return self._checksum_md5 @checksum_md5.setter def checksum_md5(self, checksum_md5): - """ - Sets the checksum_md5 of this RawPackageUpload. - + """Sets the checksum_md5 of this RawPackageUpload. - :param checksum_md5: The checksum_md5 of this RawPackageUpload. + # noqa: E501 + + :param checksum_md5: The checksum_md5 of this RawPackageUpload. # noqa: E501 :type: str """ @@ -434,22 +438,22 @@ def checksum_md5(self, checksum_md5): @property def checksum_sha1(self): - """ - Gets the checksum_sha1 of this RawPackageUpload. - + """Gets the checksum_sha1 of this RawPackageUpload. # noqa: E501 + + # noqa: E501 - :return: The checksum_sha1 of this RawPackageUpload. + :return: The checksum_sha1 of this RawPackageUpload. # noqa: E501 :rtype: str """ return self._checksum_sha1 @checksum_sha1.setter def checksum_sha1(self, checksum_sha1): - """ - Sets the checksum_sha1 of this RawPackageUpload. - + """Sets the checksum_sha1 of this RawPackageUpload. + + # noqa: E501 - :param checksum_sha1: The checksum_sha1 of this RawPackageUpload. + :param checksum_sha1: The checksum_sha1 of this RawPackageUpload. # noqa: E501 :type: str """ @@ -457,22 +461,22 @@ def checksum_sha1(self, checksum_sha1): @property def checksum_sha256(self): - """ - Gets the checksum_sha256 of this RawPackageUpload. - + """Gets the checksum_sha256 of this RawPackageUpload. # noqa: E501 + + # noqa: E501 - :return: The checksum_sha256 of this RawPackageUpload. + :return: The checksum_sha256 of this RawPackageUpload. # noqa: E501 :rtype: str """ return self._checksum_sha256 @checksum_sha256.setter def checksum_sha256(self, checksum_sha256): - """ - Sets the checksum_sha256 of this RawPackageUpload. - + """Sets the checksum_sha256 of this RawPackageUpload. + + # noqa: E501 - :param checksum_sha256: The checksum_sha256 of this RawPackageUpload. + :param checksum_sha256: The checksum_sha256 of this RawPackageUpload. # noqa: E501 :type: str """ @@ -480,22 +484,22 @@ def checksum_sha256(self, checksum_sha256): @property def checksum_sha512(self): - """ - Gets the checksum_sha512 of this RawPackageUpload. - + """Gets the checksum_sha512 of this RawPackageUpload. # noqa: E501 + + # noqa: E501 - :return: The checksum_sha512 of this RawPackageUpload. + :return: The checksum_sha512 of this RawPackageUpload. # noqa: E501 :rtype: str """ return self._checksum_sha512 @checksum_sha512.setter def checksum_sha512(self, checksum_sha512): - """ - Sets the checksum_sha512 of this RawPackageUpload. - + """Sets the checksum_sha512 of this RawPackageUpload. + + # noqa: E501 - :param checksum_sha512: The checksum_sha512 of this RawPackageUpload. + :param checksum_sha512: The checksum_sha512 of this RawPackageUpload. # noqa: E501 :type: str """ @@ -503,22 +507,22 @@ def checksum_sha512(self, checksum_sha512): @property def dependencies_checksum_md5(self): - """ - Gets the dependencies_checksum_md5 of this RawPackageUpload. - A checksum of all of the package's dependencies. + """Gets the dependencies_checksum_md5 of this RawPackageUpload. # noqa: E501 + + A checksum of all of the package's dependencies. # noqa: E501 - :return: The dependencies_checksum_md5 of this RawPackageUpload. + :return: The dependencies_checksum_md5 of this RawPackageUpload. # noqa: E501 :rtype: str """ return self._dependencies_checksum_md5 @dependencies_checksum_md5.setter def dependencies_checksum_md5(self, dependencies_checksum_md5): - """ - Sets the dependencies_checksum_md5 of this RawPackageUpload. - A checksum of all of the package's dependencies. + """Sets the dependencies_checksum_md5 of this RawPackageUpload. + + A checksum of all of the package's dependencies. # noqa: E501 - :param dependencies_checksum_md5: The dependencies_checksum_md5 of this RawPackageUpload. + :param dependencies_checksum_md5: The dependencies_checksum_md5 of this RawPackageUpload. # noqa: E501 :type: str """ @@ -526,22 +530,22 @@ def dependencies_checksum_md5(self, dependencies_checksum_md5): @property def dependencies_url(self): - """ - Gets the dependencies_url of this RawPackageUpload. - + """Gets the dependencies_url of this RawPackageUpload. # noqa: E501 + + # noqa: E501 - :return: The dependencies_url of this RawPackageUpload. + :return: The dependencies_url of this RawPackageUpload. # noqa: E501 :rtype: str """ return self._dependencies_url @dependencies_url.setter def dependencies_url(self, dependencies_url): - """ - Sets the dependencies_url of this RawPackageUpload. - + """Sets the dependencies_url of this RawPackageUpload. - :param dependencies_url: The dependencies_url of this RawPackageUpload. + # noqa: E501 + + :param dependencies_url: The dependencies_url of this RawPackageUpload. # noqa: E501 :type: str """ @@ -549,22 +553,22 @@ def dependencies_url(self, dependencies_url): @property def description(self): - """ - Gets the description of this RawPackageUpload. - A textual description of this package. + """Gets the description of this RawPackageUpload. # noqa: E501 - :return: The description of this RawPackageUpload. + A textual description of this package. # noqa: E501 + + :return: The description of this RawPackageUpload. # noqa: E501 :rtype: str """ return self._description @description.setter def description(self, description): - """ - Sets the description of this RawPackageUpload. - A textual description of this package. + """Sets the description of this RawPackageUpload. - :param description: The description of this RawPackageUpload. + A textual description of this package. # noqa: E501 + + :param description: The description of this RawPackageUpload. # noqa: E501 :type: str """ @@ -572,22 +576,22 @@ def description(self, description): @property def distro(self): - """ - Gets the distro of this RawPackageUpload. - + """Gets the distro of this RawPackageUpload. # noqa: E501 - :return: The distro of this RawPackageUpload. + # noqa: E501 + + :return: The distro of this RawPackageUpload. # noqa: E501 :rtype: object """ return self._distro @distro.setter def distro(self, distro): - """ - Sets the distro of this RawPackageUpload. - + """Sets the distro of this RawPackageUpload. - :param distro: The distro of this RawPackageUpload. + # noqa: E501 + + :param distro: The distro of this RawPackageUpload. # noqa: E501 :type: object """ @@ -595,22 +599,22 @@ def distro(self, distro): @property def distro_version(self): - """ - Gets the distro_version of this RawPackageUpload. - + """Gets the distro_version of this RawPackageUpload. # noqa: E501 - :return: The distro_version of this RawPackageUpload. + # noqa: E501 + + :return: The distro_version of this RawPackageUpload. # noqa: E501 :rtype: object """ return self._distro_version @distro_version.setter def distro_version(self, distro_version): - """ - Sets the distro_version of this RawPackageUpload. - + """Sets the distro_version of this RawPackageUpload. - :param distro_version: The distro_version of this RawPackageUpload. + # noqa: E501 + + :param distro_version: The distro_version of this RawPackageUpload. # noqa: E501 :type: object """ @@ -618,22 +622,22 @@ def distro_version(self, distro_version): @property def downloads(self): - """ - Gets the downloads of this RawPackageUpload. - + """Gets the downloads of this RawPackageUpload. # noqa: E501 - :return: The downloads of this RawPackageUpload. + # noqa: E501 + + :return: The downloads of this RawPackageUpload. # noqa: E501 :rtype: int """ return self._downloads @downloads.setter def downloads(self, downloads): - """ - Sets the downloads of this RawPackageUpload. - + """Sets the downloads of this RawPackageUpload. + + # noqa: E501 - :param downloads: The downloads of this RawPackageUpload. + :param downloads: The downloads of this RawPackageUpload. # noqa: E501 :type: int """ @@ -641,22 +645,22 @@ def downloads(self, downloads): @property def epoch(self): - """ - Gets the epoch of this RawPackageUpload. - The epoch of the package version (if any). + """Gets the epoch of this RawPackageUpload. # noqa: E501 + + The epoch of the package version (if any). # noqa: E501 - :return: The epoch of this RawPackageUpload. + :return: The epoch of this RawPackageUpload. # noqa: E501 :rtype: int """ return self._epoch @epoch.setter def epoch(self, epoch): - """ - Sets the epoch of this RawPackageUpload. - The epoch of the package version (if any). + """Sets the epoch of this RawPackageUpload. + + The epoch of the package version (if any). # noqa: E501 - :param epoch: The epoch of this RawPackageUpload. + :param epoch: The epoch of this RawPackageUpload. # noqa: E501 :type: int """ @@ -664,22 +668,22 @@ def epoch(self, epoch): @property def extension(self): - """ - Gets the extension of this RawPackageUpload. - + """Gets the extension of this RawPackageUpload. # noqa: E501 + + # noqa: E501 - :return: The extension of this RawPackageUpload. + :return: The extension of this RawPackageUpload. # noqa: E501 :rtype: str """ return self._extension @extension.setter def extension(self, extension): - """ - Sets the extension of this RawPackageUpload. - + """Sets the extension of this RawPackageUpload. + + # noqa: E501 - :param extension: The extension of this RawPackageUpload. + :param extension: The extension of this RawPackageUpload. # noqa: E501 :type: str """ @@ -687,22 +691,22 @@ def extension(self, extension): @property def filename(self): - """ - Gets the filename of this RawPackageUpload. - + """Gets the filename of this RawPackageUpload. # noqa: E501 + + # noqa: E501 - :return: The filename of this RawPackageUpload. + :return: The filename of this RawPackageUpload. # noqa: E501 :rtype: str """ return self._filename @filename.setter def filename(self, filename): - """ - Sets the filename of this RawPackageUpload. - + """Sets the filename of this RawPackageUpload. + + # noqa: E501 - :param filename: The filename of this RawPackageUpload. + :param filename: The filename of this RawPackageUpload. # noqa: E501 :type: str """ @@ -710,22 +714,22 @@ def filename(self, filename): @property def files(self): - """ - Gets the files of this RawPackageUpload. - + """Gets the files of this RawPackageUpload. # noqa: E501 + + # noqa: E501 - :return: The files of this RawPackageUpload. + :return: The files of this RawPackageUpload. # noqa: E501 :rtype: list[PackagesownerrepoFiles] """ return self._files @files.setter def files(self, files): - """ - Sets the files of this RawPackageUpload. - + """Sets the files of this RawPackageUpload. + + # noqa: E501 - :param files: The files of this RawPackageUpload. + :param files: The files of this RawPackageUpload. # noqa: E501 :type: list[PackagesownerrepoFiles] """ @@ -733,22 +737,22 @@ def files(self, files): @property def format(self): - """ - Gets the format of this RawPackageUpload. - + """Gets the format of this RawPackageUpload. # noqa: E501 - :return: The format of this RawPackageUpload. + # noqa: E501 + + :return: The format of this RawPackageUpload. # noqa: E501 :rtype: str """ return self._format @format.setter def format(self, format): - """ - Sets the format of this RawPackageUpload. - + """Sets the format of this RawPackageUpload. - :param format: The format of this RawPackageUpload. + # noqa: E501 + + :param format: The format of this RawPackageUpload. # noqa: E501 :type: str """ @@ -756,22 +760,22 @@ def format(self, format): @property def format_url(self): - """ - Gets the format_url of this RawPackageUpload. - + """Gets the format_url of this RawPackageUpload. # noqa: E501 - :return: The format_url of this RawPackageUpload. + # noqa: E501 + + :return: The format_url of this RawPackageUpload. # noqa: E501 :rtype: str """ return self._format_url @format_url.setter def format_url(self, format_url): - """ - Sets the format_url of this RawPackageUpload. - + """Sets the format_url of this RawPackageUpload. - :param format_url: The format_url of this RawPackageUpload. + # noqa: E501 + + :param format_url: The format_url of this RawPackageUpload. # noqa: E501 :type: str """ @@ -779,22 +783,22 @@ def format_url(self, format_url): @property def identifier_perm(self): - """ - Gets the identifier_perm of this RawPackageUpload. - Unique and permanent identifier for the package. + """Gets the identifier_perm of this RawPackageUpload. # noqa: E501 + + Unique and permanent identifier for the package. # noqa: E501 - :return: The identifier_perm of this RawPackageUpload. + :return: The identifier_perm of this RawPackageUpload. # noqa: E501 :rtype: str """ return self._identifier_perm @identifier_perm.setter def identifier_perm(self, identifier_perm): - """ - Sets the identifier_perm of this RawPackageUpload. - Unique and permanent identifier for the package. + """Sets the identifier_perm of this RawPackageUpload. + + Unique and permanent identifier for the package. # noqa: E501 - :param identifier_perm: The identifier_perm of this RawPackageUpload. + :param identifier_perm: The identifier_perm of this RawPackageUpload. # noqa: E501 :type: str """ @@ -802,22 +806,22 @@ def identifier_perm(self, identifier_perm): @property def indexed(self): - """ - Gets the indexed of this RawPackageUpload. - + """Gets the indexed of this RawPackageUpload. # noqa: E501 + + # noqa: E501 - :return: The indexed of this RawPackageUpload. + :return: The indexed of this RawPackageUpload. # noqa: E501 :rtype: bool """ return self._indexed @indexed.setter def indexed(self, indexed): - """ - Sets the indexed of this RawPackageUpload. - + """Sets the indexed of this RawPackageUpload. + + # noqa: E501 - :param indexed: The indexed of this RawPackageUpload. + :param indexed: The indexed of this RawPackageUpload. # noqa: E501 :type: bool """ @@ -825,22 +829,22 @@ def indexed(self, indexed): @property def is_sync_awaiting(self): - """ - Gets the is_sync_awaiting of this RawPackageUpload. - + """Gets the is_sync_awaiting of this RawPackageUpload. # noqa: E501 + + # noqa: E501 - :return: The is_sync_awaiting of this RawPackageUpload. + :return: The is_sync_awaiting of this RawPackageUpload. # noqa: E501 :rtype: bool """ return self._is_sync_awaiting @is_sync_awaiting.setter def is_sync_awaiting(self, is_sync_awaiting): - """ - Sets the is_sync_awaiting of this RawPackageUpload. - + """Sets the is_sync_awaiting of this RawPackageUpload. - :param is_sync_awaiting: The is_sync_awaiting of this RawPackageUpload. + # noqa: E501 + + :param is_sync_awaiting: The is_sync_awaiting of this RawPackageUpload. # noqa: E501 :type: bool """ @@ -848,22 +852,22 @@ def is_sync_awaiting(self, is_sync_awaiting): @property def is_sync_completed(self): - """ - Gets the is_sync_completed of this RawPackageUpload. - + """Gets the is_sync_completed of this RawPackageUpload. # noqa: E501 - :return: The is_sync_completed of this RawPackageUpload. + # noqa: E501 + + :return: The is_sync_completed of this RawPackageUpload. # noqa: E501 :rtype: bool """ return self._is_sync_completed @is_sync_completed.setter def is_sync_completed(self, is_sync_completed): - """ - Sets the is_sync_completed of this RawPackageUpload. - + """Sets the is_sync_completed of this RawPackageUpload. - :param is_sync_completed: The is_sync_completed of this RawPackageUpload. + # noqa: E501 + + :param is_sync_completed: The is_sync_completed of this RawPackageUpload. # noqa: E501 :type: bool """ @@ -871,22 +875,22 @@ def is_sync_completed(self, is_sync_completed): @property def is_sync_failed(self): - """ - Gets the is_sync_failed of this RawPackageUpload. - + """Gets the is_sync_failed of this RawPackageUpload. # noqa: E501 - :return: The is_sync_failed of this RawPackageUpload. + # noqa: E501 + + :return: The is_sync_failed of this RawPackageUpload. # noqa: E501 :rtype: bool """ return self._is_sync_failed @is_sync_failed.setter def is_sync_failed(self, is_sync_failed): - """ - Sets the is_sync_failed of this RawPackageUpload. - + """Sets the is_sync_failed of this RawPackageUpload. - :param is_sync_failed: The is_sync_failed of this RawPackageUpload. + # noqa: E501 + + :param is_sync_failed: The is_sync_failed of this RawPackageUpload. # noqa: E501 :type: bool """ @@ -894,22 +898,22 @@ def is_sync_failed(self, is_sync_failed): @property def is_sync_in_flight(self): - """ - Gets the is_sync_in_flight of this RawPackageUpload. - + """Gets the is_sync_in_flight of this RawPackageUpload. # noqa: E501 - :return: The is_sync_in_flight of this RawPackageUpload. + # noqa: E501 + + :return: The is_sync_in_flight of this RawPackageUpload. # noqa: E501 :rtype: bool """ return self._is_sync_in_flight @is_sync_in_flight.setter def is_sync_in_flight(self, is_sync_in_flight): - """ - Sets the is_sync_in_flight of this RawPackageUpload. - + """Sets the is_sync_in_flight of this RawPackageUpload. - :param is_sync_in_flight: The is_sync_in_flight of this RawPackageUpload. + # noqa: E501 + + :param is_sync_in_flight: The is_sync_in_flight of this RawPackageUpload. # noqa: E501 :type: bool """ @@ -917,22 +921,22 @@ def is_sync_in_flight(self, is_sync_in_flight): @property def is_sync_in_progress(self): - """ - Gets the is_sync_in_progress of this RawPackageUpload. - + """Gets the is_sync_in_progress of this RawPackageUpload. # noqa: E501 - :return: The is_sync_in_progress of this RawPackageUpload. + # noqa: E501 + + :return: The is_sync_in_progress of this RawPackageUpload. # noqa: E501 :rtype: bool """ return self._is_sync_in_progress @is_sync_in_progress.setter def is_sync_in_progress(self, is_sync_in_progress): - """ - Sets the is_sync_in_progress of this RawPackageUpload. - + """Sets the is_sync_in_progress of this RawPackageUpload. + + # noqa: E501 - :param is_sync_in_progress: The is_sync_in_progress of this RawPackageUpload. + :param is_sync_in_progress: The is_sync_in_progress of this RawPackageUpload. # noqa: E501 :type: bool """ @@ -940,22 +944,22 @@ def is_sync_in_progress(self, is_sync_in_progress): @property def license(self): - """ - Gets the license of this RawPackageUpload. - The license of this package. + """Gets the license of this RawPackageUpload. # noqa: E501 + + The license of this package. # noqa: E501 - :return: The license of this RawPackageUpload. + :return: The license of this RawPackageUpload. # noqa: E501 :rtype: str """ return self._license @license.setter def license(self, license): - """ - Sets the license of this RawPackageUpload. - The license of this package. + """Sets the license of this RawPackageUpload. + + The license of this package. # noqa: E501 - :param license: The license of this RawPackageUpload. + :param license: The license of this RawPackageUpload. # noqa: E501 :type: str """ @@ -963,22 +967,22 @@ def license(self, license): @property def name(self): - """ - Gets the name of this RawPackageUpload. - The name of this package. + """Gets the name of this RawPackageUpload. # noqa: E501 + + The name of this package. # noqa: E501 - :return: The name of this RawPackageUpload. + :return: The name of this RawPackageUpload. # noqa: E501 :rtype: str """ return self._name @name.setter def name(self, name): - """ - Sets the name of this RawPackageUpload. - The name of this package. + """Sets the name of this RawPackageUpload. + + The name of this package. # noqa: E501 - :param name: The name of this RawPackageUpload. + :param name: The name of this RawPackageUpload. # noqa: E501 :type: str """ @@ -986,22 +990,22 @@ def name(self, name): @property def namespace(self): - """ - Gets the namespace of this RawPackageUpload. - + """Gets the namespace of this RawPackageUpload. # noqa: E501 + + # noqa: E501 - :return: The namespace of this RawPackageUpload. + :return: The namespace of this RawPackageUpload. # noqa: E501 :rtype: str """ return self._namespace @namespace.setter def namespace(self, namespace): - """ - Sets the namespace of this RawPackageUpload. - + """Sets the namespace of this RawPackageUpload. + + # noqa: E501 - :param namespace: The namespace of this RawPackageUpload. + :param namespace: The namespace of this RawPackageUpload. # noqa: E501 :type: str """ @@ -1009,22 +1013,22 @@ def namespace(self, namespace): @property def namespace_url(self): - """ - Gets the namespace_url of this RawPackageUpload. - + """Gets the namespace_url of this RawPackageUpload. # noqa: E501 + + # noqa: E501 - :return: The namespace_url of this RawPackageUpload. + :return: The namespace_url of this RawPackageUpload. # noqa: E501 :rtype: str """ return self._namespace_url @namespace_url.setter def namespace_url(self, namespace_url): - """ - Sets the namespace_url of this RawPackageUpload. - + """Sets the namespace_url of this RawPackageUpload. + + # noqa: E501 - :param namespace_url: The namespace_url of this RawPackageUpload. + :param namespace_url: The namespace_url of this RawPackageUpload. # noqa: E501 :type: str """ @@ -1032,22 +1036,22 @@ def namespace_url(self, namespace_url): @property def num_files(self): - """ - Gets the num_files of this RawPackageUpload. - + """Gets the num_files of this RawPackageUpload. # noqa: E501 - :return: The num_files of this RawPackageUpload. + # noqa: E501 + + :return: The num_files of this RawPackageUpload. # noqa: E501 :rtype: int """ return self._num_files @num_files.setter def num_files(self, num_files): - """ - Sets the num_files of this RawPackageUpload. - + """Sets the num_files of this RawPackageUpload. - :param num_files: The num_files of this RawPackageUpload. + # noqa: E501 + + :param num_files: The num_files of this RawPackageUpload. # noqa: E501 :type: int """ @@ -1055,22 +1059,22 @@ def num_files(self, num_files): @property def package_type(self): - """ - Gets the package_type of this RawPackageUpload. - The type of package contents. + """Gets the package_type of this RawPackageUpload. # noqa: E501 - :return: The package_type of this RawPackageUpload. + The type of package contents. # noqa: E501 + + :return: The package_type of this RawPackageUpload. # noqa: E501 :rtype: str """ return self._package_type @package_type.setter def package_type(self, package_type): - """ - Sets the package_type of this RawPackageUpload. - The type of package contents. + """Sets the package_type of this RawPackageUpload. - :param package_type: The package_type of this RawPackageUpload. + The type of package contents. # noqa: E501 + + :param package_type: The package_type of this RawPackageUpload. # noqa: E501 :type: str """ @@ -1078,22 +1082,22 @@ def package_type(self, package_type): @property def release(self): - """ - Gets the release of this RawPackageUpload. - The release of the package version (if any). + """Gets the release of this RawPackageUpload. # noqa: E501 - :return: The release of this RawPackageUpload. + The release of the package version (if any). # noqa: E501 + + :return: The release of this RawPackageUpload. # noqa: E501 :rtype: str """ return self._release @release.setter def release(self, release): - """ - Sets the release of this RawPackageUpload. - The release of the package version (if any). + """Sets the release of this RawPackageUpload. - :param release: The release of this RawPackageUpload. + The release of the package version (if any). # noqa: E501 + + :param release: The release of this RawPackageUpload. # noqa: E501 :type: str """ @@ -1101,22 +1105,22 @@ def release(self, release): @property def repository(self): - """ - Gets the repository of this RawPackageUpload. - + """Gets the repository of this RawPackageUpload. # noqa: E501 - :return: The repository of this RawPackageUpload. + # noqa: E501 + + :return: The repository of this RawPackageUpload. # noqa: E501 :rtype: str """ return self._repository @repository.setter def repository(self, repository): - """ - Sets the repository of this RawPackageUpload. - + """Sets the repository of this RawPackageUpload. - :param repository: The repository of this RawPackageUpload. + # noqa: E501 + + :param repository: The repository of this RawPackageUpload. # noqa: E501 :type: str """ @@ -1124,22 +1128,22 @@ def repository(self, repository): @property def repository_url(self): - """ - Gets the repository_url of this RawPackageUpload. - + """Gets the repository_url of this RawPackageUpload. # noqa: E501 + + # noqa: E501 - :return: The repository_url of this RawPackageUpload. + :return: The repository_url of this RawPackageUpload. # noqa: E501 :rtype: str """ return self._repository_url @repository_url.setter def repository_url(self, repository_url): - """ - Sets the repository_url of this RawPackageUpload. - + """Sets the repository_url of this RawPackageUpload. + + # noqa: E501 - :param repository_url: The repository_url of this RawPackageUpload. + :param repository_url: The repository_url of this RawPackageUpload. # noqa: E501 :type: str """ @@ -1147,22 +1151,22 @@ def repository_url(self, repository_url): @property def security_scan_completed_at(self): - """ - Gets the security_scan_completed_at of this RawPackageUpload. - The datetime the security scanning was completed. + """Gets the security_scan_completed_at of this RawPackageUpload. # noqa: E501 + + The datetime the security scanning was completed. # noqa: E501 - :return: The security_scan_completed_at of this RawPackageUpload. + :return: The security_scan_completed_at of this RawPackageUpload. # noqa: E501 :rtype: str """ return self._security_scan_completed_at @security_scan_completed_at.setter def security_scan_completed_at(self, security_scan_completed_at): - """ - Sets the security_scan_completed_at of this RawPackageUpload. - The datetime the security scanning was completed. + """Sets the security_scan_completed_at of this RawPackageUpload. + + The datetime the security scanning was completed. # noqa: E501 - :param security_scan_completed_at: The security_scan_completed_at of this RawPackageUpload. + :param security_scan_completed_at: The security_scan_completed_at of this RawPackageUpload. # noqa: E501 :type: str """ @@ -1170,22 +1174,22 @@ def security_scan_completed_at(self, security_scan_completed_at): @property def security_scan_started_at(self): - """ - Gets the security_scan_started_at of this RawPackageUpload. - The datetime the security scanning was started. + """Gets the security_scan_started_at of this RawPackageUpload. # noqa: E501 + + The datetime the security scanning was started. # noqa: E501 - :return: The security_scan_started_at of this RawPackageUpload. + :return: The security_scan_started_at of this RawPackageUpload. # noqa: E501 :rtype: str """ return self._security_scan_started_at @security_scan_started_at.setter def security_scan_started_at(self, security_scan_started_at): - """ - Sets the security_scan_started_at of this RawPackageUpload. - The datetime the security scanning was started. + """Sets the security_scan_started_at of this RawPackageUpload. - :param security_scan_started_at: The security_scan_started_at of this RawPackageUpload. + The datetime the security scanning was started. # noqa: E501 + + :param security_scan_started_at: The security_scan_started_at of this RawPackageUpload. # noqa: E501 :type: str """ @@ -1193,22 +1197,22 @@ def security_scan_started_at(self, security_scan_started_at): @property def security_scan_status(self): - """ - Gets the security_scan_status of this RawPackageUpload. - + """Gets the security_scan_status of this RawPackageUpload. # noqa: E501 - :return: The security_scan_status of this RawPackageUpload. + # noqa: E501 + + :return: The security_scan_status of this RawPackageUpload. # noqa: E501 :rtype: str """ return self._security_scan_status @security_scan_status.setter def security_scan_status(self, security_scan_status): - """ - Sets the security_scan_status of this RawPackageUpload. - + """Sets the security_scan_status of this RawPackageUpload. - :param security_scan_status: The security_scan_status of this RawPackageUpload. + # noqa: E501 + + :param security_scan_status: The security_scan_status of this RawPackageUpload. # noqa: E501 :type: str """ @@ -1216,22 +1220,22 @@ def security_scan_status(self, security_scan_status): @property def security_scan_status_updated_at(self): - """ - Gets the security_scan_status_updated_at of this RawPackageUpload. - The datetime the security scanning status was updated. + """Gets the security_scan_status_updated_at of this RawPackageUpload. # noqa: E501 - :return: The security_scan_status_updated_at of this RawPackageUpload. + The datetime the security scanning status was updated. # noqa: E501 + + :return: The security_scan_status_updated_at of this RawPackageUpload. # noqa: E501 :rtype: str """ return self._security_scan_status_updated_at @security_scan_status_updated_at.setter def security_scan_status_updated_at(self, security_scan_status_updated_at): - """ - Sets the security_scan_status_updated_at of this RawPackageUpload. - The datetime the security scanning status was updated. + """Sets the security_scan_status_updated_at of this RawPackageUpload. + + The datetime the security scanning status was updated. # noqa: E501 - :param security_scan_status_updated_at: The security_scan_status_updated_at of this RawPackageUpload. + :param security_scan_status_updated_at: The security_scan_status_updated_at of this RawPackageUpload. # noqa: E501 :type: str """ @@ -1239,22 +1243,22 @@ def security_scan_status_updated_at(self, security_scan_status_updated_at): @property def self_html_url(self): - """ - Gets the self_html_url of this RawPackageUpload. - + """Gets the self_html_url of this RawPackageUpload. # noqa: E501 + + # noqa: E501 - :return: The self_html_url of this RawPackageUpload. + :return: The self_html_url of this RawPackageUpload. # noqa: E501 :rtype: str """ return self._self_html_url @self_html_url.setter def self_html_url(self, self_html_url): - """ - Sets the self_html_url of this RawPackageUpload. - + """Sets the self_html_url of this RawPackageUpload. + + # noqa: E501 - :param self_html_url: The self_html_url of this RawPackageUpload. + :param self_html_url: The self_html_url of this RawPackageUpload. # noqa: E501 :type: str """ @@ -1262,22 +1266,22 @@ def self_html_url(self, self_html_url): @property def self_url(self): - """ - Gets the self_url of this RawPackageUpload. - + """Gets the self_url of this RawPackageUpload. # noqa: E501 + + # noqa: E501 - :return: The self_url of this RawPackageUpload. + :return: The self_url of this RawPackageUpload. # noqa: E501 :rtype: str """ return self._self_url @self_url.setter def self_url(self, self_url): - """ - Sets the self_url of this RawPackageUpload. - + """Sets the self_url of this RawPackageUpload. + + # noqa: E501 - :param self_url: The self_url of this RawPackageUpload. + :param self_url: The self_url of this RawPackageUpload. # noqa: E501 :type: str """ @@ -1285,22 +1289,22 @@ def self_url(self, self_url): @property def signature_url(self): - """ - Gets the signature_url of this RawPackageUpload. - + """Gets the signature_url of this RawPackageUpload. # noqa: E501 + + # noqa: E501 - :return: The signature_url of this RawPackageUpload. + :return: The signature_url of this RawPackageUpload. # noqa: E501 :rtype: str """ return self._signature_url @signature_url.setter def signature_url(self, signature_url): - """ - Sets the signature_url of this RawPackageUpload. - + """Sets the signature_url of this RawPackageUpload. + + # noqa: E501 - :param signature_url: The signature_url of this RawPackageUpload. + :param signature_url: The signature_url of this RawPackageUpload. # noqa: E501 :type: str """ @@ -1308,22 +1312,22 @@ def signature_url(self, signature_url): @property def size(self): - """ - Gets the size of this RawPackageUpload. - The calculated size of the package. + """Gets the size of this RawPackageUpload. # noqa: E501 + + The calculated size of the package. # noqa: E501 - :return: The size of this RawPackageUpload. + :return: The size of this RawPackageUpload. # noqa: E501 :rtype: int """ return self._size @size.setter def size(self, size): - """ - Sets the size of this RawPackageUpload. - The calculated size of the package. + """Sets the size of this RawPackageUpload. + + The calculated size of the package. # noqa: E501 - :param size: The size of this RawPackageUpload. + :param size: The size of this RawPackageUpload. # noqa: E501 :type: int """ @@ -1331,22 +1335,22 @@ def size(self, size): @property def slug(self): - """ - Gets the slug of this RawPackageUpload. - The public unique identifier for the package. + """Gets the slug of this RawPackageUpload. # noqa: E501 - :return: The slug of this RawPackageUpload. + The public unique identifier for the package. # noqa: E501 + + :return: The slug of this RawPackageUpload. # noqa: E501 :rtype: str """ return self._slug @slug.setter def slug(self, slug): - """ - Sets the slug of this RawPackageUpload. - The public unique identifier for the package. + """Sets the slug of this RawPackageUpload. - :param slug: The slug of this RawPackageUpload. + The public unique identifier for the package. # noqa: E501 + + :param slug: The slug of this RawPackageUpload. # noqa: E501 :type: str """ @@ -1354,22 +1358,22 @@ def slug(self, slug): @property def slug_perm(self): - """ - Gets the slug_perm of this RawPackageUpload. - + """Gets the slug_perm of this RawPackageUpload. # noqa: E501 - :return: The slug_perm of this RawPackageUpload. + # noqa: E501 + + :return: The slug_perm of this RawPackageUpload. # noqa: E501 :rtype: str """ return self._slug_perm @slug_perm.setter def slug_perm(self, slug_perm): - """ - Sets the slug_perm of this RawPackageUpload. - + """Sets the slug_perm of this RawPackageUpload. - :param slug_perm: The slug_perm of this RawPackageUpload. + # noqa: E501 + + :param slug_perm: The slug_perm of this RawPackageUpload. # noqa: E501 :type: str """ @@ -1377,22 +1381,22 @@ def slug_perm(self, slug_perm): @property def stage(self): - """ - Gets the stage of this RawPackageUpload. - The synchronisation (in progress) stage of the package. + """Gets the stage of this RawPackageUpload. # noqa: E501 - :return: The stage of this RawPackageUpload. + The synchronisation (in progress) stage of the package. # noqa: E501 + + :return: The stage of this RawPackageUpload. # noqa: E501 :rtype: str """ return self._stage @stage.setter def stage(self, stage): - """ - Sets the stage of this RawPackageUpload. - The synchronisation (in progress) stage of the package. + """Sets the stage of this RawPackageUpload. - :param stage: The stage of this RawPackageUpload. + The synchronisation (in progress) stage of the package. # noqa: E501 + + :param stage: The stage of this RawPackageUpload. # noqa: E501 :type: str """ @@ -1400,22 +1404,22 @@ def stage(self, stage): @property def stage_str(self): - """ - Gets the stage_str of this RawPackageUpload. - + """Gets the stage_str of this RawPackageUpload. # noqa: E501 - :return: The stage_str of this RawPackageUpload. + # noqa: E501 + + :return: The stage_str of this RawPackageUpload. # noqa: E501 :rtype: str """ return self._stage_str @stage_str.setter def stage_str(self, stage_str): - """ - Sets the stage_str of this RawPackageUpload. - + """Sets the stage_str of this RawPackageUpload. - :param stage_str: The stage_str of this RawPackageUpload. + # noqa: E501 + + :param stage_str: The stage_str of this RawPackageUpload. # noqa: E501 :type: str """ @@ -1423,22 +1427,22 @@ def stage_str(self, stage_str): @property def stage_updated_at(self): - """ - Gets the stage_updated_at of this RawPackageUpload. - The datetime the package stage was updated at. + """Gets the stage_updated_at of this RawPackageUpload. # noqa: E501 + + The datetime the package stage was updated at. # noqa: E501 - :return: The stage_updated_at of this RawPackageUpload. + :return: The stage_updated_at of this RawPackageUpload. # noqa: E501 :rtype: str """ return self._stage_updated_at @stage_updated_at.setter def stage_updated_at(self, stage_updated_at): - """ - Sets the stage_updated_at of this RawPackageUpload. - The datetime the package stage was updated at. + """Sets the stage_updated_at of this RawPackageUpload. + + The datetime the package stage was updated at. # noqa: E501 - :param stage_updated_at: The stage_updated_at of this RawPackageUpload. + :param stage_updated_at: The stage_updated_at of this RawPackageUpload. # noqa: E501 :type: str """ @@ -1446,22 +1450,22 @@ def stage_updated_at(self, stage_updated_at): @property def status(self): - """ - Gets the status of this RawPackageUpload. - The synchronisation status of the package. + """Gets the status of this RawPackageUpload. # noqa: E501 + + The synchronisation status of the package. # noqa: E501 - :return: The status of this RawPackageUpload. + :return: The status of this RawPackageUpload. # noqa: E501 :rtype: str """ return self._status @status.setter def status(self, status): - """ - Sets the status of this RawPackageUpload. - The synchronisation status of the package. + """Sets the status of this RawPackageUpload. + + The synchronisation status of the package. # noqa: E501 - :param status: The status of this RawPackageUpload. + :param status: The status of this RawPackageUpload. # noqa: E501 :type: str """ @@ -1469,22 +1473,22 @@ def status(self, status): @property def status_reason(self): - """ - Gets the status_reason of this RawPackageUpload. - A textual description for the synchronous status reason (if any + """Gets the status_reason of this RawPackageUpload. # noqa: E501 + + A textual description for the synchronous status reason (if any # noqa: E501 - :return: The status_reason of this RawPackageUpload. + :return: The status_reason of this RawPackageUpload. # noqa: E501 :rtype: str """ return self._status_reason @status_reason.setter def status_reason(self, status_reason): - """ - Sets the status_reason of this RawPackageUpload. - A textual description for the synchronous status reason (if any + """Sets the status_reason of this RawPackageUpload. + + A textual description for the synchronous status reason (if any # noqa: E501 - :param status_reason: The status_reason of this RawPackageUpload. + :param status_reason: The status_reason of this RawPackageUpload. # noqa: E501 :type: str """ @@ -1492,22 +1496,22 @@ def status_reason(self, status_reason): @property def status_str(self): - """ - Gets the status_str of this RawPackageUpload. - + """Gets the status_str of this RawPackageUpload. # noqa: E501 + + # noqa: E501 - :return: The status_str of this RawPackageUpload. + :return: The status_str of this RawPackageUpload. # noqa: E501 :rtype: str """ return self._status_str @status_str.setter def status_str(self, status_str): - """ - Sets the status_str of this RawPackageUpload. - + """Sets the status_str of this RawPackageUpload. + + # noqa: E501 - :param status_str: The status_str of this RawPackageUpload. + :param status_str: The status_str of this RawPackageUpload. # noqa: E501 :type: str """ @@ -1515,22 +1519,22 @@ def status_str(self, status_str): @property def status_updated_at(self): - """ - Gets the status_updated_at of this RawPackageUpload. - The datetime the package status was updated at. + """Gets the status_updated_at of this RawPackageUpload. # noqa: E501 + + The datetime the package status was updated at. # noqa: E501 - :return: The status_updated_at of this RawPackageUpload. + :return: The status_updated_at of this RawPackageUpload. # noqa: E501 :rtype: str """ return self._status_updated_at @status_updated_at.setter def status_updated_at(self, status_updated_at): - """ - Sets the status_updated_at of this RawPackageUpload. - The datetime the package status was updated at. + """Sets the status_updated_at of this RawPackageUpload. - :param status_updated_at: The status_updated_at of this RawPackageUpload. + The datetime the package status was updated at. # noqa: E501 + + :param status_updated_at: The status_updated_at of this RawPackageUpload. # noqa: E501 :type: str """ @@ -1538,22 +1542,22 @@ def status_updated_at(self, status_updated_at): @property def status_url(self): - """ - Gets the status_url of this RawPackageUpload. - + """Gets the status_url of this RawPackageUpload. # noqa: E501 - :return: The status_url of this RawPackageUpload. + # noqa: E501 + + :return: The status_url of this RawPackageUpload. # noqa: E501 :rtype: str """ return self._status_url @status_url.setter def status_url(self, status_url): - """ - Sets the status_url of this RawPackageUpload. - + """Sets the status_url of this RawPackageUpload. - :param status_url: The status_url of this RawPackageUpload. + # noqa: E501 + + :param status_url: The status_url of this RawPackageUpload. # noqa: E501 :type: str """ @@ -1561,22 +1565,22 @@ def status_url(self, status_url): @property def subtype(self): - """ - Gets the subtype of this RawPackageUpload. - + """Gets the subtype of this RawPackageUpload. # noqa: E501 - :return: The subtype of this RawPackageUpload. + # noqa: E501 + + :return: The subtype of this RawPackageUpload. # noqa: E501 :rtype: str """ return self._subtype @subtype.setter def subtype(self, subtype): - """ - Sets the subtype of this RawPackageUpload. - + """Sets the subtype of this RawPackageUpload. - :param subtype: The subtype of this RawPackageUpload. + # noqa: E501 + + :param subtype: The subtype of this RawPackageUpload. # noqa: E501 :type: str """ @@ -1584,22 +1588,22 @@ def subtype(self, subtype): @property def summary(self): - """ - Gets the summary of this RawPackageUpload. - A one-liner synopsis of this package. + """Gets the summary of this RawPackageUpload. # noqa: E501 - :return: The summary of this RawPackageUpload. + A one-liner synopsis of this package. # noqa: E501 + + :return: The summary of this RawPackageUpload. # noqa: E501 :rtype: str """ return self._summary @summary.setter def summary(self, summary): - """ - Sets the summary of this RawPackageUpload. - A one-liner synopsis of this package. + """Sets the summary of this RawPackageUpload. - :param summary: The summary of this RawPackageUpload. + A one-liner synopsis of this package. # noqa: E501 + + :param summary: The summary of this RawPackageUpload. # noqa: E501 :type: str """ @@ -1607,22 +1611,22 @@ def summary(self, summary): @property def sync_finished_at(self): - """ - Gets the sync_finished_at of this RawPackageUpload. - The datetime the package sync was finished at. + """Gets the sync_finished_at of this RawPackageUpload. # noqa: E501 - :return: The sync_finished_at of this RawPackageUpload. + The datetime the package sync was finished at. # noqa: E501 + + :return: The sync_finished_at of this RawPackageUpload. # noqa: E501 :rtype: str """ return self._sync_finished_at @sync_finished_at.setter def sync_finished_at(self, sync_finished_at): - """ - Sets the sync_finished_at of this RawPackageUpload. - The datetime the package sync was finished at. + """Sets the sync_finished_at of this RawPackageUpload. + + The datetime the package sync was finished at. # noqa: E501 - :param sync_finished_at: The sync_finished_at of this RawPackageUpload. + :param sync_finished_at: The sync_finished_at of this RawPackageUpload. # noqa: E501 :type: str """ @@ -1630,22 +1634,22 @@ def sync_finished_at(self, sync_finished_at): @property def sync_progress(self): - """ - Gets the sync_progress of this RawPackageUpload. - Synchronisation progress (from 0-100) + """Gets the sync_progress of this RawPackageUpload. # noqa: E501 + + Synchronisation progress (from 0-100) # noqa: E501 - :return: The sync_progress of this RawPackageUpload. + :return: The sync_progress of this RawPackageUpload. # noqa: E501 :rtype: int """ return self._sync_progress @sync_progress.setter def sync_progress(self, sync_progress): - """ - Sets the sync_progress of this RawPackageUpload. - Synchronisation progress (from 0-100) + """Sets the sync_progress of this RawPackageUpload. + + Synchronisation progress (from 0-100) # noqa: E501 - :param sync_progress: The sync_progress of this RawPackageUpload. + :param sync_progress: The sync_progress of this RawPackageUpload. # noqa: E501 :type: int """ @@ -1653,22 +1657,22 @@ def sync_progress(self, sync_progress): @property def tags_immutable(self): - """ - Gets the tags_immutable of this RawPackageUpload. - All immutable tags on the package, grouped by tag type. Immutable tags cannot be (easily) deleted. + """Gets the tags_immutable of this RawPackageUpload. # noqa: E501 + + All immutable tags on the package, grouped by tag type. Immutable tags cannot be (easily) deleted. # noqa: E501 - :return: The tags_immutable of this RawPackageUpload. + :return: The tags_immutable of this RawPackageUpload. # noqa: E501 :rtype: object """ return self._tags_immutable @tags_immutable.setter def tags_immutable(self, tags_immutable): - """ - Sets the tags_immutable of this RawPackageUpload. - All immutable tags on the package, grouped by tag type. Immutable tags cannot be (easily) deleted. + """Sets the tags_immutable of this RawPackageUpload. + + All immutable tags on the package, grouped by tag type. Immutable tags cannot be (easily) deleted. # noqa: E501 - :param tags_immutable: The tags_immutable of this RawPackageUpload. + :param tags_immutable: The tags_immutable of this RawPackageUpload. # noqa: E501 :type: object """ @@ -1676,22 +1680,22 @@ def tags_immutable(self, tags_immutable): @property def type_display(self): - """ - Gets the type_display of this RawPackageUpload. - + """Gets the type_display of this RawPackageUpload. # noqa: E501 + + # noqa: E501 - :return: The type_display of this RawPackageUpload. + :return: The type_display of this RawPackageUpload. # noqa: E501 :rtype: str """ return self._type_display @type_display.setter def type_display(self, type_display): - """ - Sets the type_display of this RawPackageUpload. - + """Sets the type_display of this RawPackageUpload. + + # noqa: E501 - :param type_display: The type_display of this RawPackageUpload. + :param type_display: The type_display of this RawPackageUpload. # noqa: E501 :type: str """ @@ -1699,22 +1703,22 @@ def type_display(self, type_display): @property def uploaded_at(self): - """ - Gets the uploaded_at of this RawPackageUpload. - The date this package was uploaded. + """Gets the uploaded_at of this RawPackageUpload. # noqa: E501 + + The date this package was uploaded. # noqa: E501 - :return: The uploaded_at of this RawPackageUpload. + :return: The uploaded_at of this RawPackageUpload. # noqa: E501 :rtype: str """ return self._uploaded_at @uploaded_at.setter def uploaded_at(self, uploaded_at): - """ - Sets the uploaded_at of this RawPackageUpload. - The date this package was uploaded. + """Sets the uploaded_at of this RawPackageUpload. + + The date this package was uploaded. # noqa: E501 - :param uploaded_at: The uploaded_at of this RawPackageUpload. + :param uploaded_at: The uploaded_at of this RawPackageUpload. # noqa: E501 :type: str """ @@ -1722,22 +1726,22 @@ def uploaded_at(self, uploaded_at): @property def uploader(self): - """ - Gets the uploader of this RawPackageUpload. - + """Gets the uploader of this RawPackageUpload. # noqa: E501 - :return: The uploader of this RawPackageUpload. + # noqa: E501 + + :return: The uploader of this RawPackageUpload. # noqa: E501 :rtype: str """ return self._uploader @uploader.setter def uploader(self, uploader): - """ - Sets the uploader of this RawPackageUpload. - + """Sets the uploader of this RawPackageUpload. - :param uploader: The uploader of this RawPackageUpload. + # noqa: E501 + + :param uploader: The uploader of this RawPackageUpload. # noqa: E501 :type: str """ @@ -1745,22 +1749,22 @@ def uploader(self, uploader): @property def uploader_url(self): - """ - Gets the uploader_url of this RawPackageUpload. - + """Gets the uploader_url of this RawPackageUpload. # noqa: E501 - :return: The uploader_url of this RawPackageUpload. + # noqa: E501 + + :return: The uploader_url of this RawPackageUpload. # noqa: E501 :rtype: str """ return self._uploader_url @uploader_url.setter def uploader_url(self, uploader_url): - """ - Sets the uploader_url of this RawPackageUpload. - + """Sets the uploader_url of this RawPackageUpload. - :param uploader_url: The uploader_url of this RawPackageUpload. + # noqa: E501 + + :param uploader_url: The uploader_url of this RawPackageUpload. # noqa: E501 :type: str """ @@ -1768,22 +1772,22 @@ def uploader_url(self, uploader_url): @property def version(self): - """ - Gets the version of this RawPackageUpload. - The raw version for this package. + """Gets the version of this RawPackageUpload. # noqa: E501 - :return: The version of this RawPackageUpload. + The raw version for this package. # noqa: E501 + + :return: The version of this RawPackageUpload. # noqa: E501 :rtype: str """ return self._version @version.setter def version(self, version): - """ - Sets the version of this RawPackageUpload. - The raw version for this package. + """Sets the version of this RawPackageUpload. - :param version: The version of this RawPackageUpload. + The raw version for this package. # noqa: E501 + + :param version: The version of this RawPackageUpload. # noqa: E501 :type: str """ @@ -1791,22 +1795,22 @@ def version(self, version): @property def version_orig(self): - """ - Gets the version_orig of this RawPackageUpload. - + """Gets the version_orig of this RawPackageUpload. # noqa: E501 - :return: The version_orig of this RawPackageUpload. + # noqa: E501 + + :return: The version_orig of this RawPackageUpload. # noqa: E501 :rtype: str """ return self._version_orig @version_orig.setter def version_orig(self, version_orig): - """ - Sets the version_orig of this RawPackageUpload. - + """Sets the version_orig of this RawPackageUpload. - :param version_orig: The version_orig of this RawPackageUpload. + # noqa: E501 + + :param version_orig: The version_orig of this RawPackageUpload. # noqa: E501 :type: str """ @@ -1814,34 +1818,32 @@ def version_orig(self, version_orig): @property def vulnerability_scan_results_url(self): - """ - Gets the vulnerability_scan_results_url of this RawPackageUpload. - + """Gets the vulnerability_scan_results_url of this RawPackageUpload. # noqa: E501 + + # noqa: E501 - :return: The vulnerability_scan_results_url of this RawPackageUpload. + :return: The vulnerability_scan_results_url of this RawPackageUpload. # noqa: E501 :rtype: str """ return self._vulnerability_scan_results_url @vulnerability_scan_results_url.setter def vulnerability_scan_results_url(self, vulnerability_scan_results_url): - """ - Sets the vulnerability_scan_results_url of this RawPackageUpload. - + """Sets the vulnerability_scan_results_url of this RawPackageUpload. + + # noqa: E501 - :param vulnerability_scan_results_url: The vulnerability_scan_results_url of this RawPackageUpload. + :param vulnerability_scan_results_url: The vulnerability_scan_results_url of this RawPackageUpload. # noqa: E501 :type: str """ self._vulnerability_scan_results_url = vulnerability_scan_results_url def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -1858,32 +1860,30 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(RawPackageUpload, dict): + for key, value in self.items(): + result[key] = value return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, RawPackageUpload): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other + """Returns true if both objects are not equal""" + if not isinstance(other, RawPackageUpload): + return True + + return self.to_dict() != other.to_dict() diff --git a/bindings/python/src/cloudsmith_api/models/repos_create.py b/bindings/python/src/cloudsmith_api/models/repos_create.py index 9090af09..17a4e1fe 100644 --- a/bindings/python/src/cloudsmith_api/models/repos_create.py +++ b/bindings/python/src/cloudsmith_api/models/repos_create.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -11,18 +11,20 @@ """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration class ReposCreate(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -48,10 +50,11 @@ class ReposCreate(object): 'storage_region': 'storage_region' } - def __init__(self, description=None, index_files=None, name=None, repository_type_str=None, slug=None, storage_region=None): - """ - ReposCreate - a model defined in Swagger - """ + def __init__(self, description=None, index_files=None, name=None, repository_type_str=None, slug=None, storage_region=None, _configuration=None): # noqa: E501 + """ReposCreate - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._description = None self._index_files = None @@ -59,37 +62,38 @@ def __init__(self, description=None, index_files=None, name=None, repository_typ self._repository_type_str = None self._slug = None self._storage_region = None + self.discriminator = None if description is not None: - self.description = description + self.description = description if index_files is not None: - self.index_files = index_files + self.index_files = index_files self.name = name if repository_type_str is not None: - self.repository_type_str = repository_type_str + self.repository_type_str = repository_type_str if slug is not None: - self.slug = slug + self.slug = slug if storage_region is not None: - self.storage_region = storage_region + self.storage_region = storage_region @property def description(self): - """ - Gets the description of this ReposCreate. - A description of the repository's purpose/contents. + """Gets the description of this ReposCreate. # noqa: E501 + + A description of the repository's purpose/contents. # noqa: E501 - :return: The description of this ReposCreate. + :return: The description of this ReposCreate. # noqa: E501 :rtype: str """ return self._description @description.setter def description(self, description): - """ - Sets the description of this ReposCreate. - A description of the repository's purpose/contents. + """Sets the description of this ReposCreate. + + A description of the repository's purpose/contents. # noqa: E501 - :param description: The description of this ReposCreate. + :param description: The description of this ReposCreate. # noqa: E501 :type: str """ @@ -97,22 +101,22 @@ def description(self, description): @property def index_files(self): - """ - Gets the index_files of this ReposCreate. - If checked, files contained in packages will be indexed, which increase the synchronisation time required for packages. Note that it is recommended you keep this enabled unless the synchronisation time is significantly impacted. + """Gets the index_files of this ReposCreate. # noqa: E501 + + If checked, files contained in packages will be indexed, which increase the synchronisation time required for packages. Note that it is recommended you keep this enabled unless the synchronisation time is significantly impacted. # noqa: E501 - :return: The index_files of this ReposCreate. + :return: The index_files of this ReposCreate. # noqa: E501 :rtype: bool """ return self._index_files @index_files.setter def index_files(self, index_files): - """ - Sets the index_files of this ReposCreate. - If checked, files contained in packages will be indexed, which increase the synchronisation time required for packages. Note that it is recommended you keep this enabled unless the synchronisation time is significantly impacted. + """Sets the index_files of this ReposCreate. - :param index_files: The index_files of this ReposCreate. + If checked, files contained in packages will be indexed, which increase the synchronisation time required for packages. Note that it is recommended you keep this enabled unless the synchronisation time is significantly impacted. # noqa: E501 + + :param index_files: The index_files of this ReposCreate. # noqa: E501 :type: bool """ @@ -120,47 +124,47 @@ def index_files(self, index_files): @property def name(self): - """ - Gets the name of this ReposCreate. - A descriptive name for the repository. + """Gets the name of this ReposCreate. # noqa: E501 + + A descriptive name for the repository. # noqa: E501 - :return: The name of this ReposCreate. + :return: The name of this ReposCreate. # noqa: E501 :rtype: str """ return self._name @name.setter def name(self, name): - """ - Sets the name of this ReposCreate. - A descriptive name for the repository. + """Sets the name of this ReposCreate. + + A descriptive name for the repository. # noqa: E501 - :param name: The name of this ReposCreate. + :param name: The name of this ReposCreate. # noqa: E501 :type: str """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") + if self._configuration.client_side_validation and name is None: + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 self._name = name @property def repository_type_str(self): - """ - Gets the repository_type_str of this ReposCreate. - The repository type changes how it is accessed and billed. Private repositories can only be used on paid plans, but are visible only to you or authorised delegates. Public repositories are free to use on all plans and visible to all Cloudsmith users. + """Gets the repository_type_str of this ReposCreate. # noqa: E501 - :return: The repository_type_str of this ReposCreate. + The repository type changes how it is accessed and billed. Private repositories can only be used on paid plans, but are visible only to you or authorised delegates. Public repositories are free to use on all plans and visible to all Cloudsmith users. # noqa: E501 + + :return: The repository_type_str of this ReposCreate. # noqa: E501 :rtype: str """ return self._repository_type_str @repository_type_str.setter def repository_type_str(self, repository_type_str): - """ - Sets the repository_type_str of this ReposCreate. - The repository type changes how it is accessed and billed. Private repositories can only be used on paid plans, but are visible only to you or authorised delegates. Public repositories are free to use on all plans and visible to all Cloudsmith users. + """Sets the repository_type_str of this ReposCreate. - :param repository_type_str: The repository_type_str of this ReposCreate. + The repository type changes how it is accessed and billed. Private repositories can only be used on paid plans, but are visible only to you or authorised delegates. Public repositories are free to use on all plans and visible to all Cloudsmith users. # noqa: E501 + + :param repository_type_str: The repository_type_str of this ReposCreate. # noqa: E501 :type: str """ @@ -168,22 +172,22 @@ def repository_type_str(self, repository_type_str): @property def slug(self): - """ - Gets the slug of this ReposCreate. - The slug identifies the repository in URIs. + """Gets the slug of this ReposCreate. # noqa: E501 + + The slug identifies the repository in URIs. # noqa: E501 - :return: The slug of this ReposCreate. + :return: The slug of this ReposCreate. # noqa: E501 :rtype: str """ return self._slug @slug.setter def slug(self, slug): - """ - Sets the slug of this ReposCreate. - The slug identifies the repository in URIs. + """Sets the slug of this ReposCreate. + + The slug identifies the repository in URIs. # noqa: E501 - :param slug: The slug of this ReposCreate. + :param slug: The slug of this ReposCreate. # noqa: E501 :type: str """ @@ -191,34 +195,32 @@ def slug(self, slug): @property def storage_region(self): - """ - Gets the storage_region of this ReposCreate. - The Cloudsmith region in which package files are stored. + """Gets the storage_region of this ReposCreate. # noqa: E501 - :return: The storage_region of this ReposCreate. + The Cloudsmith region in which package files are stored. # noqa: E501 + + :return: The storage_region of this ReposCreate. # noqa: E501 :rtype: str """ return self._storage_region @storage_region.setter def storage_region(self, storage_region): - """ - Sets the storage_region of this ReposCreate. - The Cloudsmith region in which package files are stored. + """Sets the storage_region of this ReposCreate. + + The Cloudsmith region in which package files are stored. # noqa: E501 - :param storage_region: The storage_region of this ReposCreate. + :param storage_region: The storage_region of this ReposCreate. # noqa: E501 :type: str """ self._storage_region = storage_region def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -235,32 +237,30 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(ReposCreate, dict): + for key, value in self.items(): + result[key] = value return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, ReposCreate): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other + """Returns true if both objects are not equal""" + if not isinstance(other, ReposCreate): + return True + + return self.to_dict() != other.to_dict() diff --git a/bindings/python/src/cloudsmith_api/models/repos_gpg_keys.py b/bindings/python/src/cloudsmith_api/models/repos_gpg_keys.py index c16a1374..08878e2b 100644 --- a/bindings/python/src/cloudsmith_api/models/repos_gpg_keys.py +++ b/bindings/python/src/cloudsmith_api/models/repos_gpg_keys.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -11,18 +11,20 @@ """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration class ReposGpgKeys(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -50,10 +52,11 @@ class ReposGpgKeys(object): 'public_key': 'public_key' } - def __init__(self, active=None, comment=None, created_at=None, default=None, fingerprint=None, fingerprint_short=None, public_key=None): - """ - ReposGpgKeys - a model defined in Swagger - """ + def __init__(self, active=None, comment=None, created_at=None, default=None, fingerprint=None, fingerprint_short=None, public_key=None, _configuration=None): # noqa: E501 + """ReposGpgKeys - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._active = None self._comment = None @@ -62,40 +65,41 @@ def __init__(self, active=None, comment=None, created_at=None, default=None, fin self._fingerprint = None self._fingerprint_short = None self._public_key = None + self.discriminator = None if active is not None: - self.active = active + self.active = active if comment is not None: - self.comment = comment + self.comment = comment if created_at is not None: - self.created_at = created_at + self.created_at = created_at if default is not None: - self.default = default + self.default = default if fingerprint is not None: - self.fingerprint = fingerprint + self.fingerprint = fingerprint if fingerprint_short is not None: - self.fingerprint_short = fingerprint_short + self.fingerprint_short = fingerprint_short if public_key is not None: - self.public_key = public_key + self.public_key = public_key @property def active(self): - """ - Gets the active of this ReposGpgKeys. - If selected this is the active key for this repository. + """Gets the active of this ReposGpgKeys. # noqa: E501 + + If selected this is the active key for this repository. # noqa: E501 - :return: The active of this ReposGpgKeys. + :return: The active of this ReposGpgKeys. # noqa: E501 :rtype: bool """ return self._active @active.setter def active(self, active): - """ - Sets the active of this ReposGpgKeys. - If selected this is the active key for this repository. + """Sets the active of this ReposGpgKeys. + + If selected this is the active key for this repository. # noqa: E501 - :param active: The active of this ReposGpgKeys. + :param active: The active of this ReposGpgKeys. # noqa: E501 :type: bool """ @@ -103,22 +107,22 @@ def active(self, active): @property def comment(self): - """ - Gets the comment of this ReposGpgKeys. - + """Gets the comment of this ReposGpgKeys. # noqa: E501 - :return: The comment of this ReposGpgKeys. + # noqa: E501 + + :return: The comment of this ReposGpgKeys. # noqa: E501 :rtype: str """ return self._comment @comment.setter def comment(self, comment): - """ - Sets the comment of this ReposGpgKeys. - + """Sets the comment of this ReposGpgKeys. + + # noqa: E501 - :param comment: The comment of this ReposGpgKeys. + :param comment: The comment of this ReposGpgKeys. # noqa: E501 :type: str """ @@ -126,22 +130,22 @@ def comment(self, comment): @property def created_at(self): - """ - Gets the created_at of this ReposGpgKeys. - + """Gets the created_at of this ReposGpgKeys. # noqa: E501 + + # noqa: E501 - :return: The created_at of this ReposGpgKeys. + :return: The created_at of this ReposGpgKeys. # noqa: E501 :rtype: str """ return self._created_at @created_at.setter def created_at(self, created_at): - """ - Sets the created_at of this ReposGpgKeys. - + """Sets the created_at of this ReposGpgKeys. - :param created_at: The created_at of this ReposGpgKeys. + # noqa: E501 + + :param created_at: The created_at of this ReposGpgKeys. # noqa: E501 :type: str """ @@ -149,22 +153,22 @@ def created_at(self, created_at): @property def default(self): - """ - Gets the default of this ReposGpgKeys. - If selected this is the default key for this repository. + """Gets the default of this ReposGpgKeys. # noqa: E501 + + If selected this is the default key for this repository. # noqa: E501 - :return: The default of this ReposGpgKeys. + :return: The default of this ReposGpgKeys. # noqa: E501 :rtype: bool """ return self._default @default.setter def default(self, default): - """ - Sets the default of this ReposGpgKeys. - If selected this is the default key for this repository. + """Sets the default of this ReposGpgKeys. + + If selected this is the default key for this repository. # noqa: E501 - :param default: The default of this ReposGpgKeys. + :param default: The default of this ReposGpgKeys. # noqa: E501 :type: bool """ @@ -172,22 +176,22 @@ def default(self, default): @property def fingerprint(self): - """ - Gets the fingerprint of this ReposGpgKeys. - The long identifier used by GPG for this key. + """Gets the fingerprint of this ReposGpgKeys. # noqa: E501 - :return: The fingerprint of this ReposGpgKeys. + The long identifier used by GPG for this key. # noqa: E501 + + :return: The fingerprint of this ReposGpgKeys. # noqa: E501 :rtype: str """ return self._fingerprint @fingerprint.setter def fingerprint(self, fingerprint): - """ - Sets the fingerprint of this ReposGpgKeys. - The long identifier used by GPG for this key. + """Sets the fingerprint of this ReposGpgKeys. + + The long identifier used by GPG for this key. # noqa: E501 - :param fingerprint: The fingerprint of this ReposGpgKeys. + :param fingerprint: The fingerprint of this ReposGpgKeys. # noqa: E501 :type: str """ @@ -195,22 +199,22 @@ def fingerprint(self, fingerprint): @property def fingerprint_short(self): - """ - Gets the fingerprint_short of this ReposGpgKeys. - + """Gets the fingerprint_short of this ReposGpgKeys. # noqa: E501 + + # noqa: E501 - :return: The fingerprint_short of this ReposGpgKeys. + :return: The fingerprint_short of this ReposGpgKeys. # noqa: E501 :rtype: str """ return self._fingerprint_short @fingerprint_short.setter def fingerprint_short(self, fingerprint_short): - """ - Sets the fingerprint_short of this ReposGpgKeys. - + """Sets the fingerprint_short of this ReposGpgKeys. - :param fingerprint_short: The fingerprint_short of this ReposGpgKeys. + # noqa: E501 + + :param fingerprint_short: The fingerprint_short of this ReposGpgKeys. # noqa: E501 :type: str """ @@ -218,34 +222,32 @@ def fingerprint_short(self, fingerprint_short): @property def public_key(self): - """ - Gets the public_key of this ReposGpgKeys. - The public key given to repository users. + """Gets the public_key of this ReposGpgKeys. # noqa: E501 + + The public key given to repository users. # noqa: E501 - :return: The public_key of this ReposGpgKeys. + :return: The public_key of this ReposGpgKeys. # noqa: E501 :rtype: str """ return self._public_key @public_key.setter def public_key(self, public_key): - """ - Sets the public_key of this ReposGpgKeys. - The public key given to repository users. + """Sets the public_key of this ReposGpgKeys. + + The public key given to repository users. # noqa: E501 - :param public_key: The public_key of this ReposGpgKeys. + :param public_key: The public_key of this ReposGpgKeys. # noqa: E501 :type: str """ self._public_key = public_key def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -262,32 +264,30 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(ReposGpgKeys, dict): + for key, value in self.items(): + result[key] = value return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, ReposGpgKeys): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other + """Returns true if both objects are not equal""" + if not isinstance(other, ReposGpgKeys): + return True + + return self.to_dict() != other.to_dict() diff --git a/bindings/python/src/cloudsmith_api/models/repos_partial_update.py b/bindings/python/src/cloudsmith_api/models/repos_partial_update.py index f150481a..db84a55f 100644 --- a/bindings/python/src/cloudsmith_api/models/repos_partial_update.py +++ b/bindings/python/src/cloudsmith_api/models/repos_partial_update.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -11,18 +11,20 @@ """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration class ReposPartialUpdate(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -46,46 +48,48 @@ class ReposPartialUpdate(object): 'slug': 'slug' } - def __init__(self, description=None, index_files=None, name=None, repository_type_str=None, slug=None): - """ - ReposPartialUpdate - a model defined in Swagger - """ + def __init__(self, description=None, index_files=None, name=None, repository_type_str=None, slug=None, _configuration=None): # noqa: E501 + """ReposPartialUpdate - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._description = None self._index_files = None self._name = None self._repository_type_str = None self._slug = None + self.discriminator = None if description is not None: - self.description = description + self.description = description if index_files is not None: - self.index_files = index_files + self.index_files = index_files if name is not None: - self.name = name + self.name = name if repository_type_str is not None: - self.repository_type_str = repository_type_str + self.repository_type_str = repository_type_str if slug is not None: - self.slug = slug + self.slug = slug @property def description(self): - """ - Gets the description of this ReposPartialUpdate. - A description of the repository's purpose/contents. + """Gets the description of this ReposPartialUpdate. # noqa: E501 - :return: The description of this ReposPartialUpdate. + A description of the repository's purpose/contents. # noqa: E501 + + :return: The description of this ReposPartialUpdate. # noqa: E501 :rtype: str """ return self._description @description.setter def description(self, description): - """ - Sets the description of this ReposPartialUpdate. - A description of the repository's purpose/contents. + """Sets the description of this ReposPartialUpdate. - :param description: The description of this ReposPartialUpdate. + A description of the repository's purpose/contents. # noqa: E501 + + :param description: The description of this ReposPartialUpdate. # noqa: E501 :type: str """ @@ -93,22 +97,22 @@ def description(self, description): @property def index_files(self): - """ - Gets the index_files of this ReposPartialUpdate. - If checked, files contained in packages will be indexed, which increase the synchronisation time required for packages. Note that it is recommended you keep this enabled unless the synchronisation time is significantly impacted. + """Gets the index_files of this ReposPartialUpdate. # noqa: E501 + + If checked, files contained in packages will be indexed, which increase the synchronisation time required for packages. Note that it is recommended you keep this enabled unless the synchronisation time is significantly impacted. # noqa: E501 - :return: The index_files of this ReposPartialUpdate. + :return: The index_files of this ReposPartialUpdate. # noqa: E501 :rtype: bool """ return self._index_files @index_files.setter def index_files(self, index_files): - """ - Sets the index_files of this ReposPartialUpdate. - If checked, files contained in packages will be indexed, which increase the synchronisation time required for packages. Note that it is recommended you keep this enabled unless the synchronisation time is significantly impacted. + """Sets the index_files of this ReposPartialUpdate. + + If checked, files contained in packages will be indexed, which increase the synchronisation time required for packages. Note that it is recommended you keep this enabled unless the synchronisation time is significantly impacted. # noqa: E501 - :param index_files: The index_files of this ReposPartialUpdate. + :param index_files: The index_files of this ReposPartialUpdate. # noqa: E501 :type: bool """ @@ -116,22 +120,22 @@ def index_files(self, index_files): @property def name(self): - """ - Gets the name of this ReposPartialUpdate. - A descriptive name for the repository. + """Gets the name of this ReposPartialUpdate. # noqa: E501 + + A descriptive name for the repository. # noqa: E501 - :return: The name of this ReposPartialUpdate. + :return: The name of this ReposPartialUpdate. # noqa: E501 :rtype: str """ return self._name @name.setter def name(self, name): - """ - Sets the name of this ReposPartialUpdate. - A descriptive name for the repository. + """Sets the name of this ReposPartialUpdate. - :param name: The name of this ReposPartialUpdate. + A descriptive name for the repository. # noqa: E501 + + :param name: The name of this ReposPartialUpdate. # noqa: E501 :type: str """ @@ -139,22 +143,22 @@ def name(self, name): @property def repository_type_str(self): - """ - Gets the repository_type_str of this ReposPartialUpdate. - The repository type changes how it is accessed and billed. Private repositories can only be used on paid plans, but are visible only to you or authorised delegates. Public repositories are free to use on all plans and visible to all Cloudsmith users. + """Gets the repository_type_str of this ReposPartialUpdate. # noqa: E501 - :return: The repository_type_str of this ReposPartialUpdate. + The repository type changes how it is accessed and billed. Private repositories can only be used on paid plans, but are visible only to you or authorised delegates. Public repositories are free to use on all plans and visible to all Cloudsmith users. # noqa: E501 + + :return: The repository_type_str of this ReposPartialUpdate. # noqa: E501 :rtype: str """ return self._repository_type_str @repository_type_str.setter def repository_type_str(self, repository_type_str): - """ - Sets the repository_type_str of this ReposPartialUpdate. - The repository type changes how it is accessed and billed. Private repositories can only be used on paid plans, but are visible only to you or authorised delegates. Public repositories are free to use on all plans and visible to all Cloudsmith users. + """Sets the repository_type_str of this ReposPartialUpdate. + + The repository type changes how it is accessed and billed. Private repositories can only be used on paid plans, but are visible only to you or authorised delegates. Public repositories are free to use on all plans and visible to all Cloudsmith users. # noqa: E501 - :param repository_type_str: The repository_type_str of this ReposPartialUpdate. + :param repository_type_str: The repository_type_str of this ReposPartialUpdate. # noqa: E501 :type: str """ @@ -162,34 +166,32 @@ def repository_type_str(self, repository_type_str): @property def slug(self): - """ - Gets the slug of this ReposPartialUpdate. - The slug identifies the repository in URIs. + """Gets the slug of this ReposPartialUpdate. # noqa: E501 + + The slug identifies the repository in URIs. # noqa: E501 - :return: The slug of this ReposPartialUpdate. + :return: The slug of this ReposPartialUpdate. # noqa: E501 :rtype: str """ return self._slug @slug.setter def slug(self, slug): - """ - Sets the slug of this ReposPartialUpdate. - The slug identifies the repository in URIs. + """Sets the slug of this ReposPartialUpdate. + + The slug identifies the repository in URIs. # noqa: E501 - :param slug: The slug of this ReposPartialUpdate. + :param slug: The slug of this ReposPartialUpdate. # noqa: E501 :type: str """ self._slug = slug def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -206,32 +208,30 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(ReposPartialUpdate, dict): + for key, value in self.items(): + result[key] = value return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, ReposPartialUpdate): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other + """Returns true if both objects are not equal""" + if not isinstance(other, ReposPartialUpdate): + return True + + return self.to_dict() != other.to_dict() diff --git a/bindings/python/src/cloudsmith_api/models/repository.py b/bindings/python/src/cloudsmith_api/models/repository.py index 47d5f0ec..bebbd475 100644 --- a/bindings/python/src/cloudsmith_api/models/repository.py +++ b/bindings/python/src/cloudsmith_api/models/repository.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -11,18 +11,20 @@ """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration class Repository(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -84,10 +86,11 @@ class Repository(object): 'storage_region': 'storage_region' } - def __init__(self, cdn_url=None, created_at=None, deleted_at=None, description=None, gpg_keys=None, index_files=None, is_open_source=None, is_private=None, is_public=None, name=None, namespace=None, namespace_url=None, num_downloads=None, package_count=None, package_group_count=None, repository_type=None, repository_type_str=None, self_html_url=None, self_url=None, size=None, size_str=None, slug=None, slug_perm=None, storage_region=None): - """ - Repository - a model defined in Swagger - """ + def __init__(self, cdn_url=None, created_at=None, deleted_at=None, description=None, gpg_keys=None, index_files=None, is_open_source=None, is_private=None, is_public=None, name=None, namespace=None, namespace_url=None, num_downloads=None, package_count=None, package_group_count=None, repository_type=None, repository_type_str=None, self_html_url=None, self_url=None, size=None, size_str=None, slug=None, slug_perm=None, storage_region=None, _configuration=None): # noqa: E501 + """Repository - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._cdn_url = None self._created_at = None @@ -113,73 +116,74 @@ def __init__(self, cdn_url=None, created_at=None, deleted_at=None, description=N self._slug = None self._slug_perm = None self._storage_region = None + self.discriminator = None if cdn_url is not None: - self.cdn_url = cdn_url + self.cdn_url = cdn_url if created_at is not None: - self.created_at = created_at + self.created_at = created_at if deleted_at is not None: - self.deleted_at = deleted_at + self.deleted_at = deleted_at if description is not None: - self.description = description + self.description = description if gpg_keys is not None: - self.gpg_keys = gpg_keys + self.gpg_keys = gpg_keys if index_files is not None: - self.index_files = index_files + self.index_files = index_files if is_open_source is not None: - self.is_open_source = is_open_source + self.is_open_source = is_open_source if is_private is not None: - self.is_private = is_private + self.is_private = is_private if is_public is not None: - self.is_public = is_public + self.is_public = is_public self.name = name if namespace is not None: - self.namespace = namespace + self.namespace = namespace if namespace_url is not None: - self.namespace_url = namespace_url + self.namespace_url = namespace_url if num_downloads is not None: - self.num_downloads = num_downloads + self.num_downloads = num_downloads if package_count is not None: - self.package_count = package_count + self.package_count = package_count if package_group_count is not None: - self.package_group_count = package_group_count + self.package_group_count = package_group_count if repository_type is not None: - self.repository_type = repository_type + self.repository_type = repository_type if repository_type_str is not None: - self.repository_type_str = repository_type_str + self.repository_type_str = repository_type_str if self_html_url is not None: - self.self_html_url = self_html_url + self.self_html_url = self_html_url if self_url is not None: - self.self_url = self_url + self.self_url = self_url if size is not None: - self.size = size + self.size = size if size_str is not None: - self.size_str = size_str + self.size_str = size_str if slug is not None: - self.slug = slug + self.slug = slug if slug_perm is not None: - self.slug_perm = slug_perm + self.slug_perm = slug_perm if storage_region is not None: - self.storage_region = storage_region + self.storage_region = storage_region @property def cdn_url(self): - """ - Gets the cdn_url of this Repository. - Base URL from which packages and other artifacts are downloaded. + """Gets the cdn_url of this Repository. # noqa: E501 - :return: The cdn_url of this Repository. + Base URL from which packages and other artifacts are downloaded. # noqa: E501 + + :return: The cdn_url of this Repository. # noqa: E501 :rtype: str """ return self._cdn_url @cdn_url.setter def cdn_url(self, cdn_url): - """ - Sets the cdn_url of this Repository. - Base URL from which packages and other artifacts are downloaded. + """Sets the cdn_url of this Repository. - :param cdn_url: The cdn_url of this Repository. + Base URL from which packages and other artifacts are downloaded. # noqa: E501 + + :param cdn_url: The cdn_url of this Repository. # noqa: E501 :type: str """ @@ -187,22 +191,22 @@ def cdn_url(self, cdn_url): @property def created_at(self): - """ - Gets the created_at of this Repository. - + """Gets the created_at of this Repository. # noqa: E501 - :return: The created_at of this Repository. + # noqa: E501 + + :return: The created_at of this Repository. # noqa: E501 :rtype: str """ return self._created_at @created_at.setter def created_at(self, created_at): - """ - Sets the created_at of this Repository. - + """Sets the created_at of this Repository. + + # noqa: E501 - :param created_at: The created_at of this Repository. + :param created_at: The created_at of this Repository. # noqa: E501 :type: str """ @@ -210,22 +214,22 @@ def created_at(self, created_at): @property def deleted_at(self): - """ - Gets the deleted_at of this Repository. - + """Gets the deleted_at of this Repository. # noqa: E501 + + # noqa: E501 - :return: The deleted_at of this Repository. + :return: The deleted_at of this Repository. # noqa: E501 :rtype: str """ return self._deleted_at @deleted_at.setter def deleted_at(self, deleted_at): - """ - Sets the deleted_at of this Repository. - + """Sets the deleted_at of this Repository. + + # noqa: E501 - :param deleted_at: The deleted_at of this Repository. + :param deleted_at: The deleted_at of this Repository. # noqa: E501 :type: str """ @@ -233,22 +237,22 @@ def deleted_at(self, deleted_at): @property def description(self): - """ - Gets the description of this Repository. - A description of the repository's purpose/contents. + """Gets the description of this Repository. # noqa: E501 + + A description of the repository's purpose/contents. # noqa: E501 - :return: The description of this Repository. + :return: The description of this Repository. # noqa: E501 :rtype: str """ return self._description @description.setter def description(self, description): - """ - Sets the description of this Repository. - A description of the repository's purpose/contents. + """Sets the description of this Repository. - :param description: The description of this Repository. + A description of the repository's purpose/contents. # noqa: E501 + + :param description: The description of this Repository. # noqa: E501 :type: str """ @@ -256,22 +260,22 @@ def description(self, description): @property def gpg_keys(self): - """ - Gets the gpg_keys of this Repository. - + """Gets the gpg_keys of this Repository. # noqa: E501 - :return: The gpg_keys of this Repository. + # noqa: E501 + + :return: The gpg_keys of this Repository. # noqa: E501 :rtype: list[ReposGpgKeys] """ return self._gpg_keys @gpg_keys.setter def gpg_keys(self, gpg_keys): - """ - Sets the gpg_keys of this Repository. - + """Sets the gpg_keys of this Repository. - :param gpg_keys: The gpg_keys of this Repository. + # noqa: E501 + + :param gpg_keys: The gpg_keys of this Repository. # noqa: E501 :type: list[ReposGpgKeys] """ @@ -279,22 +283,22 @@ def gpg_keys(self, gpg_keys): @property def index_files(self): - """ - Gets the index_files of this Repository. - If checked, files contained in packages will be indexed, which increase the synchronisation time required for packages. Note that it is recommended you keep this enabled unless the synchronisation time is significantly impacted. + """Gets the index_files of this Repository. # noqa: E501 + + If checked, files contained in packages will be indexed, which increase the synchronisation time required for packages. Note that it is recommended you keep this enabled unless the synchronisation time is significantly impacted. # noqa: E501 - :return: The index_files of this Repository. + :return: The index_files of this Repository. # noqa: E501 :rtype: bool """ return self._index_files @index_files.setter def index_files(self, index_files): - """ - Sets the index_files of this Repository. - If checked, files contained in packages will be indexed, which increase the synchronisation time required for packages. Note that it is recommended you keep this enabled unless the synchronisation time is significantly impacted. + """Sets the index_files of this Repository. + + If checked, files contained in packages will be indexed, which increase the synchronisation time required for packages. Note that it is recommended you keep this enabled unless the synchronisation time is significantly impacted. # noqa: E501 - :param index_files: The index_files of this Repository. + :param index_files: The index_files of this Repository. # noqa: E501 :type: bool """ @@ -302,22 +306,22 @@ def index_files(self, index_files): @property def is_open_source(self): - """ - Gets the is_open_source of this Repository. - + """Gets the is_open_source of this Repository. # noqa: E501 + + # noqa: E501 - :return: The is_open_source of this Repository. + :return: The is_open_source of this Repository. # noqa: E501 :rtype: bool """ return self._is_open_source @is_open_source.setter def is_open_source(self, is_open_source): - """ - Sets the is_open_source of this Repository. - + """Sets the is_open_source of this Repository. + + # noqa: E501 - :param is_open_source: The is_open_source of this Repository. + :param is_open_source: The is_open_source of this Repository. # noqa: E501 :type: bool """ @@ -325,22 +329,22 @@ def is_open_source(self, is_open_source): @property def is_private(self): - """ - Gets the is_private of this Repository. - + """Gets the is_private of this Repository. # noqa: E501 + + # noqa: E501 - :return: The is_private of this Repository. + :return: The is_private of this Repository. # noqa: E501 :rtype: bool """ return self._is_private @is_private.setter def is_private(self, is_private): - """ - Sets the is_private of this Repository. - + """Sets the is_private of this Repository. + + # noqa: E501 - :param is_private: The is_private of this Repository. + :param is_private: The is_private of this Repository. # noqa: E501 :type: bool """ @@ -348,22 +352,22 @@ def is_private(self, is_private): @property def is_public(self): - """ - Gets the is_public of this Repository. - + """Gets the is_public of this Repository. # noqa: E501 + + # noqa: E501 - :return: The is_public of this Repository. + :return: The is_public of this Repository. # noqa: E501 :rtype: bool """ return self._is_public @is_public.setter def is_public(self, is_public): - """ - Sets the is_public of this Repository. - + """Sets the is_public of this Repository. + + # noqa: E501 - :param is_public: The is_public of this Repository. + :param is_public: The is_public of this Repository. # noqa: E501 :type: bool """ @@ -371,47 +375,47 @@ def is_public(self, is_public): @property def name(self): - """ - Gets the name of this Repository. - A descriptive name for the repository. + """Gets the name of this Repository. # noqa: E501 - :return: The name of this Repository. + A descriptive name for the repository. # noqa: E501 + + :return: The name of this Repository. # noqa: E501 :rtype: str """ return self._name @name.setter def name(self, name): - """ - Sets the name of this Repository. - A descriptive name for the repository. + """Sets the name of this Repository. - :param name: The name of this Repository. + A descriptive name for the repository. # noqa: E501 + + :param name: The name of this Repository. # noqa: E501 :type: str """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") + if self._configuration.client_side_validation and name is None: + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 self._name = name @property def namespace(self): - """ - Gets the namespace of this Repository. - Namespace to which this repository belongs. + """Gets the namespace of this Repository. # noqa: E501 - :return: The namespace of this Repository. + Namespace to which this repository belongs. # noqa: E501 + + :return: The namespace of this Repository. # noqa: E501 :rtype: str """ return self._namespace @namespace.setter def namespace(self, namespace): - """ - Sets the namespace of this Repository. - Namespace to which this repository belongs. + """Sets the namespace of this Repository. + + Namespace to which this repository belongs. # noqa: E501 - :param namespace: The namespace of this Repository. + :param namespace: The namespace of this Repository. # noqa: E501 :type: str """ @@ -419,22 +423,22 @@ def namespace(self, namespace): @property def namespace_url(self): - """ - Gets the namespace_url of this Repository. - API endpoint where data about this namespace can be retrieved. + """Gets the namespace_url of this Repository. # noqa: E501 + + API endpoint where data about this namespace can be retrieved. # noqa: E501 - :return: The namespace_url of this Repository. + :return: The namespace_url of this Repository. # noqa: E501 :rtype: str """ return self._namespace_url @namespace_url.setter def namespace_url(self, namespace_url): - """ - Sets the namespace_url of this Repository. - API endpoint where data about this namespace can be retrieved. + """Sets the namespace_url of this Repository. + + API endpoint where data about this namespace can be retrieved. # noqa: E501 - :param namespace_url: The namespace_url of this Repository. + :param namespace_url: The namespace_url of this Repository. # noqa: E501 :type: str """ @@ -442,22 +446,22 @@ def namespace_url(self, namespace_url): @property def num_downloads(self): - """ - Gets the num_downloads of this Repository. - The number of downloads for packages in the repository. + """Gets the num_downloads of this Repository. # noqa: E501 + + The number of downloads for packages in the repository. # noqa: E501 - :return: The num_downloads of this Repository. + :return: The num_downloads of this Repository. # noqa: E501 :rtype: int """ return self._num_downloads @num_downloads.setter def num_downloads(self, num_downloads): - """ - Sets the num_downloads of this Repository. - The number of downloads for packages in the repository. + """Sets the num_downloads of this Repository. - :param num_downloads: The num_downloads of this Repository. + The number of downloads for packages in the repository. # noqa: E501 + + :param num_downloads: The num_downloads of this Repository. # noqa: E501 :type: int """ @@ -465,22 +469,22 @@ def num_downloads(self, num_downloads): @property def package_count(self): - """ - Gets the package_count of this Repository. - The number of packages in the repository. + """Gets the package_count of this Repository. # noqa: E501 - :return: The package_count of this Repository. + The number of packages in the repository. # noqa: E501 + + :return: The package_count of this Repository. # noqa: E501 :rtype: int """ return self._package_count @package_count.setter def package_count(self, package_count): - """ - Sets the package_count of this Repository. - The number of packages in the repository. + """Sets the package_count of this Repository. - :param package_count: The package_count of this Repository. + The number of packages in the repository. # noqa: E501 + + :param package_count: The package_count of this Repository. # noqa: E501 :type: int """ @@ -488,22 +492,22 @@ def package_count(self, package_count): @property def package_group_count(self): - """ - Gets the package_group_count of this Repository. - The number of groups in the repository. + """Gets the package_group_count of this Repository. # noqa: E501 - :return: The package_group_count of this Repository. + The number of groups in the repository. # noqa: E501 + + :return: The package_group_count of this Repository. # noqa: E501 :rtype: int """ return self._package_group_count @package_group_count.setter def package_group_count(self, package_group_count): - """ - Sets the package_group_count of this Repository. - The number of groups in the repository. + """Sets the package_group_count of this Repository. - :param package_group_count: The package_group_count of this Repository. + The number of groups in the repository. # noqa: E501 + + :param package_group_count: The package_group_count of this Repository. # noqa: E501 :type: int """ @@ -511,22 +515,22 @@ def package_group_count(self, package_group_count): @property def repository_type(self): - """ - Gets the repository_type of this Repository. - The repository type changes how it is accessed and billed. Private repositories can only be used on paid plans, but are visible only to you or authorised delegates. Open-Source repositories are always visible to everyone and are restricted by licensing, but are free to use and come with generous bandwidth/storage. You can only select Open-Source at repository creation time. + """Gets the repository_type of this Repository. # noqa: E501 - :return: The repository_type of this Repository. + The repository type changes how it is accessed and billed. Private repositories can only be used on paid plans, but are visible only to you or authorised delegates. Open-Source repositories are always visible to everyone and are restricted by licensing, but are free to use and come with generous bandwidth/storage. You can only select Open-Source at repository creation time. # noqa: E501 + + :return: The repository_type of this Repository. # noqa: E501 :rtype: str """ return self._repository_type @repository_type.setter def repository_type(self, repository_type): - """ - Sets the repository_type of this Repository. - The repository type changes how it is accessed and billed. Private repositories can only be used on paid plans, but are visible only to you or authorised delegates. Open-Source repositories are always visible to everyone and are restricted by licensing, but are free to use and come with generous bandwidth/storage. You can only select Open-Source at repository creation time. + """Sets the repository_type of this Repository. - :param repository_type: The repository_type of this Repository. + The repository type changes how it is accessed and billed. Private repositories can only be used on paid plans, but are visible only to you or authorised delegates. Open-Source repositories are always visible to everyone and are restricted by licensing, but are free to use and come with generous bandwidth/storage. You can only select Open-Source at repository creation time. # noqa: E501 + + :param repository_type: The repository_type of this Repository. # noqa: E501 :type: str """ @@ -534,22 +538,22 @@ def repository_type(self, repository_type): @property def repository_type_str(self): - """ - Gets the repository_type_str of this Repository. - The repository type changes how it is accessed and billed. Private repositories can only be used on paid plans, but are visible only to you or authorised delegates. Public repositories are free to use on all plans and visible to all Cloudsmith users. + """Gets the repository_type_str of this Repository. # noqa: E501 + + The repository type changes how it is accessed and billed. Private repositories can only be used on paid plans, but are visible only to you or authorised delegates. Public repositories are free to use on all plans and visible to all Cloudsmith users. # noqa: E501 - :return: The repository_type_str of this Repository. + :return: The repository_type_str of this Repository. # noqa: E501 :rtype: str """ return self._repository_type_str @repository_type_str.setter def repository_type_str(self, repository_type_str): - """ - Sets the repository_type_str of this Repository. - The repository type changes how it is accessed and billed. Private repositories can only be used on paid plans, but are visible only to you or authorised delegates. Public repositories are free to use on all plans and visible to all Cloudsmith users. + """Sets the repository_type_str of this Repository. + + The repository type changes how it is accessed and billed. Private repositories can only be used on paid plans, but are visible only to you or authorised delegates. Public repositories are free to use on all plans and visible to all Cloudsmith users. # noqa: E501 - :param repository_type_str: The repository_type_str of this Repository. + :param repository_type_str: The repository_type_str of this Repository. # noqa: E501 :type: str """ @@ -557,22 +561,22 @@ def repository_type_str(self, repository_type_str): @property def self_html_url(self): - """ - Gets the self_html_url of this Repository. - Website URL for this repository. + """Gets the self_html_url of this Repository. # noqa: E501 + + Website URL for this repository. # noqa: E501 - :return: The self_html_url of this Repository. + :return: The self_html_url of this Repository. # noqa: E501 :rtype: str """ return self._self_html_url @self_html_url.setter def self_html_url(self, self_html_url): - """ - Sets the self_html_url of this Repository. - Website URL for this repository. + """Sets the self_html_url of this Repository. + + Website URL for this repository. # noqa: E501 - :param self_html_url: The self_html_url of this Repository. + :param self_html_url: The self_html_url of this Repository. # noqa: E501 :type: str """ @@ -580,22 +584,22 @@ def self_html_url(self, self_html_url): @property def self_url(self): - """ - Gets the self_url of this Repository. - API endpoint where data about this repository can be retrieved. + """Gets the self_url of this Repository. # noqa: E501 - :return: The self_url of this Repository. + API endpoint where data about this repository can be retrieved. # noqa: E501 + + :return: The self_url of this Repository. # noqa: E501 :rtype: str """ return self._self_url @self_url.setter def self_url(self, self_url): - """ - Sets the self_url of this Repository. - API endpoint where data about this repository can be retrieved. + """Sets the self_url of this Repository. - :param self_url: The self_url of this Repository. + API endpoint where data about this repository can be retrieved. # noqa: E501 + + :param self_url: The self_url of this Repository. # noqa: E501 :type: str """ @@ -603,22 +607,22 @@ def self_url(self, self_url): @property def size(self): - """ - Gets the size of this Repository. - The calculated size of the repository. + """Gets the size of this Repository. # noqa: E501 - :return: The size of this Repository. + The calculated size of the repository. # noqa: E501 + + :return: The size of this Repository. # noqa: E501 :rtype: int """ return self._size @size.setter def size(self, size): - """ - Sets the size of this Repository. - The calculated size of the repository. + """Sets the size of this Repository. + + The calculated size of the repository. # noqa: E501 - :param size: The size of this Repository. + :param size: The size of this Repository. # noqa: E501 :type: int """ @@ -626,22 +630,22 @@ def size(self, size): @property def size_str(self): - """ - Gets the size_str of this Repository. - The calculated size of the repository (human readable). + """Gets the size_str of this Repository. # noqa: E501 + + The calculated size of the repository (human readable). # noqa: E501 - :return: The size_str of this Repository. + :return: The size_str of this Repository. # noqa: E501 :rtype: str """ return self._size_str @size_str.setter def size_str(self, size_str): - """ - Sets the size_str of this Repository. - The calculated size of the repository (human readable). + """Sets the size_str of this Repository. + + The calculated size of the repository (human readable). # noqa: E501 - :param size_str: The size_str of this Repository. + :param size_str: The size_str of this Repository. # noqa: E501 :type: str """ @@ -649,22 +653,22 @@ def size_str(self, size_str): @property def slug(self): - """ - Gets the slug of this Repository. - The slug identifies the repository in URIs. + """Gets the slug of this Repository. # noqa: E501 + + The slug identifies the repository in URIs. # noqa: E501 - :return: The slug of this Repository. + :return: The slug of this Repository. # noqa: E501 :rtype: str """ return self._slug @slug.setter def slug(self, slug): - """ - Sets the slug of this Repository. - The slug identifies the repository in URIs. + """Sets the slug of this Repository. - :param slug: The slug of this Repository. + The slug identifies the repository in URIs. # noqa: E501 + + :param slug: The slug of this Repository. # noqa: E501 :type: str """ @@ -672,22 +676,22 @@ def slug(self, slug): @property def slug_perm(self): - """ - Gets the slug_perm of this Repository. - The slug_perm immutably identifies the repository. It will never change once a repository has been created. + """Gets the slug_perm of this Repository. # noqa: E501 - :return: The slug_perm of this Repository. + The slug_perm immutably identifies the repository. It will never change once a repository has been created. # noqa: E501 + + :return: The slug_perm of this Repository. # noqa: E501 :rtype: str """ return self._slug_perm @slug_perm.setter def slug_perm(self, slug_perm): - """ - Sets the slug_perm of this Repository. - The slug_perm immutably identifies the repository. It will never change once a repository has been created. + """Sets the slug_perm of this Repository. - :param slug_perm: The slug_perm of this Repository. + The slug_perm immutably identifies the repository. It will never change once a repository has been created. # noqa: E501 + + :param slug_perm: The slug_perm of this Repository. # noqa: E501 :type: str """ @@ -695,34 +699,32 @@ def slug_perm(self, slug_perm): @property def storage_region(self): - """ - Gets the storage_region of this Repository. - The Cloudsmith region in which package files are stored. + """Gets the storage_region of this Repository. # noqa: E501 + + The Cloudsmith region in which package files are stored. # noqa: E501 - :return: The storage_region of this Repository. + :return: The storage_region of this Repository. # noqa: E501 :rtype: str """ return self._storage_region @storage_region.setter def storage_region(self, storage_region): - """ - Sets the storage_region of this Repository. - The Cloudsmith region in which package files are stored. + """Sets the storage_region of this Repository. + + The Cloudsmith region in which package files are stored. # noqa: E501 - :param storage_region: The storage_region of this Repository. + :param storage_region: The storage_region of this Repository. # noqa: E501 :type: str """ self._storage_region = storage_region def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -739,32 +741,30 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(Repository, dict): + for key, value in self.items(): + result[key] = value return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, Repository): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other + """Returns true if both objects are not equal""" + if not isinstance(other, Repository): + return True + + return self.to_dict() != other.to_dict() diff --git a/bindings/python/src/cloudsmith_api/models/repository_token.py b/bindings/python/src/cloudsmith_api/models/repository_token.py index 33304e75..70de3d2e 100644 --- a/bindings/python/src/cloudsmith_api/models/repository_token.py +++ b/bindings/python/src/cloudsmith_api/models/repository_token.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -11,18 +11,20 @@ """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration class RepositoryToken(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -114,10 +116,11 @@ class RepositoryToken(object): 'user_url': 'user_url' } - def __init__(self, clients=None, created_at=None, created_by=None, created_by_url=None, default=None, disable_url=None, downloads=None, enable_url=None, eula_accepted=None, eula_accepted_at=None, eula_accepted_from=None, eula_required=None, has_limits=None, identifier=None, is_active=None, is_limited=None, limit_bandwidth=None, limit_bandwidth_unit=None, limit_date_range_from=None, limit_date_range_to=None, limit_num_clients=None, limit_num_downloads=None, limit_package_query=None, limit_path_query=None, metadata=None, name=None, refresh_url=None, reset_url=None, scheduled_reset_at=None, scheduled_reset_period=None, self_url=None, slug_perm=None, token=None, updated_at=None, updated_by=None, updated_by_url=None, usage=None, user=None, user_url=None): - """ - RepositoryToken - a model defined in Swagger - """ + def __init__(self, clients=None, created_at=None, created_by=None, created_by_url=None, default=None, disable_url=None, downloads=None, enable_url=None, eula_accepted=None, eula_accepted_at=None, eula_accepted_from=None, eula_required=None, has_limits=None, identifier=None, is_active=None, is_limited=None, limit_bandwidth=None, limit_bandwidth_unit=None, limit_date_range_from=None, limit_date_range_to=None, limit_num_clients=None, limit_num_downloads=None, limit_package_query=None, limit_path_query=None, metadata=None, name=None, refresh_url=None, reset_url=None, scheduled_reset_at=None, scheduled_reset_period=None, self_url=None, slug_perm=None, token=None, updated_at=None, updated_by=None, updated_by_url=None, usage=None, user=None, user_url=None, _configuration=None): # noqa: E501 + """RepositoryToken - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._clients = None self._created_at = None @@ -158,103 +161,104 @@ def __init__(self, clients=None, created_at=None, created_by=None, created_by_ur self._usage = None self._user = None self._user_url = None + self.discriminator = None if clients is not None: - self.clients = clients + self.clients = clients if created_at is not None: - self.created_at = created_at + self.created_at = created_at if created_by is not None: - self.created_by = created_by + self.created_by = created_by if created_by_url is not None: - self.created_by_url = created_by_url + self.created_by_url = created_by_url if default is not None: - self.default = default + self.default = default if disable_url is not None: - self.disable_url = disable_url + self.disable_url = disable_url if downloads is not None: - self.downloads = downloads + self.downloads = downloads if enable_url is not None: - self.enable_url = enable_url + self.enable_url = enable_url if eula_accepted is not None: - self.eula_accepted = eula_accepted + self.eula_accepted = eula_accepted if eula_accepted_at is not None: - self.eula_accepted_at = eula_accepted_at + self.eula_accepted_at = eula_accepted_at if eula_accepted_from is not None: - self.eula_accepted_from = eula_accepted_from + self.eula_accepted_from = eula_accepted_from if eula_required is not None: - self.eula_required = eula_required + self.eula_required = eula_required if has_limits is not None: - self.has_limits = has_limits + self.has_limits = has_limits if identifier is not None: - self.identifier = identifier + self.identifier = identifier if is_active is not None: - self.is_active = is_active + self.is_active = is_active if is_limited is not None: - self.is_limited = is_limited + self.is_limited = is_limited if limit_bandwidth is not None: - self.limit_bandwidth = limit_bandwidth + self.limit_bandwidth = limit_bandwidth if limit_bandwidth_unit is not None: - self.limit_bandwidth_unit = limit_bandwidth_unit + self.limit_bandwidth_unit = limit_bandwidth_unit if limit_date_range_from is not None: - self.limit_date_range_from = limit_date_range_from + self.limit_date_range_from = limit_date_range_from if limit_date_range_to is not None: - self.limit_date_range_to = limit_date_range_to + self.limit_date_range_to = limit_date_range_to if limit_num_clients is not None: - self.limit_num_clients = limit_num_clients + self.limit_num_clients = limit_num_clients if limit_num_downloads is not None: - self.limit_num_downloads = limit_num_downloads + self.limit_num_downloads = limit_num_downloads if limit_package_query is not None: - self.limit_package_query = limit_package_query + self.limit_package_query = limit_package_query if limit_path_query is not None: - self.limit_path_query = limit_path_query + self.limit_path_query = limit_path_query if metadata is not None: - self.metadata = metadata + self.metadata = metadata self.name = name if refresh_url is not None: - self.refresh_url = refresh_url + self.refresh_url = refresh_url if reset_url is not None: - self.reset_url = reset_url + self.reset_url = reset_url if scheduled_reset_at is not None: - self.scheduled_reset_at = scheduled_reset_at + self.scheduled_reset_at = scheduled_reset_at if scheduled_reset_period is not None: - self.scheduled_reset_period = scheduled_reset_period + self.scheduled_reset_period = scheduled_reset_period if self_url is not None: - self.self_url = self_url + self.self_url = self_url if slug_perm is not None: - self.slug_perm = slug_perm + self.slug_perm = slug_perm if token is not None: - self.token = token + self.token = token if updated_at is not None: - self.updated_at = updated_at + self.updated_at = updated_at if updated_by is not None: - self.updated_by = updated_by + self.updated_by = updated_by if updated_by_url is not None: - self.updated_by_url = updated_by_url + self.updated_by_url = updated_by_url if usage is not None: - self.usage = usage + self.usage = usage if user is not None: - self.user = user + self.user = user if user_url is not None: - self.user_url = user_url + self.user_url = user_url @property def clients(self): - """ - Gets the clients of this RepositoryToken. - + """Gets the clients of this RepositoryToken. # noqa: E501 + + # noqa: E501 - :return: The clients of this RepositoryToken. + :return: The clients of this RepositoryToken. # noqa: E501 :rtype: int """ return self._clients @clients.setter def clients(self, clients): - """ - Sets the clients of this RepositoryToken. - + """Sets the clients of this RepositoryToken. + + # noqa: E501 - :param clients: The clients of this RepositoryToken. + :param clients: The clients of this RepositoryToken. # noqa: E501 :type: int """ @@ -262,22 +266,22 @@ def clients(self, clients): @property def created_at(self): - """ - Gets the created_at of this RepositoryToken. - The datetime the token was updated at. + """Gets the created_at of this RepositoryToken. # noqa: E501 + + The datetime the token was updated at. # noqa: E501 - :return: The created_at of this RepositoryToken. + :return: The created_at of this RepositoryToken. # noqa: E501 :rtype: str """ return self._created_at @created_at.setter def created_at(self, created_at): - """ - Sets the created_at of this RepositoryToken. - The datetime the token was updated at. + """Sets the created_at of this RepositoryToken. - :param created_at: The created_at of this RepositoryToken. + The datetime the token was updated at. # noqa: E501 + + :param created_at: The created_at of this RepositoryToken. # noqa: E501 :type: str """ @@ -285,22 +289,22 @@ def created_at(self, created_at): @property def created_by(self): - """ - Gets the created_by of this RepositoryToken. - + """Gets the created_by of this RepositoryToken. # noqa: E501 + + # noqa: E501 - :return: The created_by of this RepositoryToken. + :return: The created_by of this RepositoryToken. # noqa: E501 :rtype: str """ return self._created_by @created_by.setter def created_by(self, created_by): - """ - Sets the created_by of this RepositoryToken. - + """Sets the created_by of this RepositoryToken. + + # noqa: E501 - :param created_by: The created_by of this RepositoryToken. + :param created_by: The created_by of this RepositoryToken. # noqa: E501 :type: str """ @@ -308,22 +312,22 @@ def created_by(self, created_by): @property def created_by_url(self): - """ - Gets the created_by_url of this RepositoryToken. - + """Gets the created_by_url of this RepositoryToken. # noqa: E501 - :return: The created_by_url of this RepositoryToken. + # noqa: E501 + + :return: The created_by_url of this RepositoryToken. # noqa: E501 :rtype: str """ return self._created_by_url @created_by_url.setter def created_by_url(self, created_by_url): - """ - Sets the created_by_url of this RepositoryToken. - + """Sets the created_by_url of this RepositoryToken. - :param created_by_url: The created_by_url of this RepositoryToken. + # noqa: E501 + + :param created_by_url: The created_by_url of this RepositoryToken. # noqa: E501 :type: str """ @@ -331,22 +335,22 @@ def created_by_url(self, created_by_url): @property def default(self): - """ - Gets the default of this RepositoryToken. - If selected this is the default token for this repository. + """Gets the default of this RepositoryToken. # noqa: E501 + + If selected this is the default token for this repository. # noqa: E501 - :return: The default of this RepositoryToken. + :return: The default of this RepositoryToken. # noqa: E501 :rtype: bool """ return self._default @default.setter def default(self, default): - """ - Sets the default of this RepositoryToken. - If selected this is the default token for this repository. + """Sets the default of this RepositoryToken. + + If selected this is the default token for this repository. # noqa: E501 - :param default: The default of this RepositoryToken. + :param default: The default of this RepositoryToken. # noqa: E501 :type: bool """ @@ -354,22 +358,22 @@ def default(self, default): @property def disable_url(self): - """ - Gets the disable_url of this RepositoryToken. - + """Gets the disable_url of this RepositoryToken. # noqa: E501 - :return: The disable_url of this RepositoryToken. + # noqa: E501 + + :return: The disable_url of this RepositoryToken. # noqa: E501 :rtype: str """ return self._disable_url @disable_url.setter def disable_url(self, disable_url): - """ - Sets the disable_url of this RepositoryToken. - + """Sets the disable_url of this RepositoryToken. + + # noqa: E501 - :param disable_url: The disable_url of this RepositoryToken. + :param disable_url: The disable_url of this RepositoryToken. # noqa: E501 :type: str """ @@ -377,22 +381,22 @@ def disable_url(self, disable_url): @property def downloads(self): - """ - Gets the downloads of this RepositoryToken. - + """Gets the downloads of this RepositoryToken. # noqa: E501 + + # noqa: E501 - :return: The downloads of this RepositoryToken. + :return: The downloads of this RepositoryToken. # noqa: E501 :rtype: int """ return self._downloads @downloads.setter def downloads(self, downloads): - """ - Sets the downloads of this RepositoryToken. - + """Sets the downloads of this RepositoryToken. + + # noqa: E501 - :param downloads: The downloads of this RepositoryToken. + :param downloads: The downloads of this RepositoryToken. # noqa: E501 :type: int """ @@ -400,22 +404,22 @@ def downloads(self, downloads): @property def enable_url(self): - """ - Gets the enable_url of this RepositoryToken. - + """Gets the enable_url of this RepositoryToken. # noqa: E501 - :return: The enable_url of this RepositoryToken. + # noqa: E501 + + :return: The enable_url of this RepositoryToken. # noqa: E501 :rtype: str """ return self._enable_url @enable_url.setter def enable_url(self, enable_url): - """ - Sets the enable_url of this RepositoryToken. - + """Sets the enable_url of this RepositoryToken. + + # noqa: E501 - :param enable_url: The enable_url of this RepositoryToken. + :param enable_url: The enable_url of this RepositoryToken. # noqa: E501 :type: str """ @@ -423,22 +427,22 @@ def enable_url(self, enable_url): @property def eula_accepted(self): - """ - Gets the eula_accepted of this RepositoryToken. - + """Gets the eula_accepted of this RepositoryToken. # noqa: E501 + + # noqa: E501 - :return: The eula_accepted of this RepositoryToken. + :return: The eula_accepted of this RepositoryToken. # noqa: E501 :rtype: object """ return self._eula_accepted @eula_accepted.setter def eula_accepted(self, eula_accepted): - """ - Sets the eula_accepted of this RepositoryToken. - + """Sets the eula_accepted of this RepositoryToken. - :param eula_accepted: The eula_accepted of this RepositoryToken. + # noqa: E501 + + :param eula_accepted: The eula_accepted of this RepositoryToken. # noqa: E501 :type: object """ @@ -446,22 +450,22 @@ def eula_accepted(self, eula_accepted): @property def eula_accepted_at(self): - """ - Gets the eula_accepted_at of this RepositoryToken. - The datetime the EULA was accepted at. + """Gets the eula_accepted_at of this RepositoryToken. # noqa: E501 - :return: The eula_accepted_at of this RepositoryToken. + The datetime the EULA was accepted at. # noqa: E501 + + :return: The eula_accepted_at of this RepositoryToken. # noqa: E501 :rtype: str """ return self._eula_accepted_at @eula_accepted_at.setter def eula_accepted_at(self, eula_accepted_at): - """ - Sets the eula_accepted_at of this RepositoryToken. - The datetime the EULA was accepted at. + """Sets the eula_accepted_at of this RepositoryToken. + + The datetime the EULA was accepted at. # noqa: E501 - :param eula_accepted_at: The eula_accepted_at of this RepositoryToken. + :param eula_accepted_at: The eula_accepted_at of this RepositoryToken. # noqa: E501 :type: str """ @@ -469,22 +473,22 @@ def eula_accepted_at(self, eula_accepted_at): @property def eula_accepted_from(self): - """ - Gets the eula_accepted_from of this RepositoryToken. - + """Gets the eula_accepted_from of this RepositoryToken. # noqa: E501 + + # noqa: E501 - :return: The eula_accepted_from of this RepositoryToken. + :return: The eula_accepted_from of this RepositoryToken. # noqa: E501 :rtype: str """ return self._eula_accepted_from @eula_accepted_from.setter def eula_accepted_from(self, eula_accepted_from): - """ - Sets the eula_accepted_from of this RepositoryToken. - + """Sets the eula_accepted_from of this RepositoryToken. - :param eula_accepted_from: The eula_accepted_from of this RepositoryToken. + # noqa: E501 + + :param eula_accepted_from: The eula_accepted_from of this RepositoryToken. # noqa: E501 :type: str """ @@ -492,22 +496,22 @@ def eula_accepted_from(self, eula_accepted_from): @property def eula_required(self): - """ - Gets the eula_required of this RepositoryToken. - If checked, a EULA acceptance is required for this token. + """Gets the eula_required of this RepositoryToken. # noqa: E501 + + If checked, a EULA acceptance is required for this token. # noqa: E501 - :return: The eula_required of this RepositoryToken. + :return: The eula_required of this RepositoryToken. # noqa: E501 :rtype: bool """ return self._eula_required @eula_required.setter def eula_required(self, eula_required): - """ - Sets the eula_required of this RepositoryToken. - If checked, a EULA acceptance is required for this token. + """Sets the eula_required of this RepositoryToken. + + If checked, a EULA acceptance is required for this token. # noqa: E501 - :param eula_required: The eula_required of this RepositoryToken. + :param eula_required: The eula_required of this RepositoryToken. # noqa: E501 :type: bool """ @@ -515,22 +519,22 @@ def eula_required(self, eula_required): @property def has_limits(self): - """ - Gets the has_limits of this RepositoryToken. - + """Gets the has_limits of this RepositoryToken. # noqa: E501 + + # noqa: E501 - :return: The has_limits of this RepositoryToken. + :return: The has_limits of this RepositoryToken. # noqa: E501 :rtype: bool """ return self._has_limits @has_limits.setter def has_limits(self, has_limits): - """ - Sets the has_limits of this RepositoryToken. - + """Sets the has_limits of this RepositoryToken. - :param has_limits: The has_limits of this RepositoryToken. + # noqa: E501 + + :param has_limits: The has_limits of this RepositoryToken. # noqa: E501 :type: bool """ @@ -538,22 +542,22 @@ def has_limits(self, has_limits): @property def identifier(self): - """ - Gets the identifier of this RepositoryToken. - + """Gets the identifier of this RepositoryToken. # noqa: E501 + + # noqa: E501 - :return: The identifier of this RepositoryToken. + :return: The identifier of this RepositoryToken. # noqa: E501 :rtype: int """ return self._identifier @identifier.setter def identifier(self, identifier): - """ - Sets the identifier of this RepositoryToken. - + """Sets the identifier of this RepositoryToken. + + # noqa: E501 - :param identifier: The identifier of this RepositoryToken. + :param identifier: The identifier of this RepositoryToken. # noqa: E501 :type: int """ @@ -561,22 +565,22 @@ def identifier(self, identifier): @property def is_active(self): - """ - Gets the is_active of this RepositoryToken. - If enabled, the token will allow downloads based on configured restrictions (if any). + """Gets the is_active of this RepositoryToken. # noqa: E501 - :return: The is_active of this RepositoryToken. + If enabled, the token will allow downloads based on configured restrictions (if any). # noqa: E501 + + :return: The is_active of this RepositoryToken. # noqa: E501 :rtype: bool """ return self._is_active @is_active.setter def is_active(self, is_active): - """ - Sets the is_active of this RepositoryToken. - If enabled, the token will allow downloads based on configured restrictions (if any). + """Sets the is_active of this RepositoryToken. - :param is_active: The is_active of this RepositoryToken. + If enabled, the token will allow downloads based on configured restrictions (if any). # noqa: E501 + + :param is_active: The is_active of this RepositoryToken. # noqa: E501 :type: bool """ @@ -584,22 +588,22 @@ def is_active(self, is_active): @property def is_limited(self): - """ - Gets the is_limited of this RepositoryToken. - + """Gets the is_limited of this RepositoryToken. # noqa: E501 + + # noqa: E501 - :return: The is_limited of this RepositoryToken. + :return: The is_limited of this RepositoryToken. # noqa: E501 :rtype: bool """ return self._is_limited @is_limited.setter def is_limited(self, is_limited): - """ - Sets the is_limited of this RepositoryToken. - + """Sets the is_limited of this RepositoryToken. + + # noqa: E501 - :param is_limited: The is_limited of this RepositoryToken. + :param is_limited: The is_limited of this RepositoryToken. # noqa: E501 :type: bool """ @@ -607,22 +611,22 @@ def is_limited(self, is_limited): @property def limit_bandwidth(self): - """ - Gets the limit_bandwidth of this RepositoryToken. - The maximum download bandwidth allowed for the token. Values are expressed as the selected unit of bandwidth. Please note that since downloads are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point. + """Gets the limit_bandwidth of this RepositoryToken. # noqa: E501 - :return: The limit_bandwidth of this RepositoryToken. + The maximum download bandwidth allowed for the token. Values are expressed as the selected unit of bandwidth. Please note that since downloads are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point. # noqa: E501 + + :return: The limit_bandwidth of this RepositoryToken. # noqa: E501 :rtype: int """ return self._limit_bandwidth @limit_bandwidth.setter def limit_bandwidth(self, limit_bandwidth): - """ - Sets the limit_bandwidth of this RepositoryToken. - The maximum download bandwidth allowed for the token. Values are expressed as the selected unit of bandwidth. Please note that since downloads are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point. + """Sets the limit_bandwidth of this RepositoryToken. + + The maximum download bandwidth allowed for the token. Values are expressed as the selected unit of bandwidth. Please note that since downloads are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point. # noqa: E501 - :param limit_bandwidth: The limit_bandwidth of this RepositoryToken. + :param limit_bandwidth: The limit_bandwidth of this RepositoryToken. # noqa: E501 :type: int """ @@ -630,22 +634,22 @@ def limit_bandwidth(self, limit_bandwidth): @property def limit_bandwidth_unit(self): - """ - Gets the limit_bandwidth_unit of this RepositoryToken. - + """Gets the limit_bandwidth_unit of this RepositoryToken. # noqa: E501 + + # noqa: E501 - :return: The limit_bandwidth_unit of this RepositoryToken. + :return: The limit_bandwidth_unit of this RepositoryToken. # noqa: E501 :rtype: str """ return self._limit_bandwidth_unit @limit_bandwidth_unit.setter def limit_bandwidth_unit(self, limit_bandwidth_unit): - """ - Sets the limit_bandwidth_unit of this RepositoryToken. - + """Sets the limit_bandwidth_unit of this RepositoryToken. + + # noqa: E501 - :param limit_bandwidth_unit: The limit_bandwidth_unit of this RepositoryToken. + :param limit_bandwidth_unit: The limit_bandwidth_unit of this RepositoryToken. # noqa: E501 :type: str """ @@ -653,22 +657,22 @@ def limit_bandwidth_unit(self, limit_bandwidth_unit): @property def limit_date_range_from(self): - """ - Gets the limit_date_range_from of this RepositoryToken. - The starting date/time the token is allowed to be used from. + """Gets the limit_date_range_from of this RepositoryToken. # noqa: E501 - :return: The limit_date_range_from of this RepositoryToken. + The starting date/time the token is allowed to be used from. # noqa: E501 + + :return: The limit_date_range_from of this RepositoryToken. # noqa: E501 :rtype: str """ return self._limit_date_range_from @limit_date_range_from.setter def limit_date_range_from(self, limit_date_range_from): - """ - Sets the limit_date_range_from of this RepositoryToken. - The starting date/time the token is allowed to be used from. + """Sets the limit_date_range_from of this RepositoryToken. + + The starting date/time the token is allowed to be used from. # noqa: E501 - :param limit_date_range_from: The limit_date_range_from of this RepositoryToken. + :param limit_date_range_from: The limit_date_range_from of this RepositoryToken. # noqa: E501 :type: str """ @@ -676,22 +680,22 @@ def limit_date_range_from(self, limit_date_range_from): @property def limit_date_range_to(self): - """ - Gets the limit_date_range_to of this RepositoryToken. - The ending date/time the token is allowed to be used until. + """Gets the limit_date_range_to of this RepositoryToken. # noqa: E501 + + The ending date/time the token is allowed to be used until. # noqa: E501 - :return: The limit_date_range_to of this RepositoryToken. + :return: The limit_date_range_to of this RepositoryToken. # noqa: E501 :rtype: str """ return self._limit_date_range_to @limit_date_range_to.setter def limit_date_range_to(self, limit_date_range_to): - """ - Sets the limit_date_range_to of this RepositoryToken. - The ending date/time the token is allowed to be used until. + """Sets the limit_date_range_to of this RepositoryToken. - :param limit_date_range_to: The limit_date_range_to of this RepositoryToken. + The ending date/time the token is allowed to be used until. # noqa: E501 + + :param limit_date_range_to: The limit_date_range_to of this RepositoryToken. # noqa: E501 :type: str """ @@ -699,22 +703,22 @@ def limit_date_range_to(self, limit_date_range_to): @property def limit_num_clients(self): - """ - Gets the limit_num_clients of this RepositoryToken. - The maximum number of unique clients allowed for the token. Please note that since clients are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point. + """Gets the limit_num_clients of this RepositoryToken. # noqa: E501 - :return: The limit_num_clients of this RepositoryToken. + The maximum number of unique clients allowed for the token. Please note that since clients are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point. # noqa: E501 + + :return: The limit_num_clients of this RepositoryToken. # noqa: E501 :rtype: int """ return self._limit_num_clients @limit_num_clients.setter def limit_num_clients(self, limit_num_clients): - """ - Sets the limit_num_clients of this RepositoryToken. - The maximum number of unique clients allowed for the token. Please note that since clients are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point. + """Sets the limit_num_clients of this RepositoryToken. + + The maximum number of unique clients allowed for the token. Please note that since clients are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point. # noqa: E501 - :param limit_num_clients: The limit_num_clients of this RepositoryToken. + :param limit_num_clients: The limit_num_clients of this RepositoryToken. # noqa: E501 :type: int """ @@ -722,22 +726,22 @@ def limit_num_clients(self, limit_num_clients): @property def limit_num_downloads(self): - """ - Gets the limit_num_downloads of this RepositoryToken. - The maximum number of downloads allowed for the token. Please note that since downloads are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point. + """Gets the limit_num_downloads of this RepositoryToken. # noqa: E501 + + The maximum number of downloads allowed for the token. Please note that since downloads are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point. # noqa: E501 - :return: The limit_num_downloads of this RepositoryToken. + :return: The limit_num_downloads of this RepositoryToken. # noqa: E501 :rtype: int """ return self._limit_num_downloads @limit_num_downloads.setter def limit_num_downloads(self, limit_num_downloads): - """ - Sets the limit_num_downloads of this RepositoryToken. - The maximum number of downloads allowed for the token. Please note that since downloads are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point. + """Sets the limit_num_downloads of this RepositoryToken. - :param limit_num_downloads: The limit_num_downloads of this RepositoryToken. + The maximum number of downloads allowed for the token. Please note that since downloads are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point. # noqa: E501 + + :param limit_num_downloads: The limit_num_downloads of this RepositoryToken. # noqa: E501 :type: int """ @@ -745,22 +749,22 @@ def limit_num_downloads(self, limit_num_downloads): @property def limit_package_query(self): - """ - Gets the limit_package_query of this RepositoryToken. - The package-based search query to apply to restrict downloads to. This uses the same syntax as the standard search used for repositories, and also supports boolean logic operators such as OR/AND/NOT and parentheses for grouping. This will still allow access to non-package files, such as metadata. + """Gets the limit_package_query of this RepositoryToken. # noqa: E501 + + The package-based search query to apply to restrict downloads to. This uses the same syntax as the standard search used for repositories, and also supports boolean logic operators such as OR/AND/NOT and parentheses for grouping. This will still allow access to non-package files, such as metadata. # noqa: E501 - :return: The limit_package_query of this RepositoryToken. + :return: The limit_package_query of this RepositoryToken. # noqa: E501 :rtype: str """ return self._limit_package_query @limit_package_query.setter def limit_package_query(self, limit_package_query): - """ - Sets the limit_package_query of this RepositoryToken. - The package-based search query to apply to restrict downloads to. This uses the same syntax as the standard search used for repositories, and also supports boolean logic operators such as OR/AND/NOT and parentheses for grouping. This will still allow access to non-package files, such as metadata. + """Sets the limit_package_query of this RepositoryToken. + + The package-based search query to apply to restrict downloads to. This uses the same syntax as the standard search used for repositories, and also supports boolean logic operators such as OR/AND/NOT and parentheses for grouping. This will still allow access to non-package files, such as metadata. # noqa: E501 - :param limit_package_query: The limit_package_query of this RepositoryToken. + :param limit_package_query: The limit_package_query of this RepositoryToken. # noqa: E501 :type: str """ @@ -768,22 +772,22 @@ def limit_package_query(self, limit_package_query): @property def limit_path_query(self): - """ - Gets the limit_path_query of this RepositoryToken. - The path-based search query to apply to restrict downloads to. This supports boolean logic operators such as OR/AND/NOT and parentheses for grouping. The path evaluated does not include the domain name, the namespace, the entitlement code used, the package format, etc. and it always starts with a forward slash. + """Gets the limit_path_query of this RepositoryToken. # noqa: E501 + + The path-based search query to apply to restrict downloads to. This supports boolean logic operators such as OR/AND/NOT and parentheses for grouping. The path evaluated does not include the domain name, the namespace, the entitlement code used, the package format, etc. and it always starts with a forward slash. # noqa: E501 - :return: The limit_path_query of this RepositoryToken. + :return: The limit_path_query of this RepositoryToken. # noqa: E501 :rtype: str """ return self._limit_path_query @limit_path_query.setter def limit_path_query(self, limit_path_query): - """ - Sets the limit_path_query of this RepositoryToken. - The path-based search query to apply to restrict downloads to. This supports boolean logic operators such as OR/AND/NOT and parentheses for grouping. The path evaluated does not include the domain name, the namespace, the entitlement code used, the package format, etc. and it always starts with a forward slash. + """Sets the limit_path_query of this RepositoryToken. - :param limit_path_query: The limit_path_query of this RepositoryToken. + The path-based search query to apply to restrict downloads to. This supports boolean logic operators such as OR/AND/NOT and parentheses for grouping. The path evaluated does not include the domain name, the namespace, the entitlement code used, the package format, etc. and it always starts with a forward slash. # noqa: E501 + + :param limit_path_query: The limit_path_query of this RepositoryToken. # noqa: E501 :type: str """ @@ -791,22 +795,22 @@ def limit_path_query(self, limit_path_query): @property def metadata(self): - """ - Gets the metadata of this RepositoryToken. - + """Gets the metadata of this RepositoryToken. # noqa: E501 + + # noqa: E501 - :return: The metadata of this RepositoryToken. + :return: The metadata of this RepositoryToken. # noqa: E501 :rtype: object """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this RepositoryToken. - + """Sets the metadata of this RepositoryToken. + + # noqa: E501 - :param metadata: The metadata of this RepositoryToken. + :param metadata: The metadata of this RepositoryToken. # noqa: E501 :type: object """ @@ -814,47 +818,47 @@ def metadata(self, metadata): @property def name(self): - """ - Gets the name of this RepositoryToken. - + """Gets the name of this RepositoryToken. # noqa: E501 - :return: The name of this RepositoryToken. + # noqa: E501 + + :return: The name of this RepositoryToken. # noqa: E501 :rtype: str """ return self._name @name.setter def name(self, name): - """ - Sets the name of this RepositoryToken. - + """Sets the name of this RepositoryToken. - :param name: The name of this RepositoryToken. + # noqa: E501 + + :param name: The name of this RepositoryToken. # noqa: E501 :type: str """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") + if self._configuration.client_side_validation and name is None: + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 self._name = name @property def refresh_url(self): - """ - Gets the refresh_url of this RepositoryToken. - + """Gets the refresh_url of this RepositoryToken. # noqa: E501 + + # noqa: E501 - :return: The refresh_url of this RepositoryToken. + :return: The refresh_url of this RepositoryToken. # noqa: E501 :rtype: str """ return self._refresh_url @refresh_url.setter def refresh_url(self, refresh_url): - """ - Sets the refresh_url of this RepositoryToken. - + """Sets the refresh_url of this RepositoryToken. + + # noqa: E501 - :param refresh_url: The refresh_url of this RepositoryToken. + :param refresh_url: The refresh_url of this RepositoryToken. # noqa: E501 :type: str """ @@ -862,22 +866,22 @@ def refresh_url(self, refresh_url): @property def reset_url(self): - """ - Gets the reset_url of this RepositoryToken. - + """Gets the reset_url of this RepositoryToken. # noqa: E501 - :return: The reset_url of this RepositoryToken. + # noqa: E501 + + :return: The reset_url of this RepositoryToken. # noqa: E501 :rtype: str """ return self._reset_url @reset_url.setter def reset_url(self, reset_url): - """ - Sets the reset_url of this RepositoryToken. - + """Sets the reset_url of this RepositoryToken. + + # noqa: E501 - :param reset_url: The reset_url of this RepositoryToken. + :param reset_url: The reset_url of this RepositoryToken. # noqa: E501 :type: str """ @@ -885,22 +889,22 @@ def reset_url(self, reset_url): @property def scheduled_reset_at(self): - """ - Gets the scheduled_reset_at of this RepositoryToken. - The time at which the scheduled reset period has elapsed and the token limits were automatically reset to zero. + """Gets the scheduled_reset_at of this RepositoryToken. # noqa: E501 + + The time at which the scheduled reset period has elapsed and the token limits were automatically reset to zero. # noqa: E501 - :return: The scheduled_reset_at of this RepositoryToken. + :return: The scheduled_reset_at of this RepositoryToken. # noqa: E501 :rtype: str """ return self._scheduled_reset_at @scheduled_reset_at.setter def scheduled_reset_at(self, scheduled_reset_at): - """ - Sets the scheduled_reset_at of this RepositoryToken. - The time at which the scheduled reset period has elapsed and the token limits were automatically reset to zero. + """Sets the scheduled_reset_at of this RepositoryToken. + + The time at which the scheduled reset period has elapsed and the token limits were automatically reset to zero. # noqa: E501 - :param scheduled_reset_at: The scheduled_reset_at of this RepositoryToken. + :param scheduled_reset_at: The scheduled_reset_at of this RepositoryToken. # noqa: E501 :type: str """ @@ -908,22 +912,22 @@ def scheduled_reset_at(self, scheduled_reset_at): @property def scheduled_reset_period(self): - """ - Gets the scheduled_reset_period of this RepositoryToken. - + """Gets the scheduled_reset_period of this RepositoryToken. # noqa: E501 - :return: The scheduled_reset_period of this RepositoryToken. + # noqa: E501 + + :return: The scheduled_reset_period of this RepositoryToken. # noqa: E501 :rtype: str """ return self._scheduled_reset_period @scheduled_reset_period.setter def scheduled_reset_period(self, scheduled_reset_period): - """ - Sets the scheduled_reset_period of this RepositoryToken. - + """Sets the scheduled_reset_period of this RepositoryToken. + + # noqa: E501 - :param scheduled_reset_period: The scheduled_reset_period of this RepositoryToken. + :param scheduled_reset_period: The scheduled_reset_period of this RepositoryToken. # noqa: E501 :type: str """ @@ -931,22 +935,22 @@ def scheduled_reset_period(self, scheduled_reset_period): @property def self_url(self): - """ - Gets the self_url of this RepositoryToken. - + """Gets the self_url of this RepositoryToken. # noqa: E501 + + # noqa: E501 - :return: The self_url of this RepositoryToken. + :return: The self_url of this RepositoryToken. # noqa: E501 :rtype: str """ return self._self_url @self_url.setter def self_url(self, self_url): - """ - Sets the self_url of this RepositoryToken. - + """Sets the self_url of this RepositoryToken. - :param self_url: The self_url of this RepositoryToken. + # noqa: E501 + + :param self_url: The self_url of this RepositoryToken. # noqa: E501 :type: str """ @@ -954,22 +958,22 @@ def self_url(self, self_url): @property def slug_perm(self): - """ - Gets the slug_perm of this RepositoryToken. - + """Gets the slug_perm of this RepositoryToken. # noqa: E501 - :return: The slug_perm of this RepositoryToken. + # noqa: E501 + + :return: The slug_perm of this RepositoryToken. # noqa: E501 :rtype: str """ return self._slug_perm @slug_perm.setter def slug_perm(self, slug_perm): - """ - Sets the slug_perm of this RepositoryToken. - + """Sets the slug_perm of this RepositoryToken. + + # noqa: E501 - :param slug_perm: The slug_perm of this RepositoryToken. + :param slug_perm: The slug_perm of this RepositoryToken. # noqa: E501 :type: str """ @@ -977,22 +981,22 @@ def slug_perm(self, slug_perm): @property def token(self): - """ - Gets the token of this RepositoryToken. - + """Gets the token of this RepositoryToken. # noqa: E501 + + # noqa: E501 - :return: The token of this RepositoryToken. + :return: The token of this RepositoryToken. # noqa: E501 :rtype: str """ return self._token @token.setter def token(self, token): - """ - Sets the token of this RepositoryToken. - + """Sets the token of this RepositoryToken. - :param token: The token of this RepositoryToken. + # noqa: E501 + + :param token: The token of this RepositoryToken. # noqa: E501 :type: str """ @@ -1000,22 +1004,22 @@ def token(self, token): @property def updated_at(self): - """ - Gets the updated_at of this RepositoryToken. - The datetime the token was updated at. + """Gets the updated_at of this RepositoryToken. # noqa: E501 + + The datetime the token was updated at. # noqa: E501 - :return: The updated_at of this RepositoryToken. + :return: The updated_at of this RepositoryToken. # noqa: E501 :rtype: str """ return self._updated_at @updated_at.setter def updated_at(self, updated_at): - """ - Sets the updated_at of this RepositoryToken. - The datetime the token was updated at. + """Sets the updated_at of this RepositoryToken. + + The datetime the token was updated at. # noqa: E501 - :param updated_at: The updated_at of this RepositoryToken. + :param updated_at: The updated_at of this RepositoryToken. # noqa: E501 :type: str """ @@ -1023,22 +1027,22 @@ def updated_at(self, updated_at): @property def updated_by(self): - """ - Gets the updated_by of this RepositoryToken. - + """Gets the updated_by of this RepositoryToken. # noqa: E501 + + # noqa: E501 - :return: The updated_by of this RepositoryToken. + :return: The updated_by of this RepositoryToken. # noqa: E501 :rtype: str """ return self._updated_by @updated_by.setter def updated_by(self, updated_by): - """ - Sets the updated_by of this RepositoryToken. - + """Sets the updated_by of this RepositoryToken. - :param updated_by: The updated_by of this RepositoryToken. + # noqa: E501 + + :param updated_by: The updated_by of this RepositoryToken. # noqa: E501 :type: str """ @@ -1046,22 +1050,22 @@ def updated_by(self, updated_by): @property def updated_by_url(self): - """ - Gets the updated_by_url of this RepositoryToken. - + """Gets the updated_by_url of this RepositoryToken. # noqa: E501 + + # noqa: E501 - :return: The updated_by_url of this RepositoryToken. + :return: The updated_by_url of this RepositoryToken. # noqa: E501 :rtype: str """ return self._updated_by_url @updated_by_url.setter def updated_by_url(self, updated_by_url): - """ - Sets the updated_by_url of this RepositoryToken. - + """Sets the updated_by_url of this RepositoryToken. + + # noqa: E501 - :param updated_by_url: The updated_by_url of this RepositoryToken. + :param updated_by_url: The updated_by_url of this RepositoryToken. # noqa: E501 :type: str """ @@ -1069,22 +1073,22 @@ def updated_by_url(self, updated_by_url): @property def usage(self): - """ - Gets the usage of this RepositoryToken. - + """Gets the usage of this RepositoryToken. # noqa: E501 - :return: The usage of this RepositoryToken. + # noqa: E501 + + :return: The usage of this RepositoryToken. # noqa: E501 :rtype: str """ return self._usage @usage.setter def usage(self, usage): - """ - Sets the usage of this RepositoryToken. - + """Sets the usage of this RepositoryToken. - :param usage: The usage of this RepositoryToken. + # noqa: E501 + + :param usage: The usage of this RepositoryToken. # noqa: E501 :type: str """ @@ -1092,22 +1096,22 @@ def usage(self, usage): @property def user(self): - """ - Gets the user of this RepositoryToken. - + """Gets the user of this RepositoryToken. # noqa: E501 + + # noqa: E501 - :return: The user of this RepositoryToken. + :return: The user of this RepositoryToken. # noqa: E501 :rtype: str """ return self._user @user.setter def user(self, user): - """ - Sets the user of this RepositoryToken. - + """Sets the user of this RepositoryToken. + + # noqa: E501 - :param user: The user of this RepositoryToken. + :param user: The user of this RepositoryToken. # noqa: E501 :type: str """ @@ -1115,34 +1119,32 @@ def user(self, user): @property def user_url(self): - """ - Gets the user_url of this RepositoryToken. - + """Gets the user_url of this RepositoryToken. # noqa: E501 - :return: The user_url of this RepositoryToken. + # noqa: E501 + + :return: The user_url of this RepositoryToken. # noqa: E501 :rtype: str """ return self._user_url @user_url.setter def user_url(self, user_url): - """ - Sets the user_url of this RepositoryToken. - + """Sets the user_url of this RepositoryToken. + + # noqa: E501 - :param user_url: The user_url of this RepositoryToken. + :param user_url: The user_url of this RepositoryToken. # noqa: E501 :type: str """ self._user_url = user_url def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -1159,32 +1161,30 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(RepositoryToken, dict): + for key, value in self.items(): + result[key] = value return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, RepositoryToken): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other + """Returns true if both objects are not equal""" + if not isinstance(other, RepositoryToken): + return True + + return self.to_dict() != other.to_dict() diff --git a/bindings/python/src/cloudsmith_api/models/repository_token_refresh.py b/bindings/python/src/cloudsmith_api/models/repository_token_refresh.py index af7a3918..5761f4c5 100644 --- a/bindings/python/src/cloudsmith_api/models/repository_token_refresh.py +++ b/bindings/python/src/cloudsmith_api/models/repository_token_refresh.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -11,18 +11,20 @@ """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration class RepositoryTokenRefresh(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -114,10 +116,11 @@ class RepositoryTokenRefresh(object): 'user_url': 'user_url' } - def __init__(self, clients=None, created_at=None, created_by=None, created_by_url=None, default=None, disable_url=None, downloads=None, enable_url=None, eula_accepted=None, eula_accepted_at=None, eula_accepted_from=None, eula_required=None, has_limits=None, identifier=None, is_active=None, is_limited=None, limit_bandwidth=None, limit_bandwidth_unit=None, limit_date_range_from=None, limit_date_range_to=None, limit_num_clients=None, limit_num_downloads=None, limit_package_query=None, limit_path_query=None, metadata=None, name=None, refresh_url=None, reset_url=None, scheduled_reset_at=None, scheduled_reset_period=None, self_url=None, slug_perm=None, token=None, updated_at=None, updated_by=None, updated_by_url=None, usage=None, user=None, user_url=None): - """ - RepositoryTokenRefresh - a model defined in Swagger - """ + def __init__(self, clients=None, created_at=None, created_by=None, created_by_url=None, default=None, disable_url=None, downloads=None, enable_url=None, eula_accepted=None, eula_accepted_at=None, eula_accepted_from=None, eula_required=None, has_limits=None, identifier=None, is_active=None, is_limited=None, limit_bandwidth=None, limit_bandwidth_unit=None, limit_date_range_from=None, limit_date_range_to=None, limit_num_clients=None, limit_num_downloads=None, limit_package_query=None, limit_path_query=None, metadata=None, name=None, refresh_url=None, reset_url=None, scheduled_reset_at=None, scheduled_reset_period=None, self_url=None, slug_perm=None, token=None, updated_at=None, updated_by=None, updated_by_url=None, usage=None, user=None, user_url=None, _configuration=None): # noqa: E501 + """RepositoryTokenRefresh - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._clients = None self._created_at = None @@ -158,104 +161,105 @@ def __init__(self, clients=None, created_at=None, created_by=None, created_by_ur self._usage = None self._user = None self._user_url = None + self.discriminator = None if clients is not None: - self.clients = clients + self.clients = clients if created_at is not None: - self.created_at = created_at + self.created_at = created_at if created_by is not None: - self.created_by = created_by + self.created_by = created_by if created_by_url is not None: - self.created_by_url = created_by_url + self.created_by_url = created_by_url if default is not None: - self.default = default + self.default = default if disable_url is not None: - self.disable_url = disable_url + self.disable_url = disable_url if downloads is not None: - self.downloads = downloads + self.downloads = downloads if enable_url is not None: - self.enable_url = enable_url + self.enable_url = enable_url if eula_accepted is not None: - self.eula_accepted = eula_accepted + self.eula_accepted = eula_accepted if eula_accepted_at is not None: - self.eula_accepted_at = eula_accepted_at + self.eula_accepted_at = eula_accepted_at if eula_accepted_from is not None: - self.eula_accepted_from = eula_accepted_from + self.eula_accepted_from = eula_accepted_from if eula_required is not None: - self.eula_required = eula_required + self.eula_required = eula_required if has_limits is not None: - self.has_limits = has_limits + self.has_limits = has_limits if identifier is not None: - self.identifier = identifier + self.identifier = identifier if is_active is not None: - self.is_active = is_active + self.is_active = is_active if is_limited is not None: - self.is_limited = is_limited + self.is_limited = is_limited if limit_bandwidth is not None: - self.limit_bandwidth = limit_bandwidth + self.limit_bandwidth = limit_bandwidth if limit_bandwidth_unit is not None: - self.limit_bandwidth_unit = limit_bandwidth_unit + self.limit_bandwidth_unit = limit_bandwidth_unit if limit_date_range_from is not None: - self.limit_date_range_from = limit_date_range_from + self.limit_date_range_from = limit_date_range_from if limit_date_range_to is not None: - self.limit_date_range_to = limit_date_range_to + self.limit_date_range_to = limit_date_range_to if limit_num_clients is not None: - self.limit_num_clients = limit_num_clients + self.limit_num_clients = limit_num_clients if limit_num_downloads is not None: - self.limit_num_downloads = limit_num_downloads + self.limit_num_downloads = limit_num_downloads if limit_package_query is not None: - self.limit_package_query = limit_package_query + self.limit_package_query = limit_package_query if limit_path_query is not None: - self.limit_path_query = limit_path_query + self.limit_path_query = limit_path_query if metadata is not None: - self.metadata = metadata + self.metadata = metadata if name is not None: - self.name = name + self.name = name if refresh_url is not None: - self.refresh_url = refresh_url + self.refresh_url = refresh_url if reset_url is not None: - self.reset_url = reset_url + self.reset_url = reset_url if scheduled_reset_at is not None: - self.scheduled_reset_at = scheduled_reset_at + self.scheduled_reset_at = scheduled_reset_at if scheduled_reset_period is not None: - self.scheduled_reset_period = scheduled_reset_period + self.scheduled_reset_period = scheduled_reset_period if self_url is not None: - self.self_url = self_url + self.self_url = self_url if slug_perm is not None: - self.slug_perm = slug_perm + self.slug_perm = slug_perm if token is not None: - self.token = token + self.token = token if updated_at is not None: - self.updated_at = updated_at + self.updated_at = updated_at if updated_by is not None: - self.updated_by = updated_by + self.updated_by = updated_by if updated_by_url is not None: - self.updated_by_url = updated_by_url + self.updated_by_url = updated_by_url if usage is not None: - self.usage = usage + self.usage = usage if user is not None: - self.user = user + self.user = user if user_url is not None: - self.user_url = user_url + self.user_url = user_url @property def clients(self): - """ - Gets the clients of this RepositoryTokenRefresh. - + """Gets the clients of this RepositoryTokenRefresh. # noqa: E501 + + # noqa: E501 - :return: The clients of this RepositoryTokenRefresh. + :return: The clients of this RepositoryTokenRefresh. # noqa: E501 :rtype: int """ return self._clients @clients.setter def clients(self, clients): - """ - Sets the clients of this RepositoryTokenRefresh. - + """Sets the clients of this RepositoryTokenRefresh. + + # noqa: E501 - :param clients: The clients of this RepositoryTokenRefresh. + :param clients: The clients of this RepositoryTokenRefresh. # noqa: E501 :type: int """ @@ -263,22 +267,22 @@ def clients(self, clients): @property def created_at(self): - """ - Gets the created_at of this RepositoryTokenRefresh. - The datetime the token was updated at. + """Gets the created_at of this RepositoryTokenRefresh. # noqa: E501 + + The datetime the token was updated at. # noqa: E501 - :return: The created_at of this RepositoryTokenRefresh. + :return: The created_at of this RepositoryTokenRefresh. # noqa: E501 :rtype: str """ return self._created_at @created_at.setter def created_at(self, created_at): - """ - Sets the created_at of this RepositoryTokenRefresh. - The datetime the token was updated at. + """Sets the created_at of this RepositoryTokenRefresh. - :param created_at: The created_at of this RepositoryTokenRefresh. + The datetime the token was updated at. # noqa: E501 + + :param created_at: The created_at of this RepositoryTokenRefresh. # noqa: E501 :type: str """ @@ -286,22 +290,22 @@ def created_at(self, created_at): @property def created_by(self): - """ - Gets the created_by of this RepositoryTokenRefresh. - + """Gets the created_by of this RepositoryTokenRefresh. # noqa: E501 + + # noqa: E501 - :return: The created_by of this RepositoryTokenRefresh. + :return: The created_by of this RepositoryTokenRefresh. # noqa: E501 :rtype: str """ return self._created_by @created_by.setter def created_by(self, created_by): - """ - Sets the created_by of this RepositoryTokenRefresh. - + """Sets the created_by of this RepositoryTokenRefresh. + + # noqa: E501 - :param created_by: The created_by of this RepositoryTokenRefresh. + :param created_by: The created_by of this RepositoryTokenRefresh. # noqa: E501 :type: str """ @@ -309,22 +313,22 @@ def created_by(self, created_by): @property def created_by_url(self): - """ - Gets the created_by_url of this RepositoryTokenRefresh. - + """Gets the created_by_url of this RepositoryTokenRefresh. # noqa: E501 - :return: The created_by_url of this RepositoryTokenRefresh. + # noqa: E501 + + :return: The created_by_url of this RepositoryTokenRefresh. # noqa: E501 :rtype: str """ return self._created_by_url @created_by_url.setter def created_by_url(self, created_by_url): - """ - Sets the created_by_url of this RepositoryTokenRefresh. - + """Sets the created_by_url of this RepositoryTokenRefresh. - :param created_by_url: The created_by_url of this RepositoryTokenRefresh. + # noqa: E501 + + :param created_by_url: The created_by_url of this RepositoryTokenRefresh. # noqa: E501 :type: str """ @@ -332,22 +336,22 @@ def created_by_url(self, created_by_url): @property def default(self): - """ - Gets the default of this RepositoryTokenRefresh. - If selected this is the default token for this repository. + """Gets the default of this RepositoryTokenRefresh. # noqa: E501 + + If selected this is the default token for this repository. # noqa: E501 - :return: The default of this RepositoryTokenRefresh. + :return: The default of this RepositoryTokenRefresh. # noqa: E501 :rtype: bool """ return self._default @default.setter def default(self, default): - """ - Sets the default of this RepositoryTokenRefresh. - If selected this is the default token for this repository. + """Sets the default of this RepositoryTokenRefresh. + + If selected this is the default token for this repository. # noqa: E501 - :param default: The default of this RepositoryTokenRefresh. + :param default: The default of this RepositoryTokenRefresh. # noqa: E501 :type: bool """ @@ -355,22 +359,22 @@ def default(self, default): @property def disable_url(self): - """ - Gets the disable_url of this RepositoryTokenRefresh. - + """Gets the disable_url of this RepositoryTokenRefresh. # noqa: E501 - :return: The disable_url of this RepositoryTokenRefresh. + # noqa: E501 + + :return: The disable_url of this RepositoryTokenRefresh. # noqa: E501 :rtype: str """ return self._disable_url @disable_url.setter def disable_url(self, disable_url): - """ - Sets the disable_url of this RepositoryTokenRefresh. - + """Sets the disable_url of this RepositoryTokenRefresh. + + # noqa: E501 - :param disable_url: The disable_url of this RepositoryTokenRefresh. + :param disable_url: The disable_url of this RepositoryTokenRefresh. # noqa: E501 :type: str """ @@ -378,22 +382,22 @@ def disable_url(self, disable_url): @property def downloads(self): - """ - Gets the downloads of this RepositoryTokenRefresh. - + """Gets the downloads of this RepositoryTokenRefresh. # noqa: E501 + + # noqa: E501 - :return: The downloads of this RepositoryTokenRefresh. + :return: The downloads of this RepositoryTokenRefresh. # noqa: E501 :rtype: int """ return self._downloads @downloads.setter def downloads(self, downloads): - """ - Sets the downloads of this RepositoryTokenRefresh. - + """Sets the downloads of this RepositoryTokenRefresh. + + # noqa: E501 - :param downloads: The downloads of this RepositoryTokenRefresh. + :param downloads: The downloads of this RepositoryTokenRefresh. # noqa: E501 :type: int """ @@ -401,22 +405,22 @@ def downloads(self, downloads): @property def enable_url(self): - """ - Gets the enable_url of this RepositoryTokenRefresh. - + """Gets the enable_url of this RepositoryTokenRefresh. # noqa: E501 - :return: The enable_url of this RepositoryTokenRefresh. + # noqa: E501 + + :return: The enable_url of this RepositoryTokenRefresh. # noqa: E501 :rtype: str """ return self._enable_url @enable_url.setter def enable_url(self, enable_url): - """ - Sets the enable_url of this RepositoryTokenRefresh. - + """Sets the enable_url of this RepositoryTokenRefresh. + + # noqa: E501 - :param enable_url: The enable_url of this RepositoryTokenRefresh. + :param enable_url: The enable_url of this RepositoryTokenRefresh. # noqa: E501 :type: str """ @@ -424,22 +428,22 @@ def enable_url(self, enable_url): @property def eula_accepted(self): - """ - Gets the eula_accepted of this RepositoryTokenRefresh. - + """Gets the eula_accepted of this RepositoryTokenRefresh. # noqa: E501 + + # noqa: E501 - :return: The eula_accepted of this RepositoryTokenRefresh. + :return: The eula_accepted of this RepositoryTokenRefresh. # noqa: E501 :rtype: object """ return self._eula_accepted @eula_accepted.setter def eula_accepted(self, eula_accepted): - """ - Sets the eula_accepted of this RepositoryTokenRefresh. - + """Sets the eula_accepted of this RepositoryTokenRefresh. - :param eula_accepted: The eula_accepted of this RepositoryTokenRefresh. + # noqa: E501 + + :param eula_accepted: The eula_accepted of this RepositoryTokenRefresh. # noqa: E501 :type: object """ @@ -447,22 +451,22 @@ def eula_accepted(self, eula_accepted): @property def eula_accepted_at(self): - """ - Gets the eula_accepted_at of this RepositoryTokenRefresh. - The datetime the EULA was accepted at. + """Gets the eula_accepted_at of this RepositoryTokenRefresh. # noqa: E501 - :return: The eula_accepted_at of this RepositoryTokenRefresh. + The datetime the EULA was accepted at. # noqa: E501 + + :return: The eula_accepted_at of this RepositoryTokenRefresh. # noqa: E501 :rtype: str """ return self._eula_accepted_at @eula_accepted_at.setter def eula_accepted_at(self, eula_accepted_at): - """ - Sets the eula_accepted_at of this RepositoryTokenRefresh. - The datetime the EULA was accepted at. + """Sets the eula_accepted_at of this RepositoryTokenRefresh. + + The datetime the EULA was accepted at. # noqa: E501 - :param eula_accepted_at: The eula_accepted_at of this RepositoryTokenRefresh. + :param eula_accepted_at: The eula_accepted_at of this RepositoryTokenRefresh. # noqa: E501 :type: str """ @@ -470,22 +474,22 @@ def eula_accepted_at(self, eula_accepted_at): @property def eula_accepted_from(self): - """ - Gets the eula_accepted_from of this RepositoryTokenRefresh. - + """Gets the eula_accepted_from of this RepositoryTokenRefresh. # noqa: E501 + + # noqa: E501 - :return: The eula_accepted_from of this RepositoryTokenRefresh. + :return: The eula_accepted_from of this RepositoryTokenRefresh. # noqa: E501 :rtype: str """ return self._eula_accepted_from @eula_accepted_from.setter def eula_accepted_from(self, eula_accepted_from): - """ - Sets the eula_accepted_from of this RepositoryTokenRefresh. - + """Sets the eula_accepted_from of this RepositoryTokenRefresh. - :param eula_accepted_from: The eula_accepted_from of this RepositoryTokenRefresh. + # noqa: E501 + + :param eula_accepted_from: The eula_accepted_from of this RepositoryTokenRefresh. # noqa: E501 :type: str """ @@ -493,22 +497,22 @@ def eula_accepted_from(self, eula_accepted_from): @property def eula_required(self): - """ - Gets the eula_required of this RepositoryTokenRefresh. - If checked, a EULA acceptance is required for this token. + """Gets the eula_required of this RepositoryTokenRefresh. # noqa: E501 + + If checked, a EULA acceptance is required for this token. # noqa: E501 - :return: The eula_required of this RepositoryTokenRefresh. + :return: The eula_required of this RepositoryTokenRefresh. # noqa: E501 :rtype: bool """ return self._eula_required @eula_required.setter def eula_required(self, eula_required): - """ - Sets the eula_required of this RepositoryTokenRefresh. - If checked, a EULA acceptance is required for this token. + """Sets the eula_required of this RepositoryTokenRefresh. + + If checked, a EULA acceptance is required for this token. # noqa: E501 - :param eula_required: The eula_required of this RepositoryTokenRefresh. + :param eula_required: The eula_required of this RepositoryTokenRefresh. # noqa: E501 :type: bool """ @@ -516,22 +520,22 @@ def eula_required(self, eula_required): @property def has_limits(self): - """ - Gets the has_limits of this RepositoryTokenRefresh. - + """Gets the has_limits of this RepositoryTokenRefresh. # noqa: E501 + + # noqa: E501 - :return: The has_limits of this RepositoryTokenRefresh. + :return: The has_limits of this RepositoryTokenRefresh. # noqa: E501 :rtype: bool """ return self._has_limits @has_limits.setter def has_limits(self, has_limits): - """ - Sets the has_limits of this RepositoryTokenRefresh. - + """Sets the has_limits of this RepositoryTokenRefresh. - :param has_limits: The has_limits of this RepositoryTokenRefresh. + # noqa: E501 + + :param has_limits: The has_limits of this RepositoryTokenRefresh. # noqa: E501 :type: bool """ @@ -539,22 +543,22 @@ def has_limits(self, has_limits): @property def identifier(self): - """ - Gets the identifier of this RepositoryTokenRefresh. - + """Gets the identifier of this RepositoryTokenRefresh. # noqa: E501 + + # noqa: E501 - :return: The identifier of this RepositoryTokenRefresh. + :return: The identifier of this RepositoryTokenRefresh. # noqa: E501 :rtype: int """ return self._identifier @identifier.setter def identifier(self, identifier): - """ - Sets the identifier of this RepositoryTokenRefresh. - + """Sets the identifier of this RepositoryTokenRefresh. + + # noqa: E501 - :param identifier: The identifier of this RepositoryTokenRefresh. + :param identifier: The identifier of this RepositoryTokenRefresh. # noqa: E501 :type: int """ @@ -562,22 +566,22 @@ def identifier(self, identifier): @property def is_active(self): - """ - Gets the is_active of this RepositoryTokenRefresh. - If enabled, the token will allow downloads based on configured restrictions (if any). + """Gets the is_active of this RepositoryTokenRefresh. # noqa: E501 - :return: The is_active of this RepositoryTokenRefresh. + If enabled, the token will allow downloads based on configured restrictions (if any). # noqa: E501 + + :return: The is_active of this RepositoryTokenRefresh. # noqa: E501 :rtype: bool """ return self._is_active @is_active.setter def is_active(self, is_active): - """ - Sets the is_active of this RepositoryTokenRefresh. - If enabled, the token will allow downloads based on configured restrictions (if any). + """Sets the is_active of this RepositoryTokenRefresh. - :param is_active: The is_active of this RepositoryTokenRefresh. + If enabled, the token will allow downloads based on configured restrictions (if any). # noqa: E501 + + :param is_active: The is_active of this RepositoryTokenRefresh. # noqa: E501 :type: bool """ @@ -585,22 +589,22 @@ def is_active(self, is_active): @property def is_limited(self): - """ - Gets the is_limited of this RepositoryTokenRefresh. - + """Gets the is_limited of this RepositoryTokenRefresh. # noqa: E501 + + # noqa: E501 - :return: The is_limited of this RepositoryTokenRefresh. + :return: The is_limited of this RepositoryTokenRefresh. # noqa: E501 :rtype: bool """ return self._is_limited @is_limited.setter def is_limited(self, is_limited): - """ - Sets the is_limited of this RepositoryTokenRefresh. - + """Sets the is_limited of this RepositoryTokenRefresh. + + # noqa: E501 - :param is_limited: The is_limited of this RepositoryTokenRefresh. + :param is_limited: The is_limited of this RepositoryTokenRefresh. # noqa: E501 :type: bool """ @@ -608,22 +612,22 @@ def is_limited(self, is_limited): @property def limit_bandwidth(self): - """ - Gets the limit_bandwidth of this RepositoryTokenRefresh. - The maximum download bandwidth allowed for the token. Values are expressed as the selected unit of bandwidth. Please note that since downloads are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point. + """Gets the limit_bandwidth of this RepositoryTokenRefresh. # noqa: E501 - :return: The limit_bandwidth of this RepositoryTokenRefresh. + The maximum download bandwidth allowed for the token. Values are expressed as the selected unit of bandwidth. Please note that since downloads are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point. # noqa: E501 + + :return: The limit_bandwidth of this RepositoryTokenRefresh. # noqa: E501 :rtype: int """ return self._limit_bandwidth @limit_bandwidth.setter def limit_bandwidth(self, limit_bandwidth): - """ - Sets the limit_bandwidth of this RepositoryTokenRefresh. - The maximum download bandwidth allowed for the token. Values are expressed as the selected unit of bandwidth. Please note that since downloads are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point. + """Sets the limit_bandwidth of this RepositoryTokenRefresh. + + The maximum download bandwidth allowed for the token. Values are expressed as the selected unit of bandwidth. Please note that since downloads are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point. # noqa: E501 - :param limit_bandwidth: The limit_bandwidth of this RepositoryTokenRefresh. + :param limit_bandwidth: The limit_bandwidth of this RepositoryTokenRefresh. # noqa: E501 :type: int """ @@ -631,22 +635,22 @@ def limit_bandwidth(self, limit_bandwidth): @property def limit_bandwidth_unit(self): - """ - Gets the limit_bandwidth_unit of this RepositoryTokenRefresh. - + """Gets the limit_bandwidth_unit of this RepositoryTokenRefresh. # noqa: E501 + + # noqa: E501 - :return: The limit_bandwidth_unit of this RepositoryTokenRefresh. + :return: The limit_bandwidth_unit of this RepositoryTokenRefresh. # noqa: E501 :rtype: str """ return self._limit_bandwidth_unit @limit_bandwidth_unit.setter def limit_bandwidth_unit(self, limit_bandwidth_unit): - """ - Sets the limit_bandwidth_unit of this RepositoryTokenRefresh. - + """Sets the limit_bandwidth_unit of this RepositoryTokenRefresh. + + # noqa: E501 - :param limit_bandwidth_unit: The limit_bandwidth_unit of this RepositoryTokenRefresh. + :param limit_bandwidth_unit: The limit_bandwidth_unit of this RepositoryTokenRefresh. # noqa: E501 :type: str """ @@ -654,22 +658,22 @@ def limit_bandwidth_unit(self, limit_bandwidth_unit): @property def limit_date_range_from(self): - """ - Gets the limit_date_range_from of this RepositoryTokenRefresh. - The starting date/time the token is allowed to be used from. + """Gets the limit_date_range_from of this RepositoryTokenRefresh. # noqa: E501 - :return: The limit_date_range_from of this RepositoryTokenRefresh. + The starting date/time the token is allowed to be used from. # noqa: E501 + + :return: The limit_date_range_from of this RepositoryTokenRefresh. # noqa: E501 :rtype: str """ return self._limit_date_range_from @limit_date_range_from.setter def limit_date_range_from(self, limit_date_range_from): - """ - Sets the limit_date_range_from of this RepositoryTokenRefresh. - The starting date/time the token is allowed to be used from. + """Sets the limit_date_range_from of this RepositoryTokenRefresh. + + The starting date/time the token is allowed to be used from. # noqa: E501 - :param limit_date_range_from: The limit_date_range_from of this RepositoryTokenRefresh. + :param limit_date_range_from: The limit_date_range_from of this RepositoryTokenRefresh. # noqa: E501 :type: str """ @@ -677,22 +681,22 @@ def limit_date_range_from(self, limit_date_range_from): @property def limit_date_range_to(self): - """ - Gets the limit_date_range_to of this RepositoryTokenRefresh. - The ending date/time the token is allowed to be used until. + """Gets the limit_date_range_to of this RepositoryTokenRefresh. # noqa: E501 + + The ending date/time the token is allowed to be used until. # noqa: E501 - :return: The limit_date_range_to of this RepositoryTokenRefresh. + :return: The limit_date_range_to of this RepositoryTokenRefresh. # noqa: E501 :rtype: str """ return self._limit_date_range_to @limit_date_range_to.setter def limit_date_range_to(self, limit_date_range_to): - """ - Sets the limit_date_range_to of this RepositoryTokenRefresh. - The ending date/time the token is allowed to be used until. + """Sets the limit_date_range_to of this RepositoryTokenRefresh. - :param limit_date_range_to: The limit_date_range_to of this RepositoryTokenRefresh. + The ending date/time the token is allowed to be used until. # noqa: E501 + + :param limit_date_range_to: The limit_date_range_to of this RepositoryTokenRefresh. # noqa: E501 :type: str """ @@ -700,22 +704,22 @@ def limit_date_range_to(self, limit_date_range_to): @property def limit_num_clients(self): - """ - Gets the limit_num_clients of this RepositoryTokenRefresh. - The maximum number of unique clients allowed for the token. Please note that since clients are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point. + """Gets the limit_num_clients of this RepositoryTokenRefresh. # noqa: E501 - :return: The limit_num_clients of this RepositoryTokenRefresh. + The maximum number of unique clients allowed for the token. Please note that since clients are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point. # noqa: E501 + + :return: The limit_num_clients of this RepositoryTokenRefresh. # noqa: E501 :rtype: int """ return self._limit_num_clients @limit_num_clients.setter def limit_num_clients(self, limit_num_clients): - """ - Sets the limit_num_clients of this RepositoryTokenRefresh. - The maximum number of unique clients allowed for the token. Please note that since clients are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point. + """Sets the limit_num_clients of this RepositoryTokenRefresh. + + The maximum number of unique clients allowed for the token. Please note that since clients are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point. # noqa: E501 - :param limit_num_clients: The limit_num_clients of this RepositoryTokenRefresh. + :param limit_num_clients: The limit_num_clients of this RepositoryTokenRefresh. # noqa: E501 :type: int """ @@ -723,22 +727,22 @@ def limit_num_clients(self, limit_num_clients): @property def limit_num_downloads(self): - """ - Gets the limit_num_downloads of this RepositoryTokenRefresh. - The maximum number of downloads allowed for the token. Please note that since downloads are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point. + """Gets the limit_num_downloads of this RepositoryTokenRefresh. # noqa: E501 + + The maximum number of downloads allowed for the token. Please note that since downloads are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point. # noqa: E501 - :return: The limit_num_downloads of this RepositoryTokenRefresh. + :return: The limit_num_downloads of this RepositoryTokenRefresh. # noqa: E501 :rtype: int """ return self._limit_num_downloads @limit_num_downloads.setter def limit_num_downloads(self, limit_num_downloads): - """ - Sets the limit_num_downloads of this RepositoryTokenRefresh. - The maximum number of downloads allowed for the token. Please note that since downloads are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point. + """Sets the limit_num_downloads of this RepositoryTokenRefresh. - :param limit_num_downloads: The limit_num_downloads of this RepositoryTokenRefresh. + The maximum number of downloads allowed for the token. Please note that since downloads are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point. # noqa: E501 + + :param limit_num_downloads: The limit_num_downloads of this RepositoryTokenRefresh. # noqa: E501 :type: int """ @@ -746,22 +750,22 @@ def limit_num_downloads(self, limit_num_downloads): @property def limit_package_query(self): - """ - Gets the limit_package_query of this RepositoryTokenRefresh. - The package-based search query to apply to restrict downloads to. This uses the same syntax as the standard search used for repositories, and also supports boolean logic operators such as OR/AND/NOT and parentheses for grouping. This will still allow access to non-package files, such as metadata. + """Gets the limit_package_query of this RepositoryTokenRefresh. # noqa: E501 + + The package-based search query to apply to restrict downloads to. This uses the same syntax as the standard search used for repositories, and also supports boolean logic operators such as OR/AND/NOT and parentheses for grouping. This will still allow access to non-package files, such as metadata. # noqa: E501 - :return: The limit_package_query of this RepositoryTokenRefresh. + :return: The limit_package_query of this RepositoryTokenRefresh. # noqa: E501 :rtype: str """ return self._limit_package_query @limit_package_query.setter def limit_package_query(self, limit_package_query): - """ - Sets the limit_package_query of this RepositoryTokenRefresh. - The package-based search query to apply to restrict downloads to. This uses the same syntax as the standard search used for repositories, and also supports boolean logic operators such as OR/AND/NOT and parentheses for grouping. This will still allow access to non-package files, such as metadata. + """Sets the limit_package_query of this RepositoryTokenRefresh. + + The package-based search query to apply to restrict downloads to. This uses the same syntax as the standard search used for repositories, and also supports boolean logic operators such as OR/AND/NOT and parentheses for grouping. This will still allow access to non-package files, such as metadata. # noqa: E501 - :param limit_package_query: The limit_package_query of this RepositoryTokenRefresh. + :param limit_package_query: The limit_package_query of this RepositoryTokenRefresh. # noqa: E501 :type: str """ @@ -769,22 +773,22 @@ def limit_package_query(self, limit_package_query): @property def limit_path_query(self): - """ - Gets the limit_path_query of this RepositoryTokenRefresh. - The path-based search query to apply to restrict downloads to. This supports boolean logic operators such as OR/AND/NOT and parentheses for grouping. The path evaluated does not include the domain name, the namespace, the entitlement code used, the package format, etc. and it always starts with a forward slash. + """Gets the limit_path_query of this RepositoryTokenRefresh. # noqa: E501 + + The path-based search query to apply to restrict downloads to. This supports boolean logic operators such as OR/AND/NOT and parentheses for grouping. The path evaluated does not include the domain name, the namespace, the entitlement code used, the package format, etc. and it always starts with a forward slash. # noqa: E501 - :return: The limit_path_query of this RepositoryTokenRefresh. + :return: The limit_path_query of this RepositoryTokenRefresh. # noqa: E501 :rtype: str """ return self._limit_path_query @limit_path_query.setter def limit_path_query(self, limit_path_query): - """ - Sets the limit_path_query of this RepositoryTokenRefresh. - The path-based search query to apply to restrict downloads to. This supports boolean logic operators such as OR/AND/NOT and parentheses for grouping. The path evaluated does not include the domain name, the namespace, the entitlement code used, the package format, etc. and it always starts with a forward slash. + """Sets the limit_path_query of this RepositoryTokenRefresh. - :param limit_path_query: The limit_path_query of this RepositoryTokenRefresh. + The path-based search query to apply to restrict downloads to. This supports boolean logic operators such as OR/AND/NOT and parentheses for grouping. The path evaluated does not include the domain name, the namespace, the entitlement code used, the package format, etc. and it always starts with a forward slash. # noqa: E501 + + :param limit_path_query: The limit_path_query of this RepositoryTokenRefresh. # noqa: E501 :type: str """ @@ -792,22 +796,22 @@ def limit_path_query(self, limit_path_query): @property def metadata(self): - """ - Gets the metadata of this RepositoryTokenRefresh. - + """Gets the metadata of this RepositoryTokenRefresh. # noqa: E501 + + # noqa: E501 - :return: The metadata of this RepositoryTokenRefresh. + :return: The metadata of this RepositoryTokenRefresh. # noqa: E501 :rtype: object """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this RepositoryTokenRefresh. - + """Sets the metadata of this RepositoryTokenRefresh. + + # noqa: E501 - :param metadata: The metadata of this RepositoryTokenRefresh. + :param metadata: The metadata of this RepositoryTokenRefresh. # noqa: E501 :type: object """ @@ -815,22 +819,22 @@ def metadata(self, metadata): @property def name(self): - """ - Gets the name of this RepositoryTokenRefresh. - + """Gets the name of this RepositoryTokenRefresh. # noqa: E501 - :return: The name of this RepositoryTokenRefresh. + # noqa: E501 + + :return: The name of this RepositoryTokenRefresh. # noqa: E501 :rtype: str """ return self._name @name.setter def name(self, name): - """ - Sets the name of this RepositoryTokenRefresh. - + """Sets the name of this RepositoryTokenRefresh. - :param name: The name of this RepositoryTokenRefresh. + # noqa: E501 + + :param name: The name of this RepositoryTokenRefresh. # noqa: E501 :type: str """ @@ -838,22 +842,22 @@ def name(self, name): @property def refresh_url(self): - """ - Gets the refresh_url of this RepositoryTokenRefresh. - + """Gets the refresh_url of this RepositoryTokenRefresh. # noqa: E501 + + # noqa: E501 - :return: The refresh_url of this RepositoryTokenRefresh. + :return: The refresh_url of this RepositoryTokenRefresh. # noqa: E501 :rtype: str """ return self._refresh_url @refresh_url.setter def refresh_url(self, refresh_url): - """ - Sets the refresh_url of this RepositoryTokenRefresh. - + """Sets the refresh_url of this RepositoryTokenRefresh. + + # noqa: E501 - :param refresh_url: The refresh_url of this RepositoryTokenRefresh. + :param refresh_url: The refresh_url of this RepositoryTokenRefresh. # noqa: E501 :type: str """ @@ -861,22 +865,22 @@ def refresh_url(self, refresh_url): @property def reset_url(self): - """ - Gets the reset_url of this RepositoryTokenRefresh. - + """Gets the reset_url of this RepositoryTokenRefresh. # noqa: E501 - :return: The reset_url of this RepositoryTokenRefresh. + # noqa: E501 + + :return: The reset_url of this RepositoryTokenRefresh. # noqa: E501 :rtype: str """ return self._reset_url @reset_url.setter def reset_url(self, reset_url): - """ - Sets the reset_url of this RepositoryTokenRefresh. - + """Sets the reset_url of this RepositoryTokenRefresh. + + # noqa: E501 - :param reset_url: The reset_url of this RepositoryTokenRefresh. + :param reset_url: The reset_url of this RepositoryTokenRefresh. # noqa: E501 :type: str """ @@ -884,22 +888,22 @@ def reset_url(self, reset_url): @property def scheduled_reset_at(self): - """ - Gets the scheduled_reset_at of this RepositoryTokenRefresh. - The time at which the scheduled reset period has elapsed and the token limits were automatically reset to zero. + """Gets the scheduled_reset_at of this RepositoryTokenRefresh. # noqa: E501 + + The time at which the scheduled reset period has elapsed and the token limits were automatically reset to zero. # noqa: E501 - :return: The scheduled_reset_at of this RepositoryTokenRefresh. + :return: The scheduled_reset_at of this RepositoryTokenRefresh. # noqa: E501 :rtype: str """ return self._scheduled_reset_at @scheduled_reset_at.setter def scheduled_reset_at(self, scheduled_reset_at): - """ - Sets the scheduled_reset_at of this RepositoryTokenRefresh. - The time at which the scheduled reset period has elapsed and the token limits were automatically reset to zero. + """Sets the scheduled_reset_at of this RepositoryTokenRefresh. + + The time at which the scheduled reset period has elapsed and the token limits were automatically reset to zero. # noqa: E501 - :param scheduled_reset_at: The scheduled_reset_at of this RepositoryTokenRefresh. + :param scheduled_reset_at: The scheduled_reset_at of this RepositoryTokenRefresh. # noqa: E501 :type: str """ @@ -907,22 +911,22 @@ def scheduled_reset_at(self, scheduled_reset_at): @property def scheduled_reset_period(self): - """ - Gets the scheduled_reset_period of this RepositoryTokenRefresh. - + """Gets the scheduled_reset_period of this RepositoryTokenRefresh. # noqa: E501 - :return: The scheduled_reset_period of this RepositoryTokenRefresh. + # noqa: E501 + + :return: The scheduled_reset_period of this RepositoryTokenRefresh. # noqa: E501 :rtype: str """ return self._scheduled_reset_period @scheduled_reset_period.setter def scheduled_reset_period(self, scheduled_reset_period): - """ - Sets the scheduled_reset_period of this RepositoryTokenRefresh. - + """Sets the scheduled_reset_period of this RepositoryTokenRefresh. + + # noqa: E501 - :param scheduled_reset_period: The scheduled_reset_period of this RepositoryTokenRefresh. + :param scheduled_reset_period: The scheduled_reset_period of this RepositoryTokenRefresh. # noqa: E501 :type: str """ @@ -930,22 +934,22 @@ def scheduled_reset_period(self, scheduled_reset_period): @property def self_url(self): - """ - Gets the self_url of this RepositoryTokenRefresh. - + """Gets the self_url of this RepositoryTokenRefresh. # noqa: E501 + + # noqa: E501 - :return: The self_url of this RepositoryTokenRefresh. + :return: The self_url of this RepositoryTokenRefresh. # noqa: E501 :rtype: str """ return self._self_url @self_url.setter def self_url(self, self_url): - """ - Sets the self_url of this RepositoryTokenRefresh. - + """Sets the self_url of this RepositoryTokenRefresh. - :param self_url: The self_url of this RepositoryTokenRefresh. + # noqa: E501 + + :param self_url: The self_url of this RepositoryTokenRefresh. # noqa: E501 :type: str """ @@ -953,22 +957,22 @@ def self_url(self, self_url): @property def slug_perm(self): - """ - Gets the slug_perm of this RepositoryTokenRefresh. - + """Gets the slug_perm of this RepositoryTokenRefresh. # noqa: E501 - :return: The slug_perm of this RepositoryTokenRefresh. + # noqa: E501 + + :return: The slug_perm of this RepositoryTokenRefresh. # noqa: E501 :rtype: str """ return self._slug_perm @slug_perm.setter def slug_perm(self, slug_perm): - """ - Sets the slug_perm of this RepositoryTokenRefresh. - + """Sets the slug_perm of this RepositoryTokenRefresh. + + # noqa: E501 - :param slug_perm: The slug_perm of this RepositoryTokenRefresh. + :param slug_perm: The slug_perm of this RepositoryTokenRefresh. # noqa: E501 :type: str """ @@ -976,22 +980,22 @@ def slug_perm(self, slug_perm): @property def token(self): - """ - Gets the token of this RepositoryTokenRefresh. - + """Gets the token of this RepositoryTokenRefresh. # noqa: E501 + + # noqa: E501 - :return: The token of this RepositoryTokenRefresh. + :return: The token of this RepositoryTokenRefresh. # noqa: E501 :rtype: str """ return self._token @token.setter def token(self, token): - """ - Sets the token of this RepositoryTokenRefresh. - + """Sets the token of this RepositoryTokenRefresh. - :param token: The token of this RepositoryTokenRefresh. + # noqa: E501 + + :param token: The token of this RepositoryTokenRefresh. # noqa: E501 :type: str """ @@ -999,22 +1003,22 @@ def token(self, token): @property def updated_at(self): - """ - Gets the updated_at of this RepositoryTokenRefresh. - The datetime the token was updated at. + """Gets the updated_at of this RepositoryTokenRefresh. # noqa: E501 + + The datetime the token was updated at. # noqa: E501 - :return: The updated_at of this RepositoryTokenRefresh. + :return: The updated_at of this RepositoryTokenRefresh. # noqa: E501 :rtype: str """ return self._updated_at @updated_at.setter def updated_at(self, updated_at): - """ - Sets the updated_at of this RepositoryTokenRefresh. - The datetime the token was updated at. + """Sets the updated_at of this RepositoryTokenRefresh. + + The datetime the token was updated at. # noqa: E501 - :param updated_at: The updated_at of this RepositoryTokenRefresh. + :param updated_at: The updated_at of this RepositoryTokenRefresh. # noqa: E501 :type: str """ @@ -1022,22 +1026,22 @@ def updated_at(self, updated_at): @property def updated_by(self): - """ - Gets the updated_by of this RepositoryTokenRefresh. - + """Gets the updated_by of this RepositoryTokenRefresh. # noqa: E501 + + # noqa: E501 - :return: The updated_by of this RepositoryTokenRefresh. + :return: The updated_by of this RepositoryTokenRefresh. # noqa: E501 :rtype: str """ return self._updated_by @updated_by.setter def updated_by(self, updated_by): - """ - Sets the updated_by of this RepositoryTokenRefresh. - + """Sets the updated_by of this RepositoryTokenRefresh. - :param updated_by: The updated_by of this RepositoryTokenRefresh. + # noqa: E501 + + :param updated_by: The updated_by of this RepositoryTokenRefresh. # noqa: E501 :type: str """ @@ -1045,22 +1049,22 @@ def updated_by(self, updated_by): @property def updated_by_url(self): - """ - Gets the updated_by_url of this RepositoryTokenRefresh. - + """Gets the updated_by_url of this RepositoryTokenRefresh. # noqa: E501 + + # noqa: E501 - :return: The updated_by_url of this RepositoryTokenRefresh. + :return: The updated_by_url of this RepositoryTokenRefresh. # noqa: E501 :rtype: str """ return self._updated_by_url @updated_by_url.setter def updated_by_url(self, updated_by_url): - """ - Sets the updated_by_url of this RepositoryTokenRefresh. - + """Sets the updated_by_url of this RepositoryTokenRefresh. + + # noqa: E501 - :param updated_by_url: The updated_by_url of this RepositoryTokenRefresh. + :param updated_by_url: The updated_by_url of this RepositoryTokenRefresh. # noqa: E501 :type: str """ @@ -1068,22 +1072,22 @@ def updated_by_url(self, updated_by_url): @property def usage(self): - """ - Gets the usage of this RepositoryTokenRefresh. - + """Gets the usage of this RepositoryTokenRefresh. # noqa: E501 - :return: The usage of this RepositoryTokenRefresh. + # noqa: E501 + + :return: The usage of this RepositoryTokenRefresh. # noqa: E501 :rtype: str """ return self._usage @usage.setter def usage(self, usage): - """ - Sets the usage of this RepositoryTokenRefresh. - + """Sets the usage of this RepositoryTokenRefresh. - :param usage: The usage of this RepositoryTokenRefresh. + # noqa: E501 + + :param usage: The usage of this RepositoryTokenRefresh. # noqa: E501 :type: str """ @@ -1091,22 +1095,22 @@ def usage(self, usage): @property def user(self): - """ - Gets the user of this RepositoryTokenRefresh. - + """Gets the user of this RepositoryTokenRefresh. # noqa: E501 + + # noqa: E501 - :return: The user of this RepositoryTokenRefresh. + :return: The user of this RepositoryTokenRefresh. # noqa: E501 :rtype: str """ return self._user @user.setter def user(self, user): - """ - Sets the user of this RepositoryTokenRefresh. - + """Sets the user of this RepositoryTokenRefresh. + + # noqa: E501 - :param user: The user of this RepositoryTokenRefresh. + :param user: The user of this RepositoryTokenRefresh. # noqa: E501 :type: str """ @@ -1114,34 +1118,32 @@ def user(self, user): @property def user_url(self): - """ - Gets the user_url of this RepositoryTokenRefresh. - + """Gets the user_url of this RepositoryTokenRefresh. # noqa: E501 - :return: The user_url of this RepositoryTokenRefresh. + # noqa: E501 + + :return: The user_url of this RepositoryTokenRefresh. # noqa: E501 :rtype: str """ return self._user_url @user_url.setter def user_url(self, user_url): - """ - Sets the user_url of this RepositoryTokenRefresh. - + """Sets the user_url of this RepositoryTokenRefresh. + + # noqa: E501 - :param user_url: The user_url of this RepositoryTokenRefresh. + :param user_url: The user_url of this RepositoryTokenRefresh. # noqa: E501 :type: str """ self._user_url = user_url def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -1158,32 +1160,30 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(RepositoryTokenRefresh, dict): + for key, value in self.items(): + result[key] = value return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, RepositoryTokenRefresh): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other + """Returns true if both objects are not equal""" + if not isinstance(other, RepositoryTokenRefresh): + return True + + return self.to_dict() != other.to_dict() diff --git a/bindings/python/src/cloudsmith_api/models/repository_token_sync.py b/bindings/python/src/cloudsmith_api/models/repository_token_sync.py index ef2df674..8511720a 100644 --- a/bindings/python/src/cloudsmith_api/models/repository_token_sync.py +++ b/bindings/python/src/cloudsmith_api/models/repository_token_sync.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -11,18 +11,20 @@ """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration class RepositoryTokenSync(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -38,46 +40,46 @@ class RepositoryTokenSync(object): 'tokens': 'tokens' } - def __init__(self, tokens=None): - """ - RepositoryTokenSync - a model defined in Swagger - """ + def __init__(self, tokens=None, _configuration=None): # noqa: E501 + """RepositoryTokenSync - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._tokens = None + self.discriminator = None if tokens is not None: - self.tokens = tokens + self.tokens = tokens @property def tokens(self): - """ - Gets the tokens of this RepositoryTokenSync. - The entitlements that have been synchronised. + """Gets the tokens of this RepositoryTokenSync. # noqa: E501 + + The entitlements that have been synchronised. # noqa: E501 - :return: The tokens of this RepositoryTokenSync. + :return: The tokens of this RepositoryTokenSync. # noqa: E501 :rtype: list[RepositoryTokenSyncTokens] """ return self._tokens @tokens.setter def tokens(self, tokens): - """ - Sets the tokens of this RepositoryTokenSync. - The entitlements that have been synchronised. + """Sets the tokens of this RepositoryTokenSync. + + The entitlements that have been synchronised. # noqa: E501 - :param tokens: The tokens of this RepositoryTokenSync. + :param tokens: The tokens of this RepositoryTokenSync. # noqa: E501 :type: list[RepositoryTokenSyncTokens] """ self._tokens = tokens def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -94,32 +96,30 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(RepositoryTokenSync, dict): + for key, value in self.items(): + result[key] = value return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, RepositoryTokenSync): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other + """Returns true if both objects are not equal""" + if not isinstance(other, RepositoryTokenSync): + return True + + return self.to_dict() != other.to_dict() diff --git a/bindings/python/src/cloudsmith_api/models/repository_token_sync_tokens.py b/bindings/python/src/cloudsmith_api/models/repository_token_sync_tokens.py index 888ef0cf..7bfd0b51 100644 --- a/bindings/python/src/cloudsmith_api/models/repository_token_sync_tokens.py +++ b/bindings/python/src/cloudsmith_api/models/repository_token_sync_tokens.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -11,18 +11,20 @@ """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration class RepositoryTokenSyncTokens(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -114,10 +116,11 @@ class RepositoryTokenSyncTokens(object): 'user_url': 'user_url' } - def __init__(self, clients=None, created_at=None, created_by=None, created_by_url=None, default=None, disable_url=None, downloads=None, enable_url=None, eula_accepted=None, eula_accepted_at=None, eula_accepted_from=None, eula_required=None, has_limits=None, identifier=None, is_active=None, is_limited=None, limit_bandwidth=None, limit_bandwidth_unit=None, limit_date_range_from=None, limit_date_range_to=None, limit_num_clients=None, limit_num_downloads=None, limit_package_query=None, limit_path_query=None, metadata=None, name=None, refresh_url=None, reset_url=None, scheduled_reset_at=None, scheduled_reset_period=None, self_url=None, slug_perm=None, token=None, updated_at=None, updated_by=None, updated_by_url=None, usage=None, user=None, user_url=None): - """ - RepositoryTokenSyncTokens - a model defined in Swagger - """ + def __init__(self, clients=None, created_at=None, created_by=None, created_by_url=None, default=None, disable_url=None, downloads=None, enable_url=None, eula_accepted=None, eula_accepted_at=None, eula_accepted_from=None, eula_required=None, has_limits=None, identifier=None, is_active=None, is_limited=None, limit_bandwidth=None, limit_bandwidth_unit=None, limit_date_range_from=None, limit_date_range_to=None, limit_num_clients=None, limit_num_downloads=None, limit_package_query=None, limit_path_query=None, metadata=None, name=None, refresh_url=None, reset_url=None, scheduled_reset_at=None, scheduled_reset_period=None, self_url=None, slug_perm=None, token=None, updated_at=None, updated_by=None, updated_by_url=None, usage=None, user=None, user_url=None, _configuration=None): # noqa: E501 + """RepositoryTokenSyncTokens - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._clients = None self._created_at = None @@ -158,104 +161,105 @@ def __init__(self, clients=None, created_at=None, created_by=None, created_by_ur self._usage = None self._user = None self._user_url = None + self.discriminator = None if clients is not None: - self.clients = clients + self.clients = clients if created_at is not None: - self.created_at = created_at + self.created_at = created_at if created_by is not None: - self.created_by = created_by + self.created_by = created_by if created_by_url is not None: - self.created_by_url = created_by_url + self.created_by_url = created_by_url if default is not None: - self.default = default + self.default = default if disable_url is not None: - self.disable_url = disable_url + self.disable_url = disable_url if downloads is not None: - self.downloads = downloads + self.downloads = downloads if enable_url is not None: - self.enable_url = enable_url + self.enable_url = enable_url if eula_accepted is not None: - self.eula_accepted = eula_accepted + self.eula_accepted = eula_accepted if eula_accepted_at is not None: - self.eula_accepted_at = eula_accepted_at + self.eula_accepted_at = eula_accepted_at if eula_accepted_from is not None: - self.eula_accepted_from = eula_accepted_from + self.eula_accepted_from = eula_accepted_from if eula_required is not None: - self.eula_required = eula_required + self.eula_required = eula_required if has_limits is not None: - self.has_limits = has_limits + self.has_limits = has_limits if identifier is not None: - self.identifier = identifier + self.identifier = identifier if is_active is not None: - self.is_active = is_active + self.is_active = is_active if is_limited is not None: - self.is_limited = is_limited + self.is_limited = is_limited if limit_bandwidth is not None: - self.limit_bandwidth = limit_bandwidth + self.limit_bandwidth = limit_bandwidth if limit_bandwidth_unit is not None: - self.limit_bandwidth_unit = limit_bandwidth_unit + self.limit_bandwidth_unit = limit_bandwidth_unit if limit_date_range_from is not None: - self.limit_date_range_from = limit_date_range_from + self.limit_date_range_from = limit_date_range_from if limit_date_range_to is not None: - self.limit_date_range_to = limit_date_range_to + self.limit_date_range_to = limit_date_range_to if limit_num_clients is not None: - self.limit_num_clients = limit_num_clients + self.limit_num_clients = limit_num_clients if limit_num_downloads is not None: - self.limit_num_downloads = limit_num_downloads + self.limit_num_downloads = limit_num_downloads if limit_package_query is not None: - self.limit_package_query = limit_package_query + self.limit_package_query = limit_package_query if limit_path_query is not None: - self.limit_path_query = limit_path_query + self.limit_path_query = limit_path_query if metadata is not None: - self.metadata = metadata + self.metadata = metadata if name is not None: - self.name = name + self.name = name if refresh_url is not None: - self.refresh_url = refresh_url + self.refresh_url = refresh_url if reset_url is not None: - self.reset_url = reset_url + self.reset_url = reset_url if scheduled_reset_at is not None: - self.scheduled_reset_at = scheduled_reset_at + self.scheduled_reset_at = scheduled_reset_at if scheduled_reset_period is not None: - self.scheduled_reset_period = scheduled_reset_period + self.scheduled_reset_period = scheduled_reset_period if self_url is not None: - self.self_url = self_url + self.self_url = self_url if slug_perm is not None: - self.slug_perm = slug_perm + self.slug_perm = slug_perm if token is not None: - self.token = token + self.token = token if updated_at is not None: - self.updated_at = updated_at + self.updated_at = updated_at if updated_by is not None: - self.updated_by = updated_by + self.updated_by = updated_by if updated_by_url is not None: - self.updated_by_url = updated_by_url + self.updated_by_url = updated_by_url if usage is not None: - self.usage = usage + self.usage = usage if user is not None: - self.user = user + self.user = user if user_url is not None: - self.user_url = user_url + self.user_url = user_url @property def clients(self): - """ - Gets the clients of this RepositoryTokenSyncTokens. - + """Gets the clients of this RepositoryTokenSyncTokens. # noqa: E501 + + # noqa: E501 - :return: The clients of this RepositoryTokenSyncTokens. + :return: The clients of this RepositoryTokenSyncTokens. # noqa: E501 :rtype: int """ return self._clients @clients.setter def clients(self, clients): - """ - Sets the clients of this RepositoryTokenSyncTokens. - + """Sets the clients of this RepositoryTokenSyncTokens. + + # noqa: E501 - :param clients: The clients of this RepositoryTokenSyncTokens. + :param clients: The clients of this RepositoryTokenSyncTokens. # noqa: E501 :type: int """ @@ -263,22 +267,22 @@ def clients(self, clients): @property def created_at(self): - """ - Gets the created_at of this RepositoryTokenSyncTokens. - The datetime the token was updated at. + """Gets the created_at of this RepositoryTokenSyncTokens. # noqa: E501 + + The datetime the token was updated at. # noqa: E501 - :return: The created_at of this RepositoryTokenSyncTokens. + :return: The created_at of this RepositoryTokenSyncTokens. # noqa: E501 :rtype: str """ return self._created_at @created_at.setter def created_at(self, created_at): - """ - Sets the created_at of this RepositoryTokenSyncTokens. - The datetime the token was updated at. + """Sets the created_at of this RepositoryTokenSyncTokens. - :param created_at: The created_at of this RepositoryTokenSyncTokens. + The datetime the token was updated at. # noqa: E501 + + :param created_at: The created_at of this RepositoryTokenSyncTokens. # noqa: E501 :type: str """ @@ -286,22 +290,22 @@ def created_at(self, created_at): @property def created_by(self): - """ - Gets the created_by of this RepositoryTokenSyncTokens. - + """Gets the created_by of this RepositoryTokenSyncTokens. # noqa: E501 + + # noqa: E501 - :return: The created_by of this RepositoryTokenSyncTokens. + :return: The created_by of this RepositoryTokenSyncTokens. # noqa: E501 :rtype: str """ return self._created_by @created_by.setter def created_by(self, created_by): - """ - Sets the created_by of this RepositoryTokenSyncTokens. - + """Sets the created_by of this RepositoryTokenSyncTokens. + + # noqa: E501 - :param created_by: The created_by of this RepositoryTokenSyncTokens. + :param created_by: The created_by of this RepositoryTokenSyncTokens. # noqa: E501 :type: str """ @@ -309,22 +313,22 @@ def created_by(self, created_by): @property def created_by_url(self): - """ - Gets the created_by_url of this RepositoryTokenSyncTokens. - + """Gets the created_by_url of this RepositoryTokenSyncTokens. # noqa: E501 - :return: The created_by_url of this RepositoryTokenSyncTokens. + # noqa: E501 + + :return: The created_by_url of this RepositoryTokenSyncTokens. # noqa: E501 :rtype: str """ return self._created_by_url @created_by_url.setter def created_by_url(self, created_by_url): - """ - Sets the created_by_url of this RepositoryTokenSyncTokens. - + """Sets the created_by_url of this RepositoryTokenSyncTokens. - :param created_by_url: The created_by_url of this RepositoryTokenSyncTokens. + # noqa: E501 + + :param created_by_url: The created_by_url of this RepositoryTokenSyncTokens. # noqa: E501 :type: str """ @@ -332,22 +336,22 @@ def created_by_url(self, created_by_url): @property def default(self): - """ - Gets the default of this RepositoryTokenSyncTokens. - If selected this is the default token for this repository. + """Gets the default of this RepositoryTokenSyncTokens. # noqa: E501 + + If selected this is the default token for this repository. # noqa: E501 - :return: The default of this RepositoryTokenSyncTokens. + :return: The default of this RepositoryTokenSyncTokens. # noqa: E501 :rtype: bool """ return self._default @default.setter def default(self, default): - """ - Sets the default of this RepositoryTokenSyncTokens. - If selected this is the default token for this repository. + """Sets the default of this RepositoryTokenSyncTokens. + + If selected this is the default token for this repository. # noqa: E501 - :param default: The default of this RepositoryTokenSyncTokens. + :param default: The default of this RepositoryTokenSyncTokens. # noqa: E501 :type: bool """ @@ -355,22 +359,22 @@ def default(self, default): @property def disable_url(self): - """ - Gets the disable_url of this RepositoryTokenSyncTokens. - + """Gets the disable_url of this RepositoryTokenSyncTokens. # noqa: E501 - :return: The disable_url of this RepositoryTokenSyncTokens. + # noqa: E501 + + :return: The disable_url of this RepositoryTokenSyncTokens. # noqa: E501 :rtype: str """ return self._disable_url @disable_url.setter def disable_url(self, disable_url): - """ - Sets the disable_url of this RepositoryTokenSyncTokens. - + """Sets the disable_url of this RepositoryTokenSyncTokens. + + # noqa: E501 - :param disable_url: The disable_url of this RepositoryTokenSyncTokens. + :param disable_url: The disable_url of this RepositoryTokenSyncTokens. # noqa: E501 :type: str """ @@ -378,22 +382,22 @@ def disable_url(self, disable_url): @property def downloads(self): - """ - Gets the downloads of this RepositoryTokenSyncTokens. - + """Gets the downloads of this RepositoryTokenSyncTokens. # noqa: E501 + + # noqa: E501 - :return: The downloads of this RepositoryTokenSyncTokens. + :return: The downloads of this RepositoryTokenSyncTokens. # noqa: E501 :rtype: int """ return self._downloads @downloads.setter def downloads(self, downloads): - """ - Sets the downloads of this RepositoryTokenSyncTokens. - + """Sets the downloads of this RepositoryTokenSyncTokens. + + # noqa: E501 - :param downloads: The downloads of this RepositoryTokenSyncTokens. + :param downloads: The downloads of this RepositoryTokenSyncTokens. # noqa: E501 :type: int """ @@ -401,22 +405,22 @@ def downloads(self, downloads): @property def enable_url(self): - """ - Gets the enable_url of this RepositoryTokenSyncTokens. - + """Gets the enable_url of this RepositoryTokenSyncTokens. # noqa: E501 - :return: The enable_url of this RepositoryTokenSyncTokens. + # noqa: E501 + + :return: The enable_url of this RepositoryTokenSyncTokens. # noqa: E501 :rtype: str """ return self._enable_url @enable_url.setter def enable_url(self, enable_url): - """ - Sets the enable_url of this RepositoryTokenSyncTokens. - + """Sets the enable_url of this RepositoryTokenSyncTokens. + + # noqa: E501 - :param enable_url: The enable_url of this RepositoryTokenSyncTokens. + :param enable_url: The enable_url of this RepositoryTokenSyncTokens. # noqa: E501 :type: str """ @@ -424,22 +428,22 @@ def enable_url(self, enable_url): @property def eula_accepted(self): - """ - Gets the eula_accepted of this RepositoryTokenSyncTokens. - + """Gets the eula_accepted of this RepositoryTokenSyncTokens. # noqa: E501 + + # noqa: E501 - :return: The eula_accepted of this RepositoryTokenSyncTokens. + :return: The eula_accepted of this RepositoryTokenSyncTokens. # noqa: E501 :rtype: object """ return self._eula_accepted @eula_accepted.setter def eula_accepted(self, eula_accepted): - """ - Sets the eula_accepted of this RepositoryTokenSyncTokens. - + """Sets the eula_accepted of this RepositoryTokenSyncTokens. - :param eula_accepted: The eula_accepted of this RepositoryTokenSyncTokens. + # noqa: E501 + + :param eula_accepted: The eula_accepted of this RepositoryTokenSyncTokens. # noqa: E501 :type: object """ @@ -447,22 +451,22 @@ def eula_accepted(self, eula_accepted): @property def eula_accepted_at(self): - """ - Gets the eula_accepted_at of this RepositoryTokenSyncTokens. - The datetime the EULA was accepted at. + """Gets the eula_accepted_at of this RepositoryTokenSyncTokens. # noqa: E501 - :return: The eula_accepted_at of this RepositoryTokenSyncTokens. + The datetime the EULA was accepted at. # noqa: E501 + + :return: The eula_accepted_at of this RepositoryTokenSyncTokens. # noqa: E501 :rtype: str """ return self._eula_accepted_at @eula_accepted_at.setter def eula_accepted_at(self, eula_accepted_at): - """ - Sets the eula_accepted_at of this RepositoryTokenSyncTokens. - The datetime the EULA was accepted at. + """Sets the eula_accepted_at of this RepositoryTokenSyncTokens. + + The datetime the EULA was accepted at. # noqa: E501 - :param eula_accepted_at: The eula_accepted_at of this RepositoryTokenSyncTokens. + :param eula_accepted_at: The eula_accepted_at of this RepositoryTokenSyncTokens. # noqa: E501 :type: str """ @@ -470,22 +474,22 @@ def eula_accepted_at(self, eula_accepted_at): @property def eula_accepted_from(self): - """ - Gets the eula_accepted_from of this RepositoryTokenSyncTokens. - + """Gets the eula_accepted_from of this RepositoryTokenSyncTokens. # noqa: E501 + + # noqa: E501 - :return: The eula_accepted_from of this RepositoryTokenSyncTokens. + :return: The eula_accepted_from of this RepositoryTokenSyncTokens. # noqa: E501 :rtype: str """ return self._eula_accepted_from @eula_accepted_from.setter def eula_accepted_from(self, eula_accepted_from): - """ - Sets the eula_accepted_from of this RepositoryTokenSyncTokens. - + """Sets the eula_accepted_from of this RepositoryTokenSyncTokens. - :param eula_accepted_from: The eula_accepted_from of this RepositoryTokenSyncTokens. + # noqa: E501 + + :param eula_accepted_from: The eula_accepted_from of this RepositoryTokenSyncTokens. # noqa: E501 :type: str """ @@ -493,22 +497,22 @@ def eula_accepted_from(self, eula_accepted_from): @property def eula_required(self): - """ - Gets the eula_required of this RepositoryTokenSyncTokens. - If checked, a EULA acceptance is required for this token. + """Gets the eula_required of this RepositoryTokenSyncTokens. # noqa: E501 + + If checked, a EULA acceptance is required for this token. # noqa: E501 - :return: The eula_required of this RepositoryTokenSyncTokens. + :return: The eula_required of this RepositoryTokenSyncTokens. # noqa: E501 :rtype: bool """ return self._eula_required @eula_required.setter def eula_required(self, eula_required): - """ - Sets the eula_required of this RepositoryTokenSyncTokens. - If checked, a EULA acceptance is required for this token. + """Sets the eula_required of this RepositoryTokenSyncTokens. + + If checked, a EULA acceptance is required for this token. # noqa: E501 - :param eula_required: The eula_required of this RepositoryTokenSyncTokens. + :param eula_required: The eula_required of this RepositoryTokenSyncTokens. # noqa: E501 :type: bool """ @@ -516,22 +520,22 @@ def eula_required(self, eula_required): @property def has_limits(self): - """ - Gets the has_limits of this RepositoryTokenSyncTokens. - + """Gets the has_limits of this RepositoryTokenSyncTokens. # noqa: E501 + + # noqa: E501 - :return: The has_limits of this RepositoryTokenSyncTokens. + :return: The has_limits of this RepositoryTokenSyncTokens. # noqa: E501 :rtype: bool """ return self._has_limits @has_limits.setter def has_limits(self, has_limits): - """ - Sets the has_limits of this RepositoryTokenSyncTokens. - + """Sets the has_limits of this RepositoryTokenSyncTokens. - :param has_limits: The has_limits of this RepositoryTokenSyncTokens. + # noqa: E501 + + :param has_limits: The has_limits of this RepositoryTokenSyncTokens. # noqa: E501 :type: bool """ @@ -539,22 +543,22 @@ def has_limits(self, has_limits): @property def identifier(self): - """ - Gets the identifier of this RepositoryTokenSyncTokens. - + """Gets the identifier of this RepositoryTokenSyncTokens. # noqa: E501 + + # noqa: E501 - :return: The identifier of this RepositoryTokenSyncTokens. + :return: The identifier of this RepositoryTokenSyncTokens. # noqa: E501 :rtype: int """ return self._identifier @identifier.setter def identifier(self, identifier): - """ - Sets the identifier of this RepositoryTokenSyncTokens. - + """Sets the identifier of this RepositoryTokenSyncTokens. + + # noqa: E501 - :param identifier: The identifier of this RepositoryTokenSyncTokens. + :param identifier: The identifier of this RepositoryTokenSyncTokens. # noqa: E501 :type: int """ @@ -562,22 +566,22 @@ def identifier(self, identifier): @property def is_active(self): - """ - Gets the is_active of this RepositoryTokenSyncTokens. - If enabled, the token will allow downloads based on configured restrictions (if any). + """Gets the is_active of this RepositoryTokenSyncTokens. # noqa: E501 - :return: The is_active of this RepositoryTokenSyncTokens. + If enabled, the token will allow downloads based on configured restrictions (if any). # noqa: E501 + + :return: The is_active of this RepositoryTokenSyncTokens. # noqa: E501 :rtype: bool """ return self._is_active @is_active.setter def is_active(self, is_active): - """ - Sets the is_active of this RepositoryTokenSyncTokens. - If enabled, the token will allow downloads based on configured restrictions (if any). + """Sets the is_active of this RepositoryTokenSyncTokens. - :param is_active: The is_active of this RepositoryTokenSyncTokens. + If enabled, the token will allow downloads based on configured restrictions (if any). # noqa: E501 + + :param is_active: The is_active of this RepositoryTokenSyncTokens. # noqa: E501 :type: bool """ @@ -585,22 +589,22 @@ def is_active(self, is_active): @property def is_limited(self): - """ - Gets the is_limited of this RepositoryTokenSyncTokens. - + """Gets the is_limited of this RepositoryTokenSyncTokens. # noqa: E501 + + # noqa: E501 - :return: The is_limited of this RepositoryTokenSyncTokens. + :return: The is_limited of this RepositoryTokenSyncTokens. # noqa: E501 :rtype: bool """ return self._is_limited @is_limited.setter def is_limited(self, is_limited): - """ - Sets the is_limited of this RepositoryTokenSyncTokens. - + """Sets the is_limited of this RepositoryTokenSyncTokens. + + # noqa: E501 - :param is_limited: The is_limited of this RepositoryTokenSyncTokens. + :param is_limited: The is_limited of this RepositoryTokenSyncTokens. # noqa: E501 :type: bool """ @@ -608,22 +612,22 @@ def is_limited(self, is_limited): @property def limit_bandwidth(self): - """ - Gets the limit_bandwidth of this RepositoryTokenSyncTokens. - The maximum download bandwidth allowed for the token. Values are expressed as the selected unit of bandwidth. Please note that since downloads are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point. + """Gets the limit_bandwidth of this RepositoryTokenSyncTokens. # noqa: E501 - :return: The limit_bandwidth of this RepositoryTokenSyncTokens. + The maximum download bandwidth allowed for the token. Values are expressed as the selected unit of bandwidth. Please note that since downloads are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point. # noqa: E501 + + :return: The limit_bandwidth of this RepositoryTokenSyncTokens. # noqa: E501 :rtype: int """ return self._limit_bandwidth @limit_bandwidth.setter def limit_bandwidth(self, limit_bandwidth): - """ - Sets the limit_bandwidth of this RepositoryTokenSyncTokens. - The maximum download bandwidth allowed for the token. Values are expressed as the selected unit of bandwidth. Please note that since downloads are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point. + """Sets the limit_bandwidth of this RepositoryTokenSyncTokens. + + The maximum download bandwidth allowed for the token. Values are expressed as the selected unit of bandwidth. Please note that since downloads are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point. # noqa: E501 - :param limit_bandwidth: The limit_bandwidth of this RepositoryTokenSyncTokens. + :param limit_bandwidth: The limit_bandwidth of this RepositoryTokenSyncTokens. # noqa: E501 :type: int """ @@ -631,22 +635,22 @@ def limit_bandwidth(self, limit_bandwidth): @property def limit_bandwidth_unit(self): - """ - Gets the limit_bandwidth_unit of this RepositoryTokenSyncTokens. - + """Gets the limit_bandwidth_unit of this RepositoryTokenSyncTokens. # noqa: E501 + + # noqa: E501 - :return: The limit_bandwidth_unit of this RepositoryTokenSyncTokens. + :return: The limit_bandwidth_unit of this RepositoryTokenSyncTokens. # noqa: E501 :rtype: str """ return self._limit_bandwidth_unit @limit_bandwidth_unit.setter def limit_bandwidth_unit(self, limit_bandwidth_unit): - """ - Sets the limit_bandwidth_unit of this RepositoryTokenSyncTokens. - + """Sets the limit_bandwidth_unit of this RepositoryTokenSyncTokens. + + # noqa: E501 - :param limit_bandwidth_unit: The limit_bandwidth_unit of this RepositoryTokenSyncTokens. + :param limit_bandwidth_unit: The limit_bandwidth_unit of this RepositoryTokenSyncTokens. # noqa: E501 :type: str """ @@ -654,22 +658,22 @@ def limit_bandwidth_unit(self, limit_bandwidth_unit): @property def limit_date_range_from(self): - """ - Gets the limit_date_range_from of this RepositoryTokenSyncTokens. - The starting date/time the token is allowed to be used from. + """Gets the limit_date_range_from of this RepositoryTokenSyncTokens. # noqa: E501 - :return: The limit_date_range_from of this RepositoryTokenSyncTokens. + The starting date/time the token is allowed to be used from. # noqa: E501 + + :return: The limit_date_range_from of this RepositoryTokenSyncTokens. # noqa: E501 :rtype: str """ return self._limit_date_range_from @limit_date_range_from.setter def limit_date_range_from(self, limit_date_range_from): - """ - Sets the limit_date_range_from of this RepositoryTokenSyncTokens. - The starting date/time the token is allowed to be used from. + """Sets the limit_date_range_from of this RepositoryTokenSyncTokens. + + The starting date/time the token is allowed to be used from. # noqa: E501 - :param limit_date_range_from: The limit_date_range_from of this RepositoryTokenSyncTokens. + :param limit_date_range_from: The limit_date_range_from of this RepositoryTokenSyncTokens. # noqa: E501 :type: str """ @@ -677,22 +681,22 @@ def limit_date_range_from(self, limit_date_range_from): @property def limit_date_range_to(self): - """ - Gets the limit_date_range_to of this RepositoryTokenSyncTokens. - The ending date/time the token is allowed to be used until. + """Gets the limit_date_range_to of this RepositoryTokenSyncTokens. # noqa: E501 + + The ending date/time the token is allowed to be used until. # noqa: E501 - :return: The limit_date_range_to of this RepositoryTokenSyncTokens. + :return: The limit_date_range_to of this RepositoryTokenSyncTokens. # noqa: E501 :rtype: str """ return self._limit_date_range_to @limit_date_range_to.setter def limit_date_range_to(self, limit_date_range_to): - """ - Sets the limit_date_range_to of this RepositoryTokenSyncTokens. - The ending date/time the token is allowed to be used until. + """Sets the limit_date_range_to of this RepositoryTokenSyncTokens. - :param limit_date_range_to: The limit_date_range_to of this RepositoryTokenSyncTokens. + The ending date/time the token is allowed to be used until. # noqa: E501 + + :param limit_date_range_to: The limit_date_range_to of this RepositoryTokenSyncTokens. # noqa: E501 :type: str """ @@ -700,22 +704,22 @@ def limit_date_range_to(self, limit_date_range_to): @property def limit_num_clients(self): - """ - Gets the limit_num_clients of this RepositoryTokenSyncTokens. - The maximum number of unique clients allowed for the token. Please note that since clients are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point. + """Gets the limit_num_clients of this RepositoryTokenSyncTokens. # noqa: E501 - :return: The limit_num_clients of this RepositoryTokenSyncTokens. + The maximum number of unique clients allowed for the token. Please note that since clients are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point. # noqa: E501 + + :return: The limit_num_clients of this RepositoryTokenSyncTokens. # noqa: E501 :rtype: int """ return self._limit_num_clients @limit_num_clients.setter def limit_num_clients(self, limit_num_clients): - """ - Sets the limit_num_clients of this RepositoryTokenSyncTokens. - The maximum number of unique clients allowed for the token. Please note that since clients are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point. + """Sets the limit_num_clients of this RepositoryTokenSyncTokens. + + The maximum number of unique clients allowed for the token. Please note that since clients are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point. # noqa: E501 - :param limit_num_clients: The limit_num_clients of this RepositoryTokenSyncTokens. + :param limit_num_clients: The limit_num_clients of this RepositoryTokenSyncTokens. # noqa: E501 :type: int """ @@ -723,22 +727,22 @@ def limit_num_clients(self, limit_num_clients): @property def limit_num_downloads(self): - """ - Gets the limit_num_downloads of this RepositoryTokenSyncTokens. - The maximum number of downloads allowed for the token. Please note that since downloads are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point. + """Gets the limit_num_downloads of this RepositoryTokenSyncTokens. # noqa: E501 + + The maximum number of downloads allowed for the token. Please note that since downloads are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point. # noqa: E501 - :return: The limit_num_downloads of this RepositoryTokenSyncTokens. + :return: The limit_num_downloads of this RepositoryTokenSyncTokens. # noqa: E501 :rtype: int """ return self._limit_num_downloads @limit_num_downloads.setter def limit_num_downloads(self, limit_num_downloads): - """ - Sets the limit_num_downloads of this RepositoryTokenSyncTokens. - The maximum number of downloads allowed for the token. Please note that since downloads are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point. + """Sets the limit_num_downloads of this RepositoryTokenSyncTokens. - :param limit_num_downloads: The limit_num_downloads of this RepositoryTokenSyncTokens. + The maximum number of downloads allowed for the token. Please note that since downloads are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point. # noqa: E501 + + :param limit_num_downloads: The limit_num_downloads of this RepositoryTokenSyncTokens. # noqa: E501 :type: int """ @@ -746,22 +750,22 @@ def limit_num_downloads(self, limit_num_downloads): @property def limit_package_query(self): - """ - Gets the limit_package_query of this RepositoryTokenSyncTokens. - The package-based search query to apply to restrict downloads to. This uses the same syntax as the standard search used for repositories, and also supports boolean logic operators such as OR/AND/NOT and parentheses for grouping. This will still allow access to non-package files, such as metadata. + """Gets the limit_package_query of this RepositoryTokenSyncTokens. # noqa: E501 + + The package-based search query to apply to restrict downloads to. This uses the same syntax as the standard search used for repositories, and also supports boolean logic operators such as OR/AND/NOT and parentheses for grouping. This will still allow access to non-package files, such as metadata. # noqa: E501 - :return: The limit_package_query of this RepositoryTokenSyncTokens. + :return: The limit_package_query of this RepositoryTokenSyncTokens. # noqa: E501 :rtype: str """ return self._limit_package_query @limit_package_query.setter def limit_package_query(self, limit_package_query): - """ - Sets the limit_package_query of this RepositoryTokenSyncTokens. - The package-based search query to apply to restrict downloads to. This uses the same syntax as the standard search used for repositories, and also supports boolean logic operators such as OR/AND/NOT and parentheses for grouping. This will still allow access to non-package files, such as metadata. + """Sets the limit_package_query of this RepositoryTokenSyncTokens. + + The package-based search query to apply to restrict downloads to. This uses the same syntax as the standard search used for repositories, and also supports boolean logic operators such as OR/AND/NOT and parentheses for grouping. This will still allow access to non-package files, such as metadata. # noqa: E501 - :param limit_package_query: The limit_package_query of this RepositoryTokenSyncTokens. + :param limit_package_query: The limit_package_query of this RepositoryTokenSyncTokens. # noqa: E501 :type: str """ @@ -769,22 +773,22 @@ def limit_package_query(self, limit_package_query): @property def limit_path_query(self): - """ - Gets the limit_path_query of this RepositoryTokenSyncTokens. - The path-based search query to apply to restrict downloads to. This supports boolean logic operators such as OR/AND/NOT and parentheses for grouping. The path evaluated does not include the domain name, the namespace, the entitlement code used, the package format, etc. and it always starts with a forward slash. + """Gets the limit_path_query of this RepositoryTokenSyncTokens. # noqa: E501 + + The path-based search query to apply to restrict downloads to. This supports boolean logic operators such as OR/AND/NOT and parentheses for grouping. The path evaluated does not include the domain name, the namespace, the entitlement code used, the package format, etc. and it always starts with a forward slash. # noqa: E501 - :return: The limit_path_query of this RepositoryTokenSyncTokens. + :return: The limit_path_query of this RepositoryTokenSyncTokens. # noqa: E501 :rtype: str """ return self._limit_path_query @limit_path_query.setter def limit_path_query(self, limit_path_query): - """ - Sets the limit_path_query of this RepositoryTokenSyncTokens. - The path-based search query to apply to restrict downloads to. This supports boolean logic operators such as OR/AND/NOT and parentheses for grouping. The path evaluated does not include the domain name, the namespace, the entitlement code used, the package format, etc. and it always starts with a forward slash. + """Sets the limit_path_query of this RepositoryTokenSyncTokens. - :param limit_path_query: The limit_path_query of this RepositoryTokenSyncTokens. + The path-based search query to apply to restrict downloads to. This supports boolean logic operators such as OR/AND/NOT and parentheses for grouping. The path evaluated does not include the domain name, the namespace, the entitlement code used, the package format, etc. and it always starts with a forward slash. # noqa: E501 + + :param limit_path_query: The limit_path_query of this RepositoryTokenSyncTokens. # noqa: E501 :type: str """ @@ -792,22 +796,22 @@ def limit_path_query(self, limit_path_query): @property def metadata(self): - """ - Gets the metadata of this RepositoryTokenSyncTokens. - + """Gets the metadata of this RepositoryTokenSyncTokens. # noqa: E501 + + # noqa: E501 - :return: The metadata of this RepositoryTokenSyncTokens. + :return: The metadata of this RepositoryTokenSyncTokens. # noqa: E501 :rtype: str """ return self._metadata @metadata.setter def metadata(self, metadata): - """ - Sets the metadata of this RepositoryTokenSyncTokens. - + """Sets the metadata of this RepositoryTokenSyncTokens. + + # noqa: E501 - :param metadata: The metadata of this RepositoryTokenSyncTokens. + :param metadata: The metadata of this RepositoryTokenSyncTokens. # noqa: E501 :type: str """ @@ -815,22 +819,22 @@ def metadata(self, metadata): @property def name(self): - """ - Gets the name of this RepositoryTokenSyncTokens. - + """Gets the name of this RepositoryTokenSyncTokens. # noqa: E501 - :return: The name of this RepositoryTokenSyncTokens. + # noqa: E501 + + :return: The name of this RepositoryTokenSyncTokens. # noqa: E501 :rtype: str """ return self._name @name.setter def name(self, name): - """ - Sets the name of this RepositoryTokenSyncTokens. - + """Sets the name of this RepositoryTokenSyncTokens. - :param name: The name of this RepositoryTokenSyncTokens. + # noqa: E501 + + :param name: The name of this RepositoryTokenSyncTokens. # noqa: E501 :type: str """ @@ -838,22 +842,22 @@ def name(self, name): @property def refresh_url(self): - """ - Gets the refresh_url of this RepositoryTokenSyncTokens. - + """Gets the refresh_url of this RepositoryTokenSyncTokens. # noqa: E501 + + # noqa: E501 - :return: The refresh_url of this RepositoryTokenSyncTokens. + :return: The refresh_url of this RepositoryTokenSyncTokens. # noqa: E501 :rtype: str """ return self._refresh_url @refresh_url.setter def refresh_url(self, refresh_url): - """ - Sets the refresh_url of this RepositoryTokenSyncTokens. - + """Sets the refresh_url of this RepositoryTokenSyncTokens. + + # noqa: E501 - :param refresh_url: The refresh_url of this RepositoryTokenSyncTokens. + :param refresh_url: The refresh_url of this RepositoryTokenSyncTokens. # noqa: E501 :type: str """ @@ -861,22 +865,22 @@ def refresh_url(self, refresh_url): @property def reset_url(self): - """ - Gets the reset_url of this RepositoryTokenSyncTokens. - + """Gets the reset_url of this RepositoryTokenSyncTokens. # noqa: E501 - :return: The reset_url of this RepositoryTokenSyncTokens. + # noqa: E501 + + :return: The reset_url of this RepositoryTokenSyncTokens. # noqa: E501 :rtype: str """ return self._reset_url @reset_url.setter def reset_url(self, reset_url): - """ - Sets the reset_url of this RepositoryTokenSyncTokens. - + """Sets the reset_url of this RepositoryTokenSyncTokens. + + # noqa: E501 - :param reset_url: The reset_url of this RepositoryTokenSyncTokens. + :param reset_url: The reset_url of this RepositoryTokenSyncTokens. # noqa: E501 :type: str """ @@ -884,22 +888,22 @@ def reset_url(self, reset_url): @property def scheduled_reset_at(self): - """ - Gets the scheduled_reset_at of this RepositoryTokenSyncTokens. - The time at which the scheduled reset period has elapsed and the token limits were automatically reset to zero. + """Gets the scheduled_reset_at of this RepositoryTokenSyncTokens. # noqa: E501 + + The time at which the scheduled reset period has elapsed and the token limits were automatically reset to zero. # noqa: E501 - :return: The scheduled_reset_at of this RepositoryTokenSyncTokens. + :return: The scheduled_reset_at of this RepositoryTokenSyncTokens. # noqa: E501 :rtype: str """ return self._scheduled_reset_at @scheduled_reset_at.setter def scheduled_reset_at(self, scheduled_reset_at): - """ - Sets the scheduled_reset_at of this RepositoryTokenSyncTokens. - The time at which the scheduled reset period has elapsed and the token limits were automatically reset to zero. + """Sets the scheduled_reset_at of this RepositoryTokenSyncTokens. + + The time at which the scheduled reset period has elapsed and the token limits were automatically reset to zero. # noqa: E501 - :param scheduled_reset_at: The scheduled_reset_at of this RepositoryTokenSyncTokens. + :param scheduled_reset_at: The scheduled_reset_at of this RepositoryTokenSyncTokens. # noqa: E501 :type: str """ @@ -907,22 +911,22 @@ def scheduled_reset_at(self, scheduled_reset_at): @property def scheduled_reset_period(self): - """ - Gets the scheduled_reset_period of this RepositoryTokenSyncTokens. - + """Gets the scheduled_reset_period of this RepositoryTokenSyncTokens. # noqa: E501 - :return: The scheduled_reset_period of this RepositoryTokenSyncTokens. + # noqa: E501 + + :return: The scheduled_reset_period of this RepositoryTokenSyncTokens. # noqa: E501 :rtype: str """ return self._scheduled_reset_period @scheduled_reset_period.setter def scheduled_reset_period(self, scheduled_reset_period): - """ - Sets the scheduled_reset_period of this RepositoryTokenSyncTokens. - + """Sets the scheduled_reset_period of this RepositoryTokenSyncTokens. + + # noqa: E501 - :param scheduled_reset_period: The scheduled_reset_period of this RepositoryTokenSyncTokens. + :param scheduled_reset_period: The scheduled_reset_period of this RepositoryTokenSyncTokens. # noqa: E501 :type: str """ @@ -930,22 +934,22 @@ def scheduled_reset_period(self, scheduled_reset_period): @property def self_url(self): - """ - Gets the self_url of this RepositoryTokenSyncTokens. - + """Gets the self_url of this RepositoryTokenSyncTokens. # noqa: E501 + + # noqa: E501 - :return: The self_url of this RepositoryTokenSyncTokens. + :return: The self_url of this RepositoryTokenSyncTokens. # noqa: E501 :rtype: str """ return self._self_url @self_url.setter def self_url(self, self_url): - """ - Sets the self_url of this RepositoryTokenSyncTokens. - + """Sets the self_url of this RepositoryTokenSyncTokens. - :param self_url: The self_url of this RepositoryTokenSyncTokens. + # noqa: E501 + + :param self_url: The self_url of this RepositoryTokenSyncTokens. # noqa: E501 :type: str """ @@ -953,22 +957,22 @@ def self_url(self, self_url): @property def slug_perm(self): - """ - Gets the slug_perm of this RepositoryTokenSyncTokens. - + """Gets the slug_perm of this RepositoryTokenSyncTokens. # noqa: E501 - :return: The slug_perm of this RepositoryTokenSyncTokens. + # noqa: E501 + + :return: The slug_perm of this RepositoryTokenSyncTokens. # noqa: E501 :rtype: str """ return self._slug_perm @slug_perm.setter def slug_perm(self, slug_perm): - """ - Sets the slug_perm of this RepositoryTokenSyncTokens. - + """Sets the slug_perm of this RepositoryTokenSyncTokens. + + # noqa: E501 - :param slug_perm: The slug_perm of this RepositoryTokenSyncTokens. + :param slug_perm: The slug_perm of this RepositoryTokenSyncTokens. # noqa: E501 :type: str """ @@ -976,22 +980,22 @@ def slug_perm(self, slug_perm): @property def token(self): - """ - Gets the token of this RepositoryTokenSyncTokens. - + """Gets the token of this RepositoryTokenSyncTokens. # noqa: E501 + + # noqa: E501 - :return: The token of this RepositoryTokenSyncTokens. + :return: The token of this RepositoryTokenSyncTokens. # noqa: E501 :rtype: str """ return self._token @token.setter def token(self, token): - """ - Sets the token of this RepositoryTokenSyncTokens. - + """Sets the token of this RepositoryTokenSyncTokens. - :param token: The token of this RepositoryTokenSyncTokens. + # noqa: E501 + + :param token: The token of this RepositoryTokenSyncTokens. # noqa: E501 :type: str """ @@ -999,22 +1003,22 @@ def token(self, token): @property def updated_at(self): - """ - Gets the updated_at of this RepositoryTokenSyncTokens. - The datetime the token was updated at. + """Gets the updated_at of this RepositoryTokenSyncTokens. # noqa: E501 + + The datetime the token was updated at. # noqa: E501 - :return: The updated_at of this RepositoryTokenSyncTokens. + :return: The updated_at of this RepositoryTokenSyncTokens. # noqa: E501 :rtype: str """ return self._updated_at @updated_at.setter def updated_at(self, updated_at): - """ - Sets the updated_at of this RepositoryTokenSyncTokens. - The datetime the token was updated at. + """Sets the updated_at of this RepositoryTokenSyncTokens. + + The datetime the token was updated at. # noqa: E501 - :param updated_at: The updated_at of this RepositoryTokenSyncTokens. + :param updated_at: The updated_at of this RepositoryTokenSyncTokens. # noqa: E501 :type: str """ @@ -1022,22 +1026,22 @@ def updated_at(self, updated_at): @property def updated_by(self): - """ - Gets the updated_by of this RepositoryTokenSyncTokens. - + """Gets the updated_by of this RepositoryTokenSyncTokens. # noqa: E501 + + # noqa: E501 - :return: The updated_by of this RepositoryTokenSyncTokens. + :return: The updated_by of this RepositoryTokenSyncTokens. # noqa: E501 :rtype: str """ return self._updated_by @updated_by.setter def updated_by(self, updated_by): - """ - Sets the updated_by of this RepositoryTokenSyncTokens. - + """Sets the updated_by of this RepositoryTokenSyncTokens. - :param updated_by: The updated_by of this RepositoryTokenSyncTokens. + # noqa: E501 + + :param updated_by: The updated_by of this RepositoryTokenSyncTokens. # noqa: E501 :type: str """ @@ -1045,22 +1049,22 @@ def updated_by(self, updated_by): @property def updated_by_url(self): - """ - Gets the updated_by_url of this RepositoryTokenSyncTokens. - + """Gets the updated_by_url of this RepositoryTokenSyncTokens. # noqa: E501 + + # noqa: E501 - :return: The updated_by_url of this RepositoryTokenSyncTokens. + :return: The updated_by_url of this RepositoryTokenSyncTokens. # noqa: E501 :rtype: str """ return self._updated_by_url @updated_by_url.setter def updated_by_url(self, updated_by_url): - """ - Sets the updated_by_url of this RepositoryTokenSyncTokens. - + """Sets the updated_by_url of this RepositoryTokenSyncTokens. + + # noqa: E501 - :param updated_by_url: The updated_by_url of this RepositoryTokenSyncTokens. + :param updated_by_url: The updated_by_url of this RepositoryTokenSyncTokens. # noqa: E501 :type: str """ @@ -1068,22 +1072,22 @@ def updated_by_url(self, updated_by_url): @property def usage(self): - """ - Gets the usage of this RepositoryTokenSyncTokens. - + """Gets the usage of this RepositoryTokenSyncTokens. # noqa: E501 - :return: The usage of this RepositoryTokenSyncTokens. + # noqa: E501 + + :return: The usage of this RepositoryTokenSyncTokens. # noqa: E501 :rtype: str """ return self._usage @usage.setter def usage(self, usage): - """ - Sets the usage of this RepositoryTokenSyncTokens. - + """Sets the usage of this RepositoryTokenSyncTokens. - :param usage: The usage of this RepositoryTokenSyncTokens. + # noqa: E501 + + :param usage: The usage of this RepositoryTokenSyncTokens. # noqa: E501 :type: str """ @@ -1091,22 +1095,22 @@ def usage(self, usage): @property def user(self): - """ - Gets the user of this RepositoryTokenSyncTokens. - + """Gets the user of this RepositoryTokenSyncTokens. # noqa: E501 + + # noqa: E501 - :return: The user of this RepositoryTokenSyncTokens. + :return: The user of this RepositoryTokenSyncTokens. # noqa: E501 :rtype: str """ return self._user @user.setter def user(self, user): - """ - Sets the user of this RepositoryTokenSyncTokens. - + """Sets the user of this RepositoryTokenSyncTokens. + + # noqa: E501 - :param user: The user of this RepositoryTokenSyncTokens. + :param user: The user of this RepositoryTokenSyncTokens. # noqa: E501 :type: str """ @@ -1114,34 +1118,32 @@ def user(self, user): @property def user_url(self): - """ - Gets the user_url of this RepositoryTokenSyncTokens. - + """Gets the user_url of this RepositoryTokenSyncTokens. # noqa: E501 - :return: The user_url of this RepositoryTokenSyncTokens. + # noqa: E501 + + :return: The user_url of this RepositoryTokenSyncTokens. # noqa: E501 :rtype: str """ return self._user_url @user_url.setter def user_url(self, user_url): - """ - Sets the user_url of this RepositoryTokenSyncTokens. - + """Sets the user_url of this RepositoryTokenSyncTokens. + + # noqa: E501 - :param user_url: The user_url of this RepositoryTokenSyncTokens. + :param user_url: The user_url of this RepositoryTokenSyncTokens. # noqa: E501 :type: str """ self._user_url = user_url def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -1158,32 +1160,30 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(RepositoryTokenSyncTokens, dict): + for key, value in self.items(): + result[key] = value return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, RepositoryTokenSyncTokens): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other + """Returns true if both objects are not equal""" + if not isinstance(other, RepositoryTokenSyncTokens): + return True + + return self.to_dict() != other.to_dict() diff --git a/bindings/python/src/cloudsmith_api/models/repository_webhook.py b/bindings/python/src/cloudsmith_api/models/repository_webhook.py index 24c2430b..3e567dc2 100644 --- a/bindings/python/src/cloudsmith_api/models/repository_webhook.py +++ b/bindings/python/src/cloudsmith_api/models/repository_webhook.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -11,18 +11,20 @@ """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration class RepositoryWebhook(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -90,10 +92,11 @@ class RepositoryWebhook(object): 'verify_ssl': 'verify_ssl' } - def __init__(self, created_at=None, created_by=None, created_by_url=None, disable_reason=None, disable_reason_str=None, events=None, identifier=None, is_active=None, is_last_response_bad=None, last_response_status=None, last_response_status_str=None, num_sent=None, package_query=None, request_body_format=None, request_body_format_str=None, request_body_template_format=None, request_body_template_format_str=None, request_content_type=None, secret_header=None, self_url=None, slug_perm=None, target_url=None, templates=None, updated_at=None, updated_by=None, updated_by_url=None, verify_ssl=None): - """ - RepositoryWebhook - a model defined in Swagger - """ + def __init__(self, created_at=None, created_by=None, created_by_url=None, disable_reason=None, disable_reason_str=None, events=None, identifier=None, is_active=None, is_last_response_bad=None, last_response_status=None, last_response_status_str=None, num_sent=None, package_query=None, request_body_format=None, request_body_format_str=None, request_body_template_format=None, request_body_template_format_str=None, request_content_type=None, secret_header=None, self_url=None, slug_perm=None, target_url=None, templates=None, updated_at=None, updated_by=None, updated_by_url=None, verify_ssl=None, _configuration=None): # noqa: E501 + """RepositoryWebhook - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._created_at = None self._created_by = None @@ -122,77 +125,78 @@ def __init__(self, created_at=None, created_by=None, created_by_url=None, disabl self._updated_by = None self._updated_by_url = None self._verify_ssl = None + self.discriminator = None if created_at is not None: - self.created_at = created_at + self.created_at = created_at if created_by is not None: - self.created_by = created_by + self.created_by = created_by if created_by_url is not None: - self.created_by_url = created_by_url + self.created_by_url = created_by_url if disable_reason is not None: - self.disable_reason = disable_reason + self.disable_reason = disable_reason if disable_reason_str is not None: - self.disable_reason_str = disable_reason_str + self.disable_reason_str = disable_reason_str self.events = events if identifier is not None: - self.identifier = identifier + self.identifier = identifier if is_active is not None: - self.is_active = is_active + self.is_active = is_active if is_last_response_bad is not None: - self.is_last_response_bad = is_last_response_bad + self.is_last_response_bad = is_last_response_bad if last_response_status is not None: - self.last_response_status = last_response_status + self.last_response_status = last_response_status if last_response_status_str is not None: - self.last_response_status_str = last_response_status_str + self.last_response_status_str = last_response_status_str if num_sent is not None: - self.num_sent = num_sent + self.num_sent = num_sent if package_query is not None: - self.package_query = package_query + self.package_query = package_query if request_body_format is not None: - self.request_body_format = request_body_format + self.request_body_format = request_body_format if request_body_format_str is not None: - self.request_body_format_str = request_body_format_str + self.request_body_format_str = request_body_format_str if request_body_template_format is not None: - self.request_body_template_format = request_body_template_format + self.request_body_template_format = request_body_template_format if request_body_template_format_str is not None: - self.request_body_template_format_str = request_body_template_format_str + self.request_body_template_format_str = request_body_template_format_str if request_content_type is not None: - self.request_content_type = request_content_type + self.request_content_type = request_content_type if secret_header is not None: - self.secret_header = secret_header + self.secret_header = secret_header if self_url is not None: - self.self_url = self_url + self.self_url = self_url if slug_perm is not None: - self.slug_perm = slug_perm + self.slug_perm = slug_perm self.target_url = target_url self.templates = templates if updated_at is not None: - self.updated_at = updated_at + self.updated_at = updated_at if updated_by is not None: - self.updated_by = updated_by + self.updated_by = updated_by if updated_by_url is not None: - self.updated_by_url = updated_by_url + self.updated_by_url = updated_by_url if verify_ssl is not None: - self.verify_ssl = verify_ssl + self.verify_ssl = verify_ssl @property def created_at(self): - """ - Gets the created_at of this RepositoryWebhook. - + """Gets the created_at of this RepositoryWebhook. # noqa: E501 - :return: The created_at of this RepositoryWebhook. + # noqa: E501 + + :return: The created_at of this RepositoryWebhook. # noqa: E501 :rtype: str """ return self._created_at @created_at.setter def created_at(self, created_at): - """ - Sets the created_at of this RepositoryWebhook. - + """Sets the created_at of this RepositoryWebhook. - :param created_at: The created_at of this RepositoryWebhook. + # noqa: E501 + + :param created_at: The created_at of this RepositoryWebhook. # noqa: E501 :type: str """ @@ -200,22 +204,22 @@ def created_at(self, created_at): @property def created_by(self): - """ - Gets the created_by of this RepositoryWebhook. - + """Gets the created_by of this RepositoryWebhook. # noqa: E501 - :return: The created_by of this RepositoryWebhook. + # noqa: E501 + + :return: The created_by of this RepositoryWebhook. # noqa: E501 :rtype: str """ return self._created_by @created_by.setter def created_by(self, created_by): - """ - Sets the created_by of this RepositoryWebhook. - + """Sets the created_by of this RepositoryWebhook. - :param created_by: The created_by of this RepositoryWebhook. + # noqa: E501 + + :param created_by: The created_by of this RepositoryWebhook. # noqa: E501 :type: str """ @@ -223,22 +227,22 @@ def created_by(self, created_by): @property def created_by_url(self): - """ - Gets the created_by_url of this RepositoryWebhook. - + """Gets the created_by_url of this RepositoryWebhook. # noqa: E501 - :return: The created_by_url of this RepositoryWebhook. + # noqa: E501 + + :return: The created_by_url of this RepositoryWebhook. # noqa: E501 :rtype: str """ return self._created_by_url @created_by_url.setter def created_by_url(self, created_by_url): - """ - Sets the created_by_url of this RepositoryWebhook. - + """Sets the created_by_url of this RepositoryWebhook. - :param created_by_url: The created_by_url of this RepositoryWebhook. + # noqa: E501 + + :param created_by_url: The created_by_url of this RepositoryWebhook. # noqa: E501 :type: str """ @@ -246,22 +250,22 @@ def created_by_url(self, created_by_url): @property def disable_reason(self): - """ - Gets the disable_reason of this RepositoryWebhook. - + """Gets the disable_reason of this RepositoryWebhook. # noqa: E501 - :return: The disable_reason of this RepositoryWebhook. + # noqa: E501 + + :return: The disable_reason of this RepositoryWebhook. # noqa: E501 :rtype: str """ return self._disable_reason @disable_reason.setter def disable_reason(self, disable_reason): - """ - Sets the disable_reason of this RepositoryWebhook. - + """Sets the disable_reason of this RepositoryWebhook. - :param disable_reason: The disable_reason of this RepositoryWebhook. + # noqa: E501 + + :param disable_reason: The disable_reason of this RepositoryWebhook. # noqa: E501 :type: str """ @@ -269,22 +273,22 @@ def disable_reason(self, disable_reason): @property def disable_reason_str(self): - """ - Gets the disable_reason_str of this RepositoryWebhook. - + """Gets the disable_reason_str of this RepositoryWebhook. # noqa: E501 - :return: The disable_reason_str of this RepositoryWebhook. + # noqa: E501 + + :return: The disable_reason_str of this RepositoryWebhook. # noqa: E501 :rtype: str """ return self._disable_reason_str @disable_reason_str.setter def disable_reason_str(self, disable_reason_str): - """ - Sets the disable_reason_str of this RepositoryWebhook. - + """Sets the disable_reason_str of this RepositoryWebhook. - :param disable_reason_str: The disable_reason_str of this RepositoryWebhook. + # noqa: E501 + + :param disable_reason_str: The disable_reason_str of this RepositoryWebhook. # noqa: E501 :type: str """ @@ -292,47 +296,47 @@ def disable_reason_str(self, disable_reason_str): @property def events(self): - """ - Gets the events of this RepositoryWebhook. - + """Gets the events of this RepositoryWebhook. # noqa: E501 - :return: The events of this RepositoryWebhook. + # noqa: E501 + + :return: The events of this RepositoryWebhook. # noqa: E501 :rtype: list[str] """ return self._events @events.setter def events(self, events): - """ - Sets the events of this RepositoryWebhook. - + """Sets the events of this RepositoryWebhook. - :param events: The events of this RepositoryWebhook. + # noqa: E501 + + :param events: The events of this RepositoryWebhook. # noqa: E501 :type: list[str] """ - if events is None: - raise ValueError("Invalid value for `events`, must not be `None`") + if self._configuration.client_side_validation and events is None: + raise ValueError("Invalid value for `events`, must not be `None`") # noqa: E501 self._events = events @property def identifier(self): - """ - Gets the identifier of this RepositoryWebhook. - + """Gets the identifier of this RepositoryWebhook. # noqa: E501 - :return: The identifier of this RepositoryWebhook. + # noqa: E501 + + :return: The identifier of this RepositoryWebhook. # noqa: E501 :rtype: int """ return self._identifier @identifier.setter def identifier(self, identifier): - """ - Sets the identifier of this RepositoryWebhook. - + """Sets the identifier of this RepositoryWebhook. - :param identifier: The identifier of this RepositoryWebhook. + # noqa: E501 + + :param identifier: The identifier of this RepositoryWebhook. # noqa: E501 :type: int """ @@ -340,22 +344,22 @@ def identifier(self, identifier): @property def is_active(self): - """ - Gets the is_active of this RepositoryWebhook. - If enabled, the webhook will trigger on events and send payloads to the configured target URL. + """Gets the is_active of this RepositoryWebhook. # noqa: E501 - :return: The is_active of this RepositoryWebhook. + If enabled, the webhook will trigger on events and send payloads to the configured target URL. # noqa: E501 + + :return: The is_active of this RepositoryWebhook. # noqa: E501 :rtype: bool """ return self._is_active @is_active.setter def is_active(self, is_active): - """ - Sets the is_active of this RepositoryWebhook. - If enabled, the webhook will trigger on events and send payloads to the configured target URL. + """Sets the is_active of this RepositoryWebhook. - :param is_active: The is_active of this RepositoryWebhook. + If enabled, the webhook will trigger on events and send payloads to the configured target URL. # noqa: E501 + + :param is_active: The is_active of this RepositoryWebhook. # noqa: E501 :type: bool """ @@ -363,22 +367,22 @@ def is_active(self, is_active): @property def is_last_response_bad(self): - """ - Gets the is_last_response_bad of this RepositoryWebhook. - + """Gets the is_last_response_bad of this RepositoryWebhook. # noqa: E501 - :return: The is_last_response_bad of this RepositoryWebhook. + # noqa: E501 + + :return: The is_last_response_bad of this RepositoryWebhook. # noqa: E501 :rtype: bool """ return self._is_last_response_bad @is_last_response_bad.setter def is_last_response_bad(self, is_last_response_bad): - """ - Sets the is_last_response_bad of this RepositoryWebhook. - + """Sets the is_last_response_bad of this RepositoryWebhook. - :param is_last_response_bad: The is_last_response_bad of this RepositoryWebhook. + # noqa: E501 + + :param is_last_response_bad: The is_last_response_bad of this RepositoryWebhook. # noqa: E501 :type: bool """ @@ -386,22 +390,22 @@ def is_last_response_bad(self, is_last_response_bad): @property def last_response_status(self): - """ - Gets the last_response_status of this RepositoryWebhook. - + """Gets the last_response_status of this RepositoryWebhook. # noqa: E501 - :return: The last_response_status of this RepositoryWebhook. + # noqa: E501 + + :return: The last_response_status of this RepositoryWebhook. # noqa: E501 :rtype: int """ return self._last_response_status @last_response_status.setter def last_response_status(self, last_response_status): - """ - Sets the last_response_status of this RepositoryWebhook. - + """Sets the last_response_status of this RepositoryWebhook. - :param last_response_status: The last_response_status of this RepositoryWebhook. + # noqa: E501 + + :param last_response_status: The last_response_status of this RepositoryWebhook. # noqa: E501 :type: int """ @@ -409,22 +413,22 @@ def last_response_status(self, last_response_status): @property def last_response_status_str(self): - """ - Gets the last_response_status_str of this RepositoryWebhook. - + """Gets the last_response_status_str of this RepositoryWebhook. # noqa: E501 - :return: The last_response_status_str of this RepositoryWebhook. + # noqa: E501 + + :return: The last_response_status_str of this RepositoryWebhook. # noqa: E501 :rtype: str """ return self._last_response_status_str @last_response_status_str.setter def last_response_status_str(self, last_response_status_str): - """ - Sets the last_response_status_str of this RepositoryWebhook. - + """Sets the last_response_status_str of this RepositoryWebhook. - :param last_response_status_str: The last_response_status_str of this RepositoryWebhook. + # noqa: E501 + + :param last_response_status_str: The last_response_status_str of this RepositoryWebhook. # noqa: E501 :type: str """ @@ -432,22 +436,22 @@ def last_response_status_str(self, last_response_status_str): @property def num_sent(self): - """ - Gets the num_sent of this RepositoryWebhook. - + """Gets the num_sent of this RepositoryWebhook. # noqa: E501 - :return: The num_sent of this RepositoryWebhook. + # noqa: E501 + + :return: The num_sent of this RepositoryWebhook. # noqa: E501 :rtype: int """ return self._num_sent @num_sent.setter def num_sent(self, num_sent): - """ - Sets the num_sent of this RepositoryWebhook. - + """Sets the num_sent of this RepositoryWebhook. - :param num_sent: The num_sent of this RepositoryWebhook. + # noqa: E501 + + :param num_sent: The num_sent of this RepositoryWebhook. # noqa: E501 :type: int """ @@ -455,22 +459,22 @@ def num_sent(self, num_sent): @property def package_query(self): - """ - Gets the package_query of this RepositoryWebhook. - The package-based search query for webhooks to fire. This uses the same syntax as the standard search used for repositories, and also supports boolean logic operators such as OR/AND/NOT and parentheses for grouping. If a package does not match, the webhook will not fire. + """Gets the package_query of this RepositoryWebhook. # noqa: E501 - :return: The package_query of this RepositoryWebhook. + The package-based search query for webhooks to fire. This uses the same syntax as the standard search used for repositories, and also supports boolean logic operators such as OR/AND/NOT and parentheses for grouping. If a package does not match, the webhook will not fire. # noqa: E501 + + :return: The package_query of this RepositoryWebhook. # noqa: E501 :rtype: str """ return self._package_query @package_query.setter def package_query(self, package_query): - """ - Sets the package_query of this RepositoryWebhook. - The package-based search query for webhooks to fire. This uses the same syntax as the standard search used for repositories, and also supports boolean logic operators such as OR/AND/NOT and parentheses for grouping. If a package does not match, the webhook will not fire. + """Sets the package_query of this RepositoryWebhook. - :param package_query: The package_query of this RepositoryWebhook. + The package-based search query for webhooks to fire. This uses the same syntax as the standard search used for repositories, and also supports boolean logic operators such as OR/AND/NOT and parentheses for grouping. If a package does not match, the webhook will not fire. # noqa: E501 + + :param package_query: The package_query of this RepositoryWebhook. # noqa: E501 :type: str """ @@ -478,22 +482,22 @@ def package_query(self, package_query): @property def request_body_format(self): - """ - Gets the request_body_format of this RepositoryWebhook. - The format of the payloads for webhook requests. + """Gets the request_body_format of this RepositoryWebhook. # noqa: E501 - :return: The request_body_format of this RepositoryWebhook. + The format of the payloads for webhook requests. # noqa: E501 + + :return: The request_body_format of this RepositoryWebhook. # noqa: E501 :rtype: str """ return self._request_body_format @request_body_format.setter def request_body_format(self, request_body_format): - """ - Sets the request_body_format of this RepositoryWebhook. - The format of the payloads for webhook requests. + """Sets the request_body_format of this RepositoryWebhook. - :param request_body_format: The request_body_format of this RepositoryWebhook. + The format of the payloads for webhook requests. # noqa: E501 + + :param request_body_format: The request_body_format of this RepositoryWebhook. # noqa: E501 :type: str """ @@ -501,22 +505,22 @@ def request_body_format(self, request_body_format): @property def request_body_format_str(self): - """ - Gets the request_body_format_str of this RepositoryWebhook. - + """Gets the request_body_format_str of this RepositoryWebhook. # noqa: E501 - :return: The request_body_format_str of this RepositoryWebhook. + # noqa: E501 + + :return: The request_body_format_str of this RepositoryWebhook. # noqa: E501 :rtype: str """ return self._request_body_format_str @request_body_format_str.setter def request_body_format_str(self, request_body_format_str): - """ - Sets the request_body_format_str of this RepositoryWebhook. - + """Sets the request_body_format_str of this RepositoryWebhook. - :param request_body_format_str: The request_body_format_str of this RepositoryWebhook. + # noqa: E501 + + :param request_body_format_str: The request_body_format_str of this RepositoryWebhook. # noqa: E501 :type: str """ @@ -524,22 +528,22 @@ def request_body_format_str(self, request_body_format_str): @property def request_body_template_format(self): - """ - Gets the request_body_template_format of this RepositoryWebhook. - The format of the payloads for webhook requests. + """Gets the request_body_template_format of this RepositoryWebhook. # noqa: E501 - :return: The request_body_template_format of this RepositoryWebhook. + The format of the payloads for webhook requests. # noqa: E501 + + :return: The request_body_template_format of this RepositoryWebhook. # noqa: E501 :rtype: str """ return self._request_body_template_format @request_body_template_format.setter def request_body_template_format(self, request_body_template_format): - """ - Sets the request_body_template_format of this RepositoryWebhook. - The format of the payloads for webhook requests. + """Sets the request_body_template_format of this RepositoryWebhook. - :param request_body_template_format: The request_body_template_format of this RepositoryWebhook. + The format of the payloads for webhook requests. # noqa: E501 + + :param request_body_template_format: The request_body_template_format of this RepositoryWebhook. # noqa: E501 :type: str """ @@ -547,22 +551,22 @@ def request_body_template_format(self, request_body_template_format): @property def request_body_template_format_str(self): - """ - Gets the request_body_template_format_str of this RepositoryWebhook. - + """Gets the request_body_template_format_str of this RepositoryWebhook. # noqa: E501 - :return: The request_body_template_format_str of this RepositoryWebhook. + # noqa: E501 + + :return: The request_body_template_format_str of this RepositoryWebhook. # noqa: E501 :rtype: str """ return self._request_body_template_format_str @request_body_template_format_str.setter def request_body_template_format_str(self, request_body_template_format_str): - """ - Sets the request_body_template_format_str of this RepositoryWebhook. - + """Sets the request_body_template_format_str of this RepositoryWebhook. - :param request_body_template_format_str: The request_body_template_format_str of this RepositoryWebhook. + # noqa: E501 + + :param request_body_template_format_str: The request_body_template_format_str of this RepositoryWebhook. # noqa: E501 :type: str """ @@ -570,22 +574,22 @@ def request_body_template_format_str(self, request_body_template_format_str): @property def request_content_type(self): - """ - Gets the request_content_type of this RepositoryWebhook. - The value that will be sent for the 'Content Type' header. + """Gets the request_content_type of this RepositoryWebhook. # noqa: E501 - :return: The request_content_type of this RepositoryWebhook. + The value that will be sent for the 'Content Type' header. # noqa: E501 + + :return: The request_content_type of this RepositoryWebhook. # noqa: E501 :rtype: str """ return self._request_content_type @request_content_type.setter def request_content_type(self, request_content_type): - """ - Sets the request_content_type of this RepositoryWebhook. - The value that will be sent for the 'Content Type' header. + """Sets the request_content_type of this RepositoryWebhook. - :param request_content_type: The request_content_type of this RepositoryWebhook. + The value that will be sent for the 'Content Type' header. # noqa: E501 + + :param request_content_type: The request_content_type of this RepositoryWebhook. # noqa: E501 :type: str """ @@ -593,22 +597,22 @@ def request_content_type(self, request_content_type): @property def secret_header(self): - """ - Gets the secret_header of this RepositoryWebhook. - The header to send the predefined secret in. This must be unique from existing headers or it won't be sent. You can use this as a form of authentication on the endpoint side. + """Gets the secret_header of this RepositoryWebhook. # noqa: E501 - :return: The secret_header of this RepositoryWebhook. + The header to send the predefined secret in. This must be unique from existing headers or it won't be sent. You can use this as a form of authentication on the endpoint side. # noqa: E501 + + :return: The secret_header of this RepositoryWebhook. # noqa: E501 :rtype: str """ return self._secret_header @secret_header.setter def secret_header(self, secret_header): - """ - Sets the secret_header of this RepositoryWebhook. - The header to send the predefined secret in. This must be unique from existing headers or it won't be sent. You can use this as a form of authentication on the endpoint side. + """Sets the secret_header of this RepositoryWebhook. - :param secret_header: The secret_header of this RepositoryWebhook. + The header to send the predefined secret in. This must be unique from existing headers or it won't be sent. You can use this as a form of authentication on the endpoint side. # noqa: E501 + + :param secret_header: The secret_header of this RepositoryWebhook. # noqa: E501 :type: str """ @@ -616,22 +620,22 @@ def secret_header(self, secret_header): @property def self_url(self): - """ - Gets the self_url of this RepositoryWebhook. - + """Gets the self_url of this RepositoryWebhook. # noqa: E501 - :return: The self_url of this RepositoryWebhook. + # noqa: E501 + + :return: The self_url of this RepositoryWebhook. # noqa: E501 :rtype: str """ return self._self_url @self_url.setter def self_url(self, self_url): - """ - Sets the self_url of this RepositoryWebhook. - + """Sets the self_url of this RepositoryWebhook. - :param self_url: The self_url of this RepositoryWebhook. + # noqa: E501 + + :param self_url: The self_url of this RepositoryWebhook. # noqa: E501 :type: str """ @@ -639,22 +643,22 @@ def self_url(self, self_url): @property def slug_perm(self): - """ - Gets the slug_perm of this RepositoryWebhook. - + """Gets the slug_perm of this RepositoryWebhook. # noqa: E501 - :return: The slug_perm of this RepositoryWebhook. + # noqa: E501 + + :return: The slug_perm of this RepositoryWebhook. # noqa: E501 :rtype: str """ return self._slug_perm @slug_perm.setter def slug_perm(self, slug_perm): - """ - Sets the slug_perm of this RepositoryWebhook. - + """Sets the slug_perm of this RepositoryWebhook. - :param slug_perm: The slug_perm of this RepositoryWebhook. + # noqa: E501 + + :param slug_perm: The slug_perm of this RepositoryWebhook. # noqa: E501 :type: str """ @@ -662,72 +666,72 @@ def slug_perm(self, slug_perm): @property def target_url(self): - """ - Gets the target_url of this RepositoryWebhook. - The destination URL that webhook payloads will be POST'ed to. + """Gets the target_url of this RepositoryWebhook. # noqa: E501 - :return: The target_url of this RepositoryWebhook. + The destination URL that webhook payloads will be POST'ed to. # noqa: E501 + + :return: The target_url of this RepositoryWebhook. # noqa: E501 :rtype: str """ return self._target_url @target_url.setter def target_url(self, target_url): - """ - Sets the target_url of this RepositoryWebhook. - The destination URL that webhook payloads will be POST'ed to. + """Sets the target_url of this RepositoryWebhook. - :param target_url: The target_url of this RepositoryWebhook. + The destination URL that webhook payloads will be POST'ed to. # noqa: E501 + + :param target_url: The target_url of this RepositoryWebhook. # noqa: E501 :type: str """ - if target_url is None: - raise ValueError("Invalid value for `target_url`, must not be `None`") + if self._configuration.client_side_validation and target_url is None: + raise ValueError("Invalid value for `target_url`, must not be `None`") # noqa: E501 self._target_url = target_url @property def templates(self): - """ - Gets the templates of this RepositoryWebhook. - + """Gets the templates of this RepositoryWebhook. # noqa: E501 - :return: The templates of this RepositoryWebhook. + # noqa: E501 + + :return: The templates of this RepositoryWebhook. # noqa: E501 :rtype: list[WebhooksownerrepoTemplates] """ return self._templates @templates.setter def templates(self, templates): - """ - Sets the templates of this RepositoryWebhook. - + """Sets the templates of this RepositoryWebhook. - :param templates: The templates of this RepositoryWebhook. + # noqa: E501 + + :param templates: The templates of this RepositoryWebhook. # noqa: E501 :type: list[WebhooksownerrepoTemplates] """ - if templates is None: - raise ValueError("Invalid value for `templates`, must not be `None`") + if self._configuration.client_side_validation and templates is None: + raise ValueError("Invalid value for `templates`, must not be `None`") # noqa: E501 self._templates = templates @property def updated_at(self): - """ - Gets the updated_at of this RepositoryWebhook. - + """Gets the updated_at of this RepositoryWebhook. # noqa: E501 - :return: The updated_at of this RepositoryWebhook. + # noqa: E501 + + :return: The updated_at of this RepositoryWebhook. # noqa: E501 :rtype: str """ return self._updated_at @updated_at.setter def updated_at(self, updated_at): - """ - Sets the updated_at of this RepositoryWebhook. - + """Sets the updated_at of this RepositoryWebhook. - :param updated_at: The updated_at of this RepositoryWebhook. + # noqa: E501 + + :param updated_at: The updated_at of this RepositoryWebhook. # noqa: E501 :type: str """ @@ -735,22 +739,22 @@ def updated_at(self, updated_at): @property def updated_by(self): - """ - Gets the updated_by of this RepositoryWebhook. - + """Gets the updated_by of this RepositoryWebhook. # noqa: E501 - :return: The updated_by of this RepositoryWebhook. + # noqa: E501 + + :return: The updated_by of this RepositoryWebhook. # noqa: E501 :rtype: str """ return self._updated_by @updated_by.setter def updated_by(self, updated_by): - """ - Sets the updated_by of this RepositoryWebhook. - + """Sets the updated_by of this RepositoryWebhook. - :param updated_by: The updated_by of this RepositoryWebhook. + # noqa: E501 + + :param updated_by: The updated_by of this RepositoryWebhook. # noqa: E501 :type: str """ @@ -758,22 +762,22 @@ def updated_by(self, updated_by): @property def updated_by_url(self): - """ - Gets the updated_by_url of this RepositoryWebhook. - + """Gets the updated_by_url of this RepositoryWebhook. # noqa: E501 - :return: The updated_by_url of this RepositoryWebhook. + # noqa: E501 + + :return: The updated_by_url of this RepositoryWebhook. # noqa: E501 :rtype: str """ return self._updated_by_url @updated_by_url.setter def updated_by_url(self, updated_by_url): - """ - Sets the updated_by_url of this RepositoryWebhook. - + """Sets the updated_by_url of this RepositoryWebhook. - :param updated_by_url: The updated_by_url of this RepositoryWebhook. + # noqa: E501 + + :param updated_by_url: The updated_by_url of this RepositoryWebhook. # noqa: E501 :type: str """ @@ -781,34 +785,32 @@ def updated_by_url(self, updated_by_url): @property def verify_ssl(self): - """ - Gets the verify_ssl of this RepositoryWebhook. - If enabled, SSL certificates is verified when webhooks are sent. It's recommended to leave this enabled as not verifying the integrity of SSL certificates leaves you susceptible to Man-in-the-Middle (MITM) attacks. + """Gets the verify_ssl of this RepositoryWebhook. # noqa: E501 - :return: The verify_ssl of this RepositoryWebhook. + If enabled, SSL certificates is verified when webhooks are sent. It's recommended to leave this enabled as not verifying the integrity of SSL certificates leaves you susceptible to Man-in-the-Middle (MITM) attacks. # noqa: E501 + + :return: The verify_ssl of this RepositoryWebhook. # noqa: E501 :rtype: bool """ return self._verify_ssl @verify_ssl.setter def verify_ssl(self, verify_ssl): - """ - Sets the verify_ssl of this RepositoryWebhook. - If enabled, SSL certificates is verified when webhooks are sent. It's recommended to leave this enabled as not verifying the integrity of SSL certificates leaves you susceptible to Man-in-the-Middle (MITM) attacks. + """Sets the verify_ssl of this RepositoryWebhook. - :param verify_ssl: The verify_ssl of this RepositoryWebhook. + If enabled, SSL certificates is verified when webhooks are sent. It's recommended to leave this enabled as not verifying the integrity of SSL certificates leaves you susceptible to Man-in-the-Middle (MITM) attacks. # noqa: E501 + + :param verify_ssl: The verify_ssl of this RepositoryWebhook. # noqa: E501 :type: bool """ self._verify_ssl = verify_ssl def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -825,32 +827,30 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(RepositoryWebhook, dict): + for key, value in self.items(): + result[key] = value return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, RepositoryWebhook): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other + """Returns true if both objects are not equal""" + if not isinstance(other, RepositoryWebhook): + return True + + return self.to_dict() != other.to_dict() diff --git a/bindings/python/src/cloudsmith_api/models/resources_rate_check.py b/bindings/python/src/cloudsmith_api/models/resources_rate_check.py index ba53e909..a90be488 100644 --- a/bindings/python/src/cloudsmith_api/models/resources_rate_check.py +++ b/bindings/python/src/cloudsmith_api/models/resources_rate_check.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -11,18 +11,20 @@ """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration class ResourcesRateCheck(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -38,46 +40,46 @@ class ResourcesRateCheck(object): 'resources': 'resources' } - def __init__(self, resources=None): - """ - ResourcesRateCheck - a model defined in Swagger - """ + def __init__(self, resources=None, _configuration=None): # noqa: E501 + """ResourcesRateCheck - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._resources = None + self.discriminator = None if resources is not None: - self.resources = resources + self.resources = resources @property def resources(self): - """ - Gets the resources of this ResourcesRateCheck. - Rate limit values per resource + """Gets the resources of this ResourcesRateCheck. # noqa: E501 + + Rate limit values per resource # noqa: E501 - :return: The resources of this ResourcesRateCheck. + :return: The resources of this ResourcesRateCheck. # noqa: E501 :rtype: object """ return self._resources @resources.setter def resources(self, resources): - """ - Sets the resources of this ResourcesRateCheck. - Rate limit values per resource + """Sets the resources of this ResourcesRateCheck. + + Rate limit values per resource # noqa: E501 - :param resources: The resources of this ResourcesRateCheck. + :param resources: The resources of this ResourcesRateCheck. # noqa: E501 :type: object """ self._resources = resources def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -94,32 +96,30 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(ResourcesRateCheck, dict): + for key, value in self.items(): + result[key] = value return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, ResourcesRateCheck): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other + """Returns true if both objects are not equal""" + if not isinstance(other, ResourcesRateCheck): + return True + + return self.to_dict() != other.to_dict() diff --git a/bindings/python/src/cloudsmith_api/models/status.py b/bindings/python/src/cloudsmith_api/models/status.py index 3e714865..ce75a6ba 100644 --- a/bindings/python/src/cloudsmith_api/models/status.py +++ b/bindings/python/src/cloudsmith_api/models/status.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -11,18 +11,20 @@ """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration class Status(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -38,47 +40,47 @@ class Status(object): 'detail': 'detail' } - def __init__(self, detail=None): - """ - Status - a model defined in Swagger - """ + def __init__(self, detail=None, _configuration=None): # noqa: E501 + """Status - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._detail = None + self.discriminator = None self.detail = detail @property def detail(self): - """ - Gets the detail of this Status. - An extended message for the response. + """Gets the detail of this Status. # noqa: E501 + + An extended message for the response. # noqa: E501 - :return: The detail of this Status. + :return: The detail of this Status. # noqa: E501 :rtype: str """ return self._detail @detail.setter def detail(self, detail): - """ - Sets the detail of this Status. - An extended message for the response. + """Sets the detail of this Status. + + An extended message for the response. # noqa: E501 - :param detail: The detail of this Status. + :param detail: The detail of this Status. # noqa: E501 :type: str """ - if detail is None: - raise ValueError("Invalid value for `detail`, must not be `None`") + if self._configuration.client_side_validation and detail is None: + raise ValueError("Invalid value for `detail`, must not be `None`") # noqa: E501 self._detail = detail def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -95,32 +97,30 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(Status, dict): + for key, value in self.items(): + result[key] = value return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, Status): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other + """Returns true if both objects are not equal""" + if not isinstance(other, Status): + return True + + return self.to_dict() != other.to_dict() diff --git a/bindings/python/src/cloudsmith_api/models/status_basic.py b/bindings/python/src/cloudsmith_api/models/status_basic.py index 604ee22c..6c00bb4d 100644 --- a/bindings/python/src/cloudsmith_api/models/status_basic.py +++ b/bindings/python/src/cloudsmith_api/models/status_basic.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -11,18 +11,20 @@ """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration class StatusBasic(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -40,37 +42,39 @@ class StatusBasic(object): 'version': 'version' } - def __init__(self, detail=None, version=None): - """ - StatusBasic - a model defined in Swagger - """ + def __init__(self, detail=None, version=None, _configuration=None): # noqa: E501 + """StatusBasic - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._detail = None self._version = None + self.discriminator = None if detail is not None: - self.detail = detail + self.detail = detail if version is not None: - self.version = version + self.version = version @property def detail(self): - """ - Gets the detail of this StatusBasic. - The message describing the state of the API. + """Gets the detail of this StatusBasic. # noqa: E501 + + The message describing the state of the API. # noqa: E501 - :return: The detail of this StatusBasic. + :return: The detail of this StatusBasic. # noqa: E501 :rtype: str """ return self._detail @detail.setter def detail(self, detail): - """ - Sets the detail of this StatusBasic. - The message describing the state of the API. + """Sets the detail of this StatusBasic. + + The message describing the state of the API. # noqa: E501 - :param detail: The detail of this StatusBasic. + :param detail: The detail of this StatusBasic. # noqa: E501 :type: str """ @@ -78,34 +82,32 @@ def detail(self, detail): @property def version(self): - """ - Gets the version of this StatusBasic. - The current version for the Cloudsmith service. + """Gets the version of this StatusBasic. # noqa: E501 + + The current version for the Cloudsmith service. # noqa: E501 - :return: The version of this StatusBasic. + :return: The version of this StatusBasic. # noqa: E501 :rtype: str """ return self._version @version.setter def version(self, version): - """ - Sets the version of this StatusBasic. - The current version for the Cloudsmith service. + """Sets the version of this StatusBasic. - :param version: The version of this StatusBasic. + The current version for the Cloudsmith service. # noqa: E501 + + :param version: The version of this StatusBasic. # noqa: E501 :type: str """ self._version = version def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -122,32 +124,30 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(StatusBasic, dict): + for key, value in self.items(): + result[key] = value return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, StatusBasic): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other + """Returns true if both objects are not equal""" + if not isinstance(other, StatusBasic): + return True + + return self.to_dict() != other.to_dict() diff --git a/bindings/python/src/cloudsmith_api/models/storage_region.py b/bindings/python/src/cloudsmith_api/models/storage_region.py index a6857bfb..43ded69b 100644 --- a/bindings/python/src/cloudsmith_api/models/storage_region.py +++ b/bindings/python/src/cloudsmith_api/models/storage_region.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -11,18 +11,20 @@ """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration class StorageRegion(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -40,74 +42,74 @@ class StorageRegion(object): 'slug': 'slug' } - def __init__(self, label=None, slug=None): - """ - StorageRegion - a model defined in Swagger - """ + def __init__(self, label=None, slug=None, _configuration=None): # noqa: E501 + """StorageRegion - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._label = None self._slug = None + self.discriminator = None self.label = label self.slug = slug @property def label(self): - """ - Gets the label of this StorageRegion. - Name of the storage region + """Gets the label of this StorageRegion. # noqa: E501 + + Name of the storage region # noqa: E501 - :return: The label of this StorageRegion. + :return: The label of this StorageRegion. # noqa: E501 :rtype: str """ return self._label @label.setter def label(self, label): - """ - Sets the label of this StorageRegion. - Name of the storage region + """Sets the label of this StorageRegion. + + Name of the storage region # noqa: E501 - :param label: The label of this StorageRegion. + :param label: The label of this StorageRegion. # noqa: E501 :type: str """ - if label is None: - raise ValueError("Invalid value for `label`, must not be `None`") + if self._configuration.client_side_validation and label is None: + raise ValueError("Invalid value for `label`, must not be `None`") # noqa: E501 self._label = label @property def slug(self): - """ - Gets the slug of this StorageRegion. - Slug for the storage region + """Gets the slug of this StorageRegion. # noqa: E501 + + Slug for the storage region # noqa: E501 - :return: The slug of this StorageRegion. + :return: The slug of this StorageRegion. # noqa: E501 :rtype: str """ return self._slug @slug.setter def slug(self, slug): - """ - Sets the slug of this StorageRegion. - Slug for the storage region + """Sets the slug of this StorageRegion. - :param slug: The slug of this StorageRegion. + Slug for the storage region # noqa: E501 + + :param slug: The slug of this StorageRegion. # noqa: E501 :type: str """ - if slug is None: - raise ValueError("Invalid value for `slug`, must not be `None`") + if self._configuration.client_side_validation and slug is None: + raise ValueError("Invalid value for `slug`, must not be `None`") # noqa: E501 self._slug = slug def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -124,32 +126,30 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(StorageRegion, dict): + for key, value in self.items(): + result[key] = value return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, StorageRegion): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other + """Returns true if both objects are not equal""" + if not isinstance(other, StorageRegion): + return True + + return self.to_dict() != other.to_dict() diff --git a/bindings/python/src/cloudsmith_api/models/user_auth_token.py b/bindings/python/src/cloudsmith_api/models/user_auth_token.py index 49e45d51..1b6d390e 100644 --- a/bindings/python/src/cloudsmith_api/models/user_auth_token.py +++ b/bindings/python/src/cloudsmith_api/models/user_auth_token.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -11,18 +11,20 @@ """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration class UserAuthToken(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -38,46 +40,46 @@ class UserAuthToken(object): 'token': 'token' } - def __init__(self, token=None): - """ - UserAuthToken - a model defined in Swagger - """ + def __init__(self, token=None, _configuration=None): # noqa: E501 + """UserAuthToken - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._token = None + self.discriminator = None if token is not None: - self.token = token + self.token = token @property def token(self): - """ - Gets the token of this UserAuthToken. - API token for the authenticated user + """Gets the token of this UserAuthToken. # noqa: E501 + + API token for the authenticated user # noqa: E501 - :return: The token of this UserAuthToken. + :return: The token of this UserAuthToken. # noqa: E501 :rtype: str """ return self._token @token.setter def token(self, token): - """ - Sets the token of this UserAuthToken. - API token for the authenticated user + """Sets the token of this UserAuthToken. + + API token for the authenticated user # noqa: E501 - :param token: The token of this UserAuthToken. + :param token: The token of this UserAuthToken. # noqa: E501 :type: str """ self._token = token def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -94,32 +96,30 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(UserAuthToken, dict): + for key, value in self.items(): + result[key] = value return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, UserAuthToken): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other + """Returns true if both objects are not equal""" + if not isinstance(other, UserAuthToken): + return True + + return self.to_dict() != other.to_dict() diff --git a/bindings/python/src/cloudsmith_api/models/user_brief.py b/bindings/python/src/cloudsmith_api/models/user_brief.py index d8fb2bee..b04ec58c 100644 --- a/bindings/python/src/cloudsmith_api/models/user_brief.py +++ b/bindings/python/src/cloudsmith_api/models/user_brief.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -11,18 +11,20 @@ """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration class UserBrief(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -50,10 +52,11 @@ class UserBrief(object): 'slug_perm': 'slug_perm' } - def __init__(self, authenticated=None, email=None, name=None, profile_url=None, self_url=None, slug=None, slug_perm=None): - """ - UserBrief - a model defined in Swagger - """ + def __init__(self, authenticated=None, email=None, name=None, profile_url=None, self_url=None, slug=None, slug_perm=None, _configuration=None): # noqa: E501 + """UserBrief - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._authenticated = None self._email = None @@ -62,40 +65,41 @@ def __init__(self, authenticated=None, email=None, name=None, profile_url=None, self._self_url = None self._slug = None self._slug_perm = None + self.discriminator = None if authenticated is not None: - self.authenticated = authenticated + self.authenticated = authenticated if email is not None: - self.email = email + self.email = email if name is not None: - self.name = name + self.name = name if profile_url is not None: - self.profile_url = profile_url + self.profile_url = profile_url if self_url is not None: - self.self_url = self_url + self.self_url = self_url if slug is not None: - self.slug = slug + self.slug = slug if slug_perm is not None: - self.slug_perm = slug_perm + self.slug_perm = slug_perm @property def authenticated(self): - """ - Gets the authenticated of this UserBrief. - If true then you're logged in as a user. + """Gets the authenticated of this UserBrief. # noqa: E501 + + If true then you're logged in as a user. # noqa: E501 - :return: The authenticated of this UserBrief. + :return: The authenticated of this UserBrief. # noqa: E501 :rtype: bool """ return self._authenticated @authenticated.setter def authenticated(self, authenticated): - """ - Sets the authenticated of this UserBrief. - If true then you're logged in as a user. + """Sets the authenticated of this UserBrief. + + If true then you're logged in as a user. # noqa: E501 - :param authenticated: The authenticated of this UserBrief. + :param authenticated: The authenticated of this UserBrief. # noqa: E501 :type: bool """ @@ -103,22 +107,22 @@ def authenticated(self, authenticated): @property def email(self): - """ - Gets the email of this UserBrief. - Your email address that we use to contact you. This is only visible to you. + """Gets the email of this UserBrief. # noqa: E501 - :return: The email of this UserBrief. + Your email address that we use to contact you. This is only visible to you. # noqa: E501 + + :return: The email of this UserBrief. # noqa: E501 :rtype: str """ return self._email @email.setter def email(self, email): - """ - Sets the email of this UserBrief. - Your email address that we use to contact you. This is only visible to you. + """Sets the email of this UserBrief. + + Your email address that we use to contact you. This is only visible to you. # noqa: E501 - :param email: The email of this UserBrief. + :param email: The email of this UserBrief. # noqa: E501 :type: str """ @@ -126,22 +130,22 @@ def email(self, email): @property def name(self): - """ - Gets the name of this UserBrief. - The full name of the user (if any). + """Gets the name of this UserBrief. # noqa: E501 + + The full name of the user (if any). # noqa: E501 - :return: The name of this UserBrief. + :return: The name of this UserBrief. # noqa: E501 :rtype: str """ return self._name @name.setter def name(self, name): - """ - Sets the name of this UserBrief. - The full name of the user (if any). + """Sets the name of this UserBrief. - :param name: The name of this UserBrief. + The full name of the user (if any). # noqa: E501 + + :param name: The name of this UserBrief. # noqa: E501 :type: str """ @@ -149,22 +153,22 @@ def name(self, name): @property def profile_url(self): - """ - Gets the profile_url of this UserBrief. - The URL for the full profile of the user. + """Gets the profile_url of this UserBrief. # noqa: E501 + + The URL for the full profile of the user. # noqa: E501 - :return: The profile_url of this UserBrief. + :return: The profile_url of this UserBrief. # noqa: E501 :rtype: str """ return self._profile_url @profile_url.setter def profile_url(self, profile_url): - """ - Sets the profile_url of this UserBrief. - The URL for the full profile of the user. + """Sets the profile_url of this UserBrief. + + The URL for the full profile of the user. # noqa: E501 - :param profile_url: The profile_url of this UserBrief. + :param profile_url: The profile_url of this UserBrief. # noqa: E501 :type: str """ @@ -172,22 +176,22 @@ def profile_url(self, profile_url): @property def self_url(self): - """ - Gets the self_url of this UserBrief. - + """Gets the self_url of this UserBrief. # noqa: E501 - :return: The self_url of this UserBrief. + # noqa: E501 + + :return: The self_url of this UserBrief. # noqa: E501 :rtype: str """ return self._self_url @self_url.setter def self_url(self, self_url): - """ - Sets the self_url of this UserBrief. - + """Sets the self_url of this UserBrief. + + # noqa: E501 - :param self_url: The self_url of this UserBrief. + :param self_url: The self_url of this UserBrief. # noqa: E501 :type: str """ @@ -195,22 +199,22 @@ def self_url(self, self_url): @property def slug(self): - """ - Gets the slug of this UserBrief. - + """Gets the slug of this UserBrief. # noqa: E501 + + # noqa: E501 - :return: The slug of this UserBrief. + :return: The slug of this UserBrief. # noqa: E501 :rtype: str """ return self._slug @slug.setter def slug(self, slug): - """ - Sets the slug of this UserBrief. - + """Sets the slug of this UserBrief. - :param slug: The slug of this UserBrief. + # noqa: E501 + + :param slug: The slug of this UserBrief. # noqa: E501 :type: str """ @@ -218,34 +222,32 @@ def slug(self, slug): @property def slug_perm(self): - """ - Gets the slug_perm of this UserBrief. - + """Gets the slug_perm of this UserBrief. # noqa: E501 + + # noqa: E501 - :return: The slug_perm of this UserBrief. + :return: The slug_perm of this UserBrief. # noqa: E501 :rtype: str """ return self._slug_perm @slug_perm.setter def slug_perm(self, slug_perm): - """ - Sets the slug_perm of this UserBrief. - + """Sets the slug_perm of this UserBrief. + + # noqa: E501 - :param slug_perm: The slug_perm of this UserBrief. + :param slug_perm: The slug_perm of this UserBrief. # noqa: E501 :type: str """ self._slug_perm = slug_perm def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -262,32 +264,30 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(UserBrief, dict): + for key, value in self.items(): + result[key] = value return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, UserBrief): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other + """Returns true if both objects are not equal""" + if not isinstance(other, UserBrief): + return True + + return self.to_dict() != other.to_dict() diff --git a/bindings/python/src/cloudsmith_api/models/user_profile.py b/bindings/python/src/cloudsmith_api/models/user_profile.py index 58b4e2fc..273b6c57 100644 --- a/bindings/python/src/cloudsmith_api/models/user_profile.py +++ b/bindings/python/src/cloudsmith_api/models/user_profile.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -11,18 +11,20 @@ """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration class UserProfile(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -56,10 +58,11 @@ class UserProfile(object): 'url': 'url' } - def __init__(self, company=None, first_name=None, job_title=None, joined_at=None, last_name=None, name=None, slug=None, slug_perm=None, tagline=None, url=None): - """ - UserProfile - a model defined in Swagger - """ + def __init__(self, company=None, first_name=None, job_title=None, joined_at=None, last_name=None, name=None, slug=None, slug_perm=None, tagline=None, url=None, _configuration=None): # noqa: E501 + """UserProfile - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._company = None self._first_name = None @@ -71,44 +74,45 @@ def __init__(self, company=None, first_name=None, job_title=None, joined_at=None self._slug_perm = None self._tagline = None self._url = None + self.discriminator = None if company is not None: - self.company = company + self.company = company self.first_name = first_name if job_title is not None: - self.job_title = job_title + self.job_title = job_title if joined_at is not None: - self.joined_at = joined_at + self.joined_at = joined_at self.last_name = last_name if name is not None: - self.name = name + self.name = name if slug is not None: - self.slug = slug + self.slug = slug if slug_perm is not None: - self.slug_perm = slug_perm + self.slug_perm = slug_perm if tagline is not None: - self.tagline = tagline + self.tagline = tagline if url is not None: - self.url = url + self.url = url @property def company(self): - """ - Gets the company of this UserProfile. - + """Gets the company of this UserProfile. # noqa: E501 - :return: The company of this UserProfile. + # noqa: E501 + + :return: The company of this UserProfile. # noqa: E501 :rtype: str """ return self._company @company.setter def company(self, company): - """ - Sets the company of this UserProfile. - + """Sets the company of this UserProfile. - :param company: The company of this UserProfile. + # noqa: E501 + + :param company: The company of this UserProfile. # noqa: E501 :type: str """ @@ -116,47 +120,47 @@ def company(self, company): @property def first_name(self): - """ - Gets the first_name of this UserProfile. - + """Gets the first_name of this UserProfile. # noqa: E501 - :return: The first_name of this UserProfile. + # noqa: E501 + + :return: The first_name of this UserProfile. # noqa: E501 :rtype: str """ return self._first_name @first_name.setter def first_name(self, first_name): - """ - Sets the first_name of this UserProfile. - + """Sets the first_name of this UserProfile. + + # noqa: E501 - :param first_name: The first_name of this UserProfile. + :param first_name: The first_name of this UserProfile. # noqa: E501 :type: str """ - if first_name is None: - raise ValueError("Invalid value for `first_name`, must not be `None`") + if self._configuration.client_side_validation and first_name is None: + raise ValueError("Invalid value for `first_name`, must not be `None`") # noqa: E501 self._first_name = first_name @property def job_title(self): - """ - Gets the job_title of this UserProfile. - + """Gets the job_title of this UserProfile. # noqa: E501 + + # noqa: E501 - :return: The job_title of this UserProfile. + :return: The job_title of this UserProfile. # noqa: E501 :rtype: str """ return self._job_title @job_title.setter def job_title(self, job_title): - """ - Sets the job_title of this UserProfile. - + """Sets the job_title of this UserProfile. + + # noqa: E501 - :param job_title: The job_title of this UserProfile. + :param job_title: The job_title of this UserProfile. # noqa: E501 :type: str """ @@ -164,22 +168,22 @@ def job_title(self, job_title): @property def joined_at(self): - """ - Gets the joined_at of this UserProfile. - + """Gets the joined_at of this UserProfile. # noqa: E501 + + # noqa: E501 - :return: The joined_at of this UserProfile. + :return: The joined_at of this UserProfile. # noqa: E501 :rtype: str """ return self._joined_at @joined_at.setter def joined_at(self, joined_at): - """ - Sets the joined_at of this UserProfile. - + """Sets the joined_at of this UserProfile. + + # noqa: E501 - :param joined_at: The joined_at of this UserProfile. + :param joined_at: The joined_at of this UserProfile. # noqa: E501 :type: str """ @@ -187,47 +191,47 @@ def joined_at(self, joined_at): @property def last_name(self): - """ - Gets the last_name of this UserProfile. - + """Gets the last_name of this UserProfile. # noqa: E501 + + # noqa: E501 - :return: The last_name of this UserProfile. + :return: The last_name of this UserProfile. # noqa: E501 :rtype: str """ return self._last_name @last_name.setter def last_name(self, last_name): - """ - Sets the last_name of this UserProfile. - + """Sets the last_name of this UserProfile. + + # noqa: E501 - :param last_name: The last_name of this UserProfile. + :param last_name: The last_name of this UserProfile. # noqa: E501 :type: str """ - if last_name is None: - raise ValueError("Invalid value for `last_name`, must not be `None`") + if self._configuration.client_side_validation and last_name is None: + raise ValueError("Invalid value for `last_name`, must not be `None`") # noqa: E501 self._last_name = last_name @property def name(self): - """ - Gets the name of this UserProfile. - + """Gets the name of this UserProfile. # noqa: E501 + + # noqa: E501 - :return: The name of this UserProfile. + :return: The name of this UserProfile. # noqa: E501 :rtype: str """ return self._name @name.setter def name(self, name): - """ - Sets the name of this UserProfile. - + """Sets the name of this UserProfile. - :param name: The name of this UserProfile. + # noqa: E501 + + :param name: The name of this UserProfile. # noqa: E501 :type: str """ @@ -235,22 +239,22 @@ def name(self, name): @property def slug(self): - """ - Gets the slug of this UserProfile. - + """Gets the slug of this UserProfile. # noqa: E501 - :return: The slug of this UserProfile. + # noqa: E501 + + :return: The slug of this UserProfile. # noqa: E501 :rtype: str """ return self._slug @slug.setter def slug(self, slug): - """ - Sets the slug of this UserProfile. - + """Sets the slug of this UserProfile. - :param slug: The slug of this UserProfile. + # noqa: E501 + + :param slug: The slug of this UserProfile. # noqa: E501 :type: str """ @@ -258,22 +262,22 @@ def slug(self, slug): @property def slug_perm(self): - """ - Gets the slug_perm of this UserProfile. - + """Gets the slug_perm of this UserProfile. # noqa: E501 - :return: The slug_perm of this UserProfile. + # noqa: E501 + + :return: The slug_perm of this UserProfile. # noqa: E501 :rtype: str """ return self._slug_perm @slug_perm.setter def slug_perm(self, slug_perm): - """ - Sets the slug_perm of this UserProfile. - + """Sets the slug_perm of this UserProfile. - :param slug_perm: The slug_perm of this UserProfile. + # noqa: E501 + + :param slug_perm: The slug_perm of this UserProfile. # noqa: E501 :type: str """ @@ -281,22 +285,22 @@ def slug_perm(self, slug_perm): @property def tagline(self): - """ - Gets the tagline of this UserProfile. - Your tagline is a sentence about you. Make it funny. Make it professional. Either way, it's public and it represents who you are. + """Gets the tagline of this UserProfile. # noqa: E501 - :return: The tagline of this UserProfile. + Your tagline is a sentence about you. Make it funny. Make it professional. Either way, it's public and it represents who you are. # noqa: E501 + + :return: The tagline of this UserProfile. # noqa: E501 :rtype: str """ return self._tagline @tagline.setter def tagline(self, tagline): - """ - Sets the tagline of this UserProfile. - Your tagline is a sentence about you. Make it funny. Make it professional. Either way, it's public and it represents who you are. + """Sets the tagline of this UserProfile. - :param tagline: The tagline of this UserProfile. + Your tagline is a sentence about you. Make it funny. Make it professional. Either way, it's public and it represents who you are. # noqa: E501 + + :param tagline: The tagline of this UserProfile. # noqa: E501 :type: str """ @@ -304,34 +308,32 @@ def tagline(self, tagline): @property def url(self): - """ - Gets the url of this UserProfile. - + """Gets the url of this UserProfile. # noqa: E501 + + # noqa: E501 - :return: The url of this UserProfile. + :return: The url of this UserProfile. # noqa: E501 :rtype: str """ return self._url @url.setter def url(self, url): - """ - Sets the url of this UserProfile. - + """Sets the url of this UserProfile. + + # noqa: E501 - :param url: The url of this UserProfile. + :param url: The url of this UserProfile. # noqa: E501 :type: str """ self._url = url def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -348,32 +350,30 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(UserProfile, dict): + for key, value in self.items(): + result[key] = value return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, UserProfile): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other + """Returns true if both objects are not equal""" + if not isinstance(other, UserProfile): + return True + + return self.to_dict() != other.to_dict() diff --git a/bindings/python/src/cloudsmith_api/models/user_token_create.py b/bindings/python/src/cloudsmith_api/models/user_token_create.py index 83a7e558..91b85e4f 100644 --- a/bindings/python/src/cloudsmith_api/models/user_token_create.py +++ b/bindings/python/src/cloudsmith_api/models/user_token_create.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -11,18 +11,20 @@ """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration class UserTokenCreate(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -40,37 +42,39 @@ class UserTokenCreate(object): 'password': 'password' } - def __init__(self, email=None, password=None): - """ - UserTokenCreate - a model defined in Swagger - """ + def __init__(self, email=None, password=None, _configuration=None): # noqa: E501 + """UserTokenCreate - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._email = None self._password = None + self.discriminator = None if email is not None: - self.email = email + self.email = email if password is not None: - self.password = password + self.password = password @property def email(self): - """ - Gets the email of this UserTokenCreate. - Email address to authenticate with + """Gets the email of this UserTokenCreate. # noqa: E501 + + Email address to authenticate with # noqa: E501 - :return: The email of this UserTokenCreate. + :return: The email of this UserTokenCreate. # noqa: E501 :rtype: str """ return self._email @email.setter def email(self, email): - """ - Sets the email of this UserTokenCreate. - Email address to authenticate with + """Sets the email of this UserTokenCreate. + + Email address to authenticate with # noqa: E501 - :param email: The email of this UserTokenCreate. + :param email: The email of this UserTokenCreate. # noqa: E501 :type: str """ @@ -78,34 +82,32 @@ def email(self, email): @property def password(self): - """ - Gets the password of this UserTokenCreate. - Password to authenticate with + """Gets the password of this UserTokenCreate. # noqa: E501 + + Password to authenticate with # noqa: E501 - :return: The password of this UserTokenCreate. + :return: The password of this UserTokenCreate. # noqa: E501 :rtype: str """ return self._password @password.setter def password(self, password): - """ - Sets the password of this UserTokenCreate. - Password to authenticate with + """Sets the password of this UserTokenCreate. - :param password: The password of this UserTokenCreate. + Password to authenticate with # noqa: E501 + + :param password: The password of this UserTokenCreate. # noqa: E501 :type: str """ self._password = password def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -122,32 +124,30 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(UserTokenCreate, dict): + for key, value in self.items(): + result[key] = value return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, UserTokenCreate): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other + """Returns true if both objects are not equal""" + if not isinstance(other, UserTokenCreate): + return True + + return self.to_dict() != other.to_dict() diff --git a/bindings/python/src/cloudsmith_api/models/vagrant_package_upload.py b/bindings/python/src/cloudsmith_api/models/vagrant_package_upload.py index 61c9e60d..8f2e660d 100644 --- a/bindings/python/src/cloudsmith_api/models/vagrant_package_upload.py +++ b/bindings/python/src/cloudsmith_api/models/vagrant_package_upload.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -11,18 +11,20 @@ """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration class VagrantPackageUpload(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -166,10 +168,11 @@ class VagrantPackageUpload(object): 'vulnerability_scan_results_url': 'vulnerability_scan_results_url' } - def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, distro=None, distro_version=None, downloads=None, epoch=None, extension=None, filename=None, files=None, format=None, format_url=None, identifier_perm=None, indexed=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, package_type=None, provider=None, release=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status=None, security_scan_status_updated_at=None, self_html_url=None, self_url=None, signature_url=None, size=None, slug=None, slug_perm=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_immutable=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_scan_results_url=None): - """ - VagrantPackageUpload - a model defined in Swagger - """ + def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum_sha1=None, checksum_sha256=None, checksum_sha512=None, dependencies_checksum_md5=None, dependencies_url=None, description=None, distro=None, distro_version=None, downloads=None, epoch=None, extension=None, filename=None, files=None, format=None, format_url=None, identifier_perm=None, indexed=None, is_sync_awaiting=None, is_sync_completed=None, is_sync_failed=None, is_sync_in_flight=None, is_sync_in_progress=None, license=None, name=None, namespace=None, namespace_url=None, num_files=None, package_type=None, provider=None, release=None, repository=None, repository_url=None, security_scan_completed_at=None, security_scan_started_at=None, security_scan_status=None, security_scan_status_updated_at=None, self_html_url=None, self_url=None, signature_url=None, size=None, slug=None, slug_perm=None, stage=None, stage_str=None, stage_updated_at=None, status=None, status_reason=None, status_str=None, status_updated_at=None, status_url=None, subtype=None, summary=None, sync_finished_at=None, sync_progress=None, tags_immutable=None, type_display=None, uploaded_at=None, uploader=None, uploader_url=None, version=None, version_orig=None, vulnerability_scan_results_url=None, _configuration=None): # noqa: E501 + """VagrantPackageUpload - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._architectures = None self._cdn_url = None @@ -236,153 +239,154 @@ def __init__(self, architectures=None, cdn_url=None, checksum_md5=None, checksum self._version = None self._version_orig = None self._vulnerability_scan_results_url = None + self.discriminator = None if architectures is not None: - self.architectures = architectures + self.architectures = architectures if cdn_url is not None: - self.cdn_url = cdn_url + self.cdn_url = cdn_url if checksum_md5 is not None: - self.checksum_md5 = checksum_md5 + self.checksum_md5 = checksum_md5 if checksum_sha1 is not None: - self.checksum_sha1 = checksum_sha1 + self.checksum_sha1 = checksum_sha1 if checksum_sha256 is not None: - self.checksum_sha256 = checksum_sha256 + self.checksum_sha256 = checksum_sha256 if checksum_sha512 is not None: - self.checksum_sha512 = checksum_sha512 + self.checksum_sha512 = checksum_sha512 if dependencies_checksum_md5 is not None: - self.dependencies_checksum_md5 = dependencies_checksum_md5 + self.dependencies_checksum_md5 = dependencies_checksum_md5 if dependencies_url is not None: - self.dependencies_url = dependencies_url + self.dependencies_url = dependencies_url if description is not None: - self.description = description + self.description = description if distro is not None: - self.distro = distro + self.distro = distro if distro_version is not None: - self.distro_version = distro_version + self.distro_version = distro_version if downloads is not None: - self.downloads = downloads + self.downloads = downloads if epoch is not None: - self.epoch = epoch + self.epoch = epoch if extension is not None: - self.extension = extension + self.extension = extension if filename is not None: - self.filename = filename + self.filename = filename if files is not None: - self.files = files + self.files = files if format is not None: - self.format = format + self.format = format if format_url is not None: - self.format_url = format_url + self.format_url = format_url if identifier_perm is not None: - self.identifier_perm = identifier_perm + self.identifier_perm = identifier_perm if indexed is not None: - self.indexed = indexed + self.indexed = indexed if is_sync_awaiting is not None: - self.is_sync_awaiting = is_sync_awaiting + self.is_sync_awaiting = is_sync_awaiting if is_sync_completed is not None: - self.is_sync_completed = is_sync_completed + self.is_sync_completed = is_sync_completed if is_sync_failed is not None: - self.is_sync_failed = is_sync_failed + self.is_sync_failed = is_sync_failed if is_sync_in_flight is not None: - self.is_sync_in_flight = is_sync_in_flight + self.is_sync_in_flight = is_sync_in_flight if is_sync_in_progress is not None: - self.is_sync_in_progress = is_sync_in_progress + self.is_sync_in_progress = is_sync_in_progress if license is not None: - self.license = license + self.license = license self.name = name if namespace is not None: - self.namespace = namespace + self.namespace = namespace if namespace_url is not None: - self.namespace_url = namespace_url + self.namespace_url = namespace_url if num_files is not None: - self.num_files = num_files + self.num_files = num_files if package_type is not None: - self.package_type = package_type + self.package_type = package_type self.provider = provider if release is not None: - self.release = release + self.release = release if repository is not None: - self.repository = repository + self.repository = repository if repository_url is not None: - self.repository_url = repository_url + self.repository_url = repository_url if security_scan_completed_at is not None: - self.security_scan_completed_at = security_scan_completed_at + self.security_scan_completed_at = security_scan_completed_at if security_scan_started_at is not None: - self.security_scan_started_at = security_scan_started_at + self.security_scan_started_at = security_scan_started_at if security_scan_status is not None: - self.security_scan_status = security_scan_status + self.security_scan_status = security_scan_status if security_scan_status_updated_at is not None: - self.security_scan_status_updated_at = security_scan_status_updated_at + self.security_scan_status_updated_at = security_scan_status_updated_at if self_html_url is not None: - self.self_html_url = self_html_url + self.self_html_url = self_html_url if self_url is not None: - self.self_url = self_url + self.self_url = self_url if signature_url is not None: - self.signature_url = signature_url + self.signature_url = signature_url if size is not None: - self.size = size + self.size = size if slug is not None: - self.slug = slug + self.slug = slug if slug_perm is not None: - self.slug_perm = slug_perm + self.slug_perm = slug_perm if stage is not None: - self.stage = stage + self.stage = stage if stage_str is not None: - self.stage_str = stage_str + self.stage_str = stage_str if stage_updated_at is not None: - self.stage_updated_at = stage_updated_at + self.stage_updated_at = stage_updated_at if status is not None: - self.status = status + self.status = status if status_reason is not None: - self.status_reason = status_reason + self.status_reason = status_reason if status_str is not None: - self.status_str = status_str + self.status_str = status_str if status_updated_at is not None: - self.status_updated_at = status_updated_at + self.status_updated_at = status_updated_at if status_url is not None: - self.status_url = status_url + self.status_url = status_url if subtype is not None: - self.subtype = subtype + self.subtype = subtype if summary is not None: - self.summary = summary + self.summary = summary if sync_finished_at is not None: - self.sync_finished_at = sync_finished_at + self.sync_finished_at = sync_finished_at if sync_progress is not None: - self.sync_progress = sync_progress + self.sync_progress = sync_progress if tags_immutable is not None: - self.tags_immutable = tags_immutable + self.tags_immutable = tags_immutable if type_display is not None: - self.type_display = type_display + self.type_display = type_display if uploaded_at is not None: - self.uploaded_at = uploaded_at + self.uploaded_at = uploaded_at if uploader is not None: - self.uploader = uploader + self.uploader = uploader if uploader_url is not None: - self.uploader_url = uploader_url + self.uploader_url = uploader_url self.version = version if version_orig is not None: - self.version_orig = version_orig + self.version_orig = version_orig if vulnerability_scan_results_url is not None: - self.vulnerability_scan_results_url = vulnerability_scan_results_url + self.vulnerability_scan_results_url = vulnerability_scan_results_url @property def architectures(self): - """ - Gets the architectures of this VagrantPackageUpload. - + """Gets the architectures of this VagrantPackageUpload. # noqa: E501 + + # noqa: E501 - :return: The architectures of this VagrantPackageUpload. + :return: The architectures of this VagrantPackageUpload. # noqa: E501 :rtype: list[PackagesownerrepoArchitectures] """ return self._architectures @architectures.setter def architectures(self, architectures): - """ - Sets the architectures of this VagrantPackageUpload. - + """Sets the architectures of this VagrantPackageUpload. + + # noqa: E501 - :param architectures: The architectures of this VagrantPackageUpload. + :param architectures: The architectures of this VagrantPackageUpload. # noqa: E501 :type: list[PackagesownerrepoArchitectures] """ @@ -390,22 +394,22 @@ def architectures(self, architectures): @property def cdn_url(self): - """ - Gets the cdn_url of this VagrantPackageUpload. - + """Gets the cdn_url of this VagrantPackageUpload. # noqa: E501 - :return: The cdn_url of this VagrantPackageUpload. + # noqa: E501 + + :return: The cdn_url of this VagrantPackageUpload. # noqa: E501 :rtype: str """ return self._cdn_url @cdn_url.setter def cdn_url(self, cdn_url): - """ - Sets the cdn_url of this VagrantPackageUpload. - + """Sets the cdn_url of this VagrantPackageUpload. - :param cdn_url: The cdn_url of this VagrantPackageUpload. + # noqa: E501 + + :param cdn_url: The cdn_url of this VagrantPackageUpload. # noqa: E501 :type: str """ @@ -413,22 +417,22 @@ def cdn_url(self, cdn_url): @property def checksum_md5(self): - """ - Gets the checksum_md5 of this VagrantPackageUpload. - + """Gets the checksum_md5 of this VagrantPackageUpload. # noqa: E501 - :return: The checksum_md5 of this VagrantPackageUpload. + # noqa: E501 + + :return: The checksum_md5 of this VagrantPackageUpload. # noqa: E501 :rtype: str """ return self._checksum_md5 @checksum_md5.setter def checksum_md5(self, checksum_md5): - """ - Sets the checksum_md5 of this VagrantPackageUpload. - + """Sets the checksum_md5 of this VagrantPackageUpload. - :param checksum_md5: The checksum_md5 of this VagrantPackageUpload. + # noqa: E501 + + :param checksum_md5: The checksum_md5 of this VagrantPackageUpload. # noqa: E501 :type: str """ @@ -436,22 +440,22 @@ def checksum_md5(self, checksum_md5): @property def checksum_sha1(self): - """ - Gets the checksum_sha1 of this VagrantPackageUpload. - + """Gets the checksum_sha1 of this VagrantPackageUpload. # noqa: E501 + + # noqa: E501 - :return: The checksum_sha1 of this VagrantPackageUpload. + :return: The checksum_sha1 of this VagrantPackageUpload. # noqa: E501 :rtype: str """ return self._checksum_sha1 @checksum_sha1.setter def checksum_sha1(self, checksum_sha1): - """ - Sets the checksum_sha1 of this VagrantPackageUpload. - + """Sets the checksum_sha1 of this VagrantPackageUpload. + + # noqa: E501 - :param checksum_sha1: The checksum_sha1 of this VagrantPackageUpload. + :param checksum_sha1: The checksum_sha1 of this VagrantPackageUpload. # noqa: E501 :type: str """ @@ -459,22 +463,22 @@ def checksum_sha1(self, checksum_sha1): @property def checksum_sha256(self): - """ - Gets the checksum_sha256 of this VagrantPackageUpload. - + """Gets the checksum_sha256 of this VagrantPackageUpload. # noqa: E501 + + # noqa: E501 - :return: The checksum_sha256 of this VagrantPackageUpload. + :return: The checksum_sha256 of this VagrantPackageUpload. # noqa: E501 :rtype: str """ return self._checksum_sha256 @checksum_sha256.setter def checksum_sha256(self, checksum_sha256): - """ - Sets the checksum_sha256 of this VagrantPackageUpload. - + """Sets the checksum_sha256 of this VagrantPackageUpload. + + # noqa: E501 - :param checksum_sha256: The checksum_sha256 of this VagrantPackageUpload. + :param checksum_sha256: The checksum_sha256 of this VagrantPackageUpload. # noqa: E501 :type: str """ @@ -482,22 +486,22 @@ def checksum_sha256(self, checksum_sha256): @property def checksum_sha512(self): - """ - Gets the checksum_sha512 of this VagrantPackageUpload. - + """Gets the checksum_sha512 of this VagrantPackageUpload. # noqa: E501 + + # noqa: E501 - :return: The checksum_sha512 of this VagrantPackageUpload. + :return: The checksum_sha512 of this VagrantPackageUpload. # noqa: E501 :rtype: str """ return self._checksum_sha512 @checksum_sha512.setter def checksum_sha512(self, checksum_sha512): - """ - Sets the checksum_sha512 of this VagrantPackageUpload. - + """Sets the checksum_sha512 of this VagrantPackageUpload. + + # noqa: E501 - :param checksum_sha512: The checksum_sha512 of this VagrantPackageUpload. + :param checksum_sha512: The checksum_sha512 of this VagrantPackageUpload. # noqa: E501 :type: str """ @@ -505,22 +509,22 @@ def checksum_sha512(self, checksum_sha512): @property def dependencies_checksum_md5(self): - """ - Gets the dependencies_checksum_md5 of this VagrantPackageUpload. - A checksum of all of the package's dependencies. + """Gets the dependencies_checksum_md5 of this VagrantPackageUpload. # noqa: E501 + + A checksum of all of the package's dependencies. # noqa: E501 - :return: The dependencies_checksum_md5 of this VagrantPackageUpload. + :return: The dependencies_checksum_md5 of this VagrantPackageUpload. # noqa: E501 :rtype: str """ return self._dependencies_checksum_md5 @dependencies_checksum_md5.setter def dependencies_checksum_md5(self, dependencies_checksum_md5): - """ - Sets the dependencies_checksum_md5 of this VagrantPackageUpload. - A checksum of all of the package's dependencies. + """Sets the dependencies_checksum_md5 of this VagrantPackageUpload. + + A checksum of all of the package's dependencies. # noqa: E501 - :param dependencies_checksum_md5: The dependencies_checksum_md5 of this VagrantPackageUpload. + :param dependencies_checksum_md5: The dependencies_checksum_md5 of this VagrantPackageUpload. # noqa: E501 :type: str """ @@ -528,22 +532,22 @@ def dependencies_checksum_md5(self, dependencies_checksum_md5): @property def dependencies_url(self): - """ - Gets the dependencies_url of this VagrantPackageUpload. - + """Gets the dependencies_url of this VagrantPackageUpload. # noqa: E501 + + # noqa: E501 - :return: The dependencies_url of this VagrantPackageUpload. + :return: The dependencies_url of this VagrantPackageUpload. # noqa: E501 :rtype: str """ return self._dependencies_url @dependencies_url.setter def dependencies_url(self, dependencies_url): - """ - Sets the dependencies_url of this VagrantPackageUpload. - + """Sets the dependencies_url of this VagrantPackageUpload. - :param dependencies_url: The dependencies_url of this VagrantPackageUpload. + # noqa: E501 + + :param dependencies_url: The dependencies_url of this VagrantPackageUpload. # noqa: E501 :type: str """ @@ -551,22 +555,22 @@ def dependencies_url(self, dependencies_url): @property def description(self): - """ - Gets the description of this VagrantPackageUpload. - A textual description of this package. + """Gets the description of this VagrantPackageUpload. # noqa: E501 - :return: The description of this VagrantPackageUpload. + A textual description of this package. # noqa: E501 + + :return: The description of this VagrantPackageUpload. # noqa: E501 :rtype: str """ return self._description @description.setter def description(self, description): - """ - Sets the description of this VagrantPackageUpload. - A textual description of this package. + """Sets the description of this VagrantPackageUpload. - :param description: The description of this VagrantPackageUpload. + A textual description of this package. # noqa: E501 + + :param description: The description of this VagrantPackageUpload. # noqa: E501 :type: str """ @@ -574,22 +578,22 @@ def description(self, description): @property def distro(self): - """ - Gets the distro of this VagrantPackageUpload. - + """Gets the distro of this VagrantPackageUpload. # noqa: E501 - :return: The distro of this VagrantPackageUpload. + # noqa: E501 + + :return: The distro of this VagrantPackageUpload. # noqa: E501 :rtype: object """ return self._distro @distro.setter def distro(self, distro): - """ - Sets the distro of this VagrantPackageUpload. - + """Sets the distro of this VagrantPackageUpload. + + # noqa: E501 - :param distro: The distro of this VagrantPackageUpload. + :param distro: The distro of this VagrantPackageUpload. # noqa: E501 :type: object """ @@ -597,22 +601,22 @@ def distro(self, distro): @property def distro_version(self): - """ - Gets the distro_version of this VagrantPackageUpload. - + """Gets the distro_version of this VagrantPackageUpload. # noqa: E501 + + # noqa: E501 - :return: The distro_version of this VagrantPackageUpload. + :return: The distro_version of this VagrantPackageUpload. # noqa: E501 :rtype: object """ return self._distro_version @distro_version.setter def distro_version(self, distro_version): - """ - Sets the distro_version of this VagrantPackageUpload. - + """Sets the distro_version of this VagrantPackageUpload. + + # noqa: E501 - :param distro_version: The distro_version of this VagrantPackageUpload. + :param distro_version: The distro_version of this VagrantPackageUpload. # noqa: E501 :type: object """ @@ -620,22 +624,22 @@ def distro_version(self, distro_version): @property def downloads(self): - """ - Gets the downloads of this VagrantPackageUpload. - + """Gets the downloads of this VagrantPackageUpload. # noqa: E501 + + # noqa: E501 - :return: The downloads of this VagrantPackageUpload. + :return: The downloads of this VagrantPackageUpload. # noqa: E501 :rtype: int """ return self._downloads @downloads.setter def downloads(self, downloads): - """ - Sets the downloads of this VagrantPackageUpload. - + """Sets the downloads of this VagrantPackageUpload. + + # noqa: E501 - :param downloads: The downloads of this VagrantPackageUpload. + :param downloads: The downloads of this VagrantPackageUpload. # noqa: E501 :type: int """ @@ -643,22 +647,22 @@ def downloads(self, downloads): @property def epoch(self): - """ - Gets the epoch of this VagrantPackageUpload. - The epoch of the package version (if any). + """Gets the epoch of this VagrantPackageUpload. # noqa: E501 - :return: The epoch of this VagrantPackageUpload. + The epoch of the package version (if any). # noqa: E501 + + :return: The epoch of this VagrantPackageUpload. # noqa: E501 :rtype: int """ return self._epoch @epoch.setter def epoch(self, epoch): - """ - Sets the epoch of this VagrantPackageUpload. - The epoch of the package version (if any). + """Sets the epoch of this VagrantPackageUpload. - :param epoch: The epoch of this VagrantPackageUpload. + The epoch of the package version (if any). # noqa: E501 + + :param epoch: The epoch of this VagrantPackageUpload. # noqa: E501 :type: int """ @@ -666,22 +670,22 @@ def epoch(self, epoch): @property def extension(self): - """ - Gets the extension of this VagrantPackageUpload. - + """Gets the extension of this VagrantPackageUpload. # noqa: E501 - :return: The extension of this VagrantPackageUpload. + # noqa: E501 + + :return: The extension of this VagrantPackageUpload. # noqa: E501 :rtype: str """ return self._extension @extension.setter def extension(self, extension): - """ - Sets the extension of this VagrantPackageUpload. - + """Sets the extension of this VagrantPackageUpload. - :param extension: The extension of this VagrantPackageUpload. + # noqa: E501 + + :param extension: The extension of this VagrantPackageUpload. # noqa: E501 :type: str """ @@ -689,22 +693,22 @@ def extension(self, extension): @property def filename(self): - """ - Gets the filename of this VagrantPackageUpload. - + """Gets the filename of this VagrantPackageUpload. # noqa: E501 - :return: The filename of this VagrantPackageUpload. + # noqa: E501 + + :return: The filename of this VagrantPackageUpload. # noqa: E501 :rtype: str """ return self._filename @filename.setter def filename(self, filename): - """ - Sets the filename of this VagrantPackageUpload. - + """Sets the filename of this VagrantPackageUpload. - :param filename: The filename of this VagrantPackageUpload. + # noqa: E501 + + :param filename: The filename of this VagrantPackageUpload. # noqa: E501 :type: str """ @@ -712,22 +716,22 @@ def filename(self, filename): @property def files(self): - """ - Gets the files of this VagrantPackageUpload. - + """Gets the files of this VagrantPackageUpload. # noqa: E501 - :return: The files of this VagrantPackageUpload. + # noqa: E501 + + :return: The files of this VagrantPackageUpload. # noqa: E501 :rtype: list[PackagesownerrepoFiles] """ return self._files @files.setter def files(self, files): - """ - Sets the files of this VagrantPackageUpload. - + """Sets the files of this VagrantPackageUpload. - :param files: The files of this VagrantPackageUpload. + # noqa: E501 + + :param files: The files of this VagrantPackageUpload. # noqa: E501 :type: list[PackagesownerrepoFiles] """ @@ -735,22 +739,22 @@ def files(self, files): @property def format(self): - """ - Gets the format of this VagrantPackageUpload. - + """Gets the format of this VagrantPackageUpload. # noqa: E501 + + # noqa: E501 - :return: The format of this VagrantPackageUpload. + :return: The format of this VagrantPackageUpload. # noqa: E501 :rtype: str """ return self._format @format.setter def format(self, format): - """ - Sets the format of this VagrantPackageUpload. - + """Sets the format of this VagrantPackageUpload. + + # noqa: E501 - :param format: The format of this VagrantPackageUpload. + :param format: The format of this VagrantPackageUpload. # noqa: E501 :type: str """ @@ -758,22 +762,22 @@ def format(self, format): @property def format_url(self): - """ - Gets the format_url of this VagrantPackageUpload. - + """Gets the format_url of this VagrantPackageUpload. # noqa: E501 + + # noqa: E501 - :return: The format_url of this VagrantPackageUpload. + :return: The format_url of this VagrantPackageUpload. # noqa: E501 :rtype: str """ return self._format_url @format_url.setter def format_url(self, format_url): - """ - Sets the format_url of this VagrantPackageUpload. - + """Sets the format_url of this VagrantPackageUpload. + + # noqa: E501 - :param format_url: The format_url of this VagrantPackageUpload. + :param format_url: The format_url of this VagrantPackageUpload. # noqa: E501 :type: str """ @@ -781,22 +785,22 @@ def format_url(self, format_url): @property def identifier_perm(self): - """ - Gets the identifier_perm of this VagrantPackageUpload. - Unique and permanent identifier for the package. + """Gets the identifier_perm of this VagrantPackageUpload. # noqa: E501 + + Unique and permanent identifier for the package. # noqa: E501 - :return: The identifier_perm of this VagrantPackageUpload. + :return: The identifier_perm of this VagrantPackageUpload. # noqa: E501 :rtype: str """ return self._identifier_perm @identifier_perm.setter def identifier_perm(self, identifier_perm): - """ - Sets the identifier_perm of this VagrantPackageUpload. - Unique and permanent identifier for the package. + """Sets the identifier_perm of this VagrantPackageUpload. - :param identifier_perm: The identifier_perm of this VagrantPackageUpload. + Unique and permanent identifier for the package. # noqa: E501 + + :param identifier_perm: The identifier_perm of this VagrantPackageUpload. # noqa: E501 :type: str """ @@ -804,22 +808,22 @@ def identifier_perm(self, identifier_perm): @property def indexed(self): - """ - Gets the indexed of this VagrantPackageUpload. - + """Gets the indexed of this VagrantPackageUpload. # noqa: E501 - :return: The indexed of this VagrantPackageUpload. + # noqa: E501 + + :return: The indexed of this VagrantPackageUpload. # noqa: E501 :rtype: bool """ return self._indexed @indexed.setter def indexed(self, indexed): - """ - Sets the indexed of this VagrantPackageUpload. - + """Sets the indexed of this VagrantPackageUpload. - :param indexed: The indexed of this VagrantPackageUpload. + # noqa: E501 + + :param indexed: The indexed of this VagrantPackageUpload. # noqa: E501 :type: bool """ @@ -827,22 +831,22 @@ def indexed(self, indexed): @property def is_sync_awaiting(self): - """ - Gets the is_sync_awaiting of this VagrantPackageUpload. - + """Gets the is_sync_awaiting of this VagrantPackageUpload. # noqa: E501 - :return: The is_sync_awaiting of this VagrantPackageUpload. + # noqa: E501 + + :return: The is_sync_awaiting of this VagrantPackageUpload. # noqa: E501 :rtype: bool """ return self._is_sync_awaiting @is_sync_awaiting.setter def is_sync_awaiting(self, is_sync_awaiting): - """ - Sets the is_sync_awaiting of this VagrantPackageUpload. - + """Sets the is_sync_awaiting of this VagrantPackageUpload. + + # noqa: E501 - :param is_sync_awaiting: The is_sync_awaiting of this VagrantPackageUpload. + :param is_sync_awaiting: The is_sync_awaiting of this VagrantPackageUpload. # noqa: E501 :type: bool """ @@ -850,22 +854,22 @@ def is_sync_awaiting(self, is_sync_awaiting): @property def is_sync_completed(self): - """ - Gets the is_sync_completed of this VagrantPackageUpload. - + """Gets the is_sync_completed of this VagrantPackageUpload. # noqa: E501 + + # noqa: E501 - :return: The is_sync_completed of this VagrantPackageUpload. + :return: The is_sync_completed of this VagrantPackageUpload. # noqa: E501 :rtype: bool """ return self._is_sync_completed @is_sync_completed.setter def is_sync_completed(self, is_sync_completed): - """ - Sets the is_sync_completed of this VagrantPackageUpload. - + """Sets the is_sync_completed of this VagrantPackageUpload. + + # noqa: E501 - :param is_sync_completed: The is_sync_completed of this VagrantPackageUpload. + :param is_sync_completed: The is_sync_completed of this VagrantPackageUpload. # noqa: E501 :type: bool """ @@ -873,22 +877,22 @@ def is_sync_completed(self, is_sync_completed): @property def is_sync_failed(self): - """ - Gets the is_sync_failed of this VagrantPackageUpload. - + """Gets the is_sync_failed of this VagrantPackageUpload. # noqa: E501 + + # noqa: E501 - :return: The is_sync_failed of this VagrantPackageUpload. + :return: The is_sync_failed of this VagrantPackageUpload. # noqa: E501 :rtype: bool """ return self._is_sync_failed @is_sync_failed.setter def is_sync_failed(self, is_sync_failed): - """ - Sets the is_sync_failed of this VagrantPackageUpload. - + """Sets the is_sync_failed of this VagrantPackageUpload. + + # noqa: E501 - :param is_sync_failed: The is_sync_failed of this VagrantPackageUpload. + :param is_sync_failed: The is_sync_failed of this VagrantPackageUpload. # noqa: E501 :type: bool """ @@ -896,22 +900,22 @@ def is_sync_failed(self, is_sync_failed): @property def is_sync_in_flight(self): - """ - Gets the is_sync_in_flight of this VagrantPackageUpload. - + """Gets the is_sync_in_flight of this VagrantPackageUpload. # noqa: E501 + + # noqa: E501 - :return: The is_sync_in_flight of this VagrantPackageUpload. + :return: The is_sync_in_flight of this VagrantPackageUpload. # noqa: E501 :rtype: bool """ return self._is_sync_in_flight @is_sync_in_flight.setter def is_sync_in_flight(self, is_sync_in_flight): - """ - Sets the is_sync_in_flight of this VagrantPackageUpload. - + """Sets the is_sync_in_flight of this VagrantPackageUpload. + + # noqa: E501 - :param is_sync_in_flight: The is_sync_in_flight of this VagrantPackageUpload. + :param is_sync_in_flight: The is_sync_in_flight of this VagrantPackageUpload. # noqa: E501 :type: bool """ @@ -919,22 +923,22 @@ def is_sync_in_flight(self, is_sync_in_flight): @property def is_sync_in_progress(self): - """ - Gets the is_sync_in_progress of this VagrantPackageUpload. - + """Gets the is_sync_in_progress of this VagrantPackageUpload. # noqa: E501 + + # noqa: E501 - :return: The is_sync_in_progress of this VagrantPackageUpload. + :return: The is_sync_in_progress of this VagrantPackageUpload. # noqa: E501 :rtype: bool """ return self._is_sync_in_progress @is_sync_in_progress.setter def is_sync_in_progress(self, is_sync_in_progress): - """ - Sets the is_sync_in_progress of this VagrantPackageUpload. - + """Sets the is_sync_in_progress of this VagrantPackageUpload. + + # noqa: E501 - :param is_sync_in_progress: The is_sync_in_progress of this VagrantPackageUpload. + :param is_sync_in_progress: The is_sync_in_progress of this VagrantPackageUpload. # noqa: E501 :type: bool """ @@ -942,22 +946,22 @@ def is_sync_in_progress(self, is_sync_in_progress): @property def license(self): - """ - Gets the license of this VagrantPackageUpload. - The license of this package. + """Gets the license of this VagrantPackageUpload. # noqa: E501 - :return: The license of this VagrantPackageUpload. + The license of this package. # noqa: E501 + + :return: The license of this VagrantPackageUpload. # noqa: E501 :rtype: str """ return self._license @license.setter def license(self, license): - """ - Sets the license of this VagrantPackageUpload. - The license of this package. + """Sets the license of this VagrantPackageUpload. - :param license: The license of this VagrantPackageUpload. + The license of this package. # noqa: E501 + + :param license: The license of this VagrantPackageUpload. # noqa: E501 :type: str """ @@ -965,47 +969,47 @@ def license(self, license): @property def name(self): - """ - Gets the name of this VagrantPackageUpload. - The name of this package. + """Gets the name of this VagrantPackageUpload. # noqa: E501 - :return: The name of this VagrantPackageUpload. + The name of this package. # noqa: E501 + + :return: The name of this VagrantPackageUpload. # noqa: E501 :rtype: str """ return self._name @name.setter def name(self, name): - """ - Sets the name of this VagrantPackageUpload. - The name of this package. + """Sets the name of this VagrantPackageUpload. - :param name: The name of this VagrantPackageUpload. + The name of this package. # noqa: E501 + + :param name: The name of this VagrantPackageUpload. # noqa: E501 :type: str """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") + if self._configuration.client_side_validation and name is None: + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 self._name = name @property def namespace(self): - """ - Gets the namespace of this VagrantPackageUpload. - + """Gets the namespace of this VagrantPackageUpload. # noqa: E501 + + # noqa: E501 - :return: The namespace of this VagrantPackageUpload. + :return: The namespace of this VagrantPackageUpload. # noqa: E501 :rtype: str """ return self._namespace @namespace.setter def namespace(self, namespace): - """ - Sets the namespace of this VagrantPackageUpload. - + """Sets the namespace of this VagrantPackageUpload. + + # noqa: E501 - :param namespace: The namespace of this VagrantPackageUpload. + :param namespace: The namespace of this VagrantPackageUpload. # noqa: E501 :type: str """ @@ -1013,22 +1017,22 @@ def namespace(self, namespace): @property def namespace_url(self): - """ - Gets the namespace_url of this VagrantPackageUpload. - + """Gets the namespace_url of this VagrantPackageUpload. # noqa: E501 + + # noqa: E501 - :return: The namespace_url of this VagrantPackageUpload. + :return: The namespace_url of this VagrantPackageUpload. # noqa: E501 :rtype: str """ return self._namespace_url @namespace_url.setter def namespace_url(self, namespace_url): - """ - Sets the namespace_url of this VagrantPackageUpload. - + """Sets the namespace_url of this VagrantPackageUpload. + + # noqa: E501 - :param namespace_url: The namespace_url of this VagrantPackageUpload. + :param namespace_url: The namespace_url of this VagrantPackageUpload. # noqa: E501 :type: str """ @@ -1036,22 +1040,22 @@ def namespace_url(self, namespace_url): @property def num_files(self): - """ - Gets the num_files of this VagrantPackageUpload. - + """Gets the num_files of this VagrantPackageUpload. # noqa: E501 + + # noqa: E501 - :return: The num_files of this VagrantPackageUpload. + :return: The num_files of this VagrantPackageUpload. # noqa: E501 :rtype: int """ return self._num_files @num_files.setter def num_files(self, num_files): - """ - Sets the num_files of this VagrantPackageUpload. - + """Sets the num_files of this VagrantPackageUpload. - :param num_files: The num_files of this VagrantPackageUpload. + # noqa: E501 + + :param num_files: The num_files of this VagrantPackageUpload. # noqa: E501 :type: int """ @@ -1059,22 +1063,22 @@ def num_files(self, num_files): @property def package_type(self): - """ - Gets the package_type of this VagrantPackageUpload. - The type of package contents. + """Gets the package_type of this VagrantPackageUpload. # noqa: E501 - :return: The package_type of this VagrantPackageUpload. + The type of package contents. # noqa: E501 + + :return: The package_type of this VagrantPackageUpload. # noqa: E501 :rtype: str """ return self._package_type @package_type.setter def package_type(self, package_type): - """ - Sets the package_type of this VagrantPackageUpload. - The type of package contents. + """Sets the package_type of this VagrantPackageUpload. - :param package_type: The package_type of this VagrantPackageUpload. + The type of package contents. # noqa: E501 + + :param package_type: The package_type of this VagrantPackageUpload. # noqa: E501 :type: str """ @@ -1082,47 +1086,47 @@ def package_type(self, package_type): @property def provider(self): - """ - Gets the provider of this VagrantPackageUpload. - The virtual machine provider for the box. + """Gets the provider of this VagrantPackageUpload. # noqa: E501 - :return: The provider of this VagrantPackageUpload. + The virtual machine provider for the box. # noqa: E501 + + :return: The provider of this VagrantPackageUpload. # noqa: E501 :rtype: str """ return self._provider @provider.setter def provider(self, provider): - """ - Sets the provider of this VagrantPackageUpload. - The virtual machine provider for the box. + """Sets the provider of this VagrantPackageUpload. - :param provider: The provider of this VagrantPackageUpload. + The virtual machine provider for the box. # noqa: E501 + + :param provider: The provider of this VagrantPackageUpload. # noqa: E501 :type: str """ - if provider is None: - raise ValueError("Invalid value for `provider`, must not be `None`") + if self._configuration.client_side_validation and provider is None: + raise ValueError("Invalid value for `provider`, must not be `None`") # noqa: E501 self._provider = provider @property def release(self): - """ - Gets the release of this VagrantPackageUpload. - The release of the package version (if any). + """Gets the release of this VagrantPackageUpload. # noqa: E501 - :return: The release of this VagrantPackageUpload. + The release of the package version (if any). # noqa: E501 + + :return: The release of this VagrantPackageUpload. # noqa: E501 :rtype: str """ return self._release @release.setter def release(self, release): - """ - Sets the release of this VagrantPackageUpload. - The release of the package version (if any). + """Sets the release of this VagrantPackageUpload. - :param release: The release of this VagrantPackageUpload. + The release of the package version (if any). # noqa: E501 + + :param release: The release of this VagrantPackageUpload. # noqa: E501 :type: str """ @@ -1130,22 +1134,22 @@ def release(self, release): @property def repository(self): - """ - Gets the repository of this VagrantPackageUpload. - + """Gets the repository of this VagrantPackageUpload. # noqa: E501 - :return: The repository of this VagrantPackageUpload. + # noqa: E501 + + :return: The repository of this VagrantPackageUpload. # noqa: E501 :rtype: str """ return self._repository @repository.setter def repository(self, repository): - """ - Sets the repository of this VagrantPackageUpload. - + """Sets the repository of this VagrantPackageUpload. + + # noqa: E501 - :param repository: The repository of this VagrantPackageUpload. + :param repository: The repository of this VagrantPackageUpload. # noqa: E501 :type: str """ @@ -1153,22 +1157,22 @@ def repository(self, repository): @property def repository_url(self): - """ - Gets the repository_url of this VagrantPackageUpload. - + """Gets the repository_url of this VagrantPackageUpload. # noqa: E501 + + # noqa: E501 - :return: The repository_url of this VagrantPackageUpload. + :return: The repository_url of this VagrantPackageUpload. # noqa: E501 :rtype: str """ return self._repository_url @repository_url.setter def repository_url(self, repository_url): - """ - Sets the repository_url of this VagrantPackageUpload. - + """Sets the repository_url of this VagrantPackageUpload. + + # noqa: E501 - :param repository_url: The repository_url of this VagrantPackageUpload. + :param repository_url: The repository_url of this VagrantPackageUpload. # noqa: E501 :type: str """ @@ -1176,22 +1180,22 @@ def repository_url(self, repository_url): @property def security_scan_completed_at(self): - """ - Gets the security_scan_completed_at of this VagrantPackageUpload. - The datetime the security scanning was completed. + """Gets the security_scan_completed_at of this VagrantPackageUpload. # noqa: E501 + + The datetime the security scanning was completed. # noqa: E501 - :return: The security_scan_completed_at of this VagrantPackageUpload. + :return: The security_scan_completed_at of this VagrantPackageUpload. # noqa: E501 :rtype: str """ return self._security_scan_completed_at @security_scan_completed_at.setter def security_scan_completed_at(self, security_scan_completed_at): - """ - Sets the security_scan_completed_at of this VagrantPackageUpload. - The datetime the security scanning was completed. + """Sets the security_scan_completed_at of this VagrantPackageUpload. + + The datetime the security scanning was completed. # noqa: E501 - :param security_scan_completed_at: The security_scan_completed_at of this VagrantPackageUpload. + :param security_scan_completed_at: The security_scan_completed_at of this VagrantPackageUpload. # noqa: E501 :type: str """ @@ -1199,22 +1203,22 @@ def security_scan_completed_at(self, security_scan_completed_at): @property def security_scan_started_at(self): - """ - Gets the security_scan_started_at of this VagrantPackageUpload. - The datetime the security scanning was started. + """Gets the security_scan_started_at of this VagrantPackageUpload. # noqa: E501 - :return: The security_scan_started_at of this VagrantPackageUpload. + The datetime the security scanning was started. # noqa: E501 + + :return: The security_scan_started_at of this VagrantPackageUpload. # noqa: E501 :rtype: str """ return self._security_scan_started_at @security_scan_started_at.setter def security_scan_started_at(self, security_scan_started_at): - """ - Sets the security_scan_started_at of this VagrantPackageUpload. - The datetime the security scanning was started. + """Sets the security_scan_started_at of this VagrantPackageUpload. - :param security_scan_started_at: The security_scan_started_at of this VagrantPackageUpload. + The datetime the security scanning was started. # noqa: E501 + + :param security_scan_started_at: The security_scan_started_at of this VagrantPackageUpload. # noqa: E501 :type: str """ @@ -1222,22 +1226,22 @@ def security_scan_started_at(self, security_scan_started_at): @property def security_scan_status(self): - """ - Gets the security_scan_status of this VagrantPackageUpload. - + """Gets the security_scan_status of this VagrantPackageUpload. # noqa: E501 - :return: The security_scan_status of this VagrantPackageUpload. + # noqa: E501 + + :return: The security_scan_status of this VagrantPackageUpload. # noqa: E501 :rtype: str """ return self._security_scan_status @security_scan_status.setter def security_scan_status(self, security_scan_status): - """ - Sets the security_scan_status of this VagrantPackageUpload. - + """Sets the security_scan_status of this VagrantPackageUpload. - :param security_scan_status: The security_scan_status of this VagrantPackageUpload. + # noqa: E501 + + :param security_scan_status: The security_scan_status of this VagrantPackageUpload. # noqa: E501 :type: str """ @@ -1245,22 +1249,22 @@ def security_scan_status(self, security_scan_status): @property def security_scan_status_updated_at(self): - """ - Gets the security_scan_status_updated_at of this VagrantPackageUpload. - The datetime the security scanning status was updated. + """Gets the security_scan_status_updated_at of this VagrantPackageUpload. # noqa: E501 + + The datetime the security scanning status was updated. # noqa: E501 - :return: The security_scan_status_updated_at of this VagrantPackageUpload. + :return: The security_scan_status_updated_at of this VagrantPackageUpload. # noqa: E501 :rtype: str """ return self._security_scan_status_updated_at @security_scan_status_updated_at.setter def security_scan_status_updated_at(self, security_scan_status_updated_at): - """ - Sets the security_scan_status_updated_at of this VagrantPackageUpload. - The datetime the security scanning status was updated. + """Sets the security_scan_status_updated_at of this VagrantPackageUpload. + + The datetime the security scanning status was updated. # noqa: E501 - :param security_scan_status_updated_at: The security_scan_status_updated_at of this VagrantPackageUpload. + :param security_scan_status_updated_at: The security_scan_status_updated_at of this VagrantPackageUpload. # noqa: E501 :type: str """ @@ -1268,22 +1272,22 @@ def security_scan_status_updated_at(self, security_scan_status_updated_at): @property def self_html_url(self): - """ - Gets the self_html_url of this VagrantPackageUpload. - + """Gets the self_html_url of this VagrantPackageUpload. # noqa: E501 + + # noqa: E501 - :return: The self_html_url of this VagrantPackageUpload. + :return: The self_html_url of this VagrantPackageUpload. # noqa: E501 :rtype: str """ return self._self_html_url @self_html_url.setter def self_html_url(self, self_html_url): - """ - Sets the self_html_url of this VagrantPackageUpload. - + """Sets the self_html_url of this VagrantPackageUpload. + + # noqa: E501 - :param self_html_url: The self_html_url of this VagrantPackageUpload. + :param self_html_url: The self_html_url of this VagrantPackageUpload. # noqa: E501 :type: str """ @@ -1291,22 +1295,22 @@ def self_html_url(self, self_html_url): @property def self_url(self): - """ - Gets the self_url of this VagrantPackageUpload. - + """Gets the self_url of this VagrantPackageUpload. # noqa: E501 + + # noqa: E501 - :return: The self_url of this VagrantPackageUpload. + :return: The self_url of this VagrantPackageUpload. # noqa: E501 :rtype: str """ return self._self_url @self_url.setter def self_url(self, self_url): - """ - Sets the self_url of this VagrantPackageUpload. - + """Sets the self_url of this VagrantPackageUpload. + + # noqa: E501 - :param self_url: The self_url of this VagrantPackageUpload. + :param self_url: The self_url of this VagrantPackageUpload. # noqa: E501 :type: str """ @@ -1314,22 +1318,22 @@ def self_url(self, self_url): @property def signature_url(self): - """ - Gets the signature_url of this VagrantPackageUpload. - + """Gets the signature_url of this VagrantPackageUpload. # noqa: E501 + + # noqa: E501 - :return: The signature_url of this VagrantPackageUpload. + :return: The signature_url of this VagrantPackageUpload. # noqa: E501 :rtype: str """ return self._signature_url @signature_url.setter def signature_url(self, signature_url): - """ - Sets the signature_url of this VagrantPackageUpload. - + """Sets the signature_url of this VagrantPackageUpload. + + # noqa: E501 - :param signature_url: The signature_url of this VagrantPackageUpload. + :param signature_url: The signature_url of this VagrantPackageUpload. # noqa: E501 :type: str """ @@ -1337,22 +1341,22 @@ def signature_url(self, signature_url): @property def size(self): - """ - Gets the size of this VagrantPackageUpload. - The calculated size of the package. + """Gets the size of this VagrantPackageUpload. # noqa: E501 + + The calculated size of the package. # noqa: E501 - :return: The size of this VagrantPackageUpload. + :return: The size of this VagrantPackageUpload. # noqa: E501 :rtype: int """ return self._size @size.setter def size(self, size): - """ - Sets the size of this VagrantPackageUpload. - The calculated size of the package. + """Sets the size of this VagrantPackageUpload. - :param size: The size of this VagrantPackageUpload. + The calculated size of the package. # noqa: E501 + + :param size: The size of this VagrantPackageUpload. # noqa: E501 :type: int """ @@ -1360,22 +1364,22 @@ def size(self, size): @property def slug(self): - """ - Gets the slug of this VagrantPackageUpload. - The public unique identifier for the package. + """Gets the slug of this VagrantPackageUpload. # noqa: E501 - :return: The slug of this VagrantPackageUpload. + The public unique identifier for the package. # noqa: E501 + + :return: The slug of this VagrantPackageUpload. # noqa: E501 :rtype: str """ return self._slug @slug.setter def slug(self, slug): - """ - Sets the slug of this VagrantPackageUpload. - The public unique identifier for the package. + """Sets the slug of this VagrantPackageUpload. - :param slug: The slug of this VagrantPackageUpload. + The public unique identifier for the package. # noqa: E501 + + :param slug: The slug of this VagrantPackageUpload. # noqa: E501 :type: str """ @@ -1383,22 +1387,22 @@ def slug(self, slug): @property def slug_perm(self): - """ - Gets the slug_perm of this VagrantPackageUpload. - + """Gets the slug_perm of this VagrantPackageUpload. # noqa: E501 - :return: The slug_perm of this VagrantPackageUpload. + # noqa: E501 + + :return: The slug_perm of this VagrantPackageUpload. # noqa: E501 :rtype: str """ return self._slug_perm @slug_perm.setter def slug_perm(self, slug_perm): - """ - Sets the slug_perm of this VagrantPackageUpload. - + """Sets the slug_perm of this VagrantPackageUpload. + + # noqa: E501 - :param slug_perm: The slug_perm of this VagrantPackageUpload. + :param slug_perm: The slug_perm of this VagrantPackageUpload. # noqa: E501 :type: str """ @@ -1406,22 +1410,22 @@ def slug_perm(self, slug_perm): @property def stage(self): - """ - Gets the stage of this VagrantPackageUpload. - The synchronisation (in progress) stage of the package. + """Gets the stage of this VagrantPackageUpload. # noqa: E501 + + The synchronisation (in progress) stage of the package. # noqa: E501 - :return: The stage of this VagrantPackageUpload. + :return: The stage of this VagrantPackageUpload. # noqa: E501 :rtype: str """ return self._stage @stage.setter def stage(self, stage): - """ - Sets the stage of this VagrantPackageUpload. - The synchronisation (in progress) stage of the package. + """Sets the stage of this VagrantPackageUpload. + + The synchronisation (in progress) stage of the package. # noqa: E501 - :param stage: The stage of this VagrantPackageUpload. + :param stage: The stage of this VagrantPackageUpload. # noqa: E501 :type: str """ @@ -1429,22 +1433,22 @@ def stage(self, stage): @property def stage_str(self): - """ - Gets the stage_str of this VagrantPackageUpload. - + """Gets the stage_str of this VagrantPackageUpload. # noqa: E501 + + # noqa: E501 - :return: The stage_str of this VagrantPackageUpload. + :return: The stage_str of this VagrantPackageUpload. # noqa: E501 :rtype: str """ return self._stage_str @stage_str.setter def stage_str(self, stage_str): - """ - Sets the stage_str of this VagrantPackageUpload. - + """Sets the stage_str of this VagrantPackageUpload. + + # noqa: E501 - :param stage_str: The stage_str of this VagrantPackageUpload. + :param stage_str: The stage_str of this VagrantPackageUpload. # noqa: E501 :type: str """ @@ -1452,22 +1456,22 @@ def stage_str(self, stage_str): @property def stage_updated_at(self): - """ - Gets the stage_updated_at of this VagrantPackageUpload. - The datetime the package stage was updated at. + """Gets the stage_updated_at of this VagrantPackageUpload. # noqa: E501 - :return: The stage_updated_at of this VagrantPackageUpload. + The datetime the package stage was updated at. # noqa: E501 + + :return: The stage_updated_at of this VagrantPackageUpload. # noqa: E501 :rtype: str """ return self._stage_updated_at @stage_updated_at.setter def stage_updated_at(self, stage_updated_at): - """ - Sets the stage_updated_at of this VagrantPackageUpload. - The datetime the package stage was updated at. + """Sets the stage_updated_at of this VagrantPackageUpload. - :param stage_updated_at: The stage_updated_at of this VagrantPackageUpload. + The datetime the package stage was updated at. # noqa: E501 + + :param stage_updated_at: The stage_updated_at of this VagrantPackageUpload. # noqa: E501 :type: str """ @@ -1475,22 +1479,22 @@ def stage_updated_at(self, stage_updated_at): @property def status(self): - """ - Gets the status of this VagrantPackageUpload. - The synchronisation status of the package. + """Gets the status of this VagrantPackageUpload. # noqa: E501 - :return: The status of this VagrantPackageUpload. + The synchronisation status of the package. # noqa: E501 + + :return: The status of this VagrantPackageUpload. # noqa: E501 :rtype: str """ return self._status @status.setter def status(self, status): - """ - Sets the status of this VagrantPackageUpload. - The synchronisation status of the package. + """Sets the status of this VagrantPackageUpload. - :param status: The status of this VagrantPackageUpload. + The synchronisation status of the package. # noqa: E501 + + :param status: The status of this VagrantPackageUpload. # noqa: E501 :type: str """ @@ -1498,22 +1502,22 @@ def status(self, status): @property def status_reason(self): - """ - Gets the status_reason of this VagrantPackageUpload. - A textual description for the synchronous status reason (if any + """Gets the status_reason of this VagrantPackageUpload. # noqa: E501 - :return: The status_reason of this VagrantPackageUpload. + A textual description for the synchronous status reason (if any # noqa: E501 + + :return: The status_reason of this VagrantPackageUpload. # noqa: E501 :rtype: str """ return self._status_reason @status_reason.setter def status_reason(self, status_reason): - """ - Sets the status_reason of this VagrantPackageUpload. - A textual description for the synchronous status reason (if any + """Sets the status_reason of this VagrantPackageUpload. - :param status_reason: The status_reason of this VagrantPackageUpload. + A textual description for the synchronous status reason (if any # noqa: E501 + + :param status_reason: The status_reason of this VagrantPackageUpload. # noqa: E501 :type: str """ @@ -1521,22 +1525,22 @@ def status_reason(self, status_reason): @property def status_str(self): - """ - Gets the status_str of this VagrantPackageUpload. - + """Gets the status_str of this VagrantPackageUpload. # noqa: E501 - :return: The status_str of this VagrantPackageUpload. + # noqa: E501 + + :return: The status_str of this VagrantPackageUpload. # noqa: E501 :rtype: str """ return self._status_str @status_str.setter def status_str(self, status_str): - """ - Sets the status_str of this VagrantPackageUpload. - + """Sets the status_str of this VagrantPackageUpload. - :param status_str: The status_str of this VagrantPackageUpload. + # noqa: E501 + + :param status_str: The status_str of this VagrantPackageUpload. # noqa: E501 :type: str """ @@ -1544,22 +1548,22 @@ def status_str(self, status_str): @property def status_updated_at(self): - """ - Gets the status_updated_at of this VagrantPackageUpload. - The datetime the package status was updated at. + """Gets the status_updated_at of this VagrantPackageUpload. # noqa: E501 + + The datetime the package status was updated at. # noqa: E501 - :return: The status_updated_at of this VagrantPackageUpload. + :return: The status_updated_at of this VagrantPackageUpload. # noqa: E501 :rtype: str """ return self._status_updated_at @status_updated_at.setter def status_updated_at(self, status_updated_at): - """ - Sets the status_updated_at of this VagrantPackageUpload. - The datetime the package status was updated at. + """Sets the status_updated_at of this VagrantPackageUpload. + + The datetime the package status was updated at. # noqa: E501 - :param status_updated_at: The status_updated_at of this VagrantPackageUpload. + :param status_updated_at: The status_updated_at of this VagrantPackageUpload. # noqa: E501 :type: str """ @@ -1567,22 +1571,22 @@ def status_updated_at(self, status_updated_at): @property def status_url(self): - """ - Gets the status_url of this VagrantPackageUpload. - + """Gets the status_url of this VagrantPackageUpload. # noqa: E501 + + # noqa: E501 - :return: The status_url of this VagrantPackageUpload. + :return: The status_url of this VagrantPackageUpload. # noqa: E501 :rtype: str """ return self._status_url @status_url.setter def status_url(self, status_url): - """ - Sets the status_url of this VagrantPackageUpload. - + """Sets the status_url of this VagrantPackageUpload. + + # noqa: E501 - :param status_url: The status_url of this VagrantPackageUpload. + :param status_url: The status_url of this VagrantPackageUpload. # noqa: E501 :type: str """ @@ -1590,22 +1594,22 @@ def status_url(self, status_url): @property def subtype(self): - """ - Gets the subtype of this VagrantPackageUpload. - + """Gets the subtype of this VagrantPackageUpload. # noqa: E501 + + # noqa: E501 - :return: The subtype of this VagrantPackageUpload. + :return: The subtype of this VagrantPackageUpload. # noqa: E501 :rtype: str """ return self._subtype @subtype.setter def subtype(self, subtype): - """ - Sets the subtype of this VagrantPackageUpload. - + """Sets the subtype of this VagrantPackageUpload. - :param subtype: The subtype of this VagrantPackageUpload. + # noqa: E501 + + :param subtype: The subtype of this VagrantPackageUpload. # noqa: E501 :type: str """ @@ -1613,22 +1617,22 @@ def subtype(self, subtype): @property def summary(self): - """ - Gets the summary of this VagrantPackageUpload. - A one-liner synopsis of this package. + """Gets the summary of this VagrantPackageUpload. # noqa: E501 - :return: The summary of this VagrantPackageUpload. + A one-liner synopsis of this package. # noqa: E501 + + :return: The summary of this VagrantPackageUpload. # noqa: E501 :rtype: str """ return self._summary @summary.setter def summary(self, summary): - """ - Sets the summary of this VagrantPackageUpload. - A one-liner synopsis of this package. + """Sets the summary of this VagrantPackageUpload. - :param summary: The summary of this VagrantPackageUpload. + A one-liner synopsis of this package. # noqa: E501 + + :param summary: The summary of this VagrantPackageUpload. # noqa: E501 :type: str """ @@ -1636,22 +1640,22 @@ def summary(self, summary): @property def sync_finished_at(self): - """ - Gets the sync_finished_at of this VagrantPackageUpload. - The datetime the package sync was finished at. + """Gets the sync_finished_at of this VagrantPackageUpload. # noqa: E501 - :return: The sync_finished_at of this VagrantPackageUpload. + The datetime the package sync was finished at. # noqa: E501 + + :return: The sync_finished_at of this VagrantPackageUpload. # noqa: E501 :rtype: str """ return self._sync_finished_at @sync_finished_at.setter def sync_finished_at(self, sync_finished_at): - """ - Sets the sync_finished_at of this VagrantPackageUpload. - The datetime the package sync was finished at. + """Sets the sync_finished_at of this VagrantPackageUpload. + + The datetime the package sync was finished at. # noqa: E501 - :param sync_finished_at: The sync_finished_at of this VagrantPackageUpload. + :param sync_finished_at: The sync_finished_at of this VagrantPackageUpload. # noqa: E501 :type: str """ @@ -1659,22 +1663,22 @@ def sync_finished_at(self, sync_finished_at): @property def sync_progress(self): - """ - Gets the sync_progress of this VagrantPackageUpload. - Synchronisation progress (from 0-100) + """Gets the sync_progress of this VagrantPackageUpload. # noqa: E501 + + Synchronisation progress (from 0-100) # noqa: E501 - :return: The sync_progress of this VagrantPackageUpload. + :return: The sync_progress of this VagrantPackageUpload. # noqa: E501 :rtype: int """ return self._sync_progress @sync_progress.setter def sync_progress(self, sync_progress): - """ - Sets the sync_progress of this VagrantPackageUpload. - Synchronisation progress (from 0-100) + """Sets the sync_progress of this VagrantPackageUpload. + + Synchronisation progress (from 0-100) # noqa: E501 - :param sync_progress: The sync_progress of this VagrantPackageUpload. + :param sync_progress: The sync_progress of this VagrantPackageUpload. # noqa: E501 :type: int """ @@ -1682,22 +1686,22 @@ def sync_progress(self, sync_progress): @property def tags_immutable(self): - """ - Gets the tags_immutable of this VagrantPackageUpload. - All immutable tags on the package, grouped by tag type. Immutable tags cannot be (easily) deleted. + """Gets the tags_immutable of this VagrantPackageUpload. # noqa: E501 + + All immutable tags on the package, grouped by tag type. Immutable tags cannot be (easily) deleted. # noqa: E501 - :return: The tags_immutable of this VagrantPackageUpload. + :return: The tags_immutable of this VagrantPackageUpload. # noqa: E501 :rtype: object """ return self._tags_immutable @tags_immutable.setter def tags_immutable(self, tags_immutable): - """ - Sets the tags_immutable of this VagrantPackageUpload. - All immutable tags on the package, grouped by tag type. Immutable tags cannot be (easily) deleted. + """Sets the tags_immutable of this VagrantPackageUpload. + + All immutable tags on the package, grouped by tag type. Immutable tags cannot be (easily) deleted. # noqa: E501 - :param tags_immutable: The tags_immutable of this VagrantPackageUpload. + :param tags_immutable: The tags_immutable of this VagrantPackageUpload. # noqa: E501 :type: object """ @@ -1705,22 +1709,22 @@ def tags_immutable(self, tags_immutable): @property def type_display(self): - """ - Gets the type_display of this VagrantPackageUpload. - + """Gets the type_display of this VagrantPackageUpload. # noqa: E501 + + # noqa: E501 - :return: The type_display of this VagrantPackageUpload. + :return: The type_display of this VagrantPackageUpload. # noqa: E501 :rtype: str """ return self._type_display @type_display.setter def type_display(self, type_display): - """ - Sets the type_display of this VagrantPackageUpload. - + """Sets the type_display of this VagrantPackageUpload. + + # noqa: E501 - :param type_display: The type_display of this VagrantPackageUpload. + :param type_display: The type_display of this VagrantPackageUpload. # noqa: E501 :type: str """ @@ -1728,22 +1732,22 @@ def type_display(self, type_display): @property def uploaded_at(self): - """ - Gets the uploaded_at of this VagrantPackageUpload. - The date this package was uploaded. + """Gets the uploaded_at of this VagrantPackageUpload. # noqa: E501 + + The date this package was uploaded. # noqa: E501 - :return: The uploaded_at of this VagrantPackageUpload. + :return: The uploaded_at of this VagrantPackageUpload. # noqa: E501 :rtype: str """ return self._uploaded_at @uploaded_at.setter def uploaded_at(self, uploaded_at): - """ - Sets the uploaded_at of this VagrantPackageUpload. - The date this package was uploaded. + """Sets the uploaded_at of this VagrantPackageUpload. + + The date this package was uploaded. # noqa: E501 - :param uploaded_at: The uploaded_at of this VagrantPackageUpload. + :param uploaded_at: The uploaded_at of this VagrantPackageUpload. # noqa: E501 :type: str """ @@ -1751,22 +1755,22 @@ def uploaded_at(self, uploaded_at): @property def uploader(self): - """ - Gets the uploader of this VagrantPackageUpload. - + """Gets the uploader of this VagrantPackageUpload. # noqa: E501 - :return: The uploader of this VagrantPackageUpload. + # noqa: E501 + + :return: The uploader of this VagrantPackageUpload. # noqa: E501 :rtype: str """ return self._uploader @uploader.setter def uploader(self, uploader): - """ - Sets the uploader of this VagrantPackageUpload. - + """Sets the uploader of this VagrantPackageUpload. - :param uploader: The uploader of this VagrantPackageUpload. + # noqa: E501 + + :param uploader: The uploader of this VagrantPackageUpload. # noqa: E501 :type: str """ @@ -1774,22 +1778,22 @@ def uploader(self, uploader): @property def uploader_url(self): - """ - Gets the uploader_url of this VagrantPackageUpload. - + """Gets the uploader_url of this VagrantPackageUpload. # noqa: E501 - :return: The uploader_url of this VagrantPackageUpload. + # noqa: E501 + + :return: The uploader_url of this VagrantPackageUpload. # noqa: E501 :rtype: str """ return self._uploader_url @uploader_url.setter def uploader_url(self, uploader_url): - """ - Sets the uploader_url of this VagrantPackageUpload. - + """Sets the uploader_url of this VagrantPackageUpload. - :param uploader_url: The uploader_url of this VagrantPackageUpload. + # noqa: E501 + + :param uploader_url: The uploader_url of this VagrantPackageUpload. # noqa: E501 :type: str """ @@ -1797,47 +1801,47 @@ def uploader_url(self, uploader_url): @property def version(self): - """ - Gets the version of this VagrantPackageUpload. - The raw version for this package. + """Gets the version of this VagrantPackageUpload. # noqa: E501 - :return: The version of this VagrantPackageUpload. + The raw version for this package. # noqa: E501 + + :return: The version of this VagrantPackageUpload. # noqa: E501 :rtype: str """ return self._version @version.setter def version(self, version): - """ - Sets the version of this VagrantPackageUpload. - The raw version for this package. + """Sets the version of this VagrantPackageUpload. - :param version: The version of this VagrantPackageUpload. + The raw version for this package. # noqa: E501 + + :param version: The version of this VagrantPackageUpload. # noqa: E501 :type: str """ - if version is None: - raise ValueError("Invalid value for `version`, must not be `None`") + if self._configuration.client_side_validation and version is None: + raise ValueError("Invalid value for `version`, must not be `None`") # noqa: E501 self._version = version @property def version_orig(self): - """ - Gets the version_orig of this VagrantPackageUpload. - + """Gets the version_orig of this VagrantPackageUpload. # noqa: E501 - :return: The version_orig of this VagrantPackageUpload. + # noqa: E501 + + :return: The version_orig of this VagrantPackageUpload. # noqa: E501 :rtype: str """ return self._version_orig @version_orig.setter def version_orig(self, version_orig): - """ - Sets the version_orig of this VagrantPackageUpload. - + """Sets the version_orig of this VagrantPackageUpload. - :param version_orig: The version_orig of this VagrantPackageUpload. + # noqa: E501 + + :param version_orig: The version_orig of this VagrantPackageUpload. # noqa: E501 :type: str """ @@ -1845,34 +1849,32 @@ def version_orig(self, version_orig): @property def vulnerability_scan_results_url(self): - """ - Gets the vulnerability_scan_results_url of this VagrantPackageUpload. - + """Gets the vulnerability_scan_results_url of this VagrantPackageUpload. # noqa: E501 + + # noqa: E501 - :return: The vulnerability_scan_results_url of this VagrantPackageUpload. + :return: The vulnerability_scan_results_url of this VagrantPackageUpload. # noqa: E501 :rtype: str """ return self._vulnerability_scan_results_url @vulnerability_scan_results_url.setter def vulnerability_scan_results_url(self, vulnerability_scan_results_url): - """ - Sets the vulnerability_scan_results_url of this VagrantPackageUpload. - + """Sets the vulnerability_scan_results_url of this VagrantPackageUpload. + + # noqa: E501 - :param vulnerability_scan_results_url: The vulnerability_scan_results_url of this VagrantPackageUpload. + :param vulnerability_scan_results_url: The vulnerability_scan_results_url of this VagrantPackageUpload. # noqa: E501 :type: str """ self._vulnerability_scan_results_url = vulnerability_scan_results_url def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -1889,32 +1891,30 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(VagrantPackageUpload, dict): + for key, value in self.items(): + result[key] = value return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, VagrantPackageUpload): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other + """Returns true if both objects are not equal""" + if not isinstance(other, VagrantPackageUpload): + return True + + return self.to_dict() != other.to_dict() diff --git a/bindings/python/src/cloudsmith_api/models/vulnerability_scan_results.py b/bindings/python/src/cloudsmith_api/models/vulnerability_scan_results.py index 1beac47f..31cf4e3a 100644 --- a/bindings/python/src/cloudsmith_api/models/vulnerability_scan_results.py +++ b/bindings/python/src/cloudsmith_api/models/vulnerability_scan_results.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -11,18 +11,20 @@ """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration class VulnerabilityScanResults(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -52,10 +54,11 @@ class VulnerabilityScanResults(object): 'scan_id': 'scan_id' } - def __init__(self, created_at=None, has_vulnerabilities=None, identifier=None, max_severity=None, num_vulnerabilities=None, package=None, scan=None, scan_id=None): - """ - VulnerabilityScanResults - a model defined in Swagger - """ + def __init__(self, created_at=None, has_vulnerabilities=None, identifier=None, max_severity=None, num_vulnerabilities=None, package=None, scan=None, scan_id=None, _configuration=None): # noqa: E501 + """VulnerabilityScanResults - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._created_at = None self._has_vulnerabilities = None @@ -65,38 +68,39 @@ def __init__(self, created_at=None, has_vulnerabilities=None, identifier=None, m self._package = None self._scan = None self._scan_id = None + self.discriminator = None if created_at is not None: - self.created_at = created_at + self.created_at = created_at if has_vulnerabilities is not None: - self.has_vulnerabilities = has_vulnerabilities + self.has_vulnerabilities = has_vulnerabilities self.identifier = identifier if max_severity is not None: - self.max_severity = max_severity + self.max_severity = max_severity if num_vulnerabilities is not None: - self.num_vulnerabilities = num_vulnerabilities + self.num_vulnerabilities = num_vulnerabilities self.package = package self.scan = scan self.scan_id = scan_id @property def created_at(self): - """ - Gets the created_at of this VulnerabilityScanResults. - The time this scan result was stored. + """Gets the created_at of this VulnerabilityScanResults. # noqa: E501 + + The time this scan result was stored. # noqa: E501 - :return: The created_at of this VulnerabilityScanResults. + :return: The created_at of this VulnerabilityScanResults. # noqa: E501 :rtype: str """ return self._created_at @created_at.setter def created_at(self, created_at): - """ - Sets the created_at of this VulnerabilityScanResults. - The time this scan result was stored. + """Sets the created_at of this VulnerabilityScanResults. - :param created_at: The created_at of this VulnerabilityScanResults. + The time this scan result was stored. # noqa: E501 + + :param created_at: The created_at of this VulnerabilityScanResults. # noqa: E501 :type: str """ @@ -104,22 +108,22 @@ def created_at(self, created_at): @property def has_vulnerabilities(self): - """ - Gets the has_vulnerabilities of this VulnerabilityScanResults. - Do the results contain any known vulnerabilities? + """Gets the has_vulnerabilities of this VulnerabilityScanResults. # noqa: E501 + + Do the results contain any known vulnerabilities? # noqa: E501 - :return: The has_vulnerabilities of this VulnerabilityScanResults. + :return: The has_vulnerabilities of this VulnerabilityScanResults. # noqa: E501 :rtype: bool """ return self._has_vulnerabilities @has_vulnerabilities.setter def has_vulnerabilities(self, has_vulnerabilities): - """ - Sets the has_vulnerabilities of this VulnerabilityScanResults. - Do the results contain any known vulnerabilities? + """Sets the has_vulnerabilities of this VulnerabilityScanResults. + + Do the results contain any known vulnerabilities? # noqa: E501 - :param has_vulnerabilities: The has_vulnerabilities of this VulnerabilityScanResults. + :param has_vulnerabilities: The has_vulnerabilities of this VulnerabilityScanResults. # noqa: E501 :type: bool """ @@ -127,47 +131,47 @@ def has_vulnerabilities(self, has_vulnerabilities): @property def identifier(self): - """ - Gets the identifier of this VulnerabilityScanResults. - + """Gets the identifier of this VulnerabilityScanResults. # noqa: E501 + + # noqa: E501 - :return: The identifier of this VulnerabilityScanResults. + :return: The identifier of this VulnerabilityScanResults. # noqa: E501 :rtype: str """ return self._identifier @identifier.setter def identifier(self, identifier): - """ - Sets the identifier of this VulnerabilityScanResults. - + """Sets the identifier of this VulnerabilityScanResults. + + # noqa: E501 - :param identifier: The identifier of this VulnerabilityScanResults. + :param identifier: The identifier of this VulnerabilityScanResults. # noqa: E501 :type: str """ - if identifier is None: - raise ValueError("Invalid value for `identifier`, must not be `None`") + if self._configuration.client_side_validation and identifier is None: + raise ValueError("Invalid value for `identifier`, must not be `None`") # noqa: E501 self._identifier = identifier @property def max_severity(self): - """ - Gets the max_severity of this VulnerabilityScanResults. - + """Gets the max_severity of this VulnerabilityScanResults. # noqa: E501 - :return: The max_severity of this VulnerabilityScanResults. + # noqa: E501 + + :return: The max_severity of this VulnerabilityScanResults. # noqa: E501 :rtype: str """ return self._max_severity @max_severity.setter def max_severity(self, max_severity): - """ - Sets the max_severity of this VulnerabilityScanResults. - + """Sets the max_severity of this VulnerabilityScanResults. + + # noqa: E501 - :param max_severity: The max_severity of this VulnerabilityScanResults. + :param max_severity: The max_severity of this VulnerabilityScanResults. # noqa: E501 :type: str """ @@ -175,22 +179,22 @@ def max_severity(self, max_severity): @property def num_vulnerabilities(self): - """ - Gets the num_vulnerabilities of this VulnerabilityScanResults. - + """Gets the num_vulnerabilities of this VulnerabilityScanResults. # noqa: E501 + + # noqa: E501 - :return: The num_vulnerabilities of this VulnerabilityScanResults. + :return: The num_vulnerabilities of this VulnerabilityScanResults. # noqa: E501 :rtype: int """ return self._num_vulnerabilities @num_vulnerabilities.setter def num_vulnerabilities(self, num_vulnerabilities): - """ - Sets the num_vulnerabilities of this VulnerabilityScanResults. - + """Sets the num_vulnerabilities of this VulnerabilityScanResults. - :param num_vulnerabilities: The num_vulnerabilities of this VulnerabilityScanResults. + # noqa: E501 + + :param num_vulnerabilities: The num_vulnerabilities of this VulnerabilityScanResults. # noqa: E501 :type: int """ @@ -198,86 +202,84 @@ def num_vulnerabilities(self, num_vulnerabilities): @property def package(self): - """ - Gets the package of this VulnerabilityScanResults. - + """Gets the package of this VulnerabilityScanResults. # noqa: E501 - :return: The package of this VulnerabilityScanResults. + # noqa: E501 + + :return: The package of this VulnerabilityScanResults. # noqa: E501 :rtype: object """ return self._package @package.setter def package(self, package): - """ - Sets the package of this VulnerabilityScanResults. - + """Sets the package of this VulnerabilityScanResults. - :param package: The package of this VulnerabilityScanResults. + # noqa: E501 + + :param package: The package of this VulnerabilityScanResults. # noqa: E501 :type: object """ - if package is None: - raise ValueError("Invalid value for `package`, must not be `None`") + if self._configuration.client_side_validation and package is None: + raise ValueError("Invalid value for `package`, must not be `None`") # noqa: E501 self._package = package @property def scan(self): - """ - Gets the scan of this VulnerabilityScanResults. - + """Gets the scan of this VulnerabilityScanResults. # noqa: E501 + + # noqa: E501 - :return: The scan of this VulnerabilityScanResults. + :return: The scan of this VulnerabilityScanResults. # noqa: E501 :rtype: object """ return self._scan @scan.setter def scan(self, scan): - """ - Sets the scan of this VulnerabilityScanResults. - + """Sets the scan of this VulnerabilityScanResults. + + # noqa: E501 - :param scan: The scan of this VulnerabilityScanResults. + :param scan: The scan of this VulnerabilityScanResults. # noqa: E501 :type: object """ - if scan is None: - raise ValueError("Invalid value for `scan`, must not be `None`") + if self._configuration.client_side_validation and scan is None: + raise ValueError("Invalid value for `scan`, must not be `None`") # noqa: E501 self._scan = scan @property def scan_id(self): - """ - Gets the scan_id of this VulnerabilityScanResults. - + """Gets the scan_id of this VulnerabilityScanResults. # noqa: E501 - :return: The scan_id of this VulnerabilityScanResults. + # noqa: E501 + + :return: The scan_id of this VulnerabilityScanResults. # noqa: E501 :rtype: int """ return self._scan_id @scan_id.setter def scan_id(self, scan_id): - """ - Sets the scan_id of this VulnerabilityScanResults. - + """Sets the scan_id of this VulnerabilityScanResults. + + # noqa: E501 - :param scan_id: The scan_id of this VulnerabilityScanResults. + :param scan_id: The scan_id of this VulnerabilityScanResults. # noqa: E501 :type: int """ - if scan_id is None: - raise ValueError("Invalid value for `scan_id`, must not be `None`") + if self._configuration.client_side_validation and scan_id is None: + raise ValueError("Invalid value for `scan_id`, must not be `None`") # noqa: E501 self._scan_id = scan_id def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -294,32 +296,30 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(VulnerabilityScanResults, dict): + for key, value in self.items(): + result[key] = value return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, VulnerabilityScanResults): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other + """Returns true if both objects are not equal""" + if not isinstance(other, VulnerabilityScanResults): + return True + + return self.to_dict() != other.to_dict() diff --git a/bindings/python/src/cloudsmith_api/models/vulnerability_scan_results_list.py b/bindings/python/src/cloudsmith_api/models/vulnerability_scan_results_list.py index c8a2f8e1..fd0b70bb 100644 --- a/bindings/python/src/cloudsmith_api/models/vulnerability_scan_results_list.py +++ b/bindings/python/src/cloudsmith_api/models/vulnerability_scan_results_list.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -11,18 +11,20 @@ """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration class VulnerabilityScanResultsList(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -50,10 +52,11 @@ class VulnerabilityScanResultsList(object): 'scan_id': 'scan_id' } - def __init__(self, created_at=None, has_vulnerabilities=None, identifier=None, max_severity=None, num_vulnerabilities=None, package=None, scan_id=None): - """ - VulnerabilityScanResultsList - a model defined in Swagger - """ + def __init__(self, created_at=None, has_vulnerabilities=None, identifier=None, max_severity=None, num_vulnerabilities=None, package=None, scan_id=None, _configuration=None): # noqa: E501 + """VulnerabilityScanResultsList - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._created_at = None self._has_vulnerabilities = None @@ -62,37 +65,38 @@ def __init__(self, created_at=None, has_vulnerabilities=None, identifier=None, m self._num_vulnerabilities = None self._package = None self._scan_id = None + self.discriminator = None if created_at is not None: - self.created_at = created_at + self.created_at = created_at if has_vulnerabilities is not None: - self.has_vulnerabilities = has_vulnerabilities + self.has_vulnerabilities = has_vulnerabilities self.identifier = identifier if max_severity is not None: - self.max_severity = max_severity + self.max_severity = max_severity if num_vulnerabilities is not None: - self.num_vulnerabilities = num_vulnerabilities + self.num_vulnerabilities = num_vulnerabilities self.package = package self.scan_id = scan_id @property def created_at(self): - """ - Gets the created_at of this VulnerabilityScanResultsList. - The time this scan result was stored. + """Gets the created_at of this VulnerabilityScanResultsList. # noqa: E501 + + The time this scan result was stored. # noqa: E501 - :return: The created_at of this VulnerabilityScanResultsList. + :return: The created_at of this VulnerabilityScanResultsList. # noqa: E501 :rtype: str """ return self._created_at @created_at.setter def created_at(self, created_at): - """ - Sets the created_at of this VulnerabilityScanResultsList. - The time this scan result was stored. + """Sets the created_at of this VulnerabilityScanResultsList. + + The time this scan result was stored. # noqa: E501 - :param created_at: The created_at of this VulnerabilityScanResultsList. + :param created_at: The created_at of this VulnerabilityScanResultsList. # noqa: E501 :type: str """ @@ -100,22 +104,22 @@ def created_at(self, created_at): @property def has_vulnerabilities(self): - """ - Gets the has_vulnerabilities of this VulnerabilityScanResultsList. - Do the results contain any known vulnerabilities? + """Gets the has_vulnerabilities of this VulnerabilityScanResultsList. # noqa: E501 - :return: The has_vulnerabilities of this VulnerabilityScanResultsList. + Do the results contain any known vulnerabilities? # noqa: E501 + + :return: The has_vulnerabilities of this VulnerabilityScanResultsList. # noqa: E501 :rtype: bool """ return self._has_vulnerabilities @has_vulnerabilities.setter def has_vulnerabilities(self, has_vulnerabilities): - """ - Sets the has_vulnerabilities of this VulnerabilityScanResultsList. - Do the results contain any known vulnerabilities? + """Sets the has_vulnerabilities of this VulnerabilityScanResultsList. + + Do the results contain any known vulnerabilities? # noqa: E501 - :param has_vulnerabilities: The has_vulnerabilities of this VulnerabilityScanResultsList. + :param has_vulnerabilities: The has_vulnerabilities of this VulnerabilityScanResultsList. # noqa: E501 :type: bool """ @@ -123,47 +127,47 @@ def has_vulnerabilities(self, has_vulnerabilities): @property def identifier(self): - """ - Gets the identifier of this VulnerabilityScanResultsList. - + """Gets the identifier of this VulnerabilityScanResultsList. # noqa: E501 + + # noqa: E501 - :return: The identifier of this VulnerabilityScanResultsList. + :return: The identifier of this VulnerabilityScanResultsList. # noqa: E501 :rtype: str """ return self._identifier @identifier.setter def identifier(self, identifier): - """ - Sets the identifier of this VulnerabilityScanResultsList. - + """Sets the identifier of this VulnerabilityScanResultsList. - :param identifier: The identifier of this VulnerabilityScanResultsList. + # noqa: E501 + + :param identifier: The identifier of this VulnerabilityScanResultsList. # noqa: E501 :type: str """ - if identifier is None: - raise ValueError("Invalid value for `identifier`, must not be `None`") + if self._configuration.client_side_validation and identifier is None: + raise ValueError("Invalid value for `identifier`, must not be `None`") # noqa: E501 self._identifier = identifier @property def max_severity(self): - """ - Gets the max_severity of this VulnerabilityScanResultsList. - + """Gets the max_severity of this VulnerabilityScanResultsList. # noqa: E501 + + # noqa: E501 - :return: The max_severity of this VulnerabilityScanResultsList. + :return: The max_severity of this VulnerabilityScanResultsList. # noqa: E501 :rtype: str """ return self._max_severity @max_severity.setter def max_severity(self, max_severity): - """ - Sets the max_severity of this VulnerabilityScanResultsList. - + """Sets the max_severity of this VulnerabilityScanResultsList. + + # noqa: E501 - :param max_severity: The max_severity of this VulnerabilityScanResultsList. + :param max_severity: The max_severity of this VulnerabilityScanResultsList. # noqa: E501 :type: str """ @@ -171,22 +175,22 @@ def max_severity(self, max_severity): @property def num_vulnerabilities(self): - """ - Gets the num_vulnerabilities of this VulnerabilityScanResultsList. - + """Gets the num_vulnerabilities of this VulnerabilityScanResultsList. # noqa: E501 - :return: The num_vulnerabilities of this VulnerabilityScanResultsList. + # noqa: E501 + + :return: The num_vulnerabilities of this VulnerabilityScanResultsList. # noqa: E501 :rtype: int """ return self._num_vulnerabilities @num_vulnerabilities.setter def num_vulnerabilities(self, num_vulnerabilities): - """ - Sets the num_vulnerabilities of this VulnerabilityScanResultsList. - + """Sets the num_vulnerabilities of this VulnerabilityScanResultsList. + + # noqa: E501 - :param num_vulnerabilities: The num_vulnerabilities of this VulnerabilityScanResultsList. + :param num_vulnerabilities: The num_vulnerabilities of this VulnerabilityScanResultsList. # noqa: E501 :type: int """ @@ -194,61 +198,59 @@ def num_vulnerabilities(self, num_vulnerabilities): @property def package(self): - """ - Gets the package of this VulnerabilityScanResultsList. - + """Gets the package of this VulnerabilityScanResultsList. # noqa: E501 + + # noqa: E501 - :return: The package of this VulnerabilityScanResultsList. + :return: The package of this VulnerabilityScanResultsList. # noqa: E501 :rtype: object """ return self._package @package.setter def package(self, package): - """ - Sets the package of this VulnerabilityScanResultsList. - + """Sets the package of this VulnerabilityScanResultsList. - :param package: The package of this VulnerabilityScanResultsList. + # noqa: E501 + + :param package: The package of this VulnerabilityScanResultsList. # noqa: E501 :type: object """ - if package is None: - raise ValueError("Invalid value for `package`, must not be `None`") + if self._configuration.client_side_validation and package is None: + raise ValueError("Invalid value for `package`, must not be `None`") # noqa: E501 self._package = package @property def scan_id(self): - """ - Gets the scan_id of this VulnerabilityScanResultsList. - + """Gets the scan_id of this VulnerabilityScanResultsList. # noqa: E501 + + # noqa: E501 - :return: The scan_id of this VulnerabilityScanResultsList. + :return: The scan_id of this VulnerabilityScanResultsList. # noqa: E501 :rtype: int """ return self._scan_id @scan_id.setter def scan_id(self, scan_id): - """ - Sets the scan_id of this VulnerabilityScanResultsList. - + """Sets the scan_id of this VulnerabilityScanResultsList. + + # noqa: E501 - :param scan_id: The scan_id of this VulnerabilityScanResultsList. + :param scan_id: The scan_id of this VulnerabilityScanResultsList. # noqa: E501 :type: int """ - if scan_id is None: - raise ValueError("Invalid value for `scan_id`, must not be `None`") + if self._configuration.client_side_validation and scan_id is None: + raise ValueError("Invalid value for `scan_id`, must not be `None`") # noqa: E501 self._scan_id = scan_id def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -265,32 +267,30 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(VulnerabilityScanResultsList, dict): + for key, value in self.items(): + result[key] = value return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, VulnerabilityScanResultsList): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other + """Returns true if both objects are not equal""" + if not isinstance(other, VulnerabilityScanResultsList): + return True + + return self.to_dict() != other.to_dict() diff --git a/bindings/python/src/cloudsmith_api/models/webhooks_create.py b/bindings/python/src/cloudsmith_api/models/webhooks_create.py index 0a2b22e7..116f15d6 100644 --- a/bindings/python/src/cloudsmith_api/models/webhooks_create.py +++ b/bindings/python/src/cloudsmith_api/models/webhooks_create.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -11,18 +11,20 @@ """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration class WebhooksCreate(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -60,10 +62,11 @@ class WebhooksCreate(object): 'verify_ssl': 'verify_ssl' } - def __init__(self, events=None, is_active=None, package_query=None, request_body_format=None, request_body_template_format=None, request_content_type=None, secret_header=None, secret_value=None, signature_key=None, target_url=None, templates=None, verify_ssl=None): - """ - WebhooksCreate - a model defined in Swagger - """ + def __init__(self, events=None, is_active=None, package_query=None, request_body_format=None, request_body_template_format=None, request_content_type=None, secret_header=None, secret_value=None, signature_key=None, target_url=None, templates=None, verify_ssl=None, _configuration=None): # noqa: E501 + """WebhooksCreate - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._events = None self._is_active = None @@ -77,72 +80,73 @@ def __init__(self, events=None, is_active=None, package_query=None, request_body self._target_url = None self._templates = None self._verify_ssl = None + self.discriminator = None self.events = events if is_active is not None: - self.is_active = is_active + self.is_active = is_active if package_query is not None: - self.package_query = package_query + self.package_query = package_query if request_body_format is not None: - self.request_body_format = request_body_format + self.request_body_format = request_body_format if request_body_template_format is not None: - self.request_body_template_format = request_body_template_format + self.request_body_template_format = request_body_template_format if request_content_type is not None: - self.request_content_type = request_content_type + self.request_content_type = request_content_type if secret_header is not None: - self.secret_header = secret_header + self.secret_header = secret_header if secret_value is not None: - self.secret_value = secret_value + self.secret_value = secret_value if signature_key is not None: - self.signature_key = signature_key + self.signature_key = signature_key self.target_url = target_url self.templates = templates if verify_ssl is not None: - self.verify_ssl = verify_ssl + self.verify_ssl = verify_ssl @property def events(self): - """ - Gets the events of this WebhooksCreate. - None + """Gets the events of this WebhooksCreate. # noqa: E501 + + None # noqa: E501 - :return: The events of this WebhooksCreate. + :return: The events of this WebhooksCreate. # noqa: E501 :rtype: list[str] """ return self._events @events.setter def events(self, events): - """ - Sets the events of this WebhooksCreate. - None + """Sets the events of this WebhooksCreate. + + None # noqa: E501 - :param events: The events of this WebhooksCreate. + :param events: The events of this WebhooksCreate. # noqa: E501 :type: list[str] """ - if events is None: - raise ValueError("Invalid value for `events`, must not be `None`") + if self._configuration.client_side_validation and events is None: + raise ValueError("Invalid value for `events`, must not be `None`") # noqa: E501 self._events = events @property def is_active(self): - """ - Gets the is_active of this WebhooksCreate. - If enabled, the webhook will trigger on events and send payloads to the configured target URL. + """Gets the is_active of this WebhooksCreate. # noqa: E501 + + If enabled, the webhook will trigger on events and send payloads to the configured target URL. # noqa: E501 - :return: The is_active of this WebhooksCreate. + :return: The is_active of this WebhooksCreate. # noqa: E501 :rtype: bool """ return self._is_active @is_active.setter def is_active(self, is_active): - """ - Sets the is_active of this WebhooksCreate. - If enabled, the webhook will trigger on events and send payloads to the configured target URL. + """Sets the is_active of this WebhooksCreate. + + If enabled, the webhook will trigger on events and send payloads to the configured target URL. # noqa: E501 - :param is_active: The is_active of this WebhooksCreate. + :param is_active: The is_active of this WebhooksCreate. # noqa: E501 :type: bool """ @@ -150,22 +154,22 @@ def is_active(self, is_active): @property def package_query(self): - """ - Gets the package_query of this WebhooksCreate. - The package-based search query for webhooks to fire. This uses the same syntax as the standard search used for repositories, and also supports boolean logic operators such as OR/AND/NOT and parentheses for grouping. If a package does not match, the webhook will not fire. + """Gets the package_query of this WebhooksCreate. # noqa: E501 + + The package-based search query for webhooks to fire. This uses the same syntax as the standard search used for repositories, and also supports boolean logic operators such as OR/AND/NOT and parentheses for grouping. If a package does not match, the webhook will not fire. # noqa: E501 - :return: The package_query of this WebhooksCreate. + :return: The package_query of this WebhooksCreate. # noqa: E501 :rtype: str """ return self._package_query @package_query.setter def package_query(self, package_query): - """ - Sets the package_query of this WebhooksCreate. - The package-based search query for webhooks to fire. This uses the same syntax as the standard search used for repositories, and also supports boolean logic operators such as OR/AND/NOT and parentheses for grouping. If a package does not match, the webhook will not fire. + """Sets the package_query of this WebhooksCreate. + + The package-based search query for webhooks to fire. This uses the same syntax as the standard search used for repositories, and also supports boolean logic operators such as OR/AND/NOT and parentheses for grouping. If a package does not match, the webhook will not fire. # noqa: E501 - :param package_query: The package_query of this WebhooksCreate. + :param package_query: The package_query of this WebhooksCreate. # noqa: E501 :type: str """ @@ -173,22 +177,22 @@ def package_query(self, package_query): @property def request_body_format(self): - """ - Gets the request_body_format of this WebhooksCreate. - The format of the payloads for webhook requests. + """Gets the request_body_format of this WebhooksCreate. # noqa: E501 - :return: The request_body_format of this WebhooksCreate. + The format of the payloads for webhook requests. # noqa: E501 + + :return: The request_body_format of this WebhooksCreate. # noqa: E501 :rtype: str """ return self._request_body_format @request_body_format.setter def request_body_format(self, request_body_format): - """ - Sets the request_body_format of this WebhooksCreate. - The format of the payloads for webhook requests. + """Sets the request_body_format of this WebhooksCreate. - :param request_body_format: The request_body_format of this WebhooksCreate. + The format of the payloads for webhook requests. # noqa: E501 + + :param request_body_format: The request_body_format of this WebhooksCreate. # noqa: E501 :type: str """ @@ -196,22 +200,22 @@ def request_body_format(self, request_body_format): @property def request_body_template_format(self): - """ - Gets the request_body_template_format of this WebhooksCreate. - The format of the payloads for webhook requests. + """Gets the request_body_template_format of this WebhooksCreate. # noqa: E501 - :return: The request_body_template_format of this WebhooksCreate. + The format of the payloads for webhook requests. # noqa: E501 + + :return: The request_body_template_format of this WebhooksCreate. # noqa: E501 :rtype: str """ return self._request_body_template_format @request_body_template_format.setter def request_body_template_format(self, request_body_template_format): - """ - Sets the request_body_template_format of this WebhooksCreate. - The format of the payloads for webhook requests. + """Sets the request_body_template_format of this WebhooksCreate. - :param request_body_template_format: The request_body_template_format of this WebhooksCreate. + The format of the payloads for webhook requests. # noqa: E501 + + :param request_body_template_format: The request_body_template_format of this WebhooksCreate. # noqa: E501 :type: str """ @@ -219,22 +223,22 @@ def request_body_template_format(self, request_body_template_format): @property def request_content_type(self): - """ - Gets the request_content_type of this WebhooksCreate. - The value that will be sent for the 'Content Type' header. + """Gets the request_content_type of this WebhooksCreate. # noqa: E501 - :return: The request_content_type of this WebhooksCreate. + The value that will be sent for the 'Content Type' header. # noqa: E501 + + :return: The request_content_type of this WebhooksCreate. # noqa: E501 :rtype: str """ return self._request_content_type @request_content_type.setter def request_content_type(self, request_content_type): - """ - Sets the request_content_type of this WebhooksCreate. - The value that will be sent for the 'Content Type' header. + """Sets the request_content_type of this WebhooksCreate. - :param request_content_type: The request_content_type of this WebhooksCreate. + The value that will be sent for the 'Content Type' header. # noqa: E501 + + :param request_content_type: The request_content_type of this WebhooksCreate. # noqa: E501 :type: str """ @@ -242,22 +246,22 @@ def request_content_type(self, request_content_type): @property def secret_header(self): - """ - Gets the secret_header of this WebhooksCreate. - The header to send the predefined secret in. This must be unique from existing headers or it won't be sent. You can use this as a form of authentication on the endpoint side. + """Gets the secret_header of this WebhooksCreate. # noqa: E501 - :return: The secret_header of this WebhooksCreate. + The header to send the predefined secret in. This must be unique from existing headers or it won't be sent. You can use this as a form of authentication on the endpoint side. # noqa: E501 + + :return: The secret_header of this WebhooksCreate. # noqa: E501 :rtype: str """ return self._secret_header @secret_header.setter def secret_header(self, secret_header): - """ - Sets the secret_header of this WebhooksCreate. - The header to send the predefined secret in. This must be unique from existing headers or it won't be sent. You can use this as a form of authentication on the endpoint side. + """Sets the secret_header of this WebhooksCreate. - :param secret_header: The secret_header of this WebhooksCreate. + The header to send the predefined secret in. This must be unique from existing headers or it won't be sent. You can use this as a form of authentication on the endpoint side. # noqa: E501 + + :param secret_header: The secret_header of this WebhooksCreate. # noqa: E501 :type: str """ @@ -265,22 +269,22 @@ def secret_header(self, secret_header): @property def secret_value(self): - """ - Gets the secret_value of this WebhooksCreate. - The value for the predefined secret (note: this is treated as a passphrase and is encrypted when we store it). You can use this as a form of authentication on the endpoint side. + """Gets the secret_value of this WebhooksCreate. # noqa: E501 + + The value for the predefined secret (note: this is treated as a passphrase and is encrypted when we store it). You can use this as a form of authentication on the endpoint side. # noqa: E501 - :return: The secret_value of this WebhooksCreate. + :return: The secret_value of this WebhooksCreate. # noqa: E501 :rtype: str """ return self._secret_value @secret_value.setter def secret_value(self, secret_value): - """ - Sets the secret_value of this WebhooksCreate. - The value for the predefined secret (note: this is treated as a passphrase and is encrypted when we store it). You can use this as a form of authentication on the endpoint side. + """Sets the secret_value of this WebhooksCreate. + + The value for the predefined secret (note: this is treated as a passphrase and is encrypted when we store it). You can use this as a form of authentication on the endpoint side. # noqa: E501 - :param secret_value: The secret_value of this WebhooksCreate. + :param secret_value: The secret_value of this WebhooksCreate. # noqa: E501 :type: str """ @@ -288,22 +292,22 @@ def secret_value(self, secret_value): @property def signature_key(self): - """ - Gets the signature_key of this WebhooksCreate. - The value for the signature key - This is used to generate an HMAC-based hex digest of the request body, which we send as the X-Cloudsmith-Signature header so that you can ensure that the request wasn't modified by a malicious party (note: this is treated as a passphrase and is encrypted when we store it). + """Gets the signature_key of this WebhooksCreate. # noqa: E501 + + The value for the signature key - This is used to generate an HMAC-based hex digest of the request body, which we send as the X-Cloudsmith-Signature header so that you can ensure that the request wasn't modified by a malicious party (note: this is treated as a passphrase and is encrypted when we store it). # noqa: E501 - :return: The signature_key of this WebhooksCreate. + :return: The signature_key of this WebhooksCreate. # noqa: E501 :rtype: str """ return self._signature_key @signature_key.setter def signature_key(self, signature_key): - """ - Sets the signature_key of this WebhooksCreate. - The value for the signature key - This is used to generate an HMAC-based hex digest of the request body, which we send as the X-Cloudsmith-Signature header so that you can ensure that the request wasn't modified by a malicious party (note: this is treated as a passphrase and is encrypted when we store it). + """Sets the signature_key of this WebhooksCreate. + + The value for the signature key - This is used to generate an HMAC-based hex digest of the request body, which we send as the X-Cloudsmith-Signature header so that you can ensure that the request wasn't modified by a malicious party (note: this is treated as a passphrase and is encrypted when we store it). # noqa: E501 - :param signature_key: The signature_key of this WebhooksCreate. + :param signature_key: The signature_key of this WebhooksCreate. # noqa: E501 :type: str """ @@ -311,84 +315,82 @@ def signature_key(self, signature_key): @property def target_url(self): - """ - Gets the target_url of this WebhooksCreate. - The destination URL that webhook payloads will be POST'ed to. + """Gets the target_url of this WebhooksCreate. # noqa: E501 + + The destination URL that webhook payloads will be POST'ed to. # noqa: E501 - :return: The target_url of this WebhooksCreate. + :return: The target_url of this WebhooksCreate. # noqa: E501 :rtype: str """ return self._target_url @target_url.setter def target_url(self, target_url): - """ - Sets the target_url of this WebhooksCreate. - The destination URL that webhook payloads will be POST'ed to. + """Sets the target_url of this WebhooksCreate. + + The destination URL that webhook payloads will be POST'ed to. # noqa: E501 - :param target_url: The target_url of this WebhooksCreate. + :param target_url: The target_url of this WebhooksCreate. # noqa: E501 :type: str """ - if target_url is None: - raise ValueError("Invalid value for `target_url`, must not be `None`") + if self._configuration.client_side_validation and target_url is None: + raise ValueError("Invalid value for `target_url`, must not be `None`") # noqa: E501 self._target_url = target_url @property def templates(self): - """ - Gets the templates of this WebhooksCreate. - None + """Gets the templates of this WebhooksCreate. # noqa: E501 + + None # noqa: E501 - :return: The templates of this WebhooksCreate. + :return: The templates of this WebhooksCreate. # noqa: E501 :rtype: list[WebhooksownerrepoTemplates] """ return self._templates @templates.setter def templates(self, templates): - """ - Sets the templates of this WebhooksCreate. - None + """Sets the templates of this WebhooksCreate. + + None # noqa: E501 - :param templates: The templates of this WebhooksCreate. + :param templates: The templates of this WebhooksCreate. # noqa: E501 :type: list[WebhooksownerrepoTemplates] """ - if templates is None: - raise ValueError("Invalid value for `templates`, must not be `None`") + if self._configuration.client_side_validation and templates is None: + raise ValueError("Invalid value for `templates`, must not be `None`") # noqa: E501 self._templates = templates @property def verify_ssl(self): - """ - Gets the verify_ssl of this WebhooksCreate. - If enabled, SSL certificates is verified when webhooks are sent. It's recommended to leave this enabled as not verifying the integrity of SSL certificates leaves you susceptible to Man-in-the-Middle (MITM) attacks. + """Gets the verify_ssl of this WebhooksCreate. # noqa: E501 + + If enabled, SSL certificates is verified when webhooks are sent. It's recommended to leave this enabled as not verifying the integrity of SSL certificates leaves you susceptible to Man-in-the-Middle (MITM) attacks. # noqa: E501 - :return: The verify_ssl of this WebhooksCreate. + :return: The verify_ssl of this WebhooksCreate. # noqa: E501 :rtype: bool """ return self._verify_ssl @verify_ssl.setter def verify_ssl(self, verify_ssl): - """ - Sets the verify_ssl of this WebhooksCreate. - If enabled, SSL certificates is verified when webhooks are sent. It's recommended to leave this enabled as not verifying the integrity of SSL certificates leaves you susceptible to Man-in-the-Middle (MITM) attacks. + """Sets the verify_ssl of this WebhooksCreate. + + If enabled, SSL certificates is verified when webhooks are sent. It's recommended to leave this enabled as not verifying the integrity of SSL certificates leaves you susceptible to Man-in-the-Middle (MITM) attacks. # noqa: E501 - :param verify_ssl: The verify_ssl of this WebhooksCreate. + :param verify_ssl: The verify_ssl of this WebhooksCreate. # noqa: E501 :type: bool """ self._verify_ssl = verify_ssl def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -405,32 +407,30 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(WebhooksCreate, dict): + for key, value in self.items(): + result[key] = value return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, WebhooksCreate): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other + """Returns true if both objects are not equal""" + if not isinstance(other, WebhooksCreate): + return True + + return self.to_dict() != other.to_dict() diff --git a/bindings/python/src/cloudsmith_api/models/webhooks_partial_update.py b/bindings/python/src/cloudsmith_api/models/webhooks_partial_update.py index 2bd77568..90b1dd65 100644 --- a/bindings/python/src/cloudsmith_api/models/webhooks_partial_update.py +++ b/bindings/python/src/cloudsmith_api/models/webhooks_partial_update.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -11,18 +11,20 @@ """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration class WebhooksPartialUpdate(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -60,10 +62,11 @@ class WebhooksPartialUpdate(object): 'verify_ssl': 'verify_ssl' } - def __init__(self, events=None, is_active=None, package_query=None, request_body_format=None, request_body_template_format=None, request_content_type=None, secret_header=None, secret_value=None, signature_key=None, target_url=None, templates=None, verify_ssl=None): - """ - WebhooksPartialUpdate - a model defined in Swagger - """ + def __init__(self, events=None, is_active=None, package_query=None, request_body_format=None, request_body_template_format=None, request_content_type=None, secret_header=None, secret_value=None, signature_key=None, target_url=None, templates=None, verify_ssl=None, _configuration=None): # noqa: E501 + """WebhooksPartialUpdate - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._events = None self._is_active = None @@ -77,50 +80,51 @@ def __init__(self, events=None, is_active=None, package_query=None, request_body self._target_url = None self._templates = None self._verify_ssl = None + self.discriminator = None if events is not None: - self.events = events + self.events = events if is_active is not None: - self.is_active = is_active + self.is_active = is_active if package_query is not None: - self.package_query = package_query + self.package_query = package_query if request_body_format is not None: - self.request_body_format = request_body_format + self.request_body_format = request_body_format if request_body_template_format is not None: - self.request_body_template_format = request_body_template_format + self.request_body_template_format = request_body_template_format if request_content_type is not None: - self.request_content_type = request_content_type + self.request_content_type = request_content_type if secret_header is not None: - self.secret_header = secret_header + self.secret_header = secret_header if secret_value is not None: - self.secret_value = secret_value + self.secret_value = secret_value if signature_key is not None: - self.signature_key = signature_key + self.signature_key = signature_key if target_url is not None: - self.target_url = target_url + self.target_url = target_url if templates is not None: - self.templates = templates + self.templates = templates if verify_ssl is not None: - self.verify_ssl = verify_ssl + self.verify_ssl = verify_ssl @property def events(self): - """ - Gets the events of this WebhooksPartialUpdate. - None + """Gets the events of this WebhooksPartialUpdate. # noqa: E501 + + None # noqa: E501 - :return: The events of this WebhooksPartialUpdate. + :return: The events of this WebhooksPartialUpdate. # noqa: E501 :rtype: list[str] """ return self._events @events.setter def events(self, events): - """ - Sets the events of this WebhooksPartialUpdate. - None + """Sets the events of this WebhooksPartialUpdate. + + None # noqa: E501 - :param events: The events of this WebhooksPartialUpdate. + :param events: The events of this WebhooksPartialUpdate. # noqa: E501 :type: list[str] """ @@ -128,22 +132,22 @@ def events(self, events): @property def is_active(self): - """ - Gets the is_active of this WebhooksPartialUpdate. - If enabled, the webhook will trigger on events and send payloads to the configured target URL. + """Gets the is_active of this WebhooksPartialUpdate. # noqa: E501 + + If enabled, the webhook will trigger on events and send payloads to the configured target URL. # noqa: E501 - :return: The is_active of this WebhooksPartialUpdate. + :return: The is_active of this WebhooksPartialUpdate. # noqa: E501 :rtype: bool """ return self._is_active @is_active.setter def is_active(self, is_active): - """ - Sets the is_active of this WebhooksPartialUpdate. - If enabled, the webhook will trigger on events and send payloads to the configured target URL. + """Sets the is_active of this WebhooksPartialUpdate. + + If enabled, the webhook will trigger on events and send payloads to the configured target URL. # noqa: E501 - :param is_active: The is_active of this WebhooksPartialUpdate. + :param is_active: The is_active of this WebhooksPartialUpdate. # noqa: E501 :type: bool """ @@ -151,22 +155,22 @@ def is_active(self, is_active): @property def package_query(self): - """ - Gets the package_query of this WebhooksPartialUpdate. - The package-based search query for webhooks to fire. This uses the same syntax as the standard search used for repositories, and also supports boolean logic operators such as OR/AND/NOT and parentheses for grouping. If a package does not match, the webhook will not fire. + """Gets the package_query of this WebhooksPartialUpdate. # noqa: E501 + + The package-based search query for webhooks to fire. This uses the same syntax as the standard search used for repositories, and also supports boolean logic operators such as OR/AND/NOT and parentheses for grouping. If a package does not match, the webhook will not fire. # noqa: E501 - :return: The package_query of this WebhooksPartialUpdate. + :return: The package_query of this WebhooksPartialUpdate. # noqa: E501 :rtype: str """ return self._package_query @package_query.setter def package_query(self, package_query): - """ - Sets the package_query of this WebhooksPartialUpdate. - The package-based search query for webhooks to fire. This uses the same syntax as the standard search used for repositories, and also supports boolean logic operators such as OR/AND/NOT and parentheses for grouping. If a package does not match, the webhook will not fire. + """Sets the package_query of this WebhooksPartialUpdate. + + The package-based search query for webhooks to fire. This uses the same syntax as the standard search used for repositories, and also supports boolean logic operators such as OR/AND/NOT and parentheses for grouping. If a package does not match, the webhook will not fire. # noqa: E501 - :param package_query: The package_query of this WebhooksPartialUpdate. + :param package_query: The package_query of this WebhooksPartialUpdate. # noqa: E501 :type: str """ @@ -174,22 +178,22 @@ def package_query(self, package_query): @property def request_body_format(self): - """ - Gets the request_body_format of this WebhooksPartialUpdate. - The format of the payloads for webhook requests. + """Gets the request_body_format of this WebhooksPartialUpdate. # noqa: E501 - :return: The request_body_format of this WebhooksPartialUpdate. + The format of the payloads for webhook requests. # noqa: E501 + + :return: The request_body_format of this WebhooksPartialUpdate. # noqa: E501 :rtype: str """ return self._request_body_format @request_body_format.setter def request_body_format(self, request_body_format): - """ - Sets the request_body_format of this WebhooksPartialUpdate. - The format of the payloads for webhook requests. + """Sets the request_body_format of this WebhooksPartialUpdate. - :param request_body_format: The request_body_format of this WebhooksPartialUpdate. + The format of the payloads for webhook requests. # noqa: E501 + + :param request_body_format: The request_body_format of this WebhooksPartialUpdate. # noqa: E501 :type: str """ @@ -197,22 +201,22 @@ def request_body_format(self, request_body_format): @property def request_body_template_format(self): - """ - Gets the request_body_template_format of this WebhooksPartialUpdate. - The format of the payloads for webhook requests. + """Gets the request_body_template_format of this WebhooksPartialUpdate. # noqa: E501 - :return: The request_body_template_format of this WebhooksPartialUpdate. + The format of the payloads for webhook requests. # noqa: E501 + + :return: The request_body_template_format of this WebhooksPartialUpdate. # noqa: E501 :rtype: str """ return self._request_body_template_format @request_body_template_format.setter def request_body_template_format(self, request_body_template_format): - """ - Sets the request_body_template_format of this WebhooksPartialUpdate. - The format of the payloads for webhook requests. + """Sets the request_body_template_format of this WebhooksPartialUpdate. - :param request_body_template_format: The request_body_template_format of this WebhooksPartialUpdate. + The format of the payloads for webhook requests. # noqa: E501 + + :param request_body_template_format: The request_body_template_format of this WebhooksPartialUpdate. # noqa: E501 :type: str """ @@ -220,22 +224,22 @@ def request_body_template_format(self, request_body_template_format): @property def request_content_type(self): - """ - Gets the request_content_type of this WebhooksPartialUpdate. - The value that will be sent for the 'Content Type' header. + """Gets the request_content_type of this WebhooksPartialUpdate. # noqa: E501 - :return: The request_content_type of this WebhooksPartialUpdate. + The value that will be sent for the 'Content Type' header. # noqa: E501 + + :return: The request_content_type of this WebhooksPartialUpdate. # noqa: E501 :rtype: str """ return self._request_content_type @request_content_type.setter def request_content_type(self, request_content_type): - """ - Sets the request_content_type of this WebhooksPartialUpdate. - The value that will be sent for the 'Content Type' header. + """Sets the request_content_type of this WebhooksPartialUpdate. - :param request_content_type: The request_content_type of this WebhooksPartialUpdate. + The value that will be sent for the 'Content Type' header. # noqa: E501 + + :param request_content_type: The request_content_type of this WebhooksPartialUpdate. # noqa: E501 :type: str """ @@ -243,22 +247,22 @@ def request_content_type(self, request_content_type): @property def secret_header(self): - """ - Gets the secret_header of this WebhooksPartialUpdate. - The header to send the predefined secret in. This must be unique from existing headers or it won't be sent. You can use this as a form of authentication on the endpoint side. + """Gets the secret_header of this WebhooksPartialUpdate. # noqa: E501 - :return: The secret_header of this WebhooksPartialUpdate. + The header to send the predefined secret in. This must be unique from existing headers or it won't be sent. You can use this as a form of authentication on the endpoint side. # noqa: E501 + + :return: The secret_header of this WebhooksPartialUpdate. # noqa: E501 :rtype: str """ return self._secret_header @secret_header.setter def secret_header(self, secret_header): - """ - Sets the secret_header of this WebhooksPartialUpdate. - The header to send the predefined secret in. This must be unique from existing headers or it won't be sent. You can use this as a form of authentication on the endpoint side. + """Sets the secret_header of this WebhooksPartialUpdate. - :param secret_header: The secret_header of this WebhooksPartialUpdate. + The header to send the predefined secret in. This must be unique from existing headers or it won't be sent. You can use this as a form of authentication on the endpoint side. # noqa: E501 + + :param secret_header: The secret_header of this WebhooksPartialUpdate. # noqa: E501 :type: str """ @@ -266,22 +270,22 @@ def secret_header(self, secret_header): @property def secret_value(self): - """ - Gets the secret_value of this WebhooksPartialUpdate. - The value for the predefined secret (note: this is treated as a passphrase and is encrypted when we store it). You can use this as a form of authentication on the endpoint side. + """Gets the secret_value of this WebhooksPartialUpdate. # noqa: E501 + + The value for the predefined secret (note: this is treated as a passphrase and is encrypted when we store it). You can use this as a form of authentication on the endpoint side. # noqa: E501 - :return: The secret_value of this WebhooksPartialUpdate. + :return: The secret_value of this WebhooksPartialUpdate. # noqa: E501 :rtype: str """ return self._secret_value @secret_value.setter def secret_value(self, secret_value): - """ - Sets the secret_value of this WebhooksPartialUpdate. - The value for the predefined secret (note: this is treated as a passphrase and is encrypted when we store it). You can use this as a form of authentication on the endpoint side. + """Sets the secret_value of this WebhooksPartialUpdate. + + The value for the predefined secret (note: this is treated as a passphrase and is encrypted when we store it). You can use this as a form of authentication on the endpoint side. # noqa: E501 - :param secret_value: The secret_value of this WebhooksPartialUpdate. + :param secret_value: The secret_value of this WebhooksPartialUpdate. # noqa: E501 :type: str """ @@ -289,22 +293,22 @@ def secret_value(self, secret_value): @property def signature_key(self): - """ - Gets the signature_key of this WebhooksPartialUpdate. - The value for the signature key - This is used to generate an HMAC-based hex digest of the request body, which we send as the X-Cloudsmith-Signature header so that you can ensure that the request wasn't modified by a malicious party (note: this is treated as a passphrase and is encrypted when we store it). + """Gets the signature_key of this WebhooksPartialUpdate. # noqa: E501 + + The value for the signature key - This is used to generate an HMAC-based hex digest of the request body, which we send as the X-Cloudsmith-Signature header so that you can ensure that the request wasn't modified by a malicious party (note: this is treated as a passphrase and is encrypted when we store it). # noqa: E501 - :return: The signature_key of this WebhooksPartialUpdate. + :return: The signature_key of this WebhooksPartialUpdate. # noqa: E501 :rtype: str """ return self._signature_key @signature_key.setter def signature_key(self, signature_key): - """ - Sets the signature_key of this WebhooksPartialUpdate. - The value for the signature key - This is used to generate an HMAC-based hex digest of the request body, which we send as the X-Cloudsmith-Signature header so that you can ensure that the request wasn't modified by a malicious party (note: this is treated as a passphrase and is encrypted when we store it). + """Sets the signature_key of this WebhooksPartialUpdate. + + The value for the signature key - This is used to generate an HMAC-based hex digest of the request body, which we send as the X-Cloudsmith-Signature header so that you can ensure that the request wasn't modified by a malicious party (note: this is treated as a passphrase and is encrypted when we store it). # noqa: E501 - :param signature_key: The signature_key of this WebhooksPartialUpdate. + :param signature_key: The signature_key of this WebhooksPartialUpdate. # noqa: E501 :type: str """ @@ -312,22 +316,22 @@ def signature_key(self, signature_key): @property def target_url(self): - """ - Gets the target_url of this WebhooksPartialUpdate. - The destination URL that webhook payloads will be POST'ed to. + """Gets the target_url of this WebhooksPartialUpdate. # noqa: E501 + + The destination URL that webhook payloads will be POST'ed to. # noqa: E501 - :return: The target_url of this WebhooksPartialUpdate. + :return: The target_url of this WebhooksPartialUpdate. # noqa: E501 :rtype: str """ return self._target_url @target_url.setter def target_url(self, target_url): - """ - Sets the target_url of this WebhooksPartialUpdate. - The destination URL that webhook payloads will be POST'ed to. + """Sets the target_url of this WebhooksPartialUpdate. + + The destination URL that webhook payloads will be POST'ed to. # noqa: E501 - :param target_url: The target_url of this WebhooksPartialUpdate. + :param target_url: The target_url of this WebhooksPartialUpdate. # noqa: E501 :type: str """ @@ -335,22 +339,22 @@ def target_url(self, target_url): @property def templates(self): - """ - Gets the templates of this WebhooksPartialUpdate. - None + """Gets the templates of this WebhooksPartialUpdate. # noqa: E501 + + None # noqa: E501 - :return: The templates of this WebhooksPartialUpdate. + :return: The templates of this WebhooksPartialUpdate. # noqa: E501 :rtype: list[WebhooksownerrepoTemplates] """ return self._templates @templates.setter def templates(self, templates): - """ - Sets the templates of this WebhooksPartialUpdate. - None + """Sets the templates of this WebhooksPartialUpdate. + + None # noqa: E501 - :param templates: The templates of this WebhooksPartialUpdate. + :param templates: The templates of this WebhooksPartialUpdate. # noqa: E501 :type: list[WebhooksownerrepoTemplates] """ @@ -358,34 +362,32 @@ def templates(self, templates): @property def verify_ssl(self): - """ - Gets the verify_ssl of this WebhooksPartialUpdate. - If enabled, SSL certificates is verified when webhooks are sent. It's recommended to leave this enabled as not verifying the integrity of SSL certificates leaves you susceptible to Man-in-the-Middle (MITM) attacks. + """Gets the verify_ssl of this WebhooksPartialUpdate. # noqa: E501 + + If enabled, SSL certificates is verified when webhooks are sent. It's recommended to leave this enabled as not verifying the integrity of SSL certificates leaves you susceptible to Man-in-the-Middle (MITM) attacks. # noqa: E501 - :return: The verify_ssl of this WebhooksPartialUpdate. + :return: The verify_ssl of this WebhooksPartialUpdate. # noqa: E501 :rtype: bool """ return self._verify_ssl @verify_ssl.setter def verify_ssl(self, verify_ssl): - """ - Sets the verify_ssl of this WebhooksPartialUpdate. - If enabled, SSL certificates is verified when webhooks are sent. It's recommended to leave this enabled as not verifying the integrity of SSL certificates leaves you susceptible to Man-in-the-Middle (MITM) attacks. + """Sets the verify_ssl of this WebhooksPartialUpdate. + + If enabled, SSL certificates is verified when webhooks are sent. It's recommended to leave this enabled as not verifying the integrity of SSL certificates leaves you susceptible to Man-in-the-Middle (MITM) attacks. # noqa: E501 - :param verify_ssl: The verify_ssl of this WebhooksPartialUpdate. + :param verify_ssl: The verify_ssl of this WebhooksPartialUpdate. # noqa: E501 :type: bool """ self._verify_ssl = verify_ssl def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -402,32 +404,30 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(WebhooksPartialUpdate, dict): + for key, value in self.items(): + result[key] = value return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, WebhooksPartialUpdate): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other + """Returns true if both objects are not equal""" + if not isinstance(other, WebhooksPartialUpdate): + return True + + return self.to_dict() != other.to_dict() diff --git a/bindings/python/src/cloudsmith_api/models/webhooksownerrepo_templates.py b/bindings/python/src/cloudsmith_api/models/webhooksownerrepo_templates.py index 2c3db5ee..62ad5579 100644 --- a/bindings/python/src/cloudsmith_api/models/webhooksownerrepo_templates.py +++ b/bindings/python/src/cloudsmith_api/models/webhooksownerrepo_templates.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -11,18 +11,20 @@ """ -from pprint import pformat -from six import iteritems -import re +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration class WebhooksownerrepoTemplates(object): - """ - NOTE: This class is auto generated by the swagger code generator program. + """NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. """ - """ Attributes: swagger_types (dict): The key is attribute name @@ -40,37 +42,39 @@ class WebhooksownerrepoTemplates(object): 'template': 'template' } - def __init__(self, event=None, template=None): - """ - WebhooksownerrepoTemplates - a model defined in Swagger - """ + def __init__(self, event=None, template=None, _configuration=None): # noqa: E501 + """WebhooksownerrepoTemplates - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration self._event = None self._template = None + self.discriminator = None if event is not None: - self.event = event + self.event = event if template is not None: - self.template = template + self.template = template @property def event(self): - """ - Gets the event of this WebhooksownerrepoTemplates. - + """Gets the event of this WebhooksownerrepoTemplates. # noqa: E501 + + # noqa: E501 - :return: The event of this WebhooksownerrepoTemplates. + :return: The event of this WebhooksownerrepoTemplates. # noqa: E501 :rtype: str """ return self._event @event.setter def event(self, event): - """ - Sets the event of this WebhooksownerrepoTemplates. - + """Sets the event of this WebhooksownerrepoTemplates. + + # noqa: E501 - :param event: The event of this WebhooksownerrepoTemplates. + :param event: The event of this WebhooksownerrepoTemplates. # noqa: E501 :type: str """ @@ -78,34 +82,32 @@ def event(self, event): @property def template(self): - """ - Gets the template of this WebhooksownerrepoTemplates. - + """Gets the template of this WebhooksownerrepoTemplates. # noqa: E501 + + # noqa: E501 - :return: The template of this WebhooksownerrepoTemplates. + :return: The template of this WebhooksownerrepoTemplates. # noqa: E501 :rtype: str """ return self._template @template.setter def template(self, template): - """ - Sets the template of this WebhooksownerrepoTemplates. - + """Sets the template of this WebhooksownerrepoTemplates. - :param template: The template of this WebhooksownerrepoTemplates. + # noqa: E501 + + :param template: The template of this WebhooksownerrepoTemplates. # noqa: E501 :type: str """ self._template = template def to_dict(self): - """ - Returns the model properties as a dict - """ + """Returns the model properties as a dict""" result = {} - for attr, _ in iteritems(self.swagger_types): + for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( @@ -122,32 +124,30 @@ def to_dict(self): )) else: result[attr] = value + if issubclass(WebhooksownerrepoTemplates, dict): + for key, value in self.items(): + result[key] = value return result def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) def __repr__(self): - """ - For `print` and `pprint` - """ + """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): - """ - Returns true if both objects are equal - """ + """Returns true if both objects are equal""" if not isinstance(other, WebhooksownerrepoTemplates): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other + """Returns true if both objects are not equal""" + if not isinstance(other, WebhooksownerrepoTemplates): + return True + + return self.to_dict() != other.to_dict() diff --git a/bindings/python/src/cloudsmith_api/rest.py b/bindings/python/src/cloudsmith_api/rest.py index 59a501c0..81339191 100644 --- a/bindings/python/src/cloudsmith_api/rest.py +++ b/bindings/python/src/cloudsmith_api/rest.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -15,17 +15,15 @@ import io import json -import ssl -import certifi import logging import re +import ssl +import certifi # python 2 and python 3 compatibility library -from six import PY3 +import six from six.moves.urllib.parse import urlencode -from .configuration import Configuration - try: import urllib3 except ImportError: @@ -44,60 +42,57 @@ def __init__(self, resp): self.data = resp.data def getheaders(self): - """ - Returns a dictionary of the response headers. - """ + """Returns a dictionary of the response headers.""" return self.urllib3_response.getheaders() def getheader(self, name, default=None): - """ - Returns a given response header. - """ + """Returns a given response header.""" return self.urllib3_response.getheader(name, default) class RESTClientObject(object): - def __init__(self, pools_size=4, maxsize=4): + def __init__(self, configuration, pools_size=4, maxsize=None): # urllib3.PoolManager will pass all kw parameters to connectionpool - # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/poolmanager.py#L75 - # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/connectionpool.py#L680 - # maxsize is the number of requests to host that are allowed in parallel - # ca_certs vs cert_file vs key_file - # http://stackoverflow.com/a/23957365/2985775 + # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/poolmanager.py#L75 # noqa: E501 + # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/connectionpool.py#L680 # noqa: E501 + # maxsize is the number of requests to host that are allowed in parallel # noqa: E501 + # Custom SSL certificates and client certificates: http://urllib3.readthedocs.io/en/latest/advanced-usage.html # noqa: E501 # cert_reqs - if Configuration().verify_ssl: + if configuration.verify_ssl: cert_reqs = ssl.CERT_REQUIRED else: cert_reqs = ssl.CERT_NONE # ca_certs - if Configuration().ssl_ca_cert: - ca_certs = Configuration().ssl_ca_cert + if configuration.ssl_ca_cert: + ca_certs = configuration.ssl_ca_cert else: # if not set certificate file, use Mozilla's root certificates. ca_certs = certifi.where() - # cert_file - cert_file = Configuration().cert_file + addition_pool_args = {} + if configuration.assert_hostname is not None: + addition_pool_args['assert_hostname'] = configuration.assert_hostname # noqa: E501 - # key file - key_file = Configuration().key_file - - # proxy - proxy = Configuration().proxy + if maxsize is None: + if configuration.connection_pool_maxsize is not None: + maxsize = configuration.connection_pool_maxsize + else: + maxsize = 4 # https pool manager - if proxy: + if configuration.proxy: self.pool_manager = urllib3.ProxyManager( num_pools=pools_size, maxsize=maxsize, cert_reqs=cert_reqs, ca_certs=ca_certs, - cert_file=cert_file, - key_file=key_file, - proxy_url=proxy + cert_file=configuration.cert_file, + key_file=configuration.key_file, + proxy_url=configuration.proxy, + **addition_pool_args ) else: self.pool_manager = urllib3.PoolManager( @@ -105,14 +100,16 @@ def __init__(self, pools_size=4, maxsize=4): maxsize=maxsize, cert_reqs=cert_reqs, ca_certs=ca_certs, - cert_file=cert_file, - key_file=key_file + cert_file=configuration.cert_file, + key_file=configuration.key_file, + **addition_pool_args ) - def request(self, method, url, query_params=None, headers=None, - body=None, post_params=None, _preload_content=True, _request_timeout=None): - """ + body=None, post_params=None, _preload_content=True, + _request_timeout=None): + """Perform requests. + :param method: http request method :param url: http request url :param query_params: query parameters in the url @@ -121,13 +118,17 @@ def request(self, method, url, query_params=None, headers=None, :param post_params: request post parameters, `application/x-www-form-urlencoded` and `multipart/form-data` - :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without - reading/decoding response data. Default is True. - :param _request_timeout: timeout setting for this request. If one number provided, it will be total request - timeout. It can also be a pair (tuple) of (connection, read) timeouts. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. """ method = method.upper() - assert method in ['GET', 'HEAD', 'DELETE', 'POST', 'PUT', 'PATCH', 'OPTIONS'] + assert method in ['GET', 'HEAD', 'DELETE', 'POST', 'PUT', + 'PATCH', 'OPTIONS'] if post_params and body: raise ValueError( @@ -139,10 +140,12 @@ def request(self, method, url, query_params=None, headers=None, timeout = None if _request_timeout: - if isinstance(_request_timeout, (int, ) if PY3 else (int, long)): + if isinstance(_request_timeout, (int, ) if six.PY3 else (int, long)): # noqa: E501,F821 timeout = urllib3.Timeout(total=_request_timeout) - elif isinstance(_request_timeout, tuple) and len(_request_timeout) == 2: - timeout = urllib3.Timeout(connect=_request_timeout[0], read=_request_timeout[1]) + elif (isinstance(_request_timeout, tuple) and + len(_request_timeout) == 2): + timeout = urllib3.Timeout( + connect=_request_timeout[0], read=_request_timeout[1]) if 'Content-Type' not in headers: headers['Content-Type'] = 'application/json' @@ -153,45 +156,51 @@ def request(self, method, url, query_params=None, headers=None, if query_params: url += '?' + urlencode(query_params) if re.search('json', headers['Content-Type'], re.IGNORECASE): - request_body = None - if body: + request_body = '{}' + if body is not None: request_body = json.dumps(body) - r = self.pool_manager.request(method, url, - body=request_body, - preload_content=_preload_content, - timeout=timeout, - headers=headers) - elif headers['Content-Type'] == 'application/x-www-form-urlencoded': - r = self.pool_manager.request(method, url, - fields=post_params, - encode_multipart=False, - preload_content=_preload_content, - timeout=timeout, - headers=headers) + r = self.pool_manager.request( + method, url, + body=request_body, + preload_content=_preload_content, + timeout=timeout, + headers=headers) + elif headers['Content-Type'] == 'application/x-www-form-urlencoded': # noqa: E501 + r = self.pool_manager.request( + method, url, + fields=post_params, + encode_multipart=False, + preload_content=_preload_content, + timeout=timeout, + headers=headers) elif headers['Content-Type'] == 'multipart/form-data': - # must del headers['Content-Type'], or the correct Content-Type - # which generated by urllib3 will be overwritten. + # must del headers['Content-Type'], or the correct + # Content-Type which generated by urllib3 will be + # overwritten. del headers['Content-Type'] - r = self.pool_manager.request(method, url, - fields=post_params, - encode_multipart=True, - preload_content=_preload_content, - timeout=timeout, - headers=headers) + r = self.pool_manager.request( + method, url, + fields=post_params, + encode_multipart=True, + preload_content=_preload_content, + timeout=timeout, + headers=headers) # Pass a `string` parameter directly in the body to support - # other content types than Json when `body` argument is provided - # in serialized form + # other content types than Json when `body` argument is + # provided in serialized form elif isinstance(body, str): request_body = body - r = self.pool_manager.request(method, url, - body=request_body, - preload_content=_preload_content, - timeout=timeout, - headers=headers) + r = self.pool_manager.request( + method, url, + body=request_body, + preload_content=_preload_content, + timeout=timeout, + headers=headers) else: # Cannot generate the request from given parameters - msg = """Cannot prepare a request message for provided arguments. - Please check that your arguments match declared content type.""" + msg = """Cannot prepare a request message for provided + arguments. Please check that your arguments match + declared content type.""" raise ApiException(status=0, reason=msg) # For `GET`, `HEAD` else: @@ -209,7 +218,7 @@ def request(self, method, url, query_params=None, headers=None, # In the python 3, the response.data is bytes. # we need to decode it to string. - if PY3: + if six.PY3: r.data = r.data.decode('utf8') # log response body @@ -220,22 +229,24 @@ def request(self, method, url, query_params=None, headers=None, return r - def GET(self, url, headers=None, query_params=None, _preload_content=True, _request_timeout=None): + def GET(self, url, headers=None, query_params=None, _preload_content=True, + _request_timeout=None): return self.request("GET", url, headers=headers, _preload_content=_preload_content, _request_timeout=_request_timeout, query_params=query_params) - def HEAD(self, url, headers=None, query_params=None, _preload_content=True, _request_timeout=None): + def HEAD(self, url, headers=None, query_params=None, _preload_content=True, + _request_timeout=None): return self.request("HEAD", url, headers=headers, _preload_content=_preload_content, _request_timeout=_request_timeout, query_params=query_params) - def OPTIONS(self, url, headers=None, query_params=None, post_params=None, body=None, _preload_content=True, - _request_timeout=None): + def OPTIONS(self, url, headers=None, query_params=None, post_params=None, + body=None, _preload_content=True, _request_timeout=None): return self.request("OPTIONS", url, headers=headers, query_params=query_params, @@ -244,7 +255,8 @@ def OPTIONS(self, url, headers=None, query_params=None, post_params=None, body=N _request_timeout=_request_timeout, body=body) - def DELETE(self, url, headers=None, query_params=None, body=None, _preload_content=True, _request_timeout=None): + def DELETE(self, url, headers=None, query_params=None, body=None, + _preload_content=True, _request_timeout=None): return self.request("DELETE", url, headers=headers, query_params=query_params, @@ -252,8 +264,8 @@ def DELETE(self, url, headers=None, query_params=None, body=None, _preload_conte _request_timeout=_request_timeout, body=body) - def POST(self, url, headers=None, query_params=None, post_params=None, body=None, _preload_content=True, - _request_timeout=None): + def POST(self, url, headers=None, query_params=None, post_params=None, + body=None, _preload_content=True, _request_timeout=None): return self.request("POST", url, headers=headers, query_params=query_params, @@ -262,8 +274,8 @@ def POST(self, url, headers=None, query_params=None, post_params=None, body=None _request_timeout=_request_timeout, body=body) - def PUT(self, url, headers=None, query_params=None, post_params=None, body=None, _preload_content=True, - _request_timeout=None): + def PUT(self, url, headers=None, query_params=None, post_params=None, + body=None, _preload_content=True, _request_timeout=None): return self.request("PUT", url, headers=headers, query_params=query_params, @@ -272,8 +284,8 @@ def PUT(self, url, headers=None, query_params=None, post_params=None, body=None, _request_timeout=_request_timeout, body=body) - def PATCH(self, url, headers=None, query_params=None, post_params=None, body=None, _preload_content=True, - _request_timeout=None): + def PATCH(self, url, headers=None, query_params=None, post_params=None, + body=None, _preload_content=True, _request_timeout=None): return self.request("PATCH", url, headers=headers, query_params=query_params, @@ -298,13 +310,12 @@ def __init__(self, status=None, reason=None, http_resp=None): self.headers = None def __str__(self): - """ - Custom error messages for exception - """ + """Custom error messages for exception""" error_message = "({0})\n"\ "Reason: {1}\n".format(self.status, self.reason) if self.headers: - error_message += "HTTP response headers: {0}\n".format(self.headers) + error_message += "HTTP response headers: {0}\n".format( + self.headers) if self.body: error_message += "HTTP response body: {0}\n".format(self.body) diff --git a/bindings/python/src/docs/BadgesApi.md b/bindings/python/src/docs/BadgesApi.md index ee4c9381..a743b2b2 100644 --- a/bindings/python/src/docs/BadgesApi.md +++ b/bindings/python/src/docs/BadgesApi.md @@ -8,13 +8,13 @@ Method | HTTP request | Description # **badges_version_list** -> badges_version_list(owner, repo, package_format, package_name, package_version, package_identifiers, badge_token=badge_token, cache_seconds=cache_seconds, color=color, label=label, label_color=label_color, logo_color=logo_color, logo_width=logo_width, render=render, shields=shields, show_latest=show_latest, style=style) +> object badges_version_list(owner, repo, package_format, package_name, package_version, package_identifiers, badge_token=badge_token, cache_seconds=cache_seconds, color=color, label=label, label_color=label_color, logo_color=logo_color, logo_width=logo_width, render=render, shields=shields, show_latest=show_latest, style=style) Get latest package version for a package or package group. Get latest package version for a package or package group. -### Example +### Example ```python from __future__ import print_function import time @@ -23,12 +23,13 @@ from cloudsmith_api.rest import ApiException from pprint import pprint # Configure API key authorization: apikey -cloudsmith_api.configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# cloudsmith_api.configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' # create an instance of the API class -api_instance = cloudsmith_api.BadgesApi() +api_instance = cloudsmith_api.BadgesApi(cloudsmith_api.ApiClient(configuration)) owner = 'owner_example' # str | repo = 'repo_example' # str | package_format = 'package_format_example' # str | @@ -47,9 +48,10 @@ shields = true # bool | If true, a shields response will be generated (optional) show_latest = true # bool | If true, for latest version badges a '(latest)' suffix is added (optional) style = 'style_example' # str | Override the shields.io badge style value. (optional) -try: +try: # Get latest package version for a package or package group. - api_instance.badges_version_list(owner, repo, package_format, package_name, package_version, package_identifiers, badge_token=badge_token, cache_seconds=cache_seconds, color=color, label=label, label_color=label_color, logo_color=logo_color, logo_width=logo_width, render=render, shields=shields, show_latest=show_latest, style=style) + api_response = api_instance.badges_version_list(owner, repo, package_format, package_name, package_version, package_identifiers, badge_token=badge_token, cache_seconds=cache_seconds, color=color, label=label, label_color=label_color, logo_color=logo_color, logo_width=logo_width, render=render, shields=shields, show_latest=show_latest, style=style) + pprint(api_response) except ApiException as e: print("Exception when calling BadgesApi->badges_version_list: %s\n" % e) ``` @@ -78,7 +80,7 @@ Name | Type | Description | Notes ### Return type -void (empty response body) +**object** ### Authorization diff --git a/bindings/python/src/docs/DistrosApi.md b/bindings/python/src/docs/DistrosApi.md index 6eece53d..84496d0c 100644 --- a/bindings/python/src/docs/DistrosApi.md +++ b/bindings/python/src/docs/DistrosApi.md @@ -15,7 +15,7 @@ Get a list of all supported distributions. Get a list of all supported distributions. -### Example +### Example ```python from __future__ import print_function import time @@ -24,14 +24,15 @@ from cloudsmith_api.rest import ApiException from pprint import pprint # Configure API key authorization: apikey -cloudsmith_api.configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# cloudsmith_api.configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' # create an instance of the API class -api_instance = cloudsmith_api.DistrosApi() +api_instance = cloudsmith_api.DistrosApi(cloudsmith_api.ApiClient(configuration)) -try: +try: # Get a list of all supported distributions. api_response = api_instance.distros_list() pprint(api_response) @@ -64,7 +65,7 @@ View for viewing/listing distributions. View for viewing/listing distributions. -### Example +### Example ```python from __future__ import print_function import time @@ -73,15 +74,16 @@ from cloudsmith_api.rest import ApiException from pprint import pprint # Configure API key authorization: apikey -cloudsmith_api.configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# cloudsmith_api.configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' # create an instance of the API class -api_instance = cloudsmith_api.DistrosApi() +api_instance = cloudsmith_api.DistrosApi(cloudsmith_api.ApiClient(configuration)) slug = 'slug_example' # str | -try: +try: # View for viewing/listing distributions. api_response = api_instance.distros_read(slug) pprint(api_response) diff --git a/bindings/python/src/docs/EntitlementsApi.md b/bindings/python/src/docs/EntitlementsApi.md index 954d784a..d67bb947 100644 --- a/bindings/python/src/docs/EntitlementsApi.md +++ b/bindings/python/src/docs/EntitlementsApi.md @@ -23,7 +23,7 @@ Create a specific entitlement in a repository. Create a specific entitlement in a repository. -### Example +### Example ```python from __future__ import print_function import time @@ -32,18 +32,19 @@ from cloudsmith_api.rest import ApiException from pprint import pprint # Configure API key authorization: apikey -cloudsmith_api.configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# cloudsmith_api.configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' # create an instance of the API class -api_instance = cloudsmith_api.EntitlementsApi() +api_instance = cloudsmith_api.EntitlementsApi(cloudsmith_api.ApiClient(configuration)) owner = 'owner_example' # str | repo = 'repo_example' # str | show_tokens = true # bool | Show entitlement token strings in results (optional) data = cloudsmith_api.EntitlementsCreate() # EntitlementsCreate | (optional) -try: +try: # Create a specific entitlement in a repository. api_response = api_instance.entitlements_create(owner, repo, show_tokens=show_tokens, data=data) pprint(api_response) @@ -82,7 +83,7 @@ Delete a specific entitlement in a repository. Delete a specific entitlement in a repository. -### Example +### Example ```python from __future__ import print_function import time @@ -91,17 +92,18 @@ from cloudsmith_api.rest import ApiException from pprint import pprint # Configure API key authorization: apikey -cloudsmith_api.configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# cloudsmith_api.configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' # create an instance of the API class -api_instance = cloudsmith_api.EntitlementsApi() +api_instance = cloudsmith_api.EntitlementsApi(cloudsmith_api.ApiClient(configuration)) owner = 'owner_example' # str | repo = 'repo_example' # str | identifier = 'identifier_example' # str | -try: +try: # Delete a specific entitlement in a repository. api_instance.entitlements_delete(owner, repo, identifier) except ApiException as e: @@ -138,7 +140,7 @@ Disable an entitlement token in a repository. Disable an entitlement token in a repository. -### Example +### Example ```python from __future__ import print_function import time @@ -147,17 +149,18 @@ from cloudsmith_api.rest import ApiException from pprint import pprint # Configure API key authorization: apikey -cloudsmith_api.configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# cloudsmith_api.configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' # create an instance of the API class -api_instance = cloudsmith_api.EntitlementsApi() +api_instance = cloudsmith_api.EntitlementsApi(cloudsmith_api.ApiClient(configuration)) owner = 'owner_example' # str | repo = 'repo_example' # str | identifier = 'identifier_example' # str | -try: +try: # Disable an entitlement token in a repository. api_instance.entitlements_disable(owner, repo, identifier) except ApiException as e: @@ -194,7 +197,7 @@ Enable an entitlement token in a repository. Enable an entitlement token in a repository. -### Example +### Example ```python from __future__ import print_function import time @@ -203,17 +206,18 @@ from cloudsmith_api.rest import ApiException from pprint import pprint # Configure API key authorization: apikey -cloudsmith_api.configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# cloudsmith_api.configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' # create an instance of the API class -api_instance = cloudsmith_api.EntitlementsApi() +api_instance = cloudsmith_api.EntitlementsApi(cloudsmith_api.ApiClient(configuration)) owner = 'owner_example' # str | repo = 'repo_example' # str | identifier = 'identifier_example' # str | -try: +try: # Enable an entitlement token in a repository. api_instance.entitlements_enable(owner, repo, identifier) except ApiException as e: @@ -250,7 +254,7 @@ Get a list of all entitlements in a repository. Get a list of all entitlements in a repository. -### Example +### Example ```python from __future__ import print_function import time @@ -259,19 +263,20 @@ from cloudsmith_api.rest import ApiException from pprint import pprint # Configure API key authorization: apikey -cloudsmith_api.configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# cloudsmith_api.configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' # create an instance of the API class -api_instance = cloudsmith_api.EntitlementsApi() +api_instance = cloudsmith_api.EntitlementsApi(cloudsmith_api.ApiClient(configuration)) owner = 'owner_example' # str | repo = 'repo_example' # str | page = 56 # int | A page number within the paginated result set. (optional) page_size = 56 # int | Number of results to return per page. (optional) show_tokens = true # bool | Show entitlement token strings in results (optional) -try: +try: # Get a list of all entitlements in a repository. api_response = api_instance.entitlements_list(owner, repo, page=page, page_size=page_size, show_tokens=show_tokens) pprint(api_response) @@ -311,7 +316,7 @@ Update a specific entitlement in a repository. Update a specific entitlement in a repository. -### Example +### Example ```python from __future__ import print_function import time @@ -320,19 +325,20 @@ from cloudsmith_api.rest import ApiException from pprint import pprint # Configure API key authorization: apikey -cloudsmith_api.configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# cloudsmith_api.configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' # create an instance of the API class -api_instance = cloudsmith_api.EntitlementsApi() +api_instance = cloudsmith_api.EntitlementsApi(cloudsmith_api.ApiClient(configuration)) owner = 'owner_example' # str | repo = 'repo_example' # str | identifier = 'identifier_example' # str | show_tokens = true # bool | Show entitlement token strings in results (optional) data = cloudsmith_api.EntitlementsPartialUpdate() # EntitlementsPartialUpdate | (optional) -try: +try: # Update a specific entitlement in a repository. api_response = api_instance.entitlements_partial_update(owner, repo, identifier, show_tokens=show_tokens, data=data) pprint(api_response) @@ -372,7 +378,7 @@ Get a specific entitlement in a repository. Get a specific entitlement in a repository. -### Example +### Example ```python from __future__ import print_function import time @@ -381,18 +387,19 @@ from cloudsmith_api.rest import ApiException from pprint import pprint # Configure API key authorization: apikey -cloudsmith_api.configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# cloudsmith_api.configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' # create an instance of the API class -api_instance = cloudsmith_api.EntitlementsApi() +api_instance = cloudsmith_api.EntitlementsApi(cloudsmith_api.ApiClient(configuration)) owner = 'owner_example' # str | repo = 'repo_example' # str | identifier = 'identifier_example' # str | show_tokens = true # bool | Show entitlement token strings in results (optional) -try: +try: # Get a specific entitlement in a repository. api_response = api_instance.entitlements_read(owner, repo, identifier, show_tokens=show_tokens) pprint(api_response) @@ -431,7 +438,7 @@ Refresh an entitlement token in a repository. Refresh an entitlement token in a repository. -### Example +### Example ```python from __future__ import print_function import time @@ -440,19 +447,20 @@ from cloudsmith_api.rest import ApiException from pprint import pprint # Configure API key authorization: apikey -cloudsmith_api.configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# cloudsmith_api.configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' # create an instance of the API class -api_instance = cloudsmith_api.EntitlementsApi() +api_instance = cloudsmith_api.EntitlementsApi(cloudsmith_api.ApiClient(configuration)) owner = 'owner_example' # str | repo = 'repo_example' # str | identifier = 'identifier_example' # str | show_tokens = true # bool | Show entitlement token strings in results (optional) data = cloudsmith_api.EntitlementsRefresh() # EntitlementsRefresh | (optional) -try: +try: # Refresh an entitlement token in a repository. api_response = api_instance.entitlements_refresh(owner, repo, identifier, show_tokens=show_tokens, data=data) pprint(api_response) @@ -492,7 +500,7 @@ Reset the statistics for an entitlement token in a repository. Reset the statistics for an entitlement token in a repository. -### Example +### Example ```python from __future__ import print_function import time @@ -501,18 +509,19 @@ from cloudsmith_api.rest import ApiException from pprint import pprint # Configure API key authorization: apikey -cloudsmith_api.configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# cloudsmith_api.configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' # create an instance of the API class -api_instance = cloudsmith_api.EntitlementsApi() +api_instance = cloudsmith_api.EntitlementsApi(cloudsmith_api.ApiClient(configuration)) owner = 'owner_example' # str | repo = 'repo_example' # str | identifier = 'identifier_example' # str | show_tokens = true # bool | Show entitlement token strings in results (optional) -try: +try: # Reset the statistics for an entitlement token in a repository. api_instance.entitlements_reset(owner, repo, identifier, show_tokens=show_tokens) except ApiException as e: @@ -550,7 +559,7 @@ Synchronise tokens from a source repository. Synchronise tokens from a source repository. -### Example +### Example ```python from __future__ import print_function import time @@ -559,18 +568,19 @@ from cloudsmith_api.rest import ApiException from pprint import pprint # Configure API key authorization: apikey -cloudsmith_api.configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# cloudsmith_api.configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' # create an instance of the API class -api_instance = cloudsmith_api.EntitlementsApi() +api_instance = cloudsmith_api.EntitlementsApi(cloudsmith_api.ApiClient(configuration)) owner = 'owner_example' # str | repo = 'repo_example' # str | show_tokens = true # bool | Show entitlement token strings in results (optional) data = cloudsmith_api.EntitlementsSync() # EntitlementsSync | (optional) -try: +try: # Synchronise tokens from a source repository. api_response = api_instance.entitlements_sync(owner, repo, show_tokens=show_tokens, data=data) pprint(api_response) diff --git a/bindings/python/src/docs/FilesApi.md b/bindings/python/src/docs/FilesApi.md index 21ba1a81..f55481e1 100644 --- a/bindings/python/src/docs/FilesApi.md +++ b/bindings/python/src/docs/FilesApi.md @@ -18,7 +18,7 @@ Abort a multipart file upload. Abort a multipart file upload. -### Example +### Example ```python from __future__ import print_function import time @@ -27,18 +27,19 @@ from cloudsmith_api.rest import ApiException from pprint import pprint # Configure API key authorization: apikey -cloudsmith_api.configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# cloudsmith_api.configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' # create an instance of the API class -api_instance = cloudsmith_api.FilesApi() +api_instance = cloudsmith_api.FilesApi(cloudsmith_api.ApiClient(configuration)) owner = 'owner_example' # str | repo = 'repo_example' # str | identifier = 'identifier_example' # str | data = cloudsmith_api.FilesAbort() # FilesAbort | (optional) -try: +try: # Abort a multipart file upload. api_instance.files_abort(owner, repo, identifier, data=data) except ApiException as e: @@ -76,7 +77,7 @@ Complete a multipart file upload. Complete a multipart file upload. -### Example +### Example ```python from __future__ import print_function import time @@ -85,18 +86,19 @@ from cloudsmith_api.rest import ApiException from pprint import pprint # Configure API key authorization: apikey -cloudsmith_api.configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# cloudsmith_api.configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' # create an instance of the API class -api_instance = cloudsmith_api.FilesApi() +api_instance = cloudsmith_api.FilesApi(cloudsmith_api.ApiClient(configuration)) owner = 'owner_example' # str | repo = 'repo_example' # str | identifier = 'identifier_example' # str | data = cloudsmith_api.FilesComplete() # FilesComplete | (optional) -try: +try: # Complete a multipart file upload. api_response = api_instance.files_complete(owner, repo, identifier, data=data) pprint(api_response) @@ -135,7 +137,7 @@ Request URL(s) to upload new package file upload(s) to. Request URL(s) to upload new package file upload(s) to. -### Example +### Example ```python from __future__ import print_function import time @@ -144,17 +146,18 @@ from cloudsmith_api.rest import ApiException from pprint import pprint # Configure API key authorization: apikey -cloudsmith_api.configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# cloudsmith_api.configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' # create an instance of the API class -api_instance = cloudsmith_api.FilesApi() +api_instance = cloudsmith_api.FilesApi(cloudsmith_api.ApiClient(configuration)) owner = 'owner_example' # str | repo = 'repo_example' # str | data = cloudsmith_api.FilesCreate() # FilesCreate | (optional) -try: +try: # Request URL(s) to upload new package file upload(s) to. api_response = api_instance.files_create(owner, repo, data=data) pprint(api_response) @@ -192,7 +195,7 @@ Get upload information for a multipart file upload. Get upload information for a multipart file upload. -### Example +### Example ```python from __future__ import print_function import time @@ -201,17 +204,18 @@ from cloudsmith_api.rest import ApiException from pprint import pprint # Configure API key authorization: apikey -cloudsmith_api.configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# cloudsmith_api.configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' # create an instance of the API class -api_instance = cloudsmith_api.FilesApi() +api_instance = cloudsmith_api.FilesApi(cloudsmith_api.ApiClient(configuration)) owner = 'owner_example' # str | repo = 'repo_example' # str | identifier = 'identifier_example' # str | -try: +try: # Get upload information for a multipart file upload. api_response = api_instance.files_info(owner, repo, identifier) pprint(api_response) @@ -249,7 +253,7 @@ Validate parameters used for create. Validate parameters used for create. -### Example +### Example ```python from __future__ import print_function import time @@ -258,17 +262,18 @@ from cloudsmith_api.rest import ApiException from pprint import pprint # Configure API key authorization: apikey -cloudsmith_api.configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# cloudsmith_api.configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' # create an instance of the API class -api_instance = cloudsmith_api.FilesApi() +api_instance = cloudsmith_api.FilesApi(cloudsmith_api.ApiClient(configuration)) owner = 'owner_example' # str | repo = 'repo_example' # str | data = cloudsmith_api.FilesValidate() # FilesValidate | (optional) -try: +try: # Validate parameters used for create. api_instance.files_validate(owner, repo, data=data) except ApiException as e: diff --git a/bindings/python/src/docs/FormatsApi.md b/bindings/python/src/docs/FormatsApi.md index 6e6abfe9..eb074345 100644 --- a/bindings/python/src/docs/FormatsApi.md +++ b/bindings/python/src/docs/FormatsApi.md @@ -15,7 +15,7 @@ Get a list of all supported package formats. Get a list of all supported package formats. -### Example +### Example ```python from __future__ import print_function import time @@ -24,14 +24,15 @@ from cloudsmith_api.rest import ApiException from pprint import pprint # Configure API key authorization: apikey -cloudsmith_api.configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# cloudsmith_api.configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' # create an instance of the API class -api_instance = cloudsmith_api.FormatsApi() +api_instance = cloudsmith_api.FormatsApi(cloudsmith_api.ApiClient(configuration)) -try: +try: # Get a list of all supported package formats. api_response = api_instance.formats_list() pprint(api_response) @@ -64,7 +65,7 @@ Get a specific supported package format. Get a specific supported package format. -### Example +### Example ```python from __future__ import print_function import time @@ -73,15 +74,16 @@ from cloudsmith_api.rest import ApiException from pprint import pprint # Configure API key authorization: apikey -cloudsmith_api.configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# cloudsmith_api.configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' # create an instance of the API class -api_instance = cloudsmith_api.FormatsApi() +api_instance = cloudsmith_api.FormatsApi(cloudsmith_api.ApiClient(configuration)) slug = 'slug_example' # str | -try: +try: # Get a specific supported package format. api_response = api_instance.formats_read(slug) pprint(api_response) diff --git a/bindings/python/src/docs/MetricsApi.md b/bindings/python/src/docs/MetricsApi.md index 3f0f963a..e4b0acca 100644 --- a/bindings/python/src/docs/MetricsApi.md +++ b/bindings/python/src/docs/MetricsApi.md @@ -16,7 +16,7 @@ View for listing entitlement token metrics, across an account. View for listing entitlement token metrics, across an account. -### Example +### Example ```python from __future__ import print_function import time @@ -25,12 +25,13 @@ from cloudsmith_api.rest import ApiException from pprint import pprint # Configure API key authorization: apikey -cloudsmith_api.configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# cloudsmith_api.configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' # create an instance of the API class -api_instance = cloudsmith_api.MetricsApi() +api_instance = cloudsmith_api.MetricsApi(cloudsmith_api.ApiClient(configuration)) owner = 'owner_example' # str | page = 56 # int | A page number within the paginated result set. (optional) page_size = 56 # int | Number of results to return per page. (optional) @@ -38,7 +39,7 @@ finish = 'finish_example' # str | Include metrics upto and including this UTC da start = 'start_example' # str | Include metrics from and including this UTC date or UTC datetime. For example '2020-12-31' or '2021-12-13T00:00:00Z'. (optional) tokens = 'tokens_example' # str | A comma seperated list of tokens (slug perm) to include in the results. (optional) -try: +try: # View for listing entitlement token metrics, across an account. api_response = api_instance.metrics_entitlements_list(owner, page=page, page_size=page_size, finish=finish, start=start, tokens=tokens) pprint(api_response) @@ -79,7 +80,7 @@ View for listing entitlement token metrics, for a repository. View for listing entitlement token metrics, for a repository. -### Example +### Example ```python from __future__ import print_function import time @@ -88,12 +89,13 @@ from cloudsmith_api.rest import ApiException from pprint import pprint # Configure API key authorization: apikey -cloudsmith_api.configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# cloudsmith_api.configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' # create an instance of the API class -api_instance = cloudsmith_api.MetricsApi() +api_instance = cloudsmith_api.MetricsApi(cloudsmith_api.ApiClient(configuration)) owner = 'owner_example' # str | repo = 'repo_example' # str | page = 56 # int | A page number within the paginated result set. (optional) @@ -102,7 +104,7 @@ finish = 'finish_example' # str | Include metrics upto and including this UTC da start = 'start_example' # str | Include metrics from and including this UTC date or UTC datetime. For example '2020-12-31' or '2021-12-13T00:00:00Z'. (optional) tokens = 'tokens_example' # str | A comma seperated list of tokens (slug perm) to include in the results. (optional) -try: +try: # View for listing entitlement token metrics, for a repository. api_response = api_instance.metrics_entitlements_list0(owner, repo, page=page, page_size=page_size, finish=finish, start=start, tokens=tokens) pprint(api_response) @@ -144,7 +146,7 @@ View for listing package usage metrics, for a repository. View for listing package usage metrics, for a repository. -### Example +### Example ```python from __future__ import print_function import time @@ -153,12 +155,13 @@ from cloudsmith_api.rest import ApiException from pprint import pprint # Configure API key authorization: apikey -cloudsmith_api.configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# cloudsmith_api.configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' # create an instance of the API class -api_instance = cloudsmith_api.MetricsApi() +api_instance = cloudsmith_api.MetricsApi(cloudsmith_api.ApiClient(configuration)) owner = 'owner_example' # str | repo = 'repo_example' # str | page = 56 # int | A page number within the paginated result set. (optional) @@ -167,7 +170,7 @@ finish = 'finish_example' # str | Include metrics upto and including this UTC da packages = 'packages_example' # str | A comma seperated list of packages (slug perm) to include in the results. (optional) start = 'start_example' # str | Include metrics from and including this UTC date or UTC datetime. For example '2020-12-31' or '2021-12-13T00:00:00Z'. (optional) -try: +try: # View for listing package usage metrics, for a repository. api_response = api_instance.metrics_packages_list(owner, repo, page=page, page_size=page_size, finish=finish, packages=packages, start=start) pprint(api_response) diff --git a/bindings/python/src/docs/NamespacesApi.md b/bindings/python/src/docs/NamespacesApi.md index f2eeedb5..8094a477 100644 --- a/bindings/python/src/docs/NamespacesApi.md +++ b/bindings/python/src/docs/NamespacesApi.md @@ -15,7 +15,7 @@ Get a list of all namespaces the user belongs to. Get a list of all namespaces the user belongs to. -### Example +### Example ```python from __future__ import print_function import time @@ -24,16 +24,17 @@ from cloudsmith_api.rest import ApiException from pprint import pprint # Configure API key authorization: apikey -cloudsmith_api.configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# cloudsmith_api.configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' # create an instance of the API class -api_instance = cloudsmith_api.NamespacesApi() +api_instance = cloudsmith_api.NamespacesApi(cloudsmith_api.ApiClient(configuration)) page = 56 # int | A page number within the paginated result set. (optional) page_size = 56 # int | Number of results to return per page. (optional) -try: +try: # Get a list of all namespaces the user belongs to. api_response = api_instance.namespaces_list(page=page, page_size=page_size) pprint(api_response) @@ -70,7 +71,7 @@ Views for working with namespaces. Views for working with namespaces. -### Example +### Example ```python from __future__ import print_function import time @@ -79,15 +80,16 @@ from cloudsmith_api.rest import ApiException from pprint import pprint # Configure API key authorization: apikey -cloudsmith_api.configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# cloudsmith_api.configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' # create an instance of the API class -api_instance = cloudsmith_api.NamespacesApi() +api_instance = cloudsmith_api.NamespacesApi(cloudsmith_api.ApiClient(configuration)) slug = 'slug_example' # str | -try: +try: # Views for working with namespaces. api_response = api_instance.namespaces_read(slug) pprint(api_response) diff --git a/bindings/python/src/docs/OrgsApi.md b/bindings/python/src/docs/OrgsApi.md index dae6dcf4..06e14da4 100644 --- a/bindings/python/src/docs/OrgsApi.md +++ b/bindings/python/src/docs/OrgsApi.md @@ -18,7 +18,7 @@ Get a list of all the organizations you are associated with. Get a list of all the organizations you are associated with. -### Example +### Example ```python from __future__ import print_function import time @@ -27,16 +27,17 @@ from cloudsmith_api.rest import ApiException from pprint import pprint # Configure API key authorization: apikey -cloudsmith_api.configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# cloudsmith_api.configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' # create an instance of the API class -api_instance = cloudsmith_api.OrgsApi() +api_instance = cloudsmith_api.OrgsApi(cloudsmith_api.ApiClient(configuration)) page = 56 # int | A page number within the paginated result set. (optional) page_size = 56 # int | Number of results to return per page. (optional) -try: +try: # Get a list of all the organizations you are associated with. api_response = api_instance.orgs_list(page=page, page_size=page_size) pprint(api_response) @@ -73,7 +74,7 @@ Get the details for all organization members. Get the details for all organization members. -### Example +### Example ```python from __future__ import print_function import time @@ -82,17 +83,18 @@ from cloudsmith_api.rest import ApiException from pprint import pprint # Configure API key authorization: apikey -cloudsmith_api.configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# cloudsmith_api.configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' # create an instance of the API class -api_instance = cloudsmith_api.OrgsApi() +api_instance = cloudsmith_api.OrgsApi(cloudsmith_api.ApiClient(configuration)) org = 'org_example' # str | page = 56 # int | A page number within the paginated result set. (optional) page_size = 56 # int | Number of results to return per page. (optional) -try: +try: # Get the details for all organization members. api_response = api_instance.orgs_members_list(org, page=page, page_size=page_size) pprint(api_response) @@ -130,7 +132,7 @@ Get the details for a specific organization member. Get the details for a specific organization member. -### Example +### Example ```python from __future__ import print_function import time @@ -139,16 +141,17 @@ from cloudsmith_api.rest import ApiException from pprint import pprint # Configure API key authorization: apikey -cloudsmith_api.configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# cloudsmith_api.configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' # create an instance of the API class -api_instance = cloudsmith_api.OrgsApi() +api_instance = cloudsmith_api.OrgsApi(cloudsmith_api.ApiClient(configuration)) org = 'org_example' # str | member = 'member_example' # str | -try: +try: # Get the details for a specific organization member. api_response = api_instance.orgs_members_read(org, member) pprint(api_response) @@ -185,7 +188,7 @@ Removes a member from the organization. Removes a member from the organization. -### Example +### Example ```python from __future__ import print_function import time @@ -194,16 +197,17 @@ from cloudsmith_api.rest import ApiException from pprint import pprint # Configure API key authorization: apikey -cloudsmith_api.configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# cloudsmith_api.configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' # create an instance of the API class -api_instance = cloudsmith_api.OrgsApi() +api_instance = cloudsmith_api.OrgsApi(cloudsmith_api.ApiClient(configuration)) org = 'org_example' # str | member = 'member_example' # str | -try: +try: # Removes a member from the organization. api_response = api_instance.orgs_members_remove(org, member) pprint(api_response) @@ -240,7 +244,7 @@ Get the details for the specific organization. Get the details for the specific organization. -### Example +### Example ```python from __future__ import print_function import time @@ -249,15 +253,16 @@ from cloudsmith_api.rest import ApiException from pprint import pprint # Configure API key authorization: apikey -cloudsmith_api.configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# cloudsmith_api.configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' # create an instance of the API class -api_instance = cloudsmith_api.OrgsApi() +api_instance = cloudsmith_api.OrgsApi(cloudsmith_api.ApiClient(configuration)) org = 'org_example' # str | -try: +try: # Get the details for the specific organization. api_response = api_instance.orgs_read(org) pprint(api_response) diff --git a/bindings/python/src/docs/PackagesApi.md b/bindings/python/src/docs/PackagesApi.md index d6606dc1..80c97dc5 100644 --- a/bindings/python/src/docs/PackagesApi.md +++ b/bindings/python/src/docs/PackagesApi.md @@ -69,7 +69,7 @@ Copy a package to another repository. Copy a package to another repository. -### Example +### Example ```python from __future__ import print_function import time @@ -78,18 +78,19 @@ from cloudsmith_api.rest import ApiException from pprint import pprint # Configure API key authorization: apikey -cloudsmith_api.configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# cloudsmith_api.configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' # create an instance of the API class -api_instance = cloudsmith_api.PackagesApi() +api_instance = cloudsmith_api.PackagesApi(cloudsmith_api.ApiClient(configuration)) owner = 'owner_example' # str | repo = 'repo_example' # str | identifier = 'identifier_example' # str | data = cloudsmith_api.PackagesCopy() # PackagesCopy | (optional) -try: +try: # Copy a package to another repository. api_response = api_instance.packages_copy(owner, repo, identifier, data=data) pprint(api_response) @@ -128,7 +129,7 @@ Delete a specific package in a repository. Delete a specific package in a repository. -### Example +### Example ```python from __future__ import print_function import time @@ -137,17 +138,18 @@ from cloudsmith_api.rest import ApiException from pprint import pprint # Configure API key authorization: apikey -cloudsmith_api.configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# cloudsmith_api.configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' # create an instance of the API class -api_instance = cloudsmith_api.PackagesApi() +api_instance = cloudsmith_api.PackagesApi(cloudsmith_api.ApiClient(configuration)) owner = 'owner_example' # str | repo = 'repo_example' # str | identifier = 'identifier_example' # str | -try: +try: # Delete a specific package in a repository. api_instance.packages_delete(owner, repo, identifier) except ApiException as e: @@ -184,7 +186,7 @@ Get the direct (non-transitive) dependencies list for a package. Get the direct (non-transitive) dependencies list for a package. -### Example +### Example ```python from __future__ import print_function import time @@ -193,17 +195,18 @@ from cloudsmith_api.rest import ApiException from pprint import pprint # Configure API key authorization: apikey -cloudsmith_api.configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# cloudsmith_api.configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' # create an instance of the API class -api_instance = cloudsmith_api.PackagesApi() +api_instance = cloudsmith_api.PackagesApi(cloudsmith_api.ApiClient(configuration)) owner = 'owner_example' # str | repo = 'repo_example' # str | identifier = 'identifier_example' # str | -try: +try: # Get the direct (non-transitive) dependencies list for a package. api_response = api_instance.packages_dependencies(owner, repo, identifier) pprint(api_response) @@ -241,7 +244,7 @@ Get a list of all packages associated with repository. Get a list of all packages associated with repository. -### Example +### Example ```python from __future__ import print_function import time @@ -250,12 +253,13 @@ from cloudsmith_api.rest import ApiException from pprint import pprint # Configure API key authorization: apikey -cloudsmith_api.configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# cloudsmith_api.configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' # create an instance of the API class -api_instance = cloudsmith_api.PackagesApi() +api_instance = cloudsmith_api.PackagesApi(cloudsmith_api.ApiClient(configuration)) owner = 'owner_example' # str | repo = 'repo_example' # str | page = 56 # int | A page number within the paginated result set. (optional) @@ -263,7 +267,7 @@ page_size = 56 # int | Number of results to return per page. (optional) query = 'query_example' # str | A search term for querying names, filenames, versions, distributions, architectures, formats or statuses of packages. (optional) sort = 'sort_example' # str | A field for sorting objects in ascending or descending order. (optional) -try: +try: # Get a list of all packages associated with repository. api_response = api_instance.packages_list(owner, repo, page=page, page_size=page_size, query=query, sort=sort) pprint(api_response) @@ -304,7 +308,7 @@ Move a package to another repository. Move a package to another repository. -### Example +### Example ```python from __future__ import print_function import time @@ -313,18 +317,19 @@ from cloudsmith_api.rest import ApiException from pprint import pprint # Configure API key authorization: apikey -cloudsmith_api.configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# cloudsmith_api.configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' # create an instance of the API class -api_instance = cloudsmith_api.PackagesApi() +api_instance = cloudsmith_api.PackagesApi(cloudsmith_api.ApiClient(configuration)) owner = 'owner_example' # str | repo = 'repo_example' # str | identifier = 'identifier_example' # str | data = cloudsmith_api.PackagesMove() # PackagesMove | (optional) -try: +try: # Move a package to another repository. api_response = api_instance.packages_move(owner, repo, identifier, data=data) pprint(api_response) @@ -363,7 +368,7 @@ Get a specific package in a repository. Get a specific package in a repository. -### Example +### Example ```python from __future__ import print_function import time @@ -372,17 +377,18 @@ from cloudsmith_api.rest import ApiException from pprint import pprint # Configure API key authorization: apikey -cloudsmith_api.configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# cloudsmith_api.configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' # create an instance of the API class -api_instance = cloudsmith_api.PackagesApi() +api_instance = cloudsmith_api.PackagesApi(cloudsmith_api.ApiClient(configuration)) owner = 'owner_example' # str | repo = 'repo_example' # str | identifier = 'identifier_example' # str | -try: +try: # Get a specific package in a repository. api_response = api_instance.packages_read(owner, repo, identifier) pprint(api_response) @@ -420,7 +426,7 @@ Schedule a package for resynchronisation. Schedule a package for resynchronisation. -### Example +### Example ```python from __future__ import print_function import time @@ -429,17 +435,18 @@ from cloudsmith_api.rest import ApiException from pprint import pprint # Configure API key authorization: apikey -cloudsmith_api.configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# cloudsmith_api.configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' # create an instance of the API class -api_instance = cloudsmith_api.PackagesApi() +api_instance = cloudsmith_api.PackagesApi(cloudsmith_api.ApiClient(configuration)) owner = 'owner_example' # str | repo = 'repo_example' # str | identifier = 'identifier_example' # str | -try: +try: # Schedule a package for resynchronisation. api_response = api_instance.packages_resync(owner, repo, identifier) pprint(api_response) @@ -477,7 +484,7 @@ Schedule a package for scanning. Schedule a package for scanning. -### Example +### Example ```python from __future__ import print_function import time @@ -486,17 +493,18 @@ from cloudsmith_api.rest import ApiException from pprint import pprint # Configure API key authorization: apikey -cloudsmith_api.configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# cloudsmith_api.configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' # create an instance of the API class -api_instance = cloudsmith_api.PackagesApi() +api_instance = cloudsmith_api.PackagesApi(cloudsmith_api.ApiClient(configuration)) owner = 'owner_example' # str | repo = 'repo_example' # str | identifier = 'identifier_example' # str | -try: +try: # Schedule a package for scanning. api_response = api_instance.packages_scan(owner, repo, identifier) pprint(api_response) @@ -534,7 +542,7 @@ Get the synchronisation status for a package. Get the synchronisation status for a package. -### Example +### Example ```python from __future__ import print_function import time @@ -543,17 +551,18 @@ from cloudsmith_api.rest import ApiException from pprint import pprint # Configure API key authorization: apikey -cloudsmith_api.configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# cloudsmith_api.configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' # create an instance of the API class -api_instance = cloudsmith_api.PackagesApi() +api_instance = cloudsmith_api.PackagesApi(cloudsmith_api.ApiClient(configuration)) owner = 'owner_example' # str | repo = 'repo_example' # str | identifier = 'identifier_example' # str | -try: +try: # Get the synchronisation status for a package. api_response = api_instance.packages_status(owner, repo, identifier) pprint(api_response) @@ -591,7 +600,7 @@ Add/Replace/Remove tags for a package. Add/Replace/Remove tags for a package. -### Example +### Example ```python from __future__ import print_function import time @@ -600,18 +609,19 @@ from cloudsmith_api.rest import ApiException from pprint import pprint # Configure API key authorization: apikey -cloudsmith_api.configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# cloudsmith_api.configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' # create an instance of the API class -api_instance = cloudsmith_api.PackagesApi() +api_instance = cloudsmith_api.PackagesApi(cloudsmith_api.ApiClient(configuration)) owner = 'owner_example' # str | repo = 'repo_example' # str | identifier = 'identifier_example' # str | data = cloudsmith_api.PackagesTag() # PackagesTag | (optional) -try: +try: # Add/Replace/Remove tags for a package. api_response = api_instance.packages_tag(owner, repo, identifier, data=data) pprint(api_response) @@ -650,7 +660,7 @@ Create a new Alpine package Create a new Alpine package -### Example +### Example ```python from __future__ import print_function import time @@ -659,17 +669,18 @@ from cloudsmith_api.rest import ApiException from pprint import pprint # Configure API key authorization: apikey -cloudsmith_api.configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# cloudsmith_api.configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' # create an instance of the API class -api_instance = cloudsmith_api.PackagesApi() +api_instance = cloudsmith_api.PackagesApi(cloudsmith_api.ApiClient(configuration)) owner = 'owner_example' # str | repo = 'repo_example' # str | data = cloudsmith_api.PackagesUploadAlpine() # PackagesUploadAlpine | (optional) -try: +try: # Create a new Alpine package api_response = api_instance.packages_upload_alpine(owner, repo, data=data) pprint(api_response) @@ -707,7 +718,7 @@ Create a new Cargo package Create a new Cargo package -### Example +### Example ```python from __future__ import print_function import time @@ -716,17 +727,18 @@ from cloudsmith_api.rest import ApiException from pprint import pprint # Configure API key authorization: apikey -cloudsmith_api.configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# cloudsmith_api.configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' # create an instance of the API class -api_instance = cloudsmith_api.PackagesApi() +api_instance = cloudsmith_api.PackagesApi(cloudsmith_api.ApiClient(configuration)) owner = 'owner_example' # str | repo = 'repo_example' # str | data = cloudsmith_api.PackagesUploadCargo() # PackagesUploadCargo | (optional) -try: +try: # Create a new Cargo package api_response = api_instance.packages_upload_cargo(owner, repo, data=data) pprint(api_response) @@ -764,7 +776,7 @@ Create a new CocoaPods package Create a new CocoaPods package -### Example +### Example ```python from __future__ import print_function import time @@ -773,17 +785,18 @@ from cloudsmith_api.rest import ApiException from pprint import pprint # Configure API key authorization: apikey -cloudsmith_api.configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# cloudsmith_api.configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' # create an instance of the API class -api_instance = cloudsmith_api.PackagesApi() +api_instance = cloudsmith_api.PackagesApi(cloudsmith_api.ApiClient(configuration)) owner = 'owner_example' # str | repo = 'repo_example' # str | data = cloudsmith_api.PackagesUploadCocoapods() # PackagesUploadCocoapods | (optional) -try: +try: # Create a new CocoaPods package api_response = api_instance.packages_upload_cocoapods(owner, repo, data=data) pprint(api_response) @@ -821,7 +834,7 @@ Create a new Composer package Create a new Composer package -### Example +### Example ```python from __future__ import print_function import time @@ -830,17 +843,18 @@ from cloudsmith_api.rest import ApiException from pprint import pprint # Configure API key authorization: apikey -cloudsmith_api.configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# cloudsmith_api.configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' # create an instance of the API class -api_instance = cloudsmith_api.PackagesApi() +api_instance = cloudsmith_api.PackagesApi(cloudsmith_api.ApiClient(configuration)) owner = 'owner_example' # str | repo = 'repo_example' # str | data = cloudsmith_api.PackagesUploadComposer() # PackagesUploadComposer | (optional) -try: +try: # Create a new Composer package api_response = api_instance.packages_upload_composer(owner, repo, data=data) pprint(api_response) @@ -878,7 +892,7 @@ Create a new Conan package Create a new Conan package -### Example +### Example ```python from __future__ import print_function import time @@ -887,17 +901,18 @@ from cloudsmith_api.rest import ApiException from pprint import pprint # Configure API key authorization: apikey -cloudsmith_api.configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# cloudsmith_api.configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' # create an instance of the API class -api_instance = cloudsmith_api.PackagesApi() +api_instance = cloudsmith_api.PackagesApi(cloudsmith_api.ApiClient(configuration)) owner = 'owner_example' # str | repo = 'repo_example' # str | data = cloudsmith_api.PackagesUploadConan() # PackagesUploadConan | (optional) -try: +try: # Create a new Conan package api_response = api_instance.packages_upload_conan(owner, repo, data=data) pprint(api_response) @@ -935,7 +950,7 @@ Create a new Conda package Create a new Conda package -### Example +### Example ```python from __future__ import print_function import time @@ -944,17 +959,18 @@ from cloudsmith_api.rest import ApiException from pprint import pprint # Configure API key authorization: apikey -cloudsmith_api.configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# cloudsmith_api.configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' # create an instance of the API class -api_instance = cloudsmith_api.PackagesApi() +api_instance = cloudsmith_api.PackagesApi(cloudsmith_api.ApiClient(configuration)) owner = 'owner_example' # str | repo = 'repo_example' # str | data = cloudsmith_api.PackagesUploadConda() # PackagesUploadConda | (optional) -try: +try: # Create a new Conda package api_response = api_instance.packages_upload_conda(owner, repo, data=data) pprint(api_response) @@ -992,7 +1008,7 @@ Create a new CRAN package Create a new CRAN package -### Example +### Example ```python from __future__ import print_function import time @@ -1001,17 +1017,18 @@ from cloudsmith_api.rest import ApiException from pprint import pprint # Configure API key authorization: apikey -cloudsmith_api.configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# cloudsmith_api.configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' # create an instance of the API class -api_instance = cloudsmith_api.PackagesApi() +api_instance = cloudsmith_api.PackagesApi(cloudsmith_api.ApiClient(configuration)) owner = 'owner_example' # str | repo = 'repo_example' # str | data = cloudsmith_api.PackagesUploadCran() # PackagesUploadCran | (optional) -try: +try: # Create a new CRAN package api_response = api_instance.packages_upload_cran(owner, repo, data=data) pprint(api_response) @@ -1049,7 +1066,7 @@ Create a new Dart package Create a new Dart package -### Example +### Example ```python from __future__ import print_function import time @@ -1058,17 +1075,18 @@ from cloudsmith_api.rest import ApiException from pprint import pprint # Configure API key authorization: apikey -cloudsmith_api.configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# cloudsmith_api.configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' # create an instance of the API class -api_instance = cloudsmith_api.PackagesApi() +api_instance = cloudsmith_api.PackagesApi(cloudsmith_api.ApiClient(configuration)) owner = 'owner_example' # str | repo = 'repo_example' # str | data = cloudsmith_api.PackagesUploadDart() # PackagesUploadDart | (optional) -try: +try: # Create a new Dart package api_response = api_instance.packages_upload_dart(owner, repo, data=data) pprint(api_response) @@ -1106,7 +1124,7 @@ Create a new Debian package Create a new Debian package -### Example +### Example ```python from __future__ import print_function import time @@ -1115,17 +1133,18 @@ from cloudsmith_api.rest import ApiException from pprint import pprint # Configure API key authorization: apikey -cloudsmith_api.configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# cloudsmith_api.configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' # create an instance of the API class -api_instance = cloudsmith_api.PackagesApi() +api_instance = cloudsmith_api.PackagesApi(cloudsmith_api.ApiClient(configuration)) owner = 'owner_example' # str | repo = 'repo_example' # str | data = cloudsmith_api.PackagesUploadDeb() # PackagesUploadDeb | (optional) -try: +try: # Create a new Debian package api_response = api_instance.packages_upload_deb(owner, repo, data=data) pprint(api_response) @@ -1163,7 +1182,7 @@ Create a new Docker package Create a new Docker package -### Example +### Example ```python from __future__ import print_function import time @@ -1172,17 +1191,18 @@ from cloudsmith_api.rest import ApiException from pprint import pprint # Configure API key authorization: apikey -cloudsmith_api.configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# cloudsmith_api.configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' # create an instance of the API class -api_instance = cloudsmith_api.PackagesApi() +api_instance = cloudsmith_api.PackagesApi(cloudsmith_api.ApiClient(configuration)) owner = 'owner_example' # str | repo = 'repo_example' # str | data = cloudsmith_api.PackagesUploadDocker() # PackagesUploadDocker | (optional) -try: +try: # Create a new Docker package api_response = api_instance.packages_upload_docker(owner, repo, data=data) pprint(api_response) @@ -1220,7 +1240,7 @@ Create a new Go package Create a new Go package -### Example +### Example ```python from __future__ import print_function import time @@ -1229,17 +1249,18 @@ from cloudsmith_api.rest import ApiException from pprint import pprint # Configure API key authorization: apikey -cloudsmith_api.configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# cloudsmith_api.configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' # create an instance of the API class -api_instance = cloudsmith_api.PackagesApi() +api_instance = cloudsmith_api.PackagesApi(cloudsmith_api.ApiClient(configuration)) owner = 'owner_example' # str | repo = 'repo_example' # str | data = cloudsmith_api.PackagesUploadGo() # PackagesUploadGo | (optional) -try: +try: # Create a new Go package api_response = api_instance.packages_upload_go(owner, repo, data=data) pprint(api_response) @@ -1277,7 +1298,7 @@ Create a new Helm package Create a new Helm package -### Example +### Example ```python from __future__ import print_function import time @@ -1286,17 +1307,18 @@ from cloudsmith_api.rest import ApiException from pprint import pprint # Configure API key authorization: apikey -cloudsmith_api.configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# cloudsmith_api.configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' # create an instance of the API class -api_instance = cloudsmith_api.PackagesApi() +api_instance = cloudsmith_api.PackagesApi(cloudsmith_api.ApiClient(configuration)) owner = 'owner_example' # str | repo = 'repo_example' # str | data = cloudsmith_api.PackagesUploadHelm() # PackagesUploadHelm | (optional) -try: +try: # Create a new Helm package api_response = api_instance.packages_upload_helm(owner, repo, data=data) pprint(api_response) @@ -1334,7 +1356,7 @@ Create a new LuaRocks package Create a new LuaRocks package -### Example +### Example ```python from __future__ import print_function import time @@ -1343,17 +1365,18 @@ from cloudsmith_api.rest import ApiException from pprint import pprint # Configure API key authorization: apikey -cloudsmith_api.configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# cloudsmith_api.configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' # create an instance of the API class -api_instance = cloudsmith_api.PackagesApi() +api_instance = cloudsmith_api.PackagesApi(cloudsmith_api.ApiClient(configuration)) owner = 'owner_example' # str | repo = 'repo_example' # str | data = cloudsmith_api.PackagesUploadLuarocks() # PackagesUploadLuarocks | (optional) -try: +try: # Create a new LuaRocks package api_response = api_instance.packages_upload_luarocks(owner, repo, data=data) pprint(api_response) @@ -1391,7 +1414,7 @@ Create a new Maven package Create a new Maven package -### Example +### Example ```python from __future__ import print_function import time @@ -1400,17 +1423,18 @@ from cloudsmith_api.rest import ApiException from pprint import pprint # Configure API key authorization: apikey -cloudsmith_api.configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# cloudsmith_api.configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' # create an instance of the API class -api_instance = cloudsmith_api.PackagesApi() +api_instance = cloudsmith_api.PackagesApi(cloudsmith_api.ApiClient(configuration)) owner = 'owner_example' # str | repo = 'repo_example' # str | data = cloudsmith_api.PackagesUploadMaven() # PackagesUploadMaven | (optional) -try: +try: # Create a new Maven package api_response = api_instance.packages_upload_maven(owner, repo, data=data) pprint(api_response) @@ -1448,7 +1472,7 @@ Create a new npm package Create a new npm package -### Example +### Example ```python from __future__ import print_function import time @@ -1457,17 +1481,18 @@ from cloudsmith_api.rest import ApiException from pprint import pprint # Configure API key authorization: apikey -cloudsmith_api.configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# cloudsmith_api.configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' # create an instance of the API class -api_instance = cloudsmith_api.PackagesApi() +api_instance = cloudsmith_api.PackagesApi(cloudsmith_api.ApiClient(configuration)) owner = 'owner_example' # str | repo = 'repo_example' # str | data = cloudsmith_api.PackagesUploadNpm() # PackagesUploadNpm | (optional) -try: +try: # Create a new npm package api_response = api_instance.packages_upload_npm(owner, repo, data=data) pprint(api_response) @@ -1505,7 +1530,7 @@ Create a new NuGet package Create a new NuGet package -### Example +### Example ```python from __future__ import print_function import time @@ -1514,17 +1539,18 @@ from cloudsmith_api.rest import ApiException from pprint import pprint # Configure API key authorization: apikey -cloudsmith_api.configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# cloudsmith_api.configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' # create an instance of the API class -api_instance = cloudsmith_api.PackagesApi() +api_instance = cloudsmith_api.PackagesApi(cloudsmith_api.ApiClient(configuration)) owner = 'owner_example' # str | repo = 'repo_example' # str | data = cloudsmith_api.PackagesUploadNuget() # PackagesUploadNuget | (optional) -try: +try: # Create a new NuGet package api_response = api_instance.packages_upload_nuget(owner, repo, data=data) pprint(api_response) @@ -1562,7 +1588,7 @@ Create a new P2 package Create a new P2 package -### Example +### Example ```python from __future__ import print_function import time @@ -1571,17 +1597,18 @@ from cloudsmith_api.rest import ApiException from pprint import pprint # Configure API key authorization: apikey -cloudsmith_api.configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# cloudsmith_api.configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' # create an instance of the API class -api_instance = cloudsmith_api.PackagesApi() +api_instance = cloudsmith_api.PackagesApi(cloudsmith_api.ApiClient(configuration)) owner = 'owner_example' # str | repo = 'repo_example' # str | data = cloudsmith_api.PackagesUploadP2() # PackagesUploadP2 | (optional) -try: +try: # Create a new P2 package api_response = api_instance.packages_upload_p2(owner, repo, data=data) pprint(api_response) @@ -1619,7 +1646,7 @@ Create a new Python package Create a new Python package -### Example +### Example ```python from __future__ import print_function import time @@ -1628,17 +1655,18 @@ from cloudsmith_api.rest import ApiException from pprint import pprint # Configure API key authorization: apikey -cloudsmith_api.configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# cloudsmith_api.configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' # create an instance of the API class -api_instance = cloudsmith_api.PackagesApi() +api_instance = cloudsmith_api.PackagesApi(cloudsmith_api.ApiClient(configuration)) owner = 'owner_example' # str | repo = 'repo_example' # str | data = cloudsmith_api.PackagesUploadPython() # PackagesUploadPython | (optional) -try: +try: # Create a new Python package api_response = api_instance.packages_upload_python(owner, repo, data=data) pprint(api_response) @@ -1676,7 +1704,7 @@ Create a new Raw package Create a new Raw package -### Example +### Example ```python from __future__ import print_function import time @@ -1685,17 +1713,18 @@ from cloudsmith_api.rest import ApiException from pprint import pprint # Configure API key authorization: apikey -cloudsmith_api.configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# cloudsmith_api.configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' # create an instance of the API class -api_instance = cloudsmith_api.PackagesApi() +api_instance = cloudsmith_api.PackagesApi(cloudsmith_api.ApiClient(configuration)) owner = 'owner_example' # str | repo = 'repo_example' # str | data = cloudsmith_api.PackagesUploadRaw() # PackagesUploadRaw | (optional) -try: +try: # Create a new Raw package api_response = api_instance.packages_upload_raw(owner, repo, data=data) pprint(api_response) @@ -1733,7 +1762,7 @@ Create a new RedHat package Create a new RedHat package -### Example +### Example ```python from __future__ import print_function import time @@ -1742,17 +1771,18 @@ from cloudsmith_api.rest import ApiException from pprint import pprint # Configure API key authorization: apikey -cloudsmith_api.configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# cloudsmith_api.configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' # create an instance of the API class -api_instance = cloudsmith_api.PackagesApi() +api_instance = cloudsmith_api.PackagesApi(cloudsmith_api.ApiClient(configuration)) owner = 'owner_example' # str | repo = 'repo_example' # str | data = cloudsmith_api.PackagesUploadRpm() # PackagesUploadRpm | (optional) -try: +try: # Create a new RedHat package api_response = api_instance.packages_upload_rpm(owner, repo, data=data) pprint(api_response) @@ -1790,7 +1820,7 @@ Create a new Ruby package Create a new Ruby package -### Example +### Example ```python from __future__ import print_function import time @@ -1799,17 +1829,18 @@ from cloudsmith_api.rest import ApiException from pprint import pprint # Configure API key authorization: apikey -cloudsmith_api.configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# cloudsmith_api.configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' # create an instance of the API class -api_instance = cloudsmith_api.PackagesApi() +api_instance = cloudsmith_api.PackagesApi(cloudsmith_api.ApiClient(configuration)) owner = 'owner_example' # str | repo = 'repo_example' # str | data = cloudsmith_api.PackagesUploadRuby() # PackagesUploadRuby | (optional) -try: +try: # Create a new Ruby package api_response = api_instance.packages_upload_ruby(owner, repo, data=data) pprint(api_response) @@ -1847,7 +1878,7 @@ Create a new Terraform package Create a new Terraform package -### Example +### Example ```python from __future__ import print_function import time @@ -1856,17 +1887,18 @@ from cloudsmith_api.rest import ApiException from pprint import pprint # Configure API key authorization: apikey -cloudsmith_api.configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# cloudsmith_api.configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' # create an instance of the API class -api_instance = cloudsmith_api.PackagesApi() +api_instance = cloudsmith_api.PackagesApi(cloudsmith_api.ApiClient(configuration)) owner = 'owner_example' # str | repo = 'repo_example' # str | data = cloudsmith_api.PackagesUploadTerraform() # PackagesUploadTerraform | (optional) -try: +try: # Create a new Terraform package api_response = api_instance.packages_upload_terraform(owner, repo, data=data) pprint(api_response) @@ -1904,7 +1936,7 @@ Create a new Vagrant package Create a new Vagrant package -### Example +### Example ```python from __future__ import print_function import time @@ -1913,17 +1945,18 @@ from cloudsmith_api.rest import ApiException from pprint import pprint # Configure API key authorization: apikey -cloudsmith_api.configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# cloudsmith_api.configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' # create an instance of the API class -api_instance = cloudsmith_api.PackagesApi() +api_instance = cloudsmith_api.PackagesApi(cloudsmith_api.ApiClient(configuration)) owner = 'owner_example' # str | repo = 'repo_example' # str | data = cloudsmith_api.PackagesUploadVagrant() # PackagesUploadVagrant | (optional) -try: +try: # Create a new Vagrant package api_response = api_instance.packages_upload_vagrant(owner, repo, data=data) pprint(api_response) @@ -1961,7 +1994,7 @@ Validate parameters for create Alpine package Validate parameters for create Alpine package -### Example +### Example ```python from __future__ import print_function import time @@ -1970,17 +2003,18 @@ from cloudsmith_api.rest import ApiException from pprint import pprint # Configure API key authorization: apikey -cloudsmith_api.configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# cloudsmith_api.configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' # create an instance of the API class -api_instance = cloudsmith_api.PackagesApi() +api_instance = cloudsmith_api.PackagesApi(cloudsmith_api.ApiClient(configuration)) owner = 'owner_example' # str | repo = 'repo_example' # str | data = cloudsmith_api.PackagesValidateuploadAlpine() # PackagesValidateuploadAlpine | (optional) -try: +try: # Validate parameters for create Alpine package api_instance.packages_validate_upload_alpine(owner, repo, data=data) except ApiException as e: @@ -2017,7 +2051,7 @@ Validate parameters for create Cargo package Validate parameters for create Cargo package -### Example +### Example ```python from __future__ import print_function import time @@ -2026,17 +2060,18 @@ from cloudsmith_api.rest import ApiException from pprint import pprint # Configure API key authorization: apikey -cloudsmith_api.configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# cloudsmith_api.configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' # create an instance of the API class -api_instance = cloudsmith_api.PackagesApi() +api_instance = cloudsmith_api.PackagesApi(cloudsmith_api.ApiClient(configuration)) owner = 'owner_example' # str | repo = 'repo_example' # str | data = cloudsmith_api.PackagesValidateuploadCargo() # PackagesValidateuploadCargo | (optional) -try: +try: # Validate parameters for create Cargo package api_instance.packages_validate_upload_cargo(owner, repo, data=data) except ApiException as e: @@ -2073,7 +2108,7 @@ Validate parameters for create CocoaPods package Validate parameters for create CocoaPods package -### Example +### Example ```python from __future__ import print_function import time @@ -2082,17 +2117,18 @@ from cloudsmith_api.rest import ApiException from pprint import pprint # Configure API key authorization: apikey -cloudsmith_api.configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# cloudsmith_api.configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' # create an instance of the API class -api_instance = cloudsmith_api.PackagesApi() +api_instance = cloudsmith_api.PackagesApi(cloudsmith_api.ApiClient(configuration)) owner = 'owner_example' # str | repo = 'repo_example' # str | data = cloudsmith_api.PackagesValidateuploadCocoapods() # PackagesValidateuploadCocoapods | (optional) -try: +try: # Validate parameters for create CocoaPods package api_instance.packages_validate_upload_cocoapods(owner, repo, data=data) except ApiException as e: @@ -2129,7 +2165,7 @@ Validate parameters for create Composer package Validate parameters for create Composer package -### Example +### Example ```python from __future__ import print_function import time @@ -2138,17 +2174,18 @@ from cloudsmith_api.rest import ApiException from pprint import pprint # Configure API key authorization: apikey -cloudsmith_api.configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# cloudsmith_api.configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' # create an instance of the API class -api_instance = cloudsmith_api.PackagesApi() +api_instance = cloudsmith_api.PackagesApi(cloudsmith_api.ApiClient(configuration)) owner = 'owner_example' # str | repo = 'repo_example' # str | data = cloudsmith_api.PackagesValidateuploadComposer() # PackagesValidateuploadComposer | (optional) -try: +try: # Validate parameters for create Composer package api_instance.packages_validate_upload_composer(owner, repo, data=data) except ApiException as e: @@ -2185,7 +2222,7 @@ Validate parameters for create Conan package Validate parameters for create Conan package -### Example +### Example ```python from __future__ import print_function import time @@ -2194,17 +2231,18 @@ from cloudsmith_api.rest import ApiException from pprint import pprint # Configure API key authorization: apikey -cloudsmith_api.configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# cloudsmith_api.configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' # create an instance of the API class -api_instance = cloudsmith_api.PackagesApi() +api_instance = cloudsmith_api.PackagesApi(cloudsmith_api.ApiClient(configuration)) owner = 'owner_example' # str | repo = 'repo_example' # str | data = cloudsmith_api.PackagesValidateuploadConan() # PackagesValidateuploadConan | (optional) -try: +try: # Validate parameters for create Conan package api_instance.packages_validate_upload_conan(owner, repo, data=data) except ApiException as e: @@ -2241,7 +2279,7 @@ Validate parameters for create Conda package Validate parameters for create Conda package -### Example +### Example ```python from __future__ import print_function import time @@ -2250,17 +2288,18 @@ from cloudsmith_api.rest import ApiException from pprint import pprint # Configure API key authorization: apikey -cloudsmith_api.configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# cloudsmith_api.configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' # create an instance of the API class -api_instance = cloudsmith_api.PackagesApi() +api_instance = cloudsmith_api.PackagesApi(cloudsmith_api.ApiClient(configuration)) owner = 'owner_example' # str | repo = 'repo_example' # str | data = cloudsmith_api.PackagesValidateuploadConda() # PackagesValidateuploadConda | (optional) -try: +try: # Validate parameters for create Conda package api_instance.packages_validate_upload_conda(owner, repo, data=data) except ApiException as e: @@ -2297,7 +2336,7 @@ Validate parameters for create CRAN package Validate parameters for create CRAN package -### Example +### Example ```python from __future__ import print_function import time @@ -2306,17 +2345,18 @@ from cloudsmith_api.rest import ApiException from pprint import pprint # Configure API key authorization: apikey -cloudsmith_api.configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# cloudsmith_api.configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' # create an instance of the API class -api_instance = cloudsmith_api.PackagesApi() +api_instance = cloudsmith_api.PackagesApi(cloudsmith_api.ApiClient(configuration)) owner = 'owner_example' # str | repo = 'repo_example' # str | data = cloudsmith_api.PackagesValidateuploadCran() # PackagesValidateuploadCran | (optional) -try: +try: # Validate parameters for create CRAN package api_instance.packages_validate_upload_cran(owner, repo, data=data) except ApiException as e: @@ -2353,7 +2393,7 @@ Validate parameters for create Dart package Validate parameters for create Dart package -### Example +### Example ```python from __future__ import print_function import time @@ -2362,17 +2402,18 @@ from cloudsmith_api.rest import ApiException from pprint import pprint # Configure API key authorization: apikey -cloudsmith_api.configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# cloudsmith_api.configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' # create an instance of the API class -api_instance = cloudsmith_api.PackagesApi() +api_instance = cloudsmith_api.PackagesApi(cloudsmith_api.ApiClient(configuration)) owner = 'owner_example' # str | repo = 'repo_example' # str | data = cloudsmith_api.PackagesValidateuploadDart() # PackagesValidateuploadDart | (optional) -try: +try: # Validate parameters for create Dart package api_instance.packages_validate_upload_dart(owner, repo, data=data) except ApiException as e: @@ -2409,7 +2450,7 @@ Validate parameters for create Debian package Validate parameters for create Debian package -### Example +### Example ```python from __future__ import print_function import time @@ -2418,17 +2459,18 @@ from cloudsmith_api.rest import ApiException from pprint import pprint # Configure API key authorization: apikey -cloudsmith_api.configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# cloudsmith_api.configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' # create an instance of the API class -api_instance = cloudsmith_api.PackagesApi() +api_instance = cloudsmith_api.PackagesApi(cloudsmith_api.ApiClient(configuration)) owner = 'owner_example' # str | repo = 'repo_example' # str | data = cloudsmith_api.PackagesValidateuploadDeb() # PackagesValidateuploadDeb | (optional) -try: +try: # Validate parameters for create Debian package api_instance.packages_validate_upload_deb(owner, repo, data=data) except ApiException as e: @@ -2465,7 +2507,7 @@ Validate parameters for create Docker package Validate parameters for create Docker package -### Example +### Example ```python from __future__ import print_function import time @@ -2474,17 +2516,18 @@ from cloudsmith_api.rest import ApiException from pprint import pprint # Configure API key authorization: apikey -cloudsmith_api.configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# cloudsmith_api.configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' # create an instance of the API class -api_instance = cloudsmith_api.PackagesApi() +api_instance = cloudsmith_api.PackagesApi(cloudsmith_api.ApiClient(configuration)) owner = 'owner_example' # str | repo = 'repo_example' # str | data = cloudsmith_api.PackagesValidateuploadDocker() # PackagesValidateuploadDocker | (optional) -try: +try: # Validate parameters for create Docker package api_instance.packages_validate_upload_docker(owner, repo, data=data) except ApiException as e: @@ -2521,7 +2564,7 @@ Validate parameters for create Go package Validate parameters for create Go package -### Example +### Example ```python from __future__ import print_function import time @@ -2530,17 +2573,18 @@ from cloudsmith_api.rest import ApiException from pprint import pprint # Configure API key authorization: apikey -cloudsmith_api.configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# cloudsmith_api.configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' # create an instance of the API class -api_instance = cloudsmith_api.PackagesApi() +api_instance = cloudsmith_api.PackagesApi(cloudsmith_api.ApiClient(configuration)) owner = 'owner_example' # str | repo = 'repo_example' # str | data = cloudsmith_api.PackagesValidateuploadGo() # PackagesValidateuploadGo | (optional) -try: +try: # Validate parameters for create Go package api_instance.packages_validate_upload_go(owner, repo, data=data) except ApiException as e: @@ -2577,7 +2621,7 @@ Validate parameters for create Helm package Validate parameters for create Helm package -### Example +### Example ```python from __future__ import print_function import time @@ -2586,17 +2630,18 @@ from cloudsmith_api.rest import ApiException from pprint import pprint # Configure API key authorization: apikey -cloudsmith_api.configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# cloudsmith_api.configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' # create an instance of the API class -api_instance = cloudsmith_api.PackagesApi() +api_instance = cloudsmith_api.PackagesApi(cloudsmith_api.ApiClient(configuration)) owner = 'owner_example' # str | repo = 'repo_example' # str | data = cloudsmith_api.PackagesValidateuploadHelm() # PackagesValidateuploadHelm | (optional) -try: +try: # Validate parameters for create Helm package api_instance.packages_validate_upload_helm(owner, repo, data=data) except ApiException as e: @@ -2633,7 +2678,7 @@ Validate parameters for create LuaRocks package Validate parameters for create LuaRocks package -### Example +### Example ```python from __future__ import print_function import time @@ -2642,17 +2687,18 @@ from cloudsmith_api.rest import ApiException from pprint import pprint # Configure API key authorization: apikey -cloudsmith_api.configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# cloudsmith_api.configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' # create an instance of the API class -api_instance = cloudsmith_api.PackagesApi() +api_instance = cloudsmith_api.PackagesApi(cloudsmith_api.ApiClient(configuration)) owner = 'owner_example' # str | repo = 'repo_example' # str | data = cloudsmith_api.PackagesValidateuploadLuarocks() # PackagesValidateuploadLuarocks | (optional) -try: +try: # Validate parameters for create LuaRocks package api_instance.packages_validate_upload_luarocks(owner, repo, data=data) except ApiException as e: @@ -2689,7 +2735,7 @@ Validate parameters for create Maven package Validate parameters for create Maven package -### Example +### Example ```python from __future__ import print_function import time @@ -2698,17 +2744,18 @@ from cloudsmith_api.rest import ApiException from pprint import pprint # Configure API key authorization: apikey -cloudsmith_api.configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# cloudsmith_api.configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' # create an instance of the API class -api_instance = cloudsmith_api.PackagesApi() +api_instance = cloudsmith_api.PackagesApi(cloudsmith_api.ApiClient(configuration)) owner = 'owner_example' # str | repo = 'repo_example' # str | data = cloudsmith_api.PackagesValidateuploadMaven() # PackagesValidateuploadMaven | (optional) -try: +try: # Validate parameters for create Maven package api_instance.packages_validate_upload_maven(owner, repo, data=data) except ApiException as e: @@ -2745,7 +2792,7 @@ Validate parameters for create npm package Validate parameters for create npm package -### Example +### Example ```python from __future__ import print_function import time @@ -2754,17 +2801,18 @@ from cloudsmith_api.rest import ApiException from pprint import pprint # Configure API key authorization: apikey -cloudsmith_api.configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# cloudsmith_api.configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' # create an instance of the API class -api_instance = cloudsmith_api.PackagesApi() +api_instance = cloudsmith_api.PackagesApi(cloudsmith_api.ApiClient(configuration)) owner = 'owner_example' # str | repo = 'repo_example' # str | data = cloudsmith_api.PackagesValidateuploadNpm() # PackagesValidateuploadNpm | (optional) -try: +try: # Validate parameters for create npm package api_instance.packages_validate_upload_npm(owner, repo, data=data) except ApiException as e: @@ -2801,7 +2849,7 @@ Validate parameters for create NuGet package Validate parameters for create NuGet package -### Example +### Example ```python from __future__ import print_function import time @@ -2810,17 +2858,18 @@ from cloudsmith_api.rest import ApiException from pprint import pprint # Configure API key authorization: apikey -cloudsmith_api.configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# cloudsmith_api.configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' # create an instance of the API class -api_instance = cloudsmith_api.PackagesApi() +api_instance = cloudsmith_api.PackagesApi(cloudsmith_api.ApiClient(configuration)) owner = 'owner_example' # str | repo = 'repo_example' # str | data = cloudsmith_api.PackagesValidateuploadNuget() # PackagesValidateuploadNuget | (optional) -try: +try: # Validate parameters for create NuGet package api_instance.packages_validate_upload_nuget(owner, repo, data=data) except ApiException as e: @@ -2857,7 +2906,7 @@ Validate parameters for create P2 package Validate parameters for create P2 package -### Example +### Example ```python from __future__ import print_function import time @@ -2866,17 +2915,18 @@ from cloudsmith_api.rest import ApiException from pprint import pprint # Configure API key authorization: apikey -cloudsmith_api.configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# cloudsmith_api.configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' # create an instance of the API class -api_instance = cloudsmith_api.PackagesApi() +api_instance = cloudsmith_api.PackagesApi(cloudsmith_api.ApiClient(configuration)) owner = 'owner_example' # str | repo = 'repo_example' # str | data = cloudsmith_api.PackagesValidateuploadP2() # PackagesValidateuploadP2 | (optional) -try: +try: # Validate parameters for create P2 package api_instance.packages_validate_upload_p2(owner, repo, data=data) except ApiException as e: @@ -2913,7 +2963,7 @@ Validate parameters for create Python package Validate parameters for create Python package -### Example +### Example ```python from __future__ import print_function import time @@ -2922,17 +2972,18 @@ from cloudsmith_api.rest import ApiException from pprint import pprint # Configure API key authorization: apikey -cloudsmith_api.configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# cloudsmith_api.configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' # create an instance of the API class -api_instance = cloudsmith_api.PackagesApi() +api_instance = cloudsmith_api.PackagesApi(cloudsmith_api.ApiClient(configuration)) owner = 'owner_example' # str | repo = 'repo_example' # str | data = cloudsmith_api.PackagesValidateuploadPython() # PackagesValidateuploadPython | (optional) -try: +try: # Validate parameters for create Python package api_instance.packages_validate_upload_python(owner, repo, data=data) except ApiException as e: @@ -2969,7 +3020,7 @@ Validate parameters for create Raw package Validate parameters for create Raw package -### Example +### Example ```python from __future__ import print_function import time @@ -2978,17 +3029,18 @@ from cloudsmith_api.rest import ApiException from pprint import pprint # Configure API key authorization: apikey -cloudsmith_api.configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# cloudsmith_api.configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' # create an instance of the API class -api_instance = cloudsmith_api.PackagesApi() +api_instance = cloudsmith_api.PackagesApi(cloudsmith_api.ApiClient(configuration)) owner = 'owner_example' # str | repo = 'repo_example' # str | data = cloudsmith_api.PackagesValidateuploadRaw() # PackagesValidateuploadRaw | (optional) -try: +try: # Validate parameters for create Raw package api_instance.packages_validate_upload_raw(owner, repo, data=data) except ApiException as e: @@ -3025,7 +3077,7 @@ Validate parameters for create RedHat package Validate parameters for create RedHat package -### Example +### Example ```python from __future__ import print_function import time @@ -3034,17 +3086,18 @@ from cloudsmith_api.rest import ApiException from pprint import pprint # Configure API key authorization: apikey -cloudsmith_api.configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# cloudsmith_api.configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' # create an instance of the API class -api_instance = cloudsmith_api.PackagesApi() +api_instance = cloudsmith_api.PackagesApi(cloudsmith_api.ApiClient(configuration)) owner = 'owner_example' # str | repo = 'repo_example' # str | data = cloudsmith_api.PackagesValidateuploadRpm() # PackagesValidateuploadRpm | (optional) -try: +try: # Validate parameters for create RedHat package api_instance.packages_validate_upload_rpm(owner, repo, data=data) except ApiException as e: @@ -3081,7 +3134,7 @@ Validate parameters for create Ruby package Validate parameters for create Ruby package -### Example +### Example ```python from __future__ import print_function import time @@ -3090,17 +3143,18 @@ from cloudsmith_api.rest import ApiException from pprint import pprint # Configure API key authorization: apikey -cloudsmith_api.configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# cloudsmith_api.configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' # create an instance of the API class -api_instance = cloudsmith_api.PackagesApi() +api_instance = cloudsmith_api.PackagesApi(cloudsmith_api.ApiClient(configuration)) owner = 'owner_example' # str | repo = 'repo_example' # str | data = cloudsmith_api.PackagesValidateuploadRuby() # PackagesValidateuploadRuby | (optional) -try: +try: # Validate parameters for create Ruby package api_instance.packages_validate_upload_ruby(owner, repo, data=data) except ApiException as e: @@ -3137,7 +3191,7 @@ Validate parameters for create Terraform package Validate parameters for create Terraform package -### Example +### Example ```python from __future__ import print_function import time @@ -3146,17 +3200,18 @@ from cloudsmith_api.rest import ApiException from pprint import pprint # Configure API key authorization: apikey -cloudsmith_api.configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# cloudsmith_api.configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' # create an instance of the API class -api_instance = cloudsmith_api.PackagesApi() +api_instance = cloudsmith_api.PackagesApi(cloudsmith_api.ApiClient(configuration)) owner = 'owner_example' # str | repo = 'repo_example' # str | data = cloudsmith_api.PackagesValidateuploadTerraform() # PackagesValidateuploadTerraform | (optional) -try: +try: # Validate parameters for create Terraform package api_instance.packages_validate_upload_terraform(owner, repo, data=data) except ApiException as e: @@ -3193,7 +3248,7 @@ Validate parameters for create Vagrant package Validate parameters for create Vagrant package -### Example +### Example ```python from __future__ import print_function import time @@ -3202,17 +3257,18 @@ from cloudsmith_api.rest import ApiException from pprint import pprint # Configure API key authorization: apikey -cloudsmith_api.configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# cloudsmith_api.configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' # create an instance of the API class -api_instance = cloudsmith_api.PackagesApi() +api_instance = cloudsmith_api.PackagesApi(cloudsmith_api.ApiClient(configuration)) owner = 'owner_example' # str | repo = 'repo_example' # str | data = cloudsmith_api.PackagesValidateuploadVagrant() # PackagesValidateuploadVagrant | (optional) -try: +try: # Validate parameters for create Vagrant package api_instance.packages_validate_upload_vagrant(owner, repo, data=data) except ApiException as e: diff --git a/bindings/python/src/docs/QuotaApi.md b/bindings/python/src/docs/QuotaApi.md index add26d02..a1fc5b00 100644 --- a/bindings/python/src/docs/QuotaApi.md +++ b/bindings/python/src/docs/QuotaApi.md @@ -17,7 +17,7 @@ Quota history for a given namespace. Quota history for a given namespace. -### Example +### Example ```python from __future__ import print_function import time @@ -26,15 +26,16 @@ from cloudsmith_api.rest import ApiException from pprint import pprint # Configure API key authorization: apikey -cloudsmith_api.configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# cloudsmith_api.configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' # create an instance of the API class -api_instance = cloudsmith_api.QuotaApi() +api_instance = cloudsmith_api.QuotaApi(cloudsmith_api.ApiClient(configuration)) owner = 'owner_example' # str | -try: +try: # Quota history for a given namespace. api_response = api_instance.quota_history_read(owner) pprint(api_response) @@ -70,7 +71,7 @@ Open-source Quota history for a given namespace. Open-source Quota history for a given namespace. -### Example +### Example ```python from __future__ import print_function import time @@ -79,15 +80,16 @@ from cloudsmith_api.rest import ApiException from pprint import pprint # Configure API key authorization: apikey -cloudsmith_api.configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# cloudsmith_api.configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' # create an instance of the API class -api_instance = cloudsmith_api.QuotaApi() +api_instance = cloudsmith_api.QuotaApi(cloudsmith_api.ApiClient(configuration)) owner = 'owner_example' # str | -try: +try: # Open-source Quota history for a given namespace. api_response = api_instance.quota_oss_history_read(owner) pprint(api_response) @@ -123,7 +125,7 @@ Open-source Quota usage for a given namespace. Open-source Quota usage for a given namespace. -### Example +### Example ```python from __future__ import print_function import time @@ -132,15 +134,16 @@ from cloudsmith_api.rest import ApiException from pprint import pprint # Configure API key authorization: apikey -cloudsmith_api.configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# cloudsmith_api.configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' # create an instance of the API class -api_instance = cloudsmith_api.QuotaApi() +api_instance = cloudsmith_api.QuotaApi(cloudsmith_api.ApiClient(configuration)) owner = 'owner_example' # str | -try: +try: # Open-source Quota usage for a given namespace. api_response = api_instance.quota_oss_read(owner) pprint(api_response) @@ -176,7 +179,7 @@ Quota usage for a given namespace. Quota usage for a given namespace. -### Example +### Example ```python from __future__ import print_function import time @@ -185,15 +188,16 @@ from cloudsmith_api.rest import ApiException from pprint import pprint # Configure API key authorization: apikey -cloudsmith_api.configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# cloudsmith_api.configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' # create an instance of the API class -api_instance = cloudsmith_api.QuotaApi() +api_instance = cloudsmith_api.QuotaApi(cloudsmith_api.ApiClient(configuration)) owner = 'owner_example' # str | -try: +try: # Quota usage for a given namespace. api_response = api_instance.quota_read(owner) pprint(api_response) diff --git a/bindings/python/src/docs/RatesApi.md b/bindings/python/src/docs/RatesApi.md index d2e6d304..45e0cd12 100644 --- a/bindings/python/src/docs/RatesApi.md +++ b/bindings/python/src/docs/RatesApi.md @@ -14,7 +14,7 @@ Endpoint to check rate limits for current user. Endpoint to check rate limits for current user. -### Example +### Example ```python from __future__ import print_function import time @@ -23,14 +23,15 @@ from cloudsmith_api.rest import ApiException from pprint import pprint # Configure API key authorization: apikey -cloudsmith_api.configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# cloudsmith_api.configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' # create an instance of the API class -api_instance = cloudsmith_api.RatesApi() +api_instance = cloudsmith_api.RatesApi(cloudsmith_api.ApiClient(configuration)) -try: +try: # Endpoint to check rate limits for current user. api_response = api_instance.rates_limits_list() pprint(api_response) diff --git a/bindings/python/src/docs/ReposApi.md b/bindings/python/src/docs/ReposApi.md index 9276ae83..e7e09f8c 100644 --- a/bindings/python/src/docs/ReposApi.md +++ b/bindings/python/src/docs/ReposApi.md @@ -19,7 +19,7 @@ Get a list of all repositories associated with current user. Get a list of all repositories associated with current user. -### Example +### Example ```python from __future__ import print_function import time @@ -28,16 +28,17 @@ from cloudsmith_api.rest import ApiException from pprint import pprint # Configure API key authorization: apikey -cloudsmith_api.configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# cloudsmith_api.configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' # create an instance of the API class -api_instance = cloudsmith_api.ReposApi() +api_instance = cloudsmith_api.ReposApi(cloudsmith_api.ApiClient(configuration)) page = 56 # int | A page number within the paginated result set. (optional) page_size = 56 # int | Number of results to return per page. (optional) -try: +try: # Get a list of all repositories associated with current user. api_response = api_instance.repos_all_list(page=page, page_size=page_size) pprint(api_response) @@ -74,7 +75,7 @@ Create a new repository in a given namespace. Create a new repository in a given namespace. -### Example +### Example ```python from __future__ import print_function import time @@ -83,16 +84,17 @@ from cloudsmith_api.rest import ApiException from pprint import pprint # Configure API key authorization: apikey -cloudsmith_api.configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# cloudsmith_api.configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' # create an instance of the API class -api_instance = cloudsmith_api.ReposApi() +api_instance = cloudsmith_api.ReposApi(cloudsmith_api.ApiClient(configuration)) owner = 'owner_example' # str | data = cloudsmith_api.ReposCreate() # ReposCreate | (optional) -try: +try: # Create a new repository in a given namespace. api_response = api_instance.repos_create(owner, data=data) pprint(api_response) @@ -129,7 +131,7 @@ Delete a repository in a given namespace. Delete a repository in a given namespace. -### Example +### Example ```python from __future__ import print_function import time @@ -138,16 +140,17 @@ from cloudsmith_api.rest import ApiException from pprint import pprint # Configure API key authorization: apikey -cloudsmith_api.configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# cloudsmith_api.configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' # create an instance of the API class -api_instance = cloudsmith_api.ReposApi() +api_instance = cloudsmith_api.ReposApi(cloudsmith_api.ApiClient(configuration)) owner = 'owner_example' # str | identifier = 'identifier_example' # str | -try: +try: # Delete a repository in a given namespace. api_instance.repos_delete(owner, identifier) except ApiException as e: @@ -183,7 +186,7 @@ Get a list of all repositories within a namespace. Get a list of all repositories within a namespace. -### Example +### Example ```python from __future__ import print_function import time @@ -192,17 +195,18 @@ from cloudsmith_api.rest import ApiException from pprint import pprint # Configure API key authorization: apikey -cloudsmith_api.configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# cloudsmith_api.configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' # create an instance of the API class -api_instance = cloudsmith_api.ReposApi() +api_instance = cloudsmith_api.ReposApi(cloudsmith_api.ApiClient(configuration)) owner = 'owner_example' # str | page = 56 # int | A page number within the paginated result set. (optional) page_size = 56 # int | Number of results to return per page. (optional) -try: +try: # Get a list of all repositories within a namespace. api_response = api_instance.repos_list(owner, page=page, page_size=page_size) pprint(api_response) @@ -240,7 +244,7 @@ Update details about a repository in a given namespace. Update details about a repository in a given namespace. -### Example +### Example ```python from __future__ import print_function import time @@ -249,17 +253,18 @@ from cloudsmith_api.rest import ApiException from pprint import pprint # Configure API key authorization: apikey -cloudsmith_api.configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# cloudsmith_api.configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' # create an instance of the API class -api_instance = cloudsmith_api.ReposApi() +api_instance = cloudsmith_api.ReposApi(cloudsmith_api.ApiClient(configuration)) owner = 'owner_example' # str | identifier = 'identifier_example' # str | data = cloudsmith_api.ReposPartialUpdate() # ReposPartialUpdate | (optional) -try: +try: # Update details about a repository in a given namespace. api_response = api_instance.repos_partial_update(owner, identifier, data=data) pprint(api_response) @@ -297,7 +302,7 @@ Get a specific repository. Get a specific repository. -### Example +### Example ```python from __future__ import print_function import time @@ -306,16 +311,17 @@ from cloudsmith_api.rest import ApiException from pprint import pprint # Configure API key authorization: apikey -cloudsmith_api.configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# cloudsmith_api.configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' # create an instance of the API class -api_instance = cloudsmith_api.ReposApi() +api_instance = cloudsmith_api.ReposApi(cloudsmith_api.ApiClient(configuration)) owner = 'owner_example' # str | identifier = 'identifier_example' # str | -try: +try: # Get a specific repository. api_response = api_instance.repos_read(owner, identifier) pprint(api_response) diff --git a/bindings/python/src/docs/StatusApi.md b/bindings/python/src/docs/StatusApi.md index 0af3f133..8160c656 100644 --- a/bindings/python/src/docs/StatusApi.md +++ b/bindings/python/src/docs/StatusApi.md @@ -14,7 +14,7 @@ Endpoint to check basic API connectivity. Endpoint to check basic API connectivity. -### Example +### Example ```python from __future__ import print_function import time @@ -25,7 +25,7 @@ from pprint import pprint # create an instance of the API class api_instance = cloudsmith_api.StatusApi() -try: +try: # Endpoint to check basic API connectivity. api_response = api_instance.status_check_basic() pprint(api_response) diff --git a/bindings/python/src/docs/StorageregionsApi.md b/bindings/python/src/docs/StorageregionsApi.md index ac47211f..0dd9769a 100644 --- a/bindings/python/src/docs/StorageregionsApi.md +++ b/bindings/python/src/docs/StorageregionsApi.md @@ -1,11 +1,11 @@ -# cloudsmith_api.StorageregionsApi +# cloudsmith_api.StorageRegionsApi All URIs are relative to *https://api.cloudsmith.io/v1* Method | HTTP request | Description ------------- | ------------- | ------------- -[**storage_regions_list**](StorageregionsApi.md#storage_regions_list) | **GET** /storage-regions/ | Get a list of all available storage regions. -[**storage_regions_read**](StorageregionsApi.md#storage_regions_read) | **GET** /storage-regions/{slug}/ | Get a specific storage region. +[**storage_regions_list**](StorageRegionsApi.md#storage_regions_list) | **GET** /storage-regions/ | Get a list of all available storage regions. +[**storage_regions_read**](StorageRegionsApi.md#storage_regions_read) | **GET** /storage-regions/{slug}/ | Get a specific storage region. # **storage_regions_list** @@ -15,7 +15,7 @@ Get a list of all available storage regions. Get a list of all available storage regions. -### Example +### Example ```python from __future__ import print_function import time @@ -24,19 +24,20 @@ from cloudsmith_api.rest import ApiException from pprint import pprint # Configure API key authorization: apikey -cloudsmith_api.configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# cloudsmith_api.configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' # create an instance of the API class -api_instance = cloudsmith_api.StorageregionsApi() +api_instance = cloudsmith_api.StorageRegionsApi(cloudsmith_api.ApiClient(configuration)) -try: +try: # Get a list of all available storage regions. api_response = api_instance.storage_regions_list() pprint(api_response) except ApiException as e: - print("Exception when calling StorageregionsApi->storage_regions_list: %s\n" % e) + print("Exception when calling StorageRegionsApi->storage_regions_list: %s\n" % e) ``` ### Parameters @@ -64,7 +65,7 @@ Get a specific storage region. Get a specific storage region. -### Example +### Example ```python from __future__ import print_function import time @@ -73,20 +74,21 @@ from cloudsmith_api.rest import ApiException from pprint import pprint # Configure API key authorization: apikey -cloudsmith_api.configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# cloudsmith_api.configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' # create an instance of the API class -api_instance = cloudsmith_api.StorageregionsApi() +api_instance = cloudsmith_api.StorageRegionsApi(cloudsmith_api.ApiClient(configuration)) slug = 'slug_example' # str | -try: +try: # Get a specific storage region. api_response = api_instance.storage_regions_read(slug) pprint(api_response) except ApiException as e: - print("Exception when calling StorageregionsApi->storage_regions_read: %s\n" % e) + print("Exception when calling StorageRegionsApi->storage_regions_read: %s\n" % e) ``` ### Parameters diff --git a/bindings/python/src/docs/UserApi.md b/bindings/python/src/docs/UserApi.md index bf0e0818..71d69b9c 100644 --- a/bindings/python/src/docs/UserApi.md +++ b/bindings/python/src/docs/UserApi.md @@ -15,7 +15,7 @@ Provide a brief for the current user (if any). Provide a brief for the current user (if any). -### Example +### Example ```python from __future__ import print_function import time @@ -24,14 +24,15 @@ from cloudsmith_api.rest import ApiException from pprint import pprint # Configure API key authorization: apikey -cloudsmith_api.configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# cloudsmith_api.configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' # create an instance of the API class -api_instance = cloudsmith_api.UserApi() +api_instance = cloudsmith_api.UserApi(cloudsmith_api.ApiClient(configuration)) -try: +try: # Provide a brief for the current user (if any). api_response = api_instance.user_self() pprint(api_response) @@ -64,7 +65,7 @@ Retrieve the API key/token for the authenticated user. Retrieve the API key/token for the authenticated user. -### Example +### Example ```python from __future__ import print_function import time @@ -73,15 +74,16 @@ from cloudsmith_api.rest import ApiException from pprint import pprint # Configure API key authorization: apikey -cloudsmith_api.configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# cloudsmith_api.configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' # create an instance of the API class -api_instance = cloudsmith_api.UserApi() +api_instance = cloudsmith_api.UserApi(cloudsmith_api.ApiClient(configuration)) data = cloudsmith_api.UserTokenCreate() # UserTokenCreate | (optional) -try: +try: # Retrieve the API key/token for the authenticated user. api_response = api_instance.user_token_create(data=data) pprint(api_response) diff --git a/bindings/python/src/docs/UsersApi.md b/bindings/python/src/docs/UsersApi.md index 2e6ff7ee..dae27d39 100644 --- a/bindings/python/src/docs/UsersApi.md +++ b/bindings/python/src/docs/UsersApi.md @@ -14,7 +14,7 @@ Provide a brief for the specified user (if any). Provide a brief for the specified user (if any). -### Example +### Example ```python from __future__ import print_function import time @@ -23,15 +23,16 @@ from cloudsmith_api.rest import ApiException from pprint import pprint # Configure API key authorization: apikey -cloudsmith_api.configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# cloudsmith_api.configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' # create an instance of the API class -api_instance = cloudsmith_api.UsersApi() +api_instance = cloudsmith_api.UsersApi(cloudsmith_api.ApiClient(configuration)) slug = 'slug_example' # str | -try: +try: # Provide a brief for the specified user (if any). api_response = api_instance.users_profile_read(slug) pprint(api_response) diff --git a/bindings/python/src/docs/VulnerabilitiesApi.md b/bindings/python/src/docs/VulnerabilitiesApi.md index 3c5a4bb4..81595d27 100644 --- a/bindings/python/src/docs/VulnerabilitiesApi.md +++ b/bindings/python/src/docs/VulnerabilitiesApi.md @@ -17,7 +17,7 @@ Lists scan results for a specific namespace. Lists scan results for a specific namespace. -### Example +### Example ```python from __future__ import print_function import time @@ -26,17 +26,18 @@ from cloudsmith_api.rest import ApiException from pprint import pprint # Configure API key authorization: apikey -cloudsmith_api.configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# cloudsmith_api.configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' # create an instance of the API class -api_instance = cloudsmith_api.VulnerabilitiesApi() +api_instance = cloudsmith_api.VulnerabilitiesApi(cloudsmith_api.ApiClient(configuration)) owner = 'owner_example' # str | page = 56 # int | A page number within the paginated result set. (optional) page_size = 56 # int | Number of results to return per page. (optional) -try: +try: # Lists scan results for a specific namespace. api_response = api_instance.vulnerabilities_list(owner, page=page, page_size=page_size) pprint(api_response) @@ -74,7 +75,7 @@ Lists scan results for a specific repository. Lists scan results for a specific repository. -### Example +### Example ```python from __future__ import print_function import time @@ -83,18 +84,19 @@ from cloudsmith_api.rest import ApiException from pprint import pprint # Configure API key authorization: apikey -cloudsmith_api.configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# cloudsmith_api.configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' # create an instance of the API class -api_instance = cloudsmith_api.VulnerabilitiesApi() +api_instance = cloudsmith_api.VulnerabilitiesApi(cloudsmith_api.ApiClient(configuration)) owner = 'owner_example' # str | repo = 'repo_example' # str | page = 56 # int | A page number within the paginated result set. (optional) page_size = 56 # int | Number of results to return per page. (optional) -try: +try: # Lists scan results for a specific repository. api_response = api_instance.vulnerabilities_list0(owner, repo, page=page, page_size=page_size) pprint(api_response) @@ -133,7 +135,7 @@ Lists scan results for a specific package. Lists scan results for a specific package. -### Example +### Example ```python from __future__ import print_function import time @@ -142,19 +144,20 @@ from cloudsmith_api.rest import ApiException from pprint import pprint # Configure API key authorization: apikey -cloudsmith_api.configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# cloudsmith_api.configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' # create an instance of the API class -api_instance = cloudsmith_api.VulnerabilitiesApi() +api_instance = cloudsmith_api.VulnerabilitiesApi(cloudsmith_api.ApiClient(configuration)) owner = 'owner_example' # str | repo = 'repo_example' # str | package = 'package_example' # str | page = 56 # int | A page number within the paginated result set. (optional) page_size = 56 # int | Number of results to return per page. (optional) -try: +try: # Lists scan results for a specific package. api_response = api_instance.vulnerabilities_list1(owner, repo, package, page=page, page_size=page_size) pprint(api_response) @@ -194,7 +197,7 @@ Returns a Scan Result. Returns a Scan Result. -### Example +### Example ```python from __future__ import print_function import time @@ -203,18 +206,19 @@ from cloudsmith_api.rest import ApiException from pprint import pprint # Configure API key authorization: apikey -cloudsmith_api.configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# cloudsmith_api.configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' # create an instance of the API class -api_instance = cloudsmith_api.VulnerabilitiesApi() +api_instance = cloudsmith_api.VulnerabilitiesApi(cloudsmith_api.ApiClient(configuration)) owner = 'owner_example' # str | repo = 'repo_example' # str | package = 'package_example' # str | scan_id = 'scan_id_example' # str | -try: +try: # Returns a Scan Result. api_response = api_instance.vulnerabilities_read(owner, repo, package, scan_id) pprint(api_response) diff --git a/bindings/python/src/docs/WebhooksApi.md b/bindings/python/src/docs/WebhooksApi.md index f37cf449..485a6c7d 100644 --- a/bindings/python/src/docs/WebhooksApi.md +++ b/bindings/python/src/docs/WebhooksApi.md @@ -18,7 +18,7 @@ Create a specific webhook in a repository. Create a specific webhook in a repository. -### Example +### Example ```python from __future__ import print_function import time @@ -27,17 +27,18 @@ from cloudsmith_api.rest import ApiException from pprint import pprint # Configure API key authorization: apikey -cloudsmith_api.configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# cloudsmith_api.configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' # create an instance of the API class -api_instance = cloudsmith_api.WebhooksApi() +api_instance = cloudsmith_api.WebhooksApi(cloudsmith_api.ApiClient(configuration)) owner = 'owner_example' # str | repo = 'repo_example' # str | data = cloudsmith_api.WebhooksCreate() # WebhooksCreate | (optional) -try: +try: # Create a specific webhook in a repository. api_response = api_instance.webhooks_create(owner, repo, data=data) pprint(api_response) @@ -75,7 +76,7 @@ Delete a specific webhook in a repository. Delete a specific webhook in a repository. -### Example +### Example ```python from __future__ import print_function import time @@ -84,17 +85,18 @@ from cloudsmith_api.rest import ApiException from pprint import pprint # Configure API key authorization: apikey -cloudsmith_api.configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# cloudsmith_api.configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' # create an instance of the API class -api_instance = cloudsmith_api.WebhooksApi() +api_instance = cloudsmith_api.WebhooksApi(cloudsmith_api.ApiClient(configuration)) owner = 'owner_example' # str | repo = 'repo_example' # str | identifier = 'identifier_example' # str | -try: +try: # Delete a specific webhook in a repository. api_instance.webhooks_delete(owner, repo, identifier) except ApiException as e: @@ -131,7 +133,7 @@ Get a list of all webhooks in a repository. Get a list of all webhooks in a repository. -### Example +### Example ```python from __future__ import print_function import time @@ -140,18 +142,19 @@ from cloudsmith_api.rest import ApiException from pprint import pprint # Configure API key authorization: apikey -cloudsmith_api.configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# cloudsmith_api.configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' # create an instance of the API class -api_instance = cloudsmith_api.WebhooksApi() +api_instance = cloudsmith_api.WebhooksApi(cloudsmith_api.ApiClient(configuration)) owner = 'owner_example' # str | repo = 'repo_example' # str | page = 56 # int | A page number within the paginated result set. (optional) page_size = 56 # int | Number of results to return per page. (optional) -try: +try: # Get a list of all webhooks in a repository. api_response = api_instance.webhooks_list(owner, repo, page=page, page_size=page_size) pprint(api_response) @@ -190,7 +193,7 @@ Update a specific webhook in a repository. Update a specific webhook in a repository. -### Example +### Example ```python from __future__ import print_function import time @@ -199,18 +202,19 @@ from cloudsmith_api.rest import ApiException from pprint import pprint # Configure API key authorization: apikey -cloudsmith_api.configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# cloudsmith_api.configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' # create an instance of the API class -api_instance = cloudsmith_api.WebhooksApi() +api_instance = cloudsmith_api.WebhooksApi(cloudsmith_api.ApiClient(configuration)) owner = 'owner_example' # str | repo = 'repo_example' # str | identifier = 'identifier_example' # str | data = cloudsmith_api.WebhooksPartialUpdate() # WebhooksPartialUpdate | (optional) -try: +try: # Update a specific webhook in a repository. api_response = api_instance.webhooks_partial_update(owner, repo, identifier, data=data) pprint(api_response) @@ -249,7 +253,7 @@ Views for working with repository webhooks. Views for working with repository webhooks. -### Example +### Example ```python from __future__ import print_function import time @@ -258,17 +262,18 @@ from cloudsmith_api.rest import ApiException from pprint import pprint # Configure API key authorization: apikey -cloudsmith_api.configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' +configuration = cloudsmith_api.Configuration() +configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -# cloudsmith_api.configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' # create an instance of the API class -api_instance = cloudsmith_api.WebhooksApi() +api_instance = cloudsmith_api.WebhooksApi(cloudsmith_api.ApiClient(configuration)) owner = 'owner_example' # str | repo = 'repo_example' # str | identifier = 'identifier_example' # str | -try: +try: # Views for working with repository webhooks. api_response = api_instance.webhooks_read(owner, repo, identifier) pprint(api_response) diff --git a/bindings/python/src/git_push.sh b/bindings/python/src/git_push.sh index bb3f01ed..4fda2ff0 100644 --- a/bindings/python/src/git_push.sh +++ b/bindings/python/src/git_push.sh @@ -36,7 +36,7 @@ git_remote=`git remote` if [ "$git_remote" = "" ]; then # git remote not defined if [ "$GIT_TOKEN" = "" ]; then - echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git crediential in your environment." + echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git else git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git diff --git a/bindings/python/src/setup.py b/bindings/python/src/setup.py index 70a52ec7..76bc04e7 100644 --- a/bindings/python/src/setup.py +++ b/bindings/python/src/setup.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -11,11 +11,10 @@ """ -import sys -from setuptools import setup, find_packages +from setuptools import setup, find_packages # noqa: H301 NAME = "cloudsmith-api" -VERSION = "1.30.0" +VERSION = "1.33.7" # To install the library, run the following # # python setup.py install @@ -23,7 +22,13 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["urllib3 >= 1.15", "six >= 1.10", "certifi", "python-dateutil"] +REQUIRES = [ + "certifi>=2017.4.17", + "python-dateutil>=2.1", + "six>=1.10", + "urllib3>=1.23" +] + setup( name=NAME, @@ -36,6 +41,6 @@ packages=find_packages(), include_package_data=True, long_description="""\ - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 """ ) diff --git a/bindings/python/src/test/test_alpine_package_upload.py b/bindings/python/src/test/test_alpine_package_upload.py index d7dad736..a7c3ca79 100644 --- a/bindings/python/src/test/test_alpine_package_upload.py +++ b/bindings/python/src/test/test_alpine_package_upload.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,17 +13,15 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.models.alpine_package_upload import AlpinePackageUpload # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.models.alpine_package_upload import AlpinePackageUpload class TestAlpinePackageUpload(unittest.TestCase): - """ AlpinePackageUpload unit test stubs """ + """AlpinePackageUpload unit test stubs""" def setUp(self): pass @@ -32,11 +30,9 @@ def tearDown(self): pass def testAlpinePackageUpload(self): - """ - Test AlpinePackageUpload - """ + """Test AlpinePackageUpload""" # FIXME: construct object with mandatory attributes with example values - #model = cloudsmith_api.models.alpine_package_upload.AlpinePackageUpload() + # model = cloudsmith_api.models.alpine_package_upload.AlpinePackageUpload() # noqa: E501 pass diff --git a/bindings/python/src/test/test_badges_api.py b/bindings/python/src/test/test_badges_api.py index 14577af1..8ecc5a88 100644 --- a/bindings/python/src/test/test_badges_api.py +++ b/bindings/python/src/test/test_badges_api.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,29 +13,26 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.api.badges_api import BadgesApi # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.apis.badges_api import BadgesApi class TestBadgesApi(unittest.TestCase): - """ BadgesApi unit test stubs """ + """BadgesApi unit test stubs""" def setUp(self): - self.api = cloudsmith_api.apis.badges_api.BadgesApi() + self.api = cloudsmith_api.api.badges_api.BadgesApi() # noqa: E501 def tearDown(self): pass def test_badges_version_list(self): - """ - Test case for badges_version_list + """Test case for badges_version_list - Get latest package version for a package or package group. + Get latest package version for a package or package group. # noqa: E501 """ pass diff --git a/bindings/python/src/test/test_conan_package_upload.py b/bindings/python/src/test/test_conan_package_upload.py index 80a49613..e376ec01 100644 --- a/bindings/python/src/test/test_conan_package_upload.py +++ b/bindings/python/src/test/test_conan_package_upload.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,17 +13,15 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.models.conan_package_upload import ConanPackageUpload # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.models.conan_package_upload import ConanPackageUpload class TestConanPackageUpload(unittest.TestCase): - """ ConanPackageUpload unit test stubs """ + """ConanPackageUpload unit test stubs""" def setUp(self): pass @@ -32,11 +30,9 @@ def tearDown(self): pass def testConanPackageUpload(self): - """ - Test ConanPackageUpload - """ + """Test ConanPackageUpload""" # FIXME: construct object with mandatory attributes with example values - #model = cloudsmith_api.models.conan_package_upload.ConanPackageUpload() + # model = cloudsmith_api.models.conan_package_upload.ConanPackageUpload() # noqa: E501 pass diff --git a/bindings/python/src/test/test_distribution.py b/bindings/python/src/test/test_distribution.py index 23d54895..a1660e98 100644 --- a/bindings/python/src/test/test_distribution.py +++ b/bindings/python/src/test/test_distribution.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,17 +13,15 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.models.distribution import Distribution # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.models.distribution import Distribution class TestDistribution(unittest.TestCase): - """ Distribution unit test stubs """ + """Distribution unit test stubs""" def setUp(self): pass @@ -32,11 +30,9 @@ def tearDown(self): pass def testDistribution(self): - """ - Test Distribution - """ + """Test Distribution""" # FIXME: construct object with mandatory attributes with example values - #model = cloudsmith_api.models.distribution.Distribution() + # model = cloudsmith_api.models.distribution.Distribution() # noqa: E501 pass diff --git a/bindings/python/src/test/test_distros_api.py b/bindings/python/src/test/test_distros_api.py index ff778847..79fc94fa 100644 --- a/bindings/python/src/test/test_distros_api.py +++ b/bindings/python/src/test/test_distros_api.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,37 +13,33 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.api.distros_api import DistrosApi # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.apis.distros_api import DistrosApi class TestDistrosApi(unittest.TestCase): - """ DistrosApi unit test stubs """ + """DistrosApi unit test stubs""" def setUp(self): - self.api = cloudsmith_api.apis.distros_api.DistrosApi() + self.api = cloudsmith_api.api.distros_api.DistrosApi() # noqa: E501 def tearDown(self): pass def test_distros_list(self): - """ - Test case for distros_list + """Test case for distros_list - Get a list of all supported distributions. + Get a list of all supported distributions. # noqa: E501 """ pass def test_distros_read(self): - """ - Test case for distros_read + """Test case for distros_read - View for viewing/listing distributions. + View for viewing/listing distributions. # noqa: E501 """ pass diff --git a/bindings/python/src/test/test_distros_versions.py b/bindings/python/src/test/test_distros_versions.py index 420b7b81..36bcbbb9 100644 --- a/bindings/python/src/test/test_distros_versions.py +++ b/bindings/python/src/test/test_distros_versions.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,17 +13,15 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.models.distros_versions import DistrosVersions # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.models.distros_versions import DistrosVersions class TestDistrosVersions(unittest.TestCase): - """ DistrosVersions unit test stubs """ + """DistrosVersions unit test stubs""" def setUp(self): pass @@ -32,11 +30,9 @@ def tearDown(self): pass def testDistrosVersions(self): - """ - Test DistrosVersions - """ + """Test DistrosVersions""" # FIXME: construct object with mandatory attributes with example values - #model = cloudsmith_api.models.distros_versions.DistrosVersions() + # model = cloudsmith_api.models.distros_versions.DistrosVersions() # noqa: E501 pass diff --git a/bindings/python/src/test/test_entitlement_usage_metrics.py b/bindings/python/src/test/test_entitlement_usage_metrics.py index 6897c7b2..b4fca776 100644 --- a/bindings/python/src/test/test_entitlement_usage_metrics.py +++ b/bindings/python/src/test/test_entitlement_usage_metrics.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,17 +13,15 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.models.entitlement_usage_metrics import EntitlementUsageMetrics # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.models.entitlement_usage_metrics import EntitlementUsageMetrics class TestEntitlementUsageMetrics(unittest.TestCase): - """ EntitlementUsageMetrics unit test stubs """ + """EntitlementUsageMetrics unit test stubs""" def setUp(self): pass @@ -32,11 +30,9 @@ def tearDown(self): pass def testEntitlementUsageMetrics(self): - """ - Test EntitlementUsageMetrics - """ + """Test EntitlementUsageMetrics""" # FIXME: construct object with mandatory attributes with example values - #model = cloudsmith_api.models.entitlement_usage_metrics.EntitlementUsageMetrics() + # model = cloudsmith_api.models.entitlement_usage_metrics.EntitlementUsageMetrics() # noqa: E501 pass diff --git a/bindings/python/src/test/test_entitlements_api.py b/bindings/python/src/test/test_entitlements_api.py index 90a832ee..e26a4a5c 100644 --- a/bindings/python/src/test/test_entitlements_api.py +++ b/bindings/python/src/test/test_entitlements_api.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,101 +13,89 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.api.entitlements_api import EntitlementsApi # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.apis.entitlements_api import EntitlementsApi class TestEntitlementsApi(unittest.TestCase): - """ EntitlementsApi unit test stubs """ + """EntitlementsApi unit test stubs""" def setUp(self): - self.api = cloudsmith_api.apis.entitlements_api.EntitlementsApi() + self.api = cloudsmith_api.api.entitlements_api.EntitlementsApi() # noqa: E501 def tearDown(self): pass def test_entitlements_create(self): - """ - Test case for entitlements_create + """Test case for entitlements_create - Create a specific entitlement in a repository. + Create a specific entitlement in a repository. # noqa: E501 """ pass def test_entitlements_delete(self): - """ - Test case for entitlements_delete + """Test case for entitlements_delete - Delete a specific entitlement in a repository. + Delete a specific entitlement in a repository. # noqa: E501 """ pass def test_entitlements_disable(self): - """ - Test case for entitlements_disable + """Test case for entitlements_disable - Disable an entitlement token in a repository. + Disable an entitlement token in a repository. # noqa: E501 """ pass def test_entitlements_enable(self): - """ - Test case for entitlements_enable + """Test case for entitlements_enable - Enable an entitlement token in a repository. + Enable an entitlement token in a repository. # noqa: E501 """ pass def test_entitlements_list(self): - """ - Test case for entitlements_list + """Test case for entitlements_list - Get a list of all entitlements in a repository. + Get a list of all entitlements in a repository. # noqa: E501 """ pass def test_entitlements_partial_update(self): - """ - Test case for entitlements_partial_update + """Test case for entitlements_partial_update - Update a specific entitlement in a repository. + Update a specific entitlement in a repository. # noqa: E501 """ pass def test_entitlements_read(self): - """ - Test case for entitlements_read + """Test case for entitlements_read - Get a specific entitlement in a repository. + Get a specific entitlement in a repository. # noqa: E501 """ pass def test_entitlements_refresh(self): - """ - Test case for entitlements_refresh + """Test case for entitlements_refresh - Refresh an entitlement token in a repository. + Refresh an entitlement token in a repository. # noqa: E501 """ pass def test_entitlements_reset(self): - """ - Test case for entitlements_reset + """Test case for entitlements_reset - Reset the statistics for an entitlement token in a repository. + Reset the statistics for an entitlement token in a repository. # noqa: E501 """ pass def test_entitlements_sync(self): - """ - Test case for entitlements_sync + """Test case for entitlements_sync - Synchronise tokens from a source repository. + Synchronise tokens from a source repository. # noqa: E501 """ pass diff --git a/bindings/python/src/test/test_entitlements_create.py b/bindings/python/src/test/test_entitlements_create.py index 2b00e880..67b86a53 100644 --- a/bindings/python/src/test/test_entitlements_create.py +++ b/bindings/python/src/test/test_entitlements_create.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,17 +13,15 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.models.entitlements_create import EntitlementsCreate # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.models.entitlements_create import EntitlementsCreate class TestEntitlementsCreate(unittest.TestCase): - """ EntitlementsCreate unit test stubs """ + """EntitlementsCreate unit test stubs""" def setUp(self): pass @@ -32,11 +30,9 @@ def tearDown(self): pass def testEntitlementsCreate(self): - """ - Test EntitlementsCreate - """ + """Test EntitlementsCreate""" # FIXME: construct object with mandatory attributes with example values - #model = cloudsmith_api.models.entitlements_create.EntitlementsCreate() + # model = cloudsmith_api.models.entitlements_create.EntitlementsCreate() # noqa: E501 pass diff --git a/bindings/python/src/test/test_entitlements_partial_update.py b/bindings/python/src/test/test_entitlements_partial_update.py index 40346374..f0ca1454 100644 --- a/bindings/python/src/test/test_entitlements_partial_update.py +++ b/bindings/python/src/test/test_entitlements_partial_update.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,17 +13,15 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.models.entitlements_partial_update import EntitlementsPartialUpdate # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.models.entitlements_partial_update import EntitlementsPartialUpdate class TestEntitlementsPartialUpdate(unittest.TestCase): - """ EntitlementsPartialUpdate unit test stubs """ + """EntitlementsPartialUpdate unit test stubs""" def setUp(self): pass @@ -32,11 +30,9 @@ def tearDown(self): pass def testEntitlementsPartialUpdate(self): - """ - Test EntitlementsPartialUpdate - """ + """Test EntitlementsPartialUpdate""" # FIXME: construct object with mandatory attributes with example values - #model = cloudsmith_api.models.entitlements_partial_update.EntitlementsPartialUpdate() + # model = cloudsmith_api.models.entitlements_partial_update.EntitlementsPartialUpdate() # noqa: E501 pass diff --git a/bindings/python/src/test/test_entitlements_refresh.py b/bindings/python/src/test/test_entitlements_refresh.py index d9431f5d..4ee5298e 100644 --- a/bindings/python/src/test/test_entitlements_refresh.py +++ b/bindings/python/src/test/test_entitlements_refresh.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,17 +13,15 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.models.entitlements_refresh import EntitlementsRefresh # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.models.entitlements_refresh import EntitlementsRefresh class TestEntitlementsRefresh(unittest.TestCase): - """ EntitlementsRefresh unit test stubs """ + """EntitlementsRefresh unit test stubs""" def setUp(self): pass @@ -32,11 +30,9 @@ def tearDown(self): pass def testEntitlementsRefresh(self): - """ - Test EntitlementsRefresh - """ + """Test EntitlementsRefresh""" # FIXME: construct object with mandatory attributes with example values - #model = cloudsmith_api.models.entitlements_refresh.EntitlementsRefresh() + # model = cloudsmith_api.models.entitlements_refresh.EntitlementsRefresh() # noqa: E501 pass diff --git a/bindings/python/src/test/test_entitlements_sync.py b/bindings/python/src/test/test_entitlements_sync.py index aaedf6e7..c0162dd9 100644 --- a/bindings/python/src/test/test_entitlements_sync.py +++ b/bindings/python/src/test/test_entitlements_sync.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,17 +13,15 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.models.entitlements_sync import EntitlementsSync # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.models.entitlements_sync import EntitlementsSync class TestEntitlementsSync(unittest.TestCase): - """ EntitlementsSync unit test stubs """ + """EntitlementsSync unit test stubs""" def setUp(self): pass @@ -32,11 +30,9 @@ def tearDown(self): pass def testEntitlementsSync(self): - """ - Test EntitlementsSync - """ + """Test EntitlementsSync""" # FIXME: construct object with mandatory attributes with example values - #model = cloudsmith_api.models.entitlements_sync.EntitlementsSync() + # model = cloudsmith_api.models.entitlements_sync.EntitlementsSync() # noqa: E501 pass diff --git a/bindings/python/src/test/test_files_abort.py b/bindings/python/src/test/test_files_abort.py index 8ddb7359..601c5197 100644 --- a/bindings/python/src/test/test_files_abort.py +++ b/bindings/python/src/test/test_files_abort.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,17 +13,15 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.models.files_abort import FilesAbort # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.models.files_abort import FilesAbort class TestFilesAbort(unittest.TestCase): - """ FilesAbort unit test stubs """ + """FilesAbort unit test stubs""" def setUp(self): pass @@ -32,11 +30,9 @@ def tearDown(self): pass def testFilesAbort(self): - """ - Test FilesAbort - """ + """Test FilesAbort""" # FIXME: construct object with mandatory attributes with example values - #model = cloudsmith_api.models.files_abort.FilesAbort() + # model = cloudsmith_api.models.files_abort.FilesAbort() # noqa: E501 pass diff --git a/bindings/python/src/test/test_files_api.py b/bindings/python/src/test/test_files_api.py index bfe2ced8..47259faf 100644 --- a/bindings/python/src/test/test_files_api.py +++ b/bindings/python/src/test/test_files_api.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,61 +13,54 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.api.files_api import FilesApi # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.apis.files_api import FilesApi class TestFilesApi(unittest.TestCase): - """ FilesApi unit test stubs """ + """FilesApi unit test stubs""" def setUp(self): - self.api = cloudsmith_api.apis.files_api.FilesApi() + self.api = cloudsmith_api.api.files_api.FilesApi() # noqa: E501 def tearDown(self): pass def test_files_abort(self): - """ - Test case for files_abort + """Test case for files_abort - Abort a multipart file upload. + Abort a multipart file upload. # noqa: E501 """ pass def test_files_complete(self): - """ - Test case for files_complete + """Test case for files_complete - Complete a multipart file upload. + Complete a multipart file upload. # noqa: E501 """ pass def test_files_create(self): - """ - Test case for files_create + """Test case for files_create - Request URL(s) to upload new package file upload(s) to. + Request URL(s) to upload new package file upload(s) to. # noqa: E501 """ pass def test_files_info(self): - """ - Test case for files_info + """Test case for files_info - Get upload information for a multipart file upload. + Get upload information for a multipart file upload. # noqa: E501 """ pass def test_files_validate(self): - """ - Test case for files_validate + """Test case for files_validate - Validate parameters used for create. + Validate parameters used for create. # noqa: E501 """ pass diff --git a/bindings/python/src/test/test_files_complete.py b/bindings/python/src/test/test_files_complete.py index 2fbf5108..e6401201 100644 --- a/bindings/python/src/test/test_files_complete.py +++ b/bindings/python/src/test/test_files_complete.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,17 +13,15 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.models.files_complete import FilesComplete # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.models.files_complete import FilesComplete class TestFilesComplete(unittest.TestCase): - """ FilesComplete unit test stubs """ + """FilesComplete unit test stubs""" def setUp(self): pass @@ -32,11 +30,9 @@ def tearDown(self): pass def testFilesComplete(self): - """ - Test FilesComplete - """ + """Test FilesComplete""" # FIXME: construct object with mandatory attributes with example values - #model = cloudsmith_api.models.files_complete.FilesComplete() + # model = cloudsmith_api.models.files_complete.FilesComplete() # noqa: E501 pass diff --git a/bindings/python/src/test/test_files_create.py b/bindings/python/src/test/test_files_create.py index c54d0859..3818aa74 100644 --- a/bindings/python/src/test/test_files_create.py +++ b/bindings/python/src/test/test_files_create.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,17 +13,15 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.models.files_create import FilesCreate # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.models.files_create import FilesCreate class TestFilesCreate(unittest.TestCase): - """ FilesCreate unit test stubs """ + """FilesCreate unit test stubs""" def setUp(self): pass @@ -32,11 +30,9 @@ def tearDown(self): pass def testFilesCreate(self): - """ - Test FilesCreate - """ + """Test FilesCreate""" # FIXME: construct object with mandatory attributes with example values - #model = cloudsmith_api.models.files_create.FilesCreate() + # model = cloudsmith_api.models.files_create.FilesCreate() # noqa: E501 pass diff --git a/bindings/python/src/test/test_files_validate.py b/bindings/python/src/test/test_files_validate.py index cc0086c2..357bc940 100644 --- a/bindings/python/src/test/test_files_validate.py +++ b/bindings/python/src/test/test_files_validate.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,17 +13,15 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.models.files_validate import FilesValidate # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.models.files_validate import FilesValidate class TestFilesValidate(unittest.TestCase): - """ FilesValidate unit test stubs """ + """FilesValidate unit test stubs""" def setUp(self): pass @@ -32,11 +30,9 @@ def tearDown(self): pass def testFilesValidate(self): - """ - Test FilesValidate - """ + """Test FilesValidate""" # FIXME: construct object with mandatory attributes with example values - #model = cloudsmith_api.models.files_validate.FilesValidate() + # model = cloudsmith_api.models.files_validate.FilesValidate() # noqa: E501 pass diff --git a/bindings/python/src/test/test_format.py b/bindings/python/src/test/test_format.py index 2d636fae..96aa17eb 100644 --- a/bindings/python/src/test/test_format.py +++ b/bindings/python/src/test/test_format.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,17 +13,15 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.models.format import Format # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.models.format import Format class TestFormat(unittest.TestCase): - """ Format unit test stubs """ + """Format unit test stubs""" def setUp(self): pass @@ -32,11 +30,9 @@ def tearDown(self): pass def testFormat(self): - """ - Test Format - """ + """Test Format""" # FIXME: construct object with mandatory attributes with example values - #model = cloudsmith_api.models.format.Format() + # model = cloudsmith_api.models.format.Format() # noqa: E501 pass diff --git a/bindings/python/src/test/test_formats_api.py b/bindings/python/src/test/test_formats_api.py index af86e1de..9f941bbb 100644 --- a/bindings/python/src/test/test_formats_api.py +++ b/bindings/python/src/test/test_formats_api.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,37 +13,33 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.api.formats_api import FormatsApi # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.apis.formats_api import FormatsApi class TestFormatsApi(unittest.TestCase): - """ FormatsApi unit test stubs """ + """FormatsApi unit test stubs""" def setUp(self): - self.api = cloudsmith_api.apis.formats_api.FormatsApi() + self.api = cloudsmith_api.api.formats_api.FormatsApi() # noqa: E501 def tearDown(self): pass def test_formats_list(self): - """ - Test case for formats_list + """Test case for formats_list - Get a list of all supported package formats. + Get a list of all supported package formats. # noqa: E501 """ pass def test_formats_read(self): - """ - Test case for formats_read + """Test case for formats_read - Get a specific supported package format. + Get a specific supported package format. # noqa: E501 """ pass diff --git a/bindings/python/src/test/test_formats_distributions.py b/bindings/python/src/test/test_formats_distributions.py index dab4d001..db1a26cf 100644 --- a/bindings/python/src/test/test_formats_distributions.py +++ b/bindings/python/src/test/test_formats_distributions.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,17 +13,15 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.models.formats_distributions import FormatsDistributions # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.models.formats_distributions import FormatsDistributions class TestFormatsDistributions(unittest.TestCase): - """ FormatsDistributions unit test stubs """ + """FormatsDistributions unit test stubs""" def setUp(self): pass @@ -32,11 +30,9 @@ def tearDown(self): pass def testFormatsDistributions(self): - """ - Test FormatsDistributions - """ + """Test FormatsDistributions""" # FIXME: construct object with mandatory attributes with example values - #model = cloudsmith_api.models.formats_distributions.FormatsDistributions() + # model = cloudsmith_api.models.formats_distributions.FormatsDistributions() # noqa: E501 pass diff --git a/bindings/python/src/test/test_maven_package_upload.py b/bindings/python/src/test/test_maven_package_upload.py index 20cfdc9e..9aba4cd2 100644 --- a/bindings/python/src/test/test_maven_package_upload.py +++ b/bindings/python/src/test/test_maven_package_upload.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,17 +13,15 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.models.maven_package_upload import MavenPackageUpload # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.models.maven_package_upload import MavenPackageUpload class TestMavenPackageUpload(unittest.TestCase): - """ MavenPackageUpload unit test stubs """ + """MavenPackageUpload unit test stubs""" def setUp(self): pass @@ -32,11 +30,9 @@ def tearDown(self): pass def testMavenPackageUpload(self): - """ - Test MavenPackageUpload - """ + """Test MavenPackageUpload""" # FIXME: construct object with mandatory attributes with example values - #model = cloudsmith_api.models.maven_package_upload.MavenPackageUpload() + # model = cloudsmith_api.models.maven_package_upload.MavenPackageUpload() # noqa: E501 pass diff --git a/bindings/python/src/test/test_metrics_api.py b/bindings/python/src/test/test_metrics_api.py index 7735fd99..735d4598 100644 --- a/bindings/python/src/test/test_metrics_api.py +++ b/bindings/python/src/test/test_metrics_api.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,45 +13,40 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.api.metrics_api import MetricsApi # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.apis.metrics_api import MetricsApi class TestMetricsApi(unittest.TestCase): - """ MetricsApi unit test stubs """ + """MetricsApi unit test stubs""" def setUp(self): - self.api = cloudsmith_api.apis.metrics_api.MetricsApi() + self.api = cloudsmith_api.api.metrics_api.MetricsApi() # noqa: E501 def tearDown(self): pass def test_metrics_entitlements_list(self): - """ - Test case for metrics_entitlements_list + """Test case for metrics_entitlements_list - View for listing entitlement token metrics, across an account. + View for listing entitlement token metrics, across an account. # noqa: E501 """ pass def test_metrics_entitlements_list0(self): - """ - Test case for metrics_entitlements_list0 + """Test case for metrics_entitlements_list0 - View for listing entitlement token metrics, for a repository. + View for listing entitlement token metrics, for a repository. # noqa: E501 """ pass def test_metrics_packages_list(self): - """ - Test case for metrics_packages_list + """Test case for metrics_packages_list - View for listing package usage metrics, for a repository. + View for listing package usage metrics, for a repository. # noqa: E501 """ pass diff --git a/bindings/python/src/test/test_namespace.py b/bindings/python/src/test/test_namespace.py index 2b83e362..0fc6a75b 100644 --- a/bindings/python/src/test/test_namespace.py +++ b/bindings/python/src/test/test_namespace.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,17 +13,15 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.models.namespace import Namespace # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.models.namespace import Namespace class TestNamespace(unittest.TestCase): - """ Namespace unit test stubs """ + """Namespace unit test stubs""" def setUp(self): pass @@ -32,11 +30,9 @@ def tearDown(self): pass def testNamespace(self): - """ - Test Namespace - """ + """Test Namespace""" # FIXME: construct object with mandatory attributes with example values - #model = cloudsmith_api.models.namespace.Namespace() + # model = cloudsmith_api.models.namespace.Namespace() # noqa: E501 pass diff --git a/bindings/python/src/test/test_namespaces_api.py b/bindings/python/src/test/test_namespaces_api.py index 12a7874c..a5d284ac 100644 --- a/bindings/python/src/test/test_namespaces_api.py +++ b/bindings/python/src/test/test_namespaces_api.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,37 +13,33 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.api.namespaces_api import NamespacesApi # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.apis.namespaces_api import NamespacesApi class TestNamespacesApi(unittest.TestCase): - """ NamespacesApi unit test stubs """ + """NamespacesApi unit test stubs""" def setUp(self): - self.api = cloudsmith_api.apis.namespaces_api.NamespacesApi() + self.api = cloudsmith_api.api.namespaces_api.NamespacesApi() # noqa: E501 def tearDown(self): pass def test_namespaces_list(self): - """ - Test case for namespaces_list + """Test case for namespaces_list - Get a list of all namespaces the user belongs to. + Get a list of all namespaces the user belongs to. # noqa: E501 """ pass def test_namespaces_read(self): - """ - Test case for namespaces_read + """Test case for namespaces_read - Views for working with namespaces. + Views for working with namespaces. # noqa: E501 """ pass diff --git a/bindings/python/src/test/test_organization.py b/bindings/python/src/test/test_organization.py index 20edd331..fe9a209b 100644 --- a/bindings/python/src/test/test_organization.py +++ b/bindings/python/src/test/test_organization.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,17 +13,15 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.models.organization import Organization # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.models.organization import Organization class TestOrganization(unittest.TestCase): - """ Organization unit test stubs """ + """Organization unit test stubs""" def setUp(self): pass @@ -32,11 +30,9 @@ def tearDown(self): pass def testOrganization(self): - """ - Test Organization - """ + """Test Organization""" # FIXME: construct object with mandatory attributes with example values - #model = cloudsmith_api.models.organization.Organization() + # model = cloudsmith_api.models.organization.Organization() # noqa: E501 pass diff --git a/bindings/python/src/test/test_organization_membership.py b/bindings/python/src/test/test_organization_membership.py index fa0523cb..d068fbb4 100644 --- a/bindings/python/src/test/test_organization_membership.py +++ b/bindings/python/src/test/test_organization_membership.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,17 +13,15 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.models.organization_membership import OrganizationMembership # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.models.organization_membership import OrganizationMembership class TestOrganizationMembership(unittest.TestCase): - """ OrganizationMembership unit test stubs """ + """OrganizationMembership unit test stubs""" def setUp(self): pass @@ -32,11 +30,9 @@ def tearDown(self): pass def testOrganizationMembership(self): - """ - Test OrganizationMembership - """ + """Test OrganizationMembership""" # FIXME: construct object with mandatory attributes with example values - #model = cloudsmith_api.models.organization_membership.OrganizationMembership() + # model = cloudsmith_api.models.organization_membership.OrganizationMembership() # noqa: E501 pass diff --git a/bindings/python/src/test/test_orgs_api.py b/bindings/python/src/test/test_orgs_api.py index 1b1347f7..3bb97c0e 100644 --- a/bindings/python/src/test/test_orgs_api.py +++ b/bindings/python/src/test/test_orgs_api.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,61 +13,54 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.api.orgs_api import OrgsApi # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.apis.orgs_api import OrgsApi class TestOrgsApi(unittest.TestCase): - """ OrgsApi unit test stubs """ + """OrgsApi unit test stubs""" def setUp(self): - self.api = cloudsmith_api.apis.orgs_api.OrgsApi() + self.api = cloudsmith_api.api.orgs_api.OrgsApi() # noqa: E501 def tearDown(self): pass def test_orgs_list(self): - """ - Test case for orgs_list + """Test case for orgs_list - Get a list of all the organizations you are associated with. + Get a list of all the organizations you are associated with. # noqa: E501 """ pass def test_orgs_members_list(self): - """ - Test case for orgs_members_list + """Test case for orgs_members_list - Get the details for all organization members. + Get the details for all organization members. # noqa: E501 """ pass def test_orgs_members_read(self): - """ - Test case for orgs_members_read + """Test case for orgs_members_read - Get the details for a specific organization member. + Get the details for a specific organization member. # noqa: E501 """ pass def test_orgs_members_remove(self): - """ - Test case for orgs_members_remove + """Test case for orgs_members_remove - Removes a member from the organization. + Removes a member from the organization. # noqa: E501 """ pass def test_orgs_read(self): - """ - Test case for orgs_read + """Test case for orgs_read - Get the details for the specific organization. + Get the details for the specific organization. # noqa: E501 """ pass diff --git a/bindings/python/src/test/test_package.py b/bindings/python/src/test/test_package.py index f2520327..9f55d6d5 100644 --- a/bindings/python/src/test/test_package.py +++ b/bindings/python/src/test/test_package.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,17 +13,15 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.models.package import Package # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.models.package import Package class TestPackage(unittest.TestCase): - """ Package unit test stubs """ + """Package unit test stubs""" def setUp(self): pass @@ -32,11 +30,9 @@ def tearDown(self): pass def testPackage(self): - """ - Test Package - """ + """Test Package""" # FIXME: construct object with mandatory attributes with example values - #model = cloudsmith_api.models.package.Package() + # model = cloudsmith_api.models.package.Package() # noqa: E501 pass diff --git a/bindings/python/src/test/test_package_copy.py b/bindings/python/src/test/test_package_copy.py index fd6e76a9..c6d671ba 100644 --- a/bindings/python/src/test/test_package_copy.py +++ b/bindings/python/src/test/test_package_copy.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,17 +13,15 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.models.package_copy import PackageCopy # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.models.package_copy import PackageCopy class TestPackageCopy(unittest.TestCase): - """ PackageCopy unit test stubs """ + """PackageCopy unit test stubs""" def setUp(self): pass @@ -32,11 +30,9 @@ def tearDown(self): pass def testPackageCopy(self): - """ - Test PackageCopy - """ + """Test PackageCopy""" # FIXME: construct object with mandatory attributes with example values - #model = cloudsmith_api.models.package_copy.PackageCopy() + # model = cloudsmith_api.models.package_copy.PackageCopy() # noqa: E501 pass diff --git a/bindings/python/src/test/test_package_dependencies.py b/bindings/python/src/test/test_package_dependencies.py index 1c466226..5bb5a2c0 100644 --- a/bindings/python/src/test/test_package_dependencies.py +++ b/bindings/python/src/test/test_package_dependencies.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,17 +13,15 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.models.package_dependencies import PackageDependencies # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.models.package_dependencies import PackageDependencies class TestPackageDependencies(unittest.TestCase): - """ PackageDependencies unit test stubs """ + """PackageDependencies unit test stubs""" def setUp(self): pass @@ -32,11 +30,9 @@ def tearDown(self): pass def testPackageDependencies(self): - """ - Test PackageDependencies - """ + """Test PackageDependencies""" # FIXME: construct object with mandatory attributes with example values - #model = cloudsmith_api.models.package_dependencies.PackageDependencies() + # model = cloudsmith_api.models.package_dependencies.PackageDependencies() # noqa: E501 pass diff --git a/bindings/python/src/test/test_package_dependencies_dependencies.py b/bindings/python/src/test/test_package_dependencies_dependencies.py index cbd21179..632311de 100644 --- a/bindings/python/src/test/test_package_dependencies_dependencies.py +++ b/bindings/python/src/test/test_package_dependencies_dependencies.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,17 +13,15 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.models.package_dependencies_dependencies import PackageDependenciesDependencies # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.models.package_dependencies_dependencies import PackageDependenciesDependencies class TestPackageDependenciesDependencies(unittest.TestCase): - """ PackageDependenciesDependencies unit test stubs """ + """PackageDependenciesDependencies unit test stubs""" def setUp(self): pass @@ -32,11 +30,9 @@ def tearDown(self): pass def testPackageDependenciesDependencies(self): - """ - Test PackageDependenciesDependencies - """ + """Test PackageDependenciesDependencies""" # FIXME: construct object with mandatory attributes with example values - #model = cloudsmith_api.models.package_dependencies_dependencies.PackageDependenciesDependencies() + # model = cloudsmith_api.models.package_dependencies_dependencies.PackageDependenciesDependencies() # noqa: E501 pass diff --git a/bindings/python/src/test/test_package_file_parts_upload.py b/bindings/python/src/test/test_package_file_parts_upload.py index 0a6078c4..266273df 100644 --- a/bindings/python/src/test/test_package_file_parts_upload.py +++ b/bindings/python/src/test/test_package_file_parts_upload.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,17 +13,15 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.models.package_file_parts_upload import PackageFilePartsUpload # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.models.package_file_parts_upload import PackageFilePartsUpload class TestPackageFilePartsUpload(unittest.TestCase): - """ PackageFilePartsUpload unit test stubs """ + """PackageFilePartsUpload unit test stubs""" def setUp(self): pass @@ -32,11 +30,9 @@ def tearDown(self): pass def testPackageFilePartsUpload(self): - """ - Test PackageFilePartsUpload - """ + """Test PackageFilePartsUpload""" # FIXME: construct object with mandatory attributes with example values - #model = cloudsmith_api.models.package_file_parts_upload.PackageFilePartsUpload() + # model = cloudsmith_api.models.package_file_parts_upload.PackageFilePartsUpload() # noqa: E501 pass diff --git a/bindings/python/src/test/test_package_file_upload.py b/bindings/python/src/test/test_package_file_upload.py index dd049c19..2dad7574 100644 --- a/bindings/python/src/test/test_package_file_upload.py +++ b/bindings/python/src/test/test_package_file_upload.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,17 +13,15 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.models.package_file_upload import PackageFileUpload # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.models.package_file_upload import PackageFileUpload class TestPackageFileUpload(unittest.TestCase): - """ PackageFileUpload unit test stubs """ + """PackageFileUpload unit test stubs""" def setUp(self): pass @@ -32,11 +30,9 @@ def tearDown(self): pass def testPackageFileUpload(self): - """ - Test PackageFileUpload - """ + """Test PackageFileUpload""" # FIXME: construct object with mandatory attributes with example values - #model = cloudsmith_api.models.package_file_upload.PackageFileUpload() + # model = cloudsmith_api.models.package_file_upload.PackageFileUpload() # noqa: E501 pass diff --git a/bindings/python/src/test/test_package_move.py b/bindings/python/src/test/test_package_move.py index 416ea2ae..b587da10 100644 --- a/bindings/python/src/test/test_package_move.py +++ b/bindings/python/src/test/test_package_move.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,17 +13,15 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.models.package_move import PackageMove # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.models.package_move import PackageMove class TestPackageMove(unittest.TestCase): - """ PackageMove unit test stubs """ + """PackageMove unit test stubs""" def setUp(self): pass @@ -32,11 +30,9 @@ def tearDown(self): pass def testPackageMove(self): - """ - Test PackageMove - """ + """Test PackageMove""" # FIXME: construct object with mandatory attributes with example values - #model = cloudsmith_api.models.package_move.PackageMove() + # model = cloudsmith_api.models.package_move.PackageMove() # noqa: E501 pass diff --git a/bindings/python/src/test/test_package_status.py b/bindings/python/src/test/test_package_status.py index f3162adb..a4395d73 100644 --- a/bindings/python/src/test/test_package_status.py +++ b/bindings/python/src/test/test_package_status.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,17 +13,15 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.models.package_status import PackageStatus # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.models.package_status import PackageStatus class TestPackageStatus(unittest.TestCase): - """ PackageStatus unit test stubs """ + """PackageStatus unit test stubs""" def setUp(self): pass @@ -32,11 +30,9 @@ def tearDown(self): pass def testPackageStatus(self): - """ - Test PackageStatus - """ + """Test PackageStatus""" # FIXME: construct object with mandatory attributes with example values - #model = cloudsmith_api.models.package_status.PackageStatus() + # model = cloudsmith_api.models.package_status.PackageStatus() # noqa: E501 pass diff --git a/bindings/python/src/test/test_package_usage_metrics.py b/bindings/python/src/test/test_package_usage_metrics.py index c0d8a24c..4f5cf5ae 100644 --- a/bindings/python/src/test/test_package_usage_metrics.py +++ b/bindings/python/src/test/test_package_usage_metrics.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,17 +13,15 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.models.package_usage_metrics import PackageUsageMetrics # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.models.package_usage_metrics import PackageUsageMetrics class TestPackageUsageMetrics(unittest.TestCase): - """ PackageUsageMetrics unit test stubs """ + """PackageUsageMetrics unit test stubs""" def setUp(self): pass @@ -32,11 +30,9 @@ def tearDown(self): pass def testPackageUsageMetrics(self): - """ - Test PackageUsageMetrics - """ + """Test PackageUsageMetrics""" # FIXME: construct object with mandatory attributes with example values - #model = cloudsmith_api.models.package_usage_metrics.PackageUsageMetrics() + # model = cloudsmith_api.models.package_usage_metrics.PackageUsageMetrics() # noqa: E501 pass diff --git a/bindings/python/src/test/test_packages_api.py b/bindings/python/src/test/test_packages_api.py index 10904e43..28c41223 100644 --- a/bindings/python/src/test/test_packages_api.py +++ b/bindings/python/src/test/test_packages_api.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,469 +13,411 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.api.packages_api import PackagesApi # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.apis.packages_api import PackagesApi class TestPackagesApi(unittest.TestCase): - """ PackagesApi unit test stubs """ + """PackagesApi unit test stubs""" def setUp(self): - self.api = cloudsmith_api.apis.packages_api.PackagesApi() + self.api = cloudsmith_api.api.packages_api.PackagesApi() # noqa: E501 def tearDown(self): pass def test_packages_copy(self): - """ - Test case for packages_copy + """Test case for packages_copy - Copy a package to another repository. + Copy a package to another repository. # noqa: E501 """ pass def test_packages_delete(self): - """ - Test case for packages_delete + """Test case for packages_delete - Delete a specific package in a repository. + Delete a specific package in a repository. # noqa: E501 """ pass def test_packages_dependencies(self): - """ - Test case for packages_dependencies + """Test case for packages_dependencies - Get the direct (non-transitive) dependencies list for a package. + Get the direct (non-transitive) dependencies list for a package. # noqa: E501 """ pass def test_packages_list(self): - """ - Test case for packages_list + """Test case for packages_list - Get a list of all packages associated with repository. + Get a list of all packages associated with repository. # noqa: E501 """ pass def test_packages_move(self): - """ - Test case for packages_move + """Test case for packages_move - Move a package to another repository. + Move a package to another repository. # noqa: E501 """ pass def test_packages_read(self): - """ - Test case for packages_read + """Test case for packages_read - Get a specific package in a repository. + Get a specific package in a repository. # noqa: E501 """ pass def test_packages_resync(self): - """ - Test case for packages_resync + """Test case for packages_resync - Schedule a package for resynchronisation. + Schedule a package for resynchronisation. # noqa: E501 """ pass def test_packages_scan(self): - """ - Test case for packages_scan + """Test case for packages_scan - Schedule a package for scanning. + Schedule a package for scanning. # noqa: E501 """ pass def test_packages_status(self): - """ - Test case for packages_status + """Test case for packages_status - Get the synchronisation status for a package. + Get the synchronisation status for a package. # noqa: E501 """ pass def test_packages_tag(self): - """ - Test case for packages_tag + """Test case for packages_tag - Add/Replace/Remove tags for a package. + Add/Replace/Remove tags for a package. # noqa: E501 """ pass def test_packages_upload_alpine(self): - """ - Test case for packages_upload_alpine + """Test case for packages_upload_alpine - Create a new Alpine package + Create a new Alpine package # noqa: E501 """ pass def test_packages_upload_cargo(self): - """ - Test case for packages_upload_cargo + """Test case for packages_upload_cargo - Create a new Cargo package + Create a new Cargo package # noqa: E501 """ pass def test_packages_upload_cocoapods(self): - """ - Test case for packages_upload_cocoapods + """Test case for packages_upload_cocoapods - Create a new CocoaPods package + Create a new CocoaPods package # noqa: E501 """ pass def test_packages_upload_composer(self): - """ - Test case for packages_upload_composer + """Test case for packages_upload_composer - Create a new Composer package + Create a new Composer package # noqa: E501 """ pass def test_packages_upload_conan(self): - """ - Test case for packages_upload_conan + """Test case for packages_upload_conan - Create a new Conan package + Create a new Conan package # noqa: E501 """ pass def test_packages_upload_conda(self): - """ - Test case for packages_upload_conda + """Test case for packages_upload_conda - Create a new Conda package + Create a new Conda package # noqa: E501 """ pass def test_packages_upload_cran(self): - """ - Test case for packages_upload_cran + """Test case for packages_upload_cran - Create a new CRAN package + Create a new CRAN package # noqa: E501 """ pass def test_packages_upload_dart(self): - """ - Test case for packages_upload_dart + """Test case for packages_upload_dart - Create a new Dart package + Create a new Dart package # noqa: E501 """ pass def test_packages_upload_deb(self): - """ - Test case for packages_upload_deb + """Test case for packages_upload_deb - Create a new Debian package + Create a new Debian package # noqa: E501 """ pass def test_packages_upload_docker(self): - """ - Test case for packages_upload_docker + """Test case for packages_upload_docker - Create a new Docker package + Create a new Docker package # noqa: E501 """ pass def test_packages_upload_go(self): - """ - Test case for packages_upload_go + """Test case for packages_upload_go - Create a new Go package + Create a new Go package # noqa: E501 """ pass def test_packages_upload_helm(self): - """ - Test case for packages_upload_helm + """Test case for packages_upload_helm - Create a new Helm package + Create a new Helm package # noqa: E501 """ pass def test_packages_upload_luarocks(self): - """ - Test case for packages_upload_luarocks + """Test case for packages_upload_luarocks - Create a new LuaRocks package + Create a new LuaRocks package # noqa: E501 """ pass def test_packages_upload_maven(self): - """ - Test case for packages_upload_maven + """Test case for packages_upload_maven - Create a new Maven package + Create a new Maven package # noqa: E501 """ pass def test_packages_upload_npm(self): - """ - Test case for packages_upload_npm + """Test case for packages_upload_npm - Create a new npm package + Create a new npm package # noqa: E501 """ pass def test_packages_upload_nuget(self): - """ - Test case for packages_upload_nuget + """Test case for packages_upload_nuget - Create a new NuGet package + Create a new NuGet package # noqa: E501 """ pass def test_packages_upload_p2(self): - """ - Test case for packages_upload_p2 + """Test case for packages_upload_p2 - Create a new P2 package + Create a new P2 package # noqa: E501 """ pass def test_packages_upload_python(self): - """ - Test case for packages_upload_python + """Test case for packages_upload_python - Create a new Python package + Create a new Python package # noqa: E501 """ pass def test_packages_upload_raw(self): - """ - Test case for packages_upload_raw + """Test case for packages_upload_raw - Create a new Raw package + Create a new Raw package # noqa: E501 """ pass def test_packages_upload_rpm(self): - """ - Test case for packages_upload_rpm + """Test case for packages_upload_rpm - Create a new RedHat package + Create a new RedHat package # noqa: E501 """ pass def test_packages_upload_ruby(self): - """ - Test case for packages_upload_ruby + """Test case for packages_upload_ruby - Create a new Ruby package + Create a new Ruby package # noqa: E501 """ pass def test_packages_upload_terraform(self): - """ - Test case for packages_upload_terraform + """Test case for packages_upload_terraform - Create a new Terraform package + Create a new Terraform package # noqa: E501 """ pass def test_packages_upload_vagrant(self): - """ - Test case for packages_upload_vagrant + """Test case for packages_upload_vagrant - Create a new Vagrant package + Create a new Vagrant package # noqa: E501 """ pass def test_packages_validate_upload_alpine(self): - """ - Test case for packages_validate_upload_alpine + """Test case for packages_validate_upload_alpine - Validate parameters for create Alpine package + Validate parameters for create Alpine package # noqa: E501 """ pass def test_packages_validate_upload_cargo(self): - """ - Test case for packages_validate_upload_cargo + """Test case for packages_validate_upload_cargo - Validate parameters for create Cargo package + Validate parameters for create Cargo package # noqa: E501 """ pass def test_packages_validate_upload_cocoapods(self): - """ - Test case for packages_validate_upload_cocoapods + """Test case for packages_validate_upload_cocoapods - Validate parameters for create CocoaPods package + Validate parameters for create CocoaPods package # noqa: E501 """ pass def test_packages_validate_upload_composer(self): - """ - Test case for packages_validate_upload_composer + """Test case for packages_validate_upload_composer - Validate parameters for create Composer package + Validate parameters for create Composer package # noqa: E501 """ pass def test_packages_validate_upload_conan(self): - """ - Test case for packages_validate_upload_conan + """Test case for packages_validate_upload_conan - Validate parameters for create Conan package + Validate parameters for create Conan package # noqa: E501 """ pass def test_packages_validate_upload_conda(self): - """ - Test case for packages_validate_upload_conda + """Test case for packages_validate_upload_conda - Validate parameters for create Conda package + Validate parameters for create Conda package # noqa: E501 """ pass def test_packages_validate_upload_cran(self): - """ - Test case for packages_validate_upload_cran + """Test case for packages_validate_upload_cran - Validate parameters for create CRAN package + Validate parameters for create CRAN package # noqa: E501 """ pass def test_packages_validate_upload_dart(self): - """ - Test case for packages_validate_upload_dart + """Test case for packages_validate_upload_dart - Validate parameters for create Dart package + Validate parameters for create Dart package # noqa: E501 """ pass def test_packages_validate_upload_deb(self): - """ - Test case for packages_validate_upload_deb + """Test case for packages_validate_upload_deb - Validate parameters for create Debian package + Validate parameters for create Debian package # noqa: E501 """ pass def test_packages_validate_upload_docker(self): - """ - Test case for packages_validate_upload_docker + """Test case for packages_validate_upload_docker - Validate parameters for create Docker package + Validate parameters for create Docker package # noqa: E501 """ pass def test_packages_validate_upload_go(self): - """ - Test case for packages_validate_upload_go + """Test case for packages_validate_upload_go - Validate parameters for create Go package + Validate parameters for create Go package # noqa: E501 """ pass def test_packages_validate_upload_helm(self): - """ - Test case for packages_validate_upload_helm + """Test case for packages_validate_upload_helm - Validate parameters for create Helm package + Validate parameters for create Helm package # noqa: E501 """ pass def test_packages_validate_upload_luarocks(self): - """ - Test case for packages_validate_upload_luarocks + """Test case for packages_validate_upload_luarocks - Validate parameters for create LuaRocks package + Validate parameters for create LuaRocks package # noqa: E501 """ pass def test_packages_validate_upload_maven(self): - """ - Test case for packages_validate_upload_maven + """Test case for packages_validate_upload_maven - Validate parameters for create Maven package + Validate parameters for create Maven package # noqa: E501 """ pass def test_packages_validate_upload_npm(self): - """ - Test case for packages_validate_upload_npm + """Test case for packages_validate_upload_npm - Validate parameters for create npm package + Validate parameters for create npm package # noqa: E501 """ pass def test_packages_validate_upload_nuget(self): - """ - Test case for packages_validate_upload_nuget + """Test case for packages_validate_upload_nuget - Validate parameters for create NuGet package + Validate parameters for create NuGet package # noqa: E501 """ pass def test_packages_validate_upload_p2(self): - """ - Test case for packages_validate_upload_p2 + """Test case for packages_validate_upload_p2 - Validate parameters for create P2 package + Validate parameters for create P2 package # noqa: E501 """ pass def test_packages_validate_upload_python(self): - """ - Test case for packages_validate_upload_python + """Test case for packages_validate_upload_python - Validate parameters for create Python package + Validate parameters for create Python package # noqa: E501 """ pass def test_packages_validate_upload_raw(self): - """ - Test case for packages_validate_upload_raw + """Test case for packages_validate_upload_raw - Validate parameters for create Raw package + Validate parameters for create Raw package # noqa: E501 """ pass def test_packages_validate_upload_rpm(self): - """ - Test case for packages_validate_upload_rpm + """Test case for packages_validate_upload_rpm - Validate parameters for create RedHat package + Validate parameters for create RedHat package # noqa: E501 """ pass def test_packages_validate_upload_ruby(self): - """ - Test case for packages_validate_upload_ruby + """Test case for packages_validate_upload_ruby - Validate parameters for create Ruby package + Validate parameters for create Ruby package # noqa: E501 """ pass def test_packages_validate_upload_terraform(self): - """ - Test case for packages_validate_upload_terraform + """Test case for packages_validate_upload_terraform - Validate parameters for create Terraform package + Validate parameters for create Terraform package # noqa: E501 """ pass def test_packages_validate_upload_vagrant(self): - """ - Test case for packages_validate_upload_vagrant + """Test case for packages_validate_upload_vagrant - Validate parameters for create Vagrant package + Validate parameters for create Vagrant package # noqa: E501 """ pass diff --git a/bindings/python/src/test/test_packages_copy.py b/bindings/python/src/test/test_packages_copy.py index f943afb8..4a1e122f 100644 --- a/bindings/python/src/test/test_packages_copy.py +++ b/bindings/python/src/test/test_packages_copy.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,17 +13,15 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.models.packages_copy import PackagesCopy # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.models.packages_copy import PackagesCopy class TestPackagesCopy(unittest.TestCase): - """ PackagesCopy unit test stubs """ + """PackagesCopy unit test stubs""" def setUp(self): pass @@ -32,11 +30,9 @@ def tearDown(self): pass def testPackagesCopy(self): - """ - Test PackagesCopy - """ + """Test PackagesCopy""" # FIXME: construct object with mandatory attributes with example values - #model = cloudsmith_api.models.packages_copy.PackagesCopy() + # model = cloudsmith_api.models.packages_copy.PackagesCopy() # noqa: E501 pass diff --git a/bindings/python/src/test/test_packages_move.py b/bindings/python/src/test/test_packages_move.py index ae718ce1..519b5fd6 100644 --- a/bindings/python/src/test/test_packages_move.py +++ b/bindings/python/src/test/test_packages_move.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,17 +13,15 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.models.packages_move import PackagesMove # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.models.packages_move import PackagesMove class TestPackagesMove(unittest.TestCase): - """ PackagesMove unit test stubs """ + """PackagesMove unit test stubs""" def setUp(self): pass @@ -32,11 +30,9 @@ def tearDown(self): pass def testPackagesMove(self): - """ - Test PackagesMove - """ + """Test PackagesMove""" # FIXME: construct object with mandatory attributes with example values - #model = cloudsmith_api.models.packages_move.PackagesMove() + # model = cloudsmith_api.models.packages_move.PackagesMove() # noqa: E501 pass diff --git a/bindings/python/src/test/test_packages_tag.py b/bindings/python/src/test/test_packages_tag.py index 75c44a8b..1d67046b 100644 --- a/bindings/python/src/test/test_packages_tag.py +++ b/bindings/python/src/test/test_packages_tag.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,17 +13,15 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.models.packages_tag import PackagesTag # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.models.packages_tag import PackagesTag class TestPackagesTag(unittest.TestCase): - """ PackagesTag unit test stubs """ + """PackagesTag unit test stubs""" def setUp(self): pass @@ -32,11 +30,9 @@ def tearDown(self): pass def testPackagesTag(self): - """ - Test PackagesTag - """ + """Test PackagesTag""" # FIXME: construct object with mandatory attributes with example values - #model = cloudsmith_api.models.packages_tag.PackagesTag() + # model = cloudsmith_api.models.packages_tag.PackagesTag() # noqa: E501 pass diff --git a/bindings/python/src/test/test_packages_upload_alpine.py b/bindings/python/src/test/test_packages_upload_alpine.py index 0ed925c2..ef595f0f 100644 --- a/bindings/python/src/test/test_packages_upload_alpine.py +++ b/bindings/python/src/test/test_packages_upload_alpine.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,17 +13,15 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.models.packages_upload_alpine import PackagesUploadAlpine # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.models.packages_upload_alpine import PackagesUploadAlpine class TestPackagesUploadAlpine(unittest.TestCase): - """ PackagesUploadAlpine unit test stubs """ + """PackagesUploadAlpine unit test stubs""" def setUp(self): pass @@ -32,11 +30,9 @@ def tearDown(self): pass def testPackagesUploadAlpine(self): - """ - Test PackagesUploadAlpine - """ + """Test PackagesUploadAlpine""" # FIXME: construct object with mandatory attributes with example values - #model = cloudsmith_api.models.packages_upload_alpine.PackagesUploadAlpine() + # model = cloudsmith_api.models.packages_upload_alpine.PackagesUploadAlpine() # noqa: E501 pass diff --git a/bindings/python/src/test/test_packages_upload_cargo.py b/bindings/python/src/test/test_packages_upload_cargo.py index a944fb2c..96c15edf 100644 --- a/bindings/python/src/test/test_packages_upload_cargo.py +++ b/bindings/python/src/test/test_packages_upload_cargo.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,17 +13,15 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.models.packages_upload_cargo import PackagesUploadCargo # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.models.packages_upload_cargo import PackagesUploadCargo class TestPackagesUploadCargo(unittest.TestCase): - """ PackagesUploadCargo unit test stubs """ + """PackagesUploadCargo unit test stubs""" def setUp(self): pass @@ -32,11 +30,9 @@ def tearDown(self): pass def testPackagesUploadCargo(self): - """ - Test PackagesUploadCargo - """ + """Test PackagesUploadCargo""" # FIXME: construct object with mandatory attributes with example values - #model = cloudsmith_api.models.packages_upload_cargo.PackagesUploadCargo() + # model = cloudsmith_api.models.packages_upload_cargo.PackagesUploadCargo() # noqa: E501 pass diff --git a/bindings/python/src/test/test_packages_upload_cocoapods.py b/bindings/python/src/test/test_packages_upload_cocoapods.py index bb798170..8fb40c79 100644 --- a/bindings/python/src/test/test_packages_upload_cocoapods.py +++ b/bindings/python/src/test/test_packages_upload_cocoapods.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,17 +13,15 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.models.packages_upload_cocoapods import PackagesUploadCocoapods # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.models.packages_upload_cocoapods import PackagesUploadCocoapods class TestPackagesUploadCocoapods(unittest.TestCase): - """ PackagesUploadCocoapods unit test stubs """ + """PackagesUploadCocoapods unit test stubs""" def setUp(self): pass @@ -32,11 +30,9 @@ def tearDown(self): pass def testPackagesUploadCocoapods(self): - """ - Test PackagesUploadCocoapods - """ + """Test PackagesUploadCocoapods""" # FIXME: construct object with mandatory attributes with example values - #model = cloudsmith_api.models.packages_upload_cocoapods.PackagesUploadCocoapods() + # model = cloudsmith_api.models.packages_upload_cocoapods.PackagesUploadCocoapods() # noqa: E501 pass diff --git a/bindings/python/src/test/test_packages_upload_composer.py b/bindings/python/src/test/test_packages_upload_composer.py index 121e2b2d..3df1f623 100644 --- a/bindings/python/src/test/test_packages_upload_composer.py +++ b/bindings/python/src/test/test_packages_upload_composer.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,17 +13,15 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.models.packages_upload_composer import PackagesUploadComposer # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.models.packages_upload_composer import PackagesUploadComposer class TestPackagesUploadComposer(unittest.TestCase): - """ PackagesUploadComposer unit test stubs """ + """PackagesUploadComposer unit test stubs""" def setUp(self): pass @@ -32,11 +30,9 @@ def tearDown(self): pass def testPackagesUploadComposer(self): - """ - Test PackagesUploadComposer - """ + """Test PackagesUploadComposer""" # FIXME: construct object with mandatory attributes with example values - #model = cloudsmith_api.models.packages_upload_composer.PackagesUploadComposer() + # model = cloudsmith_api.models.packages_upload_composer.PackagesUploadComposer() # noqa: E501 pass diff --git a/bindings/python/src/test/test_packages_upload_conan.py b/bindings/python/src/test/test_packages_upload_conan.py index 102ade4c..e0a7903c 100644 --- a/bindings/python/src/test/test_packages_upload_conan.py +++ b/bindings/python/src/test/test_packages_upload_conan.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,17 +13,15 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.models.packages_upload_conan import PackagesUploadConan # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.models.packages_upload_conan import PackagesUploadConan class TestPackagesUploadConan(unittest.TestCase): - """ PackagesUploadConan unit test stubs """ + """PackagesUploadConan unit test stubs""" def setUp(self): pass @@ -32,11 +30,9 @@ def tearDown(self): pass def testPackagesUploadConan(self): - """ - Test PackagesUploadConan - """ + """Test PackagesUploadConan""" # FIXME: construct object with mandatory attributes with example values - #model = cloudsmith_api.models.packages_upload_conan.PackagesUploadConan() + # model = cloudsmith_api.models.packages_upload_conan.PackagesUploadConan() # noqa: E501 pass diff --git a/bindings/python/src/test/test_packages_upload_conda.py b/bindings/python/src/test/test_packages_upload_conda.py index df096fde..461181b5 100644 --- a/bindings/python/src/test/test_packages_upload_conda.py +++ b/bindings/python/src/test/test_packages_upload_conda.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,17 +13,15 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.models.packages_upload_conda import PackagesUploadConda # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.models.packages_upload_conda import PackagesUploadConda class TestPackagesUploadConda(unittest.TestCase): - """ PackagesUploadConda unit test stubs """ + """PackagesUploadConda unit test stubs""" def setUp(self): pass @@ -32,11 +30,9 @@ def tearDown(self): pass def testPackagesUploadConda(self): - """ - Test PackagesUploadConda - """ + """Test PackagesUploadConda""" # FIXME: construct object with mandatory attributes with example values - #model = cloudsmith_api.models.packages_upload_conda.PackagesUploadConda() + # model = cloudsmith_api.models.packages_upload_conda.PackagesUploadConda() # noqa: E501 pass diff --git a/bindings/python/src/test/test_packages_upload_cran.py b/bindings/python/src/test/test_packages_upload_cran.py index 98ee4399..e8d3c435 100644 --- a/bindings/python/src/test/test_packages_upload_cran.py +++ b/bindings/python/src/test/test_packages_upload_cran.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,17 +13,15 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.models.packages_upload_cran import PackagesUploadCran # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.models.packages_upload_cran import PackagesUploadCran class TestPackagesUploadCran(unittest.TestCase): - """ PackagesUploadCran unit test stubs """ + """PackagesUploadCran unit test stubs""" def setUp(self): pass @@ -32,11 +30,9 @@ def tearDown(self): pass def testPackagesUploadCran(self): - """ - Test PackagesUploadCran - """ + """Test PackagesUploadCran""" # FIXME: construct object with mandatory attributes with example values - #model = cloudsmith_api.models.packages_upload_cran.PackagesUploadCran() + # model = cloudsmith_api.models.packages_upload_cran.PackagesUploadCran() # noqa: E501 pass diff --git a/bindings/python/src/test/test_packages_upload_dart.py b/bindings/python/src/test/test_packages_upload_dart.py index eb6164bd..37fefc17 100644 --- a/bindings/python/src/test/test_packages_upload_dart.py +++ b/bindings/python/src/test/test_packages_upload_dart.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,17 +13,15 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.models.packages_upload_dart import PackagesUploadDart # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.models.packages_upload_dart import PackagesUploadDart class TestPackagesUploadDart(unittest.TestCase): - """ PackagesUploadDart unit test stubs """ + """PackagesUploadDart unit test stubs""" def setUp(self): pass @@ -32,11 +30,9 @@ def tearDown(self): pass def testPackagesUploadDart(self): - """ - Test PackagesUploadDart - """ + """Test PackagesUploadDart""" # FIXME: construct object with mandatory attributes with example values - #model = cloudsmith_api.models.packages_upload_dart.PackagesUploadDart() + # model = cloudsmith_api.models.packages_upload_dart.PackagesUploadDart() # noqa: E501 pass diff --git a/bindings/python/src/test/test_packages_upload_deb.py b/bindings/python/src/test/test_packages_upload_deb.py index abf401db..ed95536f 100644 --- a/bindings/python/src/test/test_packages_upload_deb.py +++ b/bindings/python/src/test/test_packages_upload_deb.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,17 +13,15 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.models.packages_upload_deb import PackagesUploadDeb # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.models.packages_upload_deb import PackagesUploadDeb class TestPackagesUploadDeb(unittest.TestCase): - """ PackagesUploadDeb unit test stubs """ + """PackagesUploadDeb unit test stubs""" def setUp(self): pass @@ -32,11 +30,9 @@ def tearDown(self): pass def testPackagesUploadDeb(self): - """ - Test PackagesUploadDeb - """ + """Test PackagesUploadDeb""" # FIXME: construct object with mandatory attributes with example values - #model = cloudsmith_api.models.packages_upload_deb.PackagesUploadDeb() + # model = cloudsmith_api.models.packages_upload_deb.PackagesUploadDeb() # noqa: E501 pass diff --git a/bindings/python/src/test/test_packages_upload_docker.py b/bindings/python/src/test/test_packages_upload_docker.py index 15993c6a..f49207b7 100644 --- a/bindings/python/src/test/test_packages_upload_docker.py +++ b/bindings/python/src/test/test_packages_upload_docker.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,17 +13,15 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.models.packages_upload_docker import PackagesUploadDocker # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.models.packages_upload_docker import PackagesUploadDocker class TestPackagesUploadDocker(unittest.TestCase): - """ PackagesUploadDocker unit test stubs """ + """PackagesUploadDocker unit test stubs""" def setUp(self): pass @@ -32,11 +30,9 @@ def tearDown(self): pass def testPackagesUploadDocker(self): - """ - Test PackagesUploadDocker - """ + """Test PackagesUploadDocker""" # FIXME: construct object with mandatory attributes with example values - #model = cloudsmith_api.models.packages_upload_docker.PackagesUploadDocker() + # model = cloudsmith_api.models.packages_upload_docker.PackagesUploadDocker() # noqa: E501 pass diff --git a/bindings/python/src/test/test_packages_upload_go.py b/bindings/python/src/test/test_packages_upload_go.py index 0941c0b1..66fd42dd 100644 --- a/bindings/python/src/test/test_packages_upload_go.py +++ b/bindings/python/src/test/test_packages_upload_go.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,17 +13,15 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.models.packages_upload_go import PackagesUploadGo # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.models.packages_upload_go import PackagesUploadGo class TestPackagesUploadGo(unittest.TestCase): - """ PackagesUploadGo unit test stubs """ + """PackagesUploadGo unit test stubs""" def setUp(self): pass @@ -32,11 +30,9 @@ def tearDown(self): pass def testPackagesUploadGo(self): - """ - Test PackagesUploadGo - """ + """Test PackagesUploadGo""" # FIXME: construct object with mandatory attributes with example values - #model = cloudsmith_api.models.packages_upload_go.PackagesUploadGo() + # model = cloudsmith_api.models.packages_upload_go.PackagesUploadGo() # noqa: E501 pass diff --git a/bindings/python/src/test/test_packages_upload_helm.py b/bindings/python/src/test/test_packages_upload_helm.py index 479e3a9b..da680e8d 100644 --- a/bindings/python/src/test/test_packages_upload_helm.py +++ b/bindings/python/src/test/test_packages_upload_helm.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,17 +13,15 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.models.packages_upload_helm import PackagesUploadHelm # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.models.packages_upload_helm import PackagesUploadHelm class TestPackagesUploadHelm(unittest.TestCase): - """ PackagesUploadHelm unit test stubs """ + """PackagesUploadHelm unit test stubs""" def setUp(self): pass @@ -32,11 +30,9 @@ def tearDown(self): pass def testPackagesUploadHelm(self): - """ - Test PackagesUploadHelm - """ + """Test PackagesUploadHelm""" # FIXME: construct object with mandatory attributes with example values - #model = cloudsmith_api.models.packages_upload_helm.PackagesUploadHelm() + # model = cloudsmith_api.models.packages_upload_helm.PackagesUploadHelm() # noqa: E501 pass diff --git a/bindings/python/src/test/test_packages_upload_luarocks.py b/bindings/python/src/test/test_packages_upload_luarocks.py index 2850ab96..c699a7be 100644 --- a/bindings/python/src/test/test_packages_upload_luarocks.py +++ b/bindings/python/src/test/test_packages_upload_luarocks.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,17 +13,15 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.models.packages_upload_luarocks import PackagesUploadLuarocks # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.models.packages_upload_luarocks import PackagesUploadLuarocks class TestPackagesUploadLuarocks(unittest.TestCase): - """ PackagesUploadLuarocks unit test stubs """ + """PackagesUploadLuarocks unit test stubs""" def setUp(self): pass @@ -32,11 +30,9 @@ def tearDown(self): pass def testPackagesUploadLuarocks(self): - """ - Test PackagesUploadLuarocks - """ + """Test PackagesUploadLuarocks""" # FIXME: construct object with mandatory attributes with example values - #model = cloudsmith_api.models.packages_upload_luarocks.PackagesUploadLuarocks() + # model = cloudsmith_api.models.packages_upload_luarocks.PackagesUploadLuarocks() # noqa: E501 pass diff --git a/bindings/python/src/test/test_packages_upload_maven.py b/bindings/python/src/test/test_packages_upload_maven.py index da12ebbd..eaed552a 100644 --- a/bindings/python/src/test/test_packages_upload_maven.py +++ b/bindings/python/src/test/test_packages_upload_maven.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,17 +13,15 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.models.packages_upload_maven import PackagesUploadMaven # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.models.packages_upload_maven import PackagesUploadMaven class TestPackagesUploadMaven(unittest.TestCase): - """ PackagesUploadMaven unit test stubs """ + """PackagesUploadMaven unit test stubs""" def setUp(self): pass @@ -32,11 +30,9 @@ def tearDown(self): pass def testPackagesUploadMaven(self): - """ - Test PackagesUploadMaven - """ + """Test PackagesUploadMaven""" # FIXME: construct object with mandatory attributes with example values - #model = cloudsmith_api.models.packages_upload_maven.PackagesUploadMaven() + # model = cloudsmith_api.models.packages_upload_maven.PackagesUploadMaven() # noqa: E501 pass diff --git a/bindings/python/src/test/test_packages_upload_npm.py b/bindings/python/src/test/test_packages_upload_npm.py index 7d4a1d98..44aff830 100644 --- a/bindings/python/src/test/test_packages_upload_npm.py +++ b/bindings/python/src/test/test_packages_upload_npm.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,17 +13,15 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.models.packages_upload_npm import PackagesUploadNpm # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.models.packages_upload_npm import PackagesUploadNpm class TestPackagesUploadNpm(unittest.TestCase): - """ PackagesUploadNpm unit test stubs """ + """PackagesUploadNpm unit test stubs""" def setUp(self): pass @@ -32,11 +30,9 @@ def tearDown(self): pass def testPackagesUploadNpm(self): - """ - Test PackagesUploadNpm - """ + """Test PackagesUploadNpm""" # FIXME: construct object with mandatory attributes with example values - #model = cloudsmith_api.models.packages_upload_npm.PackagesUploadNpm() + # model = cloudsmith_api.models.packages_upload_npm.PackagesUploadNpm() # noqa: E501 pass diff --git a/bindings/python/src/test/test_packages_upload_nuget.py b/bindings/python/src/test/test_packages_upload_nuget.py index dbda6072..25ec8f8f 100644 --- a/bindings/python/src/test/test_packages_upload_nuget.py +++ b/bindings/python/src/test/test_packages_upload_nuget.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,17 +13,15 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.models.packages_upload_nuget import PackagesUploadNuget # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.models.packages_upload_nuget import PackagesUploadNuget class TestPackagesUploadNuget(unittest.TestCase): - """ PackagesUploadNuget unit test stubs """ + """PackagesUploadNuget unit test stubs""" def setUp(self): pass @@ -32,11 +30,9 @@ def tearDown(self): pass def testPackagesUploadNuget(self): - """ - Test PackagesUploadNuget - """ + """Test PackagesUploadNuget""" # FIXME: construct object with mandatory attributes with example values - #model = cloudsmith_api.models.packages_upload_nuget.PackagesUploadNuget() + # model = cloudsmith_api.models.packages_upload_nuget.PackagesUploadNuget() # noqa: E501 pass diff --git a/bindings/python/src/test/test_packages_upload_p2.py b/bindings/python/src/test/test_packages_upload_p2.py index 215f86e1..a1edf0d2 100644 --- a/bindings/python/src/test/test_packages_upload_p2.py +++ b/bindings/python/src/test/test_packages_upload_p2.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,17 +13,15 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.models.packages_upload_p2 import PackagesUploadP2 # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.models.packages_upload_p2 import PackagesUploadP2 class TestPackagesUploadP2(unittest.TestCase): - """ PackagesUploadP2 unit test stubs """ + """PackagesUploadP2 unit test stubs""" def setUp(self): pass @@ -32,11 +30,9 @@ def tearDown(self): pass def testPackagesUploadP2(self): - """ - Test PackagesUploadP2 - """ + """Test PackagesUploadP2""" # FIXME: construct object with mandatory attributes with example values - #model = cloudsmith_api.models.packages_upload_p2.PackagesUploadP2() + # model = cloudsmith_api.models.packages_upload_p2.PackagesUploadP2() # noqa: E501 pass diff --git a/bindings/python/src/test/test_packages_upload_python.py b/bindings/python/src/test/test_packages_upload_python.py index 3c57dca1..0952a205 100644 --- a/bindings/python/src/test/test_packages_upload_python.py +++ b/bindings/python/src/test/test_packages_upload_python.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,17 +13,15 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.models.packages_upload_python import PackagesUploadPython # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.models.packages_upload_python import PackagesUploadPython class TestPackagesUploadPython(unittest.TestCase): - """ PackagesUploadPython unit test stubs """ + """PackagesUploadPython unit test stubs""" def setUp(self): pass @@ -32,11 +30,9 @@ def tearDown(self): pass def testPackagesUploadPython(self): - """ - Test PackagesUploadPython - """ + """Test PackagesUploadPython""" # FIXME: construct object with mandatory attributes with example values - #model = cloudsmith_api.models.packages_upload_python.PackagesUploadPython() + # model = cloudsmith_api.models.packages_upload_python.PackagesUploadPython() # noqa: E501 pass diff --git a/bindings/python/src/test/test_packages_upload_raw.py b/bindings/python/src/test/test_packages_upload_raw.py index 4663a165..f995e6b1 100644 --- a/bindings/python/src/test/test_packages_upload_raw.py +++ b/bindings/python/src/test/test_packages_upload_raw.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,17 +13,15 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.models.packages_upload_raw import PackagesUploadRaw # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.models.packages_upload_raw import PackagesUploadRaw class TestPackagesUploadRaw(unittest.TestCase): - """ PackagesUploadRaw unit test stubs """ + """PackagesUploadRaw unit test stubs""" def setUp(self): pass @@ -32,11 +30,9 @@ def tearDown(self): pass def testPackagesUploadRaw(self): - """ - Test PackagesUploadRaw - """ + """Test PackagesUploadRaw""" # FIXME: construct object with mandatory attributes with example values - #model = cloudsmith_api.models.packages_upload_raw.PackagesUploadRaw() + # model = cloudsmith_api.models.packages_upload_raw.PackagesUploadRaw() # noqa: E501 pass diff --git a/bindings/python/src/test/test_packages_upload_rpm.py b/bindings/python/src/test/test_packages_upload_rpm.py index 1811eb1d..ef7e2863 100644 --- a/bindings/python/src/test/test_packages_upload_rpm.py +++ b/bindings/python/src/test/test_packages_upload_rpm.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,17 +13,15 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.models.packages_upload_rpm import PackagesUploadRpm # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.models.packages_upload_rpm import PackagesUploadRpm class TestPackagesUploadRpm(unittest.TestCase): - """ PackagesUploadRpm unit test stubs """ + """PackagesUploadRpm unit test stubs""" def setUp(self): pass @@ -32,11 +30,9 @@ def tearDown(self): pass def testPackagesUploadRpm(self): - """ - Test PackagesUploadRpm - """ + """Test PackagesUploadRpm""" # FIXME: construct object with mandatory attributes with example values - #model = cloudsmith_api.models.packages_upload_rpm.PackagesUploadRpm() + # model = cloudsmith_api.models.packages_upload_rpm.PackagesUploadRpm() # noqa: E501 pass diff --git a/bindings/python/src/test/test_packages_upload_ruby.py b/bindings/python/src/test/test_packages_upload_ruby.py index d3d98906..0420c73f 100644 --- a/bindings/python/src/test/test_packages_upload_ruby.py +++ b/bindings/python/src/test/test_packages_upload_ruby.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,17 +13,15 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.models.packages_upload_ruby import PackagesUploadRuby # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.models.packages_upload_ruby import PackagesUploadRuby class TestPackagesUploadRuby(unittest.TestCase): - """ PackagesUploadRuby unit test stubs """ + """PackagesUploadRuby unit test stubs""" def setUp(self): pass @@ -32,11 +30,9 @@ def tearDown(self): pass def testPackagesUploadRuby(self): - """ - Test PackagesUploadRuby - """ + """Test PackagesUploadRuby""" # FIXME: construct object with mandatory attributes with example values - #model = cloudsmith_api.models.packages_upload_ruby.PackagesUploadRuby() + # model = cloudsmith_api.models.packages_upload_ruby.PackagesUploadRuby() # noqa: E501 pass diff --git a/bindings/python/src/test/test_packages_upload_terraform.py b/bindings/python/src/test/test_packages_upload_terraform.py index 96004e38..94a9c669 100644 --- a/bindings/python/src/test/test_packages_upload_terraform.py +++ b/bindings/python/src/test/test_packages_upload_terraform.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,17 +13,15 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.models.packages_upload_terraform import PackagesUploadTerraform # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.models.packages_upload_terraform import PackagesUploadTerraform class TestPackagesUploadTerraform(unittest.TestCase): - """ PackagesUploadTerraform unit test stubs """ + """PackagesUploadTerraform unit test stubs""" def setUp(self): pass @@ -32,11 +30,9 @@ def tearDown(self): pass def testPackagesUploadTerraform(self): - """ - Test PackagesUploadTerraform - """ + """Test PackagesUploadTerraform""" # FIXME: construct object with mandatory attributes with example values - #model = cloudsmith_api.models.packages_upload_terraform.PackagesUploadTerraform() + # model = cloudsmith_api.models.packages_upload_terraform.PackagesUploadTerraform() # noqa: E501 pass diff --git a/bindings/python/src/test/test_packages_upload_vagrant.py b/bindings/python/src/test/test_packages_upload_vagrant.py index d75b3326..de1d6727 100644 --- a/bindings/python/src/test/test_packages_upload_vagrant.py +++ b/bindings/python/src/test/test_packages_upload_vagrant.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,17 +13,15 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.models.packages_upload_vagrant import PackagesUploadVagrant # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.models.packages_upload_vagrant import PackagesUploadVagrant class TestPackagesUploadVagrant(unittest.TestCase): - """ PackagesUploadVagrant unit test stubs """ + """PackagesUploadVagrant unit test stubs""" def setUp(self): pass @@ -32,11 +30,9 @@ def tearDown(self): pass def testPackagesUploadVagrant(self): - """ - Test PackagesUploadVagrant - """ + """Test PackagesUploadVagrant""" # FIXME: construct object with mandatory attributes with example values - #model = cloudsmith_api.models.packages_upload_vagrant.PackagesUploadVagrant() + # model = cloudsmith_api.models.packages_upload_vagrant.PackagesUploadVagrant() # noqa: E501 pass diff --git a/bindings/python/src/test/test_packages_validateupload_alpine.py b/bindings/python/src/test/test_packages_validateupload_alpine.py index 1b923f9a..398c5220 100644 --- a/bindings/python/src/test/test_packages_validateupload_alpine.py +++ b/bindings/python/src/test/test_packages_validateupload_alpine.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,17 +13,15 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.models.packages_validateupload_alpine import PackagesValidateuploadAlpine # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.models.packages_validateupload_alpine import PackagesValidateuploadAlpine class TestPackagesValidateuploadAlpine(unittest.TestCase): - """ PackagesValidateuploadAlpine unit test stubs """ + """PackagesValidateuploadAlpine unit test stubs""" def setUp(self): pass @@ -32,11 +30,9 @@ def tearDown(self): pass def testPackagesValidateuploadAlpine(self): - """ - Test PackagesValidateuploadAlpine - """ + """Test PackagesValidateuploadAlpine""" # FIXME: construct object with mandatory attributes with example values - #model = cloudsmith_api.models.packages_validateupload_alpine.PackagesValidateuploadAlpine() + # model = cloudsmith_api.models.packages_validateupload_alpine.PackagesValidateuploadAlpine() # noqa: E501 pass diff --git a/bindings/python/src/test/test_packages_validateupload_cargo.py b/bindings/python/src/test/test_packages_validateupload_cargo.py index cf490154..6a42b01a 100644 --- a/bindings/python/src/test/test_packages_validateupload_cargo.py +++ b/bindings/python/src/test/test_packages_validateupload_cargo.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,17 +13,15 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.models.packages_validateupload_cargo import PackagesValidateuploadCargo # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.models.packages_validateupload_cargo import PackagesValidateuploadCargo class TestPackagesValidateuploadCargo(unittest.TestCase): - """ PackagesValidateuploadCargo unit test stubs """ + """PackagesValidateuploadCargo unit test stubs""" def setUp(self): pass @@ -32,11 +30,9 @@ def tearDown(self): pass def testPackagesValidateuploadCargo(self): - """ - Test PackagesValidateuploadCargo - """ + """Test PackagesValidateuploadCargo""" # FIXME: construct object with mandatory attributes with example values - #model = cloudsmith_api.models.packages_validateupload_cargo.PackagesValidateuploadCargo() + # model = cloudsmith_api.models.packages_validateupload_cargo.PackagesValidateuploadCargo() # noqa: E501 pass diff --git a/bindings/python/src/test/test_packages_validateupload_cocoapods.py b/bindings/python/src/test/test_packages_validateupload_cocoapods.py index 92426be0..6bc990fa 100644 --- a/bindings/python/src/test/test_packages_validateupload_cocoapods.py +++ b/bindings/python/src/test/test_packages_validateupload_cocoapods.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,17 +13,15 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.models.packages_validateupload_cocoapods import PackagesValidateuploadCocoapods # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.models.packages_validateupload_cocoapods import PackagesValidateuploadCocoapods class TestPackagesValidateuploadCocoapods(unittest.TestCase): - """ PackagesValidateuploadCocoapods unit test stubs """ + """PackagesValidateuploadCocoapods unit test stubs""" def setUp(self): pass @@ -32,11 +30,9 @@ def tearDown(self): pass def testPackagesValidateuploadCocoapods(self): - """ - Test PackagesValidateuploadCocoapods - """ + """Test PackagesValidateuploadCocoapods""" # FIXME: construct object with mandatory attributes with example values - #model = cloudsmith_api.models.packages_validateupload_cocoapods.PackagesValidateuploadCocoapods() + # model = cloudsmith_api.models.packages_validateupload_cocoapods.PackagesValidateuploadCocoapods() # noqa: E501 pass diff --git a/bindings/python/src/test/test_packages_validateupload_composer.py b/bindings/python/src/test/test_packages_validateupload_composer.py index 32a12da5..8d17050a 100644 --- a/bindings/python/src/test/test_packages_validateupload_composer.py +++ b/bindings/python/src/test/test_packages_validateupload_composer.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,17 +13,15 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.models.packages_validateupload_composer import PackagesValidateuploadComposer # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.models.packages_validateupload_composer import PackagesValidateuploadComposer class TestPackagesValidateuploadComposer(unittest.TestCase): - """ PackagesValidateuploadComposer unit test stubs """ + """PackagesValidateuploadComposer unit test stubs""" def setUp(self): pass @@ -32,11 +30,9 @@ def tearDown(self): pass def testPackagesValidateuploadComposer(self): - """ - Test PackagesValidateuploadComposer - """ + """Test PackagesValidateuploadComposer""" # FIXME: construct object with mandatory attributes with example values - #model = cloudsmith_api.models.packages_validateupload_composer.PackagesValidateuploadComposer() + # model = cloudsmith_api.models.packages_validateupload_composer.PackagesValidateuploadComposer() # noqa: E501 pass diff --git a/bindings/python/src/test/test_packages_validateupload_conan.py b/bindings/python/src/test/test_packages_validateupload_conan.py index 67daf17f..e459342b 100644 --- a/bindings/python/src/test/test_packages_validateupload_conan.py +++ b/bindings/python/src/test/test_packages_validateupload_conan.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,17 +13,15 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.models.packages_validateupload_conan import PackagesValidateuploadConan # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.models.packages_validateupload_conan import PackagesValidateuploadConan class TestPackagesValidateuploadConan(unittest.TestCase): - """ PackagesValidateuploadConan unit test stubs """ + """PackagesValidateuploadConan unit test stubs""" def setUp(self): pass @@ -32,11 +30,9 @@ def tearDown(self): pass def testPackagesValidateuploadConan(self): - """ - Test PackagesValidateuploadConan - """ + """Test PackagesValidateuploadConan""" # FIXME: construct object with mandatory attributes with example values - #model = cloudsmith_api.models.packages_validateupload_conan.PackagesValidateuploadConan() + # model = cloudsmith_api.models.packages_validateupload_conan.PackagesValidateuploadConan() # noqa: E501 pass diff --git a/bindings/python/src/test/test_packages_validateupload_conda.py b/bindings/python/src/test/test_packages_validateupload_conda.py index 9c186527..7690285c 100644 --- a/bindings/python/src/test/test_packages_validateupload_conda.py +++ b/bindings/python/src/test/test_packages_validateupload_conda.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,17 +13,15 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.models.packages_validateupload_conda import PackagesValidateuploadConda # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.models.packages_validateupload_conda import PackagesValidateuploadConda class TestPackagesValidateuploadConda(unittest.TestCase): - """ PackagesValidateuploadConda unit test stubs """ + """PackagesValidateuploadConda unit test stubs""" def setUp(self): pass @@ -32,11 +30,9 @@ def tearDown(self): pass def testPackagesValidateuploadConda(self): - """ - Test PackagesValidateuploadConda - """ + """Test PackagesValidateuploadConda""" # FIXME: construct object with mandatory attributes with example values - #model = cloudsmith_api.models.packages_validateupload_conda.PackagesValidateuploadConda() + # model = cloudsmith_api.models.packages_validateupload_conda.PackagesValidateuploadConda() # noqa: E501 pass diff --git a/bindings/python/src/test/test_packages_validateupload_cran.py b/bindings/python/src/test/test_packages_validateupload_cran.py index 14728e92..32b24901 100644 --- a/bindings/python/src/test/test_packages_validateupload_cran.py +++ b/bindings/python/src/test/test_packages_validateupload_cran.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,17 +13,15 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.models.packages_validateupload_cran import PackagesValidateuploadCran # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.models.packages_validateupload_cran import PackagesValidateuploadCran class TestPackagesValidateuploadCran(unittest.TestCase): - """ PackagesValidateuploadCran unit test stubs """ + """PackagesValidateuploadCran unit test stubs""" def setUp(self): pass @@ -32,11 +30,9 @@ def tearDown(self): pass def testPackagesValidateuploadCran(self): - """ - Test PackagesValidateuploadCran - """ + """Test PackagesValidateuploadCran""" # FIXME: construct object with mandatory attributes with example values - #model = cloudsmith_api.models.packages_validateupload_cran.PackagesValidateuploadCran() + # model = cloudsmith_api.models.packages_validateupload_cran.PackagesValidateuploadCran() # noqa: E501 pass diff --git a/bindings/python/src/test/test_packages_validateupload_dart.py b/bindings/python/src/test/test_packages_validateupload_dart.py index d26913e0..1f614687 100644 --- a/bindings/python/src/test/test_packages_validateupload_dart.py +++ b/bindings/python/src/test/test_packages_validateupload_dart.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,17 +13,15 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.models.packages_validateupload_dart import PackagesValidateuploadDart # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.models.packages_validateupload_dart import PackagesValidateuploadDart class TestPackagesValidateuploadDart(unittest.TestCase): - """ PackagesValidateuploadDart unit test stubs """ + """PackagesValidateuploadDart unit test stubs""" def setUp(self): pass @@ -32,11 +30,9 @@ def tearDown(self): pass def testPackagesValidateuploadDart(self): - """ - Test PackagesValidateuploadDart - """ + """Test PackagesValidateuploadDart""" # FIXME: construct object with mandatory attributes with example values - #model = cloudsmith_api.models.packages_validateupload_dart.PackagesValidateuploadDart() + # model = cloudsmith_api.models.packages_validateupload_dart.PackagesValidateuploadDart() # noqa: E501 pass diff --git a/bindings/python/src/test/test_packages_validateupload_deb.py b/bindings/python/src/test/test_packages_validateupload_deb.py index 74895078..4eece70a 100644 --- a/bindings/python/src/test/test_packages_validateupload_deb.py +++ b/bindings/python/src/test/test_packages_validateupload_deb.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,17 +13,15 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.models.packages_validateupload_deb import PackagesValidateuploadDeb # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.models.packages_validateupload_deb import PackagesValidateuploadDeb class TestPackagesValidateuploadDeb(unittest.TestCase): - """ PackagesValidateuploadDeb unit test stubs """ + """PackagesValidateuploadDeb unit test stubs""" def setUp(self): pass @@ -32,11 +30,9 @@ def tearDown(self): pass def testPackagesValidateuploadDeb(self): - """ - Test PackagesValidateuploadDeb - """ + """Test PackagesValidateuploadDeb""" # FIXME: construct object with mandatory attributes with example values - #model = cloudsmith_api.models.packages_validateupload_deb.PackagesValidateuploadDeb() + # model = cloudsmith_api.models.packages_validateupload_deb.PackagesValidateuploadDeb() # noqa: E501 pass diff --git a/bindings/python/src/test/test_packages_validateupload_docker.py b/bindings/python/src/test/test_packages_validateupload_docker.py index 821d9fb4..fcc33fc7 100644 --- a/bindings/python/src/test/test_packages_validateupload_docker.py +++ b/bindings/python/src/test/test_packages_validateupload_docker.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,17 +13,15 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.models.packages_validateupload_docker import PackagesValidateuploadDocker # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.models.packages_validateupload_docker import PackagesValidateuploadDocker class TestPackagesValidateuploadDocker(unittest.TestCase): - """ PackagesValidateuploadDocker unit test stubs """ + """PackagesValidateuploadDocker unit test stubs""" def setUp(self): pass @@ -32,11 +30,9 @@ def tearDown(self): pass def testPackagesValidateuploadDocker(self): - """ - Test PackagesValidateuploadDocker - """ + """Test PackagesValidateuploadDocker""" # FIXME: construct object with mandatory attributes with example values - #model = cloudsmith_api.models.packages_validateupload_docker.PackagesValidateuploadDocker() + # model = cloudsmith_api.models.packages_validateupload_docker.PackagesValidateuploadDocker() # noqa: E501 pass diff --git a/bindings/python/src/test/test_packages_validateupload_go.py b/bindings/python/src/test/test_packages_validateupload_go.py index 7a178ca2..4c591455 100644 --- a/bindings/python/src/test/test_packages_validateupload_go.py +++ b/bindings/python/src/test/test_packages_validateupload_go.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,17 +13,15 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.models.packages_validateupload_go import PackagesValidateuploadGo # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.models.packages_validateupload_go import PackagesValidateuploadGo class TestPackagesValidateuploadGo(unittest.TestCase): - """ PackagesValidateuploadGo unit test stubs """ + """PackagesValidateuploadGo unit test stubs""" def setUp(self): pass @@ -32,11 +30,9 @@ def tearDown(self): pass def testPackagesValidateuploadGo(self): - """ - Test PackagesValidateuploadGo - """ + """Test PackagesValidateuploadGo""" # FIXME: construct object with mandatory attributes with example values - #model = cloudsmith_api.models.packages_validateupload_go.PackagesValidateuploadGo() + # model = cloudsmith_api.models.packages_validateupload_go.PackagesValidateuploadGo() # noqa: E501 pass diff --git a/bindings/python/src/test/test_packages_validateupload_helm.py b/bindings/python/src/test/test_packages_validateupload_helm.py index 2cf83969..608dac0b 100644 --- a/bindings/python/src/test/test_packages_validateupload_helm.py +++ b/bindings/python/src/test/test_packages_validateupload_helm.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,17 +13,15 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.models.packages_validateupload_helm import PackagesValidateuploadHelm # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.models.packages_validateupload_helm import PackagesValidateuploadHelm class TestPackagesValidateuploadHelm(unittest.TestCase): - """ PackagesValidateuploadHelm unit test stubs """ + """PackagesValidateuploadHelm unit test stubs""" def setUp(self): pass @@ -32,11 +30,9 @@ def tearDown(self): pass def testPackagesValidateuploadHelm(self): - """ - Test PackagesValidateuploadHelm - """ + """Test PackagesValidateuploadHelm""" # FIXME: construct object with mandatory attributes with example values - #model = cloudsmith_api.models.packages_validateupload_helm.PackagesValidateuploadHelm() + # model = cloudsmith_api.models.packages_validateupload_helm.PackagesValidateuploadHelm() # noqa: E501 pass diff --git a/bindings/python/src/test/test_packages_validateupload_luarocks.py b/bindings/python/src/test/test_packages_validateupload_luarocks.py index 15f43957..28d80037 100644 --- a/bindings/python/src/test/test_packages_validateupload_luarocks.py +++ b/bindings/python/src/test/test_packages_validateupload_luarocks.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,17 +13,15 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.models.packages_validateupload_luarocks import PackagesValidateuploadLuarocks # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.models.packages_validateupload_luarocks import PackagesValidateuploadLuarocks class TestPackagesValidateuploadLuarocks(unittest.TestCase): - """ PackagesValidateuploadLuarocks unit test stubs """ + """PackagesValidateuploadLuarocks unit test stubs""" def setUp(self): pass @@ -32,11 +30,9 @@ def tearDown(self): pass def testPackagesValidateuploadLuarocks(self): - """ - Test PackagesValidateuploadLuarocks - """ + """Test PackagesValidateuploadLuarocks""" # FIXME: construct object with mandatory attributes with example values - #model = cloudsmith_api.models.packages_validateupload_luarocks.PackagesValidateuploadLuarocks() + # model = cloudsmith_api.models.packages_validateupload_luarocks.PackagesValidateuploadLuarocks() # noqa: E501 pass diff --git a/bindings/python/src/test/test_packages_validateupload_maven.py b/bindings/python/src/test/test_packages_validateupload_maven.py index ab5757bd..651044e7 100644 --- a/bindings/python/src/test/test_packages_validateupload_maven.py +++ b/bindings/python/src/test/test_packages_validateupload_maven.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,17 +13,15 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.models.packages_validateupload_maven import PackagesValidateuploadMaven # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.models.packages_validateupload_maven import PackagesValidateuploadMaven class TestPackagesValidateuploadMaven(unittest.TestCase): - """ PackagesValidateuploadMaven unit test stubs """ + """PackagesValidateuploadMaven unit test stubs""" def setUp(self): pass @@ -32,11 +30,9 @@ def tearDown(self): pass def testPackagesValidateuploadMaven(self): - """ - Test PackagesValidateuploadMaven - """ + """Test PackagesValidateuploadMaven""" # FIXME: construct object with mandatory attributes with example values - #model = cloudsmith_api.models.packages_validateupload_maven.PackagesValidateuploadMaven() + # model = cloudsmith_api.models.packages_validateupload_maven.PackagesValidateuploadMaven() # noqa: E501 pass diff --git a/bindings/python/src/test/test_packages_validateupload_npm.py b/bindings/python/src/test/test_packages_validateupload_npm.py index 00ff34e1..5df61d81 100644 --- a/bindings/python/src/test/test_packages_validateupload_npm.py +++ b/bindings/python/src/test/test_packages_validateupload_npm.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,17 +13,15 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.models.packages_validateupload_npm import PackagesValidateuploadNpm # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.models.packages_validateupload_npm import PackagesValidateuploadNpm class TestPackagesValidateuploadNpm(unittest.TestCase): - """ PackagesValidateuploadNpm unit test stubs """ + """PackagesValidateuploadNpm unit test stubs""" def setUp(self): pass @@ -32,11 +30,9 @@ def tearDown(self): pass def testPackagesValidateuploadNpm(self): - """ - Test PackagesValidateuploadNpm - """ + """Test PackagesValidateuploadNpm""" # FIXME: construct object with mandatory attributes with example values - #model = cloudsmith_api.models.packages_validateupload_npm.PackagesValidateuploadNpm() + # model = cloudsmith_api.models.packages_validateupload_npm.PackagesValidateuploadNpm() # noqa: E501 pass diff --git a/bindings/python/src/test/test_packages_validateupload_nuget.py b/bindings/python/src/test/test_packages_validateupload_nuget.py index 4196d471..a3919cf7 100644 --- a/bindings/python/src/test/test_packages_validateupload_nuget.py +++ b/bindings/python/src/test/test_packages_validateupload_nuget.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,17 +13,15 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.models.packages_validateupload_nuget import PackagesValidateuploadNuget # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.models.packages_validateupload_nuget import PackagesValidateuploadNuget class TestPackagesValidateuploadNuget(unittest.TestCase): - """ PackagesValidateuploadNuget unit test stubs """ + """PackagesValidateuploadNuget unit test stubs""" def setUp(self): pass @@ -32,11 +30,9 @@ def tearDown(self): pass def testPackagesValidateuploadNuget(self): - """ - Test PackagesValidateuploadNuget - """ + """Test PackagesValidateuploadNuget""" # FIXME: construct object with mandatory attributes with example values - #model = cloudsmith_api.models.packages_validateupload_nuget.PackagesValidateuploadNuget() + # model = cloudsmith_api.models.packages_validateupload_nuget.PackagesValidateuploadNuget() # noqa: E501 pass diff --git a/bindings/python/src/test/test_packages_validateupload_p2.py b/bindings/python/src/test/test_packages_validateupload_p2.py index 71061890..0df74a74 100644 --- a/bindings/python/src/test/test_packages_validateupload_p2.py +++ b/bindings/python/src/test/test_packages_validateupload_p2.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,17 +13,15 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.models.packages_validateupload_p2 import PackagesValidateuploadP2 # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.models.packages_validateupload_p2 import PackagesValidateuploadP2 class TestPackagesValidateuploadP2(unittest.TestCase): - """ PackagesValidateuploadP2 unit test stubs """ + """PackagesValidateuploadP2 unit test stubs""" def setUp(self): pass @@ -32,11 +30,9 @@ def tearDown(self): pass def testPackagesValidateuploadP2(self): - """ - Test PackagesValidateuploadP2 - """ + """Test PackagesValidateuploadP2""" # FIXME: construct object with mandatory attributes with example values - #model = cloudsmith_api.models.packages_validateupload_p2.PackagesValidateuploadP2() + # model = cloudsmith_api.models.packages_validateupload_p2.PackagesValidateuploadP2() # noqa: E501 pass diff --git a/bindings/python/src/test/test_packages_validateupload_python.py b/bindings/python/src/test/test_packages_validateupload_python.py index 82a6603b..c9d7152f 100644 --- a/bindings/python/src/test/test_packages_validateupload_python.py +++ b/bindings/python/src/test/test_packages_validateupload_python.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,17 +13,15 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.models.packages_validateupload_python import PackagesValidateuploadPython # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.models.packages_validateupload_python import PackagesValidateuploadPython class TestPackagesValidateuploadPython(unittest.TestCase): - """ PackagesValidateuploadPython unit test stubs """ + """PackagesValidateuploadPython unit test stubs""" def setUp(self): pass @@ -32,11 +30,9 @@ def tearDown(self): pass def testPackagesValidateuploadPython(self): - """ - Test PackagesValidateuploadPython - """ + """Test PackagesValidateuploadPython""" # FIXME: construct object with mandatory attributes with example values - #model = cloudsmith_api.models.packages_validateupload_python.PackagesValidateuploadPython() + # model = cloudsmith_api.models.packages_validateupload_python.PackagesValidateuploadPython() # noqa: E501 pass diff --git a/bindings/python/src/test/test_packages_validateupload_raw.py b/bindings/python/src/test/test_packages_validateupload_raw.py index 2b9f85f7..0b52f7ca 100644 --- a/bindings/python/src/test/test_packages_validateupload_raw.py +++ b/bindings/python/src/test/test_packages_validateupload_raw.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,17 +13,15 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.models.packages_validateupload_raw import PackagesValidateuploadRaw # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.models.packages_validateupload_raw import PackagesValidateuploadRaw class TestPackagesValidateuploadRaw(unittest.TestCase): - """ PackagesValidateuploadRaw unit test stubs """ + """PackagesValidateuploadRaw unit test stubs""" def setUp(self): pass @@ -32,11 +30,9 @@ def tearDown(self): pass def testPackagesValidateuploadRaw(self): - """ - Test PackagesValidateuploadRaw - """ + """Test PackagesValidateuploadRaw""" # FIXME: construct object with mandatory attributes with example values - #model = cloudsmith_api.models.packages_validateupload_raw.PackagesValidateuploadRaw() + # model = cloudsmith_api.models.packages_validateupload_raw.PackagesValidateuploadRaw() # noqa: E501 pass diff --git a/bindings/python/src/test/test_packages_validateupload_rpm.py b/bindings/python/src/test/test_packages_validateupload_rpm.py index a963b0d1..4b2d343b 100644 --- a/bindings/python/src/test/test_packages_validateupload_rpm.py +++ b/bindings/python/src/test/test_packages_validateupload_rpm.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,17 +13,15 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.models.packages_validateupload_rpm import PackagesValidateuploadRpm # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.models.packages_validateupload_rpm import PackagesValidateuploadRpm class TestPackagesValidateuploadRpm(unittest.TestCase): - """ PackagesValidateuploadRpm unit test stubs """ + """PackagesValidateuploadRpm unit test stubs""" def setUp(self): pass @@ -32,11 +30,9 @@ def tearDown(self): pass def testPackagesValidateuploadRpm(self): - """ - Test PackagesValidateuploadRpm - """ + """Test PackagesValidateuploadRpm""" # FIXME: construct object with mandatory attributes with example values - #model = cloudsmith_api.models.packages_validateupload_rpm.PackagesValidateuploadRpm() + # model = cloudsmith_api.models.packages_validateupload_rpm.PackagesValidateuploadRpm() # noqa: E501 pass diff --git a/bindings/python/src/test/test_packages_validateupload_ruby.py b/bindings/python/src/test/test_packages_validateupload_ruby.py index 65fd7c0b..8655f742 100644 --- a/bindings/python/src/test/test_packages_validateupload_ruby.py +++ b/bindings/python/src/test/test_packages_validateupload_ruby.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,17 +13,15 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.models.packages_validateupload_ruby import PackagesValidateuploadRuby # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.models.packages_validateupload_ruby import PackagesValidateuploadRuby class TestPackagesValidateuploadRuby(unittest.TestCase): - """ PackagesValidateuploadRuby unit test stubs """ + """PackagesValidateuploadRuby unit test stubs""" def setUp(self): pass @@ -32,11 +30,9 @@ def tearDown(self): pass def testPackagesValidateuploadRuby(self): - """ - Test PackagesValidateuploadRuby - """ + """Test PackagesValidateuploadRuby""" # FIXME: construct object with mandatory attributes with example values - #model = cloudsmith_api.models.packages_validateupload_ruby.PackagesValidateuploadRuby() + # model = cloudsmith_api.models.packages_validateupload_ruby.PackagesValidateuploadRuby() # noqa: E501 pass diff --git a/bindings/python/src/test/test_packages_validateupload_terraform.py b/bindings/python/src/test/test_packages_validateupload_terraform.py index 2fd05d52..85378878 100644 --- a/bindings/python/src/test/test_packages_validateupload_terraform.py +++ b/bindings/python/src/test/test_packages_validateupload_terraform.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,17 +13,15 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.models.packages_validateupload_terraform import PackagesValidateuploadTerraform # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.models.packages_validateupload_terraform import PackagesValidateuploadTerraform class TestPackagesValidateuploadTerraform(unittest.TestCase): - """ PackagesValidateuploadTerraform unit test stubs """ + """PackagesValidateuploadTerraform unit test stubs""" def setUp(self): pass @@ -32,11 +30,9 @@ def tearDown(self): pass def testPackagesValidateuploadTerraform(self): - """ - Test PackagesValidateuploadTerraform - """ + """Test PackagesValidateuploadTerraform""" # FIXME: construct object with mandatory attributes with example values - #model = cloudsmith_api.models.packages_validateupload_terraform.PackagesValidateuploadTerraform() + # model = cloudsmith_api.models.packages_validateupload_terraform.PackagesValidateuploadTerraform() # noqa: E501 pass diff --git a/bindings/python/src/test/test_packages_validateupload_vagrant.py b/bindings/python/src/test/test_packages_validateupload_vagrant.py index 81a85284..632ad2b9 100644 --- a/bindings/python/src/test/test_packages_validateupload_vagrant.py +++ b/bindings/python/src/test/test_packages_validateupload_vagrant.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,17 +13,15 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.models.packages_validateupload_vagrant import PackagesValidateuploadVagrant # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.models.packages_validateupload_vagrant import PackagesValidateuploadVagrant class TestPackagesValidateuploadVagrant(unittest.TestCase): - """ PackagesValidateuploadVagrant unit test stubs """ + """PackagesValidateuploadVagrant unit test stubs""" def setUp(self): pass @@ -32,11 +30,9 @@ def tearDown(self): pass def testPackagesValidateuploadVagrant(self): - """ - Test PackagesValidateuploadVagrant - """ + """Test PackagesValidateuploadVagrant""" # FIXME: construct object with mandatory attributes with example values - #model = cloudsmith_api.models.packages_validateupload_vagrant.PackagesValidateuploadVagrant() + # model = cloudsmith_api.models.packages_validateupload_vagrant.PackagesValidateuploadVagrant() # noqa: E501 pass diff --git a/bindings/python/src/test/test_packagesownerrepo_architectures.py b/bindings/python/src/test/test_packagesownerrepo_architectures.py index 121e47b5..f6f84199 100644 --- a/bindings/python/src/test/test_packagesownerrepo_architectures.py +++ b/bindings/python/src/test/test_packagesownerrepo_architectures.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,17 +13,15 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.models.packagesownerrepo_architectures import PackagesownerrepoArchitectures # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.models.packagesownerrepo_architectures import PackagesownerrepoArchitectures class TestPackagesownerrepoArchitectures(unittest.TestCase): - """ PackagesownerrepoArchitectures unit test stubs """ + """PackagesownerrepoArchitectures unit test stubs""" def setUp(self): pass @@ -32,11 +30,9 @@ def tearDown(self): pass def testPackagesownerrepoArchitectures(self): - """ - Test PackagesownerrepoArchitectures - """ + """Test PackagesownerrepoArchitectures""" # FIXME: construct object with mandatory attributes with example values - #model = cloudsmith_api.models.packagesownerrepo_architectures.PackagesownerrepoArchitectures() + # model = cloudsmith_api.models.packagesownerrepo_architectures.PackagesownerrepoArchitectures() # noqa: E501 pass diff --git a/bindings/python/src/test/test_packagesownerrepo_files.py b/bindings/python/src/test/test_packagesownerrepo_files.py index 1b41bcf6..82d6969d 100644 --- a/bindings/python/src/test/test_packagesownerrepo_files.py +++ b/bindings/python/src/test/test_packagesownerrepo_files.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,17 +13,15 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.models.packagesownerrepo_files import PackagesownerrepoFiles # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.models.packagesownerrepo_files import PackagesownerrepoFiles class TestPackagesownerrepoFiles(unittest.TestCase): - """ PackagesownerrepoFiles unit test stubs """ + """PackagesownerrepoFiles unit test stubs""" def setUp(self): pass @@ -32,11 +30,9 @@ def tearDown(self): pass def testPackagesownerrepoFiles(self): - """ - Test PackagesownerrepoFiles - """ + """Test PackagesownerrepoFiles""" # FIXME: construct object with mandatory attributes with example values - #model = cloudsmith_api.models.packagesownerrepo_files.PackagesownerrepoFiles() + # model = cloudsmith_api.models.packagesownerrepo_files.PackagesownerrepoFiles() # noqa: E501 pass diff --git a/bindings/python/src/test/test_quota.py b/bindings/python/src/test/test_quota.py index 5a294db7..cd3ca0e9 100644 --- a/bindings/python/src/test/test_quota.py +++ b/bindings/python/src/test/test_quota.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,17 +13,15 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.models.quota import Quota # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.models.quota import Quota class TestQuota(unittest.TestCase): - """ Quota unit test stubs """ + """Quota unit test stubs""" def setUp(self): pass @@ -32,11 +30,9 @@ def tearDown(self): pass def testQuota(self): - """ - Test Quota - """ + """Test Quota""" # FIXME: construct object with mandatory attributes with example values - #model = cloudsmith_api.models.quota.Quota() + # model = cloudsmith_api.models.quota.Quota() # noqa: E501 pass diff --git a/bindings/python/src/test/test_quota_api.py b/bindings/python/src/test/test_quota_api.py index 709b92fa..7b75b831 100644 --- a/bindings/python/src/test/test_quota_api.py +++ b/bindings/python/src/test/test_quota_api.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,53 +13,47 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.api.quota_api import QuotaApi # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.apis.quota_api import QuotaApi class TestQuotaApi(unittest.TestCase): - """ QuotaApi unit test stubs """ + """QuotaApi unit test stubs""" def setUp(self): - self.api = cloudsmith_api.apis.quota_api.QuotaApi() + self.api = cloudsmith_api.api.quota_api.QuotaApi() # noqa: E501 def tearDown(self): pass def test_quota_history_read(self): - """ - Test case for quota_history_read + """Test case for quota_history_read - Quota history for a given namespace. + Quota history for a given namespace. # noqa: E501 """ pass def test_quota_oss_history_read(self): - """ - Test case for quota_oss_history_read + """Test case for quota_oss_history_read - Open-source Quota history for a given namespace. + Open-source Quota history for a given namespace. # noqa: E501 """ pass def test_quota_oss_read(self): - """ - Test case for quota_oss_read + """Test case for quota_oss_read - Open-source Quota usage for a given namespace. + Open-source Quota usage for a given namespace. # noqa: E501 """ pass def test_quota_read(self): - """ - Test case for quota_read + """Test case for quota_read - Quota usage for a given namespace. + Quota usage for a given namespace. # noqa: E501 """ pass diff --git a/bindings/python/src/test/test_quota_history.py b/bindings/python/src/test/test_quota_history.py index e8fd8da2..89b849a2 100644 --- a/bindings/python/src/test/test_quota_history.py +++ b/bindings/python/src/test/test_quota_history.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,17 +13,15 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.models.quota_history import QuotaHistory # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.models.quota_history import QuotaHistory class TestQuotaHistory(unittest.TestCase): - """ QuotaHistory unit test stubs """ + """QuotaHistory unit test stubs""" def setUp(self): pass @@ -32,11 +30,9 @@ def tearDown(self): pass def testQuotaHistory(self): - """ - Test QuotaHistory - """ + """Test QuotaHistory""" # FIXME: construct object with mandatory attributes with example values - #model = cloudsmith_api.models.quota_history.QuotaHistory() + # model = cloudsmith_api.models.quota_history.QuotaHistory() # noqa: E501 pass diff --git a/bindings/python/src/test/test_quota_history_history.py b/bindings/python/src/test/test_quota_history_history.py index 8508bff6..d785a080 100644 --- a/bindings/python/src/test/test_quota_history_history.py +++ b/bindings/python/src/test/test_quota_history_history.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,17 +13,15 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.models.quota_history_history import QuotaHistoryHistory # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.models.quota_history_history import QuotaHistoryHistory class TestQuotaHistoryHistory(unittest.TestCase): - """ QuotaHistoryHistory unit test stubs """ + """QuotaHistoryHistory unit test stubs""" def setUp(self): pass @@ -32,11 +30,9 @@ def tearDown(self): pass def testQuotaHistoryHistory(self): - """ - Test QuotaHistoryHistory - """ + """Test QuotaHistoryHistory""" # FIXME: construct object with mandatory attributes with example values - #model = cloudsmith_api.models.quota_history_history.QuotaHistoryHistory() + # model = cloudsmith_api.models.quota_history_history.QuotaHistoryHistory() # noqa: E501 pass diff --git a/bindings/python/src/test/test_rates_api.py b/bindings/python/src/test/test_rates_api.py index 790bc434..281bc8bf 100644 --- a/bindings/python/src/test/test_rates_api.py +++ b/bindings/python/src/test/test_rates_api.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,29 +13,26 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.api.rates_api import RatesApi # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.apis.rates_api import RatesApi class TestRatesApi(unittest.TestCase): - """ RatesApi unit test stubs """ + """RatesApi unit test stubs""" def setUp(self): - self.api = cloudsmith_api.apis.rates_api.RatesApi() + self.api = cloudsmith_api.api.rates_api.RatesApi() # noqa: E501 def tearDown(self): pass def test_rates_limits_list(self): - """ - Test case for rates_limits_list + """Test case for rates_limits_list - Endpoint to check rate limits for current user. + Endpoint to check rate limits for current user. # noqa: E501 """ pass diff --git a/bindings/python/src/test/test_raw_package_upload.py b/bindings/python/src/test/test_raw_package_upload.py index 3cb65a36..e07888a5 100644 --- a/bindings/python/src/test/test_raw_package_upload.py +++ b/bindings/python/src/test/test_raw_package_upload.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,17 +13,15 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.models.raw_package_upload import RawPackageUpload # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.models.raw_package_upload import RawPackageUpload class TestRawPackageUpload(unittest.TestCase): - """ RawPackageUpload unit test stubs """ + """RawPackageUpload unit test stubs""" def setUp(self): pass @@ -32,11 +30,9 @@ def tearDown(self): pass def testRawPackageUpload(self): - """ - Test RawPackageUpload - """ + """Test RawPackageUpload""" # FIXME: construct object with mandatory attributes with example values - #model = cloudsmith_api.models.raw_package_upload.RawPackageUpload() + # model = cloudsmith_api.models.raw_package_upload.RawPackageUpload() # noqa: E501 pass diff --git a/bindings/python/src/test/test_repos_api.py b/bindings/python/src/test/test_repos_api.py index d26e4e49..765a0b78 100644 --- a/bindings/python/src/test/test_repos_api.py +++ b/bindings/python/src/test/test_repos_api.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,69 +13,61 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.api.repos_api import ReposApi # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.apis.repos_api import ReposApi class TestReposApi(unittest.TestCase): - """ ReposApi unit test stubs """ + """ReposApi unit test stubs""" def setUp(self): - self.api = cloudsmith_api.apis.repos_api.ReposApi() + self.api = cloudsmith_api.api.repos_api.ReposApi() # noqa: E501 def tearDown(self): pass def test_repos_all_list(self): - """ - Test case for repos_all_list + """Test case for repos_all_list - Get a list of all repositories associated with current user. + Get a list of all repositories associated with current user. # noqa: E501 """ pass def test_repos_create(self): - """ - Test case for repos_create + """Test case for repos_create - Create a new repository in a given namespace. + Create a new repository in a given namespace. # noqa: E501 """ pass def test_repos_delete(self): - """ - Test case for repos_delete + """Test case for repos_delete - Delete a repository in a given namespace. + Delete a repository in a given namespace. # noqa: E501 """ pass def test_repos_list(self): - """ - Test case for repos_list + """Test case for repos_list - Get a list of all repositories within a namespace. + Get a list of all repositories within a namespace. # noqa: E501 """ pass def test_repos_partial_update(self): - """ - Test case for repos_partial_update + """Test case for repos_partial_update - Update details about a repository in a given namespace. + Update details about a repository in a given namespace. # noqa: E501 """ pass def test_repos_read(self): - """ - Test case for repos_read + """Test case for repos_read - Get a specific repository. + Get a specific repository. # noqa: E501 """ pass diff --git a/bindings/python/src/test/test_repos_create.py b/bindings/python/src/test/test_repos_create.py index dabde3c0..4b8a85c5 100644 --- a/bindings/python/src/test/test_repos_create.py +++ b/bindings/python/src/test/test_repos_create.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,17 +13,15 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.models.repos_create import ReposCreate # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.models.repos_create import ReposCreate class TestReposCreate(unittest.TestCase): - """ ReposCreate unit test stubs """ + """ReposCreate unit test stubs""" def setUp(self): pass @@ -32,11 +30,9 @@ def tearDown(self): pass def testReposCreate(self): - """ - Test ReposCreate - """ + """Test ReposCreate""" # FIXME: construct object with mandatory attributes with example values - #model = cloudsmith_api.models.repos_create.ReposCreate() + # model = cloudsmith_api.models.repos_create.ReposCreate() # noqa: E501 pass diff --git a/bindings/python/src/test/test_repos_gpg_keys.py b/bindings/python/src/test/test_repos_gpg_keys.py index 4d435854..8405052b 100644 --- a/bindings/python/src/test/test_repos_gpg_keys.py +++ b/bindings/python/src/test/test_repos_gpg_keys.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,17 +13,15 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.models.repos_gpg_keys import ReposGpgKeys # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.models.repos_gpg_keys import ReposGpgKeys class TestReposGpgKeys(unittest.TestCase): - """ ReposGpgKeys unit test stubs """ + """ReposGpgKeys unit test stubs""" def setUp(self): pass @@ -32,11 +30,9 @@ def tearDown(self): pass def testReposGpgKeys(self): - """ - Test ReposGpgKeys - """ + """Test ReposGpgKeys""" # FIXME: construct object with mandatory attributes with example values - #model = cloudsmith_api.models.repos_gpg_keys.ReposGpgKeys() + # model = cloudsmith_api.models.repos_gpg_keys.ReposGpgKeys() # noqa: E501 pass diff --git a/bindings/python/src/test/test_repos_partial_update.py b/bindings/python/src/test/test_repos_partial_update.py index e7c6f804..767f2145 100644 --- a/bindings/python/src/test/test_repos_partial_update.py +++ b/bindings/python/src/test/test_repos_partial_update.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,17 +13,15 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.models.repos_partial_update import ReposPartialUpdate # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.models.repos_partial_update import ReposPartialUpdate class TestReposPartialUpdate(unittest.TestCase): - """ ReposPartialUpdate unit test stubs """ + """ReposPartialUpdate unit test stubs""" def setUp(self): pass @@ -32,11 +30,9 @@ def tearDown(self): pass def testReposPartialUpdate(self): - """ - Test ReposPartialUpdate - """ + """Test ReposPartialUpdate""" # FIXME: construct object with mandatory attributes with example values - #model = cloudsmith_api.models.repos_partial_update.ReposPartialUpdate() + # model = cloudsmith_api.models.repos_partial_update.ReposPartialUpdate() # noqa: E501 pass diff --git a/bindings/python/src/test/test_repository.py b/bindings/python/src/test/test_repository.py index 36f3499b..72f29b87 100644 --- a/bindings/python/src/test/test_repository.py +++ b/bindings/python/src/test/test_repository.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,17 +13,15 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.models.repository import Repository # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.models.repository import Repository class TestRepository(unittest.TestCase): - """ Repository unit test stubs """ + """Repository unit test stubs""" def setUp(self): pass @@ -32,11 +30,9 @@ def tearDown(self): pass def testRepository(self): - """ - Test Repository - """ + """Test Repository""" # FIXME: construct object with mandatory attributes with example values - #model = cloudsmith_api.models.repository.Repository() + # model = cloudsmith_api.models.repository.Repository() # noqa: E501 pass diff --git a/bindings/python/src/test/test_repository_token.py b/bindings/python/src/test/test_repository_token.py index fbf7e84f..48cc1b44 100644 --- a/bindings/python/src/test/test_repository_token.py +++ b/bindings/python/src/test/test_repository_token.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,17 +13,15 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.models.repository_token import RepositoryToken # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.models.repository_token import RepositoryToken class TestRepositoryToken(unittest.TestCase): - """ RepositoryToken unit test stubs """ + """RepositoryToken unit test stubs""" def setUp(self): pass @@ -32,11 +30,9 @@ def tearDown(self): pass def testRepositoryToken(self): - """ - Test RepositoryToken - """ + """Test RepositoryToken""" # FIXME: construct object with mandatory attributes with example values - #model = cloudsmith_api.models.repository_token.RepositoryToken() + # model = cloudsmith_api.models.repository_token.RepositoryToken() # noqa: E501 pass diff --git a/bindings/python/src/test/test_repository_token_refresh.py b/bindings/python/src/test/test_repository_token_refresh.py index ff149879..2252d062 100644 --- a/bindings/python/src/test/test_repository_token_refresh.py +++ b/bindings/python/src/test/test_repository_token_refresh.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,17 +13,15 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.models.repository_token_refresh import RepositoryTokenRefresh # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.models.repository_token_refresh import RepositoryTokenRefresh class TestRepositoryTokenRefresh(unittest.TestCase): - """ RepositoryTokenRefresh unit test stubs """ + """RepositoryTokenRefresh unit test stubs""" def setUp(self): pass @@ -32,11 +30,9 @@ def tearDown(self): pass def testRepositoryTokenRefresh(self): - """ - Test RepositoryTokenRefresh - """ + """Test RepositoryTokenRefresh""" # FIXME: construct object with mandatory attributes with example values - #model = cloudsmith_api.models.repository_token_refresh.RepositoryTokenRefresh() + # model = cloudsmith_api.models.repository_token_refresh.RepositoryTokenRefresh() # noqa: E501 pass diff --git a/bindings/python/src/test/test_repository_token_sync.py b/bindings/python/src/test/test_repository_token_sync.py index fec1d183..e00968b2 100644 --- a/bindings/python/src/test/test_repository_token_sync.py +++ b/bindings/python/src/test/test_repository_token_sync.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,17 +13,15 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.models.repository_token_sync import RepositoryTokenSync # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.models.repository_token_sync import RepositoryTokenSync class TestRepositoryTokenSync(unittest.TestCase): - """ RepositoryTokenSync unit test stubs """ + """RepositoryTokenSync unit test stubs""" def setUp(self): pass @@ -32,11 +30,9 @@ def tearDown(self): pass def testRepositoryTokenSync(self): - """ - Test RepositoryTokenSync - """ + """Test RepositoryTokenSync""" # FIXME: construct object with mandatory attributes with example values - #model = cloudsmith_api.models.repository_token_sync.RepositoryTokenSync() + # model = cloudsmith_api.models.repository_token_sync.RepositoryTokenSync() # noqa: E501 pass diff --git a/bindings/python/src/test/test_repository_token_sync_tokens.py b/bindings/python/src/test/test_repository_token_sync_tokens.py index e2849753..abdbebf4 100644 --- a/bindings/python/src/test/test_repository_token_sync_tokens.py +++ b/bindings/python/src/test/test_repository_token_sync_tokens.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,17 +13,15 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.models.repository_token_sync_tokens import RepositoryTokenSyncTokens # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.models.repository_token_sync_tokens import RepositoryTokenSyncTokens class TestRepositoryTokenSyncTokens(unittest.TestCase): - """ RepositoryTokenSyncTokens unit test stubs """ + """RepositoryTokenSyncTokens unit test stubs""" def setUp(self): pass @@ -32,11 +30,9 @@ def tearDown(self): pass def testRepositoryTokenSyncTokens(self): - """ - Test RepositoryTokenSyncTokens - """ + """Test RepositoryTokenSyncTokens""" # FIXME: construct object with mandatory attributes with example values - #model = cloudsmith_api.models.repository_token_sync_tokens.RepositoryTokenSyncTokens() + # model = cloudsmith_api.models.repository_token_sync_tokens.RepositoryTokenSyncTokens() # noqa: E501 pass diff --git a/bindings/python/src/test/test_repository_webhook.py b/bindings/python/src/test/test_repository_webhook.py index afbc0b6b..aec58708 100644 --- a/bindings/python/src/test/test_repository_webhook.py +++ b/bindings/python/src/test/test_repository_webhook.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,17 +13,15 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.models.repository_webhook import RepositoryWebhook # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.models.repository_webhook import RepositoryWebhook class TestRepositoryWebhook(unittest.TestCase): - """ RepositoryWebhook unit test stubs """ + """RepositoryWebhook unit test stubs""" def setUp(self): pass @@ -32,11 +30,9 @@ def tearDown(self): pass def testRepositoryWebhook(self): - """ - Test RepositoryWebhook - """ + """Test RepositoryWebhook""" # FIXME: construct object with mandatory attributes with example values - #model = cloudsmith_api.models.repository_webhook.RepositoryWebhook() + # model = cloudsmith_api.models.repository_webhook.RepositoryWebhook() # noqa: E501 pass diff --git a/bindings/python/src/test/test_resources_rate_check.py b/bindings/python/src/test/test_resources_rate_check.py index 9d735f84..30372bf1 100644 --- a/bindings/python/src/test/test_resources_rate_check.py +++ b/bindings/python/src/test/test_resources_rate_check.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,17 +13,15 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.models.resources_rate_check import ResourcesRateCheck # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.models.resources_rate_check import ResourcesRateCheck class TestResourcesRateCheck(unittest.TestCase): - """ ResourcesRateCheck unit test stubs """ + """ResourcesRateCheck unit test stubs""" def setUp(self): pass @@ -32,11 +30,9 @@ def tearDown(self): pass def testResourcesRateCheck(self): - """ - Test ResourcesRateCheck - """ + """Test ResourcesRateCheck""" # FIXME: construct object with mandatory attributes with example values - #model = cloudsmith_api.models.resources_rate_check.ResourcesRateCheck() + # model = cloudsmith_api.models.resources_rate_check.ResourcesRateCheck() # noqa: E501 pass diff --git a/bindings/python/src/test/test_status.py b/bindings/python/src/test/test_status.py index d18308ec..17428131 100644 --- a/bindings/python/src/test/test_status.py +++ b/bindings/python/src/test/test_status.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,17 +13,15 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.models.status import Status # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.models.status import Status class TestStatus(unittest.TestCase): - """ Status unit test stubs """ + """Status unit test stubs""" def setUp(self): pass @@ -32,11 +30,9 @@ def tearDown(self): pass def testStatus(self): - """ - Test Status - """ + """Test Status""" # FIXME: construct object with mandatory attributes with example values - #model = cloudsmith_api.models.status.Status() + # model = cloudsmith_api.models.status.Status() # noqa: E501 pass diff --git a/bindings/python/src/test/test_status_api.py b/bindings/python/src/test/test_status_api.py index 34533e01..06692c33 100644 --- a/bindings/python/src/test/test_status_api.py +++ b/bindings/python/src/test/test_status_api.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,29 +13,26 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.api.status_api import StatusApi # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.apis.status_api import StatusApi class TestStatusApi(unittest.TestCase): - """ StatusApi unit test stubs """ + """StatusApi unit test stubs""" def setUp(self): - self.api = cloudsmith_api.apis.status_api.StatusApi() + self.api = cloudsmith_api.api.status_api.StatusApi() # noqa: E501 def tearDown(self): pass def test_status_check_basic(self): - """ - Test case for status_check_basic + """Test case for status_check_basic - Endpoint to check basic API connectivity. + Endpoint to check basic API connectivity. # noqa: E501 """ pass diff --git a/bindings/python/src/test/test_status_basic.py b/bindings/python/src/test/test_status_basic.py index b874df30..b46b2af6 100644 --- a/bindings/python/src/test/test_status_basic.py +++ b/bindings/python/src/test/test_status_basic.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,17 +13,15 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.models.status_basic import StatusBasic # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.models.status_basic import StatusBasic class TestStatusBasic(unittest.TestCase): - """ StatusBasic unit test stubs """ + """StatusBasic unit test stubs""" def setUp(self): pass @@ -32,11 +30,9 @@ def tearDown(self): pass def testStatusBasic(self): - """ - Test StatusBasic - """ + """Test StatusBasic""" # FIXME: construct object with mandatory attributes with example values - #model = cloudsmith_api.models.status_basic.StatusBasic() + # model = cloudsmith_api.models.status_basic.StatusBasic() # noqa: E501 pass diff --git a/bindings/python/src/test/test_storage_region.py b/bindings/python/src/test/test_storage_region.py index 87067874..9f673b03 100644 --- a/bindings/python/src/test/test_storage_region.py +++ b/bindings/python/src/test/test_storage_region.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,17 +13,15 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.models.storage_region import StorageRegion # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.models.storage_region import StorageRegion class TestStorageRegion(unittest.TestCase): - """ StorageRegion unit test stubs """ + """StorageRegion unit test stubs""" def setUp(self): pass @@ -32,11 +30,9 @@ def tearDown(self): pass def testStorageRegion(self): - """ - Test StorageRegion - """ + """Test StorageRegion""" # FIXME: construct object with mandatory attributes with example values - #model = cloudsmith_api.models.storage_region.StorageRegion() + # model = cloudsmith_api.models.storage_region.StorageRegion() # noqa: E501 pass diff --git a/bindings/python/src/test/test_storageregions_api.py b/bindings/python/src/test/test_storage_regions_api.py similarity index 50% rename from bindings/python/src/test/test_storageregions_api.py rename to bindings/python/src/test/test_storage_regions_api.py index 5d260952..91b7647c 100644 --- a/bindings/python/src/test/test_storageregions_api.py +++ b/bindings/python/src/test/test_storage_regions_api.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,37 +13,33 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.api.storage_regions_api import StorageRegionsApi # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.apis.storageregions_api import StorageregionsApi -class TestStorageregionsApi(unittest.TestCase): - """ StorageregionsApi unit test stubs """ +class TestStorageRegionsApi(unittest.TestCase): + """StorageRegionsApi unit test stubs""" def setUp(self): - self.api = cloudsmith_api.apis.storageregions_api.StorageregionsApi() + self.api = cloudsmith_api.api.storage_regions_api.StorageRegionsApi() # noqa: E501 def tearDown(self): pass def test_storage_regions_list(self): - """ - Test case for storage_regions_list + """Test case for storage_regions_list - Get a list of all available storage regions. + Get a list of all available storage regions. # noqa: E501 """ pass def test_storage_regions_read(self): - """ - Test case for storage_regions_read + """Test case for storage_regions_read - Get a specific storage region. + Get a specific storage region. # noqa: E501 """ pass diff --git a/bindings/python/src/test/test_user_api.py b/bindings/python/src/test/test_user_api.py index 45f41c08..0c5f4794 100644 --- a/bindings/python/src/test/test_user_api.py +++ b/bindings/python/src/test/test_user_api.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,37 +13,33 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.api.user_api import UserApi # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.apis.user_api import UserApi class TestUserApi(unittest.TestCase): - """ UserApi unit test stubs """ + """UserApi unit test stubs""" def setUp(self): - self.api = cloudsmith_api.apis.user_api.UserApi() + self.api = cloudsmith_api.api.user_api.UserApi() # noqa: E501 def tearDown(self): pass def test_user_self(self): - """ - Test case for user_self + """Test case for user_self - Provide a brief for the current user (if any). + Provide a brief for the current user (if any). # noqa: E501 """ pass def test_user_token_create(self): - """ - Test case for user_token_create + """Test case for user_token_create - Retrieve the API key/token for the authenticated user. + Retrieve the API key/token for the authenticated user. # noqa: E501 """ pass diff --git a/bindings/python/src/test/test_user_auth_token.py b/bindings/python/src/test/test_user_auth_token.py index 23591dfe..e1247f5e 100644 --- a/bindings/python/src/test/test_user_auth_token.py +++ b/bindings/python/src/test/test_user_auth_token.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,17 +13,15 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.models.user_auth_token import UserAuthToken # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.models.user_auth_token import UserAuthToken class TestUserAuthToken(unittest.TestCase): - """ UserAuthToken unit test stubs """ + """UserAuthToken unit test stubs""" def setUp(self): pass @@ -32,11 +30,9 @@ def tearDown(self): pass def testUserAuthToken(self): - """ - Test UserAuthToken - """ + """Test UserAuthToken""" # FIXME: construct object with mandatory attributes with example values - #model = cloudsmith_api.models.user_auth_token.UserAuthToken() + # model = cloudsmith_api.models.user_auth_token.UserAuthToken() # noqa: E501 pass diff --git a/bindings/python/src/test/test_user_brief.py b/bindings/python/src/test/test_user_brief.py index 1063d7dc..37a139d4 100644 --- a/bindings/python/src/test/test_user_brief.py +++ b/bindings/python/src/test/test_user_brief.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,17 +13,15 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.models.user_brief import UserBrief # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.models.user_brief import UserBrief class TestUserBrief(unittest.TestCase): - """ UserBrief unit test stubs """ + """UserBrief unit test stubs""" def setUp(self): pass @@ -32,11 +30,9 @@ def tearDown(self): pass def testUserBrief(self): - """ - Test UserBrief - """ + """Test UserBrief""" # FIXME: construct object with mandatory attributes with example values - #model = cloudsmith_api.models.user_brief.UserBrief() + # model = cloudsmith_api.models.user_brief.UserBrief() # noqa: E501 pass diff --git a/bindings/python/src/test/test_user_profile.py b/bindings/python/src/test/test_user_profile.py index 89ab624d..02b89d0e 100644 --- a/bindings/python/src/test/test_user_profile.py +++ b/bindings/python/src/test/test_user_profile.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,17 +13,15 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.models.user_profile import UserProfile # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.models.user_profile import UserProfile class TestUserProfile(unittest.TestCase): - """ UserProfile unit test stubs """ + """UserProfile unit test stubs""" def setUp(self): pass @@ -32,11 +30,9 @@ def tearDown(self): pass def testUserProfile(self): - """ - Test UserProfile - """ + """Test UserProfile""" # FIXME: construct object with mandatory attributes with example values - #model = cloudsmith_api.models.user_profile.UserProfile() + # model = cloudsmith_api.models.user_profile.UserProfile() # noqa: E501 pass diff --git a/bindings/python/src/test/test_user_token_create.py b/bindings/python/src/test/test_user_token_create.py index 4bb75cb2..ae65f1c4 100644 --- a/bindings/python/src/test/test_user_token_create.py +++ b/bindings/python/src/test/test_user_token_create.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,17 +13,15 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.models.user_token_create import UserTokenCreate # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.models.user_token_create import UserTokenCreate class TestUserTokenCreate(unittest.TestCase): - """ UserTokenCreate unit test stubs """ + """UserTokenCreate unit test stubs""" def setUp(self): pass @@ -32,11 +30,9 @@ def tearDown(self): pass def testUserTokenCreate(self): - """ - Test UserTokenCreate - """ + """Test UserTokenCreate""" # FIXME: construct object with mandatory attributes with example values - #model = cloudsmith_api.models.user_token_create.UserTokenCreate() + # model = cloudsmith_api.models.user_token_create.UserTokenCreate() # noqa: E501 pass diff --git a/bindings/python/src/test/test_users_api.py b/bindings/python/src/test/test_users_api.py index 64608e9e..5f34cfc3 100644 --- a/bindings/python/src/test/test_users_api.py +++ b/bindings/python/src/test/test_users_api.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,29 +13,26 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.api.users_api import UsersApi # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.apis.users_api import UsersApi class TestUsersApi(unittest.TestCase): - """ UsersApi unit test stubs """ + """UsersApi unit test stubs""" def setUp(self): - self.api = cloudsmith_api.apis.users_api.UsersApi() + self.api = cloudsmith_api.api.users_api.UsersApi() # noqa: E501 def tearDown(self): pass def test_users_profile_read(self): - """ - Test case for users_profile_read + """Test case for users_profile_read - Provide a brief for the specified user (if any). + Provide a brief for the specified user (if any). # noqa: E501 """ pass diff --git a/bindings/python/src/test/test_vagrant_package_upload.py b/bindings/python/src/test/test_vagrant_package_upload.py index d312176e..90cf5201 100644 --- a/bindings/python/src/test/test_vagrant_package_upload.py +++ b/bindings/python/src/test/test_vagrant_package_upload.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,17 +13,15 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.models.vagrant_package_upload import VagrantPackageUpload # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.models.vagrant_package_upload import VagrantPackageUpload class TestVagrantPackageUpload(unittest.TestCase): - """ VagrantPackageUpload unit test stubs """ + """VagrantPackageUpload unit test stubs""" def setUp(self): pass @@ -32,11 +30,9 @@ def tearDown(self): pass def testVagrantPackageUpload(self): - """ - Test VagrantPackageUpload - """ + """Test VagrantPackageUpload""" # FIXME: construct object with mandatory attributes with example values - #model = cloudsmith_api.models.vagrant_package_upload.VagrantPackageUpload() + # model = cloudsmith_api.models.vagrant_package_upload.VagrantPackageUpload() # noqa: E501 pass diff --git a/bindings/python/src/test/test_vulnerabilities_api.py b/bindings/python/src/test/test_vulnerabilities_api.py index 7fe27a1c..5742746f 100644 --- a/bindings/python/src/test/test_vulnerabilities_api.py +++ b/bindings/python/src/test/test_vulnerabilities_api.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,53 +13,47 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.api.vulnerabilities_api import VulnerabilitiesApi # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.apis.vulnerabilities_api import VulnerabilitiesApi class TestVulnerabilitiesApi(unittest.TestCase): - """ VulnerabilitiesApi unit test stubs """ + """VulnerabilitiesApi unit test stubs""" def setUp(self): - self.api = cloudsmith_api.apis.vulnerabilities_api.VulnerabilitiesApi() + self.api = cloudsmith_api.api.vulnerabilities_api.VulnerabilitiesApi() # noqa: E501 def tearDown(self): pass def test_vulnerabilities_list(self): - """ - Test case for vulnerabilities_list + """Test case for vulnerabilities_list - Lists scan results for a specific namespace. + Lists scan results for a specific namespace. # noqa: E501 """ pass def test_vulnerabilities_list0(self): - """ - Test case for vulnerabilities_list0 + """Test case for vulnerabilities_list0 - Lists scan results for a specific repository. + Lists scan results for a specific repository. # noqa: E501 """ pass def test_vulnerabilities_list1(self): - """ - Test case for vulnerabilities_list1 + """Test case for vulnerabilities_list1 - Lists scan results for a specific package. + Lists scan results for a specific package. # noqa: E501 """ pass def test_vulnerabilities_read(self): - """ - Test case for vulnerabilities_read + """Test case for vulnerabilities_read - Returns a Scan Result. + Returns a Scan Result. # noqa: E501 """ pass diff --git a/bindings/python/src/test/test_vulnerability_scan_results.py b/bindings/python/src/test/test_vulnerability_scan_results.py index 61f59857..930dd2f5 100644 --- a/bindings/python/src/test/test_vulnerability_scan_results.py +++ b/bindings/python/src/test/test_vulnerability_scan_results.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,17 +13,15 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.models.vulnerability_scan_results import VulnerabilityScanResults # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.models.vulnerability_scan_results import VulnerabilityScanResults class TestVulnerabilityScanResults(unittest.TestCase): - """ VulnerabilityScanResults unit test stubs """ + """VulnerabilityScanResults unit test stubs""" def setUp(self): pass @@ -32,11 +30,9 @@ def tearDown(self): pass def testVulnerabilityScanResults(self): - """ - Test VulnerabilityScanResults - """ + """Test VulnerabilityScanResults""" # FIXME: construct object with mandatory attributes with example values - #model = cloudsmith_api.models.vulnerability_scan_results.VulnerabilityScanResults() + # model = cloudsmith_api.models.vulnerability_scan_results.VulnerabilityScanResults() # noqa: E501 pass diff --git a/bindings/python/src/test/test_vulnerability_scan_results_list.py b/bindings/python/src/test/test_vulnerability_scan_results_list.py index ce047d06..054c0ab0 100644 --- a/bindings/python/src/test/test_vulnerability_scan_results_list.py +++ b/bindings/python/src/test/test_vulnerability_scan_results_list.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,17 +13,15 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.models.vulnerability_scan_results_list import VulnerabilityScanResultsList # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.models.vulnerability_scan_results_list import VulnerabilityScanResultsList class TestVulnerabilityScanResultsList(unittest.TestCase): - """ VulnerabilityScanResultsList unit test stubs """ + """VulnerabilityScanResultsList unit test stubs""" def setUp(self): pass @@ -32,11 +30,9 @@ def tearDown(self): pass def testVulnerabilityScanResultsList(self): - """ - Test VulnerabilityScanResultsList - """ + """Test VulnerabilityScanResultsList""" # FIXME: construct object with mandatory attributes with example values - #model = cloudsmith_api.models.vulnerability_scan_results_list.VulnerabilityScanResultsList() + # model = cloudsmith_api.models.vulnerability_scan_results_list.VulnerabilityScanResultsList() # noqa: E501 pass diff --git a/bindings/python/src/test/test_webhooks_api.py b/bindings/python/src/test/test_webhooks_api.py index 50f83f16..9bc9a7b2 100644 --- a/bindings/python/src/test/test_webhooks_api.py +++ b/bindings/python/src/test/test_webhooks_api.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,61 +13,54 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.api.webhooks_api import WebhooksApi # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.apis.webhooks_api import WebhooksApi class TestWebhooksApi(unittest.TestCase): - """ WebhooksApi unit test stubs """ + """WebhooksApi unit test stubs""" def setUp(self): - self.api = cloudsmith_api.apis.webhooks_api.WebhooksApi() + self.api = cloudsmith_api.api.webhooks_api.WebhooksApi() # noqa: E501 def tearDown(self): pass def test_webhooks_create(self): - """ - Test case for webhooks_create + """Test case for webhooks_create - Create a specific webhook in a repository. + Create a specific webhook in a repository. # noqa: E501 """ pass def test_webhooks_delete(self): - """ - Test case for webhooks_delete + """Test case for webhooks_delete - Delete a specific webhook in a repository. + Delete a specific webhook in a repository. # noqa: E501 """ pass def test_webhooks_list(self): - """ - Test case for webhooks_list + """Test case for webhooks_list - Get a list of all webhooks in a repository. + Get a list of all webhooks in a repository. # noqa: E501 """ pass def test_webhooks_partial_update(self): - """ - Test case for webhooks_partial_update + """Test case for webhooks_partial_update - Update a specific webhook in a repository. + Update a specific webhook in a repository. # noqa: E501 """ pass def test_webhooks_read(self): - """ - Test case for webhooks_read + """Test case for webhooks_read - Views for working with repository webhooks. + Views for working with repository webhooks. # noqa: E501 """ pass diff --git a/bindings/python/src/test/test_webhooks_create.py b/bindings/python/src/test/test_webhooks_create.py index 2248c860..3023acb7 100644 --- a/bindings/python/src/test/test_webhooks_create.py +++ b/bindings/python/src/test/test_webhooks_create.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,17 +13,15 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.models.webhooks_create import WebhooksCreate # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.models.webhooks_create import WebhooksCreate class TestWebhooksCreate(unittest.TestCase): - """ WebhooksCreate unit test stubs """ + """WebhooksCreate unit test stubs""" def setUp(self): pass @@ -32,11 +30,9 @@ def tearDown(self): pass def testWebhooksCreate(self): - """ - Test WebhooksCreate - """ + """Test WebhooksCreate""" # FIXME: construct object with mandatory attributes with example values - #model = cloudsmith_api.models.webhooks_create.WebhooksCreate() + # model = cloudsmith_api.models.webhooks_create.WebhooksCreate() # noqa: E501 pass diff --git a/bindings/python/src/test/test_webhooks_partial_update.py b/bindings/python/src/test/test_webhooks_partial_update.py index f5c717dc..3c238651 100644 --- a/bindings/python/src/test/test_webhooks_partial_update.py +++ b/bindings/python/src/test/test_webhooks_partial_update.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,17 +13,15 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.models.webhooks_partial_update import WebhooksPartialUpdate # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.models.webhooks_partial_update import WebhooksPartialUpdate class TestWebhooksPartialUpdate(unittest.TestCase): - """ WebhooksPartialUpdate unit test stubs """ + """WebhooksPartialUpdate unit test stubs""" def setUp(self): pass @@ -32,11 +30,9 @@ def tearDown(self): pass def testWebhooksPartialUpdate(self): - """ - Test WebhooksPartialUpdate - """ + """Test WebhooksPartialUpdate""" # FIXME: construct object with mandatory attributes with example values - #model = cloudsmith_api.models.webhooks_partial_update.WebhooksPartialUpdate() + # model = cloudsmith_api.models.webhooks_partial_update.WebhooksPartialUpdate() # noqa: E501 pass diff --git a/bindings/python/src/test/test_webhooksownerrepo_templates.py b/bindings/python/src/test/test_webhooksownerrepo_templates.py index 9b03fa2c..872065bc 100644 --- a/bindings/python/src/test/test_webhooksownerrepo_templates.py +++ b/bindings/python/src/test/test_webhooksownerrepo_templates.py @@ -3,7 +3,7 @@ """ Cloudsmith API - The API to the Cloudsmith Service + The API to the Cloudsmith Service # noqa: E501 OpenAPI spec version: v1 Contact: support@cloudsmith.io @@ -13,17 +13,15 @@ from __future__ import absolute_import -import os -import sys import unittest import cloudsmith_api +from cloudsmith_api.models.webhooksownerrepo_templates import WebhooksownerrepoTemplates # noqa: E501 from cloudsmith_api.rest import ApiException -from cloudsmith_api.models.webhooksownerrepo_templates import WebhooksownerrepoTemplates class TestWebhooksownerrepoTemplates(unittest.TestCase): - """ WebhooksownerrepoTemplates unit test stubs """ + """WebhooksownerrepoTemplates unit test stubs""" def setUp(self): pass @@ -32,11 +30,9 @@ def tearDown(self): pass def testWebhooksownerrepoTemplates(self): - """ - Test WebhooksownerrepoTemplates - """ + """Test WebhooksownerrepoTemplates""" # FIXME: construct object with mandatory attributes with example values - #model = cloudsmith_api.models.webhooksownerrepo_templates.WebhooksownerrepoTemplates() + # model = cloudsmith_api.models.webhooksownerrepo_templates.WebhooksownerrepoTemplates() # noqa: E501 pass diff --git a/bindings/python/src/tox.ini b/bindings/python/src/tox.ini index 1cf0829d..3d0be613 100644 --- a/bindings/python/src/tox.ini +++ b/bindings/python/src/tox.ini @@ -4,7 +4,7 @@ envlist = py27, py3 [testenv] deps=-r{toxinidir}/requirements.txt -r{toxinidir}/test-requirements.txt - + commands= nosetests \ - [] \ No newline at end of file + [] diff --git a/bindings/python/test.sh b/bindings/python/test.sh index e0241b2e..c74e4add 100755 --- a/bindings/python/test.sh +++ b/bindings/python/test.sh @@ -1,4 +1,6 @@ #!/usr/bin/env bash +set -e + self=$(readlink -f $BASH_SOURCE) self_dir=$(dirname $self) root_dir=$(readlink -f "$self_dir/../..") diff --git a/bindings/ruby/build.sh b/bindings/ruby/build.sh index 2318e605..063cdbed 100755 --- a/bindings/ruby/build.sh +++ b/bindings/ruby/build.sh @@ -1,4 +1,6 @@ #!/usr/bin/env bash +set -e + self=$(readlink -f $BASH_SOURCE) self_dir=$(dirname $self) root_dir=$(readlink -f "$self_dir/../..") diff --git a/bindings/ruby/deploy.sh b/bindings/ruby/deploy.sh index adb88938..e43bb38f 100755 --- a/bindings/ruby/deploy.sh +++ b/bindings/ruby/deploy.sh @@ -1,4 +1,6 @@ #!/usr/bin/env bash +set -e + self=$(readlink -f $BASH_SOURCE) self_dir=$(dirname "$self") root_dir=$(readlink -f "$self_dir/../..") diff --git a/bindings/ruby/src/.gitignore b/bindings/ruby/src/.gitignore index 4b91271a..c021594b 100644 --- a/bindings/ruby/src/.gitignore +++ b/bindings/ruby/src/.gitignore @@ -1,5 +1,5 @@ # Generated by: https://github.com/swagger-api/swagger-codegen.git -# +# *.gem *.rbc diff --git a/bindings/ruby/src/.rubocop.yml b/bindings/ruby/src/.rubocop.yml new file mode 100644 index 00000000..19a777e1 --- /dev/null +++ b/bindings/ruby/src/.rubocop.yml @@ -0,0 +1,154 @@ +# This file is based on https://github.com/rails/rails/blob/master/.rubocop.yml (MIT license) +# Automatically generated by Swagger Codegen (https://github.com/swagger-api/swagger-codegen) +AllCops: + TargetRubyVersion: 2.2 + # RuboCop has a bunch of cops enabled by default. This setting tells RuboCop + # to ignore them, so only the ones explicitly set in this file are enabled. + DisabledByDefault: true + Exclude: + - '**/templates/**/*' + - '**/vendor/**/*' + - 'actionpack/lib/action_dispatch/journey/parser.rb' + +# Prefer &&/|| over and/or. +Style/AndOr: + Enabled: true + +# Do not use braces for hash literals when they are the last argument of a +# method call. +Style/BracesAroundHashParameters: + Enabled: true + EnforcedStyle: context_dependent + +# Align `when` with `case`. +Layout/CaseIndentation: + Enabled: true + +# Align comments with method definitions. +Layout/CommentIndentation: + Enabled: true + +Layout/ElseAlignment: + Enabled: true + +Layout/EmptyLineAfterMagicComment: + Enabled: true + +# In a regular class definition, no empty lines around the body. +Layout/EmptyLinesAroundClassBody: + Enabled: true + +# In a regular method definition, no empty lines around the body. +Layout/EmptyLinesAroundMethodBody: + Enabled: true + +# In a regular module definition, no empty lines around the body. +Layout/EmptyLinesAroundModuleBody: + Enabled: true + +Layout/FirstParameterIndentation: + Enabled: true + +# Use Ruby >= 1.9 syntax for hashes. Prefer { a: :b } over { :a => :b }. +Style/HashSyntax: + Enabled: false + +# Method definitions after `private` or `protected` isolated calls need one +# extra level of indentation. +Layout/IndentationConsistency: + Enabled: true + EnforcedStyle: rails + +# Two spaces, no tabs (for indentation). +Layout/IndentationWidth: + Enabled: true + +Layout/LeadingCommentSpace: + Enabled: true + +Layout/SpaceAfterColon: + Enabled: true + +Layout/SpaceAfterComma: + Enabled: true + +Layout/SpaceAroundEqualsInParameterDefault: + Enabled: true + +Layout/SpaceAroundKeyword: + Enabled: true + +Layout/SpaceAroundOperators: + Enabled: true + +Layout/SpaceBeforeComma: + Enabled: true + +Layout/SpaceBeforeFirstArg: + Enabled: true + +Style/DefWithParentheses: + Enabled: true + +# Defining a method with parameters needs parentheses. +Style/MethodDefParentheses: + Enabled: true + +Style/FrozenStringLiteralComment: + Enabled: false + EnforcedStyle: always + +# Use `foo {}` not `foo{}`. +Layout/SpaceBeforeBlockBraces: + Enabled: true + +# Use `foo { bar }` not `foo {bar}`. +Layout/SpaceInsideBlockBraces: + Enabled: true + +# Use `{ a: 1 }` not `{a:1}`. +Layout/SpaceInsideHashLiteralBraces: + Enabled: true + +Layout/SpaceInsideParens: + Enabled: true + +# Check quotes usage according to lint rule below. +#Style/StringLiterals: +# Enabled: true +# EnforcedStyle: single_quotes + +# Detect hard tabs, no hard tabs. +Layout/Tab: + Enabled: true + +# Blank lines should not have any spaces. +Layout/TrailingBlankLines: + Enabled: true + +# No trailing whitespace. +Layout/TrailingWhitespace: + Enabled: false + +# Use quotes for string literals when they are enough. +Style/UnneededPercentQ: + Enabled: true + +# Align `end` with the matching keyword or starting expression except for +# assignments, where it should be aligned with the LHS. +Lint/EndAlignment: + Enabled: true + EnforcedStyleAlignWith: variable + AutoCorrect: true + +# Use my_method(my_arg) not my_method( my_arg ) or my_method my_arg. +Lint/RequireParentheses: + Enabled: true + +Style/RedundantReturn: + Enabled: true + AllowMultipleReturnValues: true + +Style/Semicolon: + Enabled: true + AllowAsExpressionSeparator: true diff --git a/bindings/ruby/src/.swagger-codegen/VERSION b/bindings/ruby/src/.swagger-codegen/VERSION index 6b4d1577..21f40d97 100644 --- a/bindings/ruby/src/.swagger-codegen/VERSION +++ b/bindings/ruby/src/.swagger-codegen/VERSION @@ -1 +1 @@ -2.2.3 \ No newline at end of file +2.4.26 \ No newline at end of file diff --git a/bindings/ruby/src/Gemfile b/bindings/ruby/src/Gemfile index d255a3ab..f58bec06 100644 --- a/bindings/ruby/src/Gemfile +++ b/bindings/ruby/src/Gemfile @@ -3,5 +3,5 @@ source 'https://rubygems.org' gemspec group :development, :test do - gem 'rake', '~> 12.0.0' + gem 'rake', '~> 12.3.3' end diff --git a/bindings/ruby/src/README.md b/bindings/ruby/src/README.md index 4e9aa313..ade265d5 100644 --- a/bindings/ruby/src/README.md +++ b/bindings/ruby/src/README.md @@ -7,7 +7,7 @@ The API to the Cloudsmith Service This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project: - API version: v1 -- Package version: 1.30.0 +- Package version: 1.33.7 - Build package: io.swagger.codegen.languages.RubyClientCodegen For more information, please visit [https://help.cloudsmith.io](https://help.cloudsmith.io) @@ -24,15 +24,15 @@ gem build cloudsmith-api.gemspec Then either install the gem locally: ```shell -gem install ./cloudsmith-api-1.30.0.gem +gem install ./cloudsmith-api-1.33.7.gem ``` -(for development, run `gem install --dev ./cloudsmith-api-1.30.0.gem` to install the development dependencies) +(for development, run `gem install --dev ./cloudsmith-api-1.33.7.gem` to install the development dependencies) or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/). Finally add this to the Gemfile: - gem 'cloudsmith-api', '~> 1.30.0' + gem 'cloudsmith-api', '~> 1.33.7' ### Install from Git @@ -65,35 +65,36 @@ end api_instance = CloudsmithApi::BadgesApi.new -owner = "owner_example" # String | +owner = 'owner_example' # String | -repo = "repo_example" # String | +repo = 'repo_example' # String | -package_format = "package_format_example" # String | +package_format = 'package_format_example' # String | -package_name = "package_name_example" # String | +package_name = 'package_name_example' # String | -package_version = "package_version_example" # String | +package_version = 'package_version_example' # String | -package_identifiers = "package_identifiers_example" # String | +package_identifiers = 'package_identifiers_example' # String | opts = { - badge_token: "badge_token_example", # String | Badge token to authenticate for private packages - cache_seconds: "cache_seconds_example", # String | Override the shields.io badge cacheSeconds value. - color: "color_example", # String | Override the shields.io badge color value. - label: "label_example", # String | Override the shields.io badge label value. - label_color: "label_color_example", # String | Override the shields.io badge labelColor value. - logo_color: "logo_color_example", # String | Override the shields.io badge logoColor value. - logo_width: "logo_width_example", # String | Override the shields.io badge logoWidth value. + badge_token: 'badge_token_example', # String | Badge token to authenticate for private packages + cache_seconds: 'cache_seconds_example', # String | Override the shields.io badge cacheSeconds value. + color: 'color_example', # String | Override the shields.io badge color value. + label: 'label_example', # String | Override the shields.io badge label value. + label_color: 'label_color_example', # String | Override the shields.io badge labelColor value. + logo_color: 'logo_color_example', # String | Override the shields.io badge logoColor value. + logo_width: 'logo_width_example', # String | Override the shields.io badge logoWidth value. render: true, # BOOLEAN | If true, badge will be rendered shields: true, # BOOLEAN | If true, a shields response will be generated show_latest: true, # BOOLEAN | If true, for latest version badges a '(latest)' suffix is added - style: "style_example" # String | Override the shields.io badge style value. + style: 'style_example' # String | Override the shields.io badge style value. } begin #Get latest package version for a package or package group. - api_instance.badges_version_list(owner, repo, package_format, package_name, package_version, package_identifiers, opts) + result = api_instance.badges_version_list(owner, repo, package_format, package_name, package_version, package_identifiers, opts) + p result rescue CloudsmithApi::ApiError => e puts "Exception when calling BadgesApi->badges_version_list: #{e}" end @@ -204,8 +205,8 @@ Class | Method | HTTP request | Description *CloudsmithApi::ReposApi* | [**repos_partial_update**](docs/ReposApi.md#repos_partial_update) | **PATCH** /repos/{owner}/{identifier}/ | Update details about a repository in a given namespace. *CloudsmithApi::ReposApi* | [**repos_read**](docs/ReposApi.md#repos_read) | **GET** /repos/{owner}/{identifier}/ | Get a specific repository. *CloudsmithApi::StatusApi* | [**status_check_basic**](docs/StatusApi.md#status_check_basic) | **GET** /status/check/basic/ | Endpoint to check basic API connectivity. -*CloudsmithApi::StorageregionsApi* | [**storage_regions_list**](docs/StorageregionsApi.md#storage_regions_list) | **GET** /storage-regions/ | Get a list of all available storage regions. -*CloudsmithApi::StorageregionsApi* | [**storage_regions_read**](docs/StorageregionsApi.md#storage_regions_read) | **GET** /storage-regions/{slug}/ | Get a specific storage region. +*CloudsmithApi::StorageRegionsApi* | [**storage_regions_list**](docs/StorageRegionsApi.md#storage_regions_list) | **GET** /storage-regions/ | Get a list of all available storage regions. +*CloudsmithApi::StorageRegionsApi* | [**storage_regions_read**](docs/StorageRegionsApi.md#storage_regions_read) | **GET** /storage-regions/{slug}/ | Get a specific storage region. *CloudsmithApi::UserApi* | [**user_self**](docs/UserApi.md#user_self) | **GET** /user/self/ | Provide a brief for the current user (if any). *CloudsmithApi::UserApi* | [**user_token_create**](docs/UserApi.md#user_token_create) | **POST** /user/token/ | Retrieve the API key/token for the authenticated user. *CloudsmithApi::UsersApi* | [**users_profile_read**](docs/UsersApi.md#users_profile_read) | **GET** /users/profile/{slug}/ | Provide a brief for the specified user (if any). diff --git a/bindings/ruby/src/build.json b/bindings/ruby/src/build.json index 88fd7b81..e1eb65d7 100644 --- a/bindings/ruby/src/build.json +++ b/bindings/ruby/src/build.json @@ -8,7 +8,7 @@ "gemName": "cloudsmith-api", "gemRequiredRubyVersion": ">= 1.9", "gemSummary": "Cloudsmith API", - "gemVersion": "1.30.0", + "gemVersion": "1.33.7", "hideGenerationTimestamp": true, "moduleName": "CloudsmithApi", "sortParamsByRequiredFlag": true diff --git a/bindings/ruby/src/cloudsmith-api.gemspec b/bindings/ruby/src/cloudsmith-api.gemspec index 39f742dd..fe4013ed 100644 --- a/bindings/ruby/src/cloudsmith-api.gemspec +++ b/bindings/ruby/src/cloudsmith-api.gemspec @@ -1,5 +1,5 @@ # -*- encoding: utf-8 -*- -# + =begin #Cloudsmith API @@ -8,7 +8,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -24,11 +24,12 @@ Gem::Specification.new do |s| s.homepage = "https://api.cloudsmith.io/?format=openapi" s.summary = "Cloudsmith API" s.description = "The API to the Cloudsmith Service" - s.license = "Apache-2.0" + s.license = 'Apache-2.0' s.required_ruby_version = ">= 1.9" s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1' s.add_runtime_dependency 'json', '~> 2.1', '>= 2.1.0' + s.add_runtime_dependency 'addressable', '~> 2.3', '>= 2.3.0' s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0' s.add_development_dependency 'vcr', '~> 3.0', '>= 3.0.1' @@ -38,7 +39,7 @@ Gem::Specification.new do |s| s.add_development_dependency 'autotest-growl', '~> 0.2', '>= 0.2.16' s.add_development_dependency 'autotest-fsevent', '~> 0.2', '>= 0.2.12' - s.files = `find *`.split("\n").uniq.sort.select{|f| !f.empty? } + s.files = `find *`.split("\n").uniq.sort.select { |f| !f.empty? } s.test_files = `find spec/*`.split("\n") s.executables = [] s.require_paths = ["lib"] diff --git a/bindings/ruby/src/docs/BadgesApi.md b/bindings/ruby/src/docs/BadgesApi.md index 8457732d..0dfcfe16 100644 --- a/bindings/ruby/src/docs/BadgesApi.md +++ b/bindings/ruby/src/docs/BadgesApi.md @@ -8,7 +8,7 @@ Method | HTTP request | Description # **badges_version_list** -> badges_version_list(owner, repo, package_format, package_name, package_version, package_identifiers, opts) +> Object badges_version_list(owner, repo, package_format, package_name, package_version, package_identifiers, opts) Get latest package version for a package or package group. @@ -28,35 +28,36 @@ end api_instance = CloudsmithApi::BadgesApi.new -owner = "owner_example" # String | +owner = 'owner_example' # String | -repo = "repo_example" # String | +repo = 'repo_example' # String | -package_format = "package_format_example" # String | +package_format = 'package_format_example' # String | -package_name = "package_name_example" # String | +package_name = 'package_name_example' # String | -package_version = "package_version_example" # String | +package_version = 'package_version_example' # String | -package_identifiers = "package_identifiers_example" # String | +package_identifiers = 'package_identifiers_example' # String | opts = { - badge_token: "badge_token_example", # String | Badge token to authenticate for private packages - cache_seconds: "cache_seconds_example", # String | Override the shields.io badge cacheSeconds value. - color: "color_example", # String | Override the shields.io badge color value. - label: "label_example", # String | Override the shields.io badge label value. - label_color: "label_color_example", # String | Override the shields.io badge labelColor value. - logo_color: "logo_color_example", # String | Override the shields.io badge logoColor value. - logo_width: "logo_width_example", # String | Override the shields.io badge logoWidth value. + badge_token: 'badge_token_example', # String | Badge token to authenticate for private packages + cache_seconds: 'cache_seconds_example', # String | Override the shields.io badge cacheSeconds value. + color: 'color_example', # String | Override the shields.io badge color value. + label: 'label_example', # String | Override the shields.io badge label value. + label_color: 'label_color_example', # String | Override the shields.io badge labelColor value. + logo_color: 'logo_color_example', # String | Override the shields.io badge logoColor value. + logo_width: 'logo_width_example', # String | Override the shields.io badge logoWidth value. render: true, # BOOLEAN | If true, badge will be rendered shields: true, # BOOLEAN | If true, a shields response will be generated show_latest: true, # BOOLEAN | If true, for latest version badges a '(latest)' suffix is added - style: "style_example" # String | Override the shields.io badge style value. + style: 'style_example' # String | Override the shields.io badge style value. } begin #Get latest package version for a package or package group. - api_instance.badges_version_list(owner, repo, package_format, package_name, package_version, package_identifiers, opts) + result = api_instance.badges_version_list(owner, repo, package_format, package_name, package_version, package_identifiers, opts) + p result rescue CloudsmithApi::ApiError => e puts "Exception when calling BadgesApi->badges_version_list: #{e}" end @@ -86,7 +87,7 @@ Name | Type | Description | Notes ### Return type -nil (empty response body) +**Object** ### Authorization diff --git a/bindings/ruby/src/docs/DistrosApi.md b/bindings/ruby/src/docs/DistrosApi.md index 788a9f91..c46a5ef9 100644 --- a/bindings/ruby/src/docs/DistrosApi.md +++ b/bindings/ruby/src/docs/DistrosApi.md @@ -77,7 +77,7 @@ end api_instance = CloudsmithApi::DistrosApi.new -slug = "slug_example" # String | +slug = 'slug_example' # String | begin diff --git a/bindings/ruby/src/docs/EntitlementsApi.md b/bindings/ruby/src/docs/EntitlementsApi.md index 50d2aaf7..3c1f4218 100644 --- a/bindings/ruby/src/docs/EntitlementsApi.md +++ b/bindings/ruby/src/docs/EntitlementsApi.md @@ -37,9 +37,9 @@ end api_instance = CloudsmithApi::EntitlementsApi.new -owner = "owner_example" # String | +owner = 'owner_example' # String | -repo = "repo_example" # String | +repo = 'repo_example' # String | opts = { show_tokens: true, # BOOLEAN | Show entitlement token strings in results @@ -100,11 +100,11 @@ end api_instance = CloudsmithApi::EntitlementsApi.new -owner = "owner_example" # String | +owner = 'owner_example' # String | -repo = "repo_example" # String | +repo = 'repo_example' # String | -identifier = "identifier_example" # String | +identifier = 'identifier_example' # String | begin @@ -159,11 +159,11 @@ end api_instance = CloudsmithApi::EntitlementsApi.new -owner = "owner_example" # String | +owner = 'owner_example' # String | -repo = "repo_example" # String | +repo = 'repo_example' # String | -identifier = "identifier_example" # String | +identifier = 'identifier_example' # String | begin @@ -218,11 +218,11 @@ end api_instance = CloudsmithApi::EntitlementsApi.new -owner = "owner_example" # String | +owner = 'owner_example' # String | -repo = "repo_example" # String | +repo = 'repo_example' # String | -identifier = "identifier_example" # String | +identifier = 'identifier_example' # String | begin @@ -277,9 +277,9 @@ end api_instance = CloudsmithApi::EntitlementsApi.new -owner = "owner_example" # String | +owner = 'owner_example' # String | -repo = "repo_example" # String | +repo = 'repo_example' # String | opts = { page: 56, # Integer | A page number within the paginated result set. @@ -342,11 +342,11 @@ end api_instance = CloudsmithApi::EntitlementsApi.new -owner = "owner_example" # String | +owner = 'owner_example' # String | -repo = "repo_example" # String | +repo = 'repo_example' # String | -identifier = "identifier_example" # String | +identifier = 'identifier_example' # String | opts = { show_tokens: true, # BOOLEAN | Show entitlement token strings in results @@ -408,11 +408,11 @@ end api_instance = CloudsmithApi::EntitlementsApi.new -owner = "owner_example" # String | +owner = 'owner_example' # String | -repo = "repo_example" # String | +repo = 'repo_example' # String | -identifier = "identifier_example" # String | +identifier = 'identifier_example' # String | opts = { show_tokens: true # BOOLEAN | Show entitlement token strings in results @@ -472,11 +472,11 @@ end api_instance = CloudsmithApi::EntitlementsApi.new -owner = "owner_example" # String | +owner = 'owner_example' # String | -repo = "repo_example" # String | +repo = 'repo_example' # String | -identifier = "identifier_example" # String | +identifier = 'identifier_example' # String | opts = { show_tokens: true, # BOOLEAN | Show entitlement token strings in results @@ -538,11 +538,11 @@ end api_instance = CloudsmithApi::EntitlementsApi.new -owner = "owner_example" # String | +owner = 'owner_example' # String | -repo = "repo_example" # String | +repo = 'repo_example' # String | -identifier = "identifier_example" # String | +identifier = 'identifier_example' # String | opts = { show_tokens: true # BOOLEAN | Show entitlement token strings in results @@ -601,9 +601,9 @@ end api_instance = CloudsmithApi::EntitlementsApi.new -owner = "owner_example" # String | +owner = 'owner_example' # String | -repo = "repo_example" # String | +repo = 'repo_example' # String | opts = { show_tokens: true, # BOOLEAN | Show entitlement token strings in results diff --git a/bindings/ruby/src/docs/FilesApi.md b/bindings/ruby/src/docs/FilesApi.md index 8e4ab403..f8bddc99 100644 --- a/bindings/ruby/src/docs/FilesApi.md +++ b/bindings/ruby/src/docs/FilesApi.md @@ -32,11 +32,11 @@ end api_instance = CloudsmithApi::FilesApi.new -owner = "owner_example" # String | +owner = 'owner_example' # String | -repo = "repo_example" # String | +repo = 'repo_example' # String | -identifier = "identifier_example" # String | +identifier = 'identifier_example' # String | opts = { data: CloudsmithApi::FilesAbort.new # FilesAbort | @@ -95,11 +95,11 @@ end api_instance = CloudsmithApi::FilesApi.new -owner = "owner_example" # String | +owner = 'owner_example' # String | -repo = "repo_example" # String | +repo = 'repo_example' # String | -identifier = "identifier_example" # String | +identifier = 'identifier_example' # String | opts = { data: CloudsmithApi::FilesComplete.new # FilesComplete | @@ -159,9 +159,9 @@ end api_instance = CloudsmithApi::FilesApi.new -owner = "owner_example" # String | +owner = 'owner_example' # String | -repo = "repo_example" # String | +repo = 'repo_example' # String | opts = { data: CloudsmithApi::FilesCreate.new # FilesCreate | @@ -220,11 +220,11 @@ end api_instance = CloudsmithApi::FilesApi.new -owner = "owner_example" # String | +owner = 'owner_example' # String | -repo = "repo_example" # String | +repo = 'repo_example' # String | -identifier = "identifier_example" # String | +identifier = 'identifier_example' # String | begin @@ -280,9 +280,9 @@ end api_instance = CloudsmithApi::FilesApi.new -owner = "owner_example" # String | +owner = 'owner_example' # String | -repo = "repo_example" # String | +repo = 'repo_example' # String | opts = { data: CloudsmithApi::FilesValidate.new # FilesValidate | diff --git a/bindings/ruby/src/docs/FormatsApi.md b/bindings/ruby/src/docs/FormatsApi.md index ff7988b9..247a917f 100644 --- a/bindings/ruby/src/docs/FormatsApi.md +++ b/bindings/ruby/src/docs/FormatsApi.md @@ -77,7 +77,7 @@ end api_instance = CloudsmithApi::FormatsApi.new -slug = "slug_example" # String | +slug = 'slug_example' # String | begin diff --git a/bindings/ruby/src/docs/MetricsApi.md b/bindings/ruby/src/docs/MetricsApi.md index b584f777..ddeed14b 100644 --- a/bindings/ruby/src/docs/MetricsApi.md +++ b/bindings/ruby/src/docs/MetricsApi.md @@ -30,14 +30,14 @@ end api_instance = CloudsmithApi::MetricsApi.new -owner = "owner_example" # String | +owner = 'owner_example' # String | opts = { page: 56, # Integer | A page number within the paginated result set. page_size: 56, # Integer | Number of results to return per page. - finish: "finish_example", # String | Include metrics upto and including this UTC date or UTC datetime. For example '2020-12-31' or '2021-12-13T00:00:00Z'. - start: "start_example", # String | Include metrics from and including this UTC date or UTC datetime. For example '2020-12-31' or '2021-12-13T00:00:00Z'. - tokens: "tokens_example" # String | A comma seperated list of tokens (slug perm) to include in the results. + finish: 'finish_example', # String | Include metrics upto and including this UTC date or UTC datetime. For example '2020-12-31' or '2021-12-13T00:00:00Z'. + start: 'start_example', # String | Include metrics from and including this UTC date or UTC datetime. For example '2020-12-31' or '2021-12-13T00:00:00Z'. + tokens: 'tokens_example' # String | A comma seperated list of tokens (slug perm) to include in the results. } begin @@ -96,16 +96,16 @@ end api_instance = CloudsmithApi::MetricsApi.new -owner = "owner_example" # String | +owner = 'owner_example' # String | -repo = "repo_example" # String | +repo = 'repo_example' # String | opts = { page: 56, # Integer | A page number within the paginated result set. page_size: 56, # Integer | Number of results to return per page. - finish: "finish_example", # String | Include metrics upto and including this UTC date or UTC datetime. For example '2020-12-31' or '2021-12-13T00:00:00Z'. - start: "start_example", # String | Include metrics from and including this UTC date or UTC datetime. For example '2020-12-31' or '2021-12-13T00:00:00Z'. - tokens: "tokens_example" # String | A comma seperated list of tokens (slug perm) to include in the results. + finish: 'finish_example', # String | Include metrics upto and including this UTC date or UTC datetime. For example '2020-12-31' or '2021-12-13T00:00:00Z'. + start: 'start_example', # String | Include metrics from and including this UTC date or UTC datetime. For example '2020-12-31' or '2021-12-13T00:00:00Z'. + tokens: 'tokens_example' # String | A comma seperated list of tokens (slug perm) to include in the results. } begin @@ -165,16 +165,16 @@ end api_instance = CloudsmithApi::MetricsApi.new -owner = "owner_example" # String | +owner = 'owner_example' # String | -repo = "repo_example" # String | +repo = 'repo_example' # String | opts = { page: 56, # Integer | A page number within the paginated result set. page_size: 56, # Integer | Number of results to return per page. - finish: "finish_example", # String | Include metrics upto and including this UTC date or UTC datetime. For example '2020-12-31' or '2021-12-13T00:00:00Z'. - packages: "packages_example", # String | A comma seperated list of packages (slug perm) to include in the results. - start: "start_example" # String | Include metrics from and including this UTC date or UTC datetime. For example '2020-12-31' or '2021-12-13T00:00:00Z'. + finish: 'finish_example', # String | Include metrics upto and including this UTC date or UTC datetime. For example '2020-12-31' or '2021-12-13T00:00:00Z'. + packages: 'packages_example', # String | A comma seperated list of packages (slug perm) to include in the results. + start: 'start_example' # String | Include metrics from and including this UTC date or UTC datetime. For example '2020-12-31' or '2021-12-13T00:00:00Z'. } begin diff --git a/bindings/ruby/src/docs/NamespacesApi.md b/bindings/ruby/src/docs/NamespacesApi.md index 8d6ea032..3bca1834 100644 --- a/bindings/ruby/src/docs/NamespacesApi.md +++ b/bindings/ruby/src/docs/NamespacesApi.md @@ -86,7 +86,7 @@ end api_instance = CloudsmithApi::NamespacesApi.new -slug = "slug_example" # String | +slug = 'slug_example' # String | begin diff --git a/bindings/ruby/src/docs/OrgsApi.md b/bindings/ruby/src/docs/OrgsApi.md index 65ef6e88..3736f4ec 100644 --- a/bindings/ruby/src/docs/OrgsApi.md +++ b/bindings/ruby/src/docs/OrgsApi.md @@ -89,7 +89,7 @@ end api_instance = CloudsmithApi::OrgsApi.new -org = "org_example" # String | +org = 'org_example' # String | opts = { page: 56, # Integer | A page number within the paginated result set. @@ -149,9 +149,9 @@ end api_instance = CloudsmithApi::OrgsApi.new -org = "org_example" # String | +org = 'org_example' # String | -member = "member_example" # String | +member = 'member_example' # String | begin @@ -206,9 +206,9 @@ end api_instance = CloudsmithApi::OrgsApi.new -org = "org_example" # String | +org = 'org_example' # String | -member = "member_example" # String | +member = 'member_example' # String | begin @@ -263,7 +263,7 @@ end api_instance = CloudsmithApi::OrgsApi.new -org = "org_example" # String | +org = 'org_example' # String | begin diff --git a/bindings/ruby/src/docs/PackagesApi.md b/bindings/ruby/src/docs/PackagesApi.md index b92d0e76..a20c55ca 100644 --- a/bindings/ruby/src/docs/PackagesApi.md +++ b/bindings/ruby/src/docs/PackagesApi.md @@ -83,11 +83,11 @@ end api_instance = CloudsmithApi::PackagesApi.new -owner = "owner_example" # String | +owner = 'owner_example' # String | -repo = "repo_example" # String | +repo = 'repo_example' # String | -identifier = "identifier_example" # String | +identifier = 'identifier_example' # String | opts = { data: CloudsmithApi::PackagesCopy.new # PackagesCopy | @@ -147,11 +147,11 @@ end api_instance = CloudsmithApi::PackagesApi.new -owner = "owner_example" # String | +owner = 'owner_example' # String | -repo = "repo_example" # String | +repo = 'repo_example' # String | -identifier = "identifier_example" # String | +identifier = 'identifier_example' # String | begin @@ -206,11 +206,11 @@ end api_instance = CloudsmithApi::PackagesApi.new -owner = "owner_example" # String | +owner = 'owner_example' # String | -repo = "repo_example" # String | +repo = 'repo_example' # String | -identifier = "identifier_example" # String | +identifier = 'identifier_example' # String | begin @@ -266,15 +266,15 @@ end api_instance = CloudsmithApi::PackagesApi.new -owner = "owner_example" # String | +owner = 'owner_example' # String | -repo = "repo_example" # String | +repo = 'repo_example' # String | opts = { page: 56, # Integer | A page number within the paginated result set. page_size: 56, # Integer | Number of results to return per page. - query: "query_example", # String | A search term for querying names, filenames, versions, distributions, architectures, formats or statuses of packages. - sort: "sort_example" # String | A field for sorting objects in ascending or descending order. + query: 'query_example', # String | A search term for querying names, filenames, versions, distributions, architectures, formats or statuses of packages. + sort: 'sort_example' # String | A field for sorting objects in ascending or descending order. } begin @@ -333,11 +333,11 @@ end api_instance = CloudsmithApi::PackagesApi.new -owner = "owner_example" # String | +owner = 'owner_example' # String | -repo = "repo_example" # String | +repo = 'repo_example' # String | -identifier = "identifier_example" # String | +identifier = 'identifier_example' # String | opts = { data: CloudsmithApi::PackagesMove.new # PackagesMove | @@ -397,11 +397,11 @@ end api_instance = CloudsmithApi::PackagesApi.new -owner = "owner_example" # String | +owner = 'owner_example' # String | -repo = "repo_example" # String | +repo = 'repo_example' # String | -identifier = "identifier_example" # String | +identifier = 'identifier_example' # String | begin @@ -457,11 +457,11 @@ end api_instance = CloudsmithApi::PackagesApi.new -owner = "owner_example" # String | +owner = 'owner_example' # String | -repo = "repo_example" # String | +repo = 'repo_example' # String | -identifier = "identifier_example" # String | +identifier = 'identifier_example' # String | begin @@ -517,11 +517,11 @@ end api_instance = CloudsmithApi::PackagesApi.new -owner = "owner_example" # String | +owner = 'owner_example' # String | -repo = "repo_example" # String | +repo = 'repo_example' # String | -identifier = "identifier_example" # String | +identifier = 'identifier_example' # String | begin @@ -577,11 +577,11 @@ end api_instance = CloudsmithApi::PackagesApi.new -owner = "owner_example" # String | +owner = 'owner_example' # String | -repo = "repo_example" # String | +repo = 'repo_example' # String | -identifier = "identifier_example" # String | +identifier = 'identifier_example' # String | begin @@ -637,11 +637,11 @@ end api_instance = CloudsmithApi::PackagesApi.new -owner = "owner_example" # String | +owner = 'owner_example' # String | -repo = "repo_example" # String | +repo = 'repo_example' # String | -identifier = "identifier_example" # String | +identifier = 'identifier_example' # String | opts = { data: CloudsmithApi::PackagesTag.new # PackagesTag | @@ -701,9 +701,9 @@ end api_instance = CloudsmithApi::PackagesApi.new -owner = "owner_example" # String | +owner = 'owner_example' # String | -repo = "repo_example" # String | +repo = 'repo_example' # String | opts = { data: CloudsmithApi::PackagesUploadAlpine.new # PackagesUploadAlpine | @@ -762,9 +762,9 @@ end api_instance = CloudsmithApi::PackagesApi.new -owner = "owner_example" # String | +owner = 'owner_example' # String | -repo = "repo_example" # String | +repo = 'repo_example' # String | opts = { data: CloudsmithApi::PackagesUploadCargo.new # PackagesUploadCargo | @@ -823,9 +823,9 @@ end api_instance = CloudsmithApi::PackagesApi.new -owner = "owner_example" # String | +owner = 'owner_example' # String | -repo = "repo_example" # String | +repo = 'repo_example' # String | opts = { data: CloudsmithApi::PackagesUploadCocoapods.new # PackagesUploadCocoapods | @@ -884,9 +884,9 @@ end api_instance = CloudsmithApi::PackagesApi.new -owner = "owner_example" # String | +owner = 'owner_example' # String | -repo = "repo_example" # String | +repo = 'repo_example' # String | opts = { data: CloudsmithApi::PackagesUploadComposer.new # PackagesUploadComposer | @@ -945,9 +945,9 @@ end api_instance = CloudsmithApi::PackagesApi.new -owner = "owner_example" # String | +owner = 'owner_example' # String | -repo = "repo_example" # String | +repo = 'repo_example' # String | opts = { data: CloudsmithApi::PackagesUploadConan.new # PackagesUploadConan | @@ -1006,9 +1006,9 @@ end api_instance = CloudsmithApi::PackagesApi.new -owner = "owner_example" # String | +owner = 'owner_example' # String | -repo = "repo_example" # String | +repo = 'repo_example' # String | opts = { data: CloudsmithApi::PackagesUploadConda.new # PackagesUploadConda | @@ -1067,9 +1067,9 @@ end api_instance = CloudsmithApi::PackagesApi.new -owner = "owner_example" # String | +owner = 'owner_example' # String | -repo = "repo_example" # String | +repo = 'repo_example' # String | opts = { data: CloudsmithApi::PackagesUploadCran.new # PackagesUploadCran | @@ -1128,9 +1128,9 @@ end api_instance = CloudsmithApi::PackagesApi.new -owner = "owner_example" # String | +owner = 'owner_example' # String | -repo = "repo_example" # String | +repo = 'repo_example' # String | opts = { data: CloudsmithApi::PackagesUploadDart.new # PackagesUploadDart | @@ -1189,9 +1189,9 @@ end api_instance = CloudsmithApi::PackagesApi.new -owner = "owner_example" # String | +owner = 'owner_example' # String | -repo = "repo_example" # String | +repo = 'repo_example' # String | opts = { data: CloudsmithApi::PackagesUploadDeb.new # PackagesUploadDeb | @@ -1250,9 +1250,9 @@ end api_instance = CloudsmithApi::PackagesApi.new -owner = "owner_example" # String | +owner = 'owner_example' # String | -repo = "repo_example" # String | +repo = 'repo_example' # String | opts = { data: CloudsmithApi::PackagesUploadDocker.new # PackagesUploadDocker | @@ -1311,9 +1311,9 @@ end api_instance = CloudsmithApi::PackagesApi.new -owner = "owner_example" # String | +owner = 'owner_example' # String | -repo = "repo_example" # String | +repo = 'repo_example' # String | opts = { data: CloudsmithApi::PackagesUploadGo.new # PackagesUploadGo | @@ -1372,9 +1372,9 @@ end api_instance = CloudsmithApi::PackagesApi.new -owner = "owner_example" # String | +owner = 'owner_example' # String | -repo = "repo_example" # String | +repo = 'repo_example' # String | opts = { data: CloudsmithApi::PackagesUploadHelm.new # PackagesUploadHelm | @@ -1433,9 +1433,9 @@ end api_instance = CloudsmithApi::PackagesApi.new -owner = "owner_example" # String | +owner = 'owner_example' # String | -repo = "repo_example" # String | +repo = 'repo_example' # String | opts = { data: CloudsmithApi::PackagesUploadLuarocks.new # PackagesUploadLuarocks | @@ -1494,9 +1494,9 @@ end api_instance = CloudsmithApi::PackagesApi.new -owner = "owner_example" # String | +owner = 'owner_example' # String | -repo = "repo_example" # String | +repo = 'repo_example' # String | opts = { data: CloudsmithApi::PackagesUploadMaven.new # PackagesUploadMaven | @@ -1555,9 +1555,9 @@ end api_instance = CloudsmithApi::PackagesApi.new -owner = "owner_example" # String | +owner = 'owner_example' # String | -repo = "repo_example" # String | +repo = 'repo_example' # String | opts = { data: CloudsmithApi::PackagesUploadNpm.new # PackagesUploadNpm | @@ -1616,9 +1616,9 @@ end api_instance = CloudsmithApi::PackagesApi.new -owner = "owner_example" # String | +owner = 'owner_example' # String | -repo = "repo_example" # String | +repo = 'repo_example' # String | opts = { data: CloudsmithApi::PackagesUploadNuget.new # PackagesUploadNuget | @@ -1677,9 +1677,9 @@ end api_instance = CloudsmithApi::PackagesApi.new -owner = "owner_example" # String | +owner = 'owner_example' # String | -repo = "repo_example" # String | +repo = 'repo_example' # String | opts = { data: CloudsmithApi::PackagesUploadP2.new # PackagesUploadP2 | @@ -1738,9 +1738,9 @@ end api_instance = CloudsmithApi::PackagesApi.new -owner = "owner_example" # String | +owner = 'owner_example' # String | -repo = "repo_example" # String | +repo = 'repo_example' # String | opts = { data: CloudsmithApi::PackagesUploadPython.new # PackagesUploadPython | @@ -1799,9 +1799,9 @@ end api_instance = CloudsmithApi::PackagesApi.new -owner = "owner_example" # String | +owner = 'owner_example' # String | -repo = "repo_example" # String | +repo = 'repo_example' # String | opts = { data: CloudsmithApi::PackagesUploadRaw.new # PackagesUploadRaw | @@ -1860,9 +1860,9 @@ end api_instance = CloudsmithApi::PackagesApi.new -owner = "owner_example" # String | +owner = 'owner_example' # String | -repo = "repo_example" # String | +repo = 'repo_example' # String | opts = { data: CloudsmithApi::PackagesUploadRpm.new # PackagesUploadRpm | @@ -1921,9 +1921,9 @@ end api_instance = CloudsmithApi::PackagesApi.new -owner = "owner_example" # String | +owner = 'owner_example' # String | -repo = "repo_example" # String | +repo = 'repo_example' # String | opts = { data: CloudsmithApi::PackagesUploadRuby.new # PackagesUploadRuby | @@ -1982,9 +1982,9 @@ end api_instance = CloudsmithApi::PackagesApi.new -owner = "owner_example" # String | +owner = 'owner_example' # String | -repo = "repo_example" # String | +repo = 'repo_example' # String | opts = { data: CloudsmithApi::PackagesUploadTerraform.new # PackagesUploadTerraform | @@ -2043,9 +2043,9 @@ end api_instance = CloudsmithApi::PackagesApi.new -owner = "owner_example" # String | +owner = 'owner_example' # String | -repo = "repo_example" # String | +repo = 'repo_example' # String | opts = { data: CloudsmithApi::PackagesUploadVagrant.new # PackagesUploadVagrant | @@ -2104,9 +2104,9 @@ end api_instance = CloudsmithApi::PackagesApi.new -owner = "owner_example" # String | +owner = 'owner_example' # String | -repo = "repo_example" # String | +repo = 'repo_example' # String | opts = { data: CloudsmithApi::PackagesValidateuploadAlpine.new # PackagesValidateuploadAlpine | @@ -2164,9 +2164,9 @@ end api_instance = CloudsmithApi::PackagesApi.new -owner = "owner_example" # String | +owner = 'owner_example' # String | -repo = "repo_example" # String | +repo = 'repo_example' # String | opts = { data: CloudsmithApi::PackagesValidateuploadCargo.new # PackagesValidateuploadCargo | @@ -2224,9 +2224,9 @@ end api_instance = CloudsmithApi::PackagesApi.new -owner = "owner_example" # String | +owner = 'owner_example' # String | -repo = "repo_example" # String | +repo = 'repo_example' # String | opts = { data: CloudsmithApi::PackagesValidateuploadCocoapods.new # PackagesValidateuploadCocoapods | @@ -2284,9 +2284,9 @@ end api_instance = CloudsmithApi::PackagesApi.new -owner = "owner_example" # String | +owner = 'owner_example' # String | -repo = "repo_example" # String | +repo = 'repo_example' # String | opts = { data: CloudsmithApi::PackagesValidateuploadComposer.new # PackagesValidateuploadComposer | @@ -2344,9 +2344,9 @@ end api_instance = CloudsmithApi::PackagesApi.new -owner = "owner_example" # String | +owner = 'owner_example' # String | -repo = "repo_example" # String | +repo = 'repo_example' # String | opts = { data: CloudsmithApi::PackagesValidateuploadConan.new # PackagesValidateuploadConan | @@ -2404,9 +2404,9 @@ end api_instance = CloudsmithApi::PackagesApi.new -owner = "owner_example" # String | +owner = 'owner_example' # String | -repo = "repo_example" # String | +repo = 'repo_example' # String | opts = { data: CloudsmithApi::PackagesValidateuploadConda.new # PackagesValidateuploadConda | @@ -2464,9 +2464,9 @@ end api_instance = CloudsmithApi::PackagesApi.new -owner = "owner_example" # String | +owner = 'owner_example' # String | -repo = "repo_example" # String | +repo = 'repo_example' # String | opts = { data: CloudsmithApi::PackagesValidateuploadCran.new # PackagesValidateuploadCran | @@ -2524,9 +2524,9 @@ end api_instance = CloudsmithApi::PackagesApi.new -owner = "owner_example" # String | +owner = 'owner_example' # String | -repo = "repo_example" # String | +repo = 'repo_example' # String | opts = { data: CloudsmithApi::PackagesValidateuploadDart.new # PackagesValidateuploadDart | @@ -2584,9 +2584,9 @@ end api_instance = CloudsmithApi::PackagesApi.new -owner = "owner_example" # String | +owner = 'owner_example' # String | -repo = "repo_example" # String | +repo = 'repo_example' # String | opts = { data: CloudsmithApi::PackagesValidateuploadDeb.new # PackagesValidateuploadDeb | @@ -2644,9 +2644,9 @@ end api_instance = CloudsmithApi::PackagesApi.new -owner = "owner_example" # String | +owner = 'owner_example' # String | -repo = "repo_example" # String | +repo = 'repo_example' # String | opts = { data: CloudsmithApi::PackagesValidateuploadDocker.new # PackagesValidateuploadDocker | @@ -2704,9 +2704,9 @@ end api_instance = CloudsmithApi::PackagesApi.new -owner = "owner_example" # String | +owner = 'owner_example' # String | -repo = "repo_example" # String | +repo = 'repo_example' # String | opts = { data: CloudsmithApi::PackagesValidateuploadGo.new # PackagesValidateuploadGo | @@ -2764,9 +2764,9 @@ end api_instance = CloudsmithApi::PackagesApi.new -owner = "owner_example" # String | +owner = 'owner_example' # String | -repo = "repo_example" # String | +repo = 'repo_example' # String | opts = { data: CloudsmithApi::PackagesValidateuploadHelm.new # PackagesValidateuploadHelm | @@ -2824,9 +2824,9 @@ end api_instance = CloudsmithApi::PackagesApi.new -owner = "owner_example" # String | +owner = 'owner_example' # String | -repo = "repo_example" # String | +repo = 'repo_example' # String | opts = { data: CloudsmithApi::PackagesValidateuploadLuarocks.new # PackagesValidateuploadLuarocks | @@ -2884,9 +2884,9 @@ end api_instance = CloudsmithApi::PackagesApi.new -owner = "owner_example" # String | +owner = 'owner_example' # String | -repo = "repo_example" # String | +repo = 'repo_example' # String | opts = { data: CloudsmithApi::PackagesValidateuploadMaven.new # PackagesValidateuploadMaven | @@ -2944,9 +2944,9 @@ end api_instance = CloudsmithApi::PackagesApi.new -owner = "owner_example" # String | +owner = 'owner_example' # String | -repo = "repo_example" # String | +repo = 'repo_example' # String | opts = { data: CloudsmithApi::PackagesValidateuploadNpm.new # PackagesValidateuploadNpm | @@ -3004,9 +3004,9 @@ end api_instance = CloudsmithApi::PackagesApi.new -owner = "owner_example" # String | +owner = 'owner_example' # String | -repo = "repo_example" # String | +repo = 'repo_example' # String | opts = { data: CloudsmithApi::PackagesValidateuploadNuget.new # PackagesValidateuploadNuget | @@ -3064,9 +3064,9 @@ end api_instance = CloudsmithApi::PackagesApi.new -owner = "owner_example" # String | +owner = 'owner_example' # String | -repo = "repo_example" # String | +repo = 'repo_example' # String | opts = { data: CloudsmithApi::PackagesValidateuploadP2.new # PackagesValidateuploadP2 | @@ -3124,9 +3124,9 @@ end api_instance = CloudsmithApi::PackagesApi.new -owner = "owner_example" # String | +owner = 'owner_example' # String | -repo = "repo_example" # String | +repo = 'repo_example' # String | opts = { data: CloudsmithApi::PackagesValidateuploadPython.new # PackagesValidateuploadPython | @@ -3184,9 +3184,9 @@ end api_instance = CloudsmithApi::PackagesApi.new -owner = "owner_example" # String | +owner = 'owner_example' # String | -repo = "repo_example" # String | +repo = 'repo_example' # String | opts = { data: CloudsmithApi::PackagesValidateuploadRaw.new # PackagesValidateuploadRaw | @@ -3244,9 +3244,9 @@ end api_instance = CloudsmithApi::PackagesApi.new -owner = "owner_example" # String | +owner = 'owner_example' # String | -repo = "repo_example" # String | +repo = 'repo_example' # String | opts = { data: CloudsmithApi::PackagesValidateuploadRpm.new # PackagesValidateuploadRpm | @@ -3304,9 +3304,9 @@ end api_instance = CloudsmithApi::PackagesApi.new -owner = "owner_example" # String | +owner = 'owner_example' # String | -repo = "repo_example" # String | +repo = 'repo_example' # String | opts = { data: CloudsmithApi::PackagesValidateuploadRuby.new # PackagesValidateuploadRuby | @@ -3364,9 +3364,9 @@ end api_instance = CloudsmithApi::PackagesApi.new -owner = "owner_example" # String | +owner = 'owner_example' # String | -repo = "repo_example" # String | +repo = 'repo_example' # String | opts = { data: CloudsmithApi::PackagesValidateuploadTerraform.new # PackagesValidateuploadTerraform | @@ -3424,9 +3424,9 @@ end api_instance = CloudsmithApi::PackagesApi.new -owner = "owner_example" # String | +owner = 'owner_example' # String | -repo = "repo_example" # String | +repo = 'repo_example' # String | opts = { data: CloudsmithApi::PackagesValidateuploadVagrant.new # PackagesValidateuploadVagrant | diff --git a/bindings/ruby/src/docs/QuotaApi.md b/bindings/ruby/src/docs/QuotaApi.md index 459a5df1..d94513bf 100644 --- a/bindings/ruby/src/docs/QuotaApi.md +++ b/bindings/ruby/src/docs/QuotaApi.md @@ -31,7 +31,7 @@ end api_instance = CloudsmithApi::QuotaApi.new -owner = "owner_example" # String | +owner = 'owner_example' # String | begin @@ -85,7 +85,7 @@ end api_instance = CloudsmithApi::QuotaApi.new -owner = "owner_example" # String | +owner = 'owner_example' # String | begin @@ -139,7 +139,7 @@ end api_instance = CloudsmithApi::QuotaApi.new -owner = "owner_example" # String | +owner = 'owner_example' # String | begin @@ -193,7 +193,7 @@ end api_instance = CloudsmithApi::QuotaApi.new -owner = "owner_example" # String | +owner = 'owner_example' # String | begin diff --git a/bindings/ruby/src/docs/ReposApi.md b/bindings/ruby/src/docs/ReposApi.md index 81de4499..de40fecf 100644 --- a/bindings/ruby/src/docs/ReposApi.md +++ b/bindings/ruby/src/docs/ReposApi.md @@ -90,7 +90,7 @@ end api_instance = CloudsmithApi::ReposApi.new -owner = "owner_example" # String | +owner = 'owner_example' # String | opts = { data: CloudsmithApi::ReposCreate.new # ReposCreate | @@ -148,9 +148,9 @@ end api_instance = CloudsmithApi::ReposApi.new -owner = "owner_example" # String | +owner = 'owner_example' # String | -identifier = "identifier_example" # String | +identifier = 'identifier_example' # String | begin @@ -204,7 +204,7 @@ end api_instance = CloudsmithApi::ReposApi.new -owner = "owner_example" # String | +owner = 'owner_example' # String | opts = { page: 56, # Integer | A page number within the paginated result set. @@ -264,9 +264,9 @@ end api_instance = CloudsmithApi::ReposApi.new -owner = "owner_example" # String | +owner = 'owner_example' # String | -identifier = "identifier_example" # String | +identifier = 'identifier_example' # String | opts = { data: CloudsmithApi::ReposPartialUpdate.new # ReposPartialUpdate | @@ -325,9 +325,9 @@ end api_instance = CloudsmithApi::ReposApi.new -owner = "owner_example" # String | +owner = 'owner_example' # String | -identifier = "identifier_example" # String | +identifier = 'identifier_example' # String | begin diff --git a/bindings/ruby/src/docs/StorageregionsApi.md b/bindings/ruby/src/docs/StorageregionsApi.md index f6db4263..0ed3083d 100644 --- a/bindings/ruby/src/docs/StorageregionsApi.md +++ b/bindings/ruby/src/docs/StorageregionsApi.md @@ -1,11 +1,11 @@ -# CloudsmithApi::StorageregionsApi +# CloudsmithApi::StorageRegionsApi All URIs are relative to *https://api.cloudsmith.io/v1* Method | HTTP request | Description ------------- | ------------- | ------------- -[**storage_regions_list**](StorageregionsApi.md#storage_regions_list) | **GET** /storage-regions/ | Get a list of all available storage regions. -[**storage_regions_read**](StorageregionsApi.md#storage_regions_read) | **GET** /storage-regions/{slug}/ | Get a specific storage region. +[**storage_regions_list**](StorageRegionsApi.md#storage_regions_list) | **GET** /storage-regions/ | Get a list of all available storage regions. +[**storage_regions_read**](StorageRegionsApi.md#storage_regions_read) | **GET** /storage-regions/{slug}/ | Get a specific storage region. # **storage_regions_list** @@ -27,14 +27,14 @@ CloudsmithApi.configure do |config| #config.api_key_prefix['X-Api-Key'] = 'Bearer' end -api_instance = CloudsmithApi::StorageregionsApi.new +api_instance = CloudsmithApi::StorageRegionsApi.new begin #Get a list of all available storage regions. result = api_instance.storage_regions_list p result rescue CloudsmithApi::ApiError => e - puts "Exception when calling StorageregionsApi->storage_regions_list: #{e}" + puts "Exception when calling StorageRegionsApi->storage_regions_list: #{e}" end ``` @@ -75,9 +75,9 @@ CloudsmithApi.configure do |config| #config.api_key_prefix['X-Api-Key'] = 'Bearer' end -api_instance = CloudsmithApi::StorageregionsApi.new +api_instance = CloudsmithApi::StorageRegionsApi.new -slug = "slug_example" # String | +slug = 'slug_example' # String | begin @@ -85,7 +85,7 @@ begin result = api_instance.storage_regions_read(slug) p result rescue CloudsmithApi::ApiError => e - puts "Exception when calling StorageregionsApi->storage_regions_read: #{e}" + puts "Exception when calling StorageRegionsApi->storage_regions_read: #{e}" end ``` diff --git a/bindings/ruby/src/docs/UsersApi.md b/bindings/ruby/src/docs/UsersApi.md index fad4292a..ae1e0723 100644 --- a/bindings/ruby/src/docs/UsersApi.md +++ b/bindings/ruby/src/docs/UsersApi.md @@ -28,7 +28,7 @@ end api_instance = CloudsmithApi::UsersApi.new -slug = "slug_example" # String | +slug = 'slug_example' # String | begin diff --git a/bindings/ruby/src/docs/VulnerabilitiesApi.md b/bindings/ruby/src/docs/VulnerabilitiesApi.md index 3238f907..2ab9def9 100644 --- a/bindings/ruby/src/docs/VulnerabilitiesApi.md +++ b/bindings/ruby/src/docs/VulnerabilitiesApi.md @@ -31,7 +31,7 @@ end api_instance = CloudsmithApi::VulnerabilitiesApi.new -owner = "owner_example" # String | +owner = 'owner_example' # String | opts = { page: 56, # Integer | A page number within the paginated result set. @@ -91,9 +91,9 @@ end api_instance = CloudsmithApi::VulnerabilitiesApi.new -owner = "owner_example" # String | +owner = 'owner_example' # String | -repo = "repo_example" # String | +repo = 'repo_example' # String | opts = { page: 56, # Integer | A page number within the paginated result set. @@ -154,11 +154,11 @@ end api_instance = CloudsmithApi::VulnerabilitiesApi.new -owner = "owner_example" # String | +owner = 'owner_example' # String | -repo = "repo_example" # String | +repo = 'repo_example' # String | -package = "package_example" # String | +package = 'package_example' # String | opts = { page: 56, # Integer | A page number within the paginated result set. @@ -220,13 +220,13 @@ end api_instance = CloudsmithApi::VulnerabilitiesApi.new -owner = "owner_example" # String | +owner = 'owner_example' # String | -repo = "repo_example" # String | +repo = 'repo_example' # String | -package = "package_example" # String | +package = 'package_example' # String | -scan_id = "scan_id_example" # String | +scan_id = 'scan_id_example' # String | begin diff --git a/bindings/ruby/src/docs/WebhooksApi.md b/bindings/ruby/src/docs/WebhooksApi.md index 8de2fa04..b67ffca4 100644 --- a/bindings/ruby/src/docs/WebhooksApi.md +++ b/bindings/ruby/src/docs/WebhooksApi.md @@ -32,9 +32,9 @@ end api_instance = CloudsmithApi::WebhooksApi.new -owner = "owner_example" # String | +owner = 'owner_example' # String | -repo = "repo_example" # String | +repo = 'repo_example' # String | opts = { data: CloudsmithApi::WebhooksCreate.new # WebhooksCreate | @@ -93,11 +93,11 @@ end api_instance = CloudsmithApi::WebhooksApi.new -owner = "owner_example" # String | +owner = 'owner_example' # String | -repo = "repo_example" # String | +repo = 'repo_example' # String | -identifier = "identifier_example" # String | +identifier = 'identifier_example' # String | begin @@ -152,9 +152,9 @@ end api_instance = CloudsmithApi::WebhooksApi.new -owner = "owner_example" # String | +owner = 'owner_example' # String | -repo = "repo_example" # String | +repo = 'repo_example' # String | opts = { page: 56, # Integer | A page number within the paginated result set. @@ -215,11 +215,11 @@ end api_instance = CloudsmithApi::WebhooksApi.new -owner = "owner_example" # String | +owner = 'owner_example' # String | -repo = "repo_example" # String | +repo = 'repo_example' # String | -identifier = "identifier_example" # String | +identifier = 'identifier_example' # String | opts = { data: CloudsmithApi::WebhooksPartialUpdate.new # WebhooksPartialUpdate | @@ -279,11 +279,11 @@ end api_instance = CloudsmithApi::WebhooksApi.new -owner = "owner_example" # String | +owner = 'owner_example' # String | -repo = "repo_example" # String | +repo = 'repo_example' # String | -identifier = "identifier_example" # String | +identifier = 'identifier_example' # String | begin diff --git a/bindings/ruby/src/git_push.sh b/bindings/ruby/src/git_push.sh index 4eae2c26..ed7340e0 100644 --- a/bindings/ruby/src/git_push.sh +++ b/bindings/ruby/src/git_push.sh @@ -39,7 +39,7 @@ git_remote=`git remote` if [ "$git_remote" = "" ]; then # git remote not defined if [ "$GIT_TOKEN" = "" ]; then - echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git crediential in your environment." + echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git else git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git diff --git a/bindings/ruby/src/lib/cloudsmith-api.rb b/bindings/ruby/src/lib/cloudsmith-api.rb index b54544c9..dce2a15f 100644 --- a/bindings/ruby/src/lib/cloudsmith-api.rb +++ b/bindings/ruby/src/lib/cloudsmith-api.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -138,7 +138,7 @@ require 'cloudsmith-api/api/rates_api' require 'cloudsmith-api/api/repos_api' require 'cloudsmith-api/api/status_api' -require 'cloudsmith-api/api/storageregions_api' +require 'cloudsmith-api/api/storage_regions_api' require 'cloudsmith-api/api/user_api' require 'cloudsmith-api/api/users_api' require 'cloudsmith-api/api/vulnerabilities_api' diff --git a/bindings/ruby/src/lib/cloudsmith-api/api/badges_api.rb b/bindings/ruby/src/lib/cloudsmith-api/api/badges_api.rb index c954335a..6deef022 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/api/badges_api.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/api/badges_api.rb @@ -6,11 +6,11 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end -require "uri" +require 'uri' module CloudsmithApi class BadgesApi @@ -19,7 +19,6 @@ class BadgesApi def initialize(api_client = ApiClient.default) @api_client = api_client end - # Get latest package version for a package or package group. # Get latest package version for a package or package group. # @param owner @@ -40,10 +39,10 @@ def initialize(api_client = ApiClient.default) # @option opts [BOOLEAN] :shields If true, a shields response will be generated # @option opts [BOOLEAN] :show_latest If true, for latest version badges a '(latest)' suffix is added # @option opts [String] :style Override the shields.io badge style value. - # @return [nil] + # @return [Object] def badges_version_list(owner, repo, package_format, package_name, package_version, package_identifiers, opts = {}) - badges_version_list_with_http_info(owner, repo, package_format, package_name, package_version, package_identifiers, opts) - return nil + data, _status_code, _headers = badges_version_list_with_http_info(owner, repo, package_format, package_name, package_version, package_identifiers, opts) + data end # Get latest package version for a package or package group. @@ -66,10 +65,10 @@ def badges_version_list(owner, repo, package_format, package_name, package_versi # @option opts [BOOLEAN] :shields If true, a shields response will be generated # @option opts [BOOLEAN] :show_latest If true, for latest version badges a '(latest)' suffix is added # @option opts [String] :style Override the shields.io badge style value. - # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers + # @return [Array<(Object, Fixnum, Hash)>] Object data, response status code and response headers def badges_version_list_with_http_info(owner, repo, package_format, package_name, package_version, package_identifiers, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: BadgesApi.badges_version_list ..." + @api_client.config.logger.debug 'Calling API: BadgesApi.badges_version_list ...' end # verify the required parameter 'owner' is set if @api_client.config.client_side_validation && owner.nil? @@ -96,7 +95,7 @@ def badges_version_list_with_http_info(owner, repo, package_format, package_name fail ArgumentError, "Missing the required parameter 'package_identifiers' when calling BadgesApi.badges_version_list" end # resource path - local_var_path = "/badges/version/{owner}/{repo}/{package_format}/{package_name}/{package_version}/{package_identifiers}/".sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s).sub('{' + 'package_format' + '}', package_format.to_s).sub('{' + 'package_name' + '}', package_name.to_s).sub('{' + 'package_version' + '}', package_version.to_s).sub('{' + 'package_identifiers' + '}', package_identifiers.to_s) + local_var_path = '/badges/version/{owner}/{repo}/{package_format}/{package_name}/{package_version}/{package_identifiers}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s).sub('{' + 'package_format' + '}', package_format.to_s).sub('{' + 'package_name' + '}', package_name.to_s).sub('{' + 'package_version' + '}', package_version.to_s).sub('{' + 'package_identifiers' + '}', package_identifiers.to_s) # query parameters query_params = {} @@ -126,7 +125,8 @@ def badges_version_list_with_http_info(owner, repo, package_format, package_name :query_params => query_params, :form_params => form_params, :body => post_body, - :auth_names => auth_names) + :auth_names => auth_names, + :return_type => 'Object') if @api_client.config.debugging @api_client.config.logger.debug "API called: BadgesApi#badges_version_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end diff --git a/bindings/ruby/src/lib/cloudsmith-api/api/distros_api.rb b/bindings/ruby/src/lib/cloudsmith-api/api/distros_api.rb index f28cc543..25055887 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/api/distros_api.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/api/distros_api.rb @@ -6,11 +6,11 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end -require "uri" +require 'uri' module CloudsmithApi class DistrosApi @@ -19,14 +19,13 @@ class DistrosApi def initialize(api_client = ApiClient.default) @api_client = api_client end - # Get a list of all supported distributions. # Get a list of all supported distributions. # @param [Hash] opts the optional parameters # @return [Array] def distros_list(opts = {}) data, _status_code, _headers = distros_list_with_http_info(opts) - return data + data end # Get a list of all supported distributions. @@ -35,10 +34,10 @@ def distros_list(opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def distros_list_with_http_info(opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: DistrosApi.distros_list ..." + @api_client.config.logger.debug 'Calling API: DistrosApi.distros_list ...' end # resource path - local_var_path = "/distros/" + local_var_path = '/distros/' # query parameters query_params = {} @@ -64,7 +63,6 @@ def distros_list_with_http_info(opts = {}) end return data, status_code, headers end - # View for viewing/listing distributions. # View for viewing/listing distributions. # @param slug @@ -72,7 +70,7 @@ def distros_list_with_http_info(opts = {}) # @return [Distribution] def distros_read(slug, opts = {}) data, _status_code, _headers = distros_read_with_http_info(slug, opts) - return data + data end # View for viewing/listing distributions. @@ -82,14 +80,14 @@ def distros_read(slug, opts = {}) # @return [Array<(Distribution, Fixnum, Hash)>] Distribution data, response status code and response headers def distros_read_with_http_info(slug, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: DistrosApi.distros_read ..." + @api_client.config.logger.debug 'Calling API: DistrosApi.distros_read ...' end # verify the required parameter 'slug' is set if @api_client.config.client_side_validation && slug.nil? fail ArgumentError, "Missing the required parameter 'slug' when calling DistrosApi.distros_read" end # resource path - local_var_path = "/distros/{slug}/".sub('{' + 'slug' + '}', slug.to_s) + local_var_path = '/distros/{slug}/'.sub('{' + 'slug' + '}', slug.to_s) # query parameters query_params = {} diff --git a/bindings/ruby/src/lib/cloudsmith-api/api/entitlements_api.rb b/bindings/ruby/src/lib/cloudsmith-api/api/entitlements_api.rb index 0f6f8f93..ca302a5b 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/api/entitlements_api.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/api/entitlements_api.rb @@ -6,11 +6,11 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end -require "uri" +require 'uri' module CloudsmithApi class EntitlementsApi @@ -19,7 +19,6 @@ class EntitlementsApi def initialize(api_client = ApiClient.default) @api_client = api_client end - # Create a specific entitlement in a repository. # Create a specific entitlement in a repository. # @param owner @@ -30,7 +29,7 @@ def initialize(api_client = ApiClient.default) # @return [RepositoryToken] def entitlements_create(owner, repo, opts = {}) data, _status_code, _headers = entitlements_create_with_http_info(owner, repo, opts) - return data + data end # Create a specific entitlement in a repository. @@ -43,7 +42,7 @@ def entitlements_create(owner, repo, opts = {}) # @return [Array<(RepositoryToken, Fixnum, Hash)>] RepositoryToken data, response status code and response headers def entitlements_create_with_http_info(owner, repo, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: EntitlementsApi.entitlements_create ..." + @api_client.config.logger.debug 'Calling API: EntitlementsApi.entitlements_create ...' end # verify the required parameter 'owner' is set if @api_client.config.client_side_validation && owner.nil? @@ -54,7 +53,7 @@ def entitlements_create_with_http_info(owner, repo, opts = {}) fail ArgumentError, "Missing the required parameter 'repo' when calling EntitlementsApi.entitlements_create" end # resource path - local_var_path = "/entitlements/{owner}/{repo}/".sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) + local_var_path = '/entitlements/{owner}/{repo}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) # query parameters query_params = {} @@ -83,7 +82,6 @@ def entitlements_create_with_http_info(owner, repo, opts = {}) end return data, status_code, headers end - # Delete a specific entitlement in a repository. # Delete a specific entitlement in a repository. # @param owner @@ -93,7 +91,7 @@ def entitlements_create_with_http_info(owner, repo, opts = {}) # @return [nil] def entitlements_delete(owner, repo, identifier, opts = {}) entitlements_delete_with_http_info(owner, repo, identifier, opts) - return nil + nil end # Delete a specific entitlement in a repository. @@ -105,7 +103,7 @@ def entitlements_delete(owner, repo, identifier, opts = {}) # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def entitlements_delete_with_http_info(owner, repo, identifier, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: EntitlementsApi.entitlements_delete ..." + @api_client.config.logger.debug 'Calling API: EntitlementsApi.entitlements_delete ...' end # verify the required parameter 'owner' is set if @api_client.config.client_side_validation && owner.nil? @@ -120,7 +118,7 @@ def entitlements_delete_with_http_info(owner, repo, identifier, opts = {}) fail ArgumentError, "Missing the required parameter 'identifier' when calling EntitlementsApi.entitlements_delete" end # resource path - local_var_path = "/entitlements/{owner}/{repo}/{identifier}/".sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s).sub('{' + 'identifier' + '}', identifier.to_s) + local_var_path = '/entitlements/{owner}/{repo}/{identifier}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s).sub('{' + 'identifier' + '}', identifier.to_s) # query parameters query_params = {} @@ -145,7 +143,6 @@ def entitlements_delete_with_http_info(owner, repo, identifier, opts = {}) end return data, status_code, headers end - # Disable an entitlement token in a repository. # Disable an entitlement token in a repository. # @param owner @@ -155,7 +152,7 @@ def entitlements_delete_with_http_info(owner, repo, identifier, opts = {}) # @return [nil] def entitlements_disable(owner, repo, identifier, opts = {}) entitlements_disable_with_http_info(owner, repo, identifier, opts) - return nil + nil end # Disable an entitlement token in a repository. @@ -167,7 +164,7 @@ def entitlements_disable(owner, repo, identifier, opts = {}) # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def entitlements_disable_with_http_info(owner, repo, identifier, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: EntitlementsApi.entitlements_disable ..." + @api_client.config.logger.debug 'Calling API: EntitlementsApi.entitlements_disable ...' end # verify the required parameter 'owner' is set if @api_client.config.client_side_validation && owner.nil? @@ -182,7 +179,7 @@ def entitlements_disable_with_http_info(owner, repo, identifier, opts = {}) fail ArgumentError, "Missing the required parameter 'identifier' when calling EntitlementsApi.entitlements_disable" end # resource path - local_var_path = "/entitlements/{owner}/{repo}/{identifier}/disable/".sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s).sub('{' + 'identifier' + '}', identifier.to_s) + local_var_path = '/entitlements/{owner}/{repo}/{identifier}/disable/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s).sub('{' + 'identifier' + '}', identifier.to_s) # query parameters query_params = {} @@ -207,7 +204,6 @@ def entitlements_disable_with_http_info(owner, repo, identifier, opts = {}) end return data, status_code, headers end - # Enable an entitlement token in a repository. # Enable an entitlement token in a repository. # @param owner @@ -217,7 +213,7 @@ def entitlements_disable_with_http_info(owner, repo, identifier, opts = {}) # @return [nil] def entitlements_enable(owner, repo, identifier, opts = {}) entitlements_enable_with_http_info(owner, repo, identifier, opts) - return nil + nil end # Enable an entitlement token in a repository. @@ -229,7 +225,7 @@ def entitlements_enable(owner, repo, identifier, opts = {}) # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def entitlements_enable_with_http_info(owner, repo, identifier, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: EntitlementsApi.entitlements_enable ..." + @api_client.config.logger.debug 'Calling API: EntitlementsApi.entitlements_enable ...' end # verify the required parameter 'owner' is set if @api_client.config.client_side_validation && owner.nil? @@ -244,7 +240,7 @@ def entitlements_enable_with_http_info(owner, repo, identifier, opts = {}) fail ArgumentError, "Missing the required parameter 'identifier' when calling EntitlementsApi.entitlements_enable" end # resource path - local_var_path = "/entitlements/{owner}/{repo}/{identifier}/enable/".sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s).sub('{' + 'identifier' + '}', identifier.to_s) + local_var_path = '/entitlements/{owner}/{repo}/{identifier}/enable/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s).sub('{' + 'identifier' + '}', identifier.to_s) # query parameters query_params = {} @@ -269,7 +265,6 @@ def entitlements_enable_with_http_info(owner, repo, identifier, opts = {}) end return data, status_code, headers end - # Get a list of all entitlements in a repository. # Get a list of all entitlements in a repository. # @param owner @@ -281,7 +276,7 @@ def entitlements_enable_with_http_info(owner, repo, identifier, opts = {}) # @return [Array] def entitlements_list(owner, repo, opts = {}) data, _status_code, _headers = entitlements_list_with_http_info(owner, repo, opts) - return data + data end # Get a list of all entitlements in a repository. @@ -295,7 +290,7 @@ def entitlements_list(owner, repo, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def entitlements_list_with_http_info(owner, repo, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: EntitlementsApi.entitlements_list ..." + @api_client.config.logger.debug 'Calling API: EntitlementsApi.entitlements_list ...' end # verify the required parameter 'owner' is set if @api_client.config.client_side_validation && owner.nil? @@ -306,7 +301,7 @@ def entitlements_list_with_http_info(owner, repo, opts = {}) fail ArgumentError, "Missing the required parameter 'repo' when calling EntitlementsApi.entitlements_list" end # resource path - local_var_path = "/entitlements/{owner}/{repo}/".sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) + local_var_path = '/entitlements/{owner}/{repo}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) # query parameters query_params = {} @@ -335,7 +330,6 @@ def entitlements_list_with_http_info(owner, repo, opts = {}) end return data, status_code, headers end - # Update a specific entitlement in a repository. # Update a specific entitlement in a repository. # @param owner @@ -347,7 +341,7 @@ def entitlements_list_with_http_info(owner, repo, opts = {}) # @return [RepositoryToken] def entitlements_partial_update(owner, repo, identifier, opts = {}) data, _status_code, _headers = entitlements_partial_update_with_http_info(owner, repo, identifier, opts) - return data + data end # Update a specific entitlement in a repository. @@ -361,7 +355,7 @@ def entitlements_partial_update(owner, repo, identifier, opts = {}) # @return [Array<(RepositoryToken, Fixnum, Hash)>] RepositoryToken data, response status code and response headers def entitlements_partial_update_with_http_info(owner, repo, identifier, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: EntitlementsApi.entitlements_partial_update ..." + @api_client.config.logger.debug 'Calling API: EntitlementsApi.entitlements_partial_update ...' end # verify the required parameter 'owner' is set if @api_client.config.client_side_validation && owner.nil? @@ -376,7 +370,7 @@ def entitlements_partial_update_with_http_info(owner, repo, identifier, opts = { fail ArgumentError, "Missing the required parameter 'identifier' when calling EntitlementsApi.entitlements_partial_update" end # resource path - local_var_path = "/entitlements/{owner}/{repo}/{identifier}/".sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s).sub('{' + 'identifier' + '}', identifier.to_s) + local_var_path = '/entitlements/{owner}/{repo}/{identifier}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s).sub('{' + 'identifier' + '}', identifier.to_s) # query parameters query_params = {} @@ -405,7 +399,6 @@ def entitlements_partial_update_with_http_info(owner, repo, identifier, opts = { end return data, status_code, headers end - # Get a specific entitlement in a repository. # Get a specific entitlement in a repository. # @param owner @@ -416,7 +409,7 @@ def entitlements_partial_update_with_http_info(owner, repo, identifier, opts = { # @return [RepositoryToken] def entitlements_read(owner, repo, identifier, opts = {}) data, _status_code, _headers = entitlements_read_with_http_info(owner, repo, identifier, opts) - return data + data end # Get a specific entitlement in a repository. @@ -429,7 +422,7 @@ def entitlements_read(owner, repo, identifier, opts = {}) # @return [Array<(RepositoryToken, Fixnum, Hash)>] RepositoryToken data, response status code and response headers def entitlements_read_with_http_info(owner, repo, identifier, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: EntitlementsApi.entitlements_read ..." + @api_client.config.logger.debug 'Calling API: EntitlementsApi.entitlements_read ...' end # verify the required parameter 'owner' is set if @api_client.config.client_side_validation && owner.nil? @@ -444,7 +437,7 @@ def entitlements_read_with_http_info(owner, repo, identifier, opts = {}) fail ArgumentError, "Missing the required parameter 'identifier' when calling EntitlementsApi.entitlements_read" end # resource path - local_var_path = "/entitlements/{owner}/{repo}/{identifier}/".sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s).sub('{' + 'identifier' + '}', identifier.to_s) + local_var_path = '/entitlements/{owner}/{repo}/{identifier}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s).sub('{' + 'identifier' + '}', identifier.to_s) # query parameters query_params = {} @@ -471,7 +464,6 @@ def entitlements_read_with_http_info(owner, repo, identifier, opts = {}) end return data, status_code, headers end - # Refresh an entitlement token in a repository. # Refresh an entitlement token in a repository. # @param owner @@ -483,7 +475,7 @@ def entitlements_read_with_http_info(owner, repo, identifier, opts = {}) # @return [RepositoryTokenRefresh] def entitlements_refresh(owner, repo, identifier, opts = {}) data, _status_code, _headers = entitlements_refresh_with_http_info(owner, repo, identifier, opts) - return data + data end # Refresh an entitlement token in a repository. @@ -497,7 +489,7 @@ def entitlements_refresh(owner, repo, identifier, opts = {}) # @return [Array<(RepositoryTokenRefresh, Fixnum, Hash)>] RepositoryTokenRefresh data, response status code and response headers def entitlements_refresh_with_http_info(owner, repo, identifier, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: EntitlementsApi.entitlements_refresh ..." + @api_client.config.logger.debug 'Calling API: EntitlementsApi.entitlements_refresh ...' end # verify the required parameter 'owner' is set if @api_client.config.client_side_validation && owner.nil? @@ -512,7 +504,7 @@ def entitlements_refresh_with_http_info(owner, repo, identifier, opts = {}) fail ArgumentError, "Missing the required parameter 'identifier' when calling EntitlementsApi.entitlements_refresh" end # resource path - local_var_path = "/entitlements/{owner}/{repo}/{identifier}/refresh/".sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s).sub('{' + 'identifier' + '}', identifier.to_s) + local_var_path = '/entitlements/{owner}/{repo}/{identifier}/refresh/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s).sub('{' + 'identifier' + '}', identifier.to_s) # query parameters query_params = {} @@ -541,7 +533,6 @@ def entitlements_refresh_with_http_info(owner, repo, identifier, opts = {}) end return data, status_code, headers end - # Reset the statistics for an entitlement token in a repository. # Reset the statistics for an entitlement token in a repository. # @param owner @@ -552,7 +543,7 @@ def entitlements_refresh_with_http_info(owner, repo, identifier, opts = {}) # @return [nil] def entitlements_reset(owner, repo, identifier, opts = {}) entitlements_reset_with_http_info(owner, repo, identifier, opts) - return nil + nil end # Reset the statistics for an entitlement token in a repository. @@ -565,7 +556,7 @@ def entitlements_reset(owner, repo, identifier, opts = {}) # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def entitlements_reset_with_http_info(owner, repo, identifier, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: EntitlementsApi.entitlements_reset ..." + @api_client.config.logger.debug 'Calling API: EntitlementsApi.entitlements_reset ...' end # verify the required parameter 'owner' is set if @api_client.config.client_side_validation && owner.nil? @@ -580,7 +571,7 @@ def entitlements_reset_with_http_info(owner, repo, identifier, opts = {}) fail ArgumentError, "Missing the required parameter 'identifier' when calling EntitlementsApi.entitlements_reset" end # resource path - local_var_path = "/entitlements/{owner}/{repo}/{identifier}/reset/".sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s).sub('{' + 'identifier' + '}', identifier.to_s) + local_var_path = '/entitlements/{owner}/{repo}/{identifier}/reset/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s).sub('{' + 'identifier' + '}', identifier.to_s) # query parameters query_params = {} @@ -606,7 +597,6 @@ def entitlements_reset_with_http_info(owner, repo, identifier, opts = {}) end return data, status_code, headers end - # Synchronise tokens from a source repository. # Synchronise tokens from a source repository. # @param owner @@ -617,7 +607,7 @@ def entitlements_reset_with_http_info(owner, repo, identifier, opts = {}) # @return [RepositoryTokenSync] def entitlements_sync(owner, repo, opts = {}) data, _status_code, _headers = entitlements_sync_with_http_info(owner, repo, opts) - return data + data end # Synchronise tokens from a source repository. @@ -630,7 +620,7 @@ def entitlements_sync(owner, repo, opts = {}) # @return [Array<(RepositoryTokenSync, Fixnum, Hash)>] RepositoryTokenSync data, response status code and response headers def entitlements_sync_with_http_info(owner, repo, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: EntitlementsApi.entitlements_sync ..." + @api_client.config.logger.debug 'Calling API: EntitlementsApi.entitlements_sync ...' end # verify the required parameter 'owner' is set if @api_client.config.client_side_validation && owner.nil? @@ -641,7 +631,7 @@ def entitlements_sync_with_http_info(owner, repo, opts = {}) fail ArgumentError, "Missing the required parameter 'repo' when calling EntitlementsApi.entitlements_sync" end # resource path - local_var_path = "/entitlements/{owner}/{repo}/sync/".sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) + local_var_path = '/entitlements/{owner}/{repo}/sync/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) # query parameters query_params = {} diff --git a/bindings/ruby/src/lib/cloudsmith-api/api/files_api.rb b/bindings/ruby/src/lib/cloudsmith-api/api/files_api.rb index a8ce0211..9f6162f1 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/api/files_api.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/api/files_api.rb @@ -6,11 +6,11 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end -require "uri" +require 'uri' module CloudsmithApi class FilesApi @@ -19,7 +19,6 @@ class FilesApi def initialize(api_client = ApiClient.default) @api_client = api_client end - # Abort a multipart file upload. # Abort a multipart file upload. # @param owner @@ -30,7 +29,7 @@ def initialize(api_client = ApiClient.default) # @return [nil] def files_abort(owner, repo, identifier, opts = {}) files_abort_with_http_info(owner, repo, identifier, opts) - return nil + nil end # Abort a multipart file upload. @@ -43,7 +42,7 @@ def files_abort(owner, repo, identifier, opts = {}) # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def files_abort_with_http_info(owner, repo, identifier, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: FilesApi.files_abort ..." + @api_client.config.logger.debug 'Calling API: FilesApi.files_abort ...' end # verify the required parameter 'owner' is set if @api_client.config.client_side_validation && owner.nil? @@ -58,7 +57,7 @@ def files_abort_with_http_info(owner, repo, identifier, opts = {}) fail ArgumentError, "Missing the required parameter 'identifier' when calling FilesApi.files_abort" end # resource path - local_var_path = "/files/{owner}/{repo}/{identifier}/abort/".sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s).sub('{' + 'identifier' + '}', identifier.to_s) + local_var_path = '/files/{owner}/{repo}/{identifier}/abort/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s).sub('{' + 'identifier' + '}', identifier.to_s) # query parameters query_params = {} @@ -85,7 +84,6 @@ def files_abort_with_http_info(owner, repo, identifier, opts = {}) end return data, status_code, headers end - # Complete a multipart file upload. # Complete a multipart file upload. # @param owner @@ -96,7 +94,7 @@ def files_abort_with_http_info(owner, repo, identifier, opts = {}) # @return [PackageFileUpload] def files_complete(owner, repo, identifier, opts = {}) data, _status_code, _headers = files_complete_with_http_info(owner, repo, identifier, opts) - return data + data end # Complete a multipart file upload. @@ -109,7 +107,7 @@ def files_complete(owner, repo, identifier, opts = {}) # @return [Array<(PackageFileUpload, Fixnum, Hash)>] PackageFileUpload data, response status code and response headers def files_complete_with_http_info(owner, repo, identifier, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: FilesApi.files_complete ..." + @api_client.config.logger.debug 'Calling API: FilesApi.files_complete ...' end # verify the required parameter 'owner' is set if @api_client.config.client_side_validation && owner.nil? @@ -124,7 +122,7 @@ def files_complete_with_http_info(owner, repo, identifier, opts = {}) fail ArgumentError, "Missing the required parameter 'identifier' when calling FilesApi.files_complete" end # resource path - local_var_path = "/files/{owner}/{repo}/{identifier}/complete/".sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s).sub('{' + 'identifier' + '}', identifier.to_s) + local_var_path = '/files/{owner}/{repo}/{identifier}/complete/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s).sub('{' + 'identifier' + '}', identifier.to_s) # query parameters query_params = {} @@ -152,7 +150,6 @@ def files_complete_with_http_info(owner, repo, identifier, opts = {}) end return data, status_code, headers end - # Request URL(s) to upload new package file upload(s) to. # Request URL(s) to upload new package file upload(s) to. # @param owner @@ -162,7 +159,7 @@ def files_complete_with_http_info(owner, repo, identifier, opts = {}) # @return [PackageFileUpload] def files_create(owner, repo, opts = {}) data, _status_code, _headers = files_create_with_http_info(owner, repo, opts) - return data + data end # Request URL(s) to upload new package file upload(s) to. @@ -174,7 +171,7 @@ def files_create(owner, repo, opts = {}) # @return [Array<(PackageFileUpload, Fixnum, Hash)>] PackageFileUpload data, response status code and response headers def files_create_with_http_info(owner, repo, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: FilesApi.files_create ..." + @api_client.config.logger.debug 'Calling API: FilesApi.files_create ...' end # verify the required parameter 'owner' is set if @api_client.config.client_side_validation && owner.nil? @@ -185,7 +182,7 @@ def files_create_with_http_info(owner, repo, opts = {}) fail ArgumentError, "Missing the required parameter 'repo' when calling FilesApi.files_create" end # resource path - local_var_path = "/files/{owner}/{repo}/".sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) + local_var_path = '/files/{owner}/{repo}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) # query parameters query_params = {} @@ -213,7 +210,6 @@ def files_create_with_http_info(owner, repo, opts = {}) end return data, status_code, headers end - # Get upload information for a multipart file upload. # Get upload information for a multipart file upload. # @param owner @@ -223,7 +219,7 @@ def files_create_with_http_info(owner, repo, opts = {}) # @return [PackageFilePartsUpload] def files_info(owner, repo, identifier, opts = {}) data, _status_code, _headers = files_info_with_http_info(owner, repo, identifier, opts) - return data + data end # Get upload information for a multipart file upload. @@ -235,7 +231,7 @@ def files_info(owner, repo, identifier, opts = {}) # @return [Array<(PackageFilePartsUpload, Fixnum, Hash)>] PackageFilePartsUpload data, response status code and response headers def files_info_with_http_info(owner, repo, identifier, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: FilesApi.files_info ..." + @api_client.config.logger.debug 'Calling API: FilesApi.files_info ...' end # verify the required parameter 'owner' is set if @api_client.config.client_side_validation && owner.nil? @@ -250,7 +246,7 @@ def files_info_with_http_info(owner, repo, identifier, opts = {}) fail ArgumentError, "Missing the required parameter 'identifier' when calling FilesApi.files_info" end # resource path - local_var_path = "/files/{owner}/{repo}/{identifier}/info/".sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s).sub('{' + 'identifier' + '}', identifier.to_s) + local_var_path = '/files/{owner}/{repo}/{identifier}/info/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s).sub('{' + 'identifier' + '}', identifier.to_s) # query parameters query_params = {} @@ -276,7 +272,6 @@ def files_info_with_http_info(owner, repo, identifier, opts = {}) end return data, status_code, headers end - # Validate parameters used for create. # Validate parameters used for create. # @param owner @@ -286,7 +281,7 @@ def files_info_with_http_info(owner, repo, identifier, opts = {}) # @return [nil] def files_validate(owner, repo, opts = {}) files_validate_with_http_info(owner, repo, opts) - return nil + nil end # Validate parameters used for create. @@ -298,7 +293,7 @@ def files_validate(owner, repo, opts = {}) # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def files_validate_with_http_info(owner, repo, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: FilesApi.files_validate ..." + @api_client.config.logger.debug 'Calling API: FilesApi.files_validate ...' end # verify the required parameter 'owner' is set if @api_client.config.client_side_validation && owner.nil? @@ -309,7 +304,7 @@ def files_validate_with_http_info(owner, repo, opts = {}) fail ArgumentError, "Missing the required parameter 'repo' when calling FilesApi.files_validate" end # resource path - local_var_path = "/files/{owner}/{repo}/validate/".sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) + local_var_path = '/files/{owner}/{repo}/validate/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) # query parameters query_params = {} diff --git a/bindings/ruby/src/lib/cloudsmith-api/api/formats_api.rb b/bindings/ruby/src/lib/cloudsmith-api/api/formats_api.rb index 49847697..3269040d 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/api/formats_api.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/api/formats_api.rb @@ -6,11 +6,11 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end -require "uri" +require 'uri' module CloudsmithApi class FormatsApi @@ -19,14 +19,13 @@ class FormatsApi def initialize(api_client = ApiClient.default) @api_client = api_client end - # Get a list of all supported package formats. # Get a list of all supported package formats. # @param [Hash] opts the optional parameters # @return [Array] def formats_list(opts = {}) data, _status_code, _headers = formats_list_with_http_info(opts) - return data + data end # Get a list of all supported package formats. @@ -35,10 +34,10 @@ def formats_list(opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def formats_list_with_http_info(opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: FormatsApi.formats_list ..." + @api_client.config.logger.debug 'Calling API: FormatsApi.formats_list ...' end # resource path - local_var_path = "/formats/" + local_var_path = '/formats/' # query parameters query_params = {} @@ -64,7 +63,6 @@ def formats_list_with_http_info(opts = {}) end return data, status_code, headers end - # Get a specific supported package format. # Get a specific supported package format. # @param slug @@ -72,7 +70,7 @@ def formats_list_with_http_info(opts = {}) # @return [Format] def formats_read(slug, opts = {}) data, _status_code, _headers = formats_read_with_http_info(slug, opts) - return data + data end # Get a specific supported package format. @@ -82,14 +80,14 @@ def formats_read(slug, opts = {}) # @return [Array<(Format, Fixnum, Hash)>] Format data, response status code and response headers def formats_read_with_http_info(slug, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: FormatsApi.formats_read ..." + @api_client.config.logger.debug 'Calling API: FormatsApi.formats_read ...' end # verify the required parameter 'slug' is set if @api_client.config.client_side_validation && slug.nil? fail ArgumentError, "Missing the required parameter 'slug' when calling FormatsApi.formats_read" end # resource path - local_var_path = "/formats/{slug}/".sub('{' + 'slug' + '}', slug.to_s) + local_var_path = '/formats/{slug}/'.sub('{' + 'slug' + '}', slug.to_s) # query parameters query_params = {} diff --git a/bindings/ruby/src/lib/cloudsmith-api/api/metrics_api.rb b/bindings/ruby/src/lib/cloudsmith-api/api/metrics_api.rb index d81b1bb0..0e39d83d 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/api/metrics_api.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/api/metrics_api.rb @@ -6,11 +6,11 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end -require "uri" +require 'uri' module CloudsmithApi class MetricsApi @@ -19,7 +19,6 @@ class MetricsApi def initialize(api_client = ApiClient.default) @api_client = api_client end - # View for listing entitlement token metrics, across an account. # View for listing entitlement token metrics, across an account. # @param owner @@ -32,7 +31,7 @@ def initialize(api_client = ApiClient.default) # @return [EntitlementUsageMetrics] def metrics_entitlements_list(owner, opts = {}) data, _status_code, _headers = metrics_entitlements_list_with_http_info(owner, opts) - return data + data end # View for listing entitlement token metrics, across an account. @@ -47,14 +46,14 @@ def metrics_entitlements_list(owner, opts = {}) # @return [Array<(EntitlementUsageMetrics, Fixnum, Hash)>] EntitlementUsageMetrics data, response status code and response headers def metrics_entitlements_list_with_http_info(owner, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: MetricsApi.metrics_entitlements_list ..." + @api_client.config.logger.debug 'Calling API: MetricsApi.metrics_entitlements_list ...' end # verify the required parameter 'owner' is set if @api_client.config.client_side_validation && owner.nil? fail ArgumentError, "Missing the required parameter 'owner' when calling MetricsApi.metrics_entitlements_list" end # resource path - local_var_path = "/metrics/entitlements/{owner}/".sub('{' + 'owner' + '}', owner.to_s) + local_var_path = '/metrics/entitlements/{owner}/'.sub('{' + 'owner' + '}', owner.to_s) # query parameters query_params = {} @@ -85,7 +84,6 @@ def metrics_entitlements_list_with_http_info(owner, opts = {}) end return data, status_code, headers end - # View for listing entitlement token metrics, for a repository. # View for listing entitlement token metrics, for a repository. # @param owner @@ -99,7 +97,7 @@ def metrics_entitlements_list_with_http_info(owner, opts = {}) # @return [EntitlementUsageMetrics] def metrics_entitlements_list0(owner, repo, opts = {}) data, _status_code, _headers = metrics_entitlements_list0_with_http_info(owner, repo, opts) - return data + data end # View for listing entitlement token metrics, for a repository. @@ -115,7 +113,7 @@ def metrics_entitlements_list0(owner, repo, opts = {}) # @return [Array<(EntitlementUsageMetrics, Fixnum, Hash)>] EntitlementUsageMetrics data, response status code and response headers def metrics_entitlements_list0_with_http_info(owner, repo, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: MetricsApi.metrics_entitlements_list0 ..." + @api_client.config.logger.debug 'Calling API: MetricsApi.metrics_entitlements_list0 ...' end # verify the required parameter 'owner' is set if @api_client.config.client_side_validation && owner.nil? @@ -126,7 +124,7 @@ def metrics_entitlements_list0_with_http_info(owner, repo, opts = {}) fail ArgumentError, "Missing the required parameter 'repo' when calling MetricsApi.metrics_entitlements_list0" end # resource path - local_var_path = "/metrics/entitlements/{owner}/{repo}/".sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) + local_var_path = '/metrics/entitlements/{owner}/{repo}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) # query parameters query_params = {} @@ -157,7 +155,6 @@ def metrics_entitlements_list0_with_http_info(owner, repo, opts = {}) end return data, status_code, headers end - # View for listing package usage metrics, for a repository. # View for listing package usage metrics, for a repository. # @param owner @@ -171,7 +168,7 @@ def metrics_entitlements_list0_with_http_info(owner, repo, opts = {}) # @return [PackageUsageMetrics] def metrics_packages_list(owner, repo, opts = {}) data, _status_code, _headers = metrics_packages_list_with_http_info(owner, repo, opts) - return data + data end # View for listing package usage metrics, for a repository. @@ -187,7 +184,7 @@ def metrics_packages_list(owner, repo, opts = {}) # @return [Array<(PackageUsageMetrics, Fixnum, Hash)>] PackageUsageMetrics data, response status code and response headers def metrics_packages_list_with_http_info(owner, repo, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: MetricsApi.metrics_packages_list ..." + @api_client.config.logger.debug 'Calling API: MetricsApi.metrics_packages_list ...' end # verify the required parameter 'owner' is set if @api_client.config.client_side_validation && owner.nil? @@ -198,7 +195,7 @@ def metrics_packages_list_with_http_info(owner, repo, opts = {}) fail ArgumentError, "Missing the required parameter 'repo' when calling MetricsApi.metrics_packages_list" end # resource path - local_var_path = "/metrics/packages/{owner}/{repo}/".sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) + local_var_path = '/metrics/packages/{owner}/{repo}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) # query parameters query_params = {} diff --git a/bindings/ruby/src/lib/cloudsmith-api/api/namespaces_api.rb b/bindings/ruby/src/lib/cloudsmith-api/api/namespaces_api.rb index e7578373..9b000f1c 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/api/namespaces_api.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/api/namespaces_api.rb @@ -6,11 +6,11 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end -require "uri" +require 'uri' module CloudsmithApi class NamespacesApi @@ -19,7 +19,6 @@ class NamespacesApi def initialize(api_client = ApiClient.default) @api_client = api_client end - # Get a list of all namespaces the user belongs to. # Get a list of all namespaces the user belongs to. # @param [Hash] opts the optional parameters @@ -28,7 +27,7 @@ def initialize(api_client = ApiClient.default) # @return [Array] def namespaces_list(opts = {}) data, _status_code, _headers = namespaces_list_with_http_info(opts) - return data + data end # Get a list of all namespaces the user belongs to. @@ -39,10 +38,10 @@ def namespaces_list(opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def namespaces_list_with_http_info(opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: NamespacesApi.namespaces_list ..." + @api_client.config.logger.debug 'Calling API: NamespacesApi.namespaces_list ...' end # resource path - local_var_path = "/namespaces/" + local_var_path = '/namespaces/' # query parameters query_params = {} @@ -70,7 +69,6 @@ def namespaces_list_with_http_info(opts = {}) end return data, status_code, headers end - # Views for working with namespaces. # Views for working with namespaces. # @param slug @@ -78,7 +76,7 @@ def namespaces_list_with_http_info(opts = {}) # @return [Namespace] def namespaces_read(slug, opts = {}) data, _status_code, _headers = namespaces_read_with_http_info(slug, opts) - return data + data end # Views for working with namespaces. @@ -88,14 +86,14 @@ def namespaces_read(slug, opts = {}) # @return [Array<(Namespace, Fixnum, Hash)>] Namespace data, response status code and response headers def namespaces_read_with_http_info(slug, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: NamespacesApi.namespaces_read ..." + @api_client.config.logger.debug 'Calling API: NamespacesApi.namespaces_read ...' end # verify the required parameter 'slug' is set if @api_client.config.client_side_validation && slug.nil? fail ArgumentError, "Missing the required parameter 'slug' when calling NamespacesApi.namespaces_read" end # resource path - local_var_path = "/namespaces/{slug}/".sub('{' + 'slug' + '}', slug.to_s) + local_var_path = '/namespaces/{slug}/'.sub('{' + 'slug' + '}', slug.to_s) # query parameters query_params = {} diff --git a/bindings/ruby/src/lib/cloudsmith-api/api/orgs_api.rb b/bindings/ruby/src/lib/cloudsmith-api/api/orgs_api.rb index 2ad03917..518745b4 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/api/orgs_api.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/api/orgs_api.rb @@ -6,11 +6,11 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end -require "uri" +require 'uri' module CloudsmithApi class OrgsApi @@ -19,7 +19,6 @@ class OrgsApi def initialize(api_client = ApiClient.default) @api_client = api_client end - # Get a list of all the organizations you are associated with. # Get a list of all the organizations you are associated with. # @param [Hash] opts the optional parameters @@ -28,7 +27,7 @@ def initialize(api_client = ApiClient.default) # @return [Array] def orgs_list(opts = {}) data, _status_code, _headers = orgs_list_with_http_info(opts) - return data + data end # Get a list of all the organizations you are associated with. @@ -39,10 +38,10 @@ def orgs_list(opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def orgs_list_with_http_info(opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: OrgsApi.orgs_list ..." + @api_client.config.logger.debug 'Calling API: OrgsApi.orgs_list ...' end # resource path - local_var_path = "/orgs/" + local_var_path = '/orgs/' # query parameters query_params = {} @@ -70,7 +69,6 @@ def orgs_list_with_http_info(opts = {}) end return data, status_code, headers end - # Get the details for all organization members. # Get the details for all organization members. # @param org @@ -80,7 +78,7 @@ def orgs_list_with_http_info(opts = {}) # @return [Array] def orgs_members_list(org, opts = {}) data, _status_code, _headers = orgs_members_list_with_http_info(org, opts) - return data + data end # Get the details for all organization members. @@ -92,14 +90,14 @@ def orgs_members_list(org, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def orgs_members_list_with_http_info(org, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: OrgsApi.orgs_members_list ..." + @api_client.config.logger.debug 'Calling API: OrgsApi.orgs_members_list ...' end # verify the required parameter 'org' is set if @api_client.config.client_side_validation && org.nil? fail ArgumentError, "Missing the required parameter 'org' when calling OrgsApi.orgs_members_list" end # resource path - local_var_path = "/orgs/{org}/members/".sub('{' + 'org' + '}', org.to_s) + local_var_path = '/orgs/{org}/members/'.sub('{' + 'org' + '}', org.to_s) # query parameters query_params = {} @@ -127,7 +125,6 @@ def orgs_members_list_with_http_info(org, opts = {}) end return data, status_code, headers end - # Get the details for a specific organization member. # Get the details for a specific organization member. # @param org @@ -136,7 +133,7 @@ def orgs_members_list_with_http_info(org, opts = {}) # @return [OrganizationMembership] def orgs_members_read(org, member, opts = {}) data, _status_code, _headers = orgs_members_read_with_http_info(org, member, opts) - return data + data end # Get the details for a specific organization member. @@ -147,7 +144,7 @@ def orgs_members_read(org, member, opts = {}) # @return [Array<(OrganizationMembership, Fixnum, Hash)>] OrganizationMembership data, response status code and response headers def orgs_members_read_with_http_info(org, member, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: OrgsApi.orgs_members_read ..." + @api_client.config.logger.debug 'Calling API: OrgsApi.orgs_members_read ...' end # verify the required parameter 'org' is set if @api_client.config.client_side_validation && org.nil? @@ -158,7 +155,7 @@ def orgs_members_read_with_http_info(org, member, opts = {}) fail ArgumentError, "Missing the required parameter 'member' when calling OrgsApi.orgs_members_read" end # resource path - local_var_path = "/orgs/{org}/members/{member}/".sub('{' + 'org' + '}', org.to_s).sub('{' + 'member' + '}', member.to_s) + local_var_path = '/orgs/{org}/members/{member}/'.sub('{' + 'org' + '}', org.to_s).sub('{' + 'member' + '}', member.to_s) # query parameters query_params = {} @@ -184,7 +181,6 @@ def orgs_members_read_with_http_info(org, member, opts = {}) end return data, status_code, headers end - # Removes a member from the organization. # Removes a member from the organization. # @param org @@ -193,7 +189,7 @@ def orgs_members_read_with_http_info(org, member, opts = {}) # @return [OrganizationMembership] def orgs_members_remove(org, member, opts = {}) data, _status_code, _headers = orgs_members_remove_with_http_info(org, member, opts) - return data + data end # Removes a member from the organization. @@ -204,7 +200,7 @@ def orgs_members_remove(org, member, opts = {}) # @return [Array<(OrganizationMembership, Fixnum, Hash)>] OrganizationMembership data, response status code and response headers def orgs_members_remove_with_http_info(org, member, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: OrgsApi.orgs_members_remove ..." + @api_client.config.logger.debug 'Calling API: OrgsApi.orgs_members_remove ...' end # verify the required parameter 'org' is set if @api_client.config.client_side_validation && org.nil? @@ -215,7 +211,7 @@ def orgs_members_remove_with_http_info(org, member, opts = {}) fail ArgumentError, "Missing the required parameter 'member' when calling OrgsApi.orgs_members_remove" end # resource path - local_var_path = "/orgs/{org}/members/{member}/remove/".sub('{' + 'org' + '}', org.to_s).sub('{' + 'member' + '}', member.to_s) + local_var_path = '/orgs/{org}/members/{member}/remove/'.sub('{' + 'org' + '}', org.to_s).sub('{' + 'member' + '}', member.to_s) # query parameters query_params = {} @@ -241,7 +237,6 @@ def orgs_members_remove_with_http_info(org, member, opts = {}) end return data, status_code, headers end - # Get the details for the specific organization. # Get the details for the specific organization. # @param org @@ -249,7 +244,7 @@ def orgs_members_remove_with_http_info(org, member, opts = {}) # @return [Organization] def orgs_read(org, opts = {}) data, _status_code, _headers = orgs_read_with_http_info(org, opts) - return data + data end # Get the details for the specific organization. @@ -259,14 +254,14 @@ def orgs_read(org, opts = {}) # @return [Array<(Organization, Fixnum, Hash)>] Organization data, response status code and response headers def orgs_read_with_http_info(org, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: OrgsApi.orgs_read ..." + @api_client.config.logger.debug 'Calling API: OrgsApi.orgs_read ...' end # verify the required parameter 'org' is set if @api_client.config.client_side_validation && org.nil? fail ArgumentError, "Missing the required parameter 'org' when calling OrgsApi.orgs_read" end # resource path - local_var_path = "/orgs/{org}/".sub('{' + 'org' + '}', org.to_s) + local_var_path = '/orgs/{org}/'.sub('{' + 'org' + '}', org.to_s) # query parameters query_params = {} diff --git a/bindings/ruby/src/lib/cloudsmith-api/api/packages_api.rb b/bindings/ruby/src/lib/cloudsmith-api/api/packages_api.rb index 1acb8ae1..1efe8078 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/api/packages_api.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/api/packages_api.rb @@ -6,11 +6,11 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end -require "uri" +require 'uri' module CloudsmithApi class PackagesApi @@ -19,7 +19,6 @@ class PackagesApi def initialize(api_client = ApiClient.default) @api_client = api_client end - # Copy a package to another repository. # Copy a package to another repository. # @param owner @@ -30,7 +29,7 @@ def initialize(api_client = ApiClient.default) # @return [PackageCopy] def packages_copy(owner, repo, identifier, opts = {}) data, _status_code, _headers = packages_copy_with_http_info(owner, repo, identifier, opts) - return data + data end # Copy a package to another repository. @@ -43,7 +42,7 @@ def packages_copy(owner, repo, identifier, opts = {}) # @return [Array<(PackageCopy, Fixnum, Hash)>] PackageCopy data, response status code and response headers def packages_copy_with_http_info(owner, repo, identifier, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: PackagesApi.packages_copy ..." + @api_client.config.logger.debug 'Calling API: PackagesApi.packages_copy ...' end # verify the required parameter 'owner' is set if @api_client.config.client_side_validation && owner.nil? @@ -58,7 +57,7 @@ def packages_copy_with_http_info(owner, repo, identifier, opts = {}) fail ArgumentError, "Missing the required parameter 'identifier' when calling PackagesApi.packages_copy" end # resource path - local_var_path = "/packages/{owner}/{repo}/{identifier}/copy/".sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s).sub('{' + 'identifier' + '}', identifier.to_s) + local_var_path = '/packages/{owner}/{repo}/{identifier}/copy/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s).sub('{' + 'identifier' + '}', identifier.to_s) # query parameters query_params = {} @@ -86,7 +85,6 @@ def packages_copy_with_http_info(owner, repo, identifier, opts = {}) end return data, status_code, headers end - # Delete a specific package in a repository. # Delete a specific package in a repository. # @param owner @@ -96,7 +94,7 @@ def packages_copy_with_http_info(owner, repo, identifier, opts = {}) # @return [nil] def packages_delete(owner, repo, identifier, opts = {}) packages_delete_with_http_info(owner, repo, identifier, opts) - return nil + nil end # Delete a specific package in a repository. @@ -108,7 +106,7 @@ def packages_delete(owner, repo, identifier, opts = {}) # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def packages_delete_with_http_info(owner, repo, identifier, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: PackagesApi.packages_delete ..." + @api_client.config.logger.debug 'Calling API: PackagesApi.packages_delete ...' end # verify the required parameter 'owner' is set if @api_client.config.client_side_validation && owner.nil? @@ -123,7 +121,7 @@ def packages_delete_with_http_info(owner, repo, identifier, opts = {}) fail ArgumentError, "Missing the required parameter 'identifier' when calling PackagesApi.packages_delete" end # resource path - local_var_path = "/packages/{owner}/{repo}/{identifier}/".sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s).sub('{' + 'identifier' + '}', identifier.to_s) + local_var_path = '/packages/{owner}/{repo}/{identifier}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s).sub('{' + 'identifier' + '}', identifier.to_s) # query parameters query_params = {} @@ -148,7 +146,6 @@ def packages_delete_with_http_info(owner, repo, identifier, opts = {}) end return data, status_code, headers end - # Get the direct (non-transitive) dependencies list for a package. # Get the direct (non-transitive) dependencies list for a package. # @param owner @@ -158,7 +155,7 @@ def packages_delete_with_http_info(owner, repo, identifier, opts = {}) # @return [PackageDependencies] def packages_dependencies(owner, repo, identifier, opts = {}) data, _status_code, _headers = packages_dependencies_with_http_info(owner, repo, identifier, opts) - return data + data end # Get the direct (non-transitive) dependencies list for a package. @@ -170,7 +167,7 @@ def packages_dependencies(owner, repo, identifier, opts = {}) # @return [Array<(PackageDependencies, Fixnum, Hash)>] PackageDependencies data, response status code and response headers def packages_dependencies_with_http_info(owner, repo, identifier, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: PackagesApi.packages_dependencies ..." + @api_client.config.logger.debug 'Calling API: PackagesApi.packages_dependencies ...' end # verify the required parameter 'owner' is set if @api_client.config.client_side_validation && owner.nil? @@ -185,7 +182,7 @@ def packages_dependencies_with_http_info(owner, repo, identifier, opts = {}) fail ArgumentError, "Missing the required parameter 'identifier' when calling PackagesApi.packages_dependencies" end # resource path - local_var_path = "/packages/{owner}/{repo}/{identifier}/dependencies/".sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s).sub('{' + 'identifier' + '}', identifier.to_s) + local_var_path = '/packages/{owner}/{repo}/{identifier}/dependencies/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s).sub('{' + 'identifier' + '}', identifier.to_s) # query parameters query_params = {} @@ -211,7 +208,6 @@ def packages_dependencies_with_http_info(owner, repo, identifier, opts = {}) end return data, status_code, headers end - # Get a list of all packages associated with repository. # Get a list of all packages associated with repository. # @param owner @@ -224,7 +220,7 @@ def packages_dependencies_with_http_info(owner, repo, identifier, opts = {}) # @return [Array] def packages_list(owner, repo, opts = {}) data, _status_code, _headers = packages_list_with_http_info(owner, repo, opts) - return data + data end # Get a list of all packages associated with repository. @@ -239,7 +235,7 @@ def packages_list(owner, repo, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def packages_list_with_http_info(owner, repo, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: PackagesApi.packages_list ..." + @api_client.config.logger.debug 'Calling API: PackagesApi.packages_list ...' end # verify the required parameter 'owner' is set if @api_client.config.client_side_validation && owner.nil? @@ -250,7 +246,7 @@ def packages_list_with_http_info(owner, repo, opts = {}) fail ArgumentError, "Missing the required parameter 'repo' when calling PackagesApi.packages_list" end # resource path - local_var_path = "/packages/{owner}/{repo}/".sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) + local_var_path = '/packages/{owner}/{repo}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) # query parameters query_params = {} @@ -280,7 +276,6 @@ def packages_list_with_http_info(owner, repo, opts = {}) end return data, status_code, headers end - # Move a package to another repository. # Move a package to another repository. # @param owner @@ -291,7 +286,7 @@ def packages_list_with_http_info(owner, repo, opts = {}) # @return [PackageMove] def packages_move(owner, repo, identifier, opts = {}) data, _status_code, _headers = packages_move_with_http_info(owner, repo, identifier, opts) - return data + data end # Move a package to another repository. @@ -304,7 +299,7 @@ def packages_move(owner, repo, identifier, opts = {}) # @return [Array<(PackageMove, Fixnum, Hash)>] PackageMove data, response status code and response headers def packages_move_with_http_info(owner, repo, identifier, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: PackagesApi.packages_move ..." + @api_client.config.logger.debug 'Calling API: PackagesApi.packages_move ...' end # verify the required parameter 'owner' is set if @api_client.config.client_side_validation && owner.nil? @@ -319,7 +314,7 @@ def packages_move_with_http_info(owner, repo, identifier, opts = {}) fail ArgumentError, "Missing the required parameter 'identifier' when calling PackagesApi.packages_move" end # resource path - local_var_path = "/packages/{owner}/{repo}/{identifier}/move/".sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s).sub('{' + 'identifier' + '}', identifier.to_s) + local_var_path = '/packages/{owner}/{repo}/{identifier}/move/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s).sub('{' + 'identifier' + '}', identifier.to_s) # query parameters query_params = {} @@ -347,7 +342,6 @@ def packages_move_with_http_info(owner, repo, identifier, opts = {}) end return data, status_code, headers end - # Get a specific package in a repository. # Get a specific package in a repository. # @param owner @@ -357,7 +351,7 @@ def packages_move_with_http_info(owner, repo, identifier, opts = {}) # @return [Package] def packages_read(owner, repo, identifier, opts = {}) data, _status_code, _headers = packages_read_with_http_info(owner, repo, identifier, opts) - return data + data end # Get a specific package in a repository. @@ -369,7 +363,7 @@ def packages_read(owner, repo, identifier, opts = {}) # @return [Array<(Package, Fixnum, Hash)>] Package data, response status code and response headers def packages_read_with_http_info(owner, repo, identifier, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: PackagesApi.packages_read ..." + @api_client.config.logger.debug 'Calling API: PackagesApi.packages_read ...' end # verify the required parameter 'owner' is set if @api_client.config.client_side_validation && owner.nil? @@ -384,7 +378,7 @@ def packages_read_with_http_info(owner, repo, identifier, opts = {}) fail ArgumentError, "Missing the required parameter 'identifier' when calling PackagesApi.packages_read" end # resource path - local_var_path = "/packages/{owner}/{repo}/{identifier}/".sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s).sub('{' + 'identifier' + '}', identifier.to_s) + local_var_path = '/packages/{owner}/{repo}/{identifier}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s).sub('{' + 'identifier' + '}', identifier.to_s) # query parameters query_params = {} @@ -410,7 +404,6 @@ def packages_read_with_http_info(owner, repo, identifier, opts = {}) end return data, status_code, headers end - # Schedule a package for resynchronisation. # Schedule a package for resynchronisation. # @param owner @@ -420,7 +413,7 @@ def packages_read_with_http_info(owner, repo, identifier, opts = {}) # @return [Package] def packages_resync(owner, repo, identifier, opts = {}) data, _status_code, _headers = packages_resync_with_http_info(owner, repo, identifier, opts) - return data + data end # Schedule a package for resynchronisation. @@ -432,7 +425,7 @@ def packages_resync(owner, repo, identifier, opts = {}) # @return [Array<(Package, Fixnum, Hash)>] Package data, response status code and response headers def packages_resync_with_http_info(owner, repo, identifier, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: PackagesApi.packages_resync ..." + @api_client.config.logger.debug 'Calling API: PackagesApi.packages_resync ...' end # verify the required parameter 'owner' is set if @api_client.config.client_side_validation && owner.nil? @@ -447,7 +440,7 @@ def packages_resync_with_http_info(owner, repo, identifier, opts = {}) fail ArgumentError, "Missing the required parameter 'identifier' when calling PackagesApi.packages_resync" end # resource path - local_var_path = "/packages/{owner}/{repo}/{identifier}/resync/".sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s).sub('{' + 'identifier' + '}', identifier.to_s) + local_var_path = '/packages/{owner}/{repo}/{identifier}/resync/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s).sub('{' + 'identifier' + '}', identifier.to_s) # query parameters query_params = {} @@ -473,7 +466,6 @@ def packages_resync_with_http_info(owner, repo, identifier, opts = {}) end return data, status_code, headers end - # Schedule a package for scanning. # Schedule a package for scanning. # @param owner @@ -483,7 +475,7 @@ def packages_resync_with_http_info(owner, repo, identifier, opts = {}) # @return [Package] def packages_scan(owner, repo, identifier, opts = {}) data, _status_code, _headers = packages_scan_with_http_info(owner, repo, identifier, opts) - return data + data end # Schedule a package for scanning. @@ -495,7 +487,7 @@ def packages_scan(owner, repo, identifier, opts = {}) # @return [Array<(Package, Fixnum, Hash)>] Package data, response status code and response headers def packages_scan_with_http_info(owner, repo, identifier, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: PackagesApi.packages_scan ..." + @api_client.config.logger.debug 'Calling API: PackagesApi.packages_scan ...' end # verify the required parameter 'owner' is set if @api_client.config.client_side_validation && owner.nil? @@ -510,7 +502,7 @@ def packages_scan_with_http_info(owner, repo, identifier, opts = {}) fail ArgumentError, "Missing the required parameter 'identifier' when calling PackagesApi.packages_scan" end # resource path - local_var_path = "/packages/{owner}/{repo}/{identifier}/scan/".sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s).sub('{' + 'identifier' + '}', identifier.to_s) + local_var_path = '/packages/{owner}/{repo}/{identifier}/scan/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s).sub('{' + 'identifier' + '}', identifier.to_s) # query parameters query_params = {} @@ -536,7 +528,6 @@ def packages_scan_with_http_info(owner, repo, identifier, opts = {}) end return data, status_code, headers end - # Get the synchronisation status for a package. # Get the synchronisation status for a package. # @param owner @@ -546,7 +537,7 @@ def packages_scan_with_http_info(owner, repo, identifier, opts = {}) # @return [PackageStatus] def packages_status(owner, repo, identifier, opts = {}) data, _status_code, _headers = packages_status_with_http_info(owner, repo, identifier, opts) - return data + data end # Get the synchronisation status for a package. @@ -558,7 +549,7 @@ def packages_status(owner, repo, identifier, opts = {}) # @return [Array<(PackageStatus, Fixnum, Hash)>] PackageStatus data, response status code and response headers def packages_status_with_http_info(owner, repo, identifier, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: PackagesApi.packages_status ..." + @api_client.config.logger.debug 'Calling API: PackagesApi.packages_status ...' end # verify the required parameter 'owner' is set if @api_client.config.client_side_validation && owner.nil? @@ -573,7 +564,7 @@ def packages_status_with_http_info(owner, repo, identifier, opts = {}) fail ArgumentError, "Missing the required parameter 'identifier' when calling PackagesApi.packages_status" end # resource path - local_var_path = "/packages/{owner}/{repo}/{identifier}/status/".sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s).sub('{' + 'identifier' + '}', identifier.to_s) + local_var_path = '/packages/{owner}/{repo}/{identifier}/status/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s).sub('{' + 'identifier' + '}', identifier.to_s) # query parameters query_params = {} @@ -599,7 +590,6 @@ def packages_status_with_http_info(owner, repo, identifier, opts = {}) end return data, status_code, headers end - # Add/Replace/Remove tags for a package. # Add/Replace/Remove tags for a package. # @param owner @@ -610,7 +600,7 @@ def packages_status_with_http_info(owner, repo, identifier, opts = {}) # @return [Package] def packages_tag(owner, repo, identifier, opts = {}) data, _status_code, _headers = packages_tag_with_http_info(owner, repo, identifier, opts) - return data + data end # Add/Replace/Remove tags for a package. @@ -623,7 +613,7 @@ def packages_tag(owner, repo, identifier, opts = {}) # @return [Array<(Package, Fixnum, Hash)>] Package data, response status code and response headers def packages_tag_with_http_info(owner, repo, identifier, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: PackagesApi.packages_tag ..." + @api_client.config.logger.debug 'Calling API: PackagesApi.packages_tag ...' end # verify the required parameter 'owner' is set if @api_client.config.client_side_validation && owner.nil? @@ -638,7 +628,7 @@ def packages_tag_with_http_info(owner, repo, identifier, opts = {}) fail ArgumentError, "Missing the required parameter 'identifier' when calling PackagesApi.packages_tag" end # resource path - local_var_path = "/packages/{owner}/{repo}/{identifier}/tag/".sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s).sub('{' + 'identifier' + '}', identifier.to_s) + local_var_path = '/packages/{owner}/{repo}/{identifier}/tag/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s).sub('{' + 'identifier' + '}', identifier.to_s) # query parameters query_params = {} @@ -666,7 +656,6 @@ def packages_tag_with_http_info(owner, repo, identifier, opts = {}) end return data, status_code, headers end - # Create a new Alpine package # Create a new Alpine package # @param owner @@ -676,7 +665,7 @@ def packages_tag_with_http_info(owner, repo, identifier, opts = {}) # @return [AlpinePackageUpload] def packages_upload_alpine(owner, repo, opts = {}) data, _status_code, _headers = packages_upload_alpine_with_http_info(owner, repo, opts) - return data + data end # Create a new Alpine package @@ -688,7 +677,7 @@ def packages_upload_alpine(owner, repo, opts = {}) # @return [Array<(AlpinePackageUpload, Fixnum, Hash)>] AlpinePackageUpload data, response status code and response headers def packages_upload_alpine_with_http_info(owner, repo, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: PackagesApi.packages_upload_alpine ..." + @api_client.config.logger.debug 'Calling API: PackagesApi.packages_upload_alpine ...' end # verify the required parameter 'owner' is set if @api_client.config.client_side_validation && owner.nil? @@ -699,7 +688,7 @@ def packages_upload_alpine_with_http_info(owner, repo, opts = {}) fail ArgumentError, "Missing the required parameter 'repo' when calling PackagesApi.packages_upload_alpine" end # resource path - local_var_path = "/packages/{owner}/{repo}/upload/alpine/".sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) + local_var_path = '/packages/{owner}/{repo}/upload/alpine/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) # query parameters query_params = {} @@ -727,7 +716,6 @@ def packages_upload_alpine_with_http_info(owner, repo, opts = {}) end return data, status_code, headers end - # Create a new Cargo package # Create a new Cargo package # @param owner @@ -737,7 +725,7 @@ def packages_upload_alpine_with_http_info(owner, repo, opts = {}) # @return [AlpinePackageUpload] def packages_upload_cargo(owner, repo, opts = {}) data, _status_code, _headers = packages_upload_cargo_with_http_info(owner, repo, opts) - return data + data end # Create a new Cargo package @@ -749,7 +737,7 @@ def packages_upload_cargo(owner, repo, opts = {}) # @return [Array<(AlpinePackageUpload, Fixnum, Hash)>] AlpinePackageUpload data, response status code and response headers def packages_upload_cargo_with_http_info(owner, repo, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: PackagesApi.packages_upload_cargo ..." + @api_client.config.logger.debug 'Calling API: PackagesApi.packages_upload_cargo ...' end # verify the required parameter 'owner' is set if @api_client.config.client_side_validation && owner.nil? @@ -760,7 +748,7 @@ def packages_upload_cargo_with_http_info(owner, repo, opts = {}) fail ArgumentError, "Missing the required parameter 'repo' when calling PackagesApi.packages_upload_cargo" end # resource path - local_var_path = "/packages/{owner}/{repo}/upload/cargo/".sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) + local_var_path = '/packages/{owner}/{repo}/upload/cargo/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) # query parameters query_params = {} @@ -788,7 +776,6 @@ def packages_upload_cargo_with_http_info(owner, repo, opts = {}) end return data, status_code, headers end - # Create a new CocoaPods package # Create a new CocoaPods package # @param owner @@ -798,7 +785,7 @@ def packages_upload_cargo_with_http_info(owner, repo, opts = {}) # @return [AlpinePackageUpload] def packages_upload_cocoapods(owner, repo, opts = {}) data, _status_code, _headers = packages_upload_cocoapods_with_http_info(owner, repo, opts) - return data + data end # Create a new CocoaPods package @@ -810,7 +797,7 @@ def packages_upload_cocoapods(owner, repo, opts = {}) # @return [Array<(AlpinePackageUpload, Fixnum, Hash)>] AlpinePackageUpload data, response status code and response headers def packages_upload_cocoapods_with_http_info(owner, repo, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: PackagesApi.packages_upload_cocoapods ..." + @api_client.config.logger.debug 'Calling API: PackagesApi.packages_upload_cocoapods ...' end # verify the required parameter 'owner' is set if @api_client.config.client_side_validation && owner.nil? @@ -821,7 +808,7 @@ def packages_upload_cocoapods_with_http_info(owner, repo, opts = {}) fail ArgumentError, "Missing the required parameter 'repo' when calling PackagesApi.packages_upload_cocoapods" end # resource path - local_var_path = "/packages/{owner}/{repo}/upload/cocoapods/".sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) + local_var_path = '/packages/{owner}/{repo}/upload/cocoapods/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) # query parameters query_params = {} @@ -849,7 +836,6 @@ def packages_upload_cocoapods_with_http_info(owner, repo, opts = {}) end return data, status_code, headers end - # Create a new Composer package # Create a new Composer package # @param owner @@ -859,7 +845,7 @@ def packages_upload_cocoapods_with_http_info(owner, repo, opts = {}) # @return [AlpinePackageUpload] def packages_upload_composer(owner, repo, opts = {}) data, _status_code, _headers = packages_upload_composer_with_http_info(owner, repo, opts) - return data + data end # Create a new Composer package @@ -871,7 +857,7 @@ def packages_upload_composer(owner, repo, opts = {}) # @return [Array<(AlpinePackageUpload, Fixnum, Hash)>] AlpinePackageUpload data, response status code and response headers def packages_upload_composer_with_http_info(owner, repo, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: PackagesApi.packages_upload_composer ..." + @api_client.config.logger.debug 'Calling API: PackagesApi.packages_upload_composer ...' end # verify the required parameter 'owner' is set if @api_client.config.client_side_validation && owner.nil? @@ -882,7 +868,7 @@ def packages_upload_composer_with_http_info(owner, repo, opts = {}) fail ArgumentError, "Missing the required parameter 'repo' when calling PackagesApi.packages_upload_composer" end # resource path - local_var_path = "/packages/{owner}/{repo}/upload/composer/".sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) + local_var_path = '/packages/{owner}/{repo}/upload/composer/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) # query parameters query_params = {} @@ -910,7 +896,6 @@ def packages_upload_composer_with_http_info(owner, repo, opts = {}) end return data, status_code, headers end - # Create a new Conan package # Create a new Conan package # @param owner @@ -920,7 +905,7 @@ def packages_upload_composer_with_http_info(owner, repo, opts = {}) # @return [ConanPackageUpload] def packages_upload_conan(owner, repo, opts = {}) data, _status_code, _headers = packages_upload_conan_with_http_info(owner, repo, opts) - return data + data end # Create a new Conan package @@ -932,7 +917,7 @@ def packages_upload_conan(owner, repo, opts = {}) # @return [Array<(ConanPackageUpload, Fixnum, Hash)>] ConanPackageUpload data, response status code and response headers def packages_upload_conan_with_http_info(owner, repo, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: PackagesApi.packages_upload_conan ..." + @api_client.config.logger.debug 'Calling API: PackagesApi.packages_upload_conan ...' end # verify the required parameter 'owner' is set if @api_client.config.client_side_validation && owner.nil? @@ -943,7 +928,7 @@ def packages_upload_conan_with_http_info(owner, repo, opts = {}) fail ArgumentError, "Missing the required parameter 'repo' when calling PackagesApi.packages_upload_conan" end # resource path - local_var_path = "/packages/{owner}/{repo}/upload/conan/".sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) + local_var_path = '/packages/{owner}/{repo}/upload/conan/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) # query parameters query_params = {} @@ -971,7 +956,6 @@ def packages_upload_conan_with_http_info(owner, repo, opts = {}) end return data, status_code, headers end - # Create a new Conda package # Create a new Conda package # @param owner @@ -981,7 +965,7 @@ def packages_upload_conan_with_http_info(owner, repo, opts = {}) # @return [AlpinePackageUpload] def packages_upload_conda(owner, repo, opts = {}) data, _status_code, _headers = packages_upload_conda_with_http_info(owner, repo, opts) - return data + data end # Create a new Conda package @@ -993,7 +977,7 @@ def packages_upload_conda(owner, repo, opts = {}) # @return [Array<(AlpinePackageUpload, Fixnum, Hash)>] AlpinePackageUpload data, response status code and response headers def packages_upload_conda_with_http_info(owner, repo, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: PackagesApi.packages_upload_conda ..." + @api_client.config.logger.debug 'Calling API: PackagesApi.packages_upload_conda ...' end # verify the required parameter 'owner' is set if @api_client.config.client_side_validation && owner.nil? @@ -1004,7 +988,7 @@ def packages_upload_conda_with_http_info(owner, repo, opts = {}) fail ArgumentError, "Missing the required parameter 'repo' when calling PackagesApi.packages_upload_conda" end # resource path - local_var_path = "/packages/{owner}/{repo}/upload/conda/".sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) + local_var_path = '/packages/{owner}/{repo}/upload/conda/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) # query parameters query_params = {} @@ -1032,7 +1016,6 @@ def packages_upload_conda_with_http_info(owner, repo, opts = {}) end return data, status_code, headers end - # Create a new CRAN package # Create a new CRAN package # @param owner @@ -1042,7 +1025,7 @@ def packages_upload_conda_with_http_info(owner, repo, opts = {}) # @return [AlpinePackageUpload] def packages_upload_cran(owner, repo, opts = {}) data, _status_code, _headers = packages_upload_cran_with_http_info(owner, repo, opts) - return data + data end # Create a new CRAN package @@ -1054,7 +1037,7 @@ def packages_upload_cran(owner, repo, opts = {}) # @return [Array<(AlpinePackageUpload, Fixnum, Hash)>] AlpinePackageUpload data, response status code and response headers def packages_upload_cran_with_http_info(owner, repo, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: PackagesApi.packages_upload_cran ..." + @api_client.config.logger.debug 'Calling API: PackagesApi.packages_upload_cran ...' end # verify the required parameter 'owner' is set if @api_client.config.client_side_validation && owner.nil? @@ -1065,7 +1048,7 @@ def packages_upload_cran_with_http_info(owner, repo, opts = {}) fail ArgumentError, "Missing the required parameter 'repo' when calling PackagesApi.packages_upload_cran" end # resource path - local_var_path = "/packages/{owner}/{repo}/upload/cran/".sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) + local_var_path = '/packages/{owner}/{repo}/upload/cran/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) # query parameters query_params = {} @@ -1093,7 +1076,6 @@ def packages_upload_cran_with_http_info(owner, repo, opts = {}) end return data, status_code, headers end - # Create a new Dart package # Create a new Dart package # @param owner @@ -1103,7 +1085,7 @@ def packages_upload_cran_with_http_info(owner, repo, opts = {}) # @return [AlpinePackageUpload] def packages_upload_dart(owner, repo, opts = {}) data, _status_code, _headers = packages_upload_dart_with_http_info(owner, repo, opts) - return data + data end # Create a new Dart package @@ -1115,7 +1097,7 @@ def packages_upload_dart(owner, repo, opts = {}) # @return [Array<(AlpinePackageUpload, Fixnum, Hash)>] AlpinePackageUpload data, response status code and response headers def packages_upload_dart_with_http_info(owner, repo, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: PackagesApi.packages_upload_dart ..." + @api_client.config.logger.debug 'Calling API: PackagesApi.packages_upload_dart ...' end # verify the required parameter 'owner' is set if @api_client.config.client_side_validation && owner.nil? @@ -1126,7 +1108,7 @@ def packages_upload_dart_with_http_info(owner, repo, opts = {}) fail ArgumentError, "Missing the required parameter 'repo' when calling PackagesApi.packages_upload_dart" end # resource path - local_var_path = "/packages/{owner}/{repo}/upload/dart/".sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) + local_var_path = '/packages/{owner}/{repo}/upload/dart/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) # query parameters query_params = {} @@ -1154,7 +1136,6 @@ def packages_upload_dart_with_http_info(owner, repo, opts = {}) end return data, status_code, headers end - # Create a new Debian package # Create a new Debian package # @param owner @@ -1164,7 +1145,7 @@ def packages_upload_dart_with_http_info(owner, repo, opts = {}) # @return [AlpinePackageUpload] def packages_upload_deb(owner, repo, opts = {}) data, _status_code, _headers = packages_upload_deb_with_http_info(owner, repo, opts) - return data + data end # Create a new Debian package @@ -1176,7 +1157,7 @@ def packages_upload_deb(owner, repo, opts = {}) # @return [Array<(AlpinePackageUpload, Fixnum, Hash)>] AlpinePackageUpload data, response status code and response headers def packages_upload_deb_with_http_info(owner, repo, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: PackagesApi.packages_upload_deb ..." + @api_client.config.logger.debug 'Calling API: PackagesApi.packages_upload_deb ...' end # verify the required parameter 'owner' is set if @api_client.config.client_side_validation && owner.nil? @@ -1187,7 +1168,7 @@ def packages_upload_deb_with_http_info(owner, repo, opts = {}) fail ArgumentError, "Missing the required parameter 'repo' when calling PackagesApi.packages_upload_deb" end # resource path - local_var_path = "/packages/{owner}/{repo}/upload/deb/".sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) + local_var_path = '/packages/{owner}/{repo}/upload/deb/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) # query parameters query_params = {} @@ -1215,7 +1196,6 @@ def packages_upload_deb_with_http_info(owner, repo, opts = {}) end return data, status_code, headers end - # Create a new Docker package # Create a new Docker package # @param owner @@ -1225,7 +1205,7 @@ def packages_upload_deb_with_http_info(owner, repo, opts = {}) # @return [AlpinePackageUpload] def packages_upload_docker(owner, repo, opts = {}) data, _status_code, _headers = packages_upload_docker_with_http_info(owner, repo, opts) - return data + data end # Create a new Docker package @@ -1237,7 +1217,7 @@ def packages_upload_docker(owner, repo, opts = {}) # @return [Array<(AlpinePackageUpload, Fixnum, Hash)>] AlpinePackageUpload data, response status code and response headers def packages_upload_docker_with_http_info(owner, repo, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: PackagesApi.packages_upload_docker ..." + @api_client.config.logger.debug 'Calling API: PackagesApi.packages_upload_docker ...' end # verify the required parameter 'owner' is set if @api_client.config.client_side_validation && owner.nil? @@ -1248,7 +1228,7 @@ def packages_upload_docker_with_http_info(owner, repo, opts = {}) fail ArgumentError, "Missing the required parameter 'repo' when calling PackagesApi.packages_upload_docker" end # resource path - local_var_path = "/packages/{owner}/{repo}/upload/docker/".sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) + local_var_path = '/packages/{owner}/{repo}/upload/docker/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) # query parameters query_params = {} @@ -1276,7 +1256,6 @@ def packages_upload_docker_with_http_info(owner, repo, opts = {}) end return data, status_code, headers end - # Create a new Go package # Create a new Go package # @param owner @@ -1286,7 +1265,7 @@ def packages_upload_docker_with_http_info(owner, repo, opts = {}) # @return [AlpinePackageUpload] def packages_upload_go(owner, repo, opts = {}) data, _status_code, _headers = packages_upload_go_with_http_info(owner, repo, opts) - return data + data end # Create a new Go package @@ -1298,7 +1277,7 @@ def packages_upload_go(owner, repo, opts = {}) # @return [Array<(AlpinePackageUpload, Fixnum, Hash)>] AlpinePackageUpload data, response status code and response headers def packages_upload_go_with_http_info(owner, repo, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: PackagesApi.packages_upload_go ..." + @api_client.config.logger.debug 'Calling API: PackagesApi.packages_upload_go ...' end # verify the required parameter 'owner' is set if @api_client.config.client_side_validation && owner.nil? @@ -1309,7 +1288,7 @@ def packages_upload_go_with_http_info(owner, repo, opts = {}) fail ArgumentError, "Missing the required parameter 'repo' when calling PackagesApi.packages_upload_go" end # resource path - local_var_path = "/packages/{owner}/{repo}/upload/go/".sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) + local_var_path = '/packages/{owner}/{repo}/upload/go/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) # query parameters query_params = {} @@ -1337,7 +1316,6 @@ def packages_upload_go_with_http_info(owner, repo, opts = {}) end return data, status_code, headers end - # Create a new Helm package # Create a new Helm package # @param owner @@ -1347,7 +1325,7 @@ def packages_upload_go_with_http_info(owner, repo, opts = {}) # @return [AlpinePackageUpload] def packages_upload_helm(owner, repo, opts = {}) data, _status_code, _headers = packages_upload_helm_with_http_info(owner, repo, opts) - return data + data end # Create a new Helm package @@ -1359,7 +1337,7 @@ def packages_upload_helm(owner, repo, opts = {}) # @return [Array<(AlpinePackageUpload, Fixnum, Hash)>] AlpinePackageUpload data, response status code and response headers def packages_upload_helm_with_http_info(owner, repo, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: PackagesApi.packages_upload_helm ..." + @api_client.config.logger.debug 'Calling API: PackagesApi.packages_upload_helm ...' end # verify the required parameter 'owner' is set if @api_client.config.client_side_validation && owner.nil? @@ -1370,7 +1348,7 @@ def packages_upload_helm_with_http_info(owner, repo, opts = {}) fail ArgumentError, "Missing the required parameter 'repo' when calling PackagesApi.packages_upload_helm" end # resource path - local_var_path = "/packages/{owner}/{repo}/upload/helm/".sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) + local_var_path = '/packages/{owner}/{repo}/upload/helm/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) # query parameters query_params = {} @@ -1398,7 +1376,6 @@ def packages_upload_helm_with_http_info(owner, repo, opts = {}) end return data, status_code, headers end - # Create a new LuaRocks package # Create a new LuaRocks package # @param owner @@ -1408,7 +1385,7 @@ def packages_upload_helm_with_http_info(owner, repo, opts = {}) # @return [AlpinePackageUpload] def packages_upload_luarocks(owner, repo, opts = {}) data, _status_code, _headers = packages_upload_luarocks_with_http_info(owner, repo, opts) - return data + data end # Create a new LuaRocks package @@ -1420,7 +1397,7 @@ def packages_upload_luarocks(owner, repo, opts = {}) # @return [Array<(AlpinePackageUpload, Fixnum, Hash)>] AlpinePackageUpload data, response status code and response headers def packages_upload_luarocks_with_http_info(owner, repo, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: PackagesApi.packages_upload_luarocks ..." + @api_client.config.logger.debug 'Calling API: PackagesApi.packages_upload_luarocks ...' end # verify the required parameter 'owner' is set if @api_client.config.client_side_validation && owner.nil? @@ -1431,7 +1408,7 @@ def packages_upload_luarocks_with_http_info(owner, repo, opts = {}) fail ArgumentError, "Missing the required parameter 'repo' when calling PackagesApi.packages_upload_luarocks" end # resource path - local_var_path = "/packages/{owner}/{repo}/upload/luarocks/".sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) + local_var_path = '/packages/{owner}/{repo}/upload/luarocks/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) # query parameters query_params = {} @@ -1459,7 +1436,6 @@ def packages_upload_luarocks_with_http_info(owner, repo, opts = {}) end return data, status_code, headers end - # Create a new Maven package # Create a new Maven package # @param owner @@ -1469,7 +1445,7 @@ def packages_upload_luarocks_with_http_info(owner, repo, opts = {}) # @return [MavenPackageUpload] def packages_upload_maven(owner, repo, opts = {}) data, _status_code, _headers = packages_upload_maven_with_http_info(owner, repo, opts) - return data + data end # Create a new Maven package @@ -1481,7 +1457,7 @@ def packages_upload_maven(owner, repo, opts = {}) # @return [Array<(MavenPackageUpload, Fixnum, Hash)>] MavenPackageUpload data, response status code and response headers def packages_upload_maven_with_http_info(owner, repo, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: PackagesApi.packages_upload_maven ..." + @api_client.config.logger.debug 'Calling API: PackagesApi.packages_upload_maven ...' end # verify the required parameter 'owner' is set if @api_client.config.client_side_validation && owner.nil? @@ -1492,7 +1468,7 @@ def packages_upload_maven_with_http_info(owner, repo, opts = {}) fail ArgumentError, "Missing the required parameter 'repo' when calling PackagesApi.packages_upload_maven" end # resource path - local_var_path = "/packages/{owner}/{repo}/upload/maven/".sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) + local_var_path = '/packages/{owner}/{repo}/upload/maven/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) # query parameters query_params = {} @@ -1520,7 +1496,6 @@ def packages_upload_maven_with_http_info(owner, repo, opts = {}) end return data, status_code, headers end - # Create a new npm package # Create a new npm package # @param owner @@ -1530,7 +1505,7 @@ def packages_upload_maven_with_http_info(owner, repo, opts = {}) # @return [AlpinePackageUpload] def packages_upload_npm(owner, repo, opts = {}) data, _status_code, _headers = packages_upload_npm_with_http_info(owner, repo, opts) - return data + data end # Create a new npm package @@ -1542,7 +1517,7 @@ def packages_upload_npm(owner, repo, opts = {}) # @return [Array<(AlpinePackageUpload, Fixnum, Hash)>] AlpinePackageUpload data, response status code and response headers def packages_upload_npm_with_http_info(owner, repo, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: PackagesApi.packages_upload_npm ..." + @api_client.config.logger.debug 'Calling API: PackagesApi.packages_upload_npm ...' end # verify the required parameter 'owner' is set if @api_client.config.client_side_validation && owner.nil? @@ -1553,7 +1528,7 @@ def packages_upload_npm_with_http_info(owner, repo, opts = {}) fail ArgumentError, "Missing the required parameter 'repo' when calling PackagesApi.packages_upload_npm" end # resource path - local_var_path = "/packages/{owner}/{repo}/upload/npm/".sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) + local_var_path = '/packages/{owner}/{repo}/upload/npm/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) # query parameters query_params = {} @@ -1581,7 +1556,6 @@ def packages_upload_npm_with_http_info(owner, repo, opts = {}) end return data, status_code, headers end - # Create a new NuGet package # Create a new NuGet package # @param owner @@ -1591,7 +1565,7 @@ def packages_upload_npm_with_http_info(owner, repo, opts = {}) # @return [AlpinePackageUpload] def packages_upload_nuget(owner, repo, opts = {}) data, _status_code, _headers = packages_upload_nuget_with_http_info(owner, repo, opts) - return data + data end # Create a new NuGet package @@ -1603,7 +1577,7 @@ def packages_upload_nuget(owner, repo, opts = {}) # @return [Array<(AlpinePackageUpload, Fixnum, Hash)>] AlpinePackageUpload data, response status code and response headers def packages_upload_nuget_with_http_info(owner, repo, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: PackagesApi.packages_upload_nuget ..." + @api_client.config.logger.debug 'Calling API: PackagesApi.packages_upload_nuget ...' end # verify the required parameter 'owner' is set if @api_client.config.client_side_validation && owner.nil? @@ -1614,7 +1588,7 @@ def packages_upload_nuget_with_http_info(owner, repo, opts = {}) fail ArgumentError, "Missing the required parameter 'repo' when calling PackagesApi.packages_upload_nuget" end # resource path - local_var_path = "/packages/{owner}/{repo}/upload/nuget/".sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) + local_var_path = '/packages/{owner}/{repo}/upload/nuget/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) # query parameters query_params = {} @@ -1642,7 +1616,6 @@ def packages_upload_nuget_with_http_info(owner, repo, opts = {}) end return data, status_code, headers end - # Create a new P2 package # Create a new P2 package # @param owner @@ -1652,7 +1625,7 @@ def packages_upload_nuget_with_http_info(owner, repo, opts = {}) # @return [AlpinePackageUpload] def packages_upload_p2(owner, repo, opts = {}) data, _status_code, _headers = packages_upload_p2_with_http_info(owner, repo, opts) - return data + data end # Create a new P2 package @@ -1664,7 +1637,7 @@ def packages_upload_p2(owner, repo, opts = {}) # @return [Array<(AlpinePackageUpload, Fixnum, Hash)>] AlpinePackageUpload data, response status code and response headers def packages_upload_p2_with_http_info(owner, repo, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: PackagesApi.packages_upload_p2 ..." + @api_client.config.logger.debug 'Calling API: PackagesApi.packages_upload_p2 ...' end # verify the required parameter 'owner' is set if @api_client.config.client_side_validation && owner.nil? @@ -1675,7 +1648,7 @@ def packages_upload_p2_with_http_info(owner, repo, opts = {}) fail ArgumentError, "Missing the required parameter 'repo' when calling PackagesApi.packages_upload_p2" end # resource path - local_var_path = "/packages/{owner}/{repo}/upload/p2/".sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) + local_var_path = '/packages/{owner}/{repo}/upload/p2/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) # query parameters query_params = {} @@ -1703,7 +1676,6 @@ def packages_upload_p2_with_http_info(owner, repo, opts = {}) end return data, status_code, headers end - # Create a new Python package # Create a new Python package # @param owner @@ -1713,7 +1685,7 @@ def packages_upload_p2_with_http_info(owner, repo, opts = {}) # @return [AlpinePackageUpload] def packages_upload_python(owner, repo, opts = {}) data, _status_code, _headers = packages_upload_python_with_http_info(owner, repo, opts) - return data + data end # Create a new Python package @@ -1725,7 +1697,7 @@ def packages_upload_python(owner, repo, opts = {}) # @return [Array<(AlpinePackageUpload, Fixnum, Hash)>] AlpinePackageUpload data, response status code and response headers def packages_upload_python_with_http_info(owner, repo, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: PackagesApi.packages_upload_python ..." + @api_client.config.logger.debug 'Calling API: PackagesApi.packages_upload_python ...' end # verify the required parameter 'owner' is set if @api_client.config.client_side_validation && owner.nil? @@ -1736,7 +1708,7 @@ def packages_upload_python_with_http_info(owner, repo, opts = {}) fail ArgumentError, "Missing the required parameter 'repo' when calling PackagesApi.packages_upload_python" end # resource path - local_var_path = "/packages/{owner}/{repo}/upload/python/".sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) + local_var_path = '/packages/{owner}/{repo}/upload/python/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) # query parameters query_params = {} @@ -1764,7 +1736,6 @@ def packages_upload_python_with_http_info(owner, repo, opts = {}) end return data, status_code, headers end - # Create a new Raw package # Create a new Raw package # @param owner @@ -1774,7 +1745,7 @@ def packages_upload_python_with_http_info(owner, repo, opts = {}) # @return [RawPackageUpload] def packages_upload_raw(owner, repo, opts = {}) data, _status_code, _headers = packages_upload_raw_with_http_info(owner, repo, opts) - return data + data end # Create a new Raw package @@ -1786,7 +1757,7 @@ def packages_upload_raw(owner, repo, opts = {}) # @return [Array<(RawPackageUpload, Fixnum, Hash)>] RawPackageUpload data, response status code and response headers def packages_upload_raw_with_http_info(owner, repo, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: PackagesApi.packages_upload_raw ..." + @api_client.config.logger.debug 'Calling API: PackagesApi.packages_upload_raw ...' end # verify the required parameter 'owner' is set if @api_client.config.client_side_validation && owner.nil? @@ -1797,7 +1768,7 @@ def packages_upload_raw_with_http_info(owner, repo, opts = {}) fail ArgumentError, "Missing the required parameter 'repo' when calling PackagesApi.packages_upload_raw" end # resource path - local_var_path = "/packages/{owner}/{repo}/upload/raw/".sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) + local_var_path = '/packages/{owner}/{repo}/upload/raw/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) # query parameters query_params = {} @@ -1825,7 +1796,6 @@ def packages_upload_raw_with_http_info(owner, repo, opts = {}) end return data, status_code, headers end - # Create a new RedHat package # Create a new RedHat package # @param owner @@ -1835,7 +1805,7 @@ def packages_upload_raw_with_http_info(owner, repo, opts = {}) # @return [AlpinePackageUpload] def packages_upload_rpm(owner, repo, opts = {}) data, _status_code, _headers = packages_upload_rpm_with_http_info(owner, repo, opts) - return data + data end # Create a new RedHat package @@ -1847,7 +1817,7 @@ def packages_upload_rpm(owner, repo, opts = {}) # @return [Array<(AlpinePackageUpload, Fixnum, Hash)>] AlpinePackageUpload data, response status code and response headers def packages_upload_rpm_with_http_info(owner, repo, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: PackagesApi.packages_upload_rpm ..." + @api_client.config.logger.debug 'Calling API: PackagesApi.packages_upload_rpm ...' end # verify the required parameter 'owner' is set if @api_client.config.client_side_validation && owner.nil? @@ -1858,7 +1828,7 @@ def packages_upload_rpm_with_http_info(owner, repo, opts = {}) fail ArgumentError, "Missing the required parameter 'repo' when calling PackagesApi.packages_upload_rpm" end # resource path - local_var_path = "/packages/{owner}/{repo}/upload/rpm/".sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) + local_var_path = '/packages/{owner}/{repo}/upload/rpm/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) # query parameters query_params = {} @@ -1886,7 +1856,6 @@ def packages_upload_rpm_with_http_info(owner, repo, opts = {}) end return data, status_code, headers end - # Create a new Ruby package # Create a new Ruby package # @param owner @@ -1896,7 +1865,7 @@ def packages_upload_rpm_with_http_info(owner, repo, opts = {}) # @return [AlpinePackageUpload] def packages_upload_ruby(owner, repo, opts = {}) data, _status_code, _headers = packages_upload_ruby_with_http_info(owner, repo, opts) - return data + data end # Create a new Ruby package @@ -1908,7 +1877,7 @@ def packages_upload_ruby(owner, repo, opts = {}) # @return [Array<(AlpinePackageUpload, Fixnum, Hash)>] AlpinePackageUpload data, response status code and response headers def packages_upload_ruby_with_http_info(owner, repo, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: PackagesApi.packages_upload_ruby ..." + @api_client.config.logger.debug 'Calling API: PackagesApi.packages_upload_ruby ...' end # verify the required parameter 'owner' is set if @api_client.config.client_side_validation && owner.nil? @@ -1919,7 +1888,7 @@ def packages_upload_ruby_with_http_info(owner, repo, opts = {}) fail ArgumentError, "Missing the required parameter 'repo' when calling PackagesApi.packages_upload_ruby" end # resource path - local_var_path = "/packages/{owner}/{repo}/upload/ruby/".sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) + local_var_path = '/packages/{owner}/{repo}/upload/ruby/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) # query parameters query_params = {} @@ -1947,7 +1916,6 @@ def packages_upload_ruby_with_http_info(owner, repo, opts = {}) end return data, status_code, headers end - # Create a new Terraform package # Create a new Terraform package # @param owner @@ -1957,7 +1925,7 @@ def packages_upload_ruby_with_http_info(owner, repo, opts = {}) # @return [AlpinePackageUpload] def packages_upload_terraform(owner, repo, opts = {}) data, _status_code, _headers = packages_upload_terraform_with_http_info(owner, repo, opts) - return data + data end # Create a new Terraform package @@ -1969,7 +1937,7 @@ def packages_upload_terraform(owner, repo, opts = {}) # @return [Array<(AlpinePackageUpload, Fixnum, Hash)>] AlpinePackageUpload data, response status code and response headers def packages_upload_terraform_with_http_info(owner, repo, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: PackagesApi.packages_upload_terraform ..." + @api_client.config.logger.debug 'Calling API: PackagesApi.packages_upload_terraform ...' end # verify the required parameter 'owner' is set if @api_client.config.client_side_validation && owner.nil? @@ -1980,7 +1948,7 @@ def packages_upload_terraform_with_http_info(owner, repo, opts = {}) fail ArgumentError, "Missing the required parameter 'repo' when calling PackagesApi.packages_upload_terraform" end # resource path - local_var_path = "/packages/{owner}/{repo}/upload/terraform/".sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) + local_var_path = '/packages/{owner}/{repo}/upload/terraform/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) # query parameters query_params = {} @@ -2008,7 +1976,6 @@ def packages_upload_terraform_with_http_info(owner, repo, opts = {}) end return data, status_code, headers end - # Create a new Vagrant package # Create a new Vagrant package # @param owner @@ -2018,7 +1985,7 @@ def packages_upload_terraform_with_http_info(owner, repo, opts = {}) # @return [VagrantPackageUpload] def packages_upload_vagrant(owner, repo, opts = {}) data, _status_code, _headers = packages_upload_vagrant_with_http_info(owner, repo, opts) - return data + data end # Create a new Vagrant package @@ -2030,7 +1997,7 @@ def packages_upload_vagrant(owner, repo, opts = {}) # @return [Array<(VagrantPackageUpload, Fixnum, Hash)>] VagrantPackageUpload data, response status code and response headers def packages_upload_vagrant_with_http_info(owner, repo, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: PackagesApi.packages_upload_vagrant ..." + @api_client.config.logger.debug 'Calling API: PackagesApi.packages_upload_vagrant ...' end # verify the required parameter 'owner' is set if @api_client.config.client_side_validation && owner.nil? @@ -2041,7 +2008,7 @@ def packages_upload_vagrant_with_http_info(owner, repo, opts = {}) fail ArgumentError, "Missing the required parameter 'repo' when calling PackagesApi.packages_upload_vagrant" end # resource path - local_var_path = "/packages/{owner}/{repo}/upload/vagrant/".sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) + local_var_path = '/packages/{owner}/{repo}/upload/vagrant/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) # query parameters query_params = {} @@ -2069,7 +2036,6 @@ def packages_upload_vagrant_with_http_info(owner, repo, opts = {}) end return data, status_code, headers end - # Validate parameters for create Alpine package # Validate parameters for create Alpine package # @param owner @@ -2079,7 +2045,7 @@ def packages_upload_vagrant_with_http_info(owner, repo, opts = {}) # @return [nil] def packages_validate_upload_alpine(owner, repo, opts = {}) packages_validate_upload_alpine_with_http_info(owner, repo, opts) - return nil + nil end # Validate parameters for create Alpine package @@ -2091,7 +2057,7 @@ def packages_validate_upload_alpine(owner, repo, opts = {}) # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def packages_validate_upload_alpine_with_http_info(owner, repo, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: PackagesApi.packages_validate_upload_alpine ..." + @api_client.config.logger.debug 'Calling API: PackagesApi.packages_validate_upload_alpine ...' end # verify the required parameter 'owner' is set if @api_client.config.client_side_validation && owner.nil? @@ -2102,7 +2068,7 @@ def packages_validate_upload_alpine_with_http_info(owner, repo, opts = {}) fail ArgumentError, "Missing the required parameter 'repo' when calling PackagesApi.packages_validate_upload_alpine" end # resource path - local_var_path = "/packages/{owner}/{repo}/validate-upload/alpine/".sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) + local_var_path = '/packages/{owner}/{repo}/validate-upload/alpine/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) # query parameters query_params = {} @@ -2129,7 +2095,6 @@ def packages_validate_upload_alpine_with_http_info(owner, repo, opts = {}) end return data, status_code, headers end - # Validate parameters for create Cargo package # Validate parameters for create Cargo package # @param owner @@ -2139,7 +2104,7 @@ def packages_validate_upload_alpine_with_http_info(owner, repo, opts = {}) # @return [nil] def packages_validate_upload_cargo(owner, repo, opts = {}) packages_validate_upload_cargo_with_http_info(owner, repo, opts) - return nil + nil end # Validate parameters for create Cargo package @@ -2151,7 +2116,7 @@ def packages_validate_upload_cargo(owner, repo, opts = {}) # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def packages_validate_upload_cargo_with_http_info(owner, repo, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: PackagesApi.packages_validate_upload_cargo ..." + @api_client.config.logger.debug 'Calling API: PackagesApi.packages_validate_upload_cargo ...' end # verify the required parameter 'owner' is set if @api_client.config.client_side_validation && owner.nil? @@ -2162,7 +2127,7 @@ def packages_validate_upload_cargo_with_http_info(owner, repo, opts = {}) fail ArgumentError, "Missing the required parameter 'repo' when calling PackagesApi.packages_validate_upload_cargo" end # resource path - local_var_path = "/packages/{owner}/{repo}/validate-upload/cargo/".sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) + local_var_path = '/packages/{owner}/{repo}/validate-upload/cargo/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) # query parameters query_params = {} @@ -2189,7 +2154,6 @@ def packages_validate_upload_cargo_with_http_info(owner, repo, opts = {}) end return data, status_code, headers end - # Validate parameters for create CocoaPods package # Validate parameters for create CocoaPods package # @param owner @@ -2199,7 +2163,7 @@ def packages_validate_upload_cargo_with_http_info(owner, repo, opts = {}) # @return [nil] def packages_validate_upload_cocoapods(owner, repo, opts = {}) packages_validate_upload_cocoapods_with_http_info(owner, repo, opts) - return nil + nil end # Validate parameters for create CocoaPods package @@ -2211,7 +2175,7 @@ def packages_validate_upload_cocoapods(owner, repo, opts = {}) # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def packages_validate_upload_cocoapods_with_http_info(owner, repo, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: PackagesApi.packages_validate_upload_cocoapods ..." + @api_client.config.logger.debug 'Calling API: PackagesApi.packages_validate_upload_cocoapods ...' end # verify the required parameter 'owner' is set if @api_client.config.client_side_validation && owner.nil? @@ -2222,7 +2186,7 @@ def packages_validate_upload_cocoapods_with_http_info(owner, repo, opts = {}) fail ArgumentError, "Missing the required parameter 'repo' when calling PackagesApi.packages_validate_upload_cocoapods" end # resource path - local_var_path = "/packages/{owner}/{repo}/validate-upload/cocoapods/".sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) + local_var_path = '/packages/{owner}/{repo}/validate-upload/cocoapods/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) # query parameters query_params = {} @@ -2249,7 +2213,6 @@ def packages_validate_upload_cocoapods_with_http_info(owner, repo, opts = {}) end return data, status_code, headers end - # Validate parameters for create Composer package # Validate parameters for create Composer package # @param owner @@ -2259,7 +2222,7 @@ def packages_validate_upload_cocoapods_with_http_info(owner, repo, opts = {}) # @return [nil] def packages_validate_upload_composer(owner, repo, opts = {}) packages_validate_upload_composer_with_http_info(owner, repo, opts) - return nil + nil end # Validate parameters for create Composer package @@ -2271,7 +2234,7 @@ def packages_validate_upload_composer(owner, repo, opts = {}) # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def packages_validate_upload_composer_with_http_info(owner, repo, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: PackagesApi.packages_validate_upload_composer ..." + @api_client.config.logger.debug 'Calling API: PackagesApi.packages_validate_upload_composer ...' end # verify the required parameter 'owner' is set if @api_client.config.client_side_validation && owner.nil? @@ -2282,7 +2245,7 @@ def packages_validate_upload_composer_with_http_info(owner, repo, opts = {}) fail ArgumentError, "Missing the required parameter 'repo' when calling PackagesApi.packages_validate_upload_composer" end # resource path - local_var_path = "/packages/{owner}/{repo}/validate-upload/composer/".sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) + local_var_path = '/packages/{owner}/{repo}/validate-upload/composer/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) # query parameters query_params = {} @@ -2309,7 +2272,6 @@ def packages_validate_upload_composer_with_http_info(owner, repo, opts = {}) end return data, status_code, headers end - # Validate parameters for create Conan package # Validate parameters for create Conan package # @param owner @@ -2319,7 +2281,7 @@ def packages_validate_upload_composer_with_http_info(owner, repo, opts = {}) # @return [nil] def packages_validate_upload_conan(owner, repo, opts = {}) packages_validate_upload_conan_with_http_info(owner, repo, opts) - return nil + nil end # Validate parameters for create Conan package @@ -2331,7 +2293,7 @@ def packages_validate_upload_conan(owner, repo, opts = {}) # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def packages_validate_upload_conan_with_http_info(owner, repo, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: PackagesApi.packages_validate_upload_conan ..." + @api_client.config.logger.debug 'Calling API: PackagesApi.packages_validate_upload_conan ...' end # verify the required parameter 'owner' is set if @api_client.config.client_side_validation && owner.nil? @@ -2342,7 +2304,7 @@ def packages_validate_upload_conan_with_http_info(owner, repo, opts = {}) fail ArgumentError, "Missing the required parameter 'repo' when calling PackagesApi.packages_validate_upload_conan" end # resource path - local_var_path = "/packages/{owner}/{repo}/validate-upload/conan/".sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) + local_var_path = '/packages/{owner}/{repo}/validate-upload/conan/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) # query parameters query_params = {} @@ -2369,7 +2331,6 @@ def packages_validate_upload_conan_with_http_info(owner, repo, opts = {}) end return data, status_code, headers end - # Validate parameters for create Conda package # Validate parameters for create Conda package # @param owner @@ -2379,7 +2340,7 @@ def packages_validate_upload_conan_with_http_info(owner, repo, opts = {}) # @return [nil] def packages_validate_upload_conda(owner, repo, opts = {}) packages_validate_upload_conda_with_http_info(owner, repo, opts) - return nil + nil end # Validate parameters for create Conda package @@ -2391,7 +2352,7 @@ def packages_validate_upload_conda(owner, repo, opts = {}) # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def packages_validate_upload_conda_with_http_info(owner, repo, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: PackagesApi.packages_validate_upload_conda ..." + @api_client.config.logger.debug 'Calling API: PackagesApi.packages_validate_upload_conda ...' end # verify the required parameter 'owner' is set if @api_client.config.client_side_validation && owner.nil? @@ -2402,7 +2363,7 @@ def packages_validate_upload_conda_with_http_info(owner, repo, opts = {}) fail ArgumentError, "Missing the required parameter 'repo' when calling PackagesApi.packages_validate_upload_conda" end # resource path - local_var_path = "/packages/{owner}/{repo}/validate-upload/conda/".sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) + local_var_path = '/packages/{owner}/{repo}/validate-upload/conda/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) # query parameters query_params = {} @@ -2429,7 +2390,6 @@ def packages_validate_upload_conda_with_http_info(owner, repo, opts = {}) end return data, status_code, headers end - # Validate parameters for create CRAN package # Validate parameters for create CRAN package # @param owner @@ -2439,7 +2399,7 @@ def packages_validate_upload_conda_with_http_info(owner, repo, opts = {}) # @return [nil] def packages_validate_upload_cran(owner, repo, opts = {}) packages_validate_upload_cran_with_http_info(owner, repo, opts) - return nil + nil end # Validate parameters for create CRAN package @@ -2451,7 +2411,7 @@ def packages_validate_upload_cran(owner, repo, opts = {}) # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def packages_validate_upload_cran_with_http_info(owner, repo, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: PackagesApi.packages_validate_upload_cran ..." + @api_client.config.logger.debug 'Calling API: PackagesApi.packages_validate_upload_cran ...' end # verify the required parameter 'owner' is set if @api_client.config.client_side_validation && owner.nil? @@ -2462,7 +2422,7 @@ def packages_validate_upload_cran_with_http_info(owner, repo, opts = {}) fail ArgumentError, "Missing the required parameter 'repo' when calling PackagesApi.packages_validate_upload_cran" end # resource path - local_var_path = "/packages/{owner}/{repo}/validate-upload/cran/".sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) + local_var_path = '/packages/{owner}/{repo}/validate-upload/cran/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) # query parameters query_params = {} @@ -2489,7 +2449,6 @@ def packages_validate_upload_cran_with_http_info(owner, repo, opts = {}) end return data, status_code, headers end - # Validate parameters for create Dart package # Validate parameters for create Dart package # @param owner @@ -2499,7 +2458,7 @@ def packages_validate_upload_cran_with_http_info(owner, repo, opts = {}) # @return [nil] def packages_validate_upload_dart(owner, repo, opts = {}) packages_validate_upload_dart_with_http_info(owner, repo, opts) - return nil + nil end # Validate parameters for create Dart package @@ -2511,7 +2470,7 @@ def packages_validate_upload_dart(owner, repo, opts = {}) # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def packages_validate_upload_dart_with_http_info(owner, repo, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: PackagesApi.packages_validate_upload_dart ..." + @api_client.config.logger.debug 'Calling API: PackagesApi.packages_validate_upload_dart ...' end # verify the required parameter 'owner' is set if @api_client.config.client_side_validation && owner.nil? @@ -2522,7 +2481,7 @@ def packages_validate_upload_dart_with_http_info(owner, repo, opts = {}) fail ArgumentError, "Missing the required parameter 'repo' when calling PackagesApi.packages_validate_upload_dart" end # resource path - local_var_path = "/packages/{owner}/{repo}/validate-upload/dart/".sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) + local_var_path = '/packages/{owner}/{repo}/validate-upload/dart/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) # query parameters query_params = {} @@ -2549,7 +2508,6 @@ def packages_validate_upload_dart_with_http_info(owner, repo, opts = {}) end return data, status_code, headers end - # Validate parameters for create Debian package # Validate parameters for create Debian package # @param owner @@ -2559,7 +2517,7 @@ def packages_validate_upload_dart_with_http_info(owner, repo, opts = {}) # @return [nil] def packages_validate_upload_deb(owner, repo, opts = {}) packages_validate_upload_deb_with_http_info(owner, repo, opts) - return nil + nil end # Validate parameters for create Debian package @@ -2571,7 +2529,7 @@ def packages_validate_upload_deb(owner, repo, opts = {}) # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def packages_validate_upload_deb_with_http_info(owner, repo, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: PackagesApi.packages_validate_upload_deb ..." + @api_client.config.logger.debug 'Calling API: PackagesApi.packages_validate_upload_deb ...' end # verify the required parameter 'owner' is set if @api_client.config.client_side_validation && owner.nil? @@ -2582,7 +2540,7 @@ def packages_validate_upload_deb_with_http_info(owner, repo, opts = {}) fail ArgumentError, "Missing the required parameter 'repo' when calling PackagesApi.packages_validate_upload_deb" end # resource path - local_var_path = "/packages/{owner}/{repo}/validate-upload/deb/".sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) + local_var_path = '/packages/{owner}/{repo}/validate-upload/deb/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) # query parameters query_params = {} @@ -2609,7 +2567,6 @@ def packages_validate_upload_deb_with_http_info(owner, repo, opts = {}) end return data, status_code, headers end - # Validate parameters for create Docker package # Validate parameters for create Docker package # @param owner @@ -2619,7 +2576,7 @@ def packages_validate_upload_deb_with_http_info(owner, repo, opts = {}) # @return [nil] def packages_validate_upload_docker(owner, repo, opts = {}) packages_validate_upload_docker_with_http_info(owner, repo, opts) - return nil + nil end # Validate parameters for create Docker package @@ -2631,7 +2588,7 @@ def packages_validate_upload_docker(owner, repo, opts = {}) # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def packages_validate_upload_docker_with_http_info(owner, repo, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: PackagesApi.packages_validate_upload_docker ..." + @api_client.config.logger.debug 'Calling API: PackagesApi.packages_validate_upload_docker ...' end # verify the required parameter 'owner' is set if @api_client.config.client_side_validation && owner.nil? @@ -2642,7 +2599,7 @@ def packages_validate_upload_docker_with_http_info(owner, repo, opts = {}) fail ArgumentError, "Missing the required parameter 'repo' when calling PackagesApi.packages_validate_upload_docker" end # resource path - local_var_path = "/packages/{owner}/{repo}/validate-upload/docker/".sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) + local_var_path = '/packages/{owner}/{repo}/validate-upload/docker/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) # query parameters query_params = {} @@ -2669,7 +2626,6 @@ def packages_validate_upload_docker_with_http_info(owner, repo, opts = {}) end return data, status_code, headers end - # Validate parameters for create Go package # Validate parameters for create Go package # @param owner @@ -2679,7 +2635,7 @@ def packages_validate_upload_docker_with_http_info(owner, repo, opts = {}) # @return [nil] def packages_validate_upload_go(owner, repo, opts = {}) packages_validate_upload_go_with_http_info(owner, repo, opts) - return nil + nil end # Validate parameters for create Go package @@ -2691,7 +2647,7 @@ def packages_validate_upload_go(owner, repo, opts = {}) # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def packages_validate_upload_go_with_http_info(owner, repo, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: PackagesApi.packages_validate_upload_go ..." + @api_client.config.logger.debug 'Calling API: PackagesApi.packages_validate_upload_go ...' end # verify the required parameter 'owner' is set if @api_client.config.client_side_validation && owner.nil? @@ -2702,7 +2658,7 @@ def packages_validate_upload_go_with_http_info(owner, repo, opts = {}) fail ArgumentError, "Missing the required parameter 'repo' when calling PackagesApi.packages_validate_upload_go" end # resource path - local_var_path = "/packages/{owner}/{repo}/validate-upload/go/".sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) + local_var_path = '/packages/{owner}/{repo}/validate-upload/go/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) # query parameters query_params = {} @@ -2729,7 +2685,6 @@ def packages_validate_upload_go_with_http_info(owner, repo, opts = {}) end return data, status_code, headers end - # Validate parameters for create Helm package # Validate parameters for create Helm package # @param owner @@ -2739,7 +2694,7 @@ def packages_validate_upload_go_with_http_info(owner, repo, opts = {}) # @return [nil] def packages_validate_upload_helm(owner, repo, opts = {}) packages_validate_upload_helm_with_http_info(owner, repo, opts) - return nil + nil end # Validate parameters for create Helm package @@ -2751,7 +2706,7 @@ def packages_validate_upload_helm(owner, repo, opts = {}) # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def packages_validate_upload_helm_with_http_info(owner, repo, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: PackagesApi.packages_validate_upload_helm ..." + @api_client.config.logger.debug 'Calling API: PackagesApi.packages_validate_upload_helm ...' end # verify the required parameter 'owner' is set if @api_client.config.client_side_validation && owner.nil? @@ -2762,7 +2717,7 @@ def packages_validate_upload_helm_with_http_info(owner, repo, opts = {}) fail ArgumentError, "Missing the required parameter 'repo' when calling PackagesApi.packages_validate_upload_helm" end # resource path - local_var_path = "/packages/{owner}/{repo}/validate-upload/helm/".sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) + local_var_path = '/packages/{owner}/{repo}/validate-upload/helm/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) # query parameters query_params = {} @@ -2789,7 +2744,6 @@ def packages_validate_upload_helm_with_http_info(owner, repo, opts = {}) end return data, status_code, headers end - # Validate parameters for create LuaRocks package # Validate parameters for create LuaRocks package # @param owner @@ -2799,7 +2753,7 @@ def packages_validate_upload_helm_with_http_info(owner, repo, opts = {}) # @return [nil] def packages_validate_upload_luarocks(owner, repo, opts = {}) packages_validate_upload_luarocks_with_http_info(owner, repo, opts) - return nil + nil end # Validate parameters for create LuaRocks package @@ -2811,7 +2765,7 @@ def packages_validate_upload_luarocks(owner, repo, opts = {}) # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def packages_validate_upload_luarocks_with_http_info(owner, repo, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: PackagesApi.packages_validate_upload_luarocks ..." + @api_client.config.logger.debug 'Calling API: PackagesApi.packages_validate_upload_luarocks ...' end # verify the required parameter 'owner' is set if @api_client.config.client_side_validation && owner.nil? @@ -2822,7 +2776,7 @@ def packages_validate_upload_luarocks_with_http_info(owner, repo, opts = {}) fail ArgumentError, "Missing the required parameter 'repo' when calling PackagesApi.packages_validate_upload_luarocks" end # resource path - local_var_path = "/packages/{owner}/{repo}/validate-upload/luarocks/".sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) + local_var_path = '/packages/{owner}/{repo}/validate-upload/luarocks/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) # query parameters query_params = {} @@ -2849,7 +2803,6 @@ def packages_validate_upload_luarocks_with_http_info(owner, repo, opts = {}) end return data, status_code, headers end - # Validate parameters for create Maven package # Validate parameters for create Maven package # @param owner @@ -2859,7 +2812,7 @@ def packages_validate_upload_luarocks_with_http_info(owner, repo, opts = {}) # @return [nil] def packages_validate_upload_maven(owner, repo, opts = {}) packages_validate_upload_maven_with_http_info(owner, repo, opts) - return nil + nil end # Validate parameters for create Maven package @@ -2871,7 +2824,7 @@ def packages_validate_upload_maven(owner, repo, opts = {}) # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def packages_validate_upload_maven_with_http_info(owner, repo, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: PackagesApi.packages_validate_upload_maven ..." + @api_client.config.logger.debug 'Calling API: PackagesApi.packages_validate_upload_maven ...' end # verify the required parameter 'owner' is set if @api_client.config.client_side_validation && owner.nil? @@ -2882,7 +2835,7 @@ def packages_validate_upload_maven_with_http_info(owner, repo, opts = {}) fail ArgumentError, "Missing the required parameter 'repo' when calling PackagesApi.packages_validate_upload_maven" end # resource path - local_var_path = "/packages/{owner}/{repo}/validate-upload/maven/".sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) + local_var_path = '/packages/{owner}/{repo}/validate-upload/maven/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) # query parameters query_params = {} @@ -2909,7 +2862,6 @@ def packages_validate_upload_maven_with_http_info(owner, repo, opts = {}) end return data, status_code, headers end - # Validate parameters for create npm package # Validate parameters for create npm package # @param owner @@ -2919,7 +2871,7 @@ def packages_validate_upload_maven_with_http_info(owner, repo, opts = {}) # @return [nil] def packages_validate_upload_npm(owner, repo, opts = {}) packages_validate_upload_npm_with_http_info(owner, repo, opts) - return nil + nil end # Validate parameters for create npm package @@ -2931,7 +2883,7 @@ def packages_validate_upload_npm(owner, repo, opts = {}) # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def packages_validate_upload_npm_with_http_info(owner, repo, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: PackagesApi.packages_validate_upload_npm ..." + @api_client.config.logger.debug 'Calling API: PackagesApi.packages_validate_upload_npm ...' end # verify the required parameter 'owner' is set if @api_client.config.client_side_validation && owner.nil? @@ -2942,7 +2894,7 @@ def packages_validate_upload_npm_with_http_info(owner, repo, opts = {}) fail ArgumentError, "Missing the required parameter 'repo' when calling PackagesApi.packages_validate_upload_npm" end # resource path - local_var_path = "/packages/{owner}/{repo}/validate-upload/npm/".sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) + local_var_path = '/packages/{owner}/{repo}/validate-upload/npm/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) # query parameters query_params = {} @@ -2969,7 +2921,6 @@ def packages_validate_upload_npm_with_http_info(owner, repo, opts = {}) end return data, status_code, headers end - # Validate parameters for create NuGet package # Validate parameters for create NuGet package # @param owner @@ -2979,7 +2930,7 @@ def packages_validate_upload_npm_with_http_info(owner, repo, opts = {}) # @return [nil] def packages_validate_upload_nuget(owner, repo, opts = {}) packages_validate_upload_nuget_with_http_info(owner, repo, opts) - return nil + nil end # Validate parameters for create NuGet package @@ -2991,7 +2942,7 @@ def packages_validate_upload_nuget(owner, repo, opts = {}) # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def packages_validate_upload_nuget_with_http_info(owner, repo, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: PackagesApi.packages_validate_upload_nuget ..." + @api_client.config.logger.debug 'Calling API: PackagesApi.packages_validate_upload_nuget ...' end # verify the required parameter 'owner' is set if @api_client.config.client_side_validation && owner.nil? @@ -3002,7 +2953,7 @@ def packages_validate_upload_nuget_with_http_info(owner, repo, opts = {}) fail ArgumentError, "Missing the required parameter 'repo' when calling PackagesApi.packages_validate_upload_nuget" end # resource path - local_var_path = "/packages/{owner}/{repo}/validate-upload/nuget/".sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) + local_var_path = '/packages/{owner}/{repo}/validate-upload/nuget/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) # query parameters query_params = {} @@ -3029,7 +2980,6 @@ def packages_validate_upload_nuget_with_http_info(owner, repo, opts = {}) end return data, status_code, headers end - # Validate parameters for create P2 package # Validate parameters for create P2 package # @param owner @@ -3039,7 +2989,7 @@ def packages_validate_upload_nuget_with_http_info(owner, repo, opts = {}) # @return [nil] def packages_validate_upload_p2(owner, repo, opts = {}) packages_validate_upload_p2_with_http_info(owner, repo, opts) - return nil + nil end # Validate parameters for create P2 package @@ -3051,7 +3001,7 @@ def packages_validate_upload_p2(owner, repo, opts = {}) # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def packages_validate_upload_p2_with_http_info(owner, repo, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: PackagesApi.packages_validate_upload_p2 ..." + @api_client.config.logger.debug 'Calling API: PackagesApi.packages_validate_upload_p2 ...' end # verify the required parameter 'owner' is set if @api_client.config.client_side_validation && owner.nil? @@ -3062,7 +3012,7 @@ def packages_validate_upload_p2_with_http_info(owner, repo, opts = {}) fail ArgumentError, "Missing the required parameter 'repo' when calling PackagesApi.packages_validate_upload_p2" end # resource path - local_var_path = "/packages/{owner}/{repo}/validate-upload/p2/".sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) + local_var_path = '/packages/{owner}/{repo}/validate-upload/p2/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) # query parameters query_params = {} @@ -3089,7 +3039,6 @@ def packages_validate_upload_p2_with_http_info(owner, repo, opts = {}) end return data, status_code, headers end - # Validate parameters for create Python package # Validate parameters for create Python package # @param owner @@ -3099,7 +3048,7 @@ def packages_validate_upload_p2_with_http_info(owner, repo, opts = {}) # @return [nil] def packages_validate_upload_python(owner, repo, opts = {}) packages_validate_upload_python_with_http_info(owner, repo, opts) - return nil + nil end # Validate parameters for create Python package @@ -3111,7 +3060,7 @@ def packages_validate_upload_python(owner, repo, opts = {}) # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def packages_validate_upload_python_with_http_info(owner, repo, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: PackagesApi.packages_validate_upload_python ..." + @api_client.config.logger.debug 'Calling API: PackagesApi.packages_validate_upload_python ...' end # verify the required parameter 'owner' is set if @api_client.config.client_side_validation && owner.nil? @@ -3122,7 +3071,7 @@ def packages_validate_upload_python_with_http_info(owner, repo, opts = {}) fail ArgumentError, "Missing the required parameter 'repo' when calling PackagesApi.packages_validate_upload_python" end # resource path - local_var_path = "/packages/{owner}/{repo}/validate-upload/python/".sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) + local_var_path = '/packages/{owner}/{repo}/validate-upload/python/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) # query parameters query_params = {} @@ -3149,7 +3098,6 @@ def packages_validate_upload_python_with_http_info(owner, repo, opts = {}) end return data, status_code, headers end - # Validate parameters for create Raw package # Validate parameters for create Raw package # @param owner @@ -3159,7 +3107,7 @@ def packages_validate_upload_python_with_http_info(owner, repo, opts = {}) # @return [nil] def packages_validate_upload_raw(owner, repo, opts = {}) packages_validate_upload_raw_with_http_info(owner, repo, opts) - return nil + nil end # Validate parameters for create Raw package @@ -3171,7 +3119,7 @@ def packages_validate_upload_raw(owner, repo, opts = {}) # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def packages_validate_upload_raw_with_http_info(owner, repo, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: PackagesApi.packages_validate_upload_raw ..." + @api_client.config.logger.debug 'Calling API: PackagesApi.packages_validate_upload_raw ...' end # verify the required parameter 'owner' is set if @api_client.config.client_side_validation && owner.nil? @@ -3182,7 +3130,7 @@ def packages_validate_upload_raw_with_http_info(owner, repo, opts = {}) fail ArgumentError, "Missing the required parameter 'repo' when calling PackagesApi.packages_validate_upload_raw" end # resource path - local_var_path = "/packages/{owner}/{repo}/validate-upload/raw/".sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) + local_var_path = '/packages/{owner}/{repo}/validate-upload/raw/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) # query parameters query_params = {} @@ -3209,7 +3157,6 @@ def packages_validate_upload_raw_with_http_info(owner, repo, opts = {}) end return data, status_code, headers end - # Validate parameters for create RedHat package # Validate parameters for create RedHat package # @param owner @@ -3219,7 +3166,7 @@ def packages_validate_upload_raw_with_http_info(owner, repo, opts = {}) # @return [nil] def packages_validate_upload_rpm(owner, repo, opts = {}) packages_validate_upload_rpm_with_http_info(owner, repo, opts) - return nil + nil end # Validate parameters for create RedHat package @@ -3231,7 +3178,7 @@ def packages_validate_upload_rpm(owner, repo, opts = {}) # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def packages_validate_upload_rpm_with_http_info(owner, repo, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: PackagesApi.packages_validate_upload_rpm ..." + @api_client.config.logger.debug 'Calling API: PackagesApi.packages_validate_upload_rpm ...' end # verify the required parameter 'owner' is set if @api_client.config.client_side_validation && owner.nil? @@ -3242,7 +3189,7 @@ def packages_validate_upload_rpm_with_http_info(owner, repo, opts = {}) fail ArgumentError, "Missing the required parameter 'repo' when calling PackagesApi.packages_validate_upload_rpm" end # resource path - local_var_path = "/packages/{owner}/{repo}/validate-upload/rpm/".sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) + local_var_path = '/packages/{owner}/{repo}/validate-upload/rpm/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) # query parameters query_params = {} @@ -3269,7 +3216,6 @@ def packages_validate_upload_rpm_with_http_info(owner, repo, opts = {}) end return data, status_code, headers end - # Validate parameters for create Ruby package # Validate parameters for create Ruby package # @param owner @@ -3279,7 +3225,7 @@ def packages_validate_upload_rpm_with_http_info(owner, repo, opts = {}) # @return [nil] def packages_validate_upload_ruby(owner, repo, opts = {}) packages_validate_upload_ruby_with_http_info(owner, repo, opts) - return nil + nil end # Validate parameters for create Ruby package @@ -3291,7 +3237,7 @@ def packages_validate_upload_ruby(owner, repo, opts = {}) # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def packages_validate_upload_ruby_with_http_info(owner, repo, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: PackagesApi.packages_validate_upload_ruby ..." + @api_client.config.logger.debug 'Calling API: PackagesApi.packages_validate_upload_ruby ...' end # verify the required parameter 'owner' is set if @api_client.config.client_side_validation && owner.nil? @@ -3302,7 +3248,7 @@ def packages_validate_upload_ruby_with_http_info(owner, repo, opts = {}) fail ArgumentError, "Missing the required parameter 'repo' when calling PackagesApi.packages_validate_upload_ruby" end # resource path - local_var_path = "/packages/{owner}/{repo}/validate-upload/ruby/".sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) + local_var_path = '/packages/{owner}/{repo}/validate-upload/ruby/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) # query parameters query_params = {} @@ -3329,7 +3275,6 @@ def packages_validate_upload_ruby_with_http_info(owner, repo, opts = {}) end return data, status_code, headers end - # Validate parameters for create Terraform package # Validate parameters for create Terraform package # @param owner @@ -3339,7 +3284,7 @@ def packages_validate_upload_ruby_with_http_info(owner, repo, opts = {}) # @return [nil] def packages_validate_upload_terraform(owner, repo, opts = {}) packages_validate_upload_terraform_with_http_info(owner, repo, opts) - return nil + nil end # Validate parameters for create Terraform package @@ -3351,7 +3296,7 @@ def packages_validate_upload_terraform(owner, repo, opts = {}) # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def packages_validate_upload_terraform_with_http_info(owner, repo, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: PackagesApi.packages_validate_upload_terraform ..." + @api_client.config.logger.debug 'Calling API: PackagesApi.packages_validate_upload_terraform ...' end # verify the required parameter 'owner' is set if @api_client.config.client_side_validation && owner.nil? @@ -3362,7 +3307,7 @@ def packages_validate_upload_terraform_with_http_info(owner, repo, opts = {}) fail ArgumentError, "Missing the required parameter 'repo' when calling PackagesApi.packages_validate_upload_terraform" end # resource path - local_var_path = "/packages/{owner}/{repo}/validate-upload/terraform/".sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) + local_var_path = '/packages/{owner}/{repo}/validate-upload/terraform/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) # query parameters query_params = {} @@ -3389,7 +3334,6 @@ def packages_validate_upload_terraform_with_http_info(owner, repo, opts = {}) end return data, status_code, headers end - # Validate parameters for create Vagrant package # Validate parameters for create Vagrant package # @param owner @@ -3399,7 +3343,7 @@ def packages_validate_upload_terraform_with_http_info(owner, repo, opts = {}) # @return [nil] def packages_validate_upload_vagrant(owner, repo, opts = {}) packages_validate_upload_vagrant_with_http_info(owner, repo, opts) - return nil + nil end # Validate parameters for create Vagrant package @@ -3411,7 +3355,7 @@ def packages_validate_upload_vagrant(owner, repo, opts = {}) # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def packages_validate_upload_vagrant_with_http_info(owner, repo, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: PackagesApi.packages_validate_upload_vagrant ..." + @api_client.config.logger.debug 'Calling API: PackagesApi.packages_validate_upload_vagrant ...' end # verify the required parameter 'owner' is set if @api_client.config.client_side_validation && owner.nil? @@ -3422,7 +3366,7 @@ def packages_validate_upload_vagrant_with_http_info(owner, repo, opts = {}) fail ArgumentError, "Missing the required parameter 'repo' when calling PackagesApi.packages_validate_upload_vagrant" end # resource path - local_var_path = "/packages/{owner}/{repo}/validate-upload/vagrant/".sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) + local_var_path = '/packages/{owner}/{repo}/validate-upload/vagrant/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) # query parameters query_params = {} diff --git a/bindings/ruby/src/lib/cloudsmith-api/api/quota_api.rb b/bindings/ruby/src/lib/cloudsmith-api/api/quota_api.rb index e431c872..c2f12a69 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/api/quota_api.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/api/quota_api.rb @@ -6,11 +6,11 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end -require "uri" +require 'uri' module CloudsmithApi class QuotaApi @@ -19,7 +19,6 @@ class QuotaApi def initialize(api_client = ApiClient.default) @api_client = api_client end - # Quota history for a given namespace. # Quota history for a given namespace. # @param owner @@ -27,7 +26,7 @@ def initialize(api_client = ApiClient.default) # @return [QuotaHistory] def quota_history_read(owner, opts = {}) data, _status_code, _headers = quota_history_read_with_http_info(owner, opts) - return data + data end # Quota history for a given namespace. @@ -37,14 +36,14 @@ def quota_history_read(owner, opts = {}) # @return [Array<(QuotaHistory, Fixnum, Hash)>] QuotaHistory data, response status code and response headers def quota_history_read_with_http_info(owner, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: QuotaApi.quota_history_read ..." + @api_client.config.logger.debug 'Calling API: QuotaApi.quota_history_read ...' end # verify the required parameter 'owner' is set if @api_client.config.client_side_validation && owner.nil? fail ArgumentError, "Missing the required parameter 'owner' when calling QuotaApi.quota_history_read" end # resource path - local_var_path = "/quota/history/{owner}/".sub('{' + 'owner' + '}', owner.to_s) + local_var_path = '/quota/history/{owner}/'.sub('{' + 'owner' + '}', owner.to_s) # query parameters query_params = {} @@ -70,7 +69,6 @@ def quota_history_read_with_http_info(owner, opts = {}) end return data, status_code, headers end - # Open-source Quota history for a given namespace. # Open-source Quota history for a given namespace. # @param owner @@ -78,7 +76,7 @@ def quota_history_read_with_http_info(owner, opts = {}) # @return [QuotaHistory] def quota_oss_history_read(owner, opts = {}) data, _status_code, _headers = quota_oss_history_read_with_http_info(owner, opts) - return data + data end # Open-source Quota history for a given namespace. @@ -88,14 +86,14 @@ def quota_oss_history_read(owner, opts = {}) # @return [Array<(QuotaHistory, Fixnum, Hash)>] QuotaHistory data, response status code and response headers def quota_oss_history_read_with_http_info(owner, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: QuotaApi.quota_oss_history_read ..." + @api_client.config.logger.debug 'Calling API: QuotaApi.quota_oss_history_read ...' end # verify the required parameter 'owner' is set if @api_client.config.client_side_validation && owner.nil? fail ArgumentError, "Missing the required parameter 'owner' when calling QuotaApi.quota_oss_history_read" end # resource path - local_var_path = "/quota/oss/history/{owner}/".sub('{' + 'owner' + '}', owner.to_s) + local_var_path = '/quota/oss/history/{owner}/'.sub('{' + 'owner' + '}', owner.to_s) # query parameters query_params = {} @@ -121,7 +119,6 @@ def quota_oss_history_read_with_http_info(owner, opts = {}) end return data, status_code, headers end - # Open-source Quota usage for a given namespace. # Open-source Quota usage for a given namespace. # @param owner @@ -129,7 +126,7 @@ def quota_oss_history_read_with_http_info(owner, opts = {}) # @return [Quota] def quota_oss_read(owner, opts = {}) data, _status_code, _headers = quota_oss_read_with_http_info(owner, opts) - return data + data end # Open-source Quota usage for a given namespace. @@ -139,14 +136,14 @@ def quota_oss_read(owner, opts = {}) # @return [Array<(Quota, Fixnum, Hash)>] Quota data, response status code and response headers def quota_oss_read_with_http_info(owner, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: QuotaApi.quota_oss_read ..." + @api_client.config.logger.debug 'Calling API: QuotaApi.quota_oss_read ...' end # verify the required parameter 'owner' is set if @api_client.config.client_side_validation && owner.nil? fail ArgumentError, "Missing the required parameter 'owner' when calling QuotaApi.quota_oss_read" end # resource path - local_var_path = "/quota/oss/{owner}/".sub('{' + 'owner' + '}', owner.to_s) + local_var_path = '/quota/oss/{owner}/'.sub('{' + 'owner' + '}', owner.to_s) # query parameters query_params = {} @@ -172,7 +169,6 @@ def quota_oss_read_with_http_info(owner, opts = {}) end return data, status_code, headers end - # Quota usage for a given namespace. # Quota usage for a given namespace. # @param owner @@ -180,7 +176,7 @@ def quota_oss_read_with_http_info(owner, opts = {}) # @return [Quota] def quota_read(owner, opts = {}) data, _status_code, _headers = quota_read_with_http_info(owner, opts) - return data + data end # Quota usage for a given namespace. @@ -190,14 +186,14 @@ def quota_read(owner, opts = {}) # @return [Array<(Quota, Fixnum, Hash)>] Quota data, response status code and response headers def quota_read_with_http_info(owner, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: QuotaApi.quota_read ..." + @api_client.config.logger.debug 'Calling API: QuotaApi.quota_read ...' end # verify the required parameter 'owner' is set if @api_client.config.client_side_validation && owner.nil? fail ArgumentError, "Missing the required parameter 'owner' when calling QuotaApi.quota_read" end # resource path - local_var_path = "/quota/{owner}/".sub('{' + 'owner' + '}', owner.to_s) + local_var_path = '/quota/{owner}/'.sub('{' + 'owner' + '}', owner.to_s) # query parameters query_params = {} diff --git a/bindings/ruby/src/lib/cloudsmith-api/api/rates_api.rb b/bindings/ruby/src/lib/cloudsmith-api/api/rates_api.rb index 423e8ebd..77c54c46 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/api/rates_api.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/api/rates_api.rb @@ -6,11 +6,11 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end -require "uri" +require 'uri' module CloudsmithApi class RatesApi @@ -19,14 +19,13 @@ class RatesApi def initialize(api_client = ApiClient.default) @api_client = api_client end - # Endpoint to check rate limits for current user. # Endpoint to check rate limits for current user. # @param [Hash] opts the optional parameters # @return [ResourcesRateCheck] def rates_limits_list(opts = {}) data, _status_code, _headers = rates_limits_list_with_http_info(opts) - return data + data end # Endpoint to check rate limits for current user. @@ -35,10 +34,10 @@ def rates_limits_list(opts = {}) # @return [Array<(ResourcesRateCheck, Fixnum, Hash)>] ResourcesRateCheck data, response status code and response headers def rates_limits_list_with_http_info(opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: RatesApi.rates_limits_list ..." + @api_client.config.logger.debug 'Calling API: RatesApi.rates_limits_list ...' end # resource path - local_var_path = "/rates/limits/" + local_var_path = '/rates/limits/' # query parameters query_params = {} diff --git a/bindings/ruby/src/lib/cloudsmith-api/api/repos_api.rb b/bindings/ruby/src/lib/cloudsmith-api/api/repos_api.rb index ffd99d4f..5a458f8c 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/api/repos_api.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/api/repos_api.rb @@ -6,11 +6,11 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end -require "uri" +require 'uri' module CloudsmithApi class ReposApi @@ -19,7 +19,6 @@ class ReposApi def initialize(api_client = ApiClient.default) @api_client = api_client end - # Get a list of all repositories associated with current user. # Get a list of all repositories associated with current user. # @param [Hash] opts the optional parameters @@ -28,7 +27,7 @@ def initialize(api_client = ApiClient.default) # @return [Array] def repos_all_list(opts = {}) data, _status_code, _headers = repos_all_list_with_http_info(opts) - return data + data end # Get a list of all repositories associated with current user. @@ -39,10 +38,10 @@ def repos_all_list(opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def repos_all_list_with_http_info(opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: ReposApi.repos_all_list ..." + @api_client.config.logger.debug 'Calling API: ReposApi.repos_all_list ...' end # resource path - local_var_path = "/repos/" + local_var_path = '/repos/' # query parameters query_params = {} @@ -70,7 +69,6 @@ def repos_all_list_with_http_info(opts = {}) end return data, status_code, headers end - # Create a new repository in a given namespace. # Create a new repository in a given namespace. # @param owner @@ -79,7 +77,7 @@ def repos_all_list_with_http_info(opts = {}) # @return [Repository] def repos_create(owner, opts = {}) data, _status_code, _headers = repos_create_with_http_info(owner, opts) - return data + data end # Create a new repository in a given namespace. @@ -90,14 +88,14 @@ def repos_create(owner, opts = {}) # @return [Array<(Repository, Fixnum, Hash)>] Repository data, response status code and response headers def repos_create_with_http_info(owner, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: ReposApi.repos_create ..." + @api_client.config.logger.debug 'Calling API: ReposApi.repos_create ...' end # verify the required parameter 'owner' is set if @api_client.config.client_side_validation && owner.nil? fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_create" end # resource path - local_var_path = "/repos/{owner}/".sub('{' + 'owner' + '}', owner.to_s) + local_var_path = '/repos/{owner}/'.sub('{' + 'owner' + '}', owner.to_s) # query parameters query_params = {} @@ -125,7 +123,6 @@ def repos_create_with_http_info(owner, opts = {}) end return data, status_code, headers end - # Delete a repository in a given namespace. # Delete a repository in a given namespace. # @param owner @@ -134,7 +131,7 @@ def repos_create_with_http_info(owner, opts = {}) # @return [nil] def repos_delete(owner, identifier, opts = {}) repos_delete_with_http_info(owner, identifier, opts) - return nil + nil end # Delete a repository in a given namespace. @@ -145,7 +142,7 @@ def repos_delete(owner, identifier, opts = {}) # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def repos_delete_with_http_info(owner, identifier, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: ReposApi.repos_delete ..." + @api_client.config.logger.debug 'Calling API: ReposApi.repos_delete ...' end # verify the required parameter 'owner' is set if @api_client.config.client_side_validation && owner.nil? @@ -156,7 +153,7 @@ def repos_delete_with_http_info(owner, identifier, opts = {}) fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_delete" end # resource path - local_var_path = "/repos/{owner}/{identifier}/".sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s) + local_var_path = '/repos/{owner}/{identifier}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s) # query parameters query_params = {} @@ -181,7 +178,6 @@ def repos_delete_with_http_info(owner, identifier, opts = {}) end return data, status_code, headers end - # Get a list of all repositories within a namespace. # Get a list of all repositories within a namespace. # @param owner @@ -191,7 +187,7 @@ def repos_delete_with_http_info(owner, identifier, opts = {}) # @return [Array] def repos_list(owner, opts = {}) data, _status_code, _headers = repos_list_with_http_info(owner, opts) - return data + data end # Get a list of all repositories within a namespace. @@ -203,14 +199,14 @@ def repos_list(owner, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def repos_list_with_http_info(owner, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: ReposApi.repos_list ..." + @api_client.config.logger.debug 'Calling API: ReposApi.repos_list ...' end # verify the required parameter 'owner' is set if @api_client.config.client_side_validation && owner.nil? fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_list" end # resource path - local_var_path = "/repos/{owner}/".sub('{' + 'owner' + '}', owner.to_s) + local_var_path = '/repos/{owner}/'.sub('{' + 'owner' + '}', owner.to_s) # query parameters query_params = {} @@ -238,7 +234,6 @@ def repos_list_with_http_info(owner, opts = {}) end return data, status_code, headers end - # Update details about a repository in a given namespace. # Update details about a repository in a given namespace. # @param owner @@ -248,7 +243,7 @@ def repos_list_with_http_info(owner, opts = {}) # @return [Repository] def repos_partial_update(owner, identifier, opts = {}) data, _status_code, _headers = repos_partial_update_with_http_info(owner, identifier, opts) - return data + data end # Update details about a repository in a given namespace. @@ -260,7 +255,7 @@ def repos_partial_update(owner, identifier, opts = {}) # @return [Array<(Repository, Fixnum, Hash)>] Repository data, response status code and response headers def repos_partial_update_with_http_info(owner, identifier, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: ReposApi.repos_partial_update ..." + @api_client.config.logger.debug 'Calling API: ReposApi.repos_partial_update ...' end # verify the required parameter 'owner' is set if @api_client.config.client_side_validation && owner.nil? @@ -271,7 +266,7 @@ def repos_partial_update_with_http_info(owner, identifier, opts = {}) fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_partial_update" end # resource path - local_var_path = "/repos/{owner}/{identifier}/".sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s) + local_var_path = '/repos/{owner}/{identifier}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s) # query parameters query_params = {} @@ -299,7 +294,6 @@ def repos_partial_update_with_http_info(owner, identifier, opts = {}) end return data, status_code, headers end - # Get a specific repository. # Get a specific repository. # @param owner @@ -308,7 +302,7 @@ def repos_partial_update_with_http_info(owner, identifier, opts = {}) # @return [Repository] def repos_read(owner, identifier, opts = {}) data, _status_code, _headers = repos_read_with_http_info(owner, identifier, opts) - return data + data end # Get a specific repository. @@ -319,7 +313,7 @@ def repos_read(owner, identifier, opts = {}) # @return [Array<(Repository, Fixnum, Hash)>] Repository data, response status code and response headers def repos_read_with_http_info(owner, identifier, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: ReposApi.repos_read ..." + @api_client.config.logger.debug 'Calling API: ReposApi.repos_read ...' end # verify the required parameter 'owner' is set if @api_client.config.client_side_validation && owner.nil? @@ -330,7 +324,7 @@ def repos_read_with_http_info(owner, identifier, opts = {}) fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_read" end # resource path - local_var_path = "/repos/{owner}/{identifier}/".sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s) + local_var_path = '/repos/{owner}/{identifier}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s) # query parameters query_params = {} diff --git a/bindings/ruby/src/lib/cloudsmith-api/api/status_api.rb b/bindings/ruby/src/lib/cloudsmith-api/api/status_api.rb index 979d8139..e6cca843 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/api/status_api.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/api/status_api.rb @@ -6,11 +6,11 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end -require "uri" +require 'uri' module CloudsmithApi class StatusApi @@ -19,14 +19,13 @@ class StatusApi def initialize(api_client = ApiClient.default) @api_client = api_client end - # Endpoint to check basic API connectivity. # Endpoint to check basic API connectivity. # @param [Hash] opts the optional parameters # @return [StatusBasic] def status_check_basic(opts = {}) data, _status_code, _headers = status_check_basic_with_http_info(opts) - return data + data end # Endpoint to check basic API connectivity. @@ -35,10 +34,10 @@ def status_check_basic(opts = {}) # @return [Array<(StatusBasic, Fixnum, Hash)>] StatusBasic data, response status code and response headers def status_check_basic_with_http_info(opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: StatusApi.status_check_basic ..." + @api_client.config.logger.debug 'Calling API: StatusApi.status_check_basic ...' end # resource path - local_var_path = "/status/check/basic/" + local_var_path = '/status/check/basic/' # query parameters query_params = {} diff --git a/bindings/ruby/src/lib/cloudsmith-api/api/storageregions_api.rb b/bindings/ruby/src/lib/cloudsmith-api/api/storage_regions_api.rb similarity index 85% rename from bindings/ruby/src/lib/cloudsmith-api/api/storageregions_api.rb rename to bindings/ruby/src/lib/cloudsmith-api/api/storage_regions_api.rb index cb96cb08..a5d0bb16 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/api/storageregions_api.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/api/storage_regions_api.rb @@ -6,27 +6,26 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end -require "uri" +require 'uri' module CloudsmithApi - class StorageregionsApi + class StorageRegionsApi attr_accessor :api_client def initialize(api_client = ApiClient.default) @api_client = api_client end - # Get a list of all available storage regions. # Get a list of all available storage regions. # @param [Hash] opts the optional parameters # @return [Array] def storage_regions_list(opts = {}) data, _status_code, _headers = storage_regions_list_with_http_info(opts) - return data + data end # Get a list of all available storage regions. @@ -35,10 +34,10 @@ def storage_regions_list(opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def storage_regions_list_with_http_info(opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: StorageregionsApi.storage_regions_list ..." + @api_client.config.logger.debug 'Calling API: StorageRegionsApi.storage_regions_list ...' end # resource path - local_var_path = "/storage-regions/" + local_var_path = '/storage-regions/' # query parameters query_params = {} @@ -60,11 +59,10 @@ def storage_regions_list_with_http_info(opts = {}) :auth_names => auth_names, :return_type => 'Array') if @api_client.config.debugging - @api_client.config.logger.debug "API called: StorageregionsApi#storage_regions_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: StorageRegionsApi#storage_regions_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end - # Get a specific storage region. # Get a specific storage region. # @param slug @@ -72,7 +70,7 @@ def storage_regions_list_with_http_info(opts = {}) # @return [StorageRegion] def storage_regions_read(slug, opts = {}) data, _status_code, _headers = storage_regions_read_with_http_info(slug, opts) - return data + data end # Get a specific storage region. @@ -82,14 +80,14 @@ def storage_regions_read(slug, opts = {}) # @return [Array<(StorageRegion, Fixnum, Hash)>] StorageRegion data, response status code and response headers def storage_regions_read_with_http_info(slug, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: StorageregionsApi.storage_regions_read ..." + @api_client.config.logger.debug 'Calling API: StorageRegionsApi.storage_regions_read ...' end # verify the required parameter 'slug' is set if @api_client.config.client_side_validation && slug.nil? - fail ArgumentError, "Missing the required parameter 'slug' when calling StorageregionsApi.storage_regions_read" + fail ArgumentError, "Missing the required parameter 'slug' when calling StorageRegionsApi.storage_regions_read" end # resource path - local_var_path = "/storage-regions/{slug}/".sub('{' + 'slug' + '}', slug.to_s) + local_var_path = '/storage-regions/{slug}/'.sub('{' + 'slug' + '}', slug.to_s) # query parameters query_params = {} @@ -111,7 +109,7 @@ def storage_regions_read_with_http_info(slug, opts = {}) :auth_names => auth_names, :return_type => 'StorageRegion') if @api_client.config.debugging - @api_client.config.logger.debug "API called: StorageregionsApi#storage_regions_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: StorageRegionsApi#storage_regions_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end diff --git a/bindings/ruby/src/lib/cloudsmith-api/api/user_api.rb b/bindings/ruby/src/lib/cloudsmith-api/api/user_api.rb index bd3015f9..77a50ba3 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/api/user_api.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/api/user_api.rb @@ -6,11 +6,11 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end -require "uri" +require 'uri' module CloudsmithApi class UserApi @@ -19,14 +19,13 @@ class UserApi def initialize(api_client = ApiClient.default) @api_client = api_client end - # Provide a brief for the current user (if any). # Provide a brief for the current user (if any). # @param [Hash] opts the optional parameters # @return [UserBrief] def user_self(opts = {}) data, _status_code, _headers = user_self_with_http_info(opts) - return data + data end # Provide a brief for the current user (if any). @@ -35,10 +34,10 @@ def user_self(opts = {}) # @return [Array<(UserBrief, Fixnum, Hash)>] UserBrief data, response status code and response headers def user_self_with_http_info(opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: UserApi.user_self ..." + @api_client.config.logger.debug 'Calling API: UserApi.user_self ...' end # resource path - local_var_path = "/user/self/" + local_var_path = '/user/self/' # query parameters query_params = {} @@ -64,7 +63,6 @@ def user_self_with_http_info(opts = {}) end return data, status_code, headers end - # Retrieve the API key/token for the authenticated user. # Retrieve the API key/token for the authenticated user. # @param [Hash] opts the optional parameters @@ -72,7 +70,7 @@ def user_self_with_http_info(opts = {}) # @return [UserAuthToken] def user_token_create(opts = {}) data, _status_code, _headers = user_token_create_with_http_info(opts) - return data + data end # Retrieve the API key/token for the authenticated user. @@ -82,10 +80,10 @@ def user_token_create(opts = {}) # @return [Array<(UserAuthToken, Fixnum, Hash)>] UserAuthToken data, response status code and response headers def user_token_create_with_http_info(opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: UserApi.user_token_create ..." + @api_client.config.logger.debug 'Calling API: UserApi.user_token_create ...' end # resource path - local_var_path = "/user/token/" + local_var_path = '/user/token/' # query parameters query_params = {} diff --git a/bindings/ruby/src/lib/cloudsmith-api/api/users_api.rb b/bindings/ruby/src/lib/cloudsmith-api/api/users_api.rb index 914410fa..eecbea77 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/api/users_api.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/api/users_api.rb @@ -6,11 +6,11 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end -require "uri" +require 'uri' module CloudsmithApi class UsersApi @@ -19,7 +19,6 @@ class UsersApi def initialize(api_client = ApiClient.default) @api_client = api_client end - # Provide a brief for the specified user (if any). # Provide a brief for the specified user (if any). # @param slug @@ -27,7 +26,7 @@ def initialize(api_client = ApiClient.default) # @return [UserProfile] def users_profile_read(slug, opts = {}) data, _status_code, _headers = users_profile_read_with_http_info(slug, opts) - return data + data end # Provide a brief for the specified user (if any). @@ -37,14 +36,14 @@ def users_profile_read(slug, opts = {}) # @return [Array<(UserProfile, Fixnum, Hash)>] UserProfile data, response status code and response headers def users_profile_read_with_http_info(slug, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: UsersApi.users_profile_read ..." + @api_client.config.logger.debug 'Calling API: UsersApi.users_profile_read ...' end # verify the required parameter 'slug' is set if @api_client.config.client_side_validation && slug.nil? fail ArgumentError, "Missing the required parameter 'slug' when calling UsersApi.users_profile_read" end # resource path - local_var_path = "/users/profile/{slug}/".sub('{' + 'slug' + '}', slug.to_s) + local_var_path = '/users/profile/{slug}/'.sub('{' + 'slug' + '}', slug.to_s) # query parameters query_params = {} diff --git a/bindings/ruby/src/lib/cloudsmith-api/api/vulnerabilities_api.rb b/bindings/ruby/src/lib/cloudsmith-api/api/vulnerabilities_api.rb index 658d7cc0..d20ee725 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/api/vulnerabilities_api.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/api/vulnerabilities_api.rb @@ -6,11 +6,11 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end -require "uri" +require 'uri' module CloudsmithApi class VulnerabilitiesApi @@ -19,7 +19,6 @@ class VulnerabilitiesApi def initialize(api_client = ApiClient.default) @api_client = api_client end - # Lists scan results for a specific namespace. # Lists scan results for a specific namespace. # @param owner @@ -29,7 +28,7 @@ def initialize(api_client = ApiClient.default) # @return [Array] def vulnerabilities_list(owner, opts = {}) data, _status_code, _headers = vulnerabilities_list_with_http_info(owner, opts) - return data + data end # Lists scan results for a specific namespace. @@ -41,14 +40,14 @@ def vulnerabilities_list(owner, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def vulnerabilities_list_with_http_info(owner, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: VulnerabilitiesApi.vulnerabilities_list ..." + @api_client.config.logger.debug 'Calling API: VulnerabilitiesApi.vulnerabilities_list ...' end # verify the required parameter 'owner' is set if @api_client.config.client_side_validation && owner.nil? fail ArgumentError, "Missing the required parameter 'owner' when calling VulnerabilitiesApi.vulnerabilities_list" end # resource path - local_var_path = "/vulnerabilities/{owner}/".sub('{' + 'owner' + '}', owner.to_s) + local_var_path = '/vulnerabilities/{owner}/'.sub('{' + 'owner' + '}', owner.to_s) # query parameters query_params = {} @@ -76,7 +75,6 @@ def vulnerabilities_list_with_http_info(owner, opts = {}) end return data, status_code, headers end - # Lists scan results for a specific repository. # Lists scan results for a specific repository. # @param owner @@ -87,7 +85,7 @@ def vulnerabilities_list_with_http_info(owner, opts = {}) # @return [Array] def vulnerabilities_list0(owner, repo, opts = {}) data, _status_code, _headers = vulnerabilities_list0_with_http_info(owner, repo, opts) - return data + data end # Lists scan results for a specific repository. @@ -100,7 +98,7 @@ def vulnerabilities_list0(owner, repo, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def vulnerabilities_list0_with_http_info(owner, repo, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: VulnerabilitiesApi.vulnerabilities_list0 ..." + @api_client.config.logger.debug 'Calling API: VulnerabilitiesApi.vulnerabilities_list0 ...' end # verify the required parameter 'owner' is set if @api_client.config.client_side_validation && owner.nil? @@ -111,7 +109,7 @@ def vulnerabilities_list0_with_http_info(owner, repo, opts = {}) fail ArgumentError, "Missing the required parameter 'repo' when calling VulnerabilitiesApi.vulnerabilities_list0" end # resource path - local_var_path = "/vulnerabilities/{owner}/{repo}/".sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) + local_var_path = '/vulnerabilities/{owner}/{repo}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) # query parameters query_params = {} @@ -139,7 +137,6 @@ def vulnerabilities_list0_with_http_info(owner, repo, opts = {}) end return data, status_code, headers end - # Lists scan results for a specific package. # Lists scan results for a specific package. # @param owner @@ -151,7 +148,7 @@ def vulnerabilities_list0_with_http_info(owner, repo, opts = {}) # @return [Array] def vulnerabilities_list1(owner, repo, package, opts = {}) data, _status_code, _headers = vulnerabilities_list1_with_http_info(owner, repo, package, opts) - return data + data end # Lists scan results for a specific package. @@ -165,7 +162,7 @@ def vulnerabilities_list1(owner, repo, package, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def vulnerabilities_list1_with_http_info(owner, repo, package, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: VulnerabilitiesApi.vulnerabilities_list1 ..." + @api_client.config.logger.debug 'Calling API: VulnerabilitiesApi.vulnerabilities_list1 ...' end # verify the required parameter 'owner' is set if @api_client.config.client_side_validation && owner.nil? @@ -180,7 +177,7 @@ def vulnerabilities_list1_with_http_info(owner, repo, package, opts = {}) fail ArgumentError, "Missing the required parameter 'package' when calling VulnerabilitiesApi.vulnerabilities_list1" end # resource path - local_var_path = "/vulnerabilities/{owner}/{repo}/{package}/".sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s).sub('{' + 'package' + '}', package.to_s) + local_var_path = '/vulnerabilities/{owner}/{repo}/{package}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s).sub('{' + 'package' + '}', package.to_s) # query parameters query_params = {} @@ -208,7 +205,6 @@ def vulnerabilities_list1_with_http_info(owner, repo, package, opts = {}) end return data, status_code, headers end - # Returns a Scan Result. # Returns a Scan Result. # @param owner @@ -219,7 +215,7 @@ def vulnerabilities_list1_with_http_info(owner, repo, package, opts = {}) # @return [VulnerabilityScanResults] def vulnerabilities_read(owner, repo, package, scan_id, opts = {}) data, _status_code, _headers = vulnerabilities_read_with_http_info(owner, repo, package, scan_id, opts) - return data + data end # Returns a Scan Result. @@ -232,7 +228,7 @@ def vulnerabilities_read(owner, repo, package, scan_id, opts = {}) # @return [Array<(VulnerabilityScanResults, Fixnum, Hash)>] VulnerabilityScanResults data, response status code and response headers def vulnerabilities_read_with_http_info(owner, repo, package, scan_id, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: VulnerabilitiesApi.vulnerabilities_read ..." + @api_client.config.logger.debug 'Calling API: VulnerabilitiesApi.vulnerabilities_read ...' end # verify the required parameter 'owner' is set if @api_client.config.client_side_validation && owner.nil? @@ -251,7 +247,7 @@ def vulnerabilities_read_with_http_info(owner, repo, package, scan_id, opts = {} fail ArgumentError, "Missing the required parameter 'scan_id' when calling VulnerabilitiesApi.vulnerabilities_read" end # resource path - local_var_path = "/vulnerabilities/{owner}/{repo}/{package}/{scan_id}/".sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s).sub('{' + 'package' + '}', package.to_s).sub('{' + 'scan_id' + '}', scan_id.to_s) + local_var_path = '/vulnerabilities/{owner}/{repo}/{package}/{scan_id}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s).sub('{' + 'package' + '}', package.to_s).sub('{' + 'scan_id' + '}', scan_id.to_s) # query parameters query_params = {} diff --git a/bindings/ruby/src/lib/cloudsmith-api/api/webhooks_api.rb b/bindings/ruby/src/lib/cloudsmith-api/api/webhooks_api.rb index ba5a3d92..7833a040 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/api/webhooks_api.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/api/webhooks_api.rb @@ -6,11 +6,11 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end -require "uri" +require 'uri' module CloudsmithApi class WebhooksApi @@ -19,7 +19,6 @@ class WebhooksApi def initialize(api_client = ApiClient.default) @api_client = api_client end - # Create a specific webhook in a repository. # Create a specific webhook in a repository. # @param owner @@ -29,7 +28,7 @@ def initialize(api_client = ApiClient.default) # @return [RepositoryWebhook] def webhooks_create(owner, repo, opts = {}) data, _status_code, _headers = webhooks_create_with_http_info(owner, repo, opts) - return data + data end # Create a specific webhook in a repository. @@ -41,7 +40,7 @@ def webhooks_create(owner, repo, opts = {}) # @return [Array<(RepositoryWebhook, Fixnum, Hash)>] RepositoryWebhook data, response status code and response headers def webhooks_create_with_http_info(owner, repo, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: WebhooksApi.webhooks_create ..." + @api_client.config.logger.debug 'Calling API: WebhooksApi.webhooks_create ...' end # verify the required parameter 'owner' is set if @api_client.config.client_side_validation && owner.nil? @@ -52,7 +51,7 @@ def webhooks_create_with_http_info(owner, repo, opts = {}) fail ArgumentError, "Missing the required parameter 'repo' when calling WebhooksApi.webhooks_create" end # resource path - local_var_path = "/webhooks/{owner}/{repo}/".sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) + local_var_path = '/webhooks/{owner}/{repo}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) # query parameters query_params = {} @@ -80,7 +79,6 @@ def webhooks_create_with_http_info(owner, repo, opts = {}) end return data, status_code, headers end - # Delete a specific webhook in a repository. # Delete a specific webhook in a repository. # @param owner @@ -90,7 +88,7 @@ def webhooks_create_with_http_info(owner, repo, opts = {}) # @return [nil] def webhooks_delete(owner, repo, identifier, opts = {}) webhooks_delete_with_http_info(owner, repo, identifier, opts) - return nil + nil end # Delete a specific webhook in a repository. @@ -102,7 +100,7 @@ def webhooks_delete(owner, repo, identifier, opts = {}) # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def webhooks_delete_with_http_info(owner, repo, identifier, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: WebhooksApi.webhooks_delete ..." + @api_client.config.logger.debug 'Calling API: WebhooksApi.webhooks_delete ...' end # verify the required parameter 'owner' is set if @api_client.config.client_side_validation && owner.nil? @@ -117,7 +115,7 @@ def webhooks_delete_with_http_info(owner, repo, identifier, opts = {}) fail ArgumentError, "Missing the required parameter 'identifier' when calling WebhooksApi.webhooks_delete" end # resource path - local_var_path = "/webhooks/{owner}/{repo}/{identifier}/".sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s).sub('{' + 'identifier' + '}', identifier.to_s) + local_var_path = '/webhooks/{owner}/{repo}/{identifier}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s).sub('{' + 'identifier' + '}', identifier.to_s) # query parameters query_params = {} @@ -142,7 +140,6 @@ def webhooks_delete_with_http_info(owner, repo, identifier, opts = {}) end return data, status_code, headers end - # Get a list of all webhooks in a repository. # Get a list of all webhooks in a repository. # @param owner @@ -153,7 +150,7 @@ def webhooks_delete_with_http_info(owner, repo, identifier, opts = {}) # @return [Array] def webhooks_list(owner, repo, opts = {}) data, _status_code, _headers = webhooks_list_with_http_info(owner, repo, opts) - return data + data end # Get a list of all webhooks in a repository. @@ -166,7 +163,7 @@ def webhooks_list(owner, repo, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def webhooks_list_with_http_info(owner, repo, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: WebhooksApi.webhooks_list ..." + @api_client.config.logger.debug 'Calling API: WebhooksApi.webhooks_list ...' end # verify the required parameter 'owner' is set if @api_client.config.client_side_validation && owner.nil? @@ -177,7 +174,7 @@ def webhooks_list_with_http_info(owner, repo, opts = {}) fail ArgumentError, "Missing the required parameter 'repo' when calling WebhooksApi.webhooks_list" end # resource path - local_var_path = "/webhooks/{owner}/{repo}/".sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) + local_var_path = '/webhooks/{owner}/{repo}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) # query parameters query_params = {} @@ -205,7 +202,6 @@ def webhooks_list_with_http_info(owner, repo, opts = {}) end return data, status_code, headers end - # Update a specific webhook in a repository. # Update a specific webhook in a repository. # @param owner @@ -216,7 +212,7 @@ def webhooks_list_with_http_info(owner, repo, opts = {}) # @return [RepositoryWebhook] def webhooks_partial_update(owner, repo, identifier, opts = {}) data, _status_code, _headers = webhooks_partial_update_with_http_info(owner, repo, identifier, opts) - return data + data end # Update a specific webhook in a repository. @@ -229,7 +225,7 @@ def webhooks_partial_update(owner, repo, identifier, opts = {}) # @return [Array<(RepositoryWebhook, Fixnum, Hash)>] RepositoryWebhook data, response status code and response headers def webhooks_partial_update_with_http_info(owner, repo, identifier, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: WebhooksApi.webhooks_partial_update ..." + @api_client.config.logger.debug 'Calling API: WebhooksApi.webhooks_partial_update ...' end # verify the required parameter 'owner' is set if @api_client.config.client_side_validation && owner.nil? @@ -244,7 +240,7 @@ def webhooks_partial_update_with_http_info(owner, repo, identifier, opts = {}) fail ArgumentError, "Missing the required parameter 'identifier' when calling WebhooksApi.webhooks_partial_update" end # resource path - local_var_path = "/webhooks/{owner}/{repo}/{identifier}/".sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s).sub('{' + 'identifier' + '}', identifier.to_s) + local_var_path = '/webhooks/{owner}/{repo}/{identifier}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s).sub('{' + 'identifier' + '}', identifier.to_s) # query parameters query_params = {} @@ -272,7 +268,6 @@ def webhooks_partial_update_with_http_info(owner, repo, identifier, opts = {}) end return data, status_code, headers end - # Views for working with repository webhooks. # Views for working with repository webhooks. # @param owner @@ -282,7 +277,7 @@ def webhooks_partial_update_with_http_info(owner, repo, identifier, opts = {}) # @return [RepositoryWebhook] def webhooks_read(owner, repo, identifier, opts = {}) data, _status_code, _headers = webhooks_read_with_http_info(owner, repo, identifier, opts) - return data + data end # Views for working with repository webhooks. @@ -294,7 +289,7 @@ def webhooks_read(owner, repo, identifier, opts = {}) # @return [Array<(RepositoryWebhook, Fixnum, Hash)>] RepositoryWebhook data, response status code and response headers def webhooks_read_with_http_info(owner, repo, identifier, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: WebhooksApi.webhooks_read ..." + @api_client.config.logger.debug 'Calling API: WebhooksApi.webhooks_read ...' end # verify the required parameter 'owner' is set if @api_client.config.client_side_validation && owner.nil? @@ -309,7 +304,7 @@ def webhooks_read_with_http_info(owner, repo, identifier, opts = {}) fail ArgumentError, "Missing the required parameter 'identifier' when calling WebhooksApi.webhooks_read" end # resource path - local_var_path = "/webhooks/{owner}/{repo}/{identifier}/".sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s).sub('{' + 'identifier' + '}', identifier.to_s) + local_var_path = '/webhooks/{owner}/{repo}/{identifier}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s).sub('{' + 'identifier' + '}', identifier.to_s) # query parameters query_params = {} diff --git a/bindings/ruby/src/lib/cloudsmith-api/api_client.rb b/bindings/ruby/src/lib/cloudsmith-api/api_client.rb index 03da3735..07a074df 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/api_client.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/api_client.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -15,7 +15,7 @@ require 'logger' require 'tempfile' require 'typhoeus' -require 'uri' +require 'addressable/uri' module CloudsmithApi class ApiClient @@ -33,7 +33,7 @@ def initialize(config = Configuration.default) @config = config @user_agent = "Swagger-Codegen/#{VERSION}/ruby" @default_headers = { - 'Content-Type' => "application/json", + 'Content-Type' => 'application/json', 'User-Agent' => @user_agent } end @@ -63,7 +63,7 @@ def call_api(http_method, path, opts = {}) :message => response.return_message) else fail ApiError.new(:code => response.code, - :response_headers => response.headers, + :response_headers => response.headers.to_h, :response_body => response.body), response.status_message end @@ -112,6 +112,8 @@ def build_request(http_method, path, opts = {}) :verbose => @config.debugging } + req_opts.merge!(multipart: true) if header_params['Content-Type'].start_with? "multipart/" + # set custom cert, if provided req_opts[:cainfo] = @config.ssl_ca_cert if @config.ssl_ca_cert @@ -137,7 +139,7 @@ def build_request(http_method, path, opts = {}) # @param [String] mime MIME # @return [Boolean] True if the MIME is application/json def json_mime?(mime) - (mime == "*/*") || !(mime =~ /Application\/.*json(?!p)(;.*)?/i).nil? + (mime == '*/*') || !(mime =~ /Application\/.*json(?!p)(;.*)?/i).nil? end # Deserialize the response to the given return type. @@ -201,12 +203,12 @@ def convert_to_type(data, return_type) when /\AArray<(.+)>\z/ # e.g. Array sub_type = $1 - data.map {|item| convert_to_type(item, sub_type) } + data.map { |item| convert_to_type(item, sub_type) } when /\AHash\\z/ # e.g. Hash sub_type = $1 {}.tap do |hash| - data.each {|k, v| hash[k] = convert_to_type(v, sub_type) } + data.each { |k, v| hash[k] = convert_to_type(v, sub_type) } end else # models, e.g. Pet @@ -228,7 +230,7 @@ def download_file(request) encoding = nil request.on_headers do |response| content_disposition = response.headers['Content-Disposition'] - if content_disposition and content_disposition =~ /filename=/i + if content_disposition && content_disposition =~ /filename=/i filename = content_disposition[/filename=['"]?([^'"\s]+)['"]?/, 1] prefix = sanitize_filename(filename) else @@ -264,7 +266,7 @@ def sanitize_filename(filename) def build_request_url(path) # Add leading and trailing slashes to path path = "/#{path}".gsub(/\/+/, '/') - URI.encode(@config.base_url + path) + Addressable::URI.encode(@config.base_url + path) end # Builds the HTTP request body @@ -280,7 +282,7 @@ def build_request_body(header_params, form_params, body) data = {} form_params.each do |key, value| case value - when File, Array, nil + when ::File, ::Array, nil # let typhoeus handle File, Array and nil parameters data[key] = value else @@ -327,7 +329,7 @@ def select_header_accept(accepts) return nil if accepts.nil? || accepts.empty? # use JSON when present, otherwise use all of the provided json_accept = accepts.find { |s| json_mime?(s) } - return json_accept || accepts.join(',') + json_accept || accepts.join(',') end # Return Content-Type header based on an array of content types provided. @@ -338,7 +340,7 @@ def select_header_content_type(content_types) return 'application/json' if content_types.nil? || content_types.empty? # use JSON when present, otherwise use the first one json_content_type = content_types.find { |s| json_mime?(s) } - return json_content_type || content_types.first + json_content_type || content_types.first end # Convert object (array, hash, object, etc) to JSON string. @@ -348,7 +350,7 @@ def object_to_http_body(model) return model if model.nil? || model.is_a?(String) local_body = nil if model.is_a?(Array) - local_body = model.map{|m| object_to_hash(m) } + local_body = model.map { |m| object_to_hash(m) } else local_body = object_to_hash(model) end diff --git a/bindings/ruby/src/lib/cloudsmith-api/api_error.rb b/bindings/ruby/src/lib/cloudsmith-api/api_error.rb index 535260be..592d675f 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/api_error.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/api_error.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end diff --git a/bindings/ruby/src/lib/cloudsmith-api/configuration.rb b/bindings/ruby/src/lib/cloudsmith-api/configuration.rb index ea62725c..f9c94cb9 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/configuration.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/configuration.rb @@ -6,11 +6,11 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end -require 'uri' +require 'addressable/uri' module CloudsmithApi class Configuration @@ -170,12 +170,12 @@ def host=(host) def base_path=(base_path) # Add leading and trailing slashes to base_path @base_path = "/#{base_path}".gsub(/\/+/, '/') - @base_path = "" if @base_path == "/" + @base_path = '' if @base_path == '/' end def base_url url = "#{scheme}://#{[host, base_path].join('/').gsub(/\/+/, '/')}".sub(/\/+\z/, '') - URI.encode(url) + Addressable::URI.encode(url) end # Gets API key (with prefix if set). diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/alpine_package_upload.rb b/bindings/ruby/src/lib/cloudsmith-api/models/alpine_package_upload.rb index 25e55cdc..e0782156 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/alpine_package_upload.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/alpine_package_upload.rb @@ -6,14 +6,13 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end require 'date' module CloudsmithApi - class AlpinePackageUpload # attr_accessor :architectures @@ -207,7 +206,6 @@ class AlpinePackageUpload # attr_accessor :vulnerability_scan_results_url - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -354,7 +352,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'architectures') if (value = attributes[:'architectures']).is_a?(Array) @@ -615,20 +613,19 @@ def initialize(attributes = {}) if attributes.has_key?(:'vulnerability_scan_results_url') self.vulnerability_scan_results_url = attributes[:'vulnerability_scan_results_url'] end - end # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properies with the reasons + # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -721,10 +718,10 @@ def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -806,7 +803,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -819,5 +816,4 @@ def _to_hash(value) end end - end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/conan_package_upload.rb b/bindings/ruby/src/lib/cloudsmith-api/models/conan_package_upload.rb index c58625cc..33024675 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/conan_package_upload.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/conan_package_upload.rb @@ -6,14 +6,13 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end require 'date' module CloudsmithApi - class ConanPackageUpload # attr_accessor :architectures @@ -213,7 +212,6 @@ class ConanPackageUpload # attr_accessor :vulnerability_scan_results_url - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -364,7 +362,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'architectures') if (value = attributes[:'architectures']).is_a?(Array) @@ -633,20 +631,19 @@ def initialize(attributes = {}) if attributes.has_key?(:'vulnerability_scan_results_url') self.vulnerability_scan_results_url = attributes[:'vulnerability_scan_results_url'] end - end # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properies with the reasons + # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -741,10 +738,10 @@ def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -826,7 +823,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -839,5 +836,4 @@ def _to_hash(value) end end - end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/distribution.rb b/bindings/ruby/src/lib/cloudsmith-api/models/distribution.rb index c0ddae6f..47147a88 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/distribution.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/distribution.rb @@ -6,14 +6,13 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end require 'date' module CloudsmithApi - class Distribution # attr_accessor :format @@ -36,7 +35,6 @@ class Distribution # A list of the versions for this distribution attr_accessor :versions - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -69,7 +67,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'format') self.format = attributes[:'format'] @@ -100,25 +98,24 @@ def initialize(attributes = {}) self.versions = value end end - end # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properies with the reasons + # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new if @name.nil? - invalid_properties.push("invalid value for 'name', name cannot be nil.") + invalid_properties.push('invalid value for "name", name cannot be nil.') end - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? return false if @name.nil? - return true + true end # Checks equality by comparing each attribute. @@ -154,10 +151,10 @@ def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -239,7 +236,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -252,5 +249,4 @@ def _to_hash(value) end end - end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/distros_versions.rb b/bindings/ruby/src/lib/cloudsmith-api/models/distros_versions.rb index e93fd3dc..f7b5fcf4 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/distros_versions.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/distros_versions.rb @@ -6,14 +6,13 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end require 'date' module CloudsmithApi - class DistrosVersions # The textual name for this version. attr_accessor :name @@ -21,7 +20,6 @@ class DistrosVersions # The slug identifier for this version attr_accessor :slug - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -44,7 +42,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'name') self.name = attributes[:'name'] @@ -53,20 +51,19 @@ def initialize(attributes = {}) if attributes.has_key?(:'slug') self.slug = attributes[:'slug'] end - end # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properies with the reasons + # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -97,10 +94,10 @@ def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -182,7 +179,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -195,5 +192,4 @@ def _to_hash(value) end end - end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/entitlement_usage_metrics.rb b/bindings/ruby/src/lib/cloudsmith-api/models/entitlement_usage_metrics.rb index 95131c24..597cceb8 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/entitlement_usage_metrics.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/entitlement_usage_metrics.rb @@ -6,19 +6,17 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end require 'date' module CloudsmithApi - class EntitlementUsageMetrics # attr_accessor :tokens - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -39,30 +37,29 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'tokens') self.tokens = attributes[:'tokens'] end - end # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properies with the reasons + # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new if @tokens.nil? - invalid_properties.push("invalid value for 'tokens', tokens cannot be nil.") + invalid_properties.push('invalid value for "tokens", tokens cannot be nil.') end - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? return false if @tokens.nil? - return true + true end # Checks equality by comparing each attribute. @@ -92,10 +89,10 @@ def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -177,7 +174,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -190,5 +187,4 @@ def _to_hash(value) end end - end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/entitlements_create.rb b/bindings/ruby/src/lib/cloudsmith-api/models/entitlements_create.rb index 41c04e77..5cdb9794 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/entitlements_create.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/entitlements_create.rb @@ -6,14 +6,13 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end require 'date' module CloudsmithApi - class EntitlementsCreate # If checked, a EULA acceptance is required for this token. attr_accessor :eula_required @@ -60,7 +59,6 @@ class EntitlementsCreate # None attr_accessor :token - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -109,7 +107,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'eula_required') self.eula_required = attributes[:'eula_required'] @@ -170,25 +168,24 @@ def initialize(attributes = {}) if attributes.has_key?(:'token') self.token = attributes[:'token'] end - end # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properies with the reasons + # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new if @name.nil? - invalid_properties.push("invalid value for 'name', name cannot be nil.") + invalid_properties.push('invalid value for "name", name cannot be nil.') end - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? return false if @name.nil? - return true + true end # Checks equality by comparing each attribute. @@ -232,10 +229,10 @@ def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -317,7 +314,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -330,5 +327,4 @@ def _to_hash(value) end end - end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/entitlements_partial_update.rb b/bindings/ruby/src/lib/cloudsmith-api/models/entitlements_partial_update.rb index 264125b5..c939eb59 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/entitlements_partial_update.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/entitlements_partial_update.rb @@ -6,14 +6,13 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end require 'date' module CloudsmithApi - class EntitlementsPartialUpdate # If checked, a EULA acceptance is required for this token. attr_accessor :eula_required @@ -60,7 +59,6 @@ class EntitlementsPartialUpdate # None attr_accessor :token - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -109,7 +107,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'eula_required') self.eula_required = attributes[:'eula_required'] @@ -170,20 +168,19 @@ def initialize(attributes = {}) if attributes.has_key?(:'token') self.token = attributes[:'token'] end - end # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properies with the reasons + # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -227,10 +224,10 @@ def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -312,7 +309,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -325,5 +322,4 @@ def _to_hash(value) end end - end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/entitlements_refresh.rb b/bindings/ruby/src/lib/cloudsmith-api/models/entitlements_refresh.rb index 235f9bd0..bf634923 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/entitlements_refresh.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/entitlements_refresh.rb @@ -6,14 +6,13 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end require 'date' module CloudsmithApi - class EntitlementsRefresh # If checked, a EULA acceptance is required for this token. attr_accessor :eula_required @@ -57,7 +56,6 @@ class EntitlementsRefresh # None attr_accessor :token - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -104,7 +102,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'eula_required') self.eula_required = attributes[:'eula_required'] @@ -161,20 +159,19 @@ def initialize(attributes = {}) if attributes.has_key?(:'token') self.token = attributes[:'token'] end - end # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properies with the reasons + # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -217,10 +214,10 @@ def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -302,7 +299,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -315,5 +312,4 @@ def _to_hash(value) end end - end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/entitlements_sync.rb b/bindings/ruby/src/lib/cloudsmith-api/models/entitlements_sync.rb index 32d18f27..adf0cd29 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/entitlements_sync.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/entitlements_sync.rb @@ -6,19 +6,17 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end require 'date' module CloudsmithApi - class EntitlementsSync # The source repository slug (in the same owner namespace). attr_accessor :source - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -39,30 +37,29 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'source') self.source = attributes[:'source'] end - end # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properies with the reasons + # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new if @source.nil? - invalid_properties.push("invalid value for 'source', source cannot be nil.") + invalid_properties.push('invalid value for "source", source cannot be nil.') end - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? return false if @source.nil? - return true + true end # Checks equality by comparing each attribute. @@ -92,10 +89,10 @@ def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -177,7 +174,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -190,5 +187,4 @@ def _to_hash(value) end end - end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/files_abort.rb b/bindings/ruby/src/lib/cloudsmith-api/models/files_abort.rb index 184e21a4..8da7bda9 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/files_abort.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/files_abort.rb @@ -6,14 +6,13 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end require 'date' module CloudsmithApi - class FilesAbort # Filename for the package file upload. attr_accessor :filename @@ -27,7 +26,6 @@ class FilesAbort # SHA256 checksum for a PUT-based package file upload. attr_accessor :sha256_checksum - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -54,7 +52,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'filename') self.filename = attributes[:'filename'] @@ -71,25 +69,24 @@ def initialize(attributes = {}) if attributes.has_key?(:'sha256_checksum') self.sha256_checksum = attributes[:'sha256_checksum'] end - end # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properies with the reasons + # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new if @filename.nil? - invalid_properties.push("invalid value for 'filename', filename cannot be nil.") + invalid_properties.push('invalid value for "filename", filename cannot be nil.') end - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? return false if @filename.nil? - return true + true end # Checks equality by comparing each attribute. @@ -122,10 +119,10 @@ def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -207,7 +204,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -220,5 +217,4 @@ def _to_hash(value) end end - end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/files_complete.rb b/bindings/ruby/src/lib/cloudsmith-api/models/files_complete.rb index e4f62191..d0a27da7 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/files_complete.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/files_complete.rb @@ -6,14 +6,13 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end require 'date' module CloudsmithApi - class FilesComplete # Filename for the package file upload. attr_accessor :filename @@ -27,7 +26,6 @@ class FilesComplete # SHA256 checksum for a PUT-based package file upload. attr_accessor :sha256_checksum - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -54,7 +52,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'filename') self.filename = attributes[:'filename'] @@ -71,25 +69,24 @@ def initialize(attributes = {}) if attributes.has_key?(:'sha256_checksum') self.sha256_checksum = attributes[:'sha256_checksum'] end - end # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properies with the reasons + # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new if @filename.nil? - invalid_properties.push("invalid value for 'filename', filename cannot be nil.") + invalid_properties.push('invalid value for "filename", filename cannot be nil.') end - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? return false if @filename.nil? - return true + true end # Checks equality by comparing each attribute. @@ -122,10 +119,10 @@ def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -207,7 +204,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -220,5 +217,4 @@ def _to_hash(value) end end - end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/files_create.rb b/bindings/ruby/src/lib/cloudsmith-api/models/files_create.rb index be8f23e8..71974061 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/files_create.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/files_create.rb @@ -6,14 +6,13 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end require 'date' module CloudsmithApi - class FilesCreate # Filename for the package file upload. attr_accessor :filename @@ -27,7 +26,6 @@ class FilesCreate # SHA256 checksum for a PUT-based package file upload. attr_accessor :sha256_checksum - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -54,7 +52,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'filename') self.filename = attributes[:'filename'] @@ -71,25 +69,24 @@ def initialize(attributes = {}) if attributes.has_key?(:'sha256_checksum') self.sha256_checksum = attributes[:'sha256_checksum'] end - end # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properies with the reasons + # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new if @filename.nil? - invalid_properties.push("invalid value for 'filename', filename cannot be nil.") + invalid_properties.push('invalid value for "filename", filename cannot be nil.') end - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? return false if @filename.nil? - return true + true end # Checks equality by comparing each attribute. @@ -122,10 +119,10 @@ def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -207,7 +204,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -220,5 +217,4 @@ def _to_hash(value) end end - end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/files_validate.rb b/bindings/ruby/src/lib/cloudsmith-api/models/files_validate.rb index 93af4f56..44116633 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/files_validate.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/files_validate.rb @@ -6,14 +6,13 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end require 'date' module CloudsmithApi - class FilesValidate # Filename for the package file upload. attr_accessor :filename @@ -27,7 +26,6 @@ class FilesValidate # SHA256 checksum for a PUT-based package file upload. attr_accessor :sha256_checksum - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -54,7 +52,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'filename') self.filename = attributes[:'filename'] @@ -71,25 +69,24 @@ def initialize(attributes = {}) if attributes.has_key?(:'sha256_checksum') self.sha256_checksum = attributes[:'sha256_checksum'] end - end # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properies with the reasons + # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new if @filename.nil? - invalid_properties.push("invalid value for 'filename', filename cannot be nil.") + invalid_properties.push('invalid value for "filename", filename cannot be nil.') end - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? return false if @filename.nil? - return true + true end # Checks equality by comparing each attribute. @@ -122,10 +119,10 @@ def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -207,7 +204,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -220,5 +217,4 @@ def _to_hash(value) end end - end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/format.rb b/bindings/ruby/src/lib/cloudsmith-api/models/format.rb index db4ea1bf..e6060f4a 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/format.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/format.rb @@ -6,14 +6,13 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end require 'date' module CloudsmithApi - class Format # Description of the package format attr_accessor :description @@ -42,7 +41,6 @@ class Format # A set of what the package format supports attr_accessor :supports - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -79,7 +77,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'description') self.description = attributes[:'description'] @@ -120,38 +118,37 @@ def initialize(attributes = {}) if attributes.has_key?(:'supports') self.supports = attributes[:'supports'] end - end # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properies with the reasons + # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new if @description.nil? - invalid_properties.push("invalid value for 'description', description cannot be nil.") + invalid_properties.push('invalid value for "description", description cannot be nil.') end if @extensions.nil? - invalid_properties.push("invalid value for 'extensions', extensions cannot be nil.") + invalid_properties.push('invalid value for "extensions", extensions cannot be nil.') end if @name.nil? - invalid_properties.push("invalid value for 'name', name cannot be nil.") + invalid_properties.push('invalid value for "name", name cannot be nil.') end if @premium.nil? - invalid_properties.push("invalid value for 'premium', premium cannot be nil.") + invalid_properties.push('invalid value for "premium", premium cannot be nil.') end if @slug.nil? - invalid_properties.push("invalid value for 'slug', slug cannot be nil.") + invalid_properties.push('invalid value for "slug", slug cannot be nil.') end if @supports.nil? - invalid_properties.push("invalid value for 'supports', supports cannot be nil.") + invalid_properties.push('invalid value for "supports", supports cannot be nil.') end - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid @@ -163,7 +160,7 @@ def valid? return false if @premium.nil? return false if @slug.nil? return false if @supports.nil? - return true + true end # Checks equality by comparing each attribute. @@ -201,10 +198,10 @@ def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -286,7 +283,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -299,5 +296,4 @@ def _to_hash(value) end end - end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/formats_distributions.rb b/bindings/ruby/src/lib/cloudsmith-api/models/formats_distributions.rb index 06ec3320..d9688936 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/formats_distributions.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/formats_distributions.rb @@ -6,14 +6,13 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end require 'date' module CloudsmithApi - class FormatsDistributions # attr_accessor :name @@ -27,7 +26,6 @@ class FormatsDistributions # attr_accessor :variants - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -54,7 +52,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'name') self.name = attributes[:'name'] @@ -71,20 +69,19 @@ def initialize(attributes = {}) if attributes.has_key?(:'variants') self.variants = attributes[:'variants'] end - end # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properies with the reasons + # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -117,10 +114,10 @@ def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -202,7 +199,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -215,5 +212,4 @@ def _to_hash(value) end end - end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/maven_package_upload.rb b/bindings/ruby/src/lib/cloudsmith-api/models/maven_package_upload.rb index ad408f18..74916b69 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/maven_package_upload.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/maven_package_upload.rb @@ -6,14 +6,13 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end require 'date' module CloudsmithApi - class MavenPackageUpload # attr_accessor :architectures @@ -216,7 +215,6 @@ class MavenPackageUpload # attr_accessor :vulnerability_scan_results_url - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -369,7 +367,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'architectures') if (value = attributes[:'architectures']).is_a?(Array) @@ -642,20 +640,19 @@ def initialize(attributes = {}) if attributes.has_key?(:'vulnerability_scan_results_url') self.vulnerability_scan_results_url = attributes[:'vulnerability_scan_results_url'] end - end # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properies with the reasons + # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -751,10 +748,10 @@ def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -836,7 +833,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -849,5 +846,4 @@ def _to_hash(value) end end - end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/namespace.rb b/bindings/ruby/src/lib/cloudsmith-api/models/namespace.rb index 358bc2ee..50b5909f 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/namespace.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/namespace.rb @@ -6,14 +6,13 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end require 'date' module CloudsmithApi - class Namespace # attr_accessor :name @@ -27,7 +26,6 @@ class Namespace # attr_accessor :type_name - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -54,7 +52,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'name') self.name = attributes[:'name'] @@ -71,20 +69,19 @@ def initialize(attributes = {}) if attributes.has_key?(:'type_name') self.type_name = attributes[:'type_name'] end - end # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properies with the reasons + # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -117,10 +114,10 @@ def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -202,7 +199,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -215,5 +212,4 @@ def _to_hash(value) end end - end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/organization.rb b/bindings/ruby/src/lib/cloudsmith-api/models/organization.rb index d3dd58b2..64107bea 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/organization.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/organization.rb @@ -6,14 +6,13 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end require 'date' module CloudsmithApi - class Organization # attr_accessor :country @@ -36,7 +35,6 @@ class Organization # A short public descriptive for your organization. attr_accessor :tagline - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -69,7 +67,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'country') self.country = attributes[:'country'] @@ -98,20 +96,19 @@ def initialize(attributes = {}) if attributes.has_key?(:'tagline') self.tagline = attributes[:'tagline'] end - end # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properies with the reasons + # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -147,10 +144,10 @@ def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -232,7 +229,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -245,5 +242,4 @@ def _to_hash(value) end end - end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/organization_membership.rb b/bindings/ruby/src/lib/cloudsmith-api/models/organization_membership.rb index a23b3330..90041eb3 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/organization_membership.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/organization_membership.rb @@ -6,14 +6,13 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end require 'date' module CloudsmithApi - class OrganizationMembership # attr_accessor :email @@ -45,7 +44,6 @@ class OrganizationMembership # attr_accessor :visibility - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -84,7 +82,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'email') self.email = attributes[:'email'] @@ -125,20 +123,19 @@ def initialize(attributes = {}) if attributes.has_key?(:'visibility') self.visibility = attributes[:'visibility'] end - end # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properies with the reasons + # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -177,10 +174,10 @@ def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -262,7 +259,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -275,5 +272,4 @@ def _to_hash(value) end end - end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/package.rb b/bindings/ruby/src/lib/cloudsmith-api/models/package.rb index 9cf22a56..a8d860dd 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/package.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/package.rb @@ -6,14 +6,13 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end require 'date' module CloudsmithApi - class Package # attr_accessor :architectures @@ -210,7 +209,6 @@ class Package # attr_accessor :vulnerability_scan_results_url - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -359,7 +357,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'architectures') if (value = attributes[:'architectures']).is_a?(Array) @@ -624,20 +622,19 @@ def initialize(attributes = {}) if attributes.has_key?(:'vulnerability_scan_results_url') self.vulnerability_scan_results_url = attributes[:'vulnerability_scan_results_url'] end - end # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properies with the reasons + # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -731,10 +728,10 @@ def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -816,7 +813,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -829,5 +826,4 @@ def _to_hash(value) end end - end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/package_copy.rb b/bindings/ruby/src/lib/cloudsmith-api/models/package_copy.rb index 1b85ccef..34e2cc0b 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/package_copy.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/package_copy.rb @@ -6,14 +6,13 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end require 'date' module CloudsmithApi - class PackageCopy # attr_accessor :architectures @@ -210,7 +209,6 @@ class PackageCopy # attr_accessor :vulnerability_scan_results_url - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -359,7 +357,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'architectures') if (value = attributes[:'architectures']).is_a?(Array) @@ -624,20 +622,19 @@ def initialize(attributes = {}) if attributes.has_key?(:'vulnerability_scan_results_url') self.vulnerability_scan_results_url = attributes[:'vulnerability_scan_results_url'] end - end # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properies with the reasons + # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -731,10 +728,10 @@ def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -816,7 +813,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -829,5 +826,4 @@ def _to_hash(value) end end - end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/package_dependencies.rb b/bindings/ruby/src/lib/cloudsmith-api/models/package_dependencies.rb index 25cdfc19..c72a294c 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/package_dependencies.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/package_dependencies.rb @@ -6,19 +6,17 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end require 'date' module CloudsmithApi - class PackageDependencies # attr_accessor :dependencies - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -39,32 +37,31 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'dependencies') if (value = attributes[:'dependencies']).is_a?(Array) self.dependencies = value end end - end # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properies with the reasons + # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new if @dependencies.nil? - invalid_properties.push("invalid value for 'dependencies', dependencies cannot be nil.") + invalid_properties.push('invalid value for "dependencies", dependencies cannot be nil.') end - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? return false if @dependencies.nil? - return true + true end # Checks equality by comparing each attribute. @@ -94,10 +91,10 @@ def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -179,7 +176,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -192,5 +189,4 @@ def _to_hash(value) end end - end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/package_dependencies_dependencies.rb b/bindings/ruby/src/lib/cloudsmith-api/models/package_dependencies_dependencies.rb index f6c2dcef..83e80c95 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/package_dependencies_dependencies.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/package_dependencies_dependencies.rb @@ -6,14 +6,13 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end require 'date' module CloudsmithApi - class PackageDependenciesDependencies # attr_accessor :dep_type @@ -27,7 +26,6 @@ class PackageDependenciesDependencies # The raw dependency version (if any). attr_accessor :version - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -54,7 +52,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'dep_type') self.dep_type = attributes[:'dep_type'] @@ -71,20 +69,19 @@ def initialize(attributes = {}) if attributes.has_key?(:'version') self.version = attributes[:'version'] end - end # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properies with the reasons + # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -117,10 +114,10 @@ def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -202,7 +199,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -215,5 +212,4 @@ def _to_hash(value) end end - end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/package_file_parts_upload.rb b/bindings/ruby/src/lib/cloudsmith-api/models/package_file_parts_upload.rb index b00fa75e..c01acc36 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/package_file_parts_upload.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/package_file_parts_upload.rb @@ -6,14 +6,13 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end require 'date' module CloudsmithApi - class PackageFilePartsUpload # The identifier for the file to use uploading parts. attr_accessor :identifier @@ -24,7 +23,6 @@ class PackageFilePartsUpload # The URL to use for the next-step PUT upload attr_accessor :upload_url - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -49,7 +47,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'identifier') self.identifier = attributes[:'identifier'] @@ -62,20 +60,19 @@ def initialize(attributes = {}) if attributes.has_key?(:'upload_url') self.upload_url = attributes[:'upload_url'] end - end # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properies with the reasons + # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -107,10 +104,10 @@ def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -192,7 +189,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -205,5 +202,4 @@ def _to_hash(value) end end - end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/package_file_upload.rb b/bindings/ruby/src/lib/cloudsmith-api/models/package_file_upload.rb index 3586d827..9b63ea01 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/package_file_upload.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/package_file_upload.rb @@ -6,14 +6,13 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end require 'date' module CloudsmithApi - class PackageFileUpload # The identifier for the file to use when creating packages attr_accessor :identifier @@ -30,7 +29,6 @@ class PackageFileUpload # The URL to use for the next-step POST or PUT upload attr_accessor :upload_url - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -59,7 +57,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'identifier') self.identifier = attributes[:'identifier'] @@ -80,20 +78,19 @@ def initialize(attributes = {}) if attributes.has_key?(:'upload_url') self.upload_url = attributes[:'upload_url'] end - end # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properies with the reasons + # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -127,10 +124,10 @@ def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -212,7 +209,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -225,5 +222,4 @@ def _to_hash(value) end end - end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/package_move.rb b/bindings/ruby/src/lib/cloudsmith-api/models/package_move.rb index e7fdad8e..b71c8dd7 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/package_move.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/package_move.rb @@ -6,14 +6,13 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end require 'date' module CloudsmithApi - class PackageMove # attr_accessor :architectures @@ -210,7 +209,6 @@ class PackageMove # attr_accessor :vulnerability_scan_results_url - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -359,7 +357,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'architectures') if (value = attributes[:'architectures']).is_a?(Array) @@ -624,20 +622,19 @@ def initialize(attributes = {}) if attributes.has_key?(:'vulnerability_scan_results_url') self.vulnerability_scan_results_url = attributes[:'vulnerability_scan_results_url'] end - end # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properies with the reasons + # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -731,10 +728,10 @@ def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -816,7 +813,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -829,5 +826,4 @@ def _to_hash(value) end end - end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/package_status.rb b/bindings/ruby/src/lib/cloudsmith-api/models/package_status.rb index 9a00f18f..71beebea 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/package_status.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/package_status.rb @@ -6,14 +6,13 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end require 'date' module CloudsmithApi - class PackageStatus # attr_accessor :is_sync_awaiting @@ -60,7 +59,6 @@ class PackageStatus # Synchronisation progress (from 0-100) attr_accessor :sync_progress - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -109,7 +107,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'is_sync_awaiting') self.is_sync_awaiting = attributes[:'is_sync_awaiting'] @@ -170,20 +168,19 @@ def initialize(attributes = {}) if attributes.has_key?(:'sync_progress') self.sync_progress = attributes[:'sync_progress'] end - end # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properies with the reasons + # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -227,10 +224,10 @@ def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -312,7 +309,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -325,5 +322,4 @@ def _to_hash(value) end end - end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/package_usage_metrics.rb b/bindings/ruby/src/lib/cloudsmith-api/models/package_usage_metrics.rb index a952085d..d705d50d 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/package_usage_metrics.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/package_usage_metrics.rb @@ -6,19 +6,17 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end require 'date' module CloudsmithApi - class PackageUsageMetrics # attr_accessor :packages - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -39,30 +37,29 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'packages') self.packages = attributes[:'packages'] end - end # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properies with the reasons + # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new if @packages.nil? - invalid_properties.push("invalid value for 'packages', packages cannot be nil.") + invalid_properties.push('invalid value for "packages", packages cannot be nil.') end - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? return false if @packages.nil? - return true + true end # Checks equality by comparing each attribute. @@ -92,10 +89,10 @@ def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -177,7 +174,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -190,5 +187,4 @@ def _to_hash(value) end end - end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/packages_copy.rb b/bindings/ruby/src/lib/cloudsmith-api/models/packages_copy.rb index 9882a6a2..15c27f7f 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/packages_copy.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/packages_copy.rb @@ -6,14 +6,13 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end require 'date' module CloudsmithApi - class PackagesCopy # None attr_accessor :destination @@ -21,7 +20,6 @@ class PackagesCopy # If true, the package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. attr_accessor :republish - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -44,7 +42,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'destination') self.destination = attributes[:'destination'] @@ -53,25 +51,24 @@ def initialize(attributes = {}) if attributes.has_key?(:'republish') self.republish = attributes[:'republish'] end - end # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properies with the reasons + # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new if @destination.nil? - invalid_properties.push("invalid value for 'destination', destination cannot be nil.") + invalid_properties.push('invalid value for "destination", destination cannot be nil.') end - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? return false if @destination.nil? - return true + true end # Checks equality by comparing each attribute. @@ -102,10 +99,10 @@ def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -187,7 +184,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -200,5 +197,4 @@ def _to_hash(value) end end - end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/packages_move.rb b/bindings/ruby/src/lib/cloudsmith-api/models/packages_move.rb index 9a9d9d92..0fc691dd 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/packages_move.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/packages_move.rb @@ -6,19 +6,17 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end require 'date' module CloudsmithApi - class PackagesMove # None attr_accessor :destination - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -39,30 +37,29 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'destination') self.destination = attributes[:'destination'] end - end # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properies with the reasons + # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new if @destination.nil? - invalid_properties.push("invalid value for 'destination', destination cannot be nil.") + invalid_properties.push('invalid value for "destination", destination cannot be nil.') end - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? return false if @destination.nil? - return true + true end # Checks equality by comparing each attribute. @@ -92,10 +89,10 @@ def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -177,7 +174,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -190,5 +187,4 @@ def _to_hash(value) end end - end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/packages_tag.rb b/bindings/ruby/src/lib/cloudsmith-api/models/packages_tag.rb index ca6e0000..b31dd530 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/packages_tag.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/packages_tag.rb @@ -6,14 +6,13 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end require 'date' module CloudsmithApi - class PackagesTag # None attr_accessor :action @@ -24,7 +23,6 @@ class PackagesTag # A list of tags to apply the action to. Not required for clears. attr_accessor :tags - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -49,7 +47,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'action') self.action = attributes[:'action'] @@ -64,20 +62,19 @@ def initialize(attributes = {}) self.tags = value end end - end # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properies with the reasons + # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -109,10 +106,10 @@ def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -194,7 +191,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -207,5 +204,4 @@ def _to_hash(value) end end - end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/packages_upload_alpine.rb b/bindings/ruby/src/lib/cloudsmith-api/models/packages_upload_alpine.rb index ab455e46..a9908f08 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/packages_upload_alpine.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/packages_upload_alpine.rb @@ -6,14 +6,13 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end require 'date' module CloudsmithApi - class PackagesUploadAlpine # The distribution to store the package for. attr_accessor :distribution @@ -27,7 +26,6 @@ class PackagesUploadAlpine # A comma-separated values list of tags to add to the package. attr_accessor :tags - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -54,7 +52,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'distribution') self.distribution = attributes[:'distribution'] @@ -71,22 +69,21 @@ def initialize(attributes = {}) if attributes.has_key?(:'tags') self.tags = attributes[:'tags'] end - end # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properies with the reasons + # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new if @distribution.nil? - invalid_properties.push("invalid value for 'distribution', distribution cannot be nil.") + invalid_properties.push('invalid value for "distribution", distribution cannot be nil.') end if @package_file.nil? - invalid_properties.push("invalid value for 'package_file', package_file cannot be nil.") + invalid_properties.push('invalid value for "package_file", package_file cannot be nil.') end - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid @@ -94,7 +91,7 @@ def list_invalid_properties def valid? return false if @distribution.nil? return false if @package_file.nil? - return true + true end # Checks equality by comparing each attribute. @@ -127,10 +124,10 @@ def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -212,7 +209,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -225,5 +222,4 @@ def _to_hash(value) end end - end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/packages_upload_cargo.rb b/bindings/ruby/src/lib/cloudsmith-api/models/packages_upload_cargo.rb index 8e6b2872..e9767868 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/packages_upload_cargo.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/packages_upload_cargo.rb @@ -6,14 +6,13 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end require 'date' module CloudsmithApi - class PackagesUploadCargo # The primary file for the package. attr_accessor :package_file @@ -24,7 +23,6 @@ class PackagesUploadCargo # A comma-separated values list of tags to add to the package. attr_accessor :tags - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -49,7 +47,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'package_file') self.package_file = attributes[:'package_file'] @@ -62,25 +60,24 @@ def initialize(attributes = {}) if attributes.has_key?(:'tags') self.tags = attributes[:'tags'] end - end # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properies with the reasons + # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new if @package_file.nil? - invalid_properties.push("invalid value for 'package_file', package_file cannot be nil.") + invalid_properties.push('invalid value for "package_file", package_file cannot be nil.') end - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? return false if @package_file.nil? - return true + true end # Checks equality by comparing each attribute. @@ -112,10 +109,10 @@ def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -197,7 +194,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -210,5 +207,4 @@ def _to_hash(value) end end - end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/packages_upload_cocoapods.rb b/bindings/ruby/src/lib/cloudsmith-api/models/packages_upload_cocoapods.rb index 84f2c63f..de3b9cbd 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/packages_upload_cocoapods.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/packages_upload_cocoapods.rb @@ -6,14 +6,13 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end require 'date' module CloudsmithApi - class PackagesUploadCocoapods # The primary file for the package. attr_accessor :package_file @@ -24,7 +23,6 @@ class PackagesUploadCocoapods # A comma-separated values list of tags to add to the package. attr_accessor :tags - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -49,7 +47,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'package_file') self.package_file = attributes[:'package_file'] @@ -62,25 +60,24 @@ def initialize(attributes = {}) if attributes.has_key?(:'tags') self.tags = attributes[:'tags'] end - end # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properies with the reasons + # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new if @package_file.nil? - invalid_properties.push("invalid value for 'package_file', package_file cannot be nil.") + invalid_properties.push('invalid value for "package_file", package_file cannot be nil.') end - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? return false if @package_file.nil? - return true + true end # Checks equality by comparing each attribute. @@ -112,10 +109,10 @@ def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -197,7 +194,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -210,5 +207,4 @@ def _to_hash(value) end end - end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/packages_upload_composer.rb b/bindings/ruby/src/lib/cloudsmith-api/models/packages_upload_composer.rb index 1aead464..5127bd1e 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/packages_upload_composer.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/packages_upload_composer.rb @@ -6,14 +6,13 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end require 'date' module CloudsmithApi - class PackagesUploadComposer # The primary file for the package. attr_accessor :package_file @@ -24,7 +23,6 @@ class PackagesUploadComposer # A comma-separated values list of tags to add to the package. attr_accessor :tags - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -49,7 +47,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'package_file') self.package_file = attributes[:'package_file'] @@ -62,25 +60,24 @@ def initialize(attributes = {}) if attributes.has_key?(:'tags') self.tags = attributes[:'tags'] end - end # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properies with the reasons + # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new if @package_file.nil? - invalid_properties.push("invalid value for 'package_file', package_file cannot be nil.") + invalid_properties.push('invalid value for "package_file", package_file cannot be nil.') end - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? return false if @package_file.nil? - return true + true end # Checks equality by comparing each attribute. @@ -112,10 +109,10 @@ def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -197,7 +194,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -210,5 +207,4 @@ def _to_hash(value) end end - end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/packages_upload_conan.rb b/bindings/ruby/src/lib/cloudsmith-api/models/packages_upload_conan.rb index 5e869103..f1f9b338 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/packages_upload_conan.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/packages_upload_conan.rb @@ -6,14 +6,13 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end require 'date' module CloudsmithApi - class PackagesUploadConan # Conan channel. attr_accessor :conan_channel @@ -45,7 +44,6 @@ class PackagesUploadConan # The raw version for this package. attr_accessor :version - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -84,7 +82,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'conan_channel') self.conan_channel = attributes[:'conan_channel'] @@ -125,30 +123,29 @@ def initialize(attributes = {}) if attributes.has_key?(:'version') self.version = attributes[:'version'] end - end # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properies with the reasons + # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new if @info_file.nil? - invalid_properties.push("invalid value for 'info_file', info_file cannot be nil.") + invalid_properties.push('invalid value for "info_file", info_file cannot be nil.') end if @manifest_file.nil? - invalid_properties.push("invalid value for 'manifest_file', manifest_file cannot be nil.") + invalid_properties.push('invalid value for "manifest_file", manifest_file cannot be nil.') end if @metadata_file.nil? - invalid_properties.push("invalid value for 'metadata_file', metadata_file cannot be nil.") + invalid_properties.push('invalid value for "metadata_file", metadata_file cannot be nil.') end if @package_file.nil? - invalid_properties.push("invalid value for 'package_file', package_file cannot be nil.") + invalid_properties.push('invalid value for "package_file", package_file cannot be nil.') end - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid @@ -158,7 +155,7 @@ def valid? return false if @manifest_file.nil? return false if @metadata_file.nil? return false if @package_file.nil? - return true + true end # Checks equality by comparing each attribute. @@ -197,10 +194,10 @@ def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -282,7 +279,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -295,5 +292,4 @@ def _to_hash(value) end end - end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/packages_upload_conda.rb b/bindings/ruby/src/lib/cloudsmith-api/models/packages_upload_conda.rb index f0a3b45f..09e35fa1 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/packages_upload_conda.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/packages_upload_conda.rb @@ -6,14 +6,13 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end require 'date' module CloudsmithApi - class PackagesUploadConda # The primary file for the package. attr_accessor :package_file @@ -24,7 +23,6 @@ class PackagesUploadConda # A comma-separated values list of tags to add to the package. attr_accessor :tags - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -49,7 +47,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'package_file') self.package_file = attributes[:'package_file'] @@ -62,25 +60,24 @@ def initialize(attributes = {}) if attributes.has_key?(:'tags') self.tags = attributes[:'tags'] end - end # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properies with the reasons + # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new if @package_file.nil? - invalid_properties.push("invalid value for 'package_file', package_file cannot be nil.") + invalid_properties.push('invalid value for "package_file", package_file cannot be nil.') end - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? return false if @package_file.nil? - return true + true end # Checks equality by comparing each attribute. @@ -112,10 +109,10 @@ def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -197,7 +194,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -210,5 +207,4 @@ def _to_hash(value) end end - end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/packages_upload_cran.rb b/bindings/ruby/src/lib/cloudsmith-api/models/packages_upload_cran.rb index 69b8ecb2..2952bcf2 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/packages_upload_cran.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/packages_upload_cran.rb @@ -6,14 +6,13 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end require 'date' module CloudsmithApi - class PackagesUploadCran # The primary file for the package. attr_accessor :package_file @@ -24,7 +23,6 @@ class PackagesUploadCran # A comma-separated values list of tags to add to the package. attr_accessor :tags - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -49,7 +47,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'package_file') self.package_file = attributes[:'package_file'] @@ -62,25 +60,24 @@ def initialize(attributes = {}) if attributes.has_key?(:'tags') self.tags = attributes[:'tags'] end - end # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properies with the reasons + # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new if @package_file.nil? - invalid_properties.push("invalid value for 'package_file', package_file cannot be nil.") + invalid_properties.push('invalid value for "package_file", package_file cannot be nil.') end - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? return false if @package_file.nil? - return true + true end # Checks equality by comparing each attribute. @@ -112,10 +109,10 @@ def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -197,7 +194,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -210,5 +207,4 @@ def _to_hash(value) end end - end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/packages_upload_dart.rb b/bindings/ruby/src/lib/cloudsmith-api/models/packages_upload_dart.rb index 27b981a1..e6a048c5 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/packages_upload_dart.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/packages_upload_dart.rb @@ -6,14 +6,13 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end require 'date' module CloudsmithApi - class PackagesUploadDart # The primary file for the package. attr_accessor :package_file @@ -24,7 +23,6 @@ class PackagesUploadDart # A comma-separated values list of tags to add to the package. attr_accessor :tags - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -49,7 +47,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'package_file') self.package_file = attributes[:'package_file'] @@ -62,25 +60,24 @@ def initialize(attributes = {}) if attributes.has_key?(:'tags') self.tags = attributes[:'tags'] end - end # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properies with the reasons + # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new if @package_file.nil? - invalid_properties.push("invalid value for 'package_file', package_file cannot be nil.") + invalid_properties.push('invalid value for "package_file", package_file cannot be nil.') end - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? return false if @package_file.nil? - return true + true end # Checks equality by comparing each attribute. @@ -112,10 +109,10 @@ def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -197,7 +194,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -210,5 +207,4 @@ def _to_hash(value) end end - end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/packages_upload_deb.rb b/bindings/ruby/src/lib/cloudsmith-api/models/packages_upload_deb.rb index 20474306..f4350bd8 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/packages_upload_deb.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/packages_upload_deb.rb @@ -6,14 +6,13 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end require 'date' module CloudsmithApi - class PackagesUploadDeb # The changes archive containing the changes made to the source and debian packaging files attr_accessor :changes_file @@ -33,7 +32,6 @@ class PackagesUploadDeb # A comma-separated values list of tags to add to the package. attr_accessor :tags - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -64,7 +62,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'changes_file') self.changes_file = attributes[:'changes_file'] @@ -89,22 +87,21 @@ def initialize(attributes = {}) if attributes.has_key?(:'tags') self.tags = attributes[:'tags'] end - end # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properies with the reasons + # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new if @distribution.nil? - invalid_properties.push("invalid value for 'distribution', distribution cannot be nil.") + invalid_properties.push('invalid value for "distribution", distribution cannot be nil.') end if @package_file.nil? - invalid_properties.push("invalid value for 'package_file', package_file cannot be nil.") + invalid_properties.push('invalid value for "package_file", package_file cannot be nil.') end - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid @@ -112,7 +109,7 @@ def list_invalid_properties def valid? return false if @distribution.nil? return false if @package_file.nil? - return true + true end # Checks equality by comparing each attribute. @@ -147,10 +144,10 @@ def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -232,7 +229,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -245,5 +242,4 @@ def _to_hash(value) end end - end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/packages_upload_docker.rb b/bindings/ruby/src/lib/cloudsmith-api/models/packages_upload_docker.rb index d67473d6..9ba18a1e 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/packages_upload_docker.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/packages_upload_docker.rb @@ -6,14 +6,13 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end require 'date' module CloudsmithApi - class PackagesUploadDocker # The primary file for the package. attr_accessor :package_file @@ -24,7 +23,6 @@ class PackagesUploadDocker # A comma-separated values list of tags to add to the package. attr_accessor :tags - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -49,7 +47,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'package_file') self.package_file = attributes[:'package_file'] @@ -62,25 +60,24 @@ def initialize(attributes = {}) if attributes.has_key?(:'tags') self.tags = attributes[:'tags'] end - end # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properies with the reasons + # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new if @package_file.nil? - invalid_properties.push("invalid value for 'package_file', package_file cannot be nil.") + invalid_properties.push('invalid value for "package_file", package_file cannot be nil.') end - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? return false if @package_file.nil? - return true + true end # Checks equality by comparing each attribute. @@ -112,10 +109,10 @@ def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -197,7 +194,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -210,5 +207,4 @@ def _to_hash(value) end end - end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/packages_upload_go.rb b/bindings/ruby/src/lib/cloudsmith-api/models/packages_upload_go.rb index 74c6a9d8..7a9831ad 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/packages_upload_go.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/packages_upload_go.rb @@ -6,14 +6,13 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end require 'date' module CloudsmithApi - class PackagesUploadGo # The primary file for the package. attr_accessor :package_file @@ -24,7 +23,6 @@ class PackagesUploadGo # A comma-separated values list of tags to add to the package. attr_accessor :tags - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -49,7 +47,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'package_file') self.package_file = attributes[:'package_file'] @@ -62,25 +60,24 @@ def initialize(attributes = {}) if attributes.has_key?(:'tags') self.tags = attributes[:'tags'] end - end # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properies with the reasons + # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new if @package_file.nil? - invalid_properties.push("invalid value for 'package_file', package_file cannot be nil.") + invalid_properties.push('invalid value for "package_file", package_file cannot be nil.') end - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? return false if @package_file.nil? - return true + true end # Checks equality by comparing each attribute. @@ -112,10 +109,10 @@ def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -197,7 +194,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -210,5 +207,4 @@ def _to_hash(value) end end - end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/packages_upload_helm.rb b/bindings/ruby/src/lib/cloudsmith-api/models/packages_upload_helm.rb index c706ed96..f4e3dad8 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/packages_upload_helm.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/packages_upload_helm.rb @@ -6,14 +6,13 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end require 'date' module CloudsmithApi - class PackagesUploadHelm # The primary file for the package. attr_accessor :package_file @@ -24,7 +23,6 @@ class PackagesUploadHelm # A comma-separated values list of tags to add to the package. attr_accessor :tags - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -49,7 +47,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'package_file') self.package_file = attributes[:'package_file'] @@ -62,25 +60,24 @@ def initialize(attributes = {}) if attributes.has_key?(:'tags') self.tags = attributes[:'tags'] end - end # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properies with the reasons + # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new if @package_file.nil? - invalid_properties.push("invalid value for 'package_file', package_file cannot be nil.") + invalid_properties.push('invalid value for "package_file", package_file cannot be nil.') end - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? return false if @package_file.nil? - return true + true end # Checks equality by comparing each attribute. @@ -112,10 +109,10 @@ def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -197,7 +194,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -210,5 +207,4 @@ def _to_hash(value) end end - end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/packages_upload_luarocks.rb b/bindings/ruby/src/lib/cloudsmith-api/models/packages_upload_luarocks.rb index 6a38e4d1..9146ac80 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/packages_upload_luarocks.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/packages_upload_luarocks.rb @@ -6,14 +6,13 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end require 'date' module CloudsmithApi - class PackagesUploadLuarocks # The primary file for the package. attr_accessor :package_file @@ -24,7 +23,6 @@ class PackagesUploadLuarocks # A comma-separated values list of tags to add to the package. attr_accessor :tags - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -49,7 +47,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'package_file') self.package_file = attributes[:'package_file'] @@ -62,25 +60,24 @@ def initialize(attributes = {}) if attributes.has_key?(:'tags') self.tags = attributes[:'tags'] end - end # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properies with the reasons + # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new if @package_file.nil? - invalid_properties.push("invalid value for 'package_file', package_file cannot be nil.") + invalid_properties.push('invalid value for "package_file", package_file cannot be nil.') end - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? return false if @package_file.nil? - return true + true end # Checks equality by comparing each attribute. @@ -112,10 +109,10 @@ def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -197,7 +194,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -210,5 +207,4 @@ def _to_hash(value) end end - end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/packages_upload_maven.rb b/bindings/ruby/src/lib/cloudsmith-api/models/packages_upload_maven.rb index 7c64060f..2bccd4c6 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/packages_upload_maven.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/packages_upload_maven.rb @@ -6,14 +6,13 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end require 'date' module CloudsmithApi - class PackagesUploadMaven # The ID of the artifact. attr_accessor :artifact_id @@ -48,7 +47,6 @@ class PackagesUploadMaven # The raw version for this package. attr_accessor :version - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -89,7 +87,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'artifact_id') self.artifact_id = attributes[:'artifact_id'] @@ -134,25 +132,24 @@ def initialize(attributes = {}) if attributes.has_key?(:'version') self.version = attributes[:'version'] end - end # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properies with the reasons + # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new if @package_file.nil? - invalid_properties.push("invalid value for 'package_file', package_file cannot be nil.") + invalid_properties.push('invalid value for "package_file", package_file cannot be nil.') end - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? return false if @package_file.nil? - return true + true end # Checks equality by comparing each attribute. @@ -192,10 +189,10 @@ def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -277,7 +274,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -290,5 +287,4 @@ def _to_hash(value) end end - end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/packages_upload_npm.rb b/bindings/ruby/src/lib/cloudsmith-api/models/packages_upload_npm.rb index 16ad0d3d..db561213 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/packages_upload_npm.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/packages_upload_npm.rb @@ -6,14 +6,13 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end require 'date' module CloudsmithApi - class PackagesUploadNpm # The default npm dist-tag for this package/version - This will replace any other package/version if they are using the same tag. attr_accessor :npm_dist_tag @@ -27,7 +26,6 @@ class PackagesUploadNpm # A comma-separated values list of tags to add to the package. attr_accessor :tags - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -54,7 +52,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'npm_dist_tag') self.npm_dist_tag = attributes[:'npm_dist_tag'] @@ -71,25 +69,24 @@ def initialize(attributes = {}) if attributes.has_key?(:'tags') self.tags = attributes[:'tags'] end - end # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properies with the reasons + # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new if @package_file.nil? - invalid_properties.push("invalid value for 'package_file', package_file cannot be nil.") + invalid_properties.push('invalid value for "package_file", package_file cannot be nil.') end - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? return false if @package_file.nil? - return true + true end # Checks equality by comparing each attribute. @@ -122,10 +119,10 @@ def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -207,7 +204,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -220,5 +217,4 @@ def _to_hash(value) end end - end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/packages_upload_nuget.rb b/bindings/ruby/src/lib/cloudsmith-api/models/packages_upload_nuget.rb index cde1e3c5..dad6db18 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/packages_upload_nuget.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/packages_upload_nuget.rb @@ -6,14 +6,13 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end require 'date' module CloudsmithApi - class PackagesUploadNuget # The primary file for the package. attr_accessor :package_file @@ -27,7 +26,6 @@ class PackagesUploadNuget # A comma-separated values list of tags to add to the package. attr_accessor :tags - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -54,7 +52,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'package_file') self.package_file = attributes[:'package_file'] @@ -71,25 +69,24 @@ def initialize(attributes = {}) if attributes.has_key?(:'tags') self.tags = attributes[:'tags'] end - end # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properies with the reasons + # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new if @package_file.nil? - invalid_properties.push("invalid value for 'package_file', package_file cannot be nil.") + invalid_properties.push('invalid value for "package_file", package_file cannot be nil.') end - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? return false if @package_file.nil? - return true + true end # Checks equality by comparing each attribute. @@ -122,10 +119,10 @@ def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -207,7 +204,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -220,5 +217,4 @@ def _to_hash(value) end end - end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/packages_upload_p2.rb b/bindings/ruby/src/lib/cloudsmith-api/models/packages_upload_p2.rb index 5c5fcfdc..d5ca1466 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/packages_upload_p2.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/packages_upload_p2.rb @@ -6,14 +6,13 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end require 'date' module CloudsmithApi - class PackagesUploadP2 # The primary file for the package. attr_accessor :package_file @@ -24,7 +23,6 @@ class PackagesUploadP2 # A comma-separated values list of tags to add to the package. attr_accessor :tags - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -49,7 +47,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'package_file') self.package_file = attributes[:'package_file'] @@ -62,25 +60,24 @@ def initialize(attributes = {}) if attributes.has_key?(:'tags') self.tags = attributes[:'tags'] end - end # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properies with the reasons + # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new if @package_file.nil? - invalid_properties.push("invalid value for 'package_file', package_file cannot be nil.") + invalid_properties.push('invalid value for "package_file", package_file cannot be nil.') end - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? return false if @package_file.nil? - return true + true end # Checks equality by comparing each attribute. @@ -112,10 +109,10 @@ def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -197,7 +194,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -210,5 +207,4 @@ def _to_hash(value) end end - end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/packages_upload_python.rb b/bindings/ruby/src/lib/cloudsmith-api/models/packages_upload_python.rb index c738b001..45157658 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/packages_upload_python.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/packages_upload_python.rb @@ -6,14 +6,13 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end require 'date' module CloudsmithApi - class PackagesUploadPython # The primary file for the package. attr_accessor :package_file @@ -24,7 +23,6 @@ class PackagesUploadPython # A comma-separated values list of tags to add to the package. attr_accessor :tags - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -49,7 +47,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'package_file') self.package_file = attributes[:'package_file'] @@ -62,25 +60,24 @@ def initialize(attributes = {}) if attributes.has_key?(:'tags') self.tags = attributes[:'tags'] end - end # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properies with the reasons + # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new if @package_file.nil? - invalid_properties.push("invalid value for 'package_file', package_file cannot be nil.") + invalid_properties.push('invalid value for "package_file", package_file cannot be nil.') end - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? return false if @package_file.nil? - return true + true end # Checks equality by comparing each attribute. @@ -112,10 +109,10 @@ def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -197,7 +194,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -210,5 +207,4 @@ def _to_hash(value) end end - end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/packages_upload_raw.rb b/bindings/ruby/src/lib/cloudsmith-api/models/packages_upload_raw.rb index b8facf37..b89d3722 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/packages_upload_raw.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/packages_upload_raw.rb @@ -6,14 +6,13 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end require 'date' module CloudsmithApi - class PackagesUploadRaw # A custom content/media (also known as MIME) type to be sent when downloading this file. By default Cloudsmith will attempt to detect the type, but if you need to override it, you can specify it here. attr_accessor :content_type @@ -39,7 +38,6 @@ class PackagesUploadRaw # The raw version for this package. attr_accessor :version - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -74,7 +72,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'content_type') self.content_type = attributes[:'content_type'] @@ -107,25 +105,24 @@ def initialize(attributes = {}) if attributes.has_key?(:'version') self.version = attributes[:'version'] end - end # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properies with the reasons + # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new if @package_file.nil? - invalid_properties.push("invalid value for 'package_file', package_file cannot be nil.") + invalid_properties.push('invalid value for "package_file", package_file cannot be nil.') end - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? return false if @package_file.nil? - return true + true end # Checks equality by comparing each attribute. @@ -162,10 +159,10 @@ def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -247,7 +244,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -260,5 +257,4 @@ def _to_hash(value) end end - end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/packages_upload_rpm.rb b/bindings/ruby/src/lib/cloudsmith-api/models/packages_upload_rpm.rb index e9feaa01..5fce3c8e 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/packages_upload_rpm.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/packages_upload_rpm.rb @@ -6,14 +6,13 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end require 'date' module CloudsmithApi - class PackagesUploadRpm # The distribution to store the package for. attr_accessor :distribution @@ -27,7 +26,6 @@ class PackagesUploadRpm # A comma-separated values list of tags to add to the package. attr_accessor :tags - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -54,7 +52,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'distribution') self.distribution = attributes[:'distribution'] @@ -71,22 +69,21 @@ def initialize(attributes = {}) if attributes.has_key?(:'tags') self.tags = attributes[:'tags'] end - end # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properies with the reasons + # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new if @distribution.nil? - invalid_properties.push("invalid value for 'distribution', distribution cannot be nil.") + invalid_properties.push('invalid value for "distribution", distribution cannot be nil.') end if @package_file.nil? - invalid_properties.push("invalid value for 'package_file', package_file cannot be nil.") + invalid_properties.push('invalid value for "package_file", package_file cannot be nil.') end - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid @@ -94,7 +91,7 @@ def list_invalid_properties def valid? return false if @distribution.nil? return false if @package_file.nil? - return true + true end # Checks equality by comparing each attribute. @@ -127,10 +124,10 @@ def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -212,7 +209,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -225,5 +222,4 @@ def _to_hash(value) end end - end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/packages_upload_ruby.rb b/bindings/ruby/src/lib/cloudsmith-api/models/packages_upload_ruby.rb index 8c8e69d1..41ce1c4e 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/packages_upload_ruby.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/packages_upload_ruby.rb @@ -6,14 +6,13 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end require 'date' module CloudsmithApi - class PackagesUploadRuby # The primary file for the package. attr_accessor :package_file @@ -24,7 +23,6 @@ class PackagesUploadRuby # A comma-separated values list of tags to add to the package. attr_accessor :tags - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -49,7 +47,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'package_file') self.package_file = attributes[:'package_file'] @@ -62,25 +60,24 @@ def initialize(attributes = {}) if attributes.has_key?(:'tags') self.tags = attributes[:'tags'] end - end # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properies with the reasons + # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new if @package_file.nil? - invalid_properties.push("invalid value for 'package_file', package_file cannot be nil.") + invalid_properties.push('invalid value for "package_file", package_file cannot be nil.') end - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? return false if @package_file.nil? - return true + true end # Checks equality by comparing each attribute. @@ -112,10 +109,10 @@ def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -197,7 +194,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -210,5 +207,4 @@ def _to_hash(value) end end - end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/packages_upload_terraform.rb b/bindings/ruby/src/lib/cloudsmith-api/models/packages_upload_terraform.rb index ed45b4c4..d522f018 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/packages_upload_terraform.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/packages_upload_terraform.rb @@ -6,14 +6,13 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end require 'date' module CloudsmithApi - class PackagesUploadTerraform # The primary file for the package. attr_accessor :package_file @@ -24,7 +23,6 @@ class PackagesUploadTerraform # A comma-separated values list of tags to add to the package. attr_accessor :tags - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -49,7 +47,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'package_file') self.package_file = attributes[:'package_file'] @@ -62,25 +60,24 @@ def initialize(attributes = {}) if attributes.has_key?(:'tags') self.tags = attributes[:'tags'] end - end # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properies with the reasons + # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new if @package_file.nil? - invalid_properties.push("invalid value for 'package_file', package_file cannot be nil.") + invalid_properties.push('invalid value for "package_file", package_file cannot be nil.') end - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? return false if @package_file.nil? - return true + true end # Checks equality by comparing each attribute. @@ -112,10 +109,10 @@ def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -197,7 +194,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -210,5 +207,4 @@ def _to_hash(value) end end - end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/packages_upload_vagrant.rb b/bindings/ruby/src/lib/cloudsmith-api/models/packages_upload_vagrant.rb index e8a0c66b..32e5c54f 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/packages_upload_vagrant.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/packages_upload_vagrant.rb @@ -6,14 +6,13 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end require 'date' module CloudsmithApi - class PackagesUploadVagrant # The name of this package. attr_accessor :name @@ -33,7 +32,6 @@ class PackagesUploadVagrant # The raw version for this package. attr_accessor :version - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -64,7 +62,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'name') self.name = attributes[:'name'] @@ -89,30 +87,29 @@ def initialize(attributes = {}) if attributes.has_key?(:'version') self.version = attributes[:'version'] end - end # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properies with the reasons + # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new if @name.nil? - invalid_properties.push("invalid value for 'name', name cannot be nil.") + invalid_properties.push('invalid value for "name", name cannot be nil.') end if @package_file.nil? - invalid_properties.push("invalid value for 'package_file', package_file cannot be nil.") + invalid_properties.push('invalid value for "package_file", package_file cannot be nil.') end if @provider.nil? - invalid_properties.push("invalid value for 'provider', provider cannot be nil.") + invalid_properties.push('invalid value for "provider", provider cannot be nil.') end if @version.nil? - invalid_properties.push("invalid value for 'version', version cannot be nil.") + invalid_properties.push('invalid value for "version", version cannot be nil.') end - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid @@ -122,7 +119,7 @@ def valid? return false if @package_file.nil? return false if @provider.nil? return false if @version.nil? - return true + true end # Checks equality by comparing each attribute. @@ -157,10 +154,10 @@ def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -242,7 +239,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -255,5 +252,4 @@ def _to_hash(value) end end - end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/packages_validateupload_alpine.rb b/bindings/ruby/src/lib/cloudsmith-api/models/packages_validateupload_alpine.rb index 1127c046..d033a759 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/packages_validateupload_alpine.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/packages_validateupload_alpine.rb @@ -6,14 +6,13 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end require 'date' module CloudsmithApi - class PackagesValidateuploadAlpine # The distribution to store the package for. attr_accessor :distribution @@ -27,7 +26,6 @@ class PackagesValidateuploadAlpine # A comma-separated values list of tags to add to the package. attr_accessor :tags - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -54,7 +52,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'distribution') self.distribution = attributes[:'distribution'] @@ -71,22 +69,21 @@ def initialize(attributes = {}) if attributes.has_key?(:'tags') self.tags = attributes[:'tags'] end - end # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properies with the reasons + # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new if @distribution.nil? - invalid_properties.push("invalid value for 'distribution', distribution cannot be nil.") + invalid_properties.push('invalid value for "distribution", distribution cannot be nil.') end if @package_file.nil? - invalid_properties.push("invalid value for 'package_file', package_file cannot be nil.") + invalid_properties.push('invalid value for "package_file", package_file cannot be nil.') end - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid @@ -94,7 +91,7 @@ def list_invalid_properties def valid? return false if @distribution.nil? return false if @package_file.nil? - return true + true end # Checks equality by comparing each attribute. @@ -127,10 +124,10 @@ def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -212,7 +209,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -225,5 +222,4 @@ def _to_hash(value) end end - end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/packages_validateupload_cargo.rb b/bindings/ruby/src/lib/cloudsmith-api/models/packages_validateupload_cargo.rb index 40ee336d..0d8ce277 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/packages_validateupload_cargo.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/packages_validateupload_cargo.rb @@ -6,14 +6,13 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end require 'date' module CloudsmithApi - class PackagesValidateuploadCargo # The primary file for the package. attr_accessor :package_file @@ -24,7 +23,6 @@ class PackagesValidateuploadCargo # A comma-separated values list of tags to add to the package. attr_accessor :tags - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -49,7 +47,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'package_file') self.package_file = attributes[:'package_file'] @@ -62,25 +60,24 @@ def initialize(attributes = {}) if attributes.has_key?(:'tags') self.tags = attributes[:'tags'] end - end # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properies with the reasons + # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new if @package_file.nil? - invalid_properties.push("invalid value for 'package_file', package_file cannot be nil.") + invalid_properties.push('invalid value for "package_file", package_file cannot be nil.') end - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? return false if @package_file.nil? - return true + true end # Checks equality by comparing each attribute. @@ -112,10 +109,10 @@ def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -197,7 +194,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -210,5 +207,4 @@ def _to_hash(value) end end - end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/packages_validateupload_cocoapods.rb b/bindings/ruby/src/lib/cloudsmith-api/models/packages_validateupload_cocoapods.rb index 317702c6..1ddd0058 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/packages_validateupload_cocoapods.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/packages_validateupload_cocoapods.rb @@ -6,14 +6,13 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end require 'date' module CloudsmithApi - class PackagesValidateuploadCocoapods # The primary file for the package. attr_accessor :package_file @@ -24,7 +23,6 @@ class PackagesValidateuploadCocoapods # A comma-separated values list of tags to add to the package. attr_accessor :tags - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -49,7 +47,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'package_file') self.package_file = attributes[:'package_file'] @@ -62,25 +60,24 @@ def initialize(attributes = {}) if attributes.has_key?(:'tags') self.tags = attributes[:'tags'] end - end # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properies with the reasons + # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new if @package_file.nil? - invalid_properties.push("invalid value for 'package_file', package_file cannot be nil.") + invalid_properties.push('invalid value for "package_file", package_file cannot be nil.') end - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? return false if @package_file.nil? - return true + true end # Checks equality by comparing each attribute. @@ -112,10 +109,10 @@ def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -197,7 +194,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -210,5 +207,4 @@ def _to_hash(value) end end - end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/packages_validateupload_composer.rb b/bindings/ruby/src/lib/cloudsmith-api/models/packages_validateupload_composer.rb index bee28455..e2963c0a 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/packages_validateupload_composer.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/packages_validateupload_composer.rb @@ -6,14 +6,13 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end require 'date' module CloudsmithApi - class PackagesValidateuploadComposer # The primary file for the package. attr_accessor :package_file @@ -24,7 +23,6 @@ class PackagesValidateuploadComposer # A comma-separated values list of tags to add to the package. attr_accessor :tags - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -49,7 +47,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'package_file') self.package_file = attributes[:'package_file'] @@ -62,25 +60,24 @@ def initialize(attributes = {}) if attributes.has_key?(:'tags') self.tags = attributes[:'tags'] end - end # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properies with the reasons + # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new if @package_file.nil? - invalid_properties.push("invalid value for 'package_file', package_file cannot be nil.") + invalid_properties.push('invalid value for "package_file", package_file cannot be nil.') end - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? return false if @package_file.nil? - return true + true end # Checks equality by comparing each attribute. @@ -112,10 +109,10 @@ def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -197,7 +194,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -210,5 +207,4 @@ def _to_hash(value) end end - end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/packages_validateupload_conan.rb b/bindings/ruby/src/lib/cloudsmith-api/models/packages_validateupload_conan.rb index d09c6c09..03ad97a4 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/packages_validateupload_conan.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/packages_validateupload_conan.rb @@ -6,14 +6,13 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end require 'date' module CloudsmithApi - class PackagesValidateuploadConan # Conan channel. attr_accessor :conan_channel @@ -45,7 +44,6 @@ class PackagesValidateuploadConan # The raw version for this package. attr_accessor :version - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -84,7 +82,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'conan_channel') self.conan_channel = attributes[:'conan_channel'] @@ -125,30 +123,29 @@ def initialize(attributes = {}) if attributes.has_key?(:'version') self.version = attributes[:'version'] end - end # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properies with the reasons + # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new if @info_file.nil? - invalid_properties.push("invalid value for 'info_file', info_file cannot be nil.") + invalid_properties.push('invalid value for "info_file", info_file cannot be nil.') end if @manifest_file.nil? - invalid_properties.push("invalid value for 'manifest_file', manifest_file cannot be nil.") + invalid_properties.push('invalid value for "manifest_file", manifest_file cannot be nil.') end if @metadata_file.nil? - invalid_properties.push("invalid value for 'metadata_file', metadata_file cannot be nil.") + invalid_properties.push('invalid value for "metadata_file", metadata_file cannot be nil.') end if @package_file.nil? - invalid_properties.push("invalid value for 'package_file', package_file cannot be nil.") + invalid_properties.push('invalid value for "package_file", package_file cannot be nil.') end - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid @@ -158,7 +155,7 @@ def valid? return false if @manifest_file.nil? return false if @metadata_file.nil? return false if @package_file.nil? - return true + true end # Checks equality by comparing each attribute. @@ -197,10 +194,10 @@ def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -282,7 +279,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -295,5 +292,4 @@ def _to_hash(value) end end - end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/packages_validateupload_conda.rb b/bindings/ruby/src/lib/cloudsmith-api/models/packages_validateupload_conda.rb index af0b70a0..6adc3f01 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/packages_validateupload_conda.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/packages_validateupload_conda.rb @@ -6,14 +6,13 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end require 'date' module CloudsmithApi - class PackagesValidateuploadConda # The primary file for the package. attr_accessor :package_file @@ -24,7 +23,6 @@ class PackagesValidateuploadConda # A comma-separated values list of tags to add to the package. attr_accessor :tags - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -49,7 +47,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'package_file') self.package_file = attributes[:'package_file'] @@ -62,25 +60,24 @@ def initialize(attributes = {}) if attributes.has_key?(:'tags') self.tags = attributes[:'tags'] end - end # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properies with the reasons + # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new if @package_file.nil? - invalid_properties.push("invalid value for 'package_file', package_file cannot be nil.") + invalid_properties.push('invalid value for "package_file", package_file cannot be nil.') end - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? return false if @package_file.nil? - return true + true end # Checks equality by comparing each attribute. @@ -112,10 +109,10 @@ def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -197,7 +194,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -210,5 +207,4 @@ def _to_hash(value) end end - end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/packages_validateupload_cran.rb b/bindings/ruby/src/lib/cloudsmith-api/models/packages_validateupload_cran.rb index f214597f..aad5fa28 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/packages_validateupload_cran.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/packages_validateupload_cran.rb @@ -6,14 +6,13 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end require 'date' module CloudsmithApi - class PackagesValidateuploadCran # The primary file for the package. attr_accessor :package_file @@ -24,7 +23,6 @@ class PackagesValidateuploadCran # A comma-separated values list of tags to add to the package. attr_accessor :tags - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -49,7 +47,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'package_file') self.package_file = attributes[:'package_file'] @@ -62,25 +60,24 @@ def initialize(attributes = {}) if attributes.has_key?(:'tags') self.tags = attributes[:'tags'] end - end # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properies with the reasons + # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new if @package_file.nil? - invalid_properties.push("invalid value for 'package_file', package_file cannot be nil.") + invalid_properties.push('invalid value for "package_file", package_file cannot be nil.') end - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? return false if @package_file.nil? - return true + true end # Checks equality by comparing each attribute. @@ -112,10 +109,10 @@ def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -197,7 +194,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -210,5 +207,4 @@ def _to_hash(value) end end - end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/packages_validateupload_dart.rb b/bindings/ruby/src/lib/cloudsmith-api/models/packages_validateupload_dart.rb index 50769e9c..00bd308a 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/packages_validateupload_dart.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/packages_validateupload_dart.rb @@ -6,14 +6,13 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end require 'date' module CloudsmithApi - class PackagesValidateuploadDart # The primary file for the package. attr_accessor :package_file @@ -24,7 +23,6 @@ class PackagesValidateuploadDart # A comma-separated values list of tags to add to the package. attr_accessor :tags - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -49,7 +47,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'package_file') self.package_file = attributes[:'package_file'] @@ -62,25 +60,24 @@ def initialize(attributes = {}) if attributes.has_key?(:'tags') self.tags = attributes[:'tags'] end - end # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properies with the reasons + # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new if @package_file.nil? - invalid_properties.push("invalid value for 'package_file', package_file cannot be nil.") + invalid_properties.push('invalid value for "package_file", package_file cannot be nil.') end - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? return false if @package_file.nil? - return true + true end # Checks equality by comparing each attribute. @@ -112,10 +109,10 @@ def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -197,7 +194,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -210,5 +207,4 @@ def _to_hash(value) end end - end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/packages_validateupload_deb.rb b/bindings/ruby/src/lib/cloudsmith-api/models/packages_validateupload_deb.rb index 5212e048..ba557f94 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/packages_validateupload_deb.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/packages_validateupload_deb.rb @@ -6,14 +6,13 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end require 'date' module CloudsmithApi - class PackagesValidateuploadDeb # The changes archive containing the changes made to the source and debian packaging files attr_accessor :changes_file @@ -33,7 +32,6 @@ class PackagesValidateuploadDeb # A comma-separated values list of tags to add to the package. attr_accessor :tags - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -64,7 +62,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'changes_file') self.changes_file = attributes[:'changes_file'] @@ -89,22 +87,21 @@ def initialize(attributes = {}) if attributes.has_key?(:'tags') self.tags = attributes[:'tags'] end - end # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properies with the reasons + # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new if @distribution.nil? - invalid_properties.push("invalid value for 'distribution', distribution cannot be nil.") + invalid_properties.push('invalid value for "distribution", distribution cannot be nil.') end if @package_file.nil? - invalid_properties.push("invalid value for 'package_file', package_file cannot be nil.") + invalid_properties.push('invalid value for "package_file", package_file cannot be nil.') end - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid @@ -112,7 +109,7 @@ def list_invalid_properties def valid? return false if @distribution.nil? return false if @package_file.nil? - return true + true end # Checks equality by comparing each attribute. @@ -147,10 +144,10 @@ def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -232,7 +229,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -245,5 +242,4 @@ def _to_hash(value) end end - end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/packages_validateupload_docker.rb b/bindings/ruby/src/lib/cloudsmith-api/models/packages_validateupload_docker.rb index caca2159..4cce5ca5 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/packages_validateupload_docker.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/packages_validateupload_docker.rb @@ -6,14 +6,13 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end require 'date' module CloudsmithApi - class PackagesValidateuploadDocker # The primary file for the package. attr_accessor :package_file @@ -24,7 +23,6 @@ class PackagesValidateuploadDocker # A comma-separated values list of tags to add to the package. attr_accessor :tags - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -49,7 +47,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'package_file') self.package_file = attributes[:'package_file'] @@ -62,25 +60,24 @@ def initialize(attributes = {}) if attributes.has_key?(:'tags') self.tags = attributes[:'tags'] end - end # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properies with the reasons + # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new if @package_file.nil? - invalid_properties.push("invalid value for 'package_file', package_file cannot be nil.") + invalid_properties.push('invalid value for "package_file", package_file cannot be nil.') end - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? return false if @package_file.nil? - return true + true end # Checks equality by comparing each attribute. @@ -112,10 +109,10 @@ def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -197,7 +194,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -210,5 +207,4 @@ def _to_hash(value) end end - end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/packages_validateupload_go.rb b/bindings/ruby/src/lib/cloudsmith-api/models/packages_validateupload_go.rb index 9683daba..0c39476e 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/packages_validateupload_go.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/packages_validateupload_go.rb @@ -6,14 +6,13 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end require 'date' module CloudsmithApi - class PackagesValidateuploadGo # The primary file for the package. attr_accessor :package_file @@ -24,7 +23,6 @@ class PackagesValidateuploadGo # A comma-separated values list of tags to add to the package. attr_accessor :tags - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -49,7 +47,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'package_file') self.package_file = attributes[:'package_file'] @@ -62,25 +60,24 @@ def initialize(attributes = {}) if attributes.has_key?(:'tags') self.tags = attributes[:'tags'] end - end # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properies with the reasons + # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new if @package_file.nil? - invalid_properties.push("invalid value for 'package_file', package_file cannot be nil.") + invalid_properties.push('invalid value for "package_file", package_file cannot be nil.') end - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? return false if @package_file.nil? - return true + true end # Checks equality by comparing each attribute. @@ -112,10 +109,10 @@ def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -197,7 +194,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -210,5 +207,4 @@ def _to_hash(value) end end - end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/packages_validateupload_helm.rb b/bindings/ruby/src/lib/cloudsmith-api/models/packages_validateupload_helm.rb index 58a4746c..e8dc5650 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/packages_validateupload_helm.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/packages_validateupload_helm.rb @@ -6,14 +6,13 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end require 'date' module CloudsmithApi - class PackagesValidateuploadHelm # The primary file for the package. attr_accessor :package_file @@ -24,7 +23,6 @@ class PackagesValidateuploadHelm # A comma-separated values list of tags to add to the package. attr_accessor :tags - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -49,7 +47,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'package_file') self.package_file = attributes[:'package_file'] @@ -62,25 +60,24 @@ def initialize(attributes = {}) if attributes.has_key?(:'tags') self.tags = attributes[:'tags'] end - end # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properies with the reasons + # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new if @package_file.nil? - invalid_properties.push("invalid value for 'package_file', package_file cannot be nil.") + invalid_properties.push('invalid value for "package_file", package_file cannot be nil.') end - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? return false if @package_file.nil? - return true + true end # Checks equality by comparing each attribute. @@ -112,10 +109,10 @@ def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -197,7 +194,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -210,5 +207,4 @@ def _to_hash(value) end end - end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/packages_validateupload_luarocks.rb b/bindings/ruby/src/lib/cloudsmith-api/models/packages_validateupload_luarocks.rb index e7693d37..fb17451e 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/packages_validateupload_luarocks.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/packages_validateupload_luarocks.rb @@ -6,14 +6,13 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end require 'date' module CloudsmithApi - class PackagesValidateuploadLuarocks # The primary file for the package. attr_accessor :package_file @@ -24,7 +23,6 @@ class PackagesValidateuploadLuarocks # A comma-separated values list of tags to add to the package. attr_accessor :tags - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -49,7 +47,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'package_file') self.package_file = attributes[:'package_file'] @@ -62,25 +60,24 @@ def initialize(attributes = {}) if attributes.has_key?(:'tags') self.tags = attributes[:'tags'] end - end # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properies with the reasons + # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new if @package_file.nil? - invalid_properties.push("invalid value for 'package_file', package_file cannot be nil.") + invalid_properties.push('invalid value for "package_file", package_file cannot be nil.') end - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? return false if @package_file.nil? - return true + true end # Checks equality by comparing each attribute. @@ -112,10 +109,10 @@ def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -197,7 +194,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -210,5 +207,4 @@ def _to_hash(value) end end - end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/packages_validateupload_maven.rb b/bindings/ruby/src/lib/cloudsmith-api/models/packages_validateupload_maven.rb index 0e4af6f9..c27c9717 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/packages_validateupload_maven.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/packages_validateupload_maven.rb @@ -6,14 +6,13 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end require 'date' module CloudsmithApi - class PackagesValidateuploadMaven # The ID of the artifact. attr_accessor :artifact_id @@ -48,7 +47,6 @@ class PackagesValidateuploadMaven # The raw version for this package. attr_accessor :version - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -89,7 +87,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'artifact_id') self.artifact_id = attributes[:'artifact_id'] @@ -134,25 +132,24 @@ def initialize(attributes = {}) if attributes.has_key?(:'version') self.version = attributes[:'version'] end - end # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properies with the reasons + # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new if @package_file.nil? - invalid_properties.push("invalid value for 'package_file', package_file cannot be nil.") + invalid_properties.push('invalid value for "package_file", package_file cannot be nil.') end - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? return false if @package_file.nil? - return true + true end # Checks equality by comparing each attribute. @@ -192,10 +189,10 @@ def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -277,7 +274,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -290,5 +287,4 @@ def _to_hash(value) end end - end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/packages_validateupload_npm.rb b/bindings/ruby/src/lib/cloudsmith-api/models/packages_validateupload_npm.rb index 2b23c983..0053b02a 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/packages_validateupload_npm.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/packages_validateupload_npm.rb @@ -6,14 +6,13 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end require 'date' module CloudsmithApi - class PackagesValidateuploadNpm # The default npm dist-tag for this package/version - This will replace any other package/version if they are using the same tag. attr_accessor :npm_dist_tag @@ -27,7 +26,6 @@ class PackagesValidateuploadNpm # A comma-separated values list of tags to add to the package. attr_accessor :tags - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -54,7 +52,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'npm_dist_tag') self.npm_dist_tag = attributes[:'npm_dist_tag'] @@ -71,25 +69,24 @@ def initialize(attributes = {}) if attributes.has_key?(:'tags') self.tags = attributes[:'tags'] end - end # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properies with the reasons + # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new if @package_file.nil? - invalid_properties.push("invalid value for 'package_file', package_file cannot be nil.") + invalid_properties.push('invalid value for "package_file", package_file cannot be nil.') end - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? return false if @package_file.nil? - return true + true end # Checks equality by comparing each attribute. @@ -122,10 +119,10 @@ def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -207,7 +204,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -220,5 +217,4 @@ def _to_hash(value) end end - end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/packages_validateupload_nuget.rb b/bindings/ruby/src/lib/cloudsmith-api/models/packages_validateupload_nuget.rb index f6f69e1e..b734c76e 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/packages_validateupload_nuget.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/packages_validateupload_nuget.rb @@ -6,14 +6,13 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end require 'date' module CloudsmithApi - class PackagesValidateuploadNuget # The primary file for the package. attr_accessor :package_file @@ -27,7 +26,6 @@ class PackagesValidateuploadNuget # A comma-separated values list of tags to add to the package. attr_accessor :tags - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -54,7 +52,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'package_file') self.package_file = attributes[:'package_file'] @@ -71,25 +69,24 @@ def initialize(attributes = {}) if attributes.has_key?(:'tags') self.tags = attributes[:'tags'] end - end # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properies with the reasons + # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new if @package_file.nil? - invalid_properties.push("invalid value for 'package_file', package_file cannot be nil.") + invalid_properties.push('invalid value for "package_file", package_file cannot be nil.') end - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? return false if @package_file.nil? - return true + true end # Checks equality by comparing each attribute. @@ -122,10 +119,10 @@ def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -207,7 +204,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -220,5 +217,4 @@ def _to_hash(value) end end - end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/packages_validateupload_p2.rb b/bindings/ruby/src/lib/cloudsmith-api/models/packages_validateupload_p2.rb index fe54ad48..f5943ca0 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/packages_validateupload_p2.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/packages_validateupload_p2.rb @@ -6,14 +6,13 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end require 'date' module CloudsmithApi - class PackagesValidateuploadP2 # The primary file for the package. attr_accessor :package_file @@ -24,7 +23,6 @@ class PackagesValidateuploadP2 # A comma-separated values list of tags to add to the package. attr_accessor :tags - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -49,7 +47,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'package_file') self.package_file = attributes[:'package_file'] @@ -62,25 +60,24 @@ def initialize(attributes = {}) if attributes.has_key?(:'tags') self.tags = attributes[:'tags'] end - end # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properies with the reasons + # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new if @package_file.nil? - invalid_properties.push("invalid value for 'package_file', package_file cannot be nil.") + invalid_properties.push('invalid value for "package_file", package_file cannot be nil.') end - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? return false if @package_file.nil? - return true + true end # Checks equality by comparing each attribute. @@ -112,10 +109,10 @@ def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -197,7 +194,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -210,5 +207,4 @@ def _to_hash(value) end end - end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/packages_validateupload_python.rb b/bindings/ruby/src/lib/cloudsmith-api/models/packages_validateupload_python.rb index 3a987bd0..441ca5f3 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/packages_validateupload_python.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/packages_validateupload_python.rb @@ -6,14 +6,13 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end require 'date' module CloudsmithApi - class PackagesValidateuploadPython # The primary file for the package. attr_accessor :package_file @@ -24,7 +23,6 @@ class PackagesValidateuploadPython # A comma-separated values list of tags to add to the package. attr_accessor :tags - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -49,7 +47,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'package_file') self.package_file = attributes[:'package_file'] @@ -62,25 +60,24 @@ def initialize(attributes = {}) if attributes.has_key?(:'tags') self.tags = attributes[:'tags'] end - end # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properies with the reasons + # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new if @package_file.nil? - invalid_properties.push("invalid value for 'package_file', package_file cannot be nil.") + invalid_properties.push('invalid value for "package_file", package_file cannot be nil.') end - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? return false if @package_file.nil? - return true + true end # Checks equality by comparing each attribute. @@ -112,10 +109,10 @@ def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -197,7 +194,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -210,5 +207,4 @@ def _to_hash(value) end end - end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/packages_validateupload_raw.rb b/bindings/ruby/src/lib/cloudsmith-api/models/packages_validateupload_raw.rb index f50aa131..b8bffdfe 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/packages_validateupload_raw.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/packages_validateupload_raw.rb @@ -6,14 +6,13 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end require 'date' module CloudsmithApi - class PackagesValidateuploadRaw # A custom content/media (also known as MIME) type to be sent when downloading this file. By default Cloudsmith will attempt to detect the type, but if you need to override it, you can specify it here. attr_accessor :content_type @@ -39,7 +38,6 @@ class PackagesValidateuploadRaw # The raw version for this package. attr_accessor :version - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -74,7 +72,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'content_type') self.content_type = attributes[:'content_type'] @@ -107,25 +105,24 @@ def initialize(attributes = {}) if attributes.has_key?(:'version') self.version = attributes[:'version'] end - end # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properies with the reasons + # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new if @package_file.nil? - invalid_properties.push("invalid value for 'package_file', package_file cannot be nil.") + invalid_properties.push('invalid value for "package_file", package_file cannot be nil.') end - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? return false if @package_file.nil? - return true + true end # Checks equality by comparing each attribute. @@ -162,10 +159,10 @@ def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -247,7 +244,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -260,5 +257,4 @@ def _to_hash(value) end end - end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/packages_validateupload_rpm.rb b/bindings/ruby/src/lib/cloudsmith-api/models/packages_validateupload_rpm.rb index 8cc55ae8..a44d30d7 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/packages_validateupload_rpm.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/packages_validateupload_rpm.rb @@ -6,14 +6,13 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end require 'date' module CloudsmithApi - class PackagesValidateuploadRpm # The distribution to store the package for. attr_accessor :distribution @@ -27,7 +26,6 @@ class PackagesValidateuploadRpm # A comma-separated values list of tags to add to the package. attr_accessor :tags - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -54,7 +52,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'distribution') self.distribution = attributes[:'distribution'] @@ -71,22 +69,21 @@ def initialize(attributes = {}) if attributes.has_key?(:'tags') self.tags = attributes[:'tags'] end - end # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properies with the reasons + # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new if @distribution.nil? - invalid_properties.push("invalid value for 'distribution', distribution cannot be nil.") + invalid_properties.push('invalid value for "distribution", distribution cannot be nil.') end if @package_file.nil? - invalid_properties.push("invalid value for 'package_file', package_file cannot be nil.") + invalid_properties.push('invalid value for "package_file", package_file cannot be nil.') end - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid @@ -94,7 +91,7 @@ def list_invalid_properties def valid? return false if @distribution.nil? return false if @package_file.nil? - return true + true end # Checks equality by comparing each attribute. @@ -127,10 +124,10 @@ def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -212,7 +209,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -225,5 +222,4 @@ def _to_hash(value) end end - end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/packages_validateupload_ruby.rb b/bindings/ruby/src/lib/cloudsmith-api/models/packages_validateupload_ruby.rb index 78f18a59..f3d9e921 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/packages_validateupload_ruby.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/packages_validateupload_ruby.rb @@ -6,14 +6,13 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end require 'date' module CloudsmithApi - class PackagesValidateuploadRuby # The primary file for the package. attr_accessor :package_file @@ -24,7 +23,6 @@ class PackagesValidateuploadRuby # A comma-separated values list of tags to add to the package. attr_accessor :tags - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -49,7 +47,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'package_file') self.package_file = attributes[:'package_file'] @@ -62,25 +60,24 @@ def initialize(attributes = {}) if attributes.has_key?(:'tags') self.tags = attributes[:'tags'] end - end # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properies with the reasons + # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new if @package_file.nil? - invalid_properties.push("invalid value for 'package_file', package_file cannot be nil.") + invalid_properties.push('invalid value for "package_file", package_file cannot be nil.') end - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? return false if @package_file.nil? - return true + true end # Checks equality by comparing each attribute. @@ -112,10 +109,10 @@ def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -197,7 +194,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -210,5 +207,4 @@ def _to_hash(value) end end - end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/packages_validateupload_terraform.rb b/bindings/ruby/src/lib/cloudsmith-api/models/packages_validateupload_terraform.rb index 7fb32332..134b98b3 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/packages_validateupload_terraform.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/packages_validateupload_terraform.rb @@ -6,14 +6,13 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end require 'date' module CloudsmithApi - class PackagesValidateuploadTerraform # The primary file for the package. attr_accessor :package_file @@ -24,7 +23,6 @@ class PackagesValidateuploadTerraform # A comma-separated values list of tags to add to the package. attr_accessor :tags - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -49,7 +47,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'package_file') self.package_file = attributes[:'package_file'] @@ -62,25 +60,24 @@ def initialize(attributes = {}) if attributes.has_key?(:'tags') self.tags = attributes[:'tags'] end - end # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properies with the reasons + # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new if @package_file.nil? - invalid_properties.push("invalid value for 'package_file', package_file cannot be nil.") + invalid_properties.push('invalid value for "package_file", package_file cannot be nil.') end - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? return false if @package_file.nil? - return true + true end # Checks equality by comparing each attribute. @@ -112,10 +109,10 @@ def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -197,7 +194,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -210,5 +207,4 @@ def _to_hash(value) end end - end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/packages_validateupload_vagrant.rb b/bindings/ruby/src/lib/cloudsmith-api/models/packages_validateupload_vagrant.rb index 932c8ced..e79ff191 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/packages_validateupload_vagrant.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/packages_validateupload_vagrant.rb @@ -6,14 +6,13 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end require 'date' module CloudsmithApi - class PackagesValidateuploadVagrant # The name of this package. attr_accessor :name @@ -33,7 +32,6 @@ class PackagesValidateuploadVagrant # The raw version for this package. attr_accessor :version - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -64,7 +62,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'name') self.name = attributes[:'name'] @@ -89,30 +87,29 @@ def initialize(attributes = {}) if attributes.has_key?(:'version') self.version = attributes[:'version'] end - end # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properies with the reasons + # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new if @name.nil? - invalid_properties.push("invalid value for 'name', name cannot be nil.") + invalid_properties.push('invalid value for "name", name cannot be nil.') end if @package_file.nil? - invalid_properties.push("invalid value for 'package_file', package_file cannot be nil.") + invalid_properties.push('invalid value for "package_file", package_file cannot be nil.') end if @provider.nil? - invalid_properties.push("invalid value for 'provider', provider cannot be nil.") + invalid_properties.push('invalid value for "provider", provider cannot be nil.') end if @version.nil? - invalid_properties.push("invalid value for 'version', version cannot be nil.") + invalid_properties.push('invalid value for "version", version cannot be nil.') end - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid @@ -122,7 +119,7 @@ def valid? return false if @package_file.nil? return false if @provider.nil? return false if @version.nil? - return true + true end # Checks equality by comparing each attribute. @@ -157,10 +154,10 @@ def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -242,7 +239,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -255,5 +252,4 @@ def _to_hash(value) end end - end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/packagesownerrepo_architectures.rb b/bindings/ruby/src/lib/cloudsmith-api/models/packagesownerrepo_architectures.rb index 481d370d..31711986 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/packagesownerrepo_architectures.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/packagesownerrepo_architectures.rb @@ -6,14 +6,13 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end require 'date' module CloudsmithApi - class PackagesownerrepoArchitectures # attr_accessor :description @@ -21,7 +20,6 @@ class PackagesownerrepoArchitectures # attr_accessor :name - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -44,7 +42,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'description') self.description = attributes[:'description'] @@ -53,20 +51,19 @@ def initialize(attributes = {}) if attributes.has_key?(:'name') self.name = attributes[:'name'] end - end # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properies with the reasons + # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -97,10 +94,10 @@ def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -182,7 +179,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -195,5 +192,4 @@ def _to_hash(value) end end - end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/packagesownerrepo_files.rb b/bindings/ruby/src/lib/cloudsmith-api/models/packagesownerrepo_files.rb index 81bffbbe..6babccfc 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/packagesownerrepo_files.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/packagesownerrepo_files.rb @@ -6,14 +6,13 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end require 'date' module CloudsmithApi - class PackagesownerrepoFiles # attr_accessor :cdn_url @@ -57,7 +56,6 @@ class PackagesownerrepoFiles # Freeform descriptor that describes what the file is. attr_accessor :tag - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -104,7 +102,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'cdn_url') self.cdn_url = attributes[:'cdn_url'] @@ -161,20 +159,19 @@ def initialize(attributes = {}) if attributes.has_key?(:'tag') self.tag = attributes[:'tag'] end - end # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properies with the reasons + # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -217,10 +214,10 @@ def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -302,7 +299,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -315,5 +312,4 @@ def _to_hash(value) end end - end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/quota.rb b/bindings/ruby/src/lib/cloudsmith-api/models/quota.rb index 045c0120..e90205d2 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/quota.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/quota.rb @@ -6,19 +6,17 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end require 'date' module CloudsmithApi - class Quota # attr_accessor :usage - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -39,30 +37,29 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'usage') self.usage = attributes[:'usage'] end - end # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properies with the reasons + # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new if @usage.nil? - invalid_properties.push("invalid value for 'usage', usage cannot be nil.") + invalid_properties.push('invalid value for "usage", usage cannot be nil.') end - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? return false if @usage.nil? - return true + true end # Checks equality by comparing each attribute. @@ -92,10 +89,10 @@ def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -177,7 +174,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -190,5 +187,4 @@ def _to_hash(value) end end - end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/quota_history.rb b/bindings/ruby/src/lib/cloudsmith-api/models/quota_history.rb index 010991b7..5b7af458 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/quota_history.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/quota_history.rb @@ -6,19 +6,17 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end require 'date' module CloudsmithApi - class QuotaHistory # attr_accessor :history - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -39,32 +37,31 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'history') if (value = attributes[:'history']).is_a?(Array) self.history = value end end - end # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properies with the reasons + # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new if @history.nil? - invalid_properties.push("invalid value for 'history', history cannot be nil.") + invalid_properties.push('invalid value for "history", history cannot be nil.') end - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? return false if @history.nil? - return true + true end # Checks equality by comparing each attribute. @@ -94,10 +91,10 @@ def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -179,7 +176,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -192,5 +189,4 @@ def _to_hash(value) end end - end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/quota_history_history.rb b/bindings/ruby/src/lib/cloudsmith-api/models/quota_history_history.rb index 32774bd1..7d96b54a 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/quota_history_history.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/quota_history_history.rb @@ -6,14 +6,13 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end require 'date' module CloudsmithApi - class QuotaHistoryHistory # attr_accessor :days @@ -33,7 +32,6 @@ class QuotaHistoryHistory # attr_accessor :start - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -64,7 +62,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'days') self.days = attributes[:'days'] @@ -89,20 +87,19 @@ def initialize(attributes = {}) if attributes.has_key?(:'start') self.start = attributes[:'start'] end - end # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properies with the reasons + # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -137,10 +134,10 @@ def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -222,7 +219,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -235,5 +232,4 @@ def _to_hash(value) end end - end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/raw_package_upload.rb b/bindings/ruby/src/lib/cloudsmith-api/models/raw_package_upload.rb index d6ee9370..9cd6a025 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/raw_package_upload.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/raw_package_upload.rb @@ -6,14 +6,13 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end require 'date' module CloudsmithApi - class RawPackageUpload # attr_accessor :architectures @@ -207,7 +206,6 @@ class RawPackageUpload # attr_accessor :vulnerability_scan_results_url - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -354,7 +352,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'architectures') if (value = attributes[:'architectures']).is_a?(Array) @@ -615,20 +613,19 @@ def initialize(attributes = {}) if attributes.has_key?(:'vulnerability_scan_results_url') self.vulnerability_scan_results_url = attributes[:'vulnerability_scan_results_url'] end - end # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properies with the reasons + # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -721,10 +718,10 @@ def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -806,7 +803,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -819,5 +816,4 @@ def _to_hash(value) end end - end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/repos_create.rb b/bindings/ruby/src/lib/cloudsmith-api/models/repos_create.rb index 9600ccd4..a9f347d7 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/repos_create.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/repos_create.rb @@ -6,14 +6,13 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end require 'date' module CloudsmithApi - class ReposCreate # A description of the repository's purpose/contents. attr_accessor :description @@ -33,7 +32,6 @@ class ReposCreate # The Cloudsmith region in which package files are stored. attr_accessor :storage_region - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -64,7 +62,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'description') self.description = attributes[:'description'] @@ -89,25 +87,24 @@ def initialize(attributes = {}) if attributes.has_key?(:'storage_region') self.storage_region = attributes[:'storage_region'] end - end # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properies with the reasons + # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new if @name.nil? - invalid_properties.push("invalid value for 'name', name cannot be nil.") + invalid_properties.push('invalid value for "name", name cannot be nil.') end - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? return false if @name.nil? - return true + true end # Checks equality by comparing each attribute. @@ -142,10 +139,10 @@ def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -227,7 +224,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -240,5 +237,4 @@ def _to_hash(value) end end - end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/repos_gpg_keys.rb b/bindings/ruby/src/lib/cloudsmith-api/models/repos_gpg_keys.rb index 22d8fccd..5d780a89 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/repos_gpg_keys.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/repos_gpg_keys.rb @@ -6,14 +6,13 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end require 'date' module CloudsmithApi - class ReposGpgKeys # If selected this is the active key for this repository. attr_accessor :active @@ -36,7 +35,6 @@ class ReposGpgKeys # The public key given to repository users. attr_accessor :public_key - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -69,7 +67,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'active') self.active = attributes[:'active'] @@ -98,20 +96,19 @@ def initialize(attributes = {}) if attributes.has_key?(:'public_key') self.public_key = attributes[:'public_key'] end - end # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properies with the reasons + # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -147,10 +144,10 @@ def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -232,7 +229,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -245,5 +242,4 @@ def _to_hash(value) end end - end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/repos_partial_update.rb b/bindings/ruby/src/lib/cloudsmith-api/models/repos_partial_update.rb index 3c99644a..53fff757 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/repos_partial_update.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/repos_partial_update.rb @@ -6,14 +6,13 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end require 'date' module CloudsmithApi - class ReposPartialUpdate # A description of the repository's purpose/contents. attr_accessor :description @@ -30,7 +29,6 @@ class ReposPartialUpdate # The slug identifies the repository in URIs. attr_accessor :slug - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -59,7 +57,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'description') self.description = attributes[:'description'] @@ -80,20 +78,19 @@ def initialize(attributes = {}) if attributes.has_key?(:'slug') self.slug = attributes[:'slug'] end - end # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properies with the reasons + # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -127,10 +124,10 @@ def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -212,7 +209,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -225,5 +222,4 @@ def _to_hash(value) end end - end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/repository.rb b/bindings/ruby/src/lib/cloudsmith-api/models/repository.rb index c35801e0..260d618a 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/repository.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/repository.rb @@ -6,14 +6,13 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end require 'date' module CloudsmithApi - class Repository # Base URL from which packages and other artifacts are downloaded. attr_accessor :cdn_url @@ -87,7 +86,6 @@ class Repository # The Cloudsmith region in which package files are stored. attr_accessor :storage_region - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -154,7 +152,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'cdn_url') self.cdn_url = attributes[:'cdn_url'] @@ -253,25 +251,24 @@ def initialize(attributes = {}) if attributes.has_key?(:'storage_region') self.storage_region = attributes[:'storage_region'] end - end # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properies with the reasons + # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new if @name.nil? - invalid_properties.push("invalid value for 'name', name cannot be nil.") + invalid_properties.push('invalid value for "name", name cannot be nil.') end - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? return false if @name.nil? - return true + true end # Checks equality by comparing each attribute. @@ -324,10 +321,10 @@ def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -409,7 +406,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -422,5 +419,4 @@ def _to_hash(value) end end - end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/repository_token.rb b/bindings/ruby/src/lib/cloudsmith-api/models/repository_token.rb index 9ddc9d22..9397daea 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/repository_token.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/repository_token.rb @@ -6,14 +6,13 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end require 'date' module CloudsmithApi - class RepositoryToken # attr_accessor :clients @@ -132,7 +131,6 @@ class RepositoryToken # attr_accessor :user_url - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -229,7 +227,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'clients') self.clients = attributes[:'clients'] @@ -386,25 +384,24 @@ def initialize(attributes = {}) if attributes.has_key?(:'user_url') self.user_url = attributes[:'user_url'] end - end # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properies with the reasons + # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new if @name.nil? - invalid_properties.push("invalid value for 'name', name cannot be nil.") + invalid_properties.push('invalid value for "name", name cannot be nil.') end - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? return false if @name.nil? - return true + true end # Checks equality by comparing each attribute. @@ -472,10 +469,10 @@ def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -557,7 +554,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -570,5 +567,4 @@ def _to_hash(value) end end - end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/repository_token_refresh.rb b/bindings/ruby/src/lib/cloudsmith-api/models/repository_token_refresh.rb index 5bb1226e..9cbe0f00 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/repository_token_refresh.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/repository_token_refresh.rb @@ -6,14 +6,13 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end require 'date' module CloudsmithApi - class RepositoryTokenRefresh # attr_accessor :clients @@ -132,7 +131,6 @@ class RepositoryTokenRefresh # attr_accessor :user_url - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -229,7 +227,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'clients') self.clients = attributes[:'clients'] @@ -386,20 +384,19 @@ def initialize(attributes = {}) if attributes.has_key?(:'user_url') self.user_url = attributes[:'user_url'] end - end # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properies with the reasons + # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -467,10 +464,10 @@ def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -552,7 +549,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -565,5 +562,4 @@ def _to_hash(value) end end - end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/repository_token_sync.rb b/bindings/ruby/src/lib/cloudsmith-api/models/repository_token_sync.rb index 5daed21b..833a1d5e 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/repository_token_sync.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/repository_token_sync.rb @@ -6,19 +6,17 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end require 'date' module CloudsmithApi - class RepositoryTokenSync # The entitlements that have been synchronised. attr_accessor :tokens - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -39,27 +37,26 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'tokens') if (value = attributes[:'tokens']).is_a?(Array) self.tokens = value end end - end # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properies with the reasons + # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -89,10 +86,10 @@ def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -174,7 +171,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -187,5 +184,4 @@ def _to_hash(value) end end - end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/repository_token_sync_tokens.rb b/bindings/ruby/src/lib/cloudsmith-api/models/repository_token_sync_tokens.rb index 734d26d6..097a984f 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/repository_token_sync_tokens.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/repository_token_sync_tokens.rb @@ -6,14 +6,13 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end require 'date' module CloudsmithApi - class RepositoryTokenSyncTokens # attr_accessor :clients @@ -132,7 +131,6 @@ class RepositoryTokenSyncTokens # attr_accessor :user_url - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -229,7 +227,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'clients') self.clients = attributes[:'clients'] @@ -386,20 +384,19 @@ def initialize(attributes = {}) if attributes.has_key?(:'user_url') self.user_url = attributes[:'user_url'] end - end # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properies with the reasons + # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -467,10 +464,10 @@ def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -552,7 +549,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -565,5 +562,4 @@ def _to_hash(value) end end - end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/repository_webhook.rb b/bindings/ruby/src/lib/cloudsmith-api/models/repository_webhook.rb index d229321c..2bf34bab 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/repository_webhook.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/repository_webhook.rb @@ -6,14 +6,13 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end require 'date' module CloudsmithApi - class RepositoryWebhook # attr_accessor :created_at @@ -96,7 +95,6 @@ class RepositoryWebhook # If enabled, SSL certificates is verified when webhooks are sent. It's recommended to leave this enabled as not verifying the integrity of SSL certificates leaves you susceptible to Man-in-the-Middle (MITM) attacks. attr_accessor :verify_ssl - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -169,7 +167,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'created_at') self.created_at = attributes[:'created_at'] @@ -282,26 +280,25 @@ def initialize(attributes = {}) if attributes.has_key?(:'verify_ssl') self.verify_ssl = attributes[:'verify_ssl'] end - end # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properies with the reasons + # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new if @events.nil? - invalid_properties.push("invalid value for 'events', events cannot be nil.") + invalid_properties.push('invalid value for "events", events cannot be nil.') end if @target_url.nil? - invalid_properties.push("invalid value for 'target_url', target_url cannot be nil.") + invalid_properties.push('invalid value for "target_url", target_url cannot be nil.') end if @templates.nil? - invalid_properties.push("invalid value for 'templates', templates cannot be nil.") + invalid_properties.push('invalid value for "templates", templates cannot be nil.') end - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid @@ -310,7 +307,7 @@ def valid? return false if @events.nil? return false if @target_url.nil? return false if @templates.nil? - return true + true end # Checks equality by comparing each attribute. @@ -366,10 +363,10 @@ def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -451,7 +448,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -464,5 +461,4 @@ def _to_hash(value) end end - end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/resources_rate_check.rb b/bindings/ruby/src/lib/cloudsmith-api/models/resources_rate_check.rb index 53a5d827..fc69ea3e 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/resources_rate_check.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/resources_rate_check.rb @@ -6,19 +6,17 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end require 'date' module CloudsmithApi - class ResourcesRateCheck # Rate limit values per resource attr_accessor :resources - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -39,25 +37,24 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'resources') self.resources = attributes[:'resources'] end - end # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properies with the reasons + # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -87,10 +84,10 @@ def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -172,7 +169,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -185,5 +182,4 @@ def _to_hash(value) end end - end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/status.rb b/bindings/ruby/src/lib/cloudsmith-api/models/status.rb index 96bd9c3b..b890e4be 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/status.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/status.rb @@ -6,19 +6,17 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end require 'date' module CloudsmithApi - class Status # An extended message for the response. attr_accessor :detail - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -39,30 +37,29 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'detail') self.detail = attributes[:'detail'] end - end # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properies with the reasons + # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new if @detail.nil? - invalid_properties.push("invalid value for 'detail', detail cannot be nil.") + invalid_properties.push('invalid value for "detail", detail cannot be nil.') end - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? return false if @detail.nil? - return true + true end # Checks equality by comparing each attribute. @@ -92,10 +89,10 @@ def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -177,7 +174,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -190,5 +187,4 @@ def _to_hash(value) end end - end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/status_basic.rb b/bindings/ruby/src/lib/cloudsmith-api/models/status_basic.rb index c105ce63..d9b2d614 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/status_basic.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/status_basic.rb @@ -6,14 +6,13 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end require 'date' module CloudsmithApi - class StatusBasic # The message describing the state of the API. attr_accessor :detail @@ -21,7 +20,6 @@ class StatusBasic # The current version for the Cloudsmith service. attr_accessor :version - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -44,7 +42,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'detail') self.detail = attributes[:'detail'] @@ -53,20 +51,19 @@ def initialize(attributes = {}) if attributes.has_key?(:'version') self.version = attributes[:'version'] end - end # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properies with the reasons + # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -97,10 +94,10 @@ def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -182,7 +179,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -195,5 +192,4 @@ def _to_hash(value) end end - end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/storage_region.rb b/bindings/ruby/src/lib/cloudsmith-api/models/storage_region.rb index 6bb27faf..06310d43 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/storage_region.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/storage_region.rb @@ -6,14 +6,13 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end require 'date' module CloudsmithApi - class StorageRegion # Name of the storage region attr_accessor :label @@ -21,7 +20,6 @@ class StorageRegion # Slug for the storage region attr_accessor :slug - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -44,7 +42,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'label') self.label = attributes[:'label'] @@ -53,22 +51,21 @@ def initialize(attributes = {}) if attributes.has_key?(:'slug') self.slug = attributes[:'slug'] end - end # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properies with the reasons + # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new if @label.nil? - invalid_properties.push("invalid value for 'label', label cannot be nil.") + invalid_properties.push('invalid value for "label", label cannot be nil.') end if @slug.nil? - invalid_properties.push("invalid value for 'slug', slug cannot be nil.") + invalid_properties.push('invalid value for "slug", slug cannot be nil.') end - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid @@ -76,7 +73,7 @@ def list_invalid_properties def valid? return false if @label.nil? return false if @slug.nil? - return true + true end # Checks equality by comparing each attribute. @@ -107,10 +104,10 @@ def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -192,7 +189,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -205,5 +202,4 @@ def _to_hash(value) end end - end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/user_auth_token.rb b/bindings/ruby/src/lib/cloudsmith-api/models/user_auth_token.rb index 7dd1962b..4cfa1fe4 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/user_auth_token.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/user_auth_token.rb @@ -6,19 +6,17 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end require 'date' module CloudsmithApi - class UserAuthToken # API token for the authenticated user attr_accessor :token - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -39,25 +37,24 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'token') self.token = attributes[:'token'] end - end # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properies with the reasons + # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -87,10 +84,10 @@ def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -172,7 +169,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -185,5 +182,4 @@ def _to_hash(value) end end - end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/user_brief.rb b/bindings/ruby/src/lib/cloudsmith-api/models/user_brief.rb index c4a71ca3..b73535b5 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/user_brief.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/user_brief.rb @@ -6,14 +6,13 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end require 'date' module CloudsmithApi - class UserBrief # If true then you're logged in as a user. attr_accessor :authenticated @@ -36,7 +35,6 @@ class UserBrief # attr_accessor :slug_perm - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -69,7 +67,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'authenticated') self.authenticated = attributes[:'authenticated'] @@ -98,20 +96,19 @@ def initialize(attributes = {}) if attributes.has_key?(:'slug_perm') self.slug_perm = attributes[:'slug_perm'] end - end # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properies with the reasons + # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -147,10 +144,10 @@ def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -232,7 +229,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -245,5 +242,4 @@ def _to_hash(value) end end - end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/user_profile.rb b/bindings/ruby/src/lib/cloudsmith-api/models/user_profile.rb index d271c23d..4a490bc0 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/user_profile.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/user_profile.rb @@ -6,14 +6,13 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end require 'date' module CloudsmithApi - class UserProfile # attr_accessor :company @@ -45,7 +44,6 @@ class UserProfile # attr_accessor :url - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -84,7 +82,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'company') self.company = attributes[:'company'] @@ -125,22 +123,21 @@ def initialize(attributes = {}) if attributes.has_key?(:'url') self.url = attributes[:'url'] end - end # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properies with the reasons + # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new if @first_name.nil? - invalid_properties.push("invalid value for 'first_name', first_name cannot be nil.") + invalid_properties.push('invalid value for "first_name", first_name cannot be nil.') end if @last_name.nil? - invalid_properties.push("invalid value for 'last_name', last_name cannot be nil.") + invalid_properties.push('invalid value for "last_name", last_name cannot be nil.') end - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid @@ -148,7 +145,7 @@ def list_invalid_properties def valid? return false if @first_name.nil? return false if @last_name.nil? - return true + true end # Checks equality by comparing each attribute. @@ -187,10 +184,10 @@ def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -272,7 +269,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -285,5 +282,4 @@ def _to_hash(value) end end - end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/user_token_create.rb b/bindings/ruby/src/lib/cloudsmith-api/models/user_token_create.rb index 4a696706..7d2deaf6 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/user_token_create.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/user_token_create.rb @@ -6,14 +6,13 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end require 'date' module CloudsmithApi - class UserTokenCreate # Email address to authenticate with attr_accessor :email @@ -21,7 +20,6 @@ class UserTokenCreate # Password to authenticate with attr_accessor :password - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -44,7 +42,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'email') self.email = attributes[:'email'] @@ -53,20 +51,19 @@ def initialize(attributes = {}) if attributes.has_key?(:'password') self.password = attributes[:'password'] end - end # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properies with the reasons + # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -97,10 +94,10 @@ def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -182,7 +179,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -195,5 +192,4 @@ def _to_hash(value) end end - end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/vagrant_package_upload.rb b/bindings/ruby/src/lib/cloudsmith-api/models/vagrant_package_upload.rb index 91cd94b9..d51c9dbd 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/vagrant_package_upload.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/vagrant_package_upload.rb @@ -6,14 +6,13 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end require 'date' module CloudsmithApi - class VagrantPackageUpload # attr_accessor :architectures @@ -210,7 +209,6 @@ class VagrantPackageUpload # attr_accessor :vulnerability_scan_results_url - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -359,7 +357,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'architectures') if (value = attributes[:'architectures']).is_a?(Array) @@ -624,26 +622,25 @@ def initialize(attributes = {}) if attributes.has_key?(:'vulnerability_scan_results_url') self.vulnerability_scan_results_url = attributes[:'vulnerability_scan_results_url'] end - end # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properies with the reasons + # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new if @name.nil? - invalid_properties.push("invalid value for 'name', name cannot be nil.") + invalid_properties.push('invalid value for "name", name cannot be nil.') end if @provider.nil? - invalid_properties.push("invalid value for 'provider', provider cannot be nil.") + invalid_properties.push('invalid value for "provider", provider cannot be nil.') end if @version.nil? - invalid_properties.push("invalid value for 'version', version cannot be nil.") + invalid_properties.push('invalid value for "version", version cannot be nil.') end - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid @@ -652,7 +649,7 @@ def valid? return false if @name.nil? return false if @provider.nil? return false if @version.nil? - return true + true end # Checks equality by comparing each attribute. @@ -746,10 +743,10 @@ def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -831,7 +828,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -844,5 +841,4 @@ def _to_hash(value) end end - end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/vulnerability_scan_results.rb b/bindings/ruby/src/lib/cloudsmith-api/models/vulnerability_scan_results.rb index badbf1f5..1b511731 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/vulnerability_scan_results.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/vulnerability_scan_results.rb @@ -6,14 +6,13 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end require 'date' module CloudsmithApi - class VulnerabilityScanResults # The time this scan result was stored. attr_accessor :created_at @@ -39,7 +38,6 @@ class VulnerabilityScanResults # attr_accessor :scan_id - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -74,7 +72,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'created_at') self.created_at = attributes[:'created_at'] @@ -107,30 +105,29 @@ def initialize(attributes = {}) if attributes.has_key?(:'scan_id') self.scan_id = attributes[:'scan_id'] end - end # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properies with the reasons + # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new if @identifier.nil? - invalid_properties.push("invalid value for 'identifier', identifier cannot be nil.") + invalid_properties.push('invalid value for "identifier", identifier cannot be nil.') end if @package.nil? - invalid_properties.push("invalid value for 'package', package cannot be nil.") + invalid_properties.push('invalid value for "package", package cannot be nil.') end if @scan.nil? - invalid_properties.push("invalid value for 'scan', scan cannot be nil.") + invalid_properties.push('invalid value for "scan", scan cannot be nil.') end if @scan_id.nil? - invalid_properties.push("invalid value for 'scan_id', scan_id cannot be nil.") + invalid_properties.push('invalid value for "scan_id", scan_id cannot be nil.') end - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid @@ -140,7 +137,7 @@ def valid? return false if @package.nil? return false if @scan.nil? return false if @scan_id.nil? - return true + true end # Checks equality by comparing each attribute. @@ -177,10 +174,10 @@ def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -262,7 +259,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -275,5 +272,4 @@ def _to_hash(value) end end - end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/vulnerability_scan_results_list.rb b/bindings/ruby/src/lib/cloudsmith-api/models/vulnerability_scan_results_list.rb index a1088ac4..f2448369 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/vulnerability_scan_results_list.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/vulnerability_scan_results_list.rb @@ -6,14 +6,13 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end require 'date' module CloudsmithApi - class VulnerabilityScanResultsList # The time this scan result was stored. attr_accessor :created_at @@ -36,7 +35,6 @@ class VulnerabilityScanResultsList # attr_accessor :scan_id - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -69,7 +67,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'created_at') self.created_at = attributes[:'created_at'] @@ -98,26 +96,25 @@ def initialize(attributes = {}) if attributes.has_key?(:'scan_id') self.scan_id = attributes[:'scan_id'] end - end # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properies with the reasons + # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new if @identifier.nil? - invalid_properties.push("invalid value for 'identifier', identifier cannot be nil.") + invalid_properties.push('invalid value for "identifier", identifier cannot be nil.') end if @package.nil? - invalid_properties.push("invalid value for 'package', package cannot be nil.") + invalid_properties.push('invalid value for "package", package cannot be nil.') end if @scan_id.nil? - invalid_properties.push("invalid value for 'scan_id', scan_id cannot be nil.") + invalid_properties.push('invalid value for "scan_id", scan_id cannot be nil.') end - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid @@ -126,7 +123,7 @@ def valid? return false if @identifier.nil? return false if @package.nil? return false if @scan_id.nil? - return true + true end # Checks equality by comparing each attribute. @@ -162,10 +159,10 @@ def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -247,7 +244,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -260,5 +257,4 @@ def _to_hash(value) end end - end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/webhooks_create.rb b/bindings/ruby/src/lib/cloudsmith-api/models/webhooks_create.rb index 6b96e39c..346653fa 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/webhooks_create.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/webhooks_create.rb @@ -6,14 +6,13 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end require 'date' module CloudsmithApi - class WebhooksCreate # None attr_accessor :events @@ -51,7 +50,6 @@ class WebhooksCreate # If enabled, SSL certificates is verified when webhooks are sent. It's recommended to leave this enabled as not verifying the integrity of SSL certificates leaves you susceptible to Man-in-the-Middle (MITM) attacks. attr_accessor :verify_ssl - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -94,7 +92,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'events') if (value = attributes[:'events']).is_a?(Array) @@ -147,26 +145,25 @@ def initialize(attributes = {}) if attributes.has_key?(:'verify_ssl') self.verify_ssl = attributes[:'verify_ssl'] end - end # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properies with the reasons + # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new if @events.nil? - invalid_properties.push("invalid value for 'events', events cannot be nil.") + invalid_properties.push('invalid value for "events", events cannot be nil.') end if @target_url.nil? - invalid_properties.push("invalid value for 'target_url', target_url cannot be nil.") + invalid_properties.push('invalid value for "target_url", target_url cannot be nil.') end if @templates.nil? - invalid_properties.push("invalid value for 'templates', templates cannot be nil.") + invalid_properties.push('invalid value for "templates", templates cannot be nil.') end - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid @@ -175,7 +172,7 @@ def valid? return false if @events.nil? return false if @target_url.nil? return false if @templates.nil? - return true + true end # Checks equality by comparing each attribute. @@ -216,10 +213,10 @@ def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -301,7 +298,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -314,5 +311,4 @@ def _to_hash(value) end end - end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/webhooks_partial_update.rb b/bindings/ruby/src/lib/cloudsmith-api/models/webhooks_partial_update.rb index 502b24bc..c9ea4970 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/webhooks_partial_update.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/webhooks_partial_update.rb @@ -6,14 +6,13 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end require 'date' module CloudsmithApi - class WebhooksPartialUpdate # None attr_accessor :events @@ -51,7 +50,6 @@ class WebhooksPartialUpdate # If enabled, SSL certificates is verified when webhooks are sent. It's recommended to leave this enabled as not verifying the integrity of SSL certificates leaves you susceptible to Man-in-the-Middle (MITM) attacks. attr_accessor :verify_ssl - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -94,7 +92,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'events') if (value = attributes[:'events']).is_a?(Array) @@ -147,20 +145,19 @@ def initialize(attributes = {}) if attributes.has_key?(:'verify_ssl') self.verify_ssl = attributes[:'verify_ssl'] end - end # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properies with the reasons + # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -201,10 +198,10 @@ def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -286,7 +283,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -299,5 +296,4 @@ def _to_hash(value) end end - end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/webhooksownerrepo_templates.rb b/bindings/ruby/src/lib/cloudsmith-api/models/webhooksownerrepo_templates.rb index 5ade4b6d..2c68139f 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/webhooksownerrepo_templates.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/webhooksownerrepo_templates.rb @@ -6,14 +6,13 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end require 'date' module CloudsmithApi - class WebhooksownerrepoTemplates # attr_accessor :event @@ -21,7 +20,6 @@ class WebhooksownerrepoTemplates # attr_accessor :template - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -44,7 +42,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'event') self.event = attributes[:'event'] @@ -53,20 +51,19 @@ def initialize(attributes = {}) if attributes.has_key?(:'template') self.template = attributes[:'template'] end - end # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properies with the reasons + # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -97,10 +94,10 @@ def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute + # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -182,7 +179,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -195,5 +192,4 @@ def _to_hash(value) end end - end diff --git a/bindings/ruby/src/lib/cloudsmith-api/version.rb b/bindings/ruby/src/lib/cloudsmith-api/version.rb index 39ee8c4e..66a5ce61 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/version.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/version.rb @@ -6,10 +6,10 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end module CloudsmithApi - VERSION = "1.30.0" + VERSION = '1.33.7' end diff --git a/bindings/ruby/src/spec/api/badges_api_spec.rb b/bindings/ruby/src/spec/api/badges_api_spec.rb index fce75d29..363b86a4 100644 --- a/bindings/ruby/src/spec/api/badges_api_spec.rb +++ b/bindings/ruby/src/spec/api/badges_api_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -53,9 +53,9 @@ # @option opts [BOOLEAN] :shields If true, a shields response will be generated # @option opts [BOOLEAN] :show_latest If true, for latest version badges a '(latest)' suffix is added # @option opts [String] :style Override the shields.io badge style value. - # @return [nil] + # @return [Object] describe 'badges_version_list test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end diff --git a/bindings/ruby/src/spec/api/distros_api_spec.rb b/bindings/ruby/src/spec/api/distros_api_spec.rb index 72205a1c..1792658f 100644 --- a/bindings/ruby/src/spec/api/distros_api_spec.rb +++ b/bindings/ruby/src/spec/api/distros_api_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -38,7 +38,7 @@ # @param [Hash] opts the optional parameters # @return [Array] describe 'distros_list test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -50,7 +50,7 @@ # @param [Hash] opts the optional parameters # @return [Distribution] describe 'distros_read test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end diff --git a/bindings/ruby/src/spec/api/entitlements_api_spec.rb b/bindings/ruby/src/spec/api/entitlements_api_spec.rb index da17d142..92a480e2 100644 --- a/bindings/ruby/src/spec/api/entitlements_api_spec.rb +++ b/bindings/ruby/src/spec/api/entitlements_api_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -42,7 +42,7 @@ # @option opts [EntitlementsCreate] :data # @return [RepositoryToken] describe 'entitlements_create test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -56,7 +56,7 @@ # @param [Hash] opts the optional parameters # @return [nil] describe 'entitlements_delete test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -70,7 +70,7 @@ # @param [Hash] opts the optional parameters # @return [nil] describe 'entitlements_disable test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -84,7 +84,7 @@ # @param [Hash] opts the optional parameters # @return [nil] describe 'entitlements_enable test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -100,7 +100,7 @@ # @option opts [BOOLEAN] :show_tokens Show entitlement token strings in results # @return [Array] describe 'entitlements_list test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -116,7 +116,7 @@ # @option opts [EntitlementsPartialUpdate] :data # @return [RepositoryToken] describe 'entitlements_partial_update test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -131,7 +131,7 @@ # @option opts [BOOLEAN] :show_tokens Show entitlement token strings in results # @return [RepositoryToken] describe 'entitlements_read test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -147,7 +147,7 @@ # @option opts [EntitlementsRefresh] :data # @return [RepositoryTokenRefresh] describe 'entitlements_refresh test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -162,7 +162,7 @@ # @option opts [BOOLEAN] :show_tokens Show entitlement token strings in results # @return [nil] describe 'entitlements_reset test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -177,7 +177,7 @@ # @option opts [EntitlementsSync] :data # @return [RepositoryTokenSync] describe 'entitlements_sync test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end diff --git a/bindings/ruby/src/spec/api/files_api_spec.rb b/bindings/ruby/src/spec/api/files_api_spec.rb index e6f7816d..2b21a521 100644 --- a/bindings/ruby/src/spec/api/files_api_spec.rb +++ b/bindings/ruby/src/spec/api/files_api_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -42,7 +42,7 @@ # @option opts [FilesAbort] :data # @return [nil] describe 'files_abort test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -57,7 +57,7 @@ # @option opts [FilesComplete] :data # @return [PackageFileUpload] describe 'files_complete test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -71,7 +71,7 @@ # @option opts [FilesCreate] :data # @return [PackageFileUpload] describe 'files_create test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -85,7 +85,7 @@ # @param [Hash] opts the optional parameters # @return [PackageFilePartsUpload] describe 'files_info test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -99,7 +99,7 @@ # @option opts [FilesValidate] :data # @return [nil] describe 'files_validate test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end diff --git a/bindings/ruby/src/spec/api/formats_api_spec.rb b/bindings/ruby/src/spec/api/formats_api_spec.rb index c5d16dad..926be3fb 100644 --- a/bindings/ruby/src/spec/api/formats_api_spec.rb +++ b/bindings/ruby/src/spec/api/formats_api_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -38,7 +38,7 @@ # @param [Hash] opts the optional parameters # @return [Array] describe 'formats_list test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -50,7 +50,7 @@ # @param [Hash] opts the optional parameters # @return [Format] describe 'formats_read test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end diff --git a/bindings/ruby/src/spec/api/metrics_api_spec.rb b/bindings/ruby/src/spec/api/metrics_api_spec.rb index 1ab07e18..8e6c93a4 100644 --- a/bindings/ruby/src/spec/api/metrics_api_spec.rb +++ b/bindings/ruby/src/spec/api/metrics_api_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -44,7 +44,7 @@ # @option opts [String] :tokens A comma seperated list of tokens (slug perm) to include in the results. # @return [EntitlementUsageMetrics] describe 'metrics_entitlements_list test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -62,7 +62,7 @@ # @option opts [String] :tokens A comma seperated list of tokens (slug perm) to include in the results. # @return [EntitlementUsageMetrics] describe 'metrics_entitlements_list0 test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -80,7 +80,7 @@ # @option opts [String] :start Include metrics from and including this UTC date or UTC datetime. For example '2020-12-31' or '2021-12-13T00:00:00Z'. # @return [PackageUsageMetrics] describe 'metrics_packages_list test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end diff --git a/bindings/ruby/src/spec/api/namespaces_api_spec.rb b/bindings/ruby/src/spec/api/namespaces_api_spec.rb index e401996a..4bdadb86 100644 --- a/bindings/ruby/src/spec/api/namespaces_api_spec.rb +++ b/bindings/ruby/src/spec/api/namespaces_api_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -40,7 +40,7 @@ # @option opts [Integer] :page_size Number of results to return per page. # @return [Array] describe 'namespaces_list test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -52,7 +52,7 @@ # @param [Hash] opts the optional parameters # @return [Namespace] describe 'namespaces_read test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end diff --git a/bindings/ruby/src/spec/api/orgs_api_spec.rb b/bindings/ruby/src/spec/api/orgs_api_spec.rb index e841ddf3..99fc3c70 100644 --- a/bindings/ruby/src/spec/api/orgs_api_spec.rb +++ b/bindings/ruby/src/spec/api/orgs_api_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -40,7 +40,7 @@ # @option opts [Integer] :page_size Number of results to return per page. # @return [Array] describe 'orgs_list test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -54,7 +54,7 @@ # @option opts [Integer] :page_size Number of results to return per page. # @return [Array] describe 'orgs_members_list test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -67,7 +67,7 @@ # @param [Hash] opts the optional parameters # @return [OrganizationMembership] describe 'orgs_members_read test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -80,7 +80,7 @@ # @param [Hash] opts the optional parameters # @return [OrganizationMembership] describe 'orgs_members_remove test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -92,7 +92,7 @@ # @param [Hash] opts the optional parameters # @return [Organization] describe 'orgs_read test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end diff --git a/bindings/ruby/src/spec/api/packages_api_spec.rb b/bindings/ruby/src/spec/api/packages_api_spec.rb index 22378dc0..5040307e 100644 --- a/bindings/ruby/src/spec/api/packages_api_spec.rb +++ b/bindings/ruby/src/spec/api/packages_api_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -42,7 +42,7 @@ # @option opts [PackagesCopy] :data # @return [PackageCopy] describe 'packages_copy test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -56,7 +56,7 @@ # @param [Hash] opts the optional parameters # @return [nil] describe 'packages_delete test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -70,7 +70,7 @@ # @param [Hash] opts the optional parameters # @return [PackageDependencies] describe 'packages_dependencies test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -87,7 +87,7 @@ # @option opts [String] :sort A field for sorting objects in ascending or descending order. # @return [Array] describe 'packages_list test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -102,7 +102,7 @@ # @option opts [PackagesMove] :data # @return [PackageMove] describe 'packages_move test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -116,7 +116,7 @@ # @param [Hash] opts the optional parameters # @return [Package] describe 'packages_read test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -130,7 +130,7 @@ # @param [Hash] opts the optional parameters # @return [Package] describe 'packages_resync test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -144,7 +144,7 @@ # @param [Hash] opts the optional parameters # @return [Package] describe 'packages_scan test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -158,7 +158,7 @@ # @param [Hash] opts the optional parameters # @return [PackageStatus] describe 'packages_status test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -173,7 +173,7 @@ # @option opts [PackagesTag] :data # @return [Package] describe 'packages_tag test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -187,7 +187,7 @@ # @option opts [PackagesUploadAlpine] :data # @return [AlpinePackageUpload] describe 'packages_upload_alpine test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -201,7 +201,7 @@ # @option opts [PackagesUploadCargo] :data # @return [AlpinePackageUpload] describe 'packages_upload_cargo test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -215,7 +215,7 @@ # @option opts [PackagesUploadCocoapods] :data # @return [AlpinePackageUpload] describe 'packages_upload_cocoapods test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -229,7 +229,7 @@ # @option opts [PackagesUploadComposer] :data # @return [AlpinePackageUpload] describe 'packages_upload_composer test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -243,7 +243,7 @@ # @option opts [PackagesUploadConan] :data # @return [ConanPackageUpload] describe 'packages_upload_conan test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -257,7 +257,7 @@ # @option opts [PackagesUploadConda] :data # @return [AlpinePackageUpload] describe 'packages_upload_conda test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -271,7 +271,7 @@ # @option opts [PackagesUploadCran] :data # @return [AlpinePackageUpload] describe 'packages_upload_cran test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -285,7 +285,7 @@ # @option opts [PackagesUploadDart] :data # @return [AlpinePackageUpload] describe 'packages_upload_dart test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -299,7 +299,7 @@ # @option opts [PackagesUploadDeb] :data # @return [AlpinePackageUpload] describe 'packages_upload_deb test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -313,7 +313,7 @@ # @option opts [PackagesUploadDocker] :data # @return [AlpinePackageUpload] describe 'packages_upload_docker test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -327,7 +327,7 @@ # @option opts [PackagesUploadGo] :data # @return [AlpinePackageUpload] describe 'packages_upload_go test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -341,7 +341,7 @@ # @option opts [PackagesUploadHelm] :data # @return [AlpinePackageUpload] describe 'packages_upload_helm test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -355,7 +355,7 @@ # @option opts [PackagesUploadLuarocks] :data # @return [AlpinePackageUpload] describe 'packages_upload_luarocks test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -369,7 +369,7 @@ # @option opts [PackagesUploadMaven] :data # @return [MavenPackageUpload] describe 'packages_upload_maven test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -383,7 +383,7 @@ # @option opts [PackagesUploadNpm] :data # @return [AlpinePackageUpload] describe 'packages_upload_npm test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -397,7 +397,7 @@ # @option opts [PackagesUploadNuget] :data # @return [AlpinePackageUpload] describe 'packages_upload_nuget test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -411,7 +411,7 @@ # @option opts [PackagesUploadP2] :data # @return [AlpinePackageUpload] describe 'packages_upload_p2 test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -425,7 +425,7 @@ # @option opts [PackagesUploadPython] :data # @return [AlpinePackageUpload] describe 'packages_upload_python test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -439,7 +439,7 @@ # @option opts [PackagesUploadRaw] :data # @return [RawPackageUpload] describe 'packages_upload_raw test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -453,7 +453,7 @@ # @option opts [PackagesUploadRpm] :data # @return [AlpinePackageUpload] describe 'packages_upload_rpm test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -467,7 +467,7 @@ # @option opts [PackagesUploadRuby] :data # @return [AlpinePackageUpload] describe 'packages_upload_ruby test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -481,7 +481,7 @@ # @option opts [PackagesUploadTerraform] :data # @return [AlpinePackageUpload] describe 'packages_upload_terraform test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -495,7 +495,7 @@ # @option opts [PackagesUploadVagrant] :data # @return [VagrantPackageUpload] describe 'packages_upload_vagrant test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -509,7 +509,7 @@ # @option opts [PackagesValidateuploadAlpine] :data # @return [nil] describe 'packages_validate_upload_alpine test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -523,7 +523,7 @@ # @option opts [PackagesValidateuploadCargo] :data # @return [nil] describe 'packages_validate_upload_cargo test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -537,7 +537,7 @@ # @option opts [PackagesValidateuploadCocoapods] :data # @return [nil] describe 'packages_validate_upload_cocoapods test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -551,7 +551,7 @@ # @option opts [PackagesValidateuploadComposer] :data # @return [nil] describe 'packages_validate_upload_composer test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -565,7 +565,7 @@ # @option opts [PackagesValidateuploadConan] :data # @return [nil] describe 'packages_validate_upload_conan test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -579,7 +579,7 @@ # @option opts [PackagesValidateuploadConda] :data # @return [nil] describe 'packages_validate_upload_conda test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -593,7 +593,7 @@ # @option opts [PackagesValidateuploadCran] :data # @return [nil] describe 'packages_validate_upload_cran test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -607,7 +607,7 @@ # @option opts [PackagesValidateuploadDart] :data # @return [nil] describe 'packages_validate_upload_dart test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -621,7 +621,7 @@ # @option opts [PackagesValidateuploadDeb] :data # @return [nil] describe 'packages_validate_upload_deb test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -635,7 +635,7 @@ # @option opts [PackagesValidateuploadDocker] :data # @return [nil] describe 'packages_validate_upload_docker test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -649,7 +649,7 @@ # @option opts [PackagesValidateuploadGo] :data # @return [nil] describe 'packages_validate_upload_go test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -663,7 +663,7 @@ # @option opts [PackagesValidateuploadHelm] :data # @return [nil] describe 'packages_validate_upload_helm test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -677,7 +677,7 @@ # @option opts [PackagesValidateuploadLuarocks] :data # @return [nil] describe 'packages_validate_upload_luarocks test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -691,7 +691,7 @@ # @option opts [PackagesValidateuploadMaven] :data # @return [nil] describe 'packages_validate_upload_maven test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -705,7 +705,7 @@ # @option opts [PackagesValidateuploadNpm] :data # @return [nil] describe 'packages_validate_upload_npm test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -719,7 +719,7 @@ # @option opts [PackagesValidateuploadNuget] :data # @return [nil] describe 'packages_validate_upload_nuget test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -733,7 +733,7 @@ # @option opts [PackagesValidateuploadP2] :data # @return [nil] describe 'packages_validate_upload_p2 test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -747,7 +747,7 @@ # @option opts [PackagesValidateuploadPython] :data # @return [nil] describe 'packages_validate_upload_python test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -761,7 +761,7 @@ # @option opts [PackagesValidateuploadRaw] :data # @return [nil] describe 'packages_validate_upload_raw test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -775,7 +775,7 @@ # @option opts [PackagesValidateuploadRpm] :data # @return [nil] describe 'packages_validate_upload_rpm test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -789,7 +789,7 @@ # @option opts [PackagesValidateuploadRuby] :data # @return [nil] describe 'packages_validate_upload_ruby test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -803,7 +803,7 @@ # @option opts [PackagesValidateuploadTerraform] :data # @return [nil] describe 'packages_validate_upload_terraform test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -817,7 +817,7 @@ # @option opts [PackagesValidateuploadVagrant] :data # @return [nil] describe 'packages_validate_upload_vagrant test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end diff --git a/bindings/ruby/src/spec/api/quota_api_spec.rb b/bindings/ruby/src/spec/api/quota_api_spec.rb index 0e878210..c5238bcf 100644 --- a/bindings/ruby/src/spec/api/quota_api_spec.rb +++ b/bindings/ruby/src/spec/api/quota_api_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -39,7 +39,7 @@ # @param [Hash] opts the optional parameters # @return [QuotaHistory] describe 'quota_history_read test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -51,7 +51,7 @@ # @param [Hash] opts the optional parameters # @return [QuotaHistory] describe 'quota_oss_history_read test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -63,7 +63,7 @@ # @param [Hash] opts the optional parameters # @return [Quota] describe 'quota_oss_read test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -75,7 +75,7 @@ # @param [Hash] opts the optional parameters # @return [Quota] describe 'quota_read test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end diff --git a/bindings/ruby/src/spec/api/rates_api_spec.rb b/bindings/ruby/src/spec/api/rates_api_spec.rb index 268a3358..6064f8e9 100644 --- a/bindings/ruby/src/spec/api/rates_api_spec.rb +++ b/bindings/ruby/src/spec/api/rates_api_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -38,7 +38,7 @@ # @param [Hash] opts the optional parameters # @return [ResourcesRateCheck] describe 'rates_limits_list test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end diff --git a/bindings/ruby/src/spec/api/repos_api_spec.rb b/bindings/ruby/src/spec/api/repos_api_spec.rb index d51c604b..aaa86c9d 100644 --- a/bindings/ruby/src/spec/api/repos_api_spec.rb +++ b/bindings/ruby/src/spec/api/repos_api_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -40,7 +40,7 @@ # @option opts [Integer] :page_size Number of results to return per page. # @return [Array] describe 'repos_all_list test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -53,7 +53,7 @@ # @option opts [ReposCreate] :data # @return [Repository] describe 'repos_create test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -66,7 +66,7 @@ # @param [Hash] opts the optional parameters # @return [nil] describe 'repos_delete test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -80,7 +80,7 @@ # @option opts [Integer] :page_size Number of results to return per page. # @return [Array] describe 'repos_list test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -94,7 +94,7 @@ # @option opts [ReposPartialUpdate] :data # @return [Repository] describe 'repos_partial_update test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -107,7 +107,7 @@ # @param [Hash] opts the optional parameters # @return [Repository] describe 'repos_read test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end diff --git a/bindings/ruby/src/spec/api/status_api_spec.rb b/bindings/ruby/src/spec/api/status_api_spec.rb index 60771195..4ee416f2 100644 --- a/bindings/ruby/src/spec/api/status_api_spec.rb +++ b/bindings/ruby/src/spec/api/status_api_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -38,7 +38,7 @@ # @param [Hash] opts the optional parameters # @return [StatusBasic] describe 'status_check_basic test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end diff --git a/bindings/ruby/src/spec/api/storageregions_api_spec.rb b/bindings/ruby/src/spec/api/storage_regions_api_spec.rb similarity index 78% rename from bindings/ruby/src/spec/api/storageregions_api_spec.rb rename to bindings/ruby/src/spec/api/storage_regions_api_spec.rb index 0f72ea1c..27fb0504 100644 --- a/bindings/ruby/src/spec/api/storageregions_api_spec.rb +++ b/bindings/ruby/src/spec/api/storage_regions_api_spec.rb @@ -6,29 +6,29 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end require 'spec_helper' require 'json' -# Unit tests for CloudsmithApi::StorageregionsApi +# Unit tests for CloudsmithApi::StorageRegionsApi # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) # Please update as you see appropriate -describe 'StorageregionsApi' do +describe 'StorageRegionsApi' do before do # run before each test - @instance = CloudsmithApi::StorageregionsApi.new + @instance = CloudsmithApi::StorageRegionsApi.new end after do # run after each test end - describe 'test an instance of StorageregionsApi' do - it 'should create an instance of StorageregionsApi' do - expect(@instance).to be_instance_of(CloudsmithApi::StorageregionsApi) + describe 'test an instance of StorageRegionsApi' do + it 'should create an instance of StorageRegionsApi' do + expect(@instance).to be_instance_of(CloudsmithApi::StorageRegionsApi) end end @@ -38,7 +38,7 @@ # @param [Hash] opts the optional parameters # @return [Array] describe 'storage_regions_list test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -50,7 +50,7 @@ # @param [Hash] opts the optional parameters # @return [StorageRegion] describe 'storage_regions_read test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end diff --git a/bindings/ruby/src/spec/api/user_api_spec.rb b/bindings/ruby/src/spec/api/user_api_spec.rb index fbeaf6cd..fe2bb6f4 100644 --- a/bindings/ruby/src/spec/api/user_api_spec.rb +++ b/bindings/ruby/src/spec/api/user_api_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -38,7 +38,7 @@ # @param [Hash] opts the optional parameters # @return [UserBrief] describe 'user_self test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -50,7 +50,7 @@ # @option opts [UserTokenCreate] :data # @return [UserAuthToken] describe 'user_token_create test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end diff --git a/bindings/ruby/src/spec/api/users_api_spec.rb b/bindings/ruby/src/spec/api/users_api_spec.rb index 3cbfc27f..845863e0 100644 --- a/bindings/ruby/src/spec/api/users_api_spec.rb +++ b/bindings/ruby/src/spec/api/users_api_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -39,7 +39,7 @@ # @param [Hash] opts the optional parameters # @return [UserProfile] describe 'users_profile_read test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end diff --git a/bindings/ruby/src/spec/api/vulnerabilities_api_spec.rb b/bindings/ruby/src/spec/api/vulnerabilities_api_spec.rb index f08aea7c..d9a4a57f 100644 --- a/bindings/ruby/src/spec/api/vulnerabilities_api_spec.rb +++ b/bindings/ruby/src/spec/api/vulnerabilities_api_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -41,7 +41,7 @@ # @option opts [Integer] :page_size Number of results to return per page. # @return [Array] describe 'vulnerabilities_list test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -56,7 +56,7 @@ # @option opts [Integer] :page_size Number of results to return per page. # @return [Array] describe 'vulnerabilities_list0 test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -72,7 +72,7 @@ # @option opts [Integer] :page_size Number of results to return per page. # @return [Array] describe 'vulnerabilities_list1 test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -87,7 +87,7 @@ # @param [Hash] opts the optional parameters # @return [VulnerabilityScanResults] describe 'vulnerabilities_read test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end diff --git a/bindings/ruby/src/spec/api/webhooks_api_spec.rb b/bindings/ruby/src/spec/api/webhooks_api_spec.rb index 97049e25..d34025f2 100644 --- a/bindings/ruby/src/spec/api/webhooks_api_spec.rb +++ b/bindings/ruby/src/spec/api/webhooks_api_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -41,7 +41,7 @@ # @option opts [WebhooksCreate] :data # @return [RepositoryWebhook] describe 'webhooks_create test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -55,7 +55,7 @@ # @param [Hash] opts the optional parameters # @return [nil] describe 'webhooks_delete test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -70,7 +70,7 @@ # @option opts [Integer] :page_size Number of results to return per page. # @return [Array] describe 'webhooks_list test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -85,7 +85,7 @@ # @option opts [WebhooksPartialUpdate] :data # @return [RepositoryWebhook] describe 'webhooks_partial_update test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -99,7 +99,7 @@ # @param [Hash] opts the optional parameters # @return [RepositoryWebhook] describe 'webhooks_read test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end diff --git a/bindings/ruby/src/spec/api_client_spec.rb b/bindings/ruby/src/spec/api_client_spec.rb index 48d2b9ef..db6849f2 100644 --- a/bindings/ruby/src/spec/api_client_spec.rb +++ b/bindings/ruby/src/spec/api_client_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -51,11 +51,11 @@ end end - describe "params_encoding in #build_request" do + describe 'params_encoding in #build_request' do let(:config) { CloudsmithApi::Configuration.new } let(:api_client) { CloudsmithApi::ApiClient.new(config) } - it "defaults to nil" do + it 'defaults to nil' do expect(CloudsmithApi::Configuration.default.params_encoding).to eq(nil) expect(config.params_encoding).to eq(nil) @@ -63,18 +63,18 @@ expect(request.options[:params_encoding]).to eq(nil) end - it "can be customized" do + it 'can be customized' do config.params_encoding = :multi request = api_client.build_request(:get, '/test') expect(request.options[:params_encoding]).to eq(:multi) end end - describe "timeout in #build_request" do + describe 'timeout in #build_request' do let(:config) { CloudsmithApi::Configuration.new } let(:api_client) { CloudsmithApi::ApiClient.new(config) } - it "defaults to 0" do + it 'defaults to 0' do expect(CloudsmithApi::Configuration.default.timeout).to eq(0) expect(config.timeout).to eq(0) @@ -82,88 +82,105 @@ expect(request.options[:timeout]).to eq(0) end - it "can be customized" do + it 'can be customized' do config.timeout = 100 request = api_client.build_request(:get, '/test') expect(request.options[:timeout]).to eq(100) end end - describe "#deserialize" do + describe '#build_request' do + let(:config) { CloudsmithApi::Configuration.new } + let(:api_client) { CloudsmithApi::ApiClient.new(config) } + + it 'does not send multipart to request' do + expect(Typhoeus::Request).to receive(:new).with(anything, hash_not_including(:multipart)) + api_client.build_request(:get, '/test') + end + + context 'when the content type is multipart' do + it 'sends multipart to request' do + expect(Typhoeus::Request).to receive(:new).with(anything, hash_including(multipart: true)) + api_client.build_request(:get, '/test', {header_params: { 'Content-Type' => 'multipart/form-data'}}) + end + end + end + + describe '#deserialize' do it "handles Array" do api_client = CloudsmithApi::ApiClient.new - headers = {'Content-Type' => 'application/json'} + headers = { 'Content-Type' => 'application/json' } response = double('response', headers: headers, body: '[12, 34]') data = api_client.deserialize(response, 'Array') expect(data).to be_instance_of(Array) expect(data).to eq([12, 34]) end - it "handles Array>" do + it 'handles Array>' do api_client = CloudsmithApi::ApiClient.new - headers = {'Content-Type' => 'application/json'} + headers = { 'Content-Type' => 'application/json' } response = double('response', headers: headers, body: '[[12, 34], [56]]') data = api_client.deserialize(response, 'Array>') expect(data).to be_instance_of(Array) expect(data).to eq([[12, 34], [56]]) end - it "handles Hash" do + it 'handles Hash' do api_client = CloudsmithApi::ApiClient.new - headers = {'Content-Type' => 'application/json'} + headers = { 'Content-Type' => 'application/json' } response = double('response', headers: headers, body: '{"message": "Hello"}') data = api_client.deserialize(response, 'Hash') expect(data).to be_instance_of(Hash) - expect(data).to eq({:message => 'Hello'}) + expect(data).to eq(:message => 'Hello') end end describe "#object_to_hash" do - it "ignores nils and includes empty arrays" do + it 'ignores nils and includes empty arrays' do # uncomment below to test object_to_hash for model - #api_client = CloudsmithApi::ApiClient.new - #_model = CloudsmithApi::ModelName.new + # api_client = CloudsmithApi::ApiClient.new + # _model = CloudsmithApi::ModelName.new # update the model attribute below - #_model.id = 1 + # _model.id = 1 # update the expected value (hash) below - #expected = {id: 1, name: '', tags: []} - #expect(api_client.object_to_hash(_model)).to eq(expected) + # expected = {id: 1, name: '', tags: []} + # expect(api_client.object_to_hash(_model)).to eq(expected) end end - describe "#build_collection_param" do + describe '#build_collection_param' do let(:param) { ['aa', 'bb', 'cc'] } let(:api_client) { CloudsmithApi::ApiClient.new } - it "works for csv" do + it 'works for csv' do expect(api_client.build_collection_param(param, :csv)).to eq('aa,bb,cc') end - it "works for ssv" do + it 'works for ssv' do expect(api_client.build_collection_param(param, :ssv)).to eq('aa bb cc') end - it "works for tsv" do + it 'works for tsv' do expect(api_client.build_collection_param(param, :tsv)).to eq("aa\tbb\tcc") end - it "works for pipes" do + it 'works for pipes' do expect(api_client.build_collection_param(param, :pipes)).to eq('aa|bb|cc') end - it "works for multi" do + it 'works for multi' do expect(api_client.build_collection_param(param, :multi)).to eq(['aa', 'bb', 'cc']) end - it "fails for invalid collection format" do + it 'fails for invalid collection format' do expect(proc { api_client.build_collection_param(param, :INVALID) }).to raise_error(RuntimeError, 'unknown collection format: :INVALID') end end - describe "#json_mime?" do + describe '#json_mime?' do let(:api_client) { CloudsmithApi::ApiClient.new } - it "works" do + it 'works' do expect(api_client.json_mime?(nil)).to eq false expect(api_client.json_mime?('')).to eq false @@ -177,10 +194,10 @@ end end - describe "#select_header_accept" do + describe '#select_header_accept' do let(:api_client) { CloudsmithApi::ApiClient.new } - it "works" do + it 'works' do expect(api_client.select_header_accept(nil)).to be_nil expect(api_client.select_header_accept([])).to be_nil @@ -193,10 +210,10 @@ end end - describe "#select_header_content_type" do + describe '#select_header_content_type' do let(:api_client) { CloudsmithApi::ApiClient.new } - it "works" do + it 'works' do expect(api_client.select_header_content_type(nil)).to eq('application/json') expect(api_client.select_header_content_type([])).to eq('application/json') @@ -208,10 +225,10 @@ end end - describe "#sanitize_filename" do + describe '#sanitize_filename' do let(:api_client) { CloudsmithApi::ApiClient.new } - it "works" do + it 'works' do expect(api_client.sanitize_filename('sun')).to eq('sun') expect(api_client.sanitize_filename('sun.gif')).to eq('sun.gif') expect(api_client.sanitize_filename('../sun.gif')).to eq('sun.gif') diff --git a/bindings/ruby/src/spec/configuration_spec.rb b/bindings/ruby/src/spec/configuration_spec.rb index ed69247a..d5b22514 100644 --- a/bindings/ruby/src/spec/configuration_spec.rb +++ b/bindings/ruby/src/spec/configuration_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -17,25 +17,25 @@ before(:each) do # uncomment below to setup host and base_path - #require 'URI' - #uri = URI.parse("https://api.cloudsmith.io/v1") - #CloudsmithApi.configure do |c| - # c.host = uri.host - # c.base_path = uri.path - #end + # require 'URI' + # uri = URI.parse("https://api.cloudsmith.io/v1") + # CloudsmithApi.configure do |c| + # c.host = uri.host + # c.base_path = uri.path + # end end describe '#base_url' do it 'should have the default value' do # uncomment below to test default value of the base path - #expect(config.base_url).to eq("https://api.cloudsmith.io/v1") + # expect(config.base_url).to eq("https://api.cloudsmith.io/v1") end it 'should remove trailing slashes' do [nil, '', '/', '//'].each do |base_path| config.base_path = base_path # uncomment below to test trailing slashes - #expect(config.base_url).to eq("https://api.cloudsmith.io/v1") + # expect(config.base_url).to eq("https://api.cloudsmith.io/v1") end end end diff --git a/bindings/ruby/src/spec/models/alpine_package_upload_spec.rb b/bindings/ruby/src/spec/models/alpine_package_upload_spec.rb index 4399481c..a637579c 100644 --- a/bindings/ruby/src/spec/models/alpine_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/alpine_package_upload_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -34,387 +34,386 @@ end describe 'test attribute "architectures"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "cdn_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "checksum_md5"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "checksum_sha1"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "checksum_sha256"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "checksum_sha512"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "dependencies_checksum_md5"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "dependencies_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "description"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "distro"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "distro_version"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "downloads"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "epoch"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "extension"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "filename"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "files"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "format"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "format_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "identifier_perm"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "indexed"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "is_sync_awaiting"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "is_sync_completed"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "is_sync_failed"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "is_sync_in_flight"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "is_sync_in_progress"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "license"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "namespace"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "namespace_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "num_files"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "package_type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "release"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "repository"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "repository_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "security_scan_completed_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "security_scan_started_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "security_scan_status"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "security_scan_status_updated_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "self_html_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "self_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "signature_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "size"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "slug"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "slug_perm"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "stage"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "stage_str"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "stage_updated_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "status"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "status_reason"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "status_str"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "status_updated_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "status_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "subtype"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "summary"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "sync_finished_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "sync_progress"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "tags_immutable"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "type_display"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "uploaded_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "uploader"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "uploader_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "version"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "version_orig"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "vulnerability_scan_results_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/bindings/ruby/src/spec/models/conan_package_upload_spec.rb b/bindings/ruby/src/spec/models/conan_package_upload_spec.rb index 054df39c..f5e34c65 100644 --- a/bindings/ruby/src/spec/models/conan_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/conan_package_upload_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -34,399 +34,398 @@ end describe 'test attribute "architectures"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "cdn_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "checksum_md5"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "checksum_sha1"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "checksum_sha256"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "checksum_sha512"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "conan_channel"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "conan_prefix"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "dependencies_checksum_md5"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "dependencies_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "description"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "distro"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "distro_version"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "downloads"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "epoch"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "extension"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "filename"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "files"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "format"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "format_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "identifier_perm"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "indexed"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "is_sync_awaiting"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "is_sync_completed"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "is_sync_failed"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "is_sync_in_flight"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "is_sync_in_progress"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "license"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "namespace"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "namespace_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "num_files"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "package_type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "release"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "repository"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "repository_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "security_scan_completed_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "security_scan_started_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "security_scan_status"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "security_scan_status_updated_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "self_html_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "self_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "signature_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "size"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "slug"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "slug_perm"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "stage"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "stage_str"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "stage_updated_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "status"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "status_reason"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "status_str"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "status_updated_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "status_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "subtype"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "summary"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "sync_finished_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "sync_progress"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "tags_immutable"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "type_display"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "uploaded_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "uploader"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "uploader_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "version"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "version_orig"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "vulnerability_scan_results_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/bindings/ruby/src/spec/models/distribution_spec.rb b/bindings/ruby/src/spec/models/distribution_spec.rb index 29fb7c31..ffd8ccb9 100644 --- a/bindings/ruby/src/spec/models/distribution_spec.rb +++ b/bindings/ruby/src/spec/models/distribution_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -34,45 +34,44 @@ end describe 'test attribute "format"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "format_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "self_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "slug"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "variants"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "versions"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/bindings/ruby/src/spec/models/distros_versions_spec.rb b/bindings/ruby/src/spec/models/distros_versions_spec.rb index eda2363c..41683fb6 100644 --- a/bindings/ruby/src/spec/models/distros_versions_spec.rb +++ b/bindings/ruby/src/spec/models/distros_versions_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -34,15 +34,14 @@ end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "slug"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/bindings/ruby/src/spec/models/entitlement_usage_metrics_spec.rb b/bindings/ruby/src/spec/models/entitlement_usage_metrics_spec.rb index 0bc25a6b..30112317 100644 --- a/bindings/ruby/src/spec/models/entitlement_usage_metrics_spec.rb +++ b/bindings/ruby/src/spec/models/entitlement_usage_metrics_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -34,9 +34,8 @@ end describe 'test attribute "tokens"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/bindings/ruby/src/spec/models/entitlements_create_spec.rb b/bindings/ruby/src/spec/models/entitlements_create_spec.rb index fee713e5..4ae6f1a3 100644 --- a/bindings/ruby/src/spec/models/entitlements_create_spec.rb +++ b/bindings/ruby/src/spec/models/entitlements_create_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -34,93 +34,92 @@ end describe 'test attribute "eula_required"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "is_active"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "limit_bandwidth"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "limit_bandwidth_unit"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "limit_date_range_from"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "limit_date_range_to"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "limit_num_clients"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "limit_num_downloads"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "limit_package_query"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "limit_path_query"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "metadata"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "scheduled_reset_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "scheduled_reset_period"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "token"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/bindings/ruby/src/spec/models/entitlements_partial_update_spec.rb b/bindings/ruby/src/spec/models/entitlements_partial_update_spec.rb index 962bef67..e4a96b48 100644 --- a/bindings/ruby/src/spec/models/entitlements_partial_update_spec.rb +++ b/bindings/ruby/src/spec/models/entitlements_partial_update_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -34,93 +34,92 @@ end describe 'test attribute "eula_required"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "is_active"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "limit_bandwidth"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "limit_bandwidth_unit"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "limit_date_range_from"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "limit_date_range_to"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "limit_num_clients"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "limit_num_downloads"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "limit_package_query"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "limit_path_query"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "metadata"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "scheduled_reset_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "scheduled_reset_period"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "token"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/bindings/ruby/src/spec/models/entitlements_refresh_spec.rb b/bindings/ruby/src/spec/models/entitlements_refresh_spec.rb index 2a454507..4a18de34 100644 --- a/bindings/ruby/src/spec/models/entitlements_refresh_spec.rb +++ b/bindings/ruby/src/spec/models/entitlements_refresh_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -34,87 +34,86 @@ end describe 'test attribute "eula_required"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "is_active"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "limit_bandwidth"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "limit_bandwidth_unit"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "limit_date_range_from"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "limit_date_range_to"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "limit_num_clients"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "limit_num_downloads"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "limit_package_query"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "limit_path_query"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "metadata"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "scheduled_reset_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "scheduled_reset_period"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "token"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/bindings/ruby/src/spec/models/entitlements_sync_spec.rb b/bindings/ruby/src/spec/models/entitlements_sync_spec.rb index fc702872..76fc3f26 100644 --- a/bindings/ruby/src/spec/models/entitlements_sync_spec.rb +++ b/bindings/ruby/src/spec/models/entitlements_sync_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -34,9 +34,8 @@ end describe 'test attribute "source"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/bindings/ruby/src/spec/models/files_abort_spec.rb b/bindings/ruby/src/spec/models/files_abort_spec.rb index d8cb5d1a..e9fd59fb 100644 --- a/bindings/ruby/src/spec/models/files_abort_spec.rb +++ b/bindings/ruby/src/spec/models/files_abort_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -34,27 +34,26 @@ end describe 'test attribute "filename"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "md5_checksum"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "method"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "sha256_checksum"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/bindings/ruby/src/spec/models/files_complete_spec.rb b/bindings/ruby/src/spec/models/files_complete_spec.rb index 0950fb02..03e75a10 100644 --- a/bindings/ruby/src/spec/models/files_complete_spec.rb +++ b/bindings/ruby/src/spec/models/files_complete_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -34,27 +34,26 @@ end describe 'test attribute "filename"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "md5_checksum"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "method"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "sha256_checksum"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/bindings/ruby/src/spec/models/files_create_spec.rb b/bindings/ruby/src/spec/models/files_create_spec.rb index 6fbbae88..483a0000 100644 --- a/bindings/ruby/src/spec/models/files_create_spec.rb +++ b/bindings/ruby/src/spec/models/files_create_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -34,27 +34,26 @@ end describe 'test attribute "filename"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "md5_checksum"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "method"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "sha256_checksum"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/bindings/ruby/src/spec/models/files_validate_spec.rb b/bindings/ruby/src/spec/models/files_validate_spec.rb index 26c3d9bb..eeb1f9e5 100644 --- a/bindings/ruby/src/spec/models/files_validate_spec.rb +++ b/bindings/ruby/src/spec/models/files_validate_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -34,27 +34,26 @@ end describe 'test attribute "filename"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "md5_checksum"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "method"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "sha256_checksum"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/bindings/ruby/src/spec/models/format_spec.rb b/bindings/ruby/src/spec/models/format_spec.rb index f0ee1805..aeb837ed 100644 --- a/bindings/ruby/src/spec/models/format_spec.rb +++ b/bindings/ruby/src/spec/models/format_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -34,57 +34,56 @@ end describe 'test attribute "description"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "distributions"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "extensions"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "premium"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "premium_plan_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "premium_plan_name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "slug"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "supports"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/bindings/ruby/src/spec/models/formats_distributions_spec.rb b/bindings/ruby/src/spec/models/formats_distributions_spec.rb index 6c4bc045..db5e2347 100644 --- a/bindings/ruby/src/spec/models/formats_distributions_spec.rb +++ b/bindings/ruby/src/spec/models/formats_distributions_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -34,27 +34,26 @@ end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "self_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "slug"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "variants"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/bindings/ruby/src/spec/models/maven_package_upload_spec.rb b/bindings/ruby/src/spec/models/maven_package_upload_spec.rb index b1c567e4..f6009cb3 100644 --- a/bindings/ruby/src/spec/models/maven_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/maven_package_upload_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -34,405 +34,404 @@ end describe 'test attribute "architectures"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "artifact_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "cdn_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "checksum_md5"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "checksum_sha1"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "checksum_sha256"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "checksum_sha512"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "dependencies_checksum_md5"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "dependencies_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "description"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "distro"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "distro_version"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "downloads"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "epoch"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "extension"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "filename"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "files"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "format"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "format_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "group_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "identifier_perm"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "indexed"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "is_sync_awaiting"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "is_sync_completed"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "is_sync_failed"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "is_sync_in_flight"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "is_sync_in_progress"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "license"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "namespace"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "namespace_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "num_files"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "package_type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "packaging"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "release"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "repository"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "repository_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "security_scan_completed_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "security_scan_started_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "security_scan_status"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "security_scan_status_updated_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "self_html_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "self_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "signature_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "size"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "slug"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "slug_perm"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "stage"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "stage_str"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "stage_updated_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "status"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "status_reason"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "status_str"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "status_updated_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "status_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "subtype"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "summary"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "sync_finished_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "sync_progress"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "tags_immutable"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "type_display"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "uploaded_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "uploader"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "uploader_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "version"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "version_orig"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "vulnerability_scan_results_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/bindings/ruby/src/spec/models/namespace_spec.rb b/bindings/ruby/src/spec/models/namespace_spec.rb index ad45310d..c796d48d 100644 --- a/bindings/ruby/src/spec/models/namespace_spec.rb +++ b/bindings/ruby/src/spec/models/namespace_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -34,27 +34,26 @@ end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "slug"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "slug_perm"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "type_name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/bindings/ruby/src/spec/models/organization_membership_spec.rb b/bindings/ruby/src/spec/models/organization_membership_spec.rb index c29e0a89..ce3aa09d 100644 --- a/bindings/ruby/src/spec/models/organization_membership_spec.rb +++ b/bindings/ruby/src/spec/models/organization_membership_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -34,63 +34,62 @@ end describe 'test attribute "email"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "has_two_factor"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "joined_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "last_login_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "role"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "user"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "user_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "user_name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "user_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "visibility"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/bindings/ruby/src/spec/models/organization_spec.rb b/bindings/ruby/src/spec/models/organization_spec.rb index 2e4dc179..6bdbd79c 100644 --- a/bindings/ruby/src/spec/models/organization_spec.rb +++ b/bindings/ruby/src/spec/models/organization_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -34,45 +34,44 @@ end describe 'test attribute "country"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "created_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "location"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "slug"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "slug_perm"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "tagline"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/bindings/ruby/src/spec/models/package_copy_spec.rb b/bindings/ruby/src/spec/models/package_copy_spec.rb index 2ace96c6..c8005796 100644 --- a/bindings/ruby/src/spec/models/package_copy_spec.rb +++ b/bindings/ruby/src/spec/models/package_copy_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -34,393 +34,392 @@ end describe 'test attribute "architectures"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "cdn_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "checksum_md5"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "checksum_sha1"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "checksum_sha256"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "checksum_sha512"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "dependencies_checksum_md5"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "dependencies_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "description"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "distro"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "distro_version"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "downloads"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "epoch"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "extension"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "filename"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "files"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "format"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "format_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "identifier_perm"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "indexed"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "is_sync_awaiting"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "is_sync_completed"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "is_sync_failed"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "is_sync_in_flight"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "is_sync_in_progress"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "license"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "namespace"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "namespace_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "num_files"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "package_type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "release"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "repository"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "repository_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "security_scan_completed_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "security_scan_started_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "security_scan_status"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "security_scan_status_updated_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "self_html_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "self_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "signature_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "size"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "slug"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "slug_perm"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "stage"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "stage_str"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "stage_updated_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "status"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "status_reason"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "status_str"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "status_updated_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "status_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "subtype"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "summary"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "sync_finished_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "sync_progress"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "tags"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "tags_immutable"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "type_display"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "uploaded_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "uploader"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "uploader_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "version"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "version_orig"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "vulnerability_scan_results_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/bindings/ruby/src/spec/models/package_dependencies_dependencies_spec.rb b/bindings/ruby/src/spec/models/package_dependencies_dependencies_spec.rb index 157daad5..ebbb7b41 100644 --- a/bindings/ruby/src/spec/models/package_dependencies_dependencies_spec.rb +++ b/bindings/ruby/src/spec/models/package_dependencies_dependencies_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -34,27 +34,26 @@ end describe 'test attribute "dep_type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "operator"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "version"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/bindings/ruby/src/spec/models/package_dependencies_spec.rb b/bindings/ruby/src/spec/models/package_dependencies_spec.rb index 42992646..c4413bd9 100644 --- a/bindings/ruby/src/spec/models/package_dependencies_spec.rb +++ b/bindings/ruby/src/spec/models/package_dependencies_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -34,9 +34,8 @@ end describe 'test attribute "dependencies"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/bindings/ruby/src/spec/models/package_file_parts_upload_spec.rb b/bindings/ruby/src/spec/models/package_file_parts_upload_spec.rb index efaaa0cb..9b6ace8d 100644 --- a/bindings/ruby/src/spec/models/package_file_parts_upload_spec.rb +++ b/bindings/ruby/src/spec/models/package_file_parts_upload_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -34,21 +34,20 @@ end describe 'test attribute "identifier"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "upload_querystring"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "upload_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/bindings/ruby/src/spec/models/package_file_upload_spec.rb b/bindings/ruby/src/spec/models/package_file_upload_spec.rb index bdd596ce..8b201ff6 100644 --- a/bindings/ruby/src/spec/models/package_file_upload_spec.rb +++ b/bindings/ruby/src/spec/models/package_file_upload_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -34,33 +34,32 @@ end describe 'test attribute "identifier"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "upload_fields"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "upload_headers"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "upload_querystring"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "upload_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/bindings/ruby/src/spec/models/package_move_spec.rb b/bindings/ruby/src/spec/models/package_move_spec.rb index 755c1a97..124e45aa 100644 --- a/bindings/ruby/src/spec/models/package_move_spec.rb +++ b/bindings/ruby/src/spec/models/package_move_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -34,393 +34,392 @@ end describe 'test attribute "architectures"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "cdn_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "checksum_md5"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "checksum_sha1"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "checksum_sha256"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "checksum_sha512"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "dependencies_checksum_md5"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "dependencies_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "description"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "distro"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "distro_version"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "downloads"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "epoch"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "extension"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "filename"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "files"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "format"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "format_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "identifier_perm"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "indexed"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "is_sync_awaiting"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "is_sync_completed"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "is_sync_failed"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "is_sync_in_flight"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "is_sync_in_progress"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "license"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "namespace"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "namespace_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "num_files"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "package_type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "release"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "repository"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "repository_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "security_scan_completed_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "security_scan_started_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "security_scan_status"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "security_scan_status_updated_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "self_html_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "self_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "signature_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "size"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "slug"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "slug_perm"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "stage"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "stage_str"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "stage_updated_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "status"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "status_reason"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "status_str"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "status_updated_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "status_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "subtype"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "summary"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "sync_finished_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "sync_progress"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "tags"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "tags_immutable"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "type_display"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "uploaded_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "uploader"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "uploader_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "version"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "version_orig"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "vulnerability_scan_results_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/bindings/ruby/src/spec/models/package_spec.rb b/bindings/ruby/src/spec/models/package_spec.rb index 06e0785b..c6b28c3a 100644 --- a/bindings/ruby/src/spec/models/package_spec.rb +++ b/bindings/ruby/src/spec/models/package_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -34,393 +34,392 @@ end describe 'test attribute "architectures"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "cdn_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "checksum_md5"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "checksum_sha1"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "checksum_sha256"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "checksum_sha512"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "dependencies_checksum_md5"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "dependencies_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "description"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "distro"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "distro_version"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "downloads"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "epoch"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "extension"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "filename"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "files"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "format"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "format_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "identifier_perm"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "indexed"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "is_sync_awaiting"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "is_sync_completed"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "is_sync_failed"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "is_sync_in_flight"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "is_sync_in_progress"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "license"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "namespace"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "namespace_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "num_files"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "package_type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "release"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "repository"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "repository_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "security_scan_completed_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "security_scan_started_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "security_scan_status"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "security_scan_status_updated_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "self_html_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "self_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "signature_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "size"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "slug"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "slug_perm"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "stage"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "stage_str"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "stage_updated_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "status"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "status_reason"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "status_str"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "status_updated_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "status_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "subtype"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "summary"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "sync_finished_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "sync_progress"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "tags"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "tags_immutable"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "type_display"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "uploaded_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "uploader"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "uploader_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "version"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "version_orig"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "vulnerability_scan_results_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/bindings/ruby/src/spec/models/package_status_spec.rb b/bindings/ruby/src/spec/models/package_status_spec.rb index 3d8d0d93..7dd9a4be 100644 --- a/bindings/ruby/src/spec/models/package_status_spec.rb +++ b/bindings/ruby/src/spec/models/package_status_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -34,93 +34,92 @@ end describe 'test attribute "is_sync_awaiting"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "is_sync_completed"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "is_sync_failed"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "is_sync_in_flight"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "is_sync_in_progress"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "self_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "stage"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "stage_str"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "stage_updated_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "status"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "status_reason"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "status_str"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "status_updated_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "sync_finished_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "sync_progress"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/bindings/ruby/src/spec/models/package_usage_metrics_spec.rb b/bindings/ruby/src/spec/models/package_usage_metrics_spec.rb index ad06237a..002ef587 100644 --- a/bindings/ruby/src/spec/models/package_usage_metrics_spec.rb +++ b/bindings/ruby/src/spec/models/package_usage_metrics_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -34,9 +34,8 @@ end describe 'test attribute "packages"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/bindings/ruby/src/spec/models/packages_copy_spec.rb b/bindings/ruby/src/spec/models/packages_copy_spec.rb index 7cc24f8c..321b4e93 100644 --- a/bindings/ruby/src/spec/models/packages_copy_spec.rb +++ b/bindings/ruby/src/spec/models/packages_copy_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -34,15 +34,14 @@ end describe 'test attribute "destination"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "republish"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/bindings/ruby/src/spec/models/packages_move_spec.rb b/bindings/ruby/src/spec/models/packages_move_spec.rb index 1c467fb6..44c75729 100644 --- a/bindings/ruby/src/spec/models/packages_move_spec.rb +++ b/bindings/ruby/src/spec/models/packages_move_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -34,9 +34,8 @@ end describe 'test attribute "destination"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/bindings/ruby/src/spec/models/packages_tag_spec.rb b/bindings/ruby/src/spec/models/packages_tag_spec.rb index b7d192ed..5134f2aa 100644 --- a/bindings/ruby/src/spec/models/packages_tag_spec.rb +++ b/bindings/ruby/src/spec/models/packages_tag_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -34,21 +34,20 @@ end describe 'test attribute "action"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "is_immutable"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "tags"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/bindings/ruby/src/spec/models/packages_upload_alpine_spec.rb b/bindings/ruby/src/spec/models/packages_upload_alpine_spec.rb index efaedf42..444a18d3 100644 --- a/bindings/ruby/src/spec/models/packages_upload_alpine_spec.rb +++ b/bindings/ruby/src/spec/models/packages_upload_alpine_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -34,27 +34,26 @@ end describe 'test attribute "distribution"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "package_file"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "republish"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "tags"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/bindings/ruby/src/spec/models/packages_upload_cargo_spec.rb b/bindings/ruby/src/spec/models/packages_upload_cargo_spec.rb index d9f759ea..fff05d48 100644 --- a/bindings/ruby/src/spec/models/packages_upload_cargo_spec.rb +++ b/bindings/ruby/src/spec/models/packages_upload_cargo_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -34,21 +34,20 @@ end describe 'test attribute "package_file"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "republish"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "tags"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/bindings/ruby/src/spec/models/packages_upload_cocoapods_spec.rb b/bindings/ruby/src/spec/models/packages_upload_cocoapods_spec.rb index 844a5b28..6a5c6e5a 100644 --- a/bindings/ruby/src/spec/models/packages_upload_cocoapods_spec.rb +++ b/bindings/ruby/src/spec/models/packages_upload_cocoapods_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -34,21 +34,20 @@ end describe 'test attribute "package_file"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "republish"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "tags"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/bindings/ruby/src/spec/models/packages_upload_composer_spec.rb b/bindings/ruby/src/spec/models/packages_upload_composer_spec.rb index 3e8c23fe..dd130c59 100644 --- a/bindings/ruby/src/spec/models/packages_upload_composer_spec.rb +++ b/bindings/ruby/src/spec/models/packages_upload_composer_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -34,21 +34,20 @@ end describe 'test attribute "package_file"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "republish"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "tags"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/bindings/ruby/src/spec/models/packages_upload_conan_spec.rb b/bindings/ruby/src/spec/models/packages_upload_conan_spec.rb index b60bc8a4..9d89b190 100644 --- a/bindings/ruby/src/spec/models/packages_upload_conan_spec.rb +++ b/bindings/ruby/src/spec/models/packages_upload_conan_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -34,63 +34,62 @@ end describe 'test attribute "conan_channel"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "conan_prefix"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "info_file"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "manifest_file"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "metadata_file"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "package_file"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "republish"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "tags"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "version"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/bindings/ruby/src/spec/models/packages_upload_conda_spec.rb b/bindings/ruby/src/spec/models/packages_upload_conda_spec.rb index 3560a29e..fd61a85c 100644 --- a/bindings/ruby/src/spec/models/packages_upload_conda_spec.rb +++ b/bindings/ruby/src/spec/models/packages_upload_conda_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -34,21 +34,20 @@ end describe 'test attribute "package_file"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "republish"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "tags"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/bindings/ruby/src/spec/models/packages_upload_cran_spec.rb b/bindings/ruby/src/spec/models/packages_upload_cran_spec.rb index bd3efe8c..c60aa22a 100644 --- a/bindings/ruby/src/spec/models/packages_upload_cran_spec.rb +++ b/bindings/ruby/src/spec/models/packages_upload_cran_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -34,21 +34,20 @@ end describe 'test attribute "package_file"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "republish"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "tags"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/bindings/ruby/src/spec/models/packages_upload_dart_spec.rb b/bindings/ruby/src/spec/models/packages_upload_dart_spec.rb index 080d3240..2392d542 100644 --- a/bindings/ruby/src/spec/models/packages_upload_dart_spec.rb +++ b/bindings/ruby/src/spec/models/packages_upload_dart_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -34,21 +34,20 @@ end describe 'test attribute "package_file"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "republish"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "tags"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/bindings/ruby/src/spec/models/packages_upload_deb_spec.rb b/bindings/ruby/src/spec/models/packages_upload_deb_spec.rb index 8506746c..278d7778 100644 --- a/bindings/ruby/src/spec/models/packages_upload_deb_spec.rb +++ b/bindings/ruby/src/spec/models/packages_upload_deb_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -34,39 +34,38 @@ end describe 'test attribute "changes_file"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "distribution"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "package_file"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "republish"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "sources_file"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "tags"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/bindings/ruby/src/spec/models/packages_upload_docker_spec.rb b/bindings/ruby/src/spec/models/packages_upload_docker_spec.rb index 0a3ec9a0..5a135bea 100644 --- a/bindings/ruby/src/spec/models/packages_upload_docker_spec.rb +++ b/bindings/ruby/src/spec/models/packages_upload_docker_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -34,21 +34,20 @@ end describe 'test attribute "package_file"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "republish"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "tags"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/bindings/ruby/src/spec/models/packages_upload_go_spec.rb b/bindings/ruby/src/spec/models/packages_upload_go_spec.rb index 9fef8725..78bf3953 100644 --- a/bindings/ruby/src/spec/models/packages_upload_go_spec.rb +++ b/bindings/ruby/src/spec/models/packages_upload_go_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -34,21 +34,20 @@ end describe 'test attribute "package_file"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "republish"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "tags"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/bindings/ruby/src/spec/models/packages_upload_helm_spec.rb b/bindings/ruby/src/spec/models/packages_upload_helm_spec.rb index 116e23f5..a3e8d8d3 100644 --- a/bindings/ruby/src/spec/models/packages_upload_helm_spec.rb +++ b/bindings/ruby/src/spec/models/packages_upload_helm_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -34,21 +34,20 @@ end describe 'test attribute "package_file"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "republish"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "tags"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/bindings/ruby/src/spec/models/packages_upload_luarocks_spec.rb b/bindings/ruby/src/spec/models/packages_upload_luarocks_spec.rb index d5909de9..5911daed 100644 --- a/bindings/ruby/src/spec/models/packages_upload_luarocks_spec.rb +++ b/bindings/ruby/src/spec/models/packages_upload_luarocks_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -34,21 +34,20 @@ end describe 'test attribute "package_file"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "republish"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "tags"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/bindings/ruby/src/spec/models/packages_upload_maven_spec.rb b/bindings/ruby/src/spec/models/packages_upload_maven_spec.rb index 032c13b4..812de0e6 100644 --- a/bindings/ruby/src/spec/models/packages_upload_maven_spec.rb +++ b/bindings/ruby/src/spec/models/packages_upload_maven_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -34,69 +34,68 @@ end describe 'test attribute "artifact_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "group_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "javadoc_file"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "package_file"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "packaging"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "pom_file"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "republish"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "sources_file"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "tags"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "tests_file"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "version"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/bindings/ruby/src/spec/models/packages_upload_npm_spec.rb b/bindings/ruby/src/spec/models/packages_upload_npm_spec.rb index 8f2a5cab..b5c996d8 100644 --- a/bindings/ruby/src/spec/models/packages_upload_npm_spec.rb +++ b/bindings/ruby/src/spec/models/packages_upload_npm_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -34,27 +34,26 @@ end describe 'test attribute "npm_dist_tag"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "package_file"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "republish"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "tags"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/bindings/ruby/src/spec/models/packages_upload_nuget_spec.rb b/bindings/ruby/src/spec/models/packages_upload_nuget_spec.rb index a8da5d77..c79e9d07 100644 --- a/bindings/ruby/src/spec/models/packages_upload_nuget_spec.rb +++ b/bindings/ruby/src/spec/models/packages_upload_nuget_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -34,27 +34,26 @@ end describe 'test attribute "package_file"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "republish"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "symbols_file"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "tags"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/bindings/ruby/src/spec/models/packages_upload_p2_spec.rb b/bindings/ruby/src/spec/models/packages_upload_p2_spec.rb index b4f74894..765f4ea2 100644 --- a/bindings/ruby/src/spec/models/packages_upload_p2_spec.rb +++ b/bindings/ruby/src/spec/models/packages_upload_p2_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -34,21 +34,20 @@ end describe 'test attribute "package_file"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "republish"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "tags"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/bindings/ruby/src/spec/models/packages_upload_python_spec.rb b/bindings/ruby/src/spec/models/packages_upload_python_spec.rb index 5b97b774..ed0726f3 100644 --- a/bindings/ruby/src/spec/models/packages_upload_python_spec.rb +++ b/bindings/ruby/src/spec/models/packages_upload_python_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -34,21 +34,20 @@ end describe 'test attribute "package_file"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "republish"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "tags"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/bindings/ruby/src/spec/models/packages_upload_raw_spec.rb b/bindings/ruby/src/spec/models/packages_upload_raw_spec.rb index a4317d3f..cad73f5e 100644 --- a/bindings/ruby/src/spec/models/packages_upload_raw_spec.rb +++ b/bindings/ruby/src/spec/models/packages_upload_raw_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -34,51 +34,50 @@ end describe 'test attribute "content_type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "description"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "package_file"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "republish"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "summary"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "tags"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "version"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/bindings/ruby/src/spec/models/packages_upload_rpm_spec.rb b/bindings/ruby/src/spec/models/packages_upload_rpm_spec.rb index 4b7615e0..2bfd23d0 100644 --- a/bindings/ruby/src/spec/models/packages_upload_rpm_spec.rb +++ b/bindings/ruby/src/spec/models/packages_upload_rpm_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -34,27 +34,26 @@ end describe 'test attribute "distribution"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "package_file"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "republish"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "tags"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/bindings/ruby/src/spec/models/packages_upload_ruby_spec.rb b/bindings/ruby/src/spec/models/packages_upload_ruby_spec.rb index 8b3b2352..5848a781 100644 --- a/bindings/ruby/src/spec/models/packages_upload_ruby_spec.rb +++ b/bindings/ruby/src/spec/models/packages_upload_ruby_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -34,21 +34,20 @@ end describe 'test attribute "package_file"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "republish"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "tags"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/bindings/ruby/src/spec/models/packages_upload_terraform_spec.rb b/bindings/ruby/src/spec/models/packages_upload_terraform_spec.rb index 278b3ddc..69c55467 100644 --- a/bindings/ruby/src/spec/models/packages_upload_terraform_spec.rb +++ b/bindings/ruby/src/spec/models/packages_upload_terraform_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -34,21 +34,20 @@ end describe 'test attribute "package_file"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "republish"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "tags"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/bindings/ruby/src/spec/models/packages_upload_vagrant_spec.rb b/bindings/ruby/src/spec/models/packages_upload_vagrant_spec.rb index 28a4076e..12eacfa0 100644 --- a/bindings/ruby/src/spec/models/packages_upload_vagrant_spec.rb +++ b/bindings/ruby/src/spec/models/packages_upload_vagrant_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -34,39 +34,38 @@ end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "package_file"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "provider"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "republish"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "tags"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "version"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/bindings/ruby/src/spec/models/packages_validateupload_alpine_spec.rb b/bindings/ruby/src/spec/models/packages_validateupload_alpine_spec.rb index ce1e8e68..b5833dab 100644 --- a/bindings/ruby/src/spec/models/packages_validateupload_alpine_spec.rb +++ b/bindings/ruby/src/spec/models/packages_validateupload_alpine_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -34,27 +34,26 @@ end describe 'test attribute "distribution"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "package_file"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "republish"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "tags"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/bindings/ruby/src/spec/models/packages_validateupload_cargo_spec.rb b/bindings/ruby/src/spec/models/packages_validateupload_cargo_spec.rb index 04d218cb..304453cb 100644 --- a/bindings/ruby/src/spec/models/packages_validateupload_cargo_spec.rb +++ b/bindings/ruby/src/spec/models/packages_validateupload_cargo_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -34,21 +34,20 @@ end describe 'test attribute "package_file"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "republish"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "tags"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/bindings/ruby/src/spec/models/packages_validateupload_cocoapods_spec.rb b/bindings/ruby/src/spec/models/packages_validateupload_cocoapods_spec.rb index 811d6883..4a52cbb1 100644 --- a/bindings/ruby/src/spec/models/packages_validateupload_cocoapods_spec.rb +++ b/bindings/ruby/src/spec/models/packages_validateupload_cocoapods_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -34,21 +34,20 @@ end describe 'test attribute "package_file"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "republish"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "tags"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/bindings/ruby/src/spec/models/packages_validateupload_composer_spec.rb b/bindings/ruby/src/spec/models/packages_validateupload_composer_spec.rb index d825682b..b67a2e27 100644 --- a/bindings/ruby/src/spec/models/packages_validateupload_composer_spec.rb +++ b/bindings/ruby/src/spec/models/packages_validateupload_composer_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -34,21 +34,20 @@ end describe 'test attribute "package_file"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "republish"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "tags"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/bindings/ruby/src/spec/models/packages_validateupload_conan_spec.rb b/bindings/ruby/src/spec/models/packages_validateupload_conan_spec.rb index 095538be..fd6675f9 100644 --- a/bindings/ruby/src/spec/models/packages_validateupload_conan_spec.rb +++ b/bindings/ruby/src/spec/models/packages_validateupload_conan_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -34,63 +34,62 @@ end describe 'test attribute "conan_channel"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "conan_prefix"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "info_file"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "manifest_file"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "metadata_file"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "package_file"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "republish"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "tags"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "version"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/bindings/ruby/src/spec/models/packages_validateupload_conda_spec.rb b/bindings/ruby/src/spec/models/packages_validateupload_conda_spec.rb index e4021d13..2a18f938 100644 --- a/bindings/ruby/src/spec/models/packages_validateupload_conda_spec.rb +++ b/bindings/ruby/src/spec/models/packages_validateupload_conda_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -34,21 +34,20 @@ end describe 'test attribute "package_file"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "republish"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "tags"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/bindings/ruby/src/spec/models/packages_validateupload_cran_spec.rb b/bindings/ruby/src/spec/models/packages_validateupload_cran_spec.rb index 1fd47d14..6daa2812 100644 --- a/bindings/ruby/src/spec/models/packages_validateupload_cran_spec.rb +++ b/bindings/ruby/src/spec/models/packages_validateupload_cran_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -34,21 +34,20 @@ end describe 'test attribute "package_file"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "republish"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "tags"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/bindings/ruby/src/spec/models/packages_validateupload_dart_spec.rb b/bindings/ruby/src/spec/models/packages_validateupload_dart_spec.rb index 0cced594..90a70758 100644 --- a/bindings/ruby/src/spec/models/packages_validateupload_dart_spec.rb +++ b/bindings/ruby/src/spec/models/packages_validateupload_dart_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -34,21 +34,20 @@ end describe 'test attribute "package_file"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "republish"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "tags"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/bindings/ruby/src/spec/models/packages_validateupload_deb_spec.rb b/bindings/ruby/src/spec/models/packages_validateupload_deb_spec.rb index c6771d93..716d1f1c 100644 --- a/bindings/ruby/src/spec/models/packages_validateupload_deb_spec.rb +++ b/bindings/ruby/src/spec/models/packages_validateupload_deb_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -34,39 +34,38 @@ end describe 'test attribute "changes_file"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "distribution"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "package_file"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "republish"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "sources_file"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "tags"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/bindings/ruby/src/spec/models/packages_validateupload_docker_spec.rb b/bindings/ruby/src/spec/models/packages_validateupload_docker_spec.rb index eca852e4..89145436 100644 --- a/bindings/ruby/src/spec/models/packages_validateupload_docker_spec.rb +++ b/bindings/ruby/src/spec/models/packages_validateupload_docker_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -34,21 +34,20 @@ end describe 'test attribute "package_file"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "republish"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "tags"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/bindings/ruby/src/spec/models/packages_validateupload_go_spec.rb b/bindings/ruby/src/spec/models/packages_validateupload_go_spec.rb index fb3019a5..6bb5b088 100644 --- a/bindings/ruby/src/spec/models/packages_validateupload_go_spec.rb +++ b/bindings/ruby/src/spec/models/packages_validateupload_go_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -34,21 +34,20 @@ end describe 'test attribute "package_file"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "republish"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "tags"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/bindings/ruby/src/spec/models/packages_validateupload_helm_spec.rb b/bindings/ruby/src/spec/models/packages_validateupload_helm_spec.rb index af48572b..3cf883cf 100644 --- a/bindings/ruby/src/spec/models/packages_validateupload_helm_spec.rb +++ b/bindings/ruby/src/spec/models/packages_validateupload_helm_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -34,21 +34,20 @@ end describe 'test attribute "package_file"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "republish"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "tags"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/bindings/ruby/src/spec/models/packages_validateupload_luarocks_spec.rb b/bindings/ruby/src/spec/models/packages_validateupload_luarocks_spec.rb index 21fc0155..757525a3 100644 --- a/bindings/ruby/src/spec/models/packages_validateupload_luarocks_spec.rb +++ b/bindings/ruby/src/spec/models/packages_validateupload_luarocks_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -34,21 +34,20 @@ end describe 'test attribute "package_file"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "republish"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "tags"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/bindings/ruby/src/spec/models/packages_validateupload_maven_spec.rb b/bindings/ruby/src/spec/models/packages_validateupload_maven_spec.rb index 0026518a..9026f466 100644 --- a/bindings/ruby/src/spec/models/packages_validateupload_maven_spec.rb +++ b/bindings/ruby/src/spec/models/packages_validateupload_maven_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -34,69 +34,68 @@ end describe 'test attribute "artifact_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "group_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "javadoc_file"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "package_file"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "packaging"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "pom_file"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "republish"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "sources_file"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "tags"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "tests_file"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "version"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/bindings/ruby/src/spec/models/packages_validateupload_npm_spec.rb b/bindings/ruby/src/spec/models/packages_validateupload_npm_spec.rb index b3a8f945..9baa5383 100644 --- a/bindings/ruby/src/spec/models/packages_validateupload_npm_spec.rb +++ b/bindings/ruby/src/spec/models/packages_validateupload_npm_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -34,27 +34,26 @@ end describe 'test attribute "npm_dist_tag"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "package_file"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "republish"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "tags"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/bindings/ruby/src/spec/models/packages_validateupload_nuget_spec.rb b/bindings/ruby/src/spec/models/packages_validateupload_nuget_spec.rb index 66d605e7..9ed6c54c 100644 --- a/bindings/ruby/src/spec/models/packages_validateupload_nuget_spec.rb +++ b/bindings/ruby/src/spec/models/packages_validateupload_nuget_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -34,27 +34,26 @@ end describe 'test attribute "package_file"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "republish"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "symbols_file"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "tags"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/bindings/ruby/src/spec/models/packages_validateupload_p2_spec.rb b/bindings/ruby/src/spec/models/packages_validateupload_p2_spec.rb index a3935bee..59410291 100644 --- a/bindings/ruby/src/spec/models/packages_validateupload_p2_spec.rb +++ b/bindings/ruby/src/spec/models/packages_validateupload_p2_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -34,21 +34,20 @@ end describe 'test attribute "package_file"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "republish"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "tags"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/bindings/ruby/src/spec/models/packages_validateupload_python_spec.rb b/bindings/ruby/src/spec/models/packages_validateupload_python_spec.rb index c96b8a64..7ce2ef78 100644 --- a/bindings/ruby/src/spec/models/packages_validateupload_python_spec.rb +++ b/bindings/ruby/src/spec/models/packages_validateupload_python_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -34,21 +34,20 @@ end describe 'test attribute "package_file"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "republish"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "tags"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/bindings/ruby/src/spec/models/packages_validateupload_raw_spec.rb b/bindings/ruby/src/spec/models/packages_validateupload_raw_spec.rb index c46fb375..43e03cea 100644 --- a/bindings/ruby/src/spec/models/packages_validateupload_raw_spec.rb +++ b/bindings/ruby/src/spec/models/packages_validateupload_raw_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -34,51 +34,50 @@ end describe 'test attribute "content_type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "description"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "package_file"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "republish"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "summary"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "tags"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "version"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/bindings/ruby/src/spec/models/packages_validateupload_rpm_spec.rb b/bindings/ruby/src/spec/models/packages_validateupload_rpm_spec.rb index a58a7790..831d43f3 100644 --- a/bindings/ruby/src/spec/models/packages_validateupload_rpm_spec.rb +++ b/bindings/ruby/src/spec/models/packages_validateupload_rpm_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -34,27 +34,26 @@ end describe 'test attribute "distribution"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "package_file"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "republish"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "tags"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/bindings/ruby/src/spec/models/packages_validateupload_ruby_spec.rb b/bindings/ruby/src/spec/models/packages_validateupload_ruby_spec.rb index a90c90e3..451ec55b 100644 --- a/bindings/ruby/src/spec/models/packages_validateupload_ruby_spec.rb +++ b/bindings/ruby/src/spec/models/packages_validateupload_ruby_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -34,21 +34,20 @@ end describe 'test attribute "package_file"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "republish"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "tags"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/bindings/ruby/src/spec/models/packages_validateupload_terraform_spec.rb b/bindings/ruby/src/spec/models/packages_validateupload_terraform_spec.rb index 127511b6..4ab3d8e4 100644 --- a/bindings/ruby/src/spec/models/packages_validateupload_terraform_spec.rb +++ b/bindings/ruby/src/spec/models/packages_validateupload_terraform_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -34,21 +34,20 @@ end describe 'test attribute "package_file"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "republish"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "tags"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/bindings/ruby/src/spec/models/packages_validateupload_vagrant_spec.rb b/bindings/ruby/src/spec/models/packages_validateupload_vagrant_spec.rb index 126c2733..7bb1b5f1 100644 --- a/bindings/ruby/src/spec/models/packages_validateupload_vagrant_spec.rb +++ b/bindings/ruby/src/spec/models/packages_validateupload_vagrant_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -34,39 +34,38 @@ end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "package_file"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "provider"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "republish"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "tags"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "version"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/bindings/ruby/src/spec/models/packagesownerrepo_architectures_spec.rb b/bindings/ruby/src/spec/models/packagesownerrepo_architectures_spec.rb index da042c0d..3118b50b 100644 --- a/bindings/ruby/src/spec/models/packagesownerrepo_architectures_spec.rb +++ b/bindings/ruby/src/spec/models/packagesownerrepo_architectures_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -34,15 +34,14 @@ end describe 'test attribute "description"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/bindings/ruby/src/spec/models/packagesownerrepo_files_spec.rb b/bindings/ruby/src/spec/models/packagesownerrepo_files_spec.rb index 7637aac4..33e8c914 100644 --- a/bindings/ruby/src/spec/models/packagesownerrepo_files_spec.rb +++ b/bindings/ruby/src/spec/models/packagesownerrepo_files_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -34,87 +34,86 @@ end describe 'test attribute "cdn_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "checksum_md5"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "checksum_sha1"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "checksum_sha256"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "checksum_sha512"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "downloads"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "filename"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "is_downloadable"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "is_primary"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "is_synchronised"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "signature_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "size"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "slug_perm"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "tag"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/bindings/ruby/src/spec/models/quota_history_history_spec.rb b/bindings/ruby/src/spec/models/quota_history_history_spec.rb index f3eb00a2..95f33903 100644 --- a/bindings/ruby/src/spec/models/quota_history_history_spec.rb +++ b/bindings/ruby/src/spec/models/quota_history_history_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -34,39 +34,38 @@ end describe 'test attribute "days"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "display"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "_end"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "plan"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "raw"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "start"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/bindings/ruby/src/spec/models/quota_history_spec.rb b/bindings/ruby/src/spec/models/quota_history_spec.rb index 6473785b..9947bad4 100644 --- a/bindings/ruby/src/spec/models/quota_history_spec.rb +++ b/bindings/ruby/src/spec/models/quota_history_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -34,9 +34,8 @@ end describe 'test attribute "history"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/bindings/ruby/src/spec/models/quota_spec.rb b/bindings/ruby/src/spec/models/quota_spec.rb index ae48e82c..ee90ed74 100644 --- a/bindings/ruby/src/spec/models/quota_spec.rb +++ b/bindings/ruby/src/spec/models/quota_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -34,9 +34,8 @@ end describe 'test attribute "usage"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/bindings/ruby/src/spec/models/raw_package_upload_spec.rb b/bindings/ruby/src/spec/models/raw_package_upload_spec.rb index 0c1101dc..bbd8ac4f 100644 --- a/bindings/ruby/src/spec/models/raw_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/raw_package_upload_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -34,387 +34,386 @@ end describe 'test attribute "architectures"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "cdn_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "checksum_md5"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "checksum_sha1"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "checksum_sha256"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "checksum_sha512"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "dependencies_checksum_md5"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "dependencies_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "description"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "distro"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "distro_version"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "downloads"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "epoch"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "extension"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "filename"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "files"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "format"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "format_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "identifier_perm"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "indexed"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "is_sync_awaiting"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "is_sync_completed"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "is_sync_failed"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "is_sync_in_flight"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "is_sync_in_progress"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "license"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "namespace"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "namespace_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "num_files"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "package_type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "release"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "repository"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "repository_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "security_scan_completed_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "security_scan_started_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "security_scan_status"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "security_scan_status_updated_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "self_html_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "self_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "signature_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "size"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "slug"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "slug_perm"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "stage"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "stage_str"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "stage_updated_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "status"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "status_reason"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "status_str"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "status_updated_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "status_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "subtype"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "summary"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "sync_finished_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "sync_progress"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "tags_immutable"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "type_display"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "uploaded_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "uploader"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "uploader_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "version"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "version_orig"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "vulnerability_scan_results_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/bindings/ruby/src/spec/models/repos_create_spec.rb b/bindings/ruby/src/spec/models/repos_create_spec.rb index 821a0533..a670a1cc 100644 --- a/bindings/ruby/src/spec/models/repos_create_spec.rb +++ b/bindings/ruby/src/spec/models/repos_create_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -34,39 +34,38 @@ end describe 'test attribute "description"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "index_files"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "repository_type_str"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "slug"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "storage_region"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/bindings/ruby/src/spec/models/repos_gpg_keys_spec.rb b/bindings/ruby/src/spec/models/repos_gpg_keys_spec.rb index eb99c144..07711b79 100644 --- a/bindings/ruby/src/spec/models/repos_gpg_keys_spec.rb +++ b/bindings/ruby/src/spec/models/repos_gpg_keys_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -34,45 +34,44 @@ end describe 'test attribute "active"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "comment"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "created_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "default"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "fingerprint"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "fingerprint_short"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "public_key"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/bindings/ruby/src/spec/models/repos_partial_update_spec.rb b/bindings/ruby/src/spec/models/repos_partial_update_spec.rb index f0f67b65..01150038 100644 --- a/bindings/ruby/src/spec/models/repos_partial_update_spec.rb +++ b/bindings/ruby/src/spec/models/repos_partial_update_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -34,33 +34,32 @@ end describe 'test attribute "description"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "index_files"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "repository_type_str"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "slug"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/bindings/ruby/src/spec/models/repository_spec.rb b/bindings/ruby/src/spec/models/repository_spec.rb index 932fb8bb..aed44e10 100644 --- a/bindings/ruby/src/spec/models/repository_spec.rb +++ b/bindings/ruby/src/spec/models/repository_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -34,147 +34,146 @@ end describe 'test attribute "cdn_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "created_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "deleted_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "description"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "gpg_keys"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "index_files"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "is_open_source"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "is_private"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "is_public"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "namespace"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "namespace_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "num_downloads"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "package_count"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "package_group_count"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "repository_type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "repository_type_str"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "self_html_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "self_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "size"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "size_str"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "slug"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "slug_perm"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "storage_region"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/bindings/ruby/src/spec/models/repository_token_refresh_spec.rb b/bindings/ruby/src/spec/models/repository_token_refresh_spec.rb index fd782ac2..1378f18f 100644 --- a/bindings/ruby/src/spec/models/repository_token_refresh_spec.rb +++ b/bindings/ruby/src/spec/models/repository_token_refresh_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -34,237 +34,236 @@ end describe 'test attribute "clients"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "created_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "created_by"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "created_by_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "default"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "disable_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "downloads"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "enable_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "eula_accepted"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "eula_accepted_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "eula_accepted_from"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "eula_required"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "has_limits"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "identifier"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "is_active"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "is_limited"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "limit_bandwidth"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "limit_bandwidth_unit"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "limit_date_range_from"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "limit_date_range_to"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "limit_num_clients"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "limit_num_downloads"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "limit_package_query"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "limit_path_query"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "metadata"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "refresh_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "reset_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "scheduled_reset_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "scheduled_reset_period"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "self_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "slug_perm"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "token"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "updated_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "updated_by"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "updated_by_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "usage"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "user"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "user_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/bindings/ruby/src/spec/models/repository_token_spec.rb b/bindings/ruby/src/spec/models/repository_token_spec.rb index 28e56204..fe8a4209 100644 --- a/bindings/ruby/src/spec/models/repository_token_spec.rb +++ b/bindings/ruby/src/spec/models/repository_token_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -34,237 +34,236 @@ end describe 'test attribute "clients"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "created_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "created_by"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "created_by_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "default"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "disable_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "downloads"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "enable_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "eula_accepted"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "eula_accepted_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "eula_accepted_from"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "eula_required"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "has_limits"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "identifier"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "is_active"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "is_limited"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "limit_bandwidth"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "limit_bandwidth_unit"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "limit_date_range_from"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "limit_date_range_to"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "limit_num_clients"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "limit_num_downloads"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "limit_package_query"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "limit_path_query"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "metadata"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "refresh_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "reset_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "scheduled_reset_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "scheduled_reset_period"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "self_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "slug_perm"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "token"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "updated_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "updated_by"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "updated_by_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "usage"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "user"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "user_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/bindings/ruby/src/spec/models/repository_token_sync_spec.rb b/bindings/ruby/src/spec/models/repository_token_sync_spec.rb index ec646905..583a92d2 100644 --- a/bindings/ruby/src/spec/models/repository_token_sync_spec.rb +++ b/bindings/ruby/src/spec/models/repository_token_sync_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -34,9 +34,8 @@ end describe 'test attribute "tokens"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/bindings/ruby/src/spec/models/repository_token_sync_tokens_spec.rb b/bindings/ruby/src/spec/models/repository_token_sync_tokens_spec.rb index 236cae67..398a2e6e 100644 --- a/bindings/ruby/src/spec/models/repository_token_sync_tokens_spec.rb +++ b/bindings/ruby/src/spec/models/repository_token_sync_tokens_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -34,237 +34,236 @@ end describe 'test attribute "clients"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "created_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "created_by"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "created_by_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "default"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "disable_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "downloads"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "enable_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "eula_accepted"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "eula_accepted_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "eula_accepted_from"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "eula_required"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "has_limits"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "identifier"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "is_active"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "is_limited"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "limit_bandwidth"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "limit_bandwidth_unit"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "limit_date_range_from"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "limit_date_range_to"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "limit_num_clients"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "limit_num_downloads"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "limit_package_query"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "limit_path_query"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "metadata"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "refresh_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "reset_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "scheduled_reset_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "scheduled_reset_period"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "self_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "slug_perm"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "token"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "updated_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "updated_by"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "updated_by_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "usage"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "user"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "user_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/bindings/ruby/src/spec/models/repository_webhook_spec.rb b/bindings/ruby/src/spec/models/repository_webhook_spec.rb index b705d8d7..fbe5fef5 100644 --- a/bindings/ruby/src/spec/models/repository_webhook_spec.rb +++ b/bindings/ruby/src/spec/models/repository_webhook_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -34,165 +34,164 @@ end describe 'test attribute "created_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "created_by"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "created_by_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "disable_reason"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "disable_reason_str"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "events"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "identifier"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "is_active"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "is_last_response_bad"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "last_response_status"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "last_response_status_str"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "num_sent"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "package_query"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "request_body_format"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "request_body_format_str"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "request_body_template_format"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "request_body_template_format_str"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "request_content_type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "secret_header"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "self_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "slug_perm"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "target_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "templates"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "updated_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "updated_by"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "updated_by_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "verify_ssl"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/bindings/ruby/src/spec/models/resources_rate_check_spec.rb b/bindings/ruby/src/spec/models/resources_rate_check_spec.rb index 9ffa4be1..ced3dc85 100644 --- a/bindings/ruby/src/spec/models/resources_rate_check_spec.rb +++ b/bindings/ruby/src/spec/models/resources_rate_check_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -34,9 +34,8 @@ end describe 'test attribute "resources"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/bindings/ruby/src/spec/models/status_basic_spec.rb b/bindings/ruby/src/spec/models/status_basic_spec.rb index 3f4b841b..c511034d 100644 --- a/bindings/ruby/src/spec/models/status_basic_spec.rb +++ b/bindings/ruby/src/spec/models/status_basic_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -34,15 +34,14 @@ end describe 'test attribute "detail"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "version"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/bindings/ruby/src/spec/models/status_spec.rb b/bindings/ruby/src/spec/models/status_spec.rb index f7a64c91..0c0d55ba 100644 --- a/bindings/ruby/src/spec/models/status_spec.rb +++ b/bindings/ruby/src/spec/models/status_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -34,9 +34,8 @@ end describe 'test attribute "detail"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/bindings/ruby/src/spec/models/storage_region_spec.rb b/bindings/ruby/src/spec/models/storage_region_spec.rb index c90f0514..6aff34db 100644 --- a/bindings/ruby/src/spec/models/storage_region_spec.rb +++ b/bindings/ruby/src/spec/models/storage_region_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -34,15 +34,14 @@ end describe 'test attribute "label"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "slug"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/bindings/ruby/src/spec/models/user_auth_token_spec.rb b/bindings/ruby/src/spec/models/user_auth_token_spec.rb index 0893bc45..8b00806f 100644 --- a/bindings/ruby/src/spec/models/user_auth_token_spec.rb +++ b/bindings/ruby/src/spec/models/user_auth_token_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -34,9 +34,8 @@ end describe 'test attribute "token"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/bindings/ruby/src/spec/models/user_brief_spec.rb b/bindings/ruby/src/spec/models/user_brief_spec.rb index d8938e4c..cf7f555b 100644 --- a/bindings/ruby/src/spec/models/user_brief_spec.rb +++ b/bindings/ruby/src/spec/models/user_brief_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -34,45 +34,44 @@ end describe 'test attribute "authenticated"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "email"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "profile_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "self_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "slug"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "slug_perm"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/bindings/ruby/src/spec/models/user_profile_spec.rb b/bindings/ruby/src/spec/models/user_profile_spec.rb index 8ac1c648..d4f9129f 100644 --- a/bindings/ruby/src/spec/models/user_profile_spec.rb +++ b/bindings/ruby/src/spec/models/user_profile_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -34,63 +34,62 @@ end describe 'test attribute "company"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "first_name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "job_title"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "joined_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "last_name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "slug"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "slug_perm"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "tagline"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/bindings/ruby/src/spec/models/user_token_create_spec.rb b/bindings/ruby/src/spec/models/user_token_create_spec.rb index 7e8903ad..40cb2ae1 100644 --- a/bindings/ruby/src/spec/models/user_token_create_spec.rb +++ b/bindings/ruby/src/spec/models/user_token_create_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -34,15 +34,14 @@ end describe 'test attribute "email"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "password"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/bindings/ruby/src/spec/models/vagrant_package_upload_spec.rb b/bindings/ruby/src/spec/models/vagrant_package_upload_spec.rb index b3e66d34..fafcea5b 100644 --- a/bindings/ruby/src/spec/models/vagrant_package_upload_spec.rb +++ b/bindings/ruby/src/spec/models/vagrant_package_upload_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -34,393 +34,392 @@ end describe 'test attribute "architectures"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "cdn_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "checksum_md5"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "checksum_sha1"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "checksum_sha256"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "checksum_sha512"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "dependencies_checksum_md5"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "dependencies_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "description"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "distro"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "distro_version"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "downloads"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "epoch"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "extension"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "filename"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "files"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "format"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "format_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "identifier_perm"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "indexed"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "is_sync_awaiting"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "is_sync_completed"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "is_sync_failed"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "is_sync_in_flight"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "is_sync_in_progress"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "license"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "namespace"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "namespace_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "num_files"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "package_type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "provider"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "release"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "repository"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "repository_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "security_scan_completed_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "security_scan_started_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "security_scan_status"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "security_scan_status_updated_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "self_html_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "self_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "signature_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "size"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "slug"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "slug_perm"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "stage"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "stage_str"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "stage_updated_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "status"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "status_reason"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "status_str"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "status_updated_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "status_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "subtype"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "summary"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "sync_finished_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "sync_progress"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "tags_immutable"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "type_display"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "uploaded_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "uploader"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "uploader_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "version"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "version_orig"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "vulnerability_scan_results_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/bindings/ruby/src/spec/models/vulnerability_scan_results_list_spec.rb b/bindings/ruby/src/spec/models/vulnerability_scan_results_list_spec.rb index c1e0616e..473ce835 100644 --- a/bindings/ruby/src/spec/models/vulnerability_scan_results_list_spec.rb +++ b/bindings/ruby/src/spec/models/vulnerability_scan_results_list_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -34,45 +34,44 @@ end describe 'test attribute "created_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "has_vulnerabilities"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "identifier"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "max_severity"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "num_vulnerabilities"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "package"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "scan_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/bindings/ruby/src/spec/models/vulnerability_scan_results_spec.rb b/bindings/ruby/src/spec/models/vulnerability_scan_results_spec.rb index 28523604..c3aa5ae4 100644 --- a/bindings/ruby/src/spec/models/vulnerability_scan_results_spec.rb +++ b/bindings/ruby/src/spec/models/vulnerability_scan_results_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -34,51 +34,50 @@ end describe 'test attribute "created_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "has_vulnerabilities"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "identifier"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "max_severity"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "num_vulnerabilities"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "package"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "scan"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "scan_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/bindings/ruby/src/spec/models/webhooks_create_spec.rb b/bindings/ruby/src/spec/models/webhooks_create_spec.rb index 61aea36c..1169d895 100644 --- a/bindings/ruby/src/spec/models/webhooks_create_spec.rb +++ b/bindings/ruby/src/spec/models/webhooks_create_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -34,75 +34,74 @@ end describe 'test attribute "events"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "is_active"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "package_query"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "request_body_format"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "request_body_template_format"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "request_content_type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "secret_header"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "secret_value"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "signature_key"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "target_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "templates"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "verify_ssl"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/bindings/ruby/src/spec/models/webhooks_partial_update_spec.rb b/bindings/ruby/src/spec/models/webhooks_partial_update_spec.rb index c8c5e90c..ae509e01 100644 --- a/bindings/ruby/src/spec/models/webhooks_partial_update_spec.rb +++ b/bindings/ruby/src/spec/models/webhooks_partial_update_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -34,75 +34,74 @@ end describe 'test attribute "events"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "is_active"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "package_query"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "request_body_format"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "request_body_template_format"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "request_content_type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "secret_header"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "secret_value"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "signature_key"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "target_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "templates"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "verify_ssl"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/bindings/ruby/src/spec/models/webhooksownerrepo_templates_spec.rb b/bindings/ruby/src/spec/models/webhooksownerrepo_templates_spec.rb index e7eebf6d..e23d92ca 100644 --- a/bindings/ruby/src/spec/models/webhooksownerrepo_templates_spec.rb +++ b/bindings/ruby/src/spec/models/webhooksownerrepo_templates_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end @@ -34,15 +34,14 @@ end describe 'test attribute "event"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "template"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/bindings/ruby/src/spec/spec_helper.rb b/bindings/ruby/src/spec/spec_helper.rb index 7e09fe3b..e132e014 100644 --- a/bindings/ruby/src/spec/spec_helper.rb +++ b/bindings/ruby/src/spec/spec_helper.rb @@ -6,7 +6,7 @@ OpenAPI spec version: v1 Contact: support@cloudsmith.io Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.2.3 +Swagger Codegen version: 2.4.26 =end diff --git a/bindings/ruby/test.sh b/bindings/ruby/test.sh index c3ff5f65..cb226dd2 100755 --- a/bindings/ruby/test.sh +++ b/bindings/ruby/test.sh @@ -1,4 +1,6 @@ #!/usr/bin/env bash +set -e + self=$(readlink -f $BASH_SOURCE) self_dir=$(dirname $self) root_dir=$(readlink -f "$self_dir/../..") diff --git a/scripts/build.sh b/scripts/build.sh index 80736771..f8ee4ec5 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -1,4 +1,6 @@ #!/usr/bin/env bash +set -e + self=$(readlink -f $BASH_SOURCE) self_dir=$(dirname $self) root_dir=$(readlink -f "$self_dir/..") diff --git a/scripts/deploy.sh b/scripts/deploy.sh index 31cb8d85..f934ed9d 100755 --- a/scripts/deploy.sh +++ b/scripts/deploy.sh @@ -1,4 +1,6 @@ #!/usr/bin/env bash +set -e + self=$(readlink -f $BASH_SOURCE) self_dir=$(dirname $self) root_dir=$(readlink -f "$self_dir/..") diff --git a/scripts/push.sh b/scripts/push.sh index 14b1fb29..bb9206fc 100755 --- a/scripts/push.sh +++ b/scripts/push.sh @@ -1,4 +1,6 @@ #!/usr/bin/env bash +set -e + self=$(readlink -f $BASH_SOURCE) self_dir=$(dirname $self) root_dir=$(readlink -f "$self_dir/..") diff --git a/scripts/test.sh b/scripts/test.sh index 806ed0dc..49a57042 100755 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -1,4 +1,6 @@ #!/usr/bin/env bash +set -e + self=$(readlink -f $BASH_SOURCE) self_dir=$(dirname $self) root_dir=$(readlink -f "$self_dir/..")