From bdc80091aa6b097abd83396d8648b53bcde653f6 Mon Sep 17 00:00:00 2001 From: Jamie McCay Date: Tue, 27 May 2025 10:43:40 +0100 Subject: [PATCH] Update API bindings to version 2.0.1 Binding version: 2.0.1 CloudSmith API version: 1.698.0 - Updated package_version in scripts/common.sh - Regenerated bindings for Python, Ruby, and Java - Ready for automated deployment via CircleCI --- bindings/java/src/README.md | 27 +- bindings/java/src/build.gradle | 2 +- bindings/java/src/build.json | 2 +- bindings/java/src/build.sbt | 2 +- bindings/java/src/docs/CargoUpstream.md | 52 + .../java/src/docs/CargoUpstreamRequest.md | 37 + .../src/docs/CargoUpstreamRequestPatch.md | 37 + bindings/java/src/docs/GoUpstream.md | 52 + bindings/java/src/docs/GoUpstreamRequest.md | 37 + .../java/src/docs/GoUpstreamRequestPatch.md | 37 + bindings/java/src/docs/InlineResponse200.md | 2 +- bindings/java/src/docs/InlineResponse2001.md | 10 + bindings/java/src/docs/PackageGroup.md | 15 + bindings/java/src/docs/PackagesApi.md | 73 + bindings/java/src/docs/ReposApi.md | 1316 +++++-- bindings/java/src/docs/UserApi.md | 6 +- bindings/java/src/pom.xml | 2 +- .../java/io/cloudsmith/api/ApiClient.java | 2 +- .../src/main/java/io/cloudsmith/api/JSON.java | 8 + .../io/cloudsmith/api/apis/PackagesApi.java | 176 + .../java/io/cloudsmith/api/apis/ReposApi.java | 3104 +++++++++++++---- .../java/io/cloudsmith/api/apis/UserApi.java | 18 +- .../cloudsmith/api/models/CargoUpstream.java | 595 ++++ .../api/models/CargoUpstreamRequest.java | 471 +++ .../api/models/CargoUpstreamRequestPatch.java | 469 +++ .../io/cloudsmith/api/models/GoUpstream.java | 595 ++++ .../api/models/GoUpstreamRequest.java | 471 +++ .../api/models/GoUpstreamRequestPatch.java | 469 +++ .../api/models/InlineResponse200.java | 12 +- .../api/models/InlineResponse2001.java | 109 + .../cloudsmith/api/models/PackageGroup.java | 220 ++ .../io/cloudsmith/api/models/StatusBasic.java | 2 +- .../cloudsmith/api/apis/PackagesApiTest.java | 23 + .../io/cloudsmith/api/apis/ReposApiTest.java | 228 ++ .../io/cloudsmith/api/apis/UserApiTest.java | 4 +- bindings/python/src/README.md | 23 +- bindings/python/src/build.json | 2 +- .../python/src/cloudsmith_api/__init__.py | 8 + .../src/cloudsmith_api/api/packages_api.py | 127 + .../src/cloudsmith_api/api/repos_api.py | 2478 ++++++++++--- .../python/src/cloudsmith_api/api/user_api.py | 6 +- .../python/src/cloudsmith_api/api_client.py | 2 +- .../src/cloudsmith_api/configuration.py | 2 +- .../src/cloudsmith_api/models/__init__.py | 8 + .../cloudsmith_api/models/cargo_upstream.py | 676 ++++ .../models/cargo_upstream_request.py | 529 +++ .../models/cargo_upstream_request_patch.py | 527 +++ .../models/composer_upstream.py | 2 +- .../models/composer_upstream_request.py | 2 +- .../models/composer_upstream_request_patch.py | 2 +- .../cloudsmith_api/models/cran_upstream.py | 2 +- .../models/cran_upstream_request.py | 2 +- .../models/cran_upstream_request_patch.py | 2 +- .../cloudsmith_api/models/dart_upstream.py | 2 +- .../models/dart_upstream_request.py | 2 +- .../models/dart_upstream_request_patch.py | 2 +- .../src/cloudsmith_api/models/deb_upstream.py | 2 +- .../models/deb_upstream_request.py | 2 +- .../models/deb_upstream_request_patch.py | 2 +- .../cloudsmith_api/models/docker_upstream.py | 2 +- .../models/docker_upstream_request.py | 2 +- .../models/docker_upstream_request_patch.py | 2 +- .../src/cloudsmith_api/models/go_upstream.py | 676 ++++ .../models/go_upstream_request.py | 529 +++ .../models/go_upstream_request_patch.py | 527 +++ .../cloudsmith_api/models/helm_upstream.py | 2 +- .../models/helm_upstream_request.py | 2 +- .../models/helm_upstream_request_patch.py | 2 +- .../src/cloudsmith_api/models/hex_upstream.py | 2 +- .../models/hex_upstream_request.py | 2 +- .../models/hex_upstream_request_patch.py | 2 +- .../models/inline_response200.py | 6 +- .../models/inline_response2001.py | 125 + .../cloudsmith_api/models/maven_upstream.py | 2 +- .../models/maven_upstream_request.py | 2 +- .../models/maven_upstream_request_patch.py | 2 +- .../src/cloudsmith_api/models/npm_upstream.py | 2 +- .../models/npm_upstream_request.py | 2 +- .../models/npm_upstream_request_patch.py | 2 +- .../cloudsmith_api/models/nuget_upstream.py | 2 +- .../models/nuget_upstream_request.py | 2 +- .../models/nuget_upstream_request_patch.py | 2 +- .../cloudsmith_api/models/package_group.py | 261 ++ .../cloudsmith_api/models/python_upstream.py | 2 +- .../models/python_upstream_request.py | 2 +- .../models/python_upstream_request_patch.py | 2 +- .../src/cloudsmith_api/models/repository.py | 2 +- .../models/repository_create.py | 2 +- .../models/repository_create_request.py | 2 +- .../models/repository_request_patch.py | 2 +- .../src/cloudsmith_api/models/rpm_upstream.py | 2 +- .../models/rpm_upstream_request.py | 2 +- .../models/rpm_upstream_request_patch.py | 2 +- .../cloudsmith_api/models/ruby_upstream.py | 2 +- .../models/ruby_upstream_request.py | 2 +- .../models/ruby_upstream_request_patch.py | 2 +- .../src/cloudsmith_api/models/status_basic.py | 2 +- .../cloudsmith_api/models/swift_upstream.py | 2 +- .../models/swift_upstream_request.py | 2 +- .../models/swift_upstream_request_patch.py | 2 +- bindings/python/src/docs/CargoUpstream.md | 27 + .../python/src/docs/CargoUpstreamRequest.md | 22 + .../src/docs/CargoUpstreamRequestPatch.md | 22 + bindings/python/src/docs/GoUpstream.md | 27 + bindings/python/src/docs/GoUpstreamRequest.md | 22 + .../python/src/docs/GoUpstreamRequestPatch.md | 22 + bindings/python/src/docs/InlineResponse200.md | 2 +- .../python/src/docs/InlineResponse2001.md | 10 + bindings/python/src/docs/PackageGroup.md | 15 + bindings/python/src/docs/PackagesApi.md | 71 + bindings/python/src/docs/ReposApi.md | 1288 +++++-- bindings/python/src/docs/StatusBasic.md | 2 +- bindings/python/src/docs/UserApi.md | 4 +- bindings/python/src/setup.py | 4 +- .../python/src/test/test_cargo_upstream.py | 40 + .../src/test/test_cargo_upstream_request.py | 40 + .../test/test_cargo_upstream_request_patch.py | 40 + bindings/python/src/test/test_go_upstream.py | 40 + .../src/test/test_go_upstream_request.py | 40 + .../test/test_go_upstream_request_patch.py | 40 + .../src/test/test_inline_response2001.py | 40 + .../python/src/test/test_package_group.py | 40 + bindings/python/src/test/test_packages_api.py | 7 + bindings/python/src/test/test_repos_api.py | 84 + bindings/ruby/src/README.md | 29 +- bindings/ruby/src/build.json | 2 +- bindings/ruby/src/docs/CargoUpstream.md | 25 + .../ruby/src/docs/CargoUpstreamRequest.md | 20 + .../src/docs/CargoUpstreamRequestPatch.md | 20 + bindings/ruby/src/docs/GoUpstream.md | 25 + bindings/ruby/src/docs/GoUpstreamRequest.md | 20 + .../ruby/src/docs/GoUpstreamRequestPatch.md | 20 + bindings/ruby/src/docs/InlineResponse200.md | 2 +- bindings/ruby/src/docs/InlineResponse2001.md | 8 + bindings/ruby/src/docs/PackageGroup.md | 13 + bindings/ruby/src/docs/PackagesApi.md | 74 + bindings/ruby/src/docs/ReposApi.md | 1324 +++++-- bindings/ruby/src/docs/StatusBasic.md | 2 +- bindings/ruby/src/docs/UserApi.md | 4 +- bindings/ruby/src/lib/cloudsmith-api.rb | 8 + .../lib/cloudsmith-api/api/packages_api.rb | 75 + .../src/lib/cloudsmith-api/api/repos_api.rb | 1758 +++++++--- .../src/lib/cloudsmith-api/api/user_api.rb | 6 +- .../cloudsmith-api/models/cargo_upstream.rb | 426 +++ .../models/cargo_upstream_request.rb | 365 ++ .../models/cargo_upstream_request_patch.rb | 355 ++ .../lib/cloudsmith-api/models/go_upstream.rb | 426 +++ .../models/go_upstream_request.rb | 365 ++ .../models/go_upstream_request_patch.rb | 355 ++ .../models/inline_response_200.rb | 2 +- .../models/inline_response_200_1.rb | 191 + .../cloudsmith-api/models/package_group.rb | 249 ++ .../lib/cloudsmith-api/models/status_basic.rb | 2 +- .../ruby/src/lib/cloudsmith-api/version.rb | 2 +- .../ruby/src/spec/api/packages_api_spec.rb | 18 + bindings/ruby/src/spec/api/repos_api_spec.rb | 174 + bindings/ruby/src/spec/api/user_api_spec.rb | 2 +- .../cargo_upstream_request_patch_spec.rb | 121 + .../models/cargo_upstream_request_spec.rb | 121 + .../src/spec/models/cargo_upstream_spec.rb | 155 + .../models/go_upstream_request_patch_spec.rb | 121 + .../spec/models/go_upstream_request_spec.rb | 121 + .../ruby/src/spec/models/go_upstream_spec.rb | 155 + .../spec/models/inline_response_200_1_spec.rb | 41 + .../src/spec/models/package_group_spec.rb | 71 + scripts/common.sh | 2 +- 166 files changed, 21952 insertions(+), 2563 deletions(-) create mode 100644 bindings/java/src/docs/CargoUpstream.md create mode 100644 bindings/java/src/docs/CargoUpstreamRequest.md create mode 100644 bindings/java/src/docs/CargoUpstreamRequestPatch.md create mode 100644 bindings/java/src/docs/GoUpstream.md create mode 100644 bindings/java/src/docs/GoUpstreamRequest.md create mode 100644 bindings/java/src/docs/GoUpstreamRequestPatch.md create mode 100644 bindings/java/src/docs/InlineResponse2001.md create mode 100644 bindings/java/src/docs/PackageGroup.md create mode 100644 bindings/java/src/src/main/java/io/cloudsmith/api/models/CargoUpstream.java create mode 100644 bindings/java/src/src/main/java/io/cloudsmith/api/models/CargoUpstreamRequest.java create mode 100644 bindings/java/src/src/main/java/io/cloudsmith/api/models/CargoUpstreamRequestPatch.java create mode 100644 bindings/java/src/src/main/java/io/cloudsmith/api/models/GoUpstream.java create mode 100644 bindings/java/src/src/main/java/io/cloudsmith/api/models/GoUpstreamRequest.java create mode 100644 bindings/java/src/src/main/java/io/cloudsmith/api/models/GoUpstreamRequestPatch.java create mode 100644 bindings/java/src/src/main/java/io/cloudsmith/api/models/InlineResponse2001.java create mode 100644 bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageGroup.java create mode 100644 bindings/python/src/cloudsmith_api/models/cargo_upstream.py create mode 100644 bindings/python/src/cloudsmith_api/models/cargo_upstream_request.py create mode 100644 bindings/python/src/cloudsmith_api/models/cargo_upstream_request_patch.py create mode 100644 bindings/python/src/cloudsmith_api/models/go_upstream.py create mode 100644 bindings/python/src/cloudsmith_api/models/go_upstream_request.py create mode 100644 bindings/python/src/cloudsmith_api/models/go_upstream_request_patch.py create mode 100644 bindings/python/src/cloudsmith_api/models/inline_response2001.py create mode 100644 bindings/python/src/cloudsmith_api/models/package_group.py create mode 100644 bindings/python/src/docs/CargoUpstream.md create mode 100644 bindings/python/src/docs/CargoUpstreamRequest.md create mode 100644 bindings/python/src/docs/CargoUpstreamRequestPatch.md create mode 100644 bindings/python/src/docs/GoUpstream.md create mode 100644 bindings/python/src/docs/GoUpstreamRequest.md create mode 100644 bindings/python/src/docs/GoUpstreamRequestPatch.md create mode 100644 bindings/python/src/docs/InlineResponse2001.md create mode 100644 bindings/python/src/docs/PackageGroup.md create mode 100644 bindings/python/src/test/test_cargo_upstream.py create mode 100644 bindings/python/src/test/test_cargo_upstream_request.py create mode 100644 bindings/python/src/test/test_cargo_upstream_request_patch.py create mode 100644 bindings/python/src/test/test_go_upstream.py create mode 100644 bindings/python/src/test/test_go_upstream_request.py create mode 100644 bindings/python/src/test/test_go_upstream_request_patch.py create mode 100644 bindings/python/src/test/test_inline_response2001.py create mode 100644 bindings/python/src/test/test_package_group.py create mode 100644 bindings/ruby/src/docs/CargoUpstream.md create mode 100644 bindings/ruby/src/docs/CargoUpstreamRequest.md create mode 100644 bindings/ruby/src/docs/CargoUpstreamRequestPatch.md create mode 100644 bindings/ruby/src/docs/GoUpstream.md create mode 100644 bindings/ruby/src/docs/GoUpstreamRequest.md create mode 100644 bindings/ruby/src/docs/GoUpstreamRequestPatch.md create mode 100644 bindings/ruby/src/docs/InlineResponse2001.md create mode 100644 bindings/ruby/src/docs/PackageGroup.md create mode 100644 bindings/ruby/src/lib/cloudsmith-api/models/cargo_upstream.rb create mode 100644 bindings/ruby/src/lib/cloudsmith-api/models/cargo_upstream_request.rb create mode 100644 bindings/ruby/src/lib/cloudsmith-api/models/cargo_upstream_request_patch.rb create mode 100644 bindings/ruby/src/lib/cloudsmith-api/models/go_upstream.rb create mode 100644 bindings/ruby/src/lib/cloudsmith-api/models/go_upstream_request.rb create mode 100644 bindings/ruby/src/lib/cloudsmith-api/models/go_upstream_request_patch.rb create mode 100644 bindings/ruby/src/lib/cloudsmith-api/models/inline_response_200_1.rb create mode 100644 bindings/ruby/src/lib/cloudsmith-api/models/package_group.rb create mode 100644 bindings/ruby/src/spec/models/cargo_upstream_request_patch_spec.rb create mode 100644 bindings/ruby/src/spec/models/cargo_upstream_request_spec.rb create mode 100644 bindings/ruby/src/spec/models/cargo_upstream_spec.rb create mode 100644 bindings/ruby/src/spec/models/go_upstream_request_patch_spec.rb create mode 100644 bindings/ruby/src/spec/models/go_upstream_request_spec.rb create mode 100644 bindings/ruby/src/spec/models/go_upstream_spec.rb create mode 100644 bindings/ruby/src/spec/models/inline_response_200_1_spec.rb create mode 100644 bindings/ruby/src/spec/models/package_group_spec.rb diff --git a/bindings/java/src/README.md b/bindings/java/src/README.md index 9188de0a..8eaf1f17 100644 --- a/bindings/java/src/README.md +++ b/bindings/java/src/README.md @@ -40,7 +40,7 @@ Add this dependency to your project's POM: io.cloudsmith.api cloudsmith-api - 2.0.18 + 2.0.1 compile ``` @@ -50,7 +50,7 @@ Add this dependency to your project's POM: Add this dependency to your project's build file: ```groovy -compile "io.cloudsmith.api:cloudsmith-api:2.0.18" +compile "io.cloudsmith.api:cloudsmith-api:2.0.1" ``` ### Others @@ -63,7 +63,7 @@ mvn clean package Then manually install the following JARs: -* `target/cloudsmith-api-2.0.18.jar` +* `target/cloudsmith-api-2.0.1.jar` * `target/lib/*.jar` ## Getting Started @@ -220,6 +220,7 @@ Class | Method | HTTP request | Description *PackagesApi* | [**packagesCopy**](docs/PackagesApi.md#packagesCopy) | **POST** /packages/{owner}/{repo}/{identifier}/copy/ | Copy a package to another repository. *PackagesApi* | [**packagesDelete**](docs/PackagesApi.md#packagesDelete) | **DELETE** /packages/{owner}/{repo}/{identifier}/ | Delete a specific package in a repository. *PackagesApi* | [**packagesDependencies**](docs/PackagesApi.md#packagesDependencies) | **GET** /packages/{owner}/{repo}/{identifier}/dependencies/ | Get the list of dependencies for a package. Transitive dependencies are included where supported. +*PackagesApi* | [**packagesGroupsList**](docs/PackagesApi.md#packagesGroupsList) | **GET** /packages/{owner}/{repo}/groups/ | Return a list of Package Groups in a repository. *PackagesApi* | [**packagesList**](docs/PackagesApi.md#packagesList) | **GET** /packages/{owner}/{repo}/ | Get a list of all packages associated with repository. *PackagesApi* | [**packagesMove**](docs/PackagesApi.md#packagesMove) | **POST** /packages/{owner}/{repo}/{identifier}/move/ | Move a package to another repository. *PackagesApi* | [**packagesQuarantine**](docs/PackagesApi.md#packagesQuarantine) | **POST** /packages/{owner}/{repo}/{identifier}/quarantine/ | Quarantine or release a package. @@ -310,6 +311,12 @@ Class | Method | HTTP request | Description *ReposApi* | [**reposRsaList**](docs/ReposApi.md#reposRsaList) | **GET** /repos/{owner}/{identifier}/rsa/ | Retrieve the active RSA key for the Repository. *ReposApi* | [**reposRsaRegenerate**](docs/ReposApi.md#reposRsaRegenerate) | **POST** /repos/{owner}/{identifier}/rsa/regenerate/ | Regenerate RSA Key for the Repository. *ReposApi* | [**reposTransferRegion**](docs/ReposApi.md#reposTransferRegion) | **POST** /repos/{owner}/{repo}/transfer-region/ | Transfer a repository to a different region. +*ReposApi* | [**reposUpstreamCargoCreate**](docs/ReposApi.md#reposUpstreamCargoCreate) | **POST** /repos/{owner}/{identifier}/upstream/cargo/ | Create a Cargo upstream config for this repository. +*ReposApi* | [**reposUpstreamCargoDelete**](docs/ReposApi.md#reposUpstreamCargoDelete) | **DELETE** /repos/{owner}/{identifier}/upstream/cargo/{slug_perm}/ | Delete a Cargo upstream config for this repository. +*ReposApi* | [**reposUpstreamCargoList**](docs/ReposApi.md#reposUpstreamCargoList) | **GET** /repos/{owner}/{identifier}/upstream/cargo/ | List Cargo upstream configs for this repository. +*ReposApi* | [**reposUpstreamCargoPartialUpdate**](docs/ReposApi.md#reposUpstreamCargoPartialUpdate) | **PATCH** /repos/{owner}/{identifier}/upstream/cargo/{slug_perm}/ | Partially update a Cargo upstream config for this repository. +*ReposApi* | [**reposUpstreamCargoRead**](docs/ReposApi.md#reposUpstreamCargoRead) | **GET** /repos/{owner}/{identifier}/upstream/cargo/{slug_perm}/ | Retrieve a Cargo upstream config for this repository. +*ReposApi* | [**reposUpstreamCargoUpdate**](docs/ReposApi.md#reposUpstreamCargoUpdate) | **PUT** /repos/{owner}/{identifier}/upstream/cargo/{slug_perm}/ | Update a Cargo upstream config for this repository. *ReposApi* | [**reposUpstreamComposerCreate**](docs/ReposApi.md#reposUpstreamComposerCreate) | **POST** /repos/{owner}/{identifier}/upstream/composer/ | Create a Composer upstream config for this repository. *ReposApi* | [**reposUpstreamComposerDelete**](docs/ReposApi.md#reposUpstreamComposerDelete) | **DELETE** /repos/{owner}/{identifier}/upstream/composer/{slug_perm}/ | Delete a Composer upstream config for this repository. *ReposApi* | [**reposUpstreamComposerList**](docs/ReposApi.md#reposUpstreamComposerList) | **GET** /repos/{owner}/{identifier}/upstream/composer/ | List Composer upstream configs for this repository. @@ -340,6 +347,12 @@ Class | Method | HTTP request | Description *ReposApi* | [**reposUpstreamDockerPartialUpdate**](docs/ReposApi.md#reposUpstreamDockerPartialUpdate) | **PATCH** /repos/{owner}/{identifier}/upstream/docker/{slug_perm}/ | Partially update a Docker upstream config for this repository. *ReposApi* | [**reposUpstreamDockerRead**](docs/ReposApi.md#reposUpstreamDockerRead) | **GET** /repos/{owner}/{identifier}/upstream/docker/{slug_perm}/ | Retrieve a Docker upstream config for this repository. *ReposApi* | [**reposUpstreamDockerUpdate**](docs/ReposApi.md#reposUpstreamDockerUpdate) | **PUT** /repos/{owner}/{identifier}/upstream/docker/{slug_perm}/ | Update a Docker upstream config for this repository. +*ReposApi* | [**reposUpstreamGoCreate**](docs/ReposApi.md#reposUpstreamGoCreate) | **POST** /repos/{owner}/{identifier}/upstream/go/ | Create a Go upstream config for this repository. +*ReposApi* | [**reposUpstreamGoDelete**](docs/ReposApi.md#reposUpstreamGoDelete) | **DELETE** /repos/{owner}/{identifier}/upstream/go/{slug_perm}/ | Delete a Go upstream config for this repository. +*ReposApi* | [**reposUpstreamGoList**](docs/ReposApi.md#reposUpstreamGoList) | **GET** /repos/{owner}/{identifier}/upstream/go/ | List Go upstream configs for this repository. +*ReposApi* | [**reposUpstreamGoPartialUpdate**](docs/ReposApi.md#reposUpstreamGoPartialUpdate) | **PATCH** /repos/{owner}/{identifier}/upstream/go/{slug_perm}/ | Partially update a Go upstream config for this repository. +*ReposApi* | [**reposUpstreamGoRead**](docs/ReposApi.md#reposUpstreamGoRead) | **GET** /repos/{owner}/{identifier}/upstream/go/{slug_perm}/ | Retrieve a Go upstream config for this repository. +*ReposApi* | [**reposUpstreamGoUpdate**](docs/ReposApi.md#reposUpstreamGoUpdate) | **PUT** /repos/{owner}/{identifier}/upstream/go/{slug_perm}/ | Update a Go upstream config for this repository. *ReposApi* | [**reposUpstreamHelmCreate**](docs/ReposApi.md#reposUpstreamHelmCreate) | **POST** /repos/{owner}/{identifier}/upstream/helm/ | Create a Helm upstream config for this repository. *ReposApi* | [**reposUpstreamHelmDelete**](docs/ReposApi.md#reposUpstreamHelmDelete) | **DELETE** /repos/{owner}/{identifier}/upstream/helm/{slug_perm}/ | Delete a Helm upstream config for this repository. *ReposApi* | [**reposUpstreamHelmList**](docs/ReposApi.md#reposUpstreamHelmList) | **GET** /repos/{owner}/{identifier}/upstream/helm/ | List Helm upstream configs for this repository. @@ -426,6 +439,9 @@ Class | Method | HTTP request | Description - [Architecture](docs/Architecture.md) - [CargoPackageUpload](docs/CargoPackageUpload.md) - [CargoPackageUploadRequest](docs/CargoPackageUploadRequest.md) + - [CargoUpstream](docs/CargoUpstream.md) + - [CargoUpstreamRequest](docs/CargoUpstreamRequest.md) + - [CargoUpstreamRequestPatch](docs/CargoUpstreamRequestPatch.md) - [CocoapodsPackageUpload](docs/CocoapodsPackageUpload.md) - [CocoapodsPackageUploadRequest](docs/CocoapodsPackageUploadRequest.md) - [CommonBandwidthMetrics](docs/CommonBandwidthMetrics.md) @@ -474,6 +490,9 @@ Class | Method | HTTP request | Description - [GeoIpLocation](docs/GeoIpLocation.md) - [GoPackageUpload](docs/GoPackageUpload.md) - [GoPackageUploadRequest](docs/GoPackageUploadRequest.md) + - [GoUpstream](docs/GoUpstream.md) + - [GoUpstreamRequest](docs/GoUpstreamRequest.md) + - [GoUpstreamRequestPatch](docs/GoUpstreamRequestPatch.md) - [HelmPackageUpload](docs/HelmPackageUpload.md) - [HelmPackageUploadRequest](docs/HelmPackageUploadRequest.md) - [HelmUpstream](docs/HelmUpstream.md) @@ -488,6 +507,7 @@ Class | Method | HTTP request | Description - [HistoryFieldset](docs/HistoryFieldset.md) - [HistoryFieldsetRaw](docs/HistoryFieldsetRaw.md) - [InlineResponse200](docs/InlineResponse200.md) + - [InlineResponse2001](docs/InlineResponse2001.md) - [LuarocksPackageUpload](docs/LuarocksPackageUpload.md) - [LuarocksPackageUploadRequest](docs/LuarocksPackageUploadRequest.md) - [MavenPackageUpload](docs/MavenPackageUpload.md) @@ -553,6 +573,7 @@ Class | Method | HTTP request | Description - [PackageFilePartsUpload](docs/PackageFilePartsUpload.md) - [PackageFileUpload](docs/PackageFileUpload.md) - [PackageFileUploadRequest](docs/PackageFileUploadRequest.md) + - [PackageGroup](docs/PackageGroup.md) - [PackageLicensePolicyEvaluationRequest](docs/PackageLicensePolicyEvaluationRequest.md) - [PackageLicensePolicyEvaluationRequestRequest](docs/PackageLicensePolicyEvaluationRequestRequest.md) - [PackageLicensePolicyViolationLog](docs/PackageLicensePolicyViolationLog.md) diff --git a/bindings/java/src/build.gradle b/bindings/java/src/build.gradle index 54d3466e..eed83b1a 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 = '2.0.18' +version = '2.0.1' buildscript { repositories { diff --git a/bindings/java/src/build.json b/bindings/java/src/build.json index a760ab99..5cf97d19 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": "2.0.18", + "artifactVersion": "2.0.1", "artifactDescription": "Cloudsmith API", "dateLibrary": "java8", "developerName": "Cloudsmith Ltd", diff --git a/bindings/java/src/build.sbt b/bindings/java/src/build.sbt index 211fb7a1..76b830a6 100644 --- a/bindings/java/src/build.sbt +++ b/bindings/java/src/build.sbt @@ -2,7 +2,7 @@ lazy val root = (project in file(".")). settings( organization := "io.cloudsmith.api", name := "cloudsmith-api", - version := "2.0.18", + version := "2.0.1", scalaVersion := "2.11.4", scalacOptions ++= Seq("-feature"), javacOptions in compile ++= Seq("-Xlint:deprecation"), diff --git a/bindings/java/src/docs/CargoUpstream.md b/bindings/java/src/docs/CargoUpstream.md new file mode 100644 index 00000000..a9d785e2 --- /dev/null +++ b/bindings/java/src/docs/CargoUpstream.md @@ -0,0 +1,52 @@ + +# CargoUpstream + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**authMode** | [**AuthModeEnum**](#AuthModeEnum) | The authentication mode to use when accessing this upstream. | [optional] +**authSecret** | **String** | Secret to provide with requests to upstream. | [optional] +**authUsername** | **String** | Username to provide with requests to upstream. | [optional] +**createdAt** | [**OffsetDateTime**](OffsetDateTime.md) | The datetime the upstream source was created. | [optional] +**disableReason** | [**DisableReasonEnum**](#DisableReasonEnum) | | [optional] +**extraHeader1** | **String** | The key for extra header #1 to send to upstream. | [optional] +**extraHeader2** | **String** | The key for extra header #2 to send to upstream. | [optional] +**extraValue1** | **String** | The value for extra header #1 to send to upstream. This is stored as plaintext, and is NOT encrypted. | [optional] +**extraValue2** | **String** | The value for extra header #2 to send to upstream. This is stored as plaintext, and is NOT encrypted. | [optional] +**isActive** | **Boolean** | Whether or not this upstream is active and ready for requests. | [optional] +**mode** | [**ModeEnum**](#ModeEnum) | The mode that this upstream should operate in. Upstream sources can be used to proxy resolved packages, as well as operate in a proxy/cache or cache only mode. | [optional] +**name** | **String** | A descriptive name for this upstream source. A shortened version of this name will be used for tagging cached packages retrieved from this upstream. | +**pendingValidation** | **Boolean** | When true, this upstream source is pending validation. | [optional] +**priority** | **java.math.BigInteger** | Upstream sources are selected for resolving requests by sequential order (1..n), followed by creation date. | [optional] +**slugPerm** | **String** | | [optional] +**updatedAt** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] +**upstreamUrl** | **String** | The URL for this upstream source. This must be a fully qualified URL including any path elements required to reach the root of the repository. | +**verifySsl** | **Boolean** | If enabled, SSL certificates are verified when requests are made to this upstream. It's recommended to leave this enabled for all public sources to help mitigate Man-In-The-Middle (MITM) attacks. Please note this only applies to HTTPS upstreams. | [optional] + + + +## Enum: AuthModeEnum +Name | Value +---- | ----- +NONE | "None" +USERNAME_AND_PASSWORD | "Username and Password" + + + +## Enum: DisableReasonEnum +Name | Value +---- | ----- +N_A | "N/A" +UPSTREAM_POINTS_TO_ITS_OWN_REPOSITORY | "Upstream points to its own repository" +MISSING_UPSTREAM_SOURCE | "Missing upstream source" +UPSTREAM_WAS_DISABLED_BY_REQUEST_OF_USER | "Upstream was disabled by request of user" + + + +## Enum: ModeEnum +Name | Value +---- | ----- +PROXY_ONLY | "Proxy Only" + + + diff --git a/bindings/java/src/docs/CargoUpstreamRequest.md b/bindings/java/src/docs/CargoUpstreamRequest.md new file mode 100644 index 00000000..c7fc2ccd --- /dev/null +++ b/bindings/java/src/docs/CargoUpstreamRequest.md @@ -0,0 +1,37 @@ + +# CargoUpstreamRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**authMode** | [**AuthModeEnum**](#AuthModeEnum) | The authentication mode to use when accessing this upstream. | [optional] +**authSecret** | **String** | Secret to provide with requests to upstream. | [optional] +**authUsername** | **String** | Username to provide with requests to upstream. | [optional] +**extraHeader1** | **String** | The key for extra header #1 to send to upstream. | [optional] +**extraHeader2** | **String** | The key for extra header #2 to send to upstream. | [optional] +**extraValue1** | **String** | The value for extra header #1 to send to upstream. This is stored as plaintext, and is NOT encrypted. | [optional] +**extraValue2** | **String** | The value for extra header #2 to send to upstream. This is stored as plaintext, and is NOT encrypted. | [optional] +**isActive** | **Boolean** | Whether or not this upstream is active and ready for requests. | [optional] +**mode** | [**ModeEnum**](#ModeEnum) | The mode that this upstream should operate in. Upstream sources can be used to proxy resolved packages, as well as operate in a proxy/cache or cache only mode. | [optional] +**name** | **String** | A descriptive name for this upstream source. A shortened version of this name will be used for tagging cached packages retrieved from this upstream. | +**priority** | **java.math.BigInteger** | Upstream sources are selected for resolving requests by sequential order (1..n), followed by creation date. | [optional] +**upstreamUrl** | **String** | The URL for this upstream source. This must be a fully qualified URL including any path elements required to reach the root of the repository. | +**verifySsl** | **Boolean** | If enabled, SSL certificates are verified when requests are made to this upstream. It's recommended to leave this enabled for all public sources to help mitigate Man-In-The-Middle (MITM) attacks. Please note this only applies to HTTPS upstreams. | [optional] + + + +## Enum: AuthModeEnum +Name | Value +---- | ----- +NONE | "None" +USERNAME_AND_PASSWORD | "Username and Password" + + + +## Enum: ModeEnum +Name | Value +---- | ----- +PROXY_ONLY | "Proxy Only" + + + diff --git a/bindings/java/src/docs/CargoUpstreamRequestPatch.md b/bindings/java/src/docs/CargoUpstreamRequestPatch.md new file mode 100644 index 00000000..05287d08 --- /dev/null +++ b/bindings/java/src/docs/CargoUpstreamRequestPatch.md @@ -0,0 +1,37 @@ + +# CargoUpstreamRequestPatch + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**authMode** | [**AuthModeEnum**](#AuthModeEnum) | The authentication mode to use when accessing this upstream. | [optional] +**authSecret** | **String** | Secret to provide with requests to upstream. | [optional] +**authUsername** | **String** | Username to provide with requests to upstream. | [optional] +**extraHeader1** | **String** | The key for extra header #1 to send to upstream. | [optional] +**extraHeader2** | **String** | The key for extra header #2 to send to upstream. | [optional] +**extraValue1** | **String** | The value for extra header #1 to send to upstream. This is stored as plaintext, and is NOT encrypted. | [optional] +**extraValue2** | **String** | The value for extra header #2 to send to upstream. This is stored as plaintext, and is NOT encrypted. | [optional] +**isActive** | **Boolean** | Whether or not this upstream is active and ready for requests. | [optional] +**mode** | [**ModeEnum**](#ModeEnum) | The mode that this upstream should operate in. Upstream sources can be used to proxy resolved packages, as well as operate in a proxy/cache or cache only mode. | [optional] +**name** | **String** | A descriptive name for this upstream source. A shortened version of this name will be used for tagging cached packages retrieved from this upstream. | [optional] +**priority** | **java.math.BigInteger** | Upstream sources are selected for resolving requests by sequential order (1..n), followed by creation date. | [optional] +**upstreamUrl** | **String** | The URL for this upstream source. This must be a fully qualified URL including any path elements required to reach the root of the repository. | [optional] +**verifySsl** | **Boolean** | If enabled, SSL certificates are verified when requests are made to this upstream. It's recommended to leave this enabled for all public sources to help mitigate Man-In-The-Middle (MITM) attacks. Please note this only applies to HTTPS upstreams. | [optional] + + + +## Enum: AuthModeEnum +Name | Value +---- | ----- +NONE | "None" +USERNAME_AND_PASSWORD | "Username and Password" + + + +## Enum: ModeEnum +Name | Value +---- | ----- +PROXY_ONLY | "Proxy Only" + + + diff --git a/bindings/java/src/docs/GoUpstream.md b/bindings/java/src/docs/GoUpstream.md new file mode 100644 index 00000000..d723c0ee --- /dev/null +++ b/bindings/java/src/docs/GoUpstream.md @@ -0,0 +1,52 @@ + +# GoUpstream + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**authMode** | [**AuthModeEnum**](#AuthModeEnum) | The authentication mode to use when accessing this upstream. | [optional] +**authSecret** | **String** | Secret to provide with requests to upstream. | [optional] +**authUsername** | **String** | Username to provide with requests to upstream. | [optional] +**createdAt** | [**OffsetDateTime**](OffsetDateTime.md) | The datetime the upstream source was created. | [optional] +**disableReason** | [**DisableReasonEnum**](#DisableReasonEnum) | | [optional] +**extraHeader1** | **String** | The key for extra header #1 to send to upstream. | [optional] +**extraHeader2** | **String** | The key for extra header #2 to send to upstream. | [optional] +**extraValue1** | **String** | The value for extra header #1 to send to upstream. This is stored as plaintext, and is NOT encrypted. | [optional] +**extraValue2** | **String** | The value for extra header #2 to send to upstream. This is stored as plaintext, and is NOT encrypted. | [optional] +**isActive** | **Boolean** | Whether or not this upstream is active and ready for requests. | [optional] +**mode** | [**ModeEnum**](#ModeEnum) | The mode that this upstream should operate in. Upstream sources can be used to proxy resolved packages, as well as operate in a proxy/cache or cache only mode. | [optional] +**name** | **String** | A descriptive name for this upstream source. A shortened version of this name will be used for tagging cached packages retrieved from this upstream. | +**pendingValidation** | **Boolean** | When true, this upstream source is pending validation. | [optional] +**priority** | **java.math.BigInteger** | Upstream sources are selected for resolving requests by sequential order (1..n), followed by creation date. | [optional] +**slugPerm** | **String** | | [optional] +**updatedAt** | [**OffsetDateTime**](OffsetDateTime.md) | | [optional] +**upstreamUrl** | **String** | The URL for this upstream source. This must be a fully qualified URL including any path elements required to reach the root of the repository. | +**verifySsl** | **Boolean** | If enabled, SSL certificates are verified when requests are made to this upstream. It's recommended to leave this enabled for all public sources to help mitigate Man-In-The-Middle (MITM) attacks. Please note this only applies to HTTPS upstreams. | [optional] + + + +## Enum: AuthModeEnum +Name | Value +---- | ----- +NONE | "None" +USERNAME_AND_PASSWORD | "Username and Password" + + + +## Enum: DisableReasonEnum +Name | Value +---- | ----- +N_A | "N/A" +UPSTREAM_POINTS_TO_ITS_OWN_REPOSITORY | "Upstream points to its own repository" +MISSING_UPSTREAM_SOURCE | "Missing upstream source" +UPSTREAM_WAS_DISABLED_BY_REQUEST_OF_USER | "Upstream was disabled by request of user" + + + +## Enum: ModeEnum +Name | Value +---- | ----- +PROXY_ONLY | "Proxy Only" + + + diff --git a/bindings/java/src/docs/GoUpstreamRequest.md b/bindings/java/src/docs/GoUpstreamRequest.md new file mode 100644 index 00000000..705a442d --- /dev/null +++ b/bindings/java/src/docs/GoUpstreamRequest.md @@ -0,0 +1,37 @@ + +# GoUpstreamRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**authMode** | [**AuthModeEnum**](#AuthModeEnum) | The authentication mode to use when accessing this upstream. | [optional] +**authSecret** | **String** | Secret to provide with requests to upstream. | [optional] +**authUsername** | **String** | Username to provide with requests to upstream. | [optional] +**extraHeader1** | **String** | The key for extra header #1 to send to upstream. | [optional] +**extraHeader2** | **String** | The key for extra header #2 to send to upstream. | [optional] +**extraValue1** | **String** | The value for extra header #1 to send to upstream. This is stored as plaintext, and is NOT encrypted. | [optional] +**extraValue2** | **String** | The value for extra header #2 to send to upstream. This is stored as plaintext, and is NOT encrypted. | [optional] +**isActive** | **Boolean** | Whether or not this upstream is active and ready for requests. | [optional] +**mode** | [**ModeEnum**](#ModeEnum) | The mode that this upstream should operate in. Upstream sources can be used to proxy resolved packages, as well as operate in a proxy/cache or cache only mode. | [optional] +**name** | **String** | A descriptive name for this upstream source. A shortened version of this name will be used for tagging cached packages retrieved from this upstream. | +**priority** | **java.math.BigInteger** | Upstream sources are selected for resolving requests by sequential order (1..n), followed by creation date. | [optional] +**upstreamUrl** | **String** | The URL for this upstream source. This must be a fully qualified URL including any path elements required to reach the root of the repository. | +**verifySsl** | **Boolean** | If enabled, SSL certificates are verified when requests are made to this upstream. It's recommended to leave this enabled for all public sources to help mitigate Man-In-The-Middle (MITM) attacks. Please note this only applies to HTTPS upstreams. | [optional] + + + +## Enum: AuthModeEnum +Name | Value +---- | ----- +NONE | "None" +USERNAME_AND_PASSWORD | "Username and Password" + + + +## Enum: ModeEnum +Name | Value +---- | ----- +PROXY_ONLY | "Proxy Only" + + + diff --git a/bindings/java/src/docs/GoUpstreamRequestPatch.md b/bindings/java/src/docs/GoUpstreamRequestPatch.md new file mode 100644 index 00000000..8983ac58 --- /dev/null +++ b/bindings/java/src/docs/GoUpstreamRequestPatch.md @@ -0,0 +1,37 @@ + +# GoUpstreamRequestPatch + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**authMode** | [**AuthModeEnum**](#AuthModeEnum) | The authentication mode to use when accessing this upstream. | [optional] +**authSecret** | **String** | Secret to provide with requests to upstream. | [optional] +**authUsername** | **String** | Username to provide with requests to upstream. | [optional] +**extraHeader1** | **String** | The key for extra header #1 to send to upstream. | [optional] +**extraHeader2** | **String** | The key for extra header #2 to send to upstream. | [optional] +**extraValue1** | **String** | The value for extra header #1 to send to upstream. This is stored as plaintext, and is NOT encrypted. | [optional] +**extraValue2** | **String** | The value for extra header #2 to send to upstream. This is stored as plaintext, and is NOT encrypted. | [optional] +**isActive** | **Boolean** | Whether or not this upstream is active and ready for requests. | [optional] +**mode** | [**ModeEnum**](#ModeEnum) | The mode that this upstream should operate in. Upstream sources can be used to proxy resolved packages, as well as operate in a proxy/cache or cache only mode. | [optional] +**name** | **String** | A descriptive name for this upstream source. A shortened version of this name will be used for tagging cached packages retrieved from this upstream. | [optional] +**priority** | **java.math.BigInteger** | Upstream sources are selected for resolving requests by sequential order (1..n), followed by creation date. | [optional] +**upstreamUrl** | **String** | The URL for this upstream source. This must be a fully qualified URL including any path elements required to reach the root of the repository. | [optional] +**verifySsl** | **Boolean** | If enabled, SSL certificates are verified when requests are made to this upstream. It's recommended to leave this enabled for all public sources to help mitigate Man-In-The-Middle (MITM) attacks. Please note this only applies to HTTPS upstreams. | [optional] + + + +## Enum: AuthModeEnum +Name | Value +---- | ----- +NONE | "None" +USERNAME_AND_PASSWORD | "Username and Password" + + + +## Enum: ModeEnum +Name | Value +---- | ----- +PROXY_ONLY | "Proxy Only" + + + diff --git a/bindings/java/src/docs/InlineResponse200.md b/bindings/java/src/docs/InlineResponse200.md index 48f16c61..cb84fb23 100644 --- a/bindings/java/src/docs/InlineResponse200.md +++ b/bindings/java/src/docs/InlineResponse200.md @@ -4,7 +4,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**results** | [**List<UserAuthenticationToken>**](UserAuthenticationToken.md) | | +**results** | [**List<PackageGroup>**](PackageGroup.md) | | diff --git a/bindings/java/src/docs/InlineResponse2001.md b/bindings/java/src/docs/InlineResponse2001.md new file mode 100644 index 00000000..bb05bd23 --- /dev/null +++ b/bindings/java/src/docs/InlineResponse2001.md @@ -0,0 +1,10 @@ + +# InlineResponse2001 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**results** | [**List<UserAuthenticationToken>**](UserAuthenticationToken.md) | | + + + diff --git a/bindings/java/src/docs/PackageGroup.md b/bindings/java/src/docs/PackageGroup.md new file mode 100644 index 00000000..d015cdd6 --- /dev/null +++ b/bindings/java/src/docs/PackageGroup.md @@ -0,0 +1,15 @@ + +# PackageGroup + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**backendKind** | **java.math.BigInteger** | | [optional] +**count** | **java.math.BigInteger** | | +**lastPush** | [**OffsetDateTime**](OffsetDateTime.md) | | +**name** | **String** | | [optional] +**numDownloads** | **java.math.BigInteger** | | +**size** | **java.math.BigInteger** | | + + + diff --git a/bindings/java/src/docs/PackagesApi.md b/bindings/java/src/docs/PackagesApi.md index 4583f530..6508f6ed 100644 --- a/bindings/java/src/docs/PackagesApi.md +++ b/bindings/java/src/docs/PackagesApi.md @@ -7,6 +7,7 @@ Method | HTTP request | Description [**packagesCopy**](PackagesApi.md#packagesCopy) | **POST** /packages/{owner}/{repo}/{identifier}/copy/ | Copy a package to another repository. [**packagesDelete**](PackagesApi.md#packagesDelete) | **DELETE** /packages/{owner}/{repo}/{identifier}/ | Delete a specific package in a repository. [**packagesDependencies**](PackagesApi.md#packagesDependencies) | **GET** /packages/{owner}/{repo}/{identifier}/dependencies/ | Get the list of dependencies for a package. Transitive dependencies are included where supported. +[**packagesGroupsList**](PackagesApi.md#packagesGroupsList) | **GET** /packages/{owner}/{repo}/groups/ | Return a list of Package Groups in a repository. [**packagesList**](PackagesApi.md#packagesList) | **GET** /packages/{owner}/{repo}/ | Get a list of all packages associated with repository. [**packagesMove**](PackagesApi.md#packagesMove) | **POST** /packages/{owner}/{repo}/{identifier}/move/ | Move a package to another repository. [**packagesQuarantine**](PackagesApi.md#packagesQuarantine) | **POST** /packages/{owner}/{repo}/{identifier}/quarantine/ | Quarantine or release a package. @@ -255,6 +256,78 @@ Name | Type | Description | Notes [apikey](../README.md#apikey), [basic](../README.md#basic) +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **packagesGroupsList** +> InlineResponse200 packagesGroupsList(owner, repo, page, pageSize, groupBy, query, sort) + +Return a list of Package Groups in a repository. + +Return a list of Package Groups in a repository. + +### Example +```java +// Import classes: +//import io.cloudsmith.api.ApiClient; +//import io.cloudsmith.api.ApiException; +//import io.cloudsmith.api.Configuration; +//import io.cloudsmith.api.auth.*; +//import io.cloudsmith.api.apis.PackagesApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: apikey +ApiKeyAuth apikey = (ApiKeyAuth) defaultClient.getAuthentication("apikey"); +apikey.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//apikey.setApiKeyPrefix("Token"); + +// Configure HTTP basic authorization: basic +HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic"); +basic.setUsername("YOUR USERNAME"); +basic.setPassword("YOUR PASSWORD"); + +PackagesApi apiInstance = new PackagesApi(); +String owner = "owner_example"; // String | +String repo = "repo_example"; // String | +java.math.BigInteger page = new java.math.BigInteger(); // java.math.BigInteger | A page number within the paginated result set. +java.math.BigInteger pageSize = new java.math.BigInteger(); // java.math.BigInteger | Number of results to return per page. +String groupBy = "name"; // String | A field to group packages by. Available options: name, backend_kind. +String query = ""; // String | A search term for querying names, filenames, versions, distributions, architectures, formats, or statuses of packages. +String sort = "name"; // String | A field for sorting objects in ascending or descending order. Use `-` prefix for descending order (e.g., `-name`). Available options: name, count, num_downloads, size, last_push, backend_kind. +try { + InlineResponse200 result = apiInstance.packagesGroupsList(owner, repo, page, pageSize, groupBy, query, sort); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling PackagesApi#packagesGroupsList"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| | + **repo** | **String**| | + **page** | **java.math.BigInteger**| A page number within the paginated result set. | [optional] + **pageSize** | **java.math.BigInteger**| Number of results to return per page. | [optional] + **groupBy** | **String**| A field to group packages by. Available options: name, backend_kind. | [optional] [default to name] + **query** | **String**| A search term for querying names, filenames, versions, distributions, architectures, formats, or statuses of packages. | [optional] [default to ] + **sort** | **String**| A field for sorting objects in ascending or descending order. Use `-` prefix for descending order (e.g., `-name`). Available options: name, count, num_downloads, size, last_push, backend_kind. | [optional] [default to name] + +### Return type + +[**InlineResponse200**](InlineResponse200.md) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + ### HTTP request headers - **Content-Type**: application/json diff --git a/bindings/java/src/docs/ReposApi.md b/bindings/java/src/docs/ReposApi.md index bea19b2c..1b96dabc 100644 --- a/bindings/java/src/docs/ReposApi.md +++ b/bindings/java/src/docs/ReposApi.md @@ -31,6 +31,12 @@ Method | HTTP request | Description [**reposRsaList**](ReposApi.md#reposRsaList) | **GET** /repos/{owner}/{identifier}/rsa/ | Retrieve the active RSA key for the Repository. [**reposRsaRegenerate**](ReposApi.md#reposRsaRegenerate) | **POST** /repos/{owner}/{identifier}/rsa/regenerate/ | Regenerate RSA Key for the Repository. [**reposTransferRegion**](ReposApi.md#reposTransferRegion) | **POST** /repos/{owner}/{repo}/transfer-region/ | Transfer a repository to a different region. +[**reposUpstreamCargoCreate**](ReposApi.md#reposUpstreamCargoCreate) | **POST** /repos/{owner}/{identifier}/upstream/cargo/ | Create a Cargo upstream config for this repository. +[**reposUpstreamCargoDelete**](ReposApi.md#reposUpstreamCargoDelete) | **DELETE** /repos/{owner}/{identifier}/upstream/cargo/{slug_perm}/ | Delete a Cargo upstream config for this repository. +[**reposUpstreamCargoList**](ReposApi.md#reposUpstreamCargoList) | **GET** /repos/{owner}/{identifier}/upstream/cargo/ | List Cargo upstream configs for this repository. +[**reposUpstreamCargoPartialUpdate**](ReposApi.md#reposUpstreamCargoPartialUpdate) | **PATCH** /repos/{owner}/{identifier}/upstream/cargo/{slug_perm}/ | Partially update a Cargo upstream config for this repository. +[**reposUpstreamCargoRead**](ReposApi.md#reposUpstreamCargoRead) | **GET** /repos/{owner}/{identifier}/upstream/cargo/{slug_perm}/ | Retrieve a Cargo upstream config for this repository. +[**reposUpstreamCargoUpdate**](ReposApi.md#reposUpstreamCargoUpdate) | **PUT** /repos/{owner}/{identifier}/upstream/cargo/{slug_perm}/ | Update a Cargo upstream config for this repository. [**reposUpstreamComposerCreate**](ReposApi.md#reposUpstreamComposerCreate) | **POST** /repos/{owner}/{identifier}/upstream/composer/ | Create a Composer upstream config for this repository. [**reposUpstreamComposerDelete**](ReposApi.md#reposUpstreamComposerDelete) | **DELETE** /repos/{owner}/{identifier}/upstream/composer/{slug_perm}/ | Delete a Composer upstream config for this repository. [**reposUpstreamComposerList**](ReposApi.md#reposUpstreamComposerList) | **GET** /repos/{owner}/{identifier}/upstream/composer/ | List Composer upstream configs for this repository. @@ -61,6 +67,12 @@ Method | HTTP request | Description [**reposUpstreamDockerPartialUpdate**](ReposApi.md#reposUpstreamDockerPartialUpdate) | **PATCH** /repos/{owner}/{identifier}/upstream/docker/{slug_perm}/ | Partially update a Docker upstream config for this repository. [**reposUpstreamDockerRead**](ReposApi.md#reposUpstreamDockerRead) | **GET** /repos/{owner}/{identifier}/upstream/docker/{slug_perm}/ | Retrieve a Docker upstream config for this repository. [**reposUpstreamDockerUpdate**](ReposApi.md#reposUpstreamDockerUpdate) | **PUT** /repos/{owner}/{identifier}/upstream/docker/{slug_perm}/ | Update a Docker upstream config for this repository. +[**reposUpstreamGoCreate**](ReposApi.md#reposUpstreamGoCreate) | **POST** /repos/{owner}/{identifier}/upstream/go/ | Create a Go upstream config for this repository. +[**reposUpstreamGoDelete**](ReposApi.md#reposUpstreamGoDelete) | **DELETE** /repos/{owner}/{identifier}/upstream/go/{slug_perm}/ | Delete a Go upstream config for this repository. +[**reposUpstreamGoList**](ReposApi.md#reposUpstreamGoList) | **GET** /repos/{owner}/{identifier}/upstream/go/ | List Go upstream configs for this repository. +[**reposUpstreamGoPartialUpdate**](ReposApi.md#reposUpstreamGoPartialUpdate) | **PATCH** /repos/{owner}/{identifier}/upstream/go/{slug_perm}/ | Partially update a Go upstream config for this repository. +[**reposUpstreamGoRead**](ReposApi.md#reposUpstreamGoRead) | **GET** /repos/{owner}/{identifier}/upstream/go/{slug_perm}/ | Retrieve a Go upstream config for this repository. +[**reposUpstreamGoUpdate**](ReposApi.md#reposUpstreamGoUpdate) | **PUT** /repos/{owner}/{identifier}/upstream/go/{slug_perm}/ | Update a Go upstream config for this repository. [**reposUpstreamHelmCreate**](ReposApi.md#reposUpstreamHelmCreate) | **POST** /repos/{owner}/{identifier}/upstream/helm/ | Create a Helm upstream config for this repository. [**reposUpstreamHelmDelete**](ReposApi.md#reposUpstreamHelmDelete) | **DELETE** /repos/{owner}/{identifier}/upstream/helm/{slug_perm}/ | Delete a Helm upstream config for this repository. [**reposUpstreamHelmList**](ReposApi.md#reposUpstreamHelmList) | **GET** /repos/{owner}/{identifier}/upstream/helm/ | List Helm upstream configs for this repository. @@ -1820,13 +1832,13 @@ null (empty response body) - **Content-Type**: application/json - **Accept**: application/json - -# **reposUpstreamComposerCreate** -> ComposerUpstream reposUpstreamComposerCreate(owner, identifier, data) + +# **reposUpstreamCargoCreate** +> CargoUpstream reposUpstreamCargoCreate(owner, identifier, data) -Create a Composer upstream config for this repository. +Create a Cargo upstream config for this repository. -Create a Composer upstream config for this repository. +Create a Cargo upstream config for this repository. ### Example ```java @@ -1853,12 +1865,12 @@ basic.setPassword("YOUR PASSWORD"); ReposApi apiInstance = new ReposApi(); String owner = "owner_example"; // String | String identifier = "identifier_example"; // String | -ComposerUpstreamRequest data = new ComposerUpstreamRequest(); // ComposerUpstreamRequest | +CargoUpstreamRequest data = new CargoUpstreamRequest(); // CargoUpstreamRequest | try { - ComposerUpstream result = apiInstance.reposUpstreamComposerCreate(owner, identifier, data); + CargoUpstream result = apiInstance.reposUpstreamCargoCreate(owner, identifier, data); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ReposApi#reposUpstreamComposerCreate"); + System.err.println("Exception when calling ReposApi#reposUpstreamCargoCreate"); e.printStackTrace(); } ``` @@ -1869,11 +1881,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **owner** | **String**| | **identifier** | **String**| | - **data** | [**ComposerUpstreamRequest**](ComposerUpstreamRequest.md)| | [optional] + **data** | [**CargoUpstreamRequest**](CargoUpstreamRequest.md)| | [optional] ### Return type -[**ComposerUpstream**](ComposerUpstream.md) +[**CargoUpstream**](CargoUpstream.md) ### Authorization @@ -1884,13 +1896,13 @@ Name | Type | Description | Notes - **Content-Type**: application/json - **Accept**: application/json - -# **reposUpstreamComposerDelete** -> reposUpstreamComposerDelete(owner, identifier, slugPerm) + +# **reposUpstreamCargoDelete** +> reposUpstreamCargoDelete(owner, identifier, slugPerm) -Delete a Composer upstream config for this repository. +Delete a Cargo upstream config for this repository. -Delete a Composer upstream config for this repository. +Delete a Cargo upstream config for this repository. ### Example ```java @@ -1919,9 +1931,9 @@ String owner = "owner_example"; // String | String identifier = "identifier_example"; // String | String slugPerm = "slugPerm_example"; // String | try { - apiInstance.reposUpstreamComposerDelete(owner, identifier, slugPerm); + apiInstance.reposUpstreamCargoDelete(owner, identifier, slugPerm); } catch (ApiException e) { - System.err.println("Exception when calling ReposApi#reposUpstreamComposerDelete"); + System.err.println("Exception when calling ReposApi#reposUpstreamCargoDelete"); e.printStackTrace(); } ``` @@ -1947,13 +1959,13 @@ null (empty response body) - **Content-Type**: application/json - **Accept**: application/json - -# **reposUpstreamComposerList** -> List<ComposerUpstream> reposUpstreamComposerList(owner, identifier, page, pageSize) + +# **reposUpstreamCargoList** +> List<CargoUpstream> reposUpstreamCargoList(owner, identifier, page, pageSize) -List Composer upstream configs for this repository. +List Cargo upstream configs for this repository. -List Composer upstream configs for this repository. +List Cargo upstream configs for this repository. ### Example ```java @@ -1983,10 +1995,10 @@ String identifier = "identifier_example"; // String | java.math.BigInteger page = new java.math.BigInteger(); // java.math.BigInteger | A page number within the paginated result set. java.math.BigInteger pageSize = new java.math.BigInteger(); // java.math.BigInteger | Number of results to return per page. try { - List result = apiInstance.reposUpstreamComposerList(owner, identifier, page, pageSize); + List result = apiInstance.reposUpstreamCargoList(owner, identifier, page, pageSize); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ReposApi#reposUpstreamComposerList"); + System.err.println("Exception when calling ReposApi#reposUpstreamCargoList"); e.printStackTrace(); } ``` @@ -2002,7 +2014,7 @@ Name | Type | Description | Notes ### Return type -[**List<ComposerUpstream>**](ComposerUpstream.md) +[**List<CargoUpstream>**](CargoUpstream.md) ### Authorization @@ -2013,13 +2025,13 @@ Name | Type | Description | Notes - **Content-Type**: application/json - **Accept**: application/json - -# **reposUpstreamComposerPartialUpdate** -> ComposerUpstream reposUpstreamComposerPartialUpdate(owner, identifier, slugPerm, data) + +# **reposUpstreamCargoPartialUpdate** +> CargoUpstream reposUpstreamCargoPartialUpdate(owner, identifier, slugPerm, data) -Partially update a Composer upstream config for this repository. +Partially update a Cargo upstream config for this repository. -Partially update a Composer upstream config for this repository. +Partially update a Cargo upstream config for this repository. ### Example ```java @@ -2047,12 +2059,12 @@ ReposApi apiInstance = new ReposApi(); String owner = "owner_example"; // String | String identifier = "identifier_example"; // String | String slugPerm = "slugPerm_example"; // String | -ComposerUpstreamRequestPatch data = new ComposerUpstreamRequestPatch(); // ComposerUpstreamRequestPatch | +CargoUpstreamRequestPatch data = new CargoUpstreamRequestPatch(); // CargoUpstreamRequestPatch | try { - ComposerUpstream result = apiInstance.reposUpstreamComposerPartialUpdate(owner, identifier, slugPerm, data); + CargoUpstream result = apiInstance.reposUpstreamCargoPartialUpdate(owner, identifier, slugPerm, data); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ReposApi#reposUpstreamComposerPartialUpdate"); + System.err.println("Exception when calling ReposApi#reposUpstreamCargoPartialUpdate"); e.printStackTrace(); } ``` @@ -2064,11 +2076,11 @@ Name | Type | Description | Notes **owner** | **String**| | **identifier** | **String**| | **slugPerm** | **String**| | - **data** | [**ComposerUpstreamRequestPatch**](ComposerUpstreamRequestPatch.md)| | [optional] + **data** | [**CargoUpstreamRequestPatch**](CargoUpstreamRequestPatch.md)| | [optional] ### Return type -[**ComposerUpstream**](ComposerUpstream.md) +[**CargoUpstream**](CargoUpstream.md) ### Authorization @@ -2079,13 +2091,13 @@ Name | Type | Description | Notes - **Content-Type**: application/json - **Accept**: application/json - -# **reposUpstreamComposerRead** -> ComposerUpstream reposUpstreamComposerRead(owner, identifier, slugPerm) + +# **reposUpstreamCargoRead** +> CargoUpstream reposUpstreamCargoRead(owner, identifier, slugPerm) -Retrieve a Composer upstream config for this repository. +Retrieve a Cargo upstream config for this repository. -Retrieve a Composer upstream config for this repository. +Retrieve a Cargo upstream config for this repository. ### Example ```java @@ -2114,10 +2126,10 @@ String owner = "owner_example"; // String | String identifier = "identifier_example"; // String | String slugPerm = "slugPerm_example"; // String | try { - ComposerUpstream result = apiInstance.reposUpstreamComposerRead(owner, identifier, slugPerm); + CargoUpstream result = apiInstance.reposUpstreamCargoRead(owner, identifier, slugPerm); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ReposApi#reposUpstreamComposerRead"); + System.err.println("Exception when calling ReposApi#reposUpstreamCargoRead"); e.printStackTrace(); } ``` @@ -2132,7 +2144,7 @@ Name | Type | Description | Notes ### Return type -[**ComposerUpstream**](ComposerUpstream.md) +[**CargoUpstream**](CargoUpstream.md) ### Authorization @@ -2143,13 +2155,13 @@ Name | Type | Description | Notes - **Content-Type**: application/json - **Accept**: application/json - -# **reposUpstreamComposerUpdate** -> ComposerUpstream reposUpstreamComposerUpdate(owner, identifier, slugPerm, data) + +# **reposUpstreamCargoUpdate** +> CargoUpstream reposUpstreamCargoUpdate(owner, identifier, slugPerm, data) -Update a Composer upstream config for this repository. +Update a Cargo upstream config for this repository. -Update a Composer upstream config for this repository. +Update a Cargo upstream config for this repository. ### Example ```java @@ -2177,12 +2189,12 @@ ReposApi apiInstance = new ReposApi(); String owner = "owner_example"; // String | String identifier = "identifier_example"; // String | String slugPerm = "slugPerm_example"; // String | -ComposerUpstreamRequest data = new ComposerUpstreamRequest(); // ComposerUpstreamRequest | +CargoUpstreamRequest data = new CargoUpstreamRequest(); // CargoUpstreamRequest | try { - ComposerUpstream result = apiInstance.reposUpstreamComposerUpdate(owner, identifier, slugPerm, data); + CargoUpstream result = apiInstance.reposUpstreamCargoUpdate(owner, identifier, slugPerm, data); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ReposApi#reposUpstreamComposerUpdate"); + System.err.println("Exception when calling ReposApi#reposUpstreamCargoUpdate"); e.printStackTrace(); } ``` @@ -2194,11 +2206,11 @@ Name | Type | Description | Notes **owner** | **String**| | **identifier** | **String**| | **slugPerm** | **String**| | - **data** | [**ComposerUpstreamRequest**](ComposerUpstreamRequest.md)| | [optional] + **data** | [**CargoUpstreamRequest**](CargoUpstreamRequest.md)| | [optional] ### Return type -[**ComposerUpstream**](ComposerUpstream.md) +[**CargoUpstream**](CargoUpstream.md) ### Authorization @@ -2209,13 +2221,13 @@ Name | Type | Description | Notes - **Content-Type**: application/json - **Accept**: application/json - -# **reposUpstreamCranCreate** -> CranUpstream reposUpstreamCranCreate(owner, identifier, data) + +# **reposUpstreamComposerCreate** +> ComposerUpstream reposUpstreamComposerCreate(owner, identifier, data) -Create a CRAN upstream config for this repository. +Create a Composer upstream config for this repository. -Create a CRAN upstream config for this repository. +Create a Composer upstream config for this repository. ### Example ```java @@ -2242,12 +2254,12 @@ basic.setPassword("YOUR PASSWORD"); ReposApi apiInstance = new ReposApi(); String owner = "owner_example"; // String | String identifier = "identifier_example"; // String | -CranUpstreamRequest data = new CranUpstreamRequest(); // CranUpstreamRequest | +ComposerUpstreamRequest data = new ComposerUpstreamRequest(); // ComposerUpstreamRequest | try { - CranUpstream result = apiInstance.reposUpstreamCranCreate(owner, identifier, data); + ComposerUpstream result = apiInstance.reposUpstreamComposerCreate(owner, identifier, data); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ReposApi#reposUpstreamCranCreate"); + System.err.println("Exception when calling ReposApi#reposUpstreamComposerCreate"); e.printStackTrace(); } ``` @@ -2258,11 +2270,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **owner** | **String**| | **identifier** | **String**| | - **data** | [**CranUpstreamRequest**](CranUpstreamRequest.md)| | [optional] + **data** | [**ComposerUpstreamRequest**](ComposerUpstreamRequest.md)| | [optional] ### Return type -[**CranUpstream**](CranUpstream.md) +[**ComposerUpstream**](ComposerUpstream.md) ### Authorization @@ -2273,13 +2285,13 @@ Name | Type | Description | Notes - **Content-Type**: application/json - **Accept**: application/json - -# **reposUpstreamCranDelete** -> reposUpstreamCranDelete(owner, identifier, slugPerm) + +# **reposUpstreamComposerDelete** +> reposUpstreamComposerDelete(owner, identifier, slugPerm) -Delete a CRAN upstream config for this repository. +Delete a Composer upstream config for this repository. -Delete a CRAN upstream config for this repository. +Delete a Composer upstream config for this repository. ### Example ```java @@ -2308,9 +2320,9 @@ String owner = "owner_example"; // String | String identifier = "identifier_example"; // String | String slugPerm = "slugPerm_example"; // String | try { - apiInstance.reposUpstreamCranDelete(owner, identifier, slugPerm); + apiInstance.reposUpstreamComposerDelete(owner, identifier, slugPerm); } catch (ApiException e) { - System.err.println("Exception when calling ReposApi#reposUpstreamCranDelete"); + System.err.println("Exception when calling ReposApi#reposUpstreamComposerDelete"); e.printStackTrace(); } ``` @@ -2336,13 +2348,13 @@ null (empty response body) - **Content-Type**: application/json - **Accept**: application/json - -# **reposUpstreamCranList** -> List<CranUpstream> reposUpstreamCranList(owner, identifier, page, pageSize) + +# **reposUpstreamComposerList** +> List<ComposerUpstream> reposUpstreamComposerList(owner, identifier, page, pageSize) -List CRAN upstream configs for this repository. +List Composer upstream configs for this repository. -List CRAN upstream configs for this repository. +List Composer upstream configs for this repository. ### Example ```java @@ -2372,10 +2384,10 @@ String identifier = "identifier_example"; // String | java.math.BigInteger page = new java.math.BigInteger(); // java.math.BigInteger | A page number within the paginated result set. java.math.BigInteger pageSize = new java.math.BigInteger(); // java.math.BigInteger | Number of results to return per page. try { - List result = apiInstance.reposUpstreamCranList(owner, identifier, page, pageSize); + List result = apiInstance.reposUpstreamComposerList(owner, identifier, page, pageSize); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ReposApi#reposUpstreamCranList"); + System.err.println("Exception when calling ReposApi#reposUpstreamComposerList"); e.printStackTrace(); } ``` @@ -2391,7 +2403,7 @@ Name | Type | Description | Notes ### Return type -[**List<CranUpstream>**](CranUpstream.md) +[**List<ComposerUpstream>**](ComposerUpstream.md) ### Authorization @@ -2402,13 +2414,13 @@ Name | Type | Description | Notes - **Content-Type**: application/json - **Accept**: application/json - -# **reposUpstreamCranPartialUpdate** -> CranUpstream reposUpstreamCranPartialUpdate(owner, identifier, slugPerm, data) + +# **reposUpstreamComposerPartialUpdate** +> ComposerUpstream reposUpstreamComposerPartialUpdate(owner, identifier, slugPerm, data) -Partially update a CRAN upstream config for this repository. +Partially update a Composer upstream config for this repository. -Partially update a CRAN upstream config for this repository. +Partially update a Composer upstream config for this repository. ### Example ```java @@ -2436,12 +2448,12 @@ ReposApi apiInstance = new ReposApi(); String owner = "owner_example"; // String | String identifier = "identifier_example"; // String | String slugPerm = "slugPerm_example"; // String | -CranUpstreamRequestPatch data = new CranUpstreamRequestPatch(); // CranUpstreamRequestPatch | +ComposerUpstreamRequestPatch data = new ComposerUpstreamRequestPatch(); // ComposerUpstreamRequestPatch | try { - CranUpstream result = apiInstance.reposUpstreamCranPartialUpdate(owner, identifier, slugPerm, data); + ComposerUpstream result = apiInstance.reposUpstreamComposerPartialUpdate(owner, identifier, slugPerm, data); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ReposApi#reposUpstreamCranPartialUpdate"); + System.err.println("Exception when calling ReposApi#reposUpstreamComposerPartialUpdate"); e.printStackTrace(); } ``` @@ -2453,11 +2465,11 @@ Name | Type | Description | Notes **owner** | **String**| | **identifier** | **String**| | **slugPerm** | **String**| | - **data** | [**CranUpstreamRequestPatch**](CranUpstreamRequestPatch.md)| | [optional] + **data** | [**ComposerUpstreamRequestPatch**](ComposerUpstreamRequestPatch.md)| | [optional] ### Return type -[**CranUpstream**](CranUpstream.md) +[**ComposerUpstream**](ComposerUpstream.md) ### Authorization @@ -2468,13 +2480,13 @@ Name | Type | Description | Notes - **Content-Type**: application/json - **Accept**: application/json - -# **reposUpstreamCranRead** -> CranUpstream reposUpstreamCranRead(owner, identifier, slugPerm) + +# **reposUpstreamComposerRead** +> ComposerUpstream reposUpstreamComposerRead(owner, identifier, slugPerm) -Retrieve a CRAN upstream config for this repository. +Retrieve a Composer upstream config for this repository. -Retrieve a CRAN upstream config for this repository. +Retrieve a Composer upstream config for this repository. ### Example ```java @@ -2503,10 +2515,10 @@ String owner = "owner_example"; // String | String identifier = "identifier_example"; // String | String slugPerm = "slugPerm_example"; // String | try { - CranUpstream result = apiInstance.reposUpstreamCranRead(owner, identifier, slugPerm); + ComposerUpstream result = apiInstance.reposUpstreamComposerRead(owner, identifier, slugPerm); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ReposApi#reposUpstreamCranRead"); + System.err.println("Exception when calling ReposApi#reposUpstreamComposerRead"); e.printStackTrace(); } ``` @@ -2521,7 +2533,7 @@ Name | Type | Description | Notes ### Return type -[**CranUpstream**](CranUpstream.md) +[**ComposerUpstream**](ComposerUpstream.md) ### Authorization @@ -2532,13 +2544,13 @@ Name | Type | Description | Notes - **Content-Type**: application/json - **Accept**: application/json - -# **reposUpstreamCranUpdate** -> CranUpstream reposUpstreamCranUpdate(owner, identifier, slugPerm, data) + +# **reposUpstreamComposerUpdate** +> ComposerUpstream reposUpstreamComposerUpdate(owner, identifier, slugPerm, data) -Update a CRAN upstream config for this repository. +Update a Composer upstream config for this repository. -Update a CRAN upstream config for this repository. +Update a Composer upstream config for this repository. ### Example ```java @@ -2566,12 +2578,12 @@ ReposApi apiInstance = new ReposApi(); String owner = "owner_example"; // String | String identifier = "identifier_example"; // String | String slugPerm = "slugPerm_example"; // String | -CranUpstreamRequest data = new CranUpstreamRequest(); // CranUpstreamRequest | +ComposerUpstreamRequest data = new ComposerUpstreamRequest(); // ComposerUpstreamRequest | try { - CranUpstream result = apiInstance.reposUpstreamCranUpdate(owner, identifier, slugPerm, data); + ComposerUpstream result = apiInstance.reposUpstreamComposerUpdate(owner, identifier, slugPerm, data); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ReposApi#reposUpstreamCranUpdate"); + System.err.println("Exception when calling ReposApi#reposUpstreamComposerUpdate"); e.printStackTrace(); } ``` @@ -2583,6 +2595,70 @@ Name | Type | Description | Notes **owner** | **String**| | **identifier** | **String**| | **slugPerm** | **String**| | + **data** | [**ComposerUpstreamRequest**](ComposerUpstreamRequest.md)| | [optional] + +### Return type + +[**ComposerUpstream**](ComposerUpstream.md) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **reposUpstreamCranCreate** +> CranUpstream reposUpstreamCranCreate(owner, identifier, data) + +Create a CRAN upstream config for this repository. + +Create a CRAN upstream config for this repository. + +### Example +```java +// Import classes: +//import io.cloudsmith.api.ApiClient; +//import io.cloudsmith.api.ApiException; +//import io.cloudsmith.api.Configuration; +//import io.cloudsmith.api.auth.*; +//import io.cloudsmith.api.apis.ReposApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: apikey +ApiKeyAuth apikey = (ApiKeyAuth) defaultClient.getAuthentication("apikey"); +apikey.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//apikey.setApiKeyPrefix("Token"); + +// Configure HTTP basic authorization: basic +HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic"); +basic.setUsername("YOUR USERNAME"); +basic.setPassword("YOUR PASSWORD"); + +ReposApi apiInstance = new ReposApi(); +String owner = "owner_example"; // String | +String identifier = "identifier_example"; // String | +CranUpstreamRequest data = new CranUpstreamRequest(); // CranUpstreamRequest | +try { + CranUpstream result = apiInstance.reposUpstreamCranCreate(owner, identifier, data); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ReposApi#reposUpstreamCranCreate"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| | + **identifier** | **String**| | **data** | [**CranUpstreamRequest**](CranUpstreamRequest.md)| | [optional] ### Return type @@ -2598,13 +2674,727 @@ Name | Type | Description | Notes - **Content-Type**: application/json - **Accept**: application/json - -# **reposUpstreamDartCreate** -> DartUpstream reposUpstreamDartCreate(owner, identifier, data) + +# **reposUpstreamCranDelete** +> reposUpstreamCranDelete(owner, identifier, slugPerm) -Create a Dart upstream config for this repository. +Delete a CRAN upstream config for this repository. -Create a Dart upstream config for this repository. +Delete a CRAN upstream config for this repository. + +### Example +```java +// Import classes: +//import io.cloudsmith.api.ApiClient; +//import io.cloudsmith.api.ApiException; +//import io.cloudsmith.api.Configuration; +//import io.cloudsmith.api.auth.*; +//import io.cloudsmith.api.apis.ReposApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: apikey +ApiKeyAuth apikey = (ApiKeyAuth) defaultClient.getAuthentication("apikey"); +apikey.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//apikey.setApiKeyPrefix("Token"); + +// Configure HTTP basic authorization: basic +HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic"); +basic.setUsername("YOUR USERNAME"); +basic.setPassword("YOUR PASSWORD"); + +ReposApi apiInstance = new ReposApi(); +String owner = "owner_example"; // String | +String identifier = "identifier_example"; // String | +String slugPerm = "slugPerm_example"; // String | +try { + apiInstance.reposUpstreamCranDelete(owner, identifier, slugPerm); +} catch (ApiException e) { + System.err.println("Exception when calling ReposApi#reposUpstreamCranDelete"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| | + **identifier** | **String**| | + **slugPerm** | **String**| | + +### Return type + +null (empty response body) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **reposUpstreamCranList** +> List<CranUpstream> reposUpstreamCranList(owner, identifier, page, pageSize) + +List CRAN upstream configs for this repository. + +List CRAN upstream configs for this repository. + +### Example +```java +// Import classes: +//import io.cloudsmith.api.ApiClient; +//import io.cloudsmith.api.ApiException; +//import io.cloudsmith.api.Configuration; +//import io.cloudsmith.api.auth.*; +//import io.cloudsmith.api.apis.ReposApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: apikey +ApiKeyAuth apikey = (ApiKeyAuth) defaultClient.getAuthentication("apikey"); +apikey.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//apikey.setApiKeyPrefix("Token"); + +// Configure HTTP basic authorization: basic +HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic"); +basic.setUsername("YOUR USERNAME"); +basic.setPassword("YOUR PASSWORD"); + +ReposApi apiInstance = new ReposApi(); +String owner = "owner_example"; // String | +String identifier = "identifier_example"; // String | +java.math.BigInteger page = new java.math.BigInteger(); // java.math.BigInteger | A page number within the paginated result set. +java.math.BigInteger pageSize = new java.math.BigInteger(); // java.math.BigInteger | Number of results to return per page. +try { + List result = apiInstance.reposUpstreamCranList(owner, identifier, page, pageSize); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ReposApi#reposUpstreamCranList"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| | + **identifier** | **String**| | + **page** | **java.math.BigInteger**| A page number within the paginated result set. | [optional] + **pageSize** | **java.math.BigInteger**| Number of results to return per page. | [optional] + +### Return type + +[**List<CranUpstream>**](CranUpstream.md) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **reposUpstreamCranPartialUpdate** +> CranUpstream reposUpstreamCranPartialUpdate(owner, identifier, slugPerm, data) + +Partially update a CRAN upstream config for this repository. + +Partially update a CRAN upstream config for this repository. + +### Example +```java +// Import classes: +//import io.cloudsmith.api.ApiClient; +//import io.cloudsmith.api.ApiException; +//import io.cloudsmith.api.Configuration; +//import io.cloudsmith.api.auth.*; +//import io.cloudsmith.api.apis.ReposApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: apikey +ApiKeyAuth apikey = (ApiKeyAuth) defaultClient.getAuthentication("apikey"); +apikey.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//apikey.setApiKeyPrefix("Token"); + +// Configure HTTP basic authorization: basic +HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic"); +basic.setUsername("YOUR USERNAME"); +basic.setPassword("YOUR PASSWORD"); + +ReposApi apiInstance = new ReposApi(); +String owner = "owner_example"; // String | +String identifier = "identifier_example"; // String | +String slugPerm = "slugPerm_example"; // String | +CranUpstreamRequestPatch data = new CranUpstreamRequestPatch(); // CranUpstreamRequestPatch | +try { + CranUpstream result = apiInstance.reposUpstreamCranPartialUpdate(owner, identifier, slugPerm, data); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ReposApi#reposUpstreamCranPartialUpdate"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| | + **identifier** | **String**| | + **slugPerm** | **String**| | + **data** | [**CranUpstreamRequestPatch**](CranUpstreamRequestPatch.md)| | [optional] + +### Return type + +[**CranUpstream**](CranUpstream.md) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **reposUpstreamCranRead** +> CranUpstream reposUpstreamCranRead(owner, identifier, slugPerm) + +Retrieve a CRAN upstream config for this repository. + +Retrieve a CRAN upstream config for this repository. + +### Example +```java +// Import classes: +//import io.cloudsmith.api.ApiClient; +//import io.cloudsmith.api.ApiException; +//import io.cloudsmith.api.Configuration; +//import io.cloudsmith.api.auth.*; +//import io.cloudsmith.api.apis.ReposApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: apikey +ApiKeyAuth apikey = (ApiKeyAuth) defaultClient.getAuthentication("apikey"); +apikey.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//apikey.setApiKeyPrefix("Token"); + +// Configure HTTP basic authorization: basic +HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic"); +basic.setUsername("YOUR USERNAME"); +basic.setPassword("YOUR PASSWORD"); + +ReposApi apiInstance = new ReposApi(); +String owner = "owner_example"; // String | +String identifier = "identifier_example"; // String | +String slugPerm = "slugPerm_example"; // String | +try { + CranUpstream result = apiInstance.reposUpstreamCranRead(owner, identifier, slugPerm); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ReposApi#reposUpstreamCranRead"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| | + **identifier** | **String**| | + **slugPerm** | **String**| | + +### Return type + +[**CranUpstream**](CranUpstream.md) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **reposUpstreamCranUpdate** +> CranUpstream reposUpstreamCranUpdate(owner, identifier, slugPerm, data) + +Update a CRAN upstream config for this repository. + +Update a CRAN upstream config for this repository. + +### Example +```java +// Import classes: +//import io.cloudsmith.api.ApiClient; +//import io.cloudsmith.api.ApiException; +//import io.cloudsmith.api.Configuration; +//import io.cloudsmith.api.auth.*; +//import io.cloudsmith.api.apis.ReposApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: apikey +ApiKeyAuth apikey = (ApiKeyAuth) defaultClient.getAuthentication("apikey"); +apikey.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//apikey.setApiKeyPrefix("Token"); + +// Configure HTTP basic authorization: basic +HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic"); +basic.setUsername("YOUR USERNAME"); +basic.setPassword("YOUR PASSWORD"); + +ReposApi apiInstance = new ReposApi(); +String owner = "owner_example"; // String | +String identifier = "identifier_example"; // String | +String slugPerm = "slugPerm_example"; // String | +CranUpstreamRequest data = new CranUpstreamRequest(); // CranUpstreamRequest | +try { + CranUpstream result = apiInstance.reposUpstreamCranUpdate(owner, identifier, slugPerm, data); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ReposApi#reposUpstreamCranUpdate"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| | + **identifier** | **String**| | + **slugPerm** | **String**| | + **data** | [**CranUpstreamRequest**](CranUpstreamRequest.md)| | [optional] + +### Return type + +[**CranUpstream**](CranUpstream.md) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **reposUpstreamDartCreate** +> DartUpstream reposUpstreamDartCreate(owner, identifier, data) + +Create a Dart upstream config for this repository. + +Create a Dart upstream config for this repository. + +### Example +```java +// Import classes: +//import io.cloudsmith.api.ApiClient; +//import io.cloudsmith.api.ApiException; +//import io.cloudsmith.api.Configuration; +//import io.cloudsmith.api.auth.*; +//import io.cloudsmith.api.apis.ReposApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: apikey +ApiKeyAuth apikey = (ApiKeyAuth) defaultClient.getAuthentication("apikey"); +apikey.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//apikey.setApiKeyPrefix("Token"); + +// Configure HTTP basic authorization: basic +HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic"); +basic.setUsername("YOUR USERNAME"); +basic.setPassword("YOUR PASSWORD"); + +ReposApi apiInstance = new ReposApi(); +String owner = "owner_example"; // String | +String identifier = "identifier_example"; // String | +DartUpstreamRequest data = new DartUpstreamRequest(); // DartUpstreamRequest | +try { + DartUpstream result = apiInstance.reposUpstreamDartCreate(owner, identifier, data); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ReposApi#reposUpstreamDartCreate"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| | + **identifier** | **String**| | + **data** | [**DartUpstreamRequest**](DartUpstreamRequest.md)| | [optional] + +### Return type + +[**DartUpstream**](DartUpstream.md) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **reposUpstreamDartDelete** +> reposUpstreamDartDelete(owner, identifier, slugPerm) + +Delete a Dart upstream config for this repository. + +Delete a Dart upstream config for this repository. + +### Example +```java +// Import classes: +//import io.cloudsmith.api.ApiClient; +//import io.cloudsmith.api.ApiException; +//import io.cloudsmith.api.Configuration; +//import io.cloudsmith.api.auth.*; +//import io.cloudsmith.api.apis.ReposApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: apikey +ApiKeyAuth apikey = (ApiKeyAuth) defaultClient.getAuthentication("apikey"); +apikey.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//apikey.setApiKeyPrefix("Token"); + +// Configure HTTP basic authorization: basic +HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic"); +basic.setUsername("YOUR USERNAME"); +basic.setPassword("YOUR PASSWORD"); + +ReposApi apiInstance = new ReposApi(); +String owner = "owner_example"; // String | +String identifier = "identifier_example"; // String | +String slugPerm = "slugPerm_example"; // String | +try { + apiInstance.reposUpstreamDartDelete(owner, identifier, slugPerm); +} catch (ApiException e) { + System.err.println("Exception when calling ReposApi#reposUpstreamDartDelete"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| | + **identifier** | **String**| | + **slugPerm** | **String**| | + +### Return type + +null (empty response body) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **reposUpstreamDartList** +> List<DartUpstream> reposUpstreamDartList(owner, identifier, page, pageSize) + +List Dart upstream configs for this repository. + +List Dart upstream configs for this repository. + +### Example +```java +// Import classes: +//import io.cloudsmith.api.ApiClient; +//import io.cloudsmith.api.ApiException; +//import io.cloudsmith.api.Configuration; +//import io.cloudsmith.api.auth.*; +//import io.cloudsmith.api.apis.ReposApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: apikey +ApiKeyAuth apikey = (ApiKeyAuth) defaultClient.getAuthentication("apikey"); +apikey.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//apikey.setApiKeyPrefix("Token"); + +// Configure HTTP basic authorization: basic +HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic"); +basic.setUsername("YOUR USERNAME"); +basic.setPassword("YOUR PASSWORD"); + +ReposApi apiInstance = new ReposApi(); +String owner = "owner_example"; // String | +String identifier = "identifier_example"; // String | +java.math.BigInteger page = new java.math.BigInteger(); // java.math.BigInteger | A page number within the paginated result set. +java.math.BigInteger pageSize = new java.math.BigInteger(); // java.math.BigInteger | Number of results to return per page. +try { + List result = apiInstance.reposUpstreamDartList(owner, identifier, page, pageSize); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ReposApi#reposUpstreamDartList"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| | + **identifier** | **String**| | + **page** | **java.math.BigInteger**| A page number within the paginated result set. | [optional] + **pageSize** | **java.math.BigInteger**| Number of results to return per page. | [optional] + +### Return type + +[**List<DartUpstream>**](DartUpstream.md) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **reposUpstreamDartPartialUpdate** +> DartUpstream reposUpstreamDartPartialUpdate(owner, identifier, slugPerm, data) + +Partially update a Dart upstream config for this repository. + +Partially update a Dart upstream config for this repository. + +### Example +```java +// Import classes: +//import io.cloudsmith.api.ApiClient; +//import io.cloudsmith.api.ApiException; +//import io.cloudsmith.api.Configuration; +//import io.cloudsmith.api.auth.*; +//import io.cloudsmith.api.apis.ReposApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: apikey +ApiKeyAuth apikey = (ApiKeyAuth) defaultClient.getAuthentication("apikey"); +apikey.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//apikey.setApiKeyPrefix("Token"); + +// Configure HTTP basic authorization: basic +HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic"); +basic.setUsername("YOUR USERNAME"); +basic.setPassword("YOUR PASSWORD"); + +ReposApi apiInstance = new ReposApi(); +String owner = "owner_example"; // String | +String identifier = "identifier_example"; // String | +String slugPerm = "slugPerm_example"; // String | +DartUpstreamRequestPatch data = new DartUpstreamRequestPatch(); // DartUpstreamRequestPatch | +try { + DartUpstream result = apiInstance.reposUpstreamDartPartialUpdate(owner, identifier, slugPerm, data); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ReposApi#reposUpstreamDartPartialUpdate"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| | + **identifier** | **String**| | + **slugPerm** | **String**| | + **data** | [**DartUpstreamRequestPatch**](DartUpstreamRequestPatch.md)| | [optional] + +### Return type + +[**DartUpstream**](DartUpstream.md) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **reposUpstreamDartRead** +> DartUpstream reposUpstreamDartRead(owner, identifier, slugPerm) + +Retrieve a Dart upstream config for this repository. + +Retrieve a Dart upstream config for this repository. + +### Example +```java +// Import classes: +//import io.cloudsmith.api.ApiClient; +//import io.cloudsmith.api.ApiException; +//import io.cloudsmith.api.Configuration; +//import io.cloudsmith.api.auth.*; +//import io.cloudsmith.api.apis.ReposApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: apikey +ApiKeyAuth apikey = (ApiKeyAuth) defaultClient.getAuthentication("apikey"); +apikey.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//apikey.setApiKeyPrefix("Token"); + +// Configure HTTP basic authorization: basic +HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic"); +basic.setUsername("YOUR USERNAME"); +basic.setPassword("YOUR PASSWORD"); + +ReposApi apiInstance = new ReposApi(); +String owner = "owner_example"; // String | +String identifier = "identifier_example"; // String | +String slugPerm = "slugPerm_example"; // String | +try { + DartUpstream result = apiInstance.reposUpstreamDartRead(owner, identifier, slugPerm); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ReposApi#reposUpstreamDartRead"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| | + **identifier** | **String**| | + **slugPerm** | **String**| | + +### Return type + +[**DartUpstream**](DartUpstream.md) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **reposUpstreamDartUpdate** +> DartUpstream reposUpstreamDartUpdate(owner, identifier, slugPerm, data) + +Update a Dart upstream config for this repository. + +Update a Dart upstream config for this repository. + +### Example +```java +// Import classes: +//import io.cloudsmith.api.ApiClient; +//import io.cloudsmith.api.ApiException; +//import io.cloudsmith.api.Configuration; +//import io.cloudsmith.api.auth.*; +//import io.cloudsmith.api.apis.ReposApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: apikey +ApiKeyAuth apikey = (ApiKeyAuth) defaultClient.getAuthentication("apikey"); +apikey.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//apikey.setApiKeyPrefix("Token"); + +// Configure HTTP basic authorization: basic +HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic"); +basic.setUsername("YOUR USERNAME"); +basic.setPassword("YOUR PASSWORD"); + +ReposApi apiInstance = new ReposApi(); +String owner = "owner_example"; // String | +String identifier = "identifier_example"; // String | +String slugPerm = "slugPerm_example"; // String | +DartUpstreamRequest data = new DartUpstreamRequest(); // DartUpstreamRequest | +try { + DartUpstream result = apiInstance.reposUpstreamDartUpdate(owner, identifier, slugPerm, data); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling ReposApi#reposUpstreamDartUpdate"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| | + **identifier** | **String**| | + **slugPerm** | **String**| | + **data** | [**DartUpstreamRequest**](DartUpstreamRequest.md)| | [optional] + +### Return type + +[**DartUpstream**](DartUpstream.md) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +# **reposUpstreamDebCreate** +> DebUpstream reposUpstreamDebCreate(owner, identifier, data) + +Create a Debian upstream config for this repository. + +Create a Debian upstream config for this repository. ### Example ```java @@ -2631,12 +3421,12 @@ basic.setPassword("YOUR PASSWORD"); ReposApi apiInstance = new ReposApi(); String owner = "owner_example"; // String | String identifier = "identifier_example"; // String | -DartUpstreamRequest data = new DartUpstreamRequest(); // DartUpstreamRequest | +DebUpstreamRequest data = new DebUpstreamRequest(); // DebUpstreamRequest | try { - DartUpstream result = apiInstance.reposUpstreamDartCreate(owner, identifier, data); + DebUpstream result = apiInstance.reposUpstreamDebCreate(owner, identifier, data); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ReposApi#reposUpstreamDartCreate"); + System.err.println("Exception when calling ReposApi#reposUpstreamDebCreate"); e.printStackTrace(); } ``` @@ -2647,11 +3437,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **owner** | **String**| | **identifier** | **String**| | - **data** | [**DartUpstreamRequest**](DartUpstreamRequest.md)| | [optional] + **data** | [**DebUpstreamRequest**](DebUpstreamRequest.md)| | [optional] ### Return type -[**DartUpstream**](DartUpstream.md) +[**DebUpstream**](DebUpstream.md) ### Authorization @@ -2662,13 +3452,13 @@ Name | Type | Description | Notes - **Content-Type**: application/json - **Accept**: application/json - -# **reposUpstreamDartDelete** -> reposUpstreamDartDelete(owner, identifier, slugPerm) + +# **reposUpstreamDebDelete** +> reposUpstreamDebDelete(owner, identifier, slugPerm) -Delete a Dart upstream config for this repository. +Delete a Debian upstream config for this repository. -Delete a Dart upstream config for this repository. +Delete a Debian upstream config for this repository. ### Example ```java @@ -2697,9 +3487,9 @@ String owner = "owner_example"; // String | String identifier = "identifier_example"; // String | String slugPerm = "slugPerm_example"; // String | try { - apiInstance.reposUpstreamDartDelete(owner, identifier, slugPerm); + apiInstance.reposUpstreamDebDelete(owner, identifier, slugPerm); } catch (ApiException e) { - System.err.println("Exception when calling ReposApi#reposUpstreamDartDelete"); + System.err.println("Exception when calling ReposApi#reposUpstreamDebDelete"); e.printStackTrace(); } ``` @@ -2725,13 +3515,13 @@ null (empty response body) - **Content-Type**: application/json - **Accept**: application/json - -# **reposUpstreamDartList** -> List<DartUpstream> reposUpstreamDartList(owner, identifier, page, pageSize) + +# **reposUpstreamDebList** +> List<DebUpstream> reposUpstreamDebList(owner, identifier, page, pageSize) -List Dart upstream configs for this repository. +List Debian upstream configs for this repository. -List Dart upstream configs for this repository. +List Debian upstream configs for this repository. ### Example ```java @@ -2761,10 +3551,10 @@ String identifier = "identifier_example"; // String | java.math.BigInteger page = new java.math.BigInteger(); // java.math.BigInteger | A page number within the paginated result set. java.math.BigInteger pageSize = new java.math.BigInteger(); // java.math.BigInteger | Number of results to return per page. try { - List result = apiInstance.reposUpstreamDartList(owner, identifier, page, pageSize); + List result = apiInstance.reposUpstreamDebList(owner, identifier, page, pageSize); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ReposApi#reposUpstreamDartList"); + System.err.println("Exception when calling ReposApi#reposUpstreamDebList"); e.printStackTrace(); } ``` @@ -2780,7 +3570,7 @@ Name | Type | Description | Notes ### Return type -[**List<DartUpstream>**](DartUpstream.md) +[**List<DebUpstream>**](DebUpstream.md) ### Authorization @@ -2791,13 +3581,13 @@ Name | Type | Description | Notes - **Content-Type**: application/json - **Accept**: application/json - -# **reposUpstreamDartPartialUpdate** -> DartUpstream reposUpstreamDartPartialUpdate(owner, identifier, slugPerm, data) + +# **reposUpstreamDebPartialUpdate** +> DebUpstream reposUpstreamDebPartialUpdate(owner, identifier, slugPerm, data) -Partially update a Dart upstream config for this repository. +Partially update a Debian upstream config for this repository. -Partially update a Dart upstream config for this repository. +Partially update a Debian upstream config for this repository. ### Example ```java @@ -2825,12 +3615,12 @@ ReposApi apiInstance = new ReposApi(); String owner = "owner_example"; // String | String identifier = "identifier_example"; // String | String slugPerm = "slugPerm_example"; // String | -DartUpstreamRequestPatch data = new DartUpstreamRequestPatch(); // DartUpstreamRequestPatch | +DebUpstreamRequestPatch data = new DebUpstreamRequestPatch(); // DebUpstreamRequestPatch | try { - DartUpstream result = apiInstance.reposUpstreamDartPartialUpdate(owner, identifier, slugPerm, data); + DebUpstream result = apiInstance.reposUpstreamDebPartialUpdate(owner, identifier, slugPerm, data); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ReposApi#reposUpstreamDartPartialUpdate"); + System.err.println("Exception when calling ReposApi#reposUpstreamDebPartialUpdate"); e.printStackTrace(); } ``` @@ -2842,11 +3632,11 @@ Name | Type | Description | Notes **owner** | **String**| | **identifier** | **String**| | **slugPerm** | **String**| | - **data** | [**DartUpstreamRequestPatch**](DartUpstreamRequestPatch.md)| | [optional] + **data** | [**DebUpstreamRequestPatch**](DebUpstreamRequestPatch.md)| | [optional] ### Return type -[**DartUpstream**](DartUpstream.md) +[**DebUpstream**](DebUpstream.md) ### Authorization @@ -2857,13 +3647,13 @@ Name | Type | Description | Notes - **Content-Type**: application/json - **Accept**: application/json - -# **reposUpstreamDartRead** -> DartUpstream reposUpstreamDartRead(owner, identifier, slugPerm) + +# **reposUpstreamDebRead** +> DebUpstream reposUpstreamDebRead(owner, identifier, slugPerm) -Retrieve a Dart upstream config for this repository. +Retrieve a Debian upstream config for this repository. -Retrieve a Dart upstream config for this repository. +Retrieve a Debian upstream config for this repository. ### Example ```java @@ -2892,10 +3682,10 @@ String owner = "owner_example"; // String | String identifier = "identifier_example"; // String | String slugPerm = "slugPerm_example"; // String | try { - DartUpstream result = apiInstance.reposUpstreamDartRead(owner, identifier, slugPerm); + DebUpstream result = apiInstance.reposUpstreamDebRead(owner, identifier, slugPerm); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ReposApi#reposUpstreamDartRead"); + System.err.println("Exception when calling ReposApi#reposUpstreamDebRead"); e.printStackTrace(); } ``` @@ -2910,7 +3700,7 @@ Name | Type | Description | Notes ### Return type -[**DartUpstream**](DartUpstream.md) +[**DebUpstream**](DebUpstream.md) ### Authorization @@ -2921,13 +3711,13 @@ Name | Type | Description | Notes - **Content-Type**: application/json - **Accept**: application/json - -# **reposUpstreamDartUpdate** -> DartUpstream reposUpstreamDartUpdate(owner, identifier, slugPerm, data) + +# **reposUpstreamDebUpdate** +> DebUpstream reposUpstreamDebUpdate(owner, identifier, slugPerm, data) -Update a Dart upstream config for this repository. +Update a Debian upstream config for this repository. -Update a Dart upstream config for this repository. +Update a Debian upstream config for this repository. ### Example ```java @@ -2955,12 +3745,12 @@ ReposApi apiInstance = new ReposApi(); String owner = "owner_example"; // String | String identifier = "identifier_example"; // String | String slugPerm = "slugPerm_example"; // String | -DartUpstreamRequest data = new DartUpstreamRequest(); // DartUpstreamRequest | +DebUpstreamRequest data = new DebUpstreamRequest(); // DebUpstreamRequest | try { - DartUpstream result = apiInstance.reposUpstreamDartUpdate(owner, identifier, slugPerm, data); + DebUpstream result = apiInstance.reposUpstreamDebUpdate(owner, identifier, slugPerm, data); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ReposApi#reposUpstreamDartUpdate"); + System.err.println("Exception when calling ReposApi#reposUpstreamDebUpdate"); e.printStackTrace(); } ``` @@ -2972,11 +3762,11 @@ Name | Type | Description | Notes **owner** | **String**| | **identifier** | **String**| | **slugPerm** | **String**| | - **data** | [**DartUpstreamRequest**](DartUpstreamRequest.md)| | [optional] + **data** | [**DebUpstreamRequest**](DebUpstreamRequest.md)| | [optional] ### Return type -[**DartUpstream**](DartUpstream.md) +[**DebUpstream**](DebUpstream.md) ### Authorization @@ -2987,13 +3777,13 @@ Name | Type | Description | Notes - **Content-Type**: application/json - **Accept**: application/json - -# **reposUpstreamDebCreate** -> DebUpstream reposUpstreamDebCreate(owner, identifier, data) + +# **reposUpstreamDockerCreate** +> DockerUpstream reposUpstreamDockerCreate(owner, identifier, data) -Create a Debian upstream config for this repository. +Create a Docker upstream config for this repository. -Create a Debian upstream config for this repository. +Create a Docker upstream config for this repository. ### Example ```java @@ -3020,12 +3810,12 @@ basic.setPassword("YOUR PASSWORD"); ReposApi apiInstance = new ReposApi(); String owner = "owner_example"; // String | String identifier = "identifier_example"; // String | -DebUpstreamRequest data = new DebUpstreamRequest(); // DebUpstreamRequest | +DockerUpstreamRequest data = new DockerUpstreamRequest(); // DockerUpstreamRequest | try { - DebUpstream result = apiInstance.reposUpstreamDebCreate(owner, identifier, data); + DockerUpstream result = apiInstance.reposUpstreamDockerCreate(owner, identifier, data); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ReposApi#reposUpstreamDebCreate"); + System.err.println("Exception when calling ReposApi#reposUpstreamDockerCreate"); e.printStackTrace(); } ``` @@ -3036,11 +3826,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **owner** | **String**| | **identifier** | **String**| | - **data** | [**DebUpstreamRequest**](DebUpstreamRequest.md)| | [optional] + **data** | [**DockerUpstreamRequest**](DockerUpstreamRequest.md)| | [optional] ### Return type -[**DebUpstream**](DebUpstream.md) +[**DockerUpstream**](DockerUpstream.md) ### Authorization @@ -3051,13 +3841,13 @@ Name | Type | Description | Notes - **Content-Type**: application/json - **Accept**: application/json - -# **reposUpstreamDebDelete** -> reposUpstreamDebDelete(owner, identifier, slugPerm) + +# **reposUpstreamDockerDelete** +> reposUpstreamDockerDelete(owner, identifier, slugPerm) -Delete a Debian upstream config for this repository. +Delete a Docker upstream config for this repository. -Delete a Debian upstream config for this repository. +Delete a Docker upstream config for this repository. ### Example ```java @@ -3086,9 +3876,9 @@ String owner = "owner_example"; // String | String identifier = "identifier_example"; // String | String slugPerm = "slugPerm_example"; // String | try { - apiInstance.reposUpstreamDebDelete(owner, identifier, slugPerm); + apiInstance.reposUpstreamDockerDelete(owner, identifier, slugPerm); } catch (ApiException e) { - System.err.println("Exception when calling ReposApi#reposUpstreamDebDelete"); + System.err.println("Exception when calling ReposApi#reposUpstreamDockerDelete"); e.printStackTrace(); } ``` @@ -3114,13 +3904,13 @@ null (empty response body) - **Content-Type**: application/json - **Accept**: application/json - -# **reposUpstreamDebList** -> List<DebUpstream> reposUpstreamDebList(owner, identifier, page, pageSize) + +# **reposUpstreamDockerList** +> List<DockerUpstream> reposUpstreamDockerList(owner, identifier, page, pageSize) -List Debian upstream configs for this repository. +List Docker upstream configs for this repository. -List Debian upstream configs for this repository. +List Docker upstream configs for this repository. ### Example ```java @@ -3150,10 +3940,10 @@ String identifier = "identifier_example"; // String | java.math.BigInteger page = new java.math.BigInteger(); // java.math.BigInteger | A page number within the paginated result set. java.math.BigInteger pageSize = new java.math.BigInteger(); // java.math.BigInteger | Number of results to return per page. try { - List result = apiInstance.reposUpstreamDebList(owner, identifier, page, pageSize); + List result = apiInstance.reposUpstreamDockerList(owner, identifier, page, pageSize); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ReposApi#reposUpstreamDebList"); + System.err.println("Exception when calling ReposApi#reposUpstreamDockerList"); e.printStackTrace(); } ``` @@ -3169,7 +3959,7 @@ Name | Type | Description | Notes ### Return type -[**List<DebUpstream>**](DebUpstream.md) +[**List<DockerUpstream>**](DockerUpstream.md) ### Authorization @@ -3180,13 +3970,13 @@ Name | Type | Description | Notes - **Content-Type**: application/json - **Accept**: application/json - -# **reposUpstreamDebPartialUpdate** -> DebUpstream reposUpstreamDebPartialUpdate(owner, identifier, slugPerm, data) + +# **reposUpstreamDockerPartialUpdate** +> DockerUpstream reposUpstreamDockerPartialUpdate(owner, identifier, slugPerm, data) -Partially update a Debian upstream config for this repository. +Partially update a Docker upstream config for this repository. -Partially update a Debian upstream config for this repository. +Partially update a Docker upstream config for this repository. ### Example ```java @@ -3214,12 +4004,12 @@ ReposApi apiInstance = new ReposApi(); String owner = "owner_example"; // String | String identifier = "identifier_example"; // String | String slugPerm = "slugPerm_example"; // String | -DebUpstreamRequestPatch data = new DebUpstreamRequestPatch(); // DebUpstreamRequestPatch | +DockerUpstreamRequestPatch data = new DockerUpstreamRequestPatch(); // DockerUpstreamRequestPatch | try { - DebUpstream result = apiInstance.reposUpstreamDebPartialUpdate(owner, identifier, slugPerm, data); + DockerUpstream result = apiInstance.reposUpstreamDockerPartialUpdate(owner, identifier, slugPerm, data); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ReposApi#reposUpstreamDebPartialUpdate"); + System.err.println("Exception when calling ReposApi#reposUpstreamDockerPartialUpdate"); e.printStackTrace(); } ``` @@ -3231,11 +4021,11 @@ Name | Type | Description | Notes **owner** | **String**| | **identifier** | **String**| | **slugPerm** | **String**| | - **data** | [**DebUpstreamRequestPatch**](DebUpstreamRequestPatch.md)| | [optional] + **data** | [**DockerUpstreamRequestPatch**](DockerUpstreamRequestPatch.md)| | [optional] ### Return type -[**DebUpstream**](DebUpstream.md) +[**DockerUpstream**](DockerUpstream.md) ### Authorization @@ -3246,13 +4036,13 @@ Name | Type | Description | Notes - **Content-Type**: application/json - **Accept**: application/json - -# **reposUpstreamDebRead** -> DebUpstream reposUpstreamDebRead(owner, identifier, slugPerm) + +# **reposUpstreamDockerRead** +> DockerUpstream reposUpstreamDockerRead(owner, identifier, slugPerm) -Retrieve a Debian upstream config for this repository. +Retrieve a Docker upstream config for this repository. -Retrieve a Debian upstream config for this repository. +Retrieve a Docker upstream config for this repository. ### Example ```java @@ -3281,10 +4071,10 @@ String owner = "owner_example"; // String | String identifier = "identifier_example"; // String | String slugPerm = "slugPerm_example"; // String | try { - DebUpstream result = apiInstance.reposUpstreamDebRead(owner, identifier, slugPerm); + DockerUpstream result = apiInstance.reposUpstreamDockerRead(owner, identifier, slugPerm); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ReposApi#reposUpstreamDebRead"); + System.err.println("Exception when calling ReposApi#reposUpstreamDockerRead"); e.printStackTrace(); } ``` @@ -3299,7 +4089,7 @@ Name | Type | Description | Notes ### Return type -[**DebUpstream**](DebUpstream.md) +[**DockerUpstream**](DockerUpstream.md) ### Authorization @@ -3310,13 +4100,13 @@ Name | Type | Description | Notes - **Content-Type**: application/json - **Accept**: application/json - -# **reposUpstreamDebUpdate** -> DebUpstream reposUpstreamDebUpdate(owner, identifier, slugPerm, data) + +# **reposUpstreamDockerUpdate** +> DockerUpstream reposUpstreamDockerUpdate(owner, identifier, slugPerm, data) -Update a Debian upstream config for this repository. +Update a Docker upstream config for this repository. -Update a Debian upstream config for this repository. +Update a Docker upstream config for this repository. ### Example ```java @@ -3344,12 +4134,12 @@ ReposApi apiInstance = new ReposApi(); String owner = "owner_example"; // String | String identifier = "identifier_example"; // String | String slugPerm = "slugPerm_example"; // String | -DebUpstreamRequest data = new DebUpstreamRequest(); // DebUpstreamRequest | +DockerUpstreamRequest data = new DockerUpstreamRequest(); // DockerUpstreamRequest | try { - DebUpstream result = apiInstance.reposUpstreamDebUpdate(owner, identifier, slugPerm, data); + DockerUpstream result = apiInstance.reposUpstreamDockerUpdate(owner, identifier, slugPerm, data); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ReposApi#reposUpstreamDebUpdate"); + System.err.println("Exception when calling ReposApi#reposUpstreamDockerUpdate"); e.printStackTrace(); } ``` @@ -3361,11 +4151,11 @@ Name | Type | Description | Notes **owner** | **String**| | **identifier** | **String**| | **slugPerm** | **String**| | - **data** | [**DebUpstreamRequest**](DebUpstreamRequest.md)| | [optional] + **data** | [**DockerUpstreamRequest**](DockerUpstreamRequest.md)| | [optional] ### Return type -[**DebUpstream**](DebUpstream.md) +[**DockerUpstream**](DockerUpstream.md) ### Authorization @@ -3376,13 +4166,13 @@ Name | Type | Description | Notes - **Content-Type**: application/json - **Accept**: application/json - -# **reposUpstreamDockerCreate** -> DockerUpstream reposUpstreamDockerCreate(owner, identifier, data) + +# **reposUpstreamGoCreate** +> GoUpstream reposUpstreamGoCreate(owner, identifier, data) -Create a Docker upstream config for this repository. +Create a Go upstream config for this repository. -Create a Docker upstream config for this repository. +Create a Go upstream config for this repository. ### Example ```java @@ -3409,12 +4199,12 @@ basic.setPassword("YOUR PASSWORD"); ReposApi apiInstance = new ReposApi(); String owner = "owner_example"; // String | String identifier = "identifier_example"; // String | -DockerUpstreamRequest data = new DockerUpstreamRequest(); // DockerUpstreamRequest | +GoUpstreamRequest data = new GoUpstreamRequest(); // GoUpstreamRequest | try { - DockerUpstream result = apiInstance.reposUpstreamDockerCreate(owner, identifier, data); + GoUpstream result = apiInstance.reposUpstreamGoCreate(owner, identifier, data); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ReposApi#reposUpstreamDockerCreate"); + System.err.println("Exception when calling ReposApi#reposUpstreamGoCreate"); e.printStackTrace(); } ``` @@ -3425,11 +4215,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **owner** | **String**| | **identifier** | **String**| | - **data** | [**DockerUpstreamRequest**](DockerUpstreamRequest.md)| | [optional] + **data** | [**GoUpstreamRequest**](GoUpstreamRequest.md)| | [optional] ### Return type -[**DockerUpstream**](DockerUpstream.md) +[**GoUpstream**](GoUpstream.md) ### Authorization @@ -3440,13 +4230,13 @@ Name | Type | Description | Notes - **Content-Type**: application/json - **Accept**: application/json - -# **reposUpstreamDockerDelete** -> reposUpstreamDockerDelete(owner, identifier, slugPerm) + +# **reposUpstreamGoDelete** +> reposUpstreamGoDelete(owner, identifier, slugPerm) -Delete a Docker upstream config for this repository. +Delete a Go upstream config for this repository. -Delete a Docker upstream config for this repository. +Delete a Go upstream config for this repository. ### Example ```java @@ -3475,9 +4265,9 @@ String owner = "owner_example"; // String | String identifier = "identifier_example"; // String | String slugPerm = "slugPerm_example"; // String | try { - apiInstance.reposUpstreamDockerDelete(owner, identifier, slugPerm); + apiInstance.reposUpstreamGoDelete(owner, identifier, slugPerm); } catch (ApiException e) { - System.err.println("Exception when calling ReposApi#reposUpstreamDockerDelete"); + System.err.println("Exception when calling ReposApi#reposUpstreamGoDelete"); e.printStackTrace(); } ``` @@ -3503,13 +4293,13 @@ null (empty response body) - **Content-Type**: application/json - **Accept**: application/json - -# **reposUpstreamDockerList** -> List<DockerUpstream> reposUpstreamDockerList(owner, identifier, page, pageSize) + +# **reposUpstreamGoList** +> List<GoUpstream> reposUpstreamGoList(owner, identifier, page, pageSize) -List Docker upstream configs for this repository. +List Go upstream configs for this repository. -List Docker upstream configs for this repository. +List Go upstream configs for this repository. ### Example ```java @@ -3539,10 +4329,10 @@ String identifier = "identifier_example"; // String | java.math.BigInteger page = new java.math.BigInteger(); // java.math.BigInteger | A page number within the paginated result set. java.math.BigInteger pageSize = new java.math.BigInteger(); // java.math.BigInteger | Number of results to return per page. try { - List result = apiInstance.reposUpstreamDockerList(owner, identifier, page, pageSize); + List result = apiInstance.reposUpstreamGoList(owner, identifier, page, pageSize); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ReposApi#reposUpstreamDockerList"); + System.err.println("Exception when calling ReposApi#reposUpstreamGoList"); e.printStackTrace(); } ``` @@ -3558,7 +4348,7 @@ Name | Type | Description | Notes ### Return type -[**List<DockerUpstream>**](DockerUpstream.md) +[**List<GoUpstream>**](GoUpstream.md) ### Authorization @@ -3569,13 +4359,13 @@ Name | Type | Description | Notes - **Content-Type**: application/json - **Accept**: application/json - -# **reposUpstreamDockerPartialUpdate** -> DockerUpstream reposUpstreamDockerPartialUpdate(owner, identifier, slugPerm, data) + +# **reposUpstreamGoPartialUpdate** +> GoUpstream reposUpstreamGoPartialUpdate(owner, identifier, slugPerm, data) -Partially update a Docker upstream config for this repository. +Partially update a Go upstream config for this repository. -Partially update a Docker upstream config for this repository. +Partially update a Go upstream config for this repository. ### Example ```java @@ -3603,12 +4393,12 @@ ReposApi apiInstance = new ReposApi(); String owner = "owner_example"; // String | String identifier = "identifier_example"; // String | String slugPerm = "slugPerm_example"; // String | -DockerUpstreamRequestPatch data = new DockerUpstreamRequestPatch(); // DockerUpstreamRequestPatch | +GoUpstreamRequestPatch data = new GoUpstreamRequestPatch(); // GoUpstreamRequestPatch | try { - DockerUpstream result = apiInstance.reposUpstreamDockerPartialUpdate(owner, identifier, slugPerm, data); + GoUpstream result = apiInstance.reposUpstreamGoPartialUpdate(owner, identifier, slugPerm, data); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ReposApi#reposUpstreamDockerPartialUpdate"); + System.err.println("Exception when calling ReposApi#reposUpstreamGoPartialUpdate"); e.printStackTrace(); } ``` @@ -3620,11 +4410,11 @@ Name | Type | Description | Notes **owner** | **String**| | **identifier** | **String**| | **slugPerm** | **String**| | - **data** | [**DockerUpstreamRequestPatch**](DockerUpstreamRequestPatch.md)| | [optional] + **data** | [**GoUpstreamRequestPatch**](GoUpstreamRequestPatch.md)| | [optional] ### Return type -[**DockerUpstream**](DockerUpstream.md) +[**GoUpstream**](GoUpstream.md) ### Authorization @@ -3635,13 +4425,13 @@ Name | Type | Description | Notes - **Content-Type**: application/json - **Accept**: application/json - -# **reposUpstreamDockerRead** -> DockerUpstream reposUpstreamDockerRead(owner, identifier, slugPerm) + +# **reposUpstreamGoRead** +> GoUpstream reposUpstreamGoRead(owner, identifier, slugPerm) -Retrieve a Docker upstream config for this repository. +Retrieve a Go upstream config for this repository. -Retrieve a Docker upstream config for this repository. +Retrieve a Go upstream config for this repository. ### Example ```java @@ -3670,10 +4460,10 @@ String owner = "owner_example"; // String | String identifier = "identifier_example"; // String | String slugPerm = "slugPerm_example"; // String | try { - DockerUpstream result = apiInstance.reposUpstreamDockerRead(owner, identifier, slugPerm); + GoUpstream result = apiInstance.reposUpstreamGoRead(owner, identifier, slugPerm); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ReposApi#reposUpstreamDockerRead"); + System.err.println("Exception when calling ReposApi#reposUpstreamGoRead"); e.printStackTrace(); } ``` @@ -3688,7 +4478,7 @@ Name | Type | Description | Notes ### Return type -[**DockerUpstream**](DockerUpstream.md) +[**GoUpstream**](GoUpstream.md) ### Authorization @@ -3699,13 +4489,13 @@ Name | Type | Description | Notes - **Content-Type**: application/json - **Accept**: application/json - -# **reposUpstreamDockerUpdate** -> DockerUpstream reposUpstreamDockerUpdate(owner, identifier, slugPerm, data) + +# **reposUpstreamGoUpdate** +> GoUpstream reposUpstreamGoUpdate(owner, identifier, slugPerm, data) -Update a Docker upstream config for this repository. +Update a Go upstream config for this repository. -Update a Docker upstream config for this repository. +Update a Go upstream config for this repository. ### Example ```java @@ -3733,12 +4523,12 @@ ReposApi apiInstance = new ReposApi(); String owner = "owner_example"; // String | String identifier = "identifier_example"; // String | String slugPerm = "slugPerm_example"; // String | -DockerUpstreamRequest data = new DockerUpstreamRequest(); // DockerUpstreamRequest | +GoUpstreamRequest data = new GoUpstreamRequest(); // GoUpstreamRequest | try { - DockerUpstream result = apiInstance.reposUpstreamDockerUpdate(owner, identifier, slugPerm, data); + GoUpstream result = apiInstance.reposUpstreamGoUpdate(owner, identifier, slugPerm, data); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ReposApi#reposUpstreamDockerUpdate"); + System.err.println("Exception when calling ReposApi#reposUpstreamGoUpdate"); e.printStackTrace(); } ``` @@ -3750,11 +4540,11 @@ Name | Type | Description | Notes **owner** | **String**| | **identifier** | **String**| | **slugPerm** | **String**| | - **data** | [**DockerUpstreamRequest**](DockerUpstreamRequest.md)| | [optional] + **data** | [**GoUpstreamRequest**](GoUpstreamRequest.md)| | [optional] ### Return type -[**DockerUpstream**](DockerUpstream.md) +[**GoUpstream**](GoUpstream.md) ### Authorization diff --git a/bindings/java/src/docs/UserApi.md b/bindings/java/src/docs/UserApi.md index 0ea733ec..73e8dbfc 100644 --- a/bindings/java/src/docs/UserApi.md +++ b/bindings/java/src/docs/UserApi.md @@ -179,7 +179,7 @@ This endpoint does not need any parameter. # **userTokensList** -> InlineResponse200 userTokensList(page, pageSize) +> InlineResponse2001 userTokensList(page, pageSize) Retrieve the API key assigned to the user that is currently authenticated. @@ -211,7 +211,7 @@ UserApi apiInstance = new UserApi(); java.math.BigInteger page = new java.math.BigInteger(); // java.math.BigInteger | A page number within the paginated result set. java.math.BigInteger pageSize = new java.math.BigInteger(); // java.math.BigInteger | Number of results to return per page. try { - InlineResponse200 result = apiInstance.userTokensList(page, pageSize); + InlineResponse2001 result = apiInstance.userTokensList(page, pageSize); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling UserApi#userTokensList"); @@ -228,7 +228,7 @@ Name | Type | Description | Notes ### Return type -[**InlineResponse200**](InlineResponse200.md) +[**InlineResponse2001**](InlineResponse2001.md) ### Authorization diff --git a/bindings/java/src/pom.xml b/bindings/java/src/pom.xml index 46346fc6..548c7ad6 100644 --- a/bindings/java/src/pom.xml +++ b/bindings/java/src/pom.xml @@ -5,7 +5,7 @@ cloudsmith-api jar cloudsmith-api - 2.0.18 + 2.0.1 https://api.cloudsmith.io/?format=openapi Cloudsmith API 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 3d58d0d4..84e4b78f 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 @@ -87,7 +87,7 @@ public ApiClient() { json = new JSON(); // Set default User-Agent. - setUserAgent("Swagger-Codegen/2.0.18/java"); + setUserAgent("Swagger-Codegen/2.0.1/java"); // Setup authentications (key: authentication name, value: authentication). authentications = new HashMap(); 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 196e19d4..02276001 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 @@ -280,6 +280,14 @@ import io.cloudsmith.api.models.*; import io.cloudsmith.api.models.*; import io.cloudsmith.api.models.*; +import io.cloudsmith.api.models.*; +import io.cloudsmith.api.models.*; +import io.cloudsmith.api.models.*; +import io.cloudsmith.api.models.*; +import io.cloudsmith.api.models.*; +import io.cloudsmith.api.models.*; +import io.cloudsmith.api.models.*; +import io.cloudsmith.api.models.*; import okio.ByteString; import java.io.IOException; 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 24c5d9e5..b14f7853 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 @@ -63,6 +63,7 @@ import io.cloudsmith.api.models.HelmPackageUploadRequest; import io.cloudsmith.api.models.HexPackageUpload; import io.cloudsmith.api.models.HexPackageUploadRequest; +import io.cloudsmith.api.models.InlineResponse200; import io.cloudsmith.api.models.LuarocksPackageUpload; import io.cloudsmith.api.models.LuarocksPackageUploadRequest; import io.cloudsmith.api.models.MavenPackageUpload; @@ -579,6 +580,181 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don apiClient.executeAsync(call, localVarReturnType, callback); return call; } + /** + * Build call for packagesGroupsList + * @param owner (required) + * @param repo (required) + * @param page A page number within the paginated result set. (optional) + * @param pageSize Number of results to return per page. (optional) + * @param groupBy A field to group packages by. Available options: name, backend_kind. (optional, default to name) + * @param query A search term for querying names, filenames, versions, distributions, architectures, formats, or statuses of packages. (optional, default to ) + * @param sort A field for sorting objects in ascending or descending order. Use `-` prefix for descending order (e.g., `-name`). Available options: name, count, num_downloads, size, last_push, backend_kind. (optional, default to name) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call packagesGroupsListCall(String owner, String repo, java.math.BigInteger page, java.math.BigInteger pageSize, String groupBy, 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}/groups/" + .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.parameterToPair("page", page)); + if (pageSize != null) + localVarQueryParams.addAll(apiClient.parameterToPair("page_size", pageSize)); + if (groupBy != null) + localVarQueryParams.addAll(apiClient.parameterToPair("group_by", groupBy)); + if (query != null) + localVarQueryParams.addAll(apiClient.parameterToPair("query", query)); + if (sort != null) + localVarQueryParams.addAll(apiClient.parameterToPair("sort", sort)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "apikey", "basic" }; + if (headers != null) { + localVarHeaderParams.putAll(headers); + } + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call packagesGroupsListValidateBeforeCall(String owner, String repo, java.math.BigInteger page, java.math.BigInteger pageSize, String groupBy, String query, String sort, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + try { + ValidatorFactory factory = Validation.buildDefaultValidatorFactory(); + ExecutableValidator executableValidator = factory.getValidator().forExecutables(); + + Object[] parameterValues = { owner, repo, page, pageSize, groupBy, query, sort }; + Method method = this.getClass().getMethod("packagesGroupsListWithHttpInfo", String.class, String.class, java.math.BigInteger.class, java.math.BigInteger.class, String.class, String.class, String.class); + Set> violations = executableValidator.validateParameters(this, method, + parameterValues); + + if (violations.size() == 0) { + com.squareup.okhttp.Call call = packagesGroupsListCall(owner, repo, page, pageSize, groupBy, query, sort, progressListener, progressRequestListener); + return call; + + } else { + throw new BeanValidationException((Set) violations); + } + } catch (NoSuchMethodException e) { + e.printStackTrace(); + throw new ApiException(e.getMessage()); + } catch (SecurityException e) { + e.printStackTrace(); + throw new ApiException(e.getMessage()); + } + + } + + /** + * Return a list of Package Groups in a repository. + * Return a list of Package Groups in a repository. + * @param owner (required) + * @param repo (required) + * @param page A page number within the paginated result set. (optional) + * @param pageSize Number of results to return per page. (optional) + * @param groupBy A field to group packages by. Available options: name, backend_kind. (optional, default to name) + * @param query A search term for querying names, filenames, versions, distributions, architectures, formats, or statuses of packages. (optional, default to ) + * @param sort A field for sorting objects in ascending or descending order. Use `-` prefix for descending order (e.g., `-name`). Available options: name, count, num_downloads, size, last_push, backend_kind. (optional, default to name) + * @return InlineResponse200 + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public InlineResponse200 packagesGroupsList(String owner, String repo, java.math.BigInteger page, java.math.BigInteger pageSize, String groupBy, String query, String sort) throws ApiException { + ApiResponse resp = packagesGroupsListWithHttpInfo(owner, repo, page, pageSize, groupBy, query, sort); + return resp.getData(); + } + + /** + * Return a list of Package Groups in a repository. + * Return a list of Package Groups in a repository. + * @param owner (required) + * @param repo (required) + * @param page A page number within the paginated result set. (optional) + * @param pageSize Number of results to return per page. (optional) + * @param groupBy A field to group packages by. Available options: name, backend_kind. (optional, default to name) + * @param query A search term for querying names, filenames, versions, distributions, architectures, formats, or statuses of packages. (optional, default to ) + * @param sort A field for sorting objects in ascending or descending order. Use `-` prefix for descending order (e.g., `-name`). Available options: name, count, num_downloads, size, last_push, backend_kind. (optional, default to name) + * @return ApiResponse<InlineResponse200> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse packagesGroupsListWithHttpInfo( @NotNull String owner, @NotNull String repo, java.math.BigInteger page, java.math.BigInteger pageSize, String groupBy, String query, String sort) throws ApiException { + com.squareup.okhttp.Call call = packagesGroupsListValidateBeforeCall(owner, repo, page, pageSize, groupBy, query, sort, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Return a list of Package Groups in a repository. (asynchronously) + * Return a list of Package Groups in a repository. + * @param owner (required) + * @param repo (required) + * @param page A page number within the paginated result set. (optional) + * @param pageSize Number of results to return per page. (optional) + * @param groupBy A field to group packages by. Available options: name, backend_kind. (optional, default to name) + * @param query A search term for querying names, filenames, versions, distributions, architectures, formats, or statuses of packages. (optional, default to ) + * @param sort A field for sorting objects in ascending or descending order. Use `-` prefix for descending order (e.g., `-name`). Available options: name, count, num_downloads, size, last_push, backend_kind. (optional, default to name) + * @param callback The callback to be executed when the API call finishes + * @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 packagesGroupsListAsync(String owner, String repo, java.math.BigInteger page, java.math.BigInteger pageSize, String groupBy, String query, String sort, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = packagesGroupsListValidateBeforeCall(owner, repo, page, pageSize, groupBy, query, sort, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } /** * Build call for packagesList * @param owner (required) 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 3cff604f..08e29caf 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 @@ -36,6 +36,9 @@ import java.lang.reflect.Method; import java.lang.reflect.Type; +import io.cloudsmith.api.models.CargoUpstream; +import io.cloudsmith.api.models.CargoUpstreamRequest; +import io.cloudsmith.api.models.CargoUpstreamRequestPatch; import io.cloudsmith.api.models.ComposerUpstream; import io.cloudsmith.api.models.ComposerUpstreamRequest; import io.cloudsmith.api.models.ComposerUpstreamRequestPatch; @@ -52,6 +55,9 @@ import io.cloudsmith.api.models.DockerUpstreamRequest; import io.cloudsmith.api.models.DockerUpstreamRequestPatch; import io.cloudsmith.api.models.ErrorDetail; +import io.cloudsmith.api.models.GoUpstream; +import io.cloudsmith.api.models.GoUpstreamRequest; +import io.cloudsmith.api.models.GoUpstreamRequestPatch; import io.cloudsmith.api.models.HelmUpstream; import io.cloudsmith.api.models.HelmUpstreamRequest; import io.cloudsmith.api.models.HelmUpstreamRequestPatch; @@ -4097,7 +4103,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don return call; } /** - * Build call for reposUpstreamComposerCreate + * Build call for reposUpstreamCargoCreate * @param owner (required) * @param identifier (required) * @param data (optional) @@ -4106,11 +4112,11 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call reposUpstreamComposerCreateCall(String owner, String identifier, ComposerUpstreamRequest data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call reposUpstreamCargoCreateCall(String owner, String identifier, CargoUpstreamRequest data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = data; // create path and map variables - String localVarPath = "/repos/{owner}/{identifier}/upstream/composer/" + String localVarPath = "/repos/{owner}/{identifier}/upstream/cargo/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "identifier" + "\\}", apiClient.escapeString(identifier.toString())); @@ -4153,18 +4159,18 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call reposUpstreamComposerCreateValidateBeforeCall(String owner, String identifier, ComposerUpstreamRequest data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call reposUpstreamCargoCreateValidateBeforeCall(String owner, String identifier, CargoUpstreamRequest data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { ValidatorFactory factory = Validation.buildDefaultValidatorFactory(); ExecutableValidator executableValidator = factory.getValidator().forExecutables(); Object[] parameterValues = { owner, identifier, data }; - Method method = this.getClass().getMethod("reposUpstreamComposerCreateWithHttpInfo", String.class, String.class, ComposerUpstreamRequest.class); + Method method = this.getClass().getMethod("reposUpstreamCargoCreateWithHttpInfo", String.class, String.class, CargoUpstreamRequest.class); Set> violations = executableValidator.validateParameters(this, method, parameterValues); if (violations.size() == 0) { - com.squareup.okhttp.Call call = reposUpstreamComposerCreateCall(owner, identifier, data, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = reposUpstreamCargoCreateCall(owner, identifier, data, progressListener, progressRequestListener); return call; } else { @@ -4181,37 +4187,37 @@ private com.squareup.okhttp.Call reposUpstreamComposerCreateValidateBeforeCall(S } /** - * Create a Composer upstream config for this repository. - * Create a Composer upstream config for this repository. + * Create a Cargo upstream config for this repository. + * Create a Cargo upstream config for this repository. * @param owner (required) * @param identifier (required) * @param data (optional) - * @return ComposerUpstream + * @return CargoUpstream * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ComposerUpstream reposUpstreamComposerCreate(String owner, String identifier, ComposerUpstreamRequest data) throws ApiException { - ApiResponse resp = reposUpstreamComposerCreateWithHttpInfo(owner, identifier, data); + public CargoUpstream reposUpstreamCargoCreate(String owner, String identifier, CargoUpstreamRequest data) throws ApiException { + ApiResponse resp = reposUpstreamCargoCreateWithHttpInfo(owner, identifier, data); return resp.getData(); } /** - * Create a Composer upstream config for this repository. - * Create a Composer upstream config for this repository. + * Create a Cargo upstream config for this repository. + * Create a Cargo upstream config for this repository. * @param owner (required) * @param identifier (required) * @param data (optional) - * @return ApiResponse<ComposerUpstream> + * @return ApiResponse<CargoUpstream> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse reposUpstreamComposerCreateWithHttpInfo( @NotNull String owner, @NotNull String identifier, ComposerUpstreamRequest data) throws ApiException { - com.squareup.okhttp.Call call = reposUpstreamComposerCreateValidateBeforeCall(owner, identifier, data, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse reposUpstreamCargoCreateWithHttpInfo( @NotNull String owner, @NotNull String identifier, CargoUpstreamRequest data) throws ApiException { + com.squareup.okhttp.Call call = reposUpstreamCargoCreateValidateBeforeCall(owner, identifier, data, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Create a Composer upstream config for this repository. (asynchronously) - * Create a Composer upstream config for this repository. + * Create a Cargo upstream config for this repository. (asynchronously) + * Create a Cargo upstream config for this repository. * @param owner (required) * @param identifier (required) * @param data (optional) @@ -4219,7 +4225,7 @@ public ApiResponse reposUpstreamComposerCreateWithHttpInfo( @N * @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 reposUpstreamComposerCreateAsync(String owner, String identifier, ComposerUpstreamRequest data, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call reposUpstreamCargoCreateAsync(String owner, String identifier, CargoUpstreamRequest data, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -4240,13 +4246,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = reposUpstreamComposerCreateValidateBeforeCall(owner, identifier, data, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = reposUpstreamCargoCreateValidateBeforeCall(owner, identifier, data, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for reposUpstreamComposerDelete + * Build call for reposUpstreamCargoDelete * @param owner (required) * @param identifier (required) * @param slugPerm (required) @@ -4255,11 +4261,11 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call reposUpstreamComposerDeleteCall(String owner, String identifier, String slugPerm, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call reposUpstreamCargoDeleteCall(String owner, String identifier, String slugPerm, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/repos/{owner}/{identifier}/upstream/composer/{slug_perm}/" + String localVarPath = "/repos/{owner}/{identifier}/upstream/cargo/{slug_perm}/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "identifier" + "\\}", apiClient.escapeString(identifier.toString())) .replaceAll("\\{" + "slug_perm" + "\\}", apiClient.escapeString(slugPerm.toString())); @@ -4303,18 +4309,18 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call reposUpstreamComposerDeleteValidateBeforeCall(String owner, String identifier, String slugPerm, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call reposUpstreamCargoDeleteValidateBeforeCall(String owner, String identifier, String slugPerm, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { ValidatorFactory factory = Validation.buildDefaultValidatorFactory(); ExecutableValidator executableValidator = factory.getValidator().forExecutables(); Object[] parameterValues = { owner, identifier, slugPerm }; - Method method = this.getClass().getMethod("reposUpstreamComposerDeleteWithHttpInfo", String.class, String.class, String.class); + Method method = this.getClass().getMethod("reposUpstreamCargoDeleteWithHttpInfo", String.class, String.class, String.class); Set> violations = executableValidator.validateParameters(this, method, parameterValues); if (violations.size() == 0) { - com.squareup.okhttp.Call call = reposUpstreamComposerDeleteCall(owner, identifier, slugPerm, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = reposUpstreamCargoDeleteCall(owner, identifier, slugPerm, progressListener, progressRequestListener); return call; } else { @@ -4331,34 +4337,34 @@ private com.squareup.okhttp.Call reposUpstreamComposerDeleteValidateBeforeCall(S } /** - * Delete a Composer upstream config for this repository. - * Delete a Composer upstream config for this repository. + * Delete a Cargo upstream config for this repository. + * Delete a Cargo upstream config for this repository. * @param owner (required) * @param identifier (required) * @param slugPerm (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public void reposUpstreamComposerDelete(String owner, String identifier, String slugPerm) throws ApiException { - reposUpstreamComposerDeleteWithHttpInfo(owner, identifier, slugPerm); + public void reposUpstreamCargoDelete(String owner, String identifier, String slugPerm) throws ApiException { + reposUpstreamCargoDeleteWithHttpInfo(owner, identifier, slugPerm); } /** - * Delete a Composer upstream config for this repository. - * Delete a Composer upstream config for this repository. + * Delete a Cargo upstream config for this repository. + * Delete a Cargo upstream config for this repository. * @param owner (required) * @param identifier (required) * @param slugPerm (required) * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse reposUpstreamComposerDeleteWithHttpInfo( @NotNull String owner, @NotNull String identifier, @NotNull String slugPerm) throws ApiException { - com.squareup.okhttp.Call call = reposUpstreamComposerDeleteValidateBeforeCall(owner, identifier, slugPerm, null, null); + public ApiResponse reposUpstreamCargoDeleteWithHttpInfo( @NotNull String owner, @NotNull String identifier, @NotNull String slugPerm) throws ApiException { + com.squareup.okhttp.Call call = reposUpstreamCargoDeleteValidateBeforeCall(owner, identifier, slugPerm, null, null); return apiClient.execute(call); } /** - * Delete a Composer upstream config for this repository. (asynchronously) - * Delete a Composer upstream config for this repository. + * Delete a Cargo upstream config for this repository. (asynchronously) + * Delete a Cargo upstream config for this repository. * @param owner (required) * @param identifier (required) * @param slugPerm (required) @@ -4366,7 +4372,7 @@ public ApiResponse reposUpstreamComposerDeleteWithHttpInfo( @NotNull Strin * @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 reposUpstreamComposerDeleteAsync(String owner, String identifier, String slugPerm, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call reposUpstreamCargoDeleteAsync(String owner, String identifier, String slugPerm, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -4387,12 +4393,12 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = reposUpstreamComposerDeleteValidateBeforeCall(owner, identifier, slugPerm, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = reposUpstreamCargoDeleteValidateBeforeCall(owner, identifier, slugPerm, progressListener, progressRequestListener); apiClient.executeAsync(call, callback); return call; } /** - * Build call for reposUpstreamComposerList + * Build call for reposUpstreamCargoList * @param owner (required) * @param identifier (required) * @param page A page number within the paginated result set. (optional) @@ -4402,11 +4408,11 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call reposUpstreamComposerListCall(String owner, String identifier, java.math.BigInteger page, java.math.BigInteger pageSize, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call reposUpstreamCargoListCall(String owner, String identifier, java.math.BigInteger page, java.math.BigInteger pageSize, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/repos/{owner}/{identifier}/upstream/composer/" + String localVarPath = "/repos/{owner}/{identifier}/upstream/cargo/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "identifier" + "\\}", apiClient.escapeString(identifier.toString())); @@ -4453,18 +4459,18 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call reposUpstreamComposerListValidateBeforeCall(String owner, String identifier, java.math.BigInteger page, java.math.BigInteger pageSize, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call reposUpstreamCargoListValidateBeforeCall(String owner, String identifier, java.math.BigInteger page, java.math.BigInteger pageSize, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { ValidatorFactory factory = Validation.buildDefaultValidatorFactory(); ExecutableValidator executableValidator = factory.getValidator().forExecutables(); Object[] parameterValues = { owner, identifier, page, pageSize }; - Method method = this.getClass().getMethod("reposUpstreamComposerListWithHttpInfo", String.class, String.class, java.math.BigInteger.class, java.math.BigInteger.class); + Method method = this.getClass().getMethod("reposUpstreamCargoListWithHttpInfo", String.class, String.class, java.math.BigInteger.class, java.math.BigInteger.class); Set> violations = executableValidator.validateParameters(this, method, parameterValues); if (violations.size() == 0) { - com.squareup.okhttp.Call call = reposUpstreamComposerListCall(owner, identifier, page, pageSize, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = reposUpstreamCargoListCall(owner, identifier, page, pageSize, progressListener, progressRequestListener); return call; } else { @@ -4481,39 +4487,39 @@ private com.squareup.okhttp.Call reposUpstreamComposerListValidateBeforeCall(Str } /** - * List Composer upstream configs for this repository. - * List Composer upstream configs for this repository. + * List Cargo upstream configs for this repository. + * List Cargo upstream configs for this repository. * @param owner (required) * @param identifier (required) * @param page A page number within the paginated result set. (optional) * @param pageSize Number of results to return per page. (optional) - * @return List<ComposerUpstream> + * @return List<CargoUpstream> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public List reposUpstreamComposerList(String owner, String identifier, java.math.BigInteger page, java.math.BigInteger pageSize) throws ApiException { - ApiResponse> resp = reposUpstreamComposerListWithHttpInfo(owner, identifier, page, pageSize); + public List reposUpstreamCargoList(String owner, String identifier, java.math.BigInteger page, java.math.BigInteger pageSize) throws ApiException { + ApiResponse> resp = reposUpstreamCargoListWithHttpInfo(owner, identifier, page, pageSize); return resp.getData(); } /** - * List Composer upstream configs for this repository. - * List Composer upstream configs for this repository. + * List Cargo upstream configs for this repository. + * List Cargo upstream configs for this repository. * @param owner (required) * @param identifier (required) * @param page A page number within the paginated result set. (optional) * @param pageSize Number of results to return per page. (optional) - * @return ApiResponse<List<ComposerUpstream>> + * @return ApiResponse<List<CargoUpstream>> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse> reposUpstreamComposerListWithHttpInfo( @NotNull String owner, @NotNull String identifier, java.math.BigInteger page, java.math.BigInteger pageSize) throws ApiException { - com.squareup.okhttp.Call call = reposUpstreamComposerListValidateBeforeCall(owner, identifier, page, pageSize, null, null); - Type localVarReturnType = new TypeToken>(){}.getType(); + public ApiResponse> reposUpstreamCargoListWithHttpInfo( @NotNull String owner, @NotNull String identifier, java.math.BigInteger page, java.math.BigInteger pageSize) throws ApiException { + com.squareup.okhttp.Call call = reposUpstreamCargoListValidateBeforeCall(owner, identifier, page, pageSize, null, null); + Type localVarReturnType = new TypeToken>(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * List Composer upstream configs for this repository. (asynchronously) - * List Composer upstream configs for this repository. + * List Cargo upstream configs for this repository. (asynchronously) + * List Cargo upstream configs for this repository. * @param owner (required) * @param identifier (required) * @param page A page number within the paginated result set. (optional) @@ -4522,7 +4528,7 @@ public ApiResponse> reposUpstreamComposerListWithHttpInfo * @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 reposUpstreamComposerListAsync(String owner, String identifier, java.math.BigInteger page, java.math.BigInteger pageSize, final ApiCallback> callback) throws ApiException { + public com.squareup.okhttp.Call reposUpstreamCargoListAsync(String owner, String identifier, java.math.BigInteger page, java.math.BigInteger pageSize, final ApiCallback> callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -4543,13 +4549,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = reposUpstreamComposerListValidateBeforeCall(owner, identifier, page, pageSize, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken>(){}.getType(); + com.squareup.okhttp.Call call = reposUpstreamCargoListValidateBeforeCall(owner, identifier, page, pageSize, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken>(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for reposUpstreamComposerPartialUpdate + * Build call for reposUpstreamCargoPartialUpdate * @param owner (required) * @param identifier (required) * @param slugPerm (required) @@ -4559,11 +4565,11 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call reposUpstreamComposerPartialUpdateCall(String owner, String identifier, String slugPerm, ComposerUpstreamRequestPatch data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call reposUpstreamCargoPartialUpdateCall(String owner, String identifier, String slugPerm, CargoUpstreamRequestPatch data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = data; // create path and map variables - String localVarPath = "/repos/{owner}/{identifier}/upstream/composer/{slug_perm}/" + String localVarPath = "/repos/{owner}/{identifier}/upstream/cargo/{slug_perm}/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "identifier" + "\\}", apiClient.escapeString(identifier.toString())) .replaceAll("\\{" + "slug_perm" + "\\}", apiClient.escapeString(slugPerm.toString())); @@ -4607,18 +4613,18 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call reposUpstreamComposerPartialUpdateValidateBeforeCall(String owner, String identifier, String slugPerm, ComposerUpstreamRequestPatch data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call reposUpstreamCargoPartialUpdateValidateBeforeCall(String owner, String identifier, String slugPerm, CargoUpstreamRequestPatch data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { ValidatorFactory factory = Validation.buildDefaultValidatorFactory(); ExecutableValidator executableValidator = factory.getValidator().forExecutables(); Object[] parameterValues = { owner, identifier, slugPerm, data }; - Method method = this.getClass().getMethod("reposUpstreamComposerPartialUpdateWithHttpInfo", String.class, String.class, String.class, ComposerUpstreamRequestPatch.class); + Method method = this.getClass().getMethod("reposUpstreamCargoPartialUpdateWithHttpInfo", String.class, String.class, String.class, CargoUpstreamRequestPatch.class); Set> violations = executableValidator.validateParameters(this, method, parameterValues); if (violations.size() == 0) { - com.squareup.okhttp.Call call = reposUpstreamComposerPartialUpdateCall(owner, identifier, slugPerm, data, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = reposUpstreamCargoPartialUpdateCall(owner, identifier, slugPerm, data, progressListener, progressRequestListener); return call; } else { @@ -4635,39 +4641,39 @@ private com.squareup.okhttp.Call reposUpstreamComposerPartialUpdateValidateBefor } /** - * Partially update a Composer upstream config for this repository. - * Partially update a Composer upstream config for this repository. + * Partially update a Cargo upstream config for this repository. + * Partially update a Cargo upstream config for this repository. * @param owner (required) * @param identifier (required) * @param slugPerm (required) * @param data (optional) - * @return ComposerUpstream + * @return CargoUpstream * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ComposerUpstream reposUpstreamComposerPartialUpdate(String owner, String identifier, String slugPerm, ComposerUpstreamRequestPatch data) throws ApiException { - ApiResponse resp = reposUpstreamComposerPartialUpdateWithHttpInfo(owner, identifier, slugPerm, data); + public CargoUpstream reposUpstreamCargoPartialUpdate(String owner, String identifier, String slugPerm, CargoUpstreamRequestPatch data) throws ApiException { + ApiResponse resp = reposUpstreamCargoPartialUpdateWithHttpInfo(owner, identifier, slugPerm, data); return resp.getData(); } /** - * Partially update a Composer upstream config for this repository. - * Partially update a Composer upstream config for this repository. + * Partially update a Cargo upstream config for this repository. + * Partially update a Cargo upstream config for this repository. * @param owner (required) * @param identifier (required) * @param slugPerm (required) * @param data (optional) - * @return ApiResponse<ComposerUpstream> + * @return ApiResponse<CargoUpstream> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse reposUpstreamComposerPartialUpdateWithHttpInfo( @NotNull String owner, @NotNull String identifier, @NotNull String slugPerm, ComposerUpstreamRequestPatch data) throws ApiException { - com.squareup.okhttp.Call call = reposUpstreamComposerPartialUpdateValidateBeforeCall(owner, identifier, slugPerm, data, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse reposUpstreamCargoPartialUpdateWithHttpInfo( @NotNull String owner, @NotNull String identifier, @NotNull String slugPerm, CargoUpstreamRequestPatch data) throws ApiException { + com.squareup.okhttp.Call call = reposUpstreamCargoPartialUpdateValidateBeforeCall(owner, identifier, slugPerm, data, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Partially update a Composer upstream config for this repository. (asynchronously) - * Partially update a Composer upstream config for this repository. + * Partially update a Cargo upstream config for this repository. (asynchronously) + * Partially update a Cargo upstream config for this repository. * @param owner (required) * @param identifier (required) * @param slugPerm (required) @@ -4676,7 +4682,7 @@ public ApiResponse reposUpstreamComposerPartialUpdateWithHttpI * @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 reposUpstreamComposerPartialUpdateAsync(String owner, String identifier, String slugPerm, ComposerUpstreamRequestPatch data, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call reposUpstreamCargoPartialUpdateAsync(String owner, String identifier, String slugPerm, CargoUpstreamRequestPatch data, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -4697,13 +4703,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = reposUpstreamComposerPartialUpdateValidateBeforeCall(owner, identifier, slugPerm, data, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = reposUpstreamCargoPartialUpdateValidateBeforeCall(owner, identifier, slugPerm, data, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for reposUpstreamComposerRead + * Build call for reposUpstreamCargoRead * @param owner (required) * @param identifier (required) * @param slugPerm (required) @@ -4712,11 +4718,11 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call reposUpstreamComposerReadCall(String owner, String identifier, String slugPerm, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call reposUpstreamCargoReadCall(String owner, String identifier, String slugPerm, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/repos/{owner}/{identifier}/upstream/composer/{slug_perm}/" + String localVarPath = "/repos/{owner}/{identifier}/upstream/cargo/{slug_perm}/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "identifier" + "\\}", apiClient.escapeString(identifier.toString())) .replaceAll("\\{" + "slug_perm" + "\\}", apiClient.escapeString(slugPerm.toString())); @@ -4760,18 +4766,18 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call reposUpstreamComposerReadValidateBeforeCall(String owner, String identifier, String slugPerm, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call reposUpstreamCargoReadValidateBeforeCall(String owner, String identifier, String slugPerm, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { ValidatorFactory factory = Validation.buildDefaultValidatorFactory(); ExecutableValidator executableValidator = factory.getValidator().forExecutables(); Object[] parameterValues = { owner, identifier, slugPerm }; - Method method = this.getClass().getMethod("reposUpstreamComposerReadWithHttpInfo", String.class, String.class, String.class); + Method method = this.getClass().getMethod("reposUpstreamCargoReadWithHttpInfo", String.class, String.class, String.class); Set> violations = executableValidator.validateParameters(this, method, parameterValues); if (violations.size() == 0) { - com.squareup.okhttp.Call call = reposUpstreamComposerReadCall(owner, identifier, slugPerm, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = reposUpstreamCargoReadCall(owner, identifier, slugPerm, progressListener, progressRequestListener); return call; } else { @@ -4788,37 +4794,37 @@ private com.squareup.okhttp.Call reposUpstreamComposerReadValidateBeforeCall(Str } /** - * Retrieve a Composer upstream config for this repository. - * Retrieve a Composer upstream config for this repository. + * Retrieve a Cargo upstream config for this repository. + * Retrieve a Cargo upstream config for this repository. * @param owner (required) * @param identifier (required) * @param slugPerm (required) - * @return ComposerUpstream + * @return CargoUpstream * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ComposerUpstream reposUpstreamComposerRead(String owner, String identifier, String slugPerm) throws ApiException { - ApiResponse resp = reposUpstreamComposerReadWithHttpInfo(owner, identifier, slugPerm); + public CargoUpstream reposUpstreamCargoRead(String owner, String identifier, String slugPerm) throws ApiException { + ApiResponse resp = reposUpstreamCargoReadWithHttpInfo(owner, identifier, slugPerm); return resp.getData(); } /** - * Retrieve a Composer upstream config for this repository. - * Retrieve a Composer upstream config for this repository. + * Retrieve a Cargo upstream config for this repository. + * Retrieve a Cargo upstream config for this repository. * @param owner (required) * @param identifier (required) * @param slugPerm (required) - * @return ApiResponse<ComposerUpstream> + * @return ApiResponse<CargoUpstream> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse reposUpstreamComposerReadWithHttpInfo( @NotNull String owner, @NotNull String identifier, @NotNull String slugPerm) throws ApiException { - com.squareup.okhttp.Call call = reposUpstreamComposerReadValidateBeforeCall(owner, identifier, slugPerm, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse reposUpstreamCargoReadWithHttpInfo( @NotNull String owner, @NotNull String identifier, @NotNull String slugPerm) throws ApiException { + com.squareup.okhttp.Call call = reposUpstreamCargoReadValidateBeforeCall(owner, identifier, slugPerm, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Retrieve a Composer upstream config for this repository. (asynchronously) - * Retrieve a Composer upstream config for this repository. + * Retrieve a Cargo upstream config for this repository. (asynchronously) + * Retrieve a Cargo upstream config for this repository. * @param owner (required) * @param identifier (required) * @param slugPerm (required) @@ -4826,7 +4832,7 @@ public ApiResponse reposUpstreamComposerReadWithHttpInfo( @Not * @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 reposUpstreamComposerReadAsync(String owner, String identifier, String slugPerm, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call reposUpstreamCargoReadAsync(String owner, String identifier, String slugPerm, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -4847,13 +4853,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = reposUpstreamComposerReadValidateBeforeCall(owner, identifier, slugPerm, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = reposUpstreamCargoReadValidateBeforeCall(owner, identifier, slugPerm, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for reposUpstreamComposerUpdate + * Build call for reposUpstreamCargoUpdate * @param owner (required) * @param identifier (required) * @param slugPerm (required) @@ -4863,11 +4869,11 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call reposUpstreamComposerUpdateCall(String owner, String identifier, String slugPerm, ComposerUpstreamRequest data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call reposUpstreamCargoUpdateCall(String owner, String identifier, String slugPerm, CargoUpstreamRequest data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = data; // create path and map variables - String localVarPath = "/repos/{owner}/{identifier}/upstream/composer/{slug_perm}/" + String localVarPath = "/repos/{owner}/{identifier}/upstream/cargo/{slug_perm}/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "identifier" + "\\}", apiClient.escapeString(identifier.toString())) .replaceAll("\\{" + "slug_perm" + "\\}", apiClient.escapeString(slugPerm.toString())); @@ -4911,18 +4917,18 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call reposUpstreamComposerUpdateValidateBeforeCall(String owner, String identifier, String slugPerm, ComposerUpstreamRequest data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call reposUpstreamCargoUpdateValidateBeforeCall(String owner, String identifier, String slugPerm, CargoUpstreamRequest data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { ValidatorFactory factory = Validation.buildDefaultValidatorFactory(); ExecutableValidator executableValidator = factory.getValidator().forExecutables(); Object[] parameterValues = { owner, identifier, slugPerm, data }; - Method method = this.getClass().getMethod("reposUpstreamComposerUpdateWithHttpInfo", String.class, String.class, String.class, ComposerUpstreamRequest.class); + Method method = this.getClass().getMethod("reposUpstreamCargoUpdateWithHttpInfo", String.class, String.class, String.class, CargoUpstreamRequest.class); Set> violations = executableValidator.validateParameters(this, method, parameterValues); if (violations.size() == 0) { - com.squareup.okhttp.Call call = reposUpstreamComposerUpdateCall(owner, identifier, slugPerm, data, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = reposUpstreamCargoUpdateCall(owner, identifier, slugPerm, data, progressListener, progressRequestListener); return call; } else { @@ -4939,39 +4945,39 @@ private com.squareup.okhttp.Call reposUpstreamComposerUpdateValidateBeforeCall(S } /** - * Update a Composer upstream config for this repository. - * Update a Composer upstream config for this repository. + * Update a Cargo upstream config for this repository. + * Update a Cargo upstream config for this repository. * @param owner (required) * @param identifier (required) * @param slugPerm (required) * @param data (optional) - * @return ComposerUpstream + * @return CargoUpstream * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ComposerUpstream reposUpstreamComposerUpdate(String owner, String identifier, String slugPerm, ComposerUpstreamRequest data) throws ApiException { - ApiResponse resp = reposUpstreamComposerUpdateWithHttpInfo(owner, identifier, slugPerm, data); + public CargoUpstream reposUpstreamCargoUpdate(String owner, String identifier, String slugPerm, CargoUpstreamRequest data) throws ApiException { + ApiResponse resp = reposUpstreamCargoUpdateWithHttpInfo(owner, identifier, slugPerm, data); return resp.getData(); } /** - * Update a Composer upstream config for this repository. - * Update a Composer upstream config for this repository. + * Update a Cargo upstream config for this repository. + * Update a Cargo upstream config for this repository. * @param owner (required) * @param identifier (required) * @param slugPerm (required) * @param data (optional) - * @return ApiResponse<ComposerUpstream> + * @return ApiResponse<CargoUpstream> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse reposUpstreamComposerUpdateWithHttpInfo( @NotNull String owner, @NotNull String identifier, @NotNull String slugPerm, ComposerUpstreamRequest data) throws ApiException { - com.squareup.okhttp.Call call = reposUpstreamComposerUpdateValidateBeforeCall(owner, identifier, slugPerm, data, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse reposUpstreamCargoUpdateWithHttpInfo( @NotNull String owner, @NotNull String identifier, @NotNull String slugPerm, CargoUpstreamRequest data) throws ApiException { + com.squareup.okhttp.Call call = reposUpstreamCargoUpdateValidateBeforeCall(owner, identifier, slugPerm, data, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Update a Composer upstream config for this repository. (asynchronously) - * Update a Composer upstream config for this repository. + * Update a Cargo upstream config for this repository. (asynchronously) + * Update a Cargo upstream config for this repository. * @param owner (required) * @param identifier (required) * @param slugPerm (required) @@ -4980,7 +4986,7 @@ public ApiResponse reposUpstreamComposerUpdateWithHttpInfo( @N * @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 reposUpstreamComposerUpdateAsync(String owner, String identifier, String slugPerm, ComposerUpstreamRequest data, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call reposUpstreamCargoUpdateAsync(String owner, String identifier, String slugPerm, CargoUpstreamRequest data, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -5001,13 +5007,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = reposUpstreamComposerUpdateValidateBeforeCall(owner, identifier, slugPerm, data, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = reposUpstreamCargoUpdateValidateBeforeCall(owner, identifier, slugPerm, data, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for reposUpstreamCranCreate + * Build call for reposUpstreamComposerCreate * @param owner (required) * @param identifier (required) * @param data (optional) @@ -5016,11 +5022,11 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call reposUpstreamCranCreateCall(String owner, String identifier, CranUpstreamRequest data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call reposUpstreamComposerCreateCall(String owner, String identifier, ComposerUpstreamRequest data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = data; // create path and map variables - String localVarPath = "/repos/{owner}/{identifier}/upstream/cran/" + String localVarPath = "/repos/{owner}/{identifier}/upstream/composer/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "identifier" + "\\}", apiClient.escapeString(identifier.toString())); @@ -5063,18 +5069,18 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call reposUpstreamCranCreateValidateBeforeCall(String owner, String identifier, CranUpstreamRequest data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call reposUpstreamComposerCreateValidateBeforeCall(String owner, String identifier, ComposerUpstreamRequest data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { ValidatorFactory factory = Validation.buildDefaultValidatorFactory(); ExecutableValidator executableValidator = factory.getValidator().forExecutables(); Object[] parameterValues = { owner, identifier, data }; - Method method = this.getClass().getMethod("reposUpstreamCranCreateWithHttpInfo", String.class, String.class, CranUpstreamRequest.class); + Method method = this.getClass().getMethod("reposUpstreamComposerCreateWithHttpInfo", String.class, String.class, ComposerUpstreamRequest.class); Set> violations = executableValidator.validateParameters(this, method, parameterValues); if (violations.size() == 0) { - com.squareup.okhttp.Call call = reposUpstreamCranCreateCall(owner, identifier, data, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = reposUpstreamComposerCreateCall(owner, identifier, data, progressListener, progressRequestListener); return call; } else { @@ -5091,37 +5097,37 @@ private com.squareup.okhttp.Call reposUpstreamCranCreateValidateBeforeCall(Strin } /** - * Create a CRAN upstream config for this repository. - * Create a CRAN upstream config for this repository. + * Create a Composer upstream config for this repository. + * Create a Composer upstream config for this repository. * @param owner (required) * @param identifier (required) * @param data (optional) - * @return CranUpstream + * @return ComposerUpstream * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public CranUpstream reposUpstreamCranCreate(String owner, String identifier, CranUpstreamRequest data) throws ApiException { - ApiResponse resp = reposUpstreamCranCreateWithHttpInfo(owner, identifier, data); + public ComposerUpstream reposUpstreamComposerCreate(String owner, String identifier, ComposerUpstreamRequest data) throws ApiException { + ApiResponse resp = reposUpstreamComposerCreateWithHttpInfo(owner, identifier, data); return resp.getData(); } /** - * Create a CRAN upstream config for this repository. - * Create a CRAN upstream config for this repository. + * Create a Composer upstream config for this repository. + * Create a Composer upstream config for this repository. * @param owner (required) * @param identifier (required) * @param data (optional) - * @return ApiResponse<CranUpstream> + * @return ApiResponse<ComposerUpstream> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse reposUpstreamCranCreateWithHttpInfo( @NotNull String owner, @NotNull String identifier, CranUpstreamRequest data) throws ApiException { - com.squareup.okhttp.Call call = reposUpstreamCranCreateValidateBeforeCall(owner, identifier, data, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse reposUpstreamComposerCreateWithHttpInfo( @NotNull String owner, @NotNull String identifier, ComposerUpstreamRequest data) throws ApiException { + com.squareup.okhttp.Call call = reposUpstreamComposerCreateValidateBeforeCall(owner, identifier, data, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Create a CRAN upstream config for this repository. (asynchronously) - * Create a CRAN upstream config for this repository. + * Create a Composer upstream config for this repository. (asynchronously) + * Create a Composer upstream config for this repository. * @param owner (required) * @param identifier (required) * @param data (optional) @@ -5129,7 +5135,7 @@ public ApiResponse reposUpstreamCranCreateWithHttpInfo( @NotNull S * @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 reposUpstreamCranCreateAsync(String owner, String identifier, CranUpstreamRequest data, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call reposUpstreamComposerCreateAsync(String owner, String identifier, ComposerUpstreamRequest data, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -5150,13 +5156,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = reposUpstreamCranCreateValidateBeforeCall(owner, identifier, data, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = reposUpstreamComposerCreateValidateBeforeCall(owner, identifier, data, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for reposUpstreamCranDelete + * Build call for reposUpstreamComposerDelete * @param owner (required) * @param identifier (required) * @param slugPerm (required) @@ -5165,11 +5171,11 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call reposUpstreamCranDeleteCall(String owner, String identifier, String slugPerm, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call reposUpstreamComposerDeleteCall(String owner, String identifier, String slugPerm, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/repos/{owner}/{identifier}/upstream/cran/{slug_perm}/" + String localVarPath = "/repos/{owner}/{identifier}/upstream/composer/{slug_perm}/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "identifier" + "\\}", apiClient.escapeString(identifier.toString())) .replaceAll("\\{" + "slug_perm" + "\\}", apiClient.escapeString(slugPerm.toString())); @@ -5213,18 +5219,18 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call reposUpstreamCranDeleteValidateBeforeCall(String owner, String identifier, String slugPerm, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call reposUpstreamComposerDeleteValidateBeforeCall(String owner, String identifier, String slugPerm, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { ValidatorFactory factory = Validation.buildDefaultValidatorFactory(); ExecutableValidator executableValidator = factory.getValidator().forExecutables(); Object[] parameterValues = { owner, identifier, slugPerm }; - Method method = this.getClass().getMethod("reposUpstreamCranDeleteWithHttpInfo", String.class, String.class, String.class); + Method method = this.getClass().getMethod("reposUpstreamComposerDeleteWithHttpInfo", String.class, String.class, String.class); Set> violations = executableValidator.validateParameters(this, method, parameterValues); if (violations.size() == 0) { - com.squareup.okhttp.Call call = reposUpstreamCranDeleteCall(owner, identifier, slugPerm, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = reposUpstreamComposerDeleteCall(owner, identifier, slugPerm, progressListener, progressRequestListener); return call; } else { @@ -5241,34 +5247,34 @@ private com.squareup.okhttp.Call reposUpstreamCranDeleteValidateBeforeCall(Strin } /** - * Delete a CRAN upstream config for this repository. - * Delete a CRAN upstream config for this repository. + * Delete a Composer upstream config for this repository. + * Delete a Composer upstream config for this repository. * @param owner (required) * @param identifier (required) * @param slugPerm (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public void reposUpstreamCranDelete(String owner, String identifier, String slugPerm) throws ApiException { - reposUpstreamCranDeleteWithHttpInfo(owner, identifier, slugPerm); + public void reposUpstreamComposerDelete(String owner, String identifier, String slugPerm) throws ApiException { + reposUpstreamComposerDeleteWithHttpInfo(owner, identifier, slugPerm); } /** - * Delete a CRAN upstream config for this repository. - * Delete a CRAN upstream config for this repository. + * Delete a Composer upstream config for this repository. + * Delete a Composer upstream config for this repository. * @param owner (required) * @param identifier (required) * @param slugPerm (required) * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse reposUpstreamCranDeleteWithHttpInfo( @NotNull String owner, @NotNull String identifier, @NotNull String slugPerm) throws ApiException { - com.squareup.okhttp.Call call = reposUpstreamCranDeleteValidateBeforeCall(owner, identifier, slugPerm, null, null); + public ApiResponse reposUpstreamComposerDeleteWithHttpInfo( @NotNull String owner, @NotNull String identifier, @NotNull String slugPerm) throws ApiException { + com.squareup.okhttp.Call call = reposUpstreamComposerDeleteValidateBeforeCall(owner, identifier, slugPerm, null, null); return apiClient.execute(call); } /** - * Delete a CRAN upstream config for this repository. (asynchronously) - * Delete a CRAN upstream config for this repository. + * Delete a Composer upstream config for this repository. (asynchronously) + * Delete a Composer upstream config for this repository. * @param owner (required) * @param identifier (required) * @param slugPerm (required) @@ -5276,7 +5282,7 @@ public ApiResponse reposUpstreamCranDeleteWithHttpInfo( @NotNull String ow * @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 reposUpstreamCranDeleteAsync(String owner, String identifier, String slugPerm, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call reposUpstreamComposerDeleteAsync(String owner, String identifier, String slugPerm, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -5297,12 +5303,12 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = reposUpstreamCranDeleteValidateBeforeCall(owner, identifier, slugPerm, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = reposUpstreamComposerDeleteValidateBeforeCall(owner, identifier, slugPerm, progressListener, progressRequestListener); apiClient.executeAsync(call, callback); return call; } /** - * Build call for reposUpstreamCranList + * Build call for reposUpstreamComposerList * @param owner (required) * @param identifier (required) * @param page A page number within the paginated result set. (optional) @@ -5312,11 +5318,11 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call reposUpstreamCranListCall(String owner, String identifier, java.math.BigInteger page, java.math.BigInteger pageSize, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call reposUpstreamComposerListCall(String owner, String identifier, java.math.BigInteger page, java.math.BigInteger pageSize, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/repos/{owner}/{identifier}/upstream/cran/" + String localVarPath = "/repos/{owner}/{identifier}/upstream/composer/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "identifier" + "\\}", apiClient.escapeString(identifier.toString())); @@ -5363,18 +5369,18 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call reposUpstreamCranListValidateBeforeCall(String owner, String identifier, java.math.BigInteger page, java.math.BigInteger pageSize, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call reposUpstreamComposerListValidateBeforeCall(String owner, String identifier, java.math.BigInteger page, java.math.BigInteger pageSize, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { ValidatorFactory factory = Validation.buildDefaultValidatorFactory(); ExecutableValidator executableValidator = factory.getValidator().forExecutables(); Object[] parameterValues = { owner, identifier, page, pageSize }; - Method method = this.getClass().getMethod("reposUpstreamCranListWithHttpInfo", String.class, String.class, java.math.BigInteger.class, java.math.BigInteger.class); + Method method = this.getClass().getMethod("reposUpstreamComposerListWithHttpInfo", String.class, String.class, java.math.BigInteger.class, java.math.BigInteger.class); Set> violations = executableValidator.validateParameters(this, method, parameterValues); if (violations.size() == 0) { - com.squareup.okhttp.Call call = reposUpstreamCranListCall(owner, identifier, page, pageSize, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = reposUpstreamComposerListCall(owner, identifier, page, pageSize, progressListener, progressRequestListener); return call; } else { @@ -5391,39 +5397,39 @@ private com.squareup.okhttp.Call reposUpstreamCranListValidateBeforeCall(String } /** - * List CRAN upstream configs for this repository. - * List CRAN upstream configs for this repository. + * List Composer upstream configs for this repository. + * List Composer upstream configs for this repository. * @param owner (required) * @param identifier (required) * @param page A page number within the paginated result set. (optional) * @param pageSize Number of results to return per page. (optional) - * @return List<CranUpstream> + * @return List<ComposerUpstream> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public List reposUpstreamCranList(String owner, String identifier, java.math.BigInteger page, java.math.BigInteger pageSize) throws ApiException { - ApiResponse> resp = reposUpstreamCranListWithHttpInfo(owner, identifier, page, pageSize); + public List reposUpstreamComposerList(String owner, String identifier, java.math.BigInteger page, java.math.BigInteger pageSize) throws ApiException { + ApiResponse> resp = reposUpstreamComposerListWithHttpInfo(owner, identifier, page, pageSize); return resp.getData(); } /** - * List CRAN upstream configs for this repository. - * List CRAN upstream configs for this repository. + * List Composer upstream configs for this repository. + * List Composer upstream configs for this repository. * @param owner (required) * @param identifier (required) * @param page A page number within the paginated result set. (optional) * @param pageSize Number of results to return per page. (optional) - * @return ApiResponse<List<CranUpstream>> + * @return ApiResponse<List<ComposerUpstream>> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse> reposUpstreamCranListWithHttpInfo( @NotNull String owner, @NotNull String identifier, java.math.BigInteger page, java.math.BigInteger pageSize) throws ApiException { - com.squareup.okhttp.Call call = reposUpstreamCranListValidateBeforeCall(owner, identifier, page, pageSize, null, null); - Type localVarReturnType = new TypeToken>(){}.getType(); + public ApiResponse> reposUpstreamComposerListWithHttpInfo( @NotNull String owner, @NotNull String identifier, java.math.BigInteger page, java.math.BigInteger pageSize) throws ApiException { + com.squareup.okhttp.Call call = reposUpstreamComposerListValidateBeforeCall(owner, identifier, page, pageSize, null, null); + Type localVarReturnType = new TypeToken>(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * List CRAN upstream configs for this repository. (asynchronously) - * List CRAN upstream configs for this repository. + * List Composer upstream configs for this repository. (asynchronously) + * List Composer upstream configs for this repository. * @param owner (required) * @param identifier (required) * @param page A page number within the paginated result set. (optional) @@ -5432,7 +5438,7 @@ public ApiResponse> reposUpstreamCranListWithHttpInfo( @NotNu * @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 reposUpstreamCranListAsync(String owner, String identifier, java.math.BigInteger page, java.math.BigInteger pageSize, final ApiCallback> callback) throws ApiException { + public com.squareup.okhttp.Call reposUpstreamComposerListAsync(String owner, String identifier, java.math.BigInteger page, java.math.BigInteger pageSize, final ApiCallback> callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -5453,13 +5459,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = reposUpstreamCranListValidateBeforeCall(owner, identifier, page, pageSize, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken>(){}.getType(); + com.squareup.okhttp.Call call = reposUpstreamComposerListValidateBeforeCall(owner, identifier, page, pageSize, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken>(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for reposUpstreamCranPartialUpdate + * Build call for reposUpstreamComposerPartialUpdate * @param owner (required) * @param identifier (required) * @param slugPerm (required) @@ -5469,7 +5475,1221 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call reposUpstreamCranPartialUpdateCall(String owner, String identifier, String slugPerm, CranUpstreamRequestPatch data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call reposUpstreamComposerPartialUpdateCall(String owner, String identifier, String slugPerm, ComposerUpstreamRequestPatch data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = data; + + // create path and map variables + String localVarPath = "/repos/{owner}/{identifier}/upstream/composer/{slug_perm}/" + .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) + .replaceAll("\\{" + "identifier" + "\\}", apiClient.escapeString(identifier.toString())) + .replaceAll("\\{" + "slug_perm" + "\\}", apiClient.escapeString(slugPerm.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "apikey", "basic" }; + if (headers != null) { + localVarHeaderParams.putAll(headers); + } + return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call reposUpstreamComposerPartialUpdateValidateBeforeCall(String owner, String identifier, String slugPerm, ComposerUpstreamRequestPatch data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + try { + ValidatorFactory factory = Validation.buildDefaultValidatorFactory(); + ExecutableValidator executableValidator = factory.getValidator().forExecutables(); + + Object[] parameterValues = { owner, identifier, slugPerm, data }; + Method method = this.getClass().getMethod("reposUpstreamComposerPartialUpdateWithHttpInfo", String.class, String.class, String.class, ComposerUpstreamRequestPatch.class); + Set> violations = executableValidator.validateParameters(this, method, + parameterValues); + + if (violations.size() == 0) { + com.squareup.okhttp.Call call = reposUpstreamComposerPartialUpdateCall(owner, identifier, slugPerm, data, progressListener, progressRequestListener); + return call; + + } else { + throw new BeanValidationException((Set) violations); + } + } catch (NoSuchMethodException e) { + e.printStackTrace(); + throw new ApiException(e.getMessage()); + } catch (SecurityException e) { + e.printStackTrace(); + throw new ApiException(e.getMessage()); + } + + } + + /** + * Partially update a Composer upstream config for this repository. + * Partially update a Composer upstream config for this repository. + * @param owner (required) + * @param identifier (required) + * @param slugPerm (required) + * @param data (optional) + * @return ComposerUpstream + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ComposerUpstream reposUpstreamComposerPartialUpdate(String owner, String identifier, String slugPerm, ComposerUpstreamRequestPatch data) throws ApiException { + ApiResponse resp = reposUpstreamComposerPartialUpdateWithHttpInfo(owner, identifier, slugPerm, data); + return resp.getData(); + } + + /** + * Partially update a Composer upstream config for this repository. + * Partially update a Composer upstream config for this repository. + * @param owner (required) + * @param identifier (required) + * @param slugPerm (required) + * @param data (optional) + * @return ApiResponse<ComposerUpstream> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse reposUpstreamComposerPartialUpdateWithHttpInfo( @NotNull String owner, @NotNull String identifier, @NotNull String slugPerm, ComposerUpstreamRequestPatch data) throws ApiException { + com.squareup.okhttp.Call call = reposUpstreamComposerPartialUpdateValidateBeforeCall(owner, identifier, slugPerm, data, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Partially update a Composer upstream config for this repository. (asynchronously) + * Partially update a Composer upstream config for this repository. + * @param owner (required) + * @param identifier (required) + * @param slugPerm (required) + * @param data (optional) + * @param callback The callback to be executed when the API call finishes + * @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 reposUpstreamComposerPartialUpdateAsync(String owner, String identifier, String slugPerm, ComposerUpstreamRequestPatch data, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = reposUpstreamComposerPartialUpdateValidateBeforeCall(owner, identifier, slugPerm, data, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for reposUpstreamComposerRead + * @param owner (required) + * @param identifier (required) + * @param slugPerm (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call reposUpstreamComposerReadCall(String owner, String identifier, String slugPerm, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/repos/{owner}/{identifier}/upstream/composer/{slug_perm}/" + .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) + .replaceAll("\\{" + "identifier" + "\\}", apiClient.escapeString(identifier.toString())) + .replaceAll("\\{" + "slug_perm" + "\\}", apiClient.escapeString(slugPerm.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "apikey", "basic" }; + if (headers != null) { + localVarHeaderParams.putAll(headers); + } + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call reposUpstreamComposerReadValidateBeforeCall(String owner, String identifier, String slugPerm, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + try { + ValidatorFactory factory = Validation.buildDefaultValidatorFactory(); + ExecutableValidator executableValidator = factory.getValidator().forExecutables(); + + Object[] parameterValues = { owner, identifier, slugPerm }; + Method method = this.getClass().getMethod("reposUpstreamComposerReadWithHttpInfo", String.class, String.class, String.class); + Set> violations = executableValidator.validateParameters(this, method, + parameterValues); + + if (violations.size() == 0) { + com.squareup.okhttp.Call call = reposUpstreamComposerReadCall(owner, identifier, slugPerm, progressListener, progressRequestListener); + return call; + + } else { + throw new BeanValidationException((Set) violations); + } + } catch (NoSuchMethodException e) { + e.printStackTrace(); + throw new ApiException(e.getMessage()); + } catch (SecurityException e) { + e.printStackTrace(); + throw new ApiException(e.getMessage()); + } + + } + + /** + * Retrieve a Composer upstream config for this repository. + * Retrieve a Composer upstream config for this repository. + * @param owner (required) + * @param identifier (required) + * @param slugPerm (required) + * @return ComposerUpstream + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ComposerUpstream reposUpstreamComposerRead(String owner, String identifier, String slugPerm) throws ApiException { + ApiResponse resp = reposUpstreamComposerReadWithHttpInfo(owner, identifier, slugPerm); + return resp.getData(); + } + + /** + * Retrieve a Composer upstream config for this repository. + * Retrieve a Composer upstream config for this repository. + * @param owner (required) + * @param identifier (required) + * @param slugPerm (required) + * @return ApiResponse<ComposerUpstream> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse reposUpstreamComposerReadWithHttpInfo( @NotNull String owner, @NotNull String identifier, @NotNull String slugPerm) throws ApiException { + com.squareup.okhttp.Call call = reposUpstreamComposerReadValidateBeforeCall(owner, identifier, slugPerm, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Retrieve a Composer upstream config for this repository. (asynchronously) + * Retrieve a Composer upstream config for this repository. + * @param owner (required) + * @param identifier (required) + * @param slugPerm (required) + * @param callback The callback to be executed when the API call finishes + * @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 reposUpstreamComposerReadAsync(String owner, String identifier, String slugPerm, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = reposUpstreamComposerReadValidateBeforeCall(owner, identifier, slugPerm, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for reposUpstreamComposerUpdate + * @param owner (required) + * @param identifier (required) + * @param slugPerm (required) + * @param data (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call reposUpstreamComposerUpdateCall(String owner, String identifier, String slugPerm, ComposerUpstreamRequest data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = data; + + // create path and map variables + String localVarPath = "/repos/{owner}/{identifier}/upstream/composer/{slug_perm}/" + .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) + .replaceAll("\\{" + "identifier" + "\\}", apiClient.escapeString(identifier.toString())) + .replaceAll("\\{" + "slug_perm" + "\\}", apiClient.escapeString(slugPerm.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "apikey", "basic" }; + if (headers != null) { + localVarHeaderParams.putAll(headers); + } + return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call reposUpstreamComposerUpdateValidateBeforeCall(String owner, String identifier, String slugPerm, ComposerUpstreamRequest data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + try { + ValidatorFactory factory = Validation.buildDefaultValidatorFactory(); + ExecutableValidator executableValidator = factory.getValidator().forExecutables(); + + Object[] parameterValues = { owner, identifier, slugPerm, data }; + Method method = this.getClass().getMethod("reposUpstreamComposerUpdateWithHttpInfo", String.class, String.class, String.class, ComposerUpstreamRequest.class); + Set> violations = executableValidator.validateParameters(this, method, + parameterValues); + + if (violations.size() == 0) { + com.squareup.okhttp.Call call = reposUpstreamComposerUpdateCall(owner, identifier, slugPerm, data, progressListener, progressRequestListener); + return call; + + } else { + throw new BeanValidationException((Set) violations); + } + } catch (NoSuchMethodException e) { + e.printStackTrace(); + throw new ApiException(e.getMessage()); + } catch (SecurityException e) { + e.printStackTrace(); + throw new ApiException(e.getMessage()); + } + + } + + /** + * Update a Composer upstream config for this repository. + * Update a Composer upstream config for this repository. + * @param owner (required) + * @param identifier (required) + * @param slugPerm (required) + * @param data (optional) + * @return ComposerUpstream + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ComposerUpstream reposUpstreamComposerUpdate(String owner, String identifier, String slugPerm, ComposerUpstreamRequest data) throws ApiException { + ApiResponse resp = reposUpstreamComposerUpdateWithHttpInfo(owner, identifier, slugPerm, data); + return resp.getData(); + } + + /** + * Update a Composer upstream config for this repository. + * Update a Composer upstream config for this repository. + * @param owner (required) + * @param identifier (required) + * @param slugPerm (required) + * @param data (optional) + * @return ApiResponse<ComposerUpstream> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse reposUpstreamComposerUpdateWithHttpInfo( @NotNull String owner, @NotNull String identifier, @NotNull String slugPerm, ComposerUpstreamRequest data) throws ApiException { + com.squareup.okhttp.Call call = reposUpstreamComposerUpdateValidateBeforeCall(owner, identifier, slugPerm, data, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Update a Composer upstream config for this repository. (asynchronously) + * Update a Composer upstream config for this repository. + * @param owner (required) + * @param identifier (required) + * @param slugPerm (required) + * @param data (optional) + * @param callback The callback to be executed when the API call finishes + * @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 reposUpstreamComposerUpdateAsync(String owner, String identifier, String slugPerm, ComposerUpstreamRequest data, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = reposUpstreamComposerUpdateValidateBeforeCall(owner, identifier, slugPerm, data, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for reposUpstreamCranCreate + * @param owner (required) + * @param identifier (required) + * @param data (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call reposUpstreamCranCreateCall(String owner, String identifier, CranUpstreamRequest data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = data; + + // create path and map variables + String localVarPath = "/repos/{owner}/{identifier}/upstream/cran/" + .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) + .replaceAll("\\{" + "identifier" + "\\}", apiClient.escapeString(identifier.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "apikey", "basic" }; + if (headers != null) { + localVarHeaderParams.putAll(headers); + } + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call reposUpstreamCranCreateValidateBeforeCall(String owner, String identifier, CranUpstreamRequest data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + try { + ValidatorFactory factory = Validation.buildDefaultValidatorFactory(); + ExecutableValidator executableValidator = factory.getValidator().forExecutables(); + + Object[] parameterValues = { owner, identifier, data }; + Method method = this.getClass().getMethod("reposUpstreamCranCreateWithHttpInfo", String.class, String.class, CranUpstreamRequest.class); + Set> violations = executableValidator.validateParameters(this, method, + parameterValues); + + if (violations.size() == 0) { + com.squareup.okhttp.Call call = reposUpstreamCranCreateCall(owner, identifier, data, progressListener, progressRequestListener); + return call; + + } else { + throw new BeanValidationException((Set) violations); + } + } catch (NoSuchMethodException e) { + e.printStackTrace(); + throw new ApiException(e.getMessage()); + } catch (SecurityException e) { + e.printStackTrace(); + throw new ApiException(e.getMessage()); + } + + } + + /** + * Create a CRAN upstream config for this repository. + * Create a CRAN upstream config for this repository. + * @param owner (required) + * @param identifier (required) + * @param data (optional) + * @return CranUpstream + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public CranUpstream reposUpstreamCranCreate(String owner, String identifier, CranUpstreamRequest data) throws ApiException { + ApiResponse resp = reposUpstreamCranCreateWithHttpInfo(owner, identifier, data); + return resp.getData(); + } + + /** + * Create a CRAN upstream config for this repository. + * Create a CRAN upstream config for this repository. + * @param owner (required) + * @param identifier (required) + * @param data (optional) + * @return ApiResponse<CranUpstream> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse reposUpstreamCranCreateWithHttpInfo( @NotNull String owner, @NotNull String identifier, CranUpstreamRequest data) throws ApiException { + com.squareup.okhttp.Call call = reposUpstreamCranCreateValidateBeforeCall(owner, identifier, data, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Create a CRAN upstream config for this repository. (asynchronously) + * Create a CRAN upstream config for this repository. + * @param owner (required) + * @param identifier (required) + * @param data (optional) + * @param callback The callback to be executed when the API call finishes + * @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 reposUpstreamCranCreateAsync(String owner, String identifier, CranUpstreamRequest data, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = reposUpstreamCranCreateValidateBeforeCall(owner, identifier, data, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for reposUpstreamCranDelete + * @param owner (required) + * @param identifier (required) + * @param slugPerm (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call reposUpstreamCranDeleteCall(String owner, String identifier, String slugPerm, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/repos/{owner}/{identifier}/upstream/cran/{slug_perm}/" + .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) + .replaceAll("\\{" + "identifier" + "\\}", apiClient.escapeString(identifier.toString())) + .replaceAll("\\{" + "slug_perm" + "\\}", apiClient.escapeString(slugPerm.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "apikey", "basic" }; + if (headers != null) { + localVarHeaderParams.putAll(headers); + } + return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call reposUpstreamCranDeleteValidateBeforeCall(String owner, String identifier, String slugPerm, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + try { + ValidatorFactory factory = Validation.buildDefaultValidatorFactory(); + ExecutableValidator executableValidator = factory.getValidator().forExecutables(); + + Object[] parameterValues = { owner, identifier, slugPerm }; + Method method = this.getClass().getMethod("reposUpstreamCranDeleteWithHttpInfo", String.class, String.class, String.class); + Set> violations = executableValidator.validateParameters(this, method, + parameterValues); + + if (violations.size() == 0) { + com.squareup.okhttp.Call call = reposUpstreamCranDeleteCall(owner, identifier, slugPerm, progressListener, progressRequestListener); + return call; + + } else { + throw new BeanValidationException((Set) violations); + } + } catch (NoSuchMethodException e) { + e.printStackTrace(); + throw new ApiException(e.getMessage()); + } catch (SecurityException e) { + e.printStackTrace(); + throw new ApiException(e.getMessage()); + } + + } + + /** + * Delete a CRAN upstream config for this repository. + * Delete a CRAN upstream config for this repository. + * @param owner (required) + * @param identifier (required) + * @param slugPerm (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public void reposUpstreamCranDelete(String owner, String identifier, String slugPerm) throws ApiException { + reposUpstreamCranDeleteWithHttpInfo(owner, identifier, slugPerm); + } + + /** + * Delete a CRAN upstream config for this repository. + * Delete a CRAN upstream config for this repository. + * @param owner (required) + * @param identifier (required) + * @param slugPerm (required) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse reposUpstreamCranDeleteWithHttpInfo( @NotNull String owner, @NotNull String identifier, @NotNull String slugPerm) throws ApiException { + com.squareup.okhttp.Call call = reposUpstreamCranDeleteValidateBeforeCall(owner, identifier, slugPerm, null, null); + return apiClient.execute(call); + } + + /** + * Delete a CRAN upstream config for this repository. (asynchronously) + * Delete a CRAN upstream config for this repository. + * @param owner (required) + * @param identifier (required) + * @param slugPerm (required) + * @param callback The callback to be executed when the API call finishes + * @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 reposUpstreamCranDeleteAsync(String owner, String identifier, String slugPerm, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = reposUpstreamCranDeleteValidateBeforeCall(owner, identifier, slugPerm, progressListener, progressRequestListener); + apiClient.executeAsync(call, callback); + return call; + } + /** + * Build call for reposUpstreamCranList + * @param owner (required) + * @param identifier (required) + * @param page A page number within the paginated result set. (optional) + * @param pageSize Number of results to return per page. (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call reposUpstreamCranListCall(String owner, String identifier, java.math.BigInteger page, java.math.BigInteger pageSize, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/repos/{owner}/{identifier}/upstream/cran/" + .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) + .replaceAll("\\{" + "identifier" + "\\}", apiClient.escapeString(identifier.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (page != null) + localVarQueryParams.addAll(apiClient.parameterToPair("page", page)); + if (pageSize != null) + localVarQueryParams.addAll(apiClient.parameterToPair("page_size", pageSize)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "apikey", "basic" }; + if (headers != null) { + localVarHeaderParams.putAll(headers); + } + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call reposUpstreamCranListValidateBeforeCall(String owner, String identifier, java.math.BigInteger page, java.math.BigInteger pageSize, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + try { + ValidatorFactory factory = Validation.buildDefaultValidatorFactory(); + ExecutableValidator executableValidator = factory.getValidator().forExecutables(); + + Object[] parameterValues = { owner, identifier, page, pageSize }; + Method method = this.getClass().getMethod("reposUpstreamCranListWithHttpInfo", String.class, String.class, java.math.BigInteger.class, java.math.BigInteger.class); + Set> violations = executableValidator.validateParameters(this, method, + parameterValues); + + if (violations.size() == 0) { + com.squareup.okhttp.Call call = reposUpstreamCranListCall(owner, identifier, page, pageSize, progressListener, progressRequestListener); + return call; + + } else { + throw new BeanValidationException((Set) violations); + } + } catch (NoSuchMethodException e) { + e.printStackTrace(); + throw new ApiException(e.getMessage()); + } catch (SecurityException e) { + e.printStackTrace(); + throw new ApiException(e.getMessage()); + } + + } + + /** + * List CRAN upstream configs for this repository. + * List CRAN upstream configs for this repository. + * @param owner (required) + * @param identifier (required) + * @param page A page number within the paginated result set. (optional) + * @param pageSize Number of results to return per page. (optional) + * @return List<CranUpstream> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public List reposUpstreamCranList(String owner, String identifier, java.math.BigInteger page, java.math.BigInteger pageSize) throws ApiException { + ApiResponse> resp = reposUpstreamCranListWithHttpInfo(owner, identifier, page, pageSize); + return resp.getData(); + } + + /** + * List CRAN upstream configs for this repository. + * List CRAN upstream configs for this repository. + * @param owner (required) + * @param identifier (required) + * @param page A page number within the paginated result set. (optional) + * @param pageSize Number of results to return per page. (optional) + * @return ApiResponse<List<CranUpstream>> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse> reposUpstreamCranListWithHttpInfo( @NotNull String owner, @NotNull String identifier, java.math.BigInteger page, java.math.BigInteger pageSize) throws ApiException { + com.squareup.okhttp.Call call = reposUpstreamCranListValidateBeforeCall(owner, identifier, page, pageSize, null, null); + Type localVarReturnType = new TypeToken>(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * List CRAN upstream configs for this repository. (asynchronously) + * List CRAN upstream configs for this repository. + * @param owner (required) + * @param identifier (required) + * @param page A page number within the paginated result set. (optional) + * @param pageSize Number of results to return per page. (optional) + * @param callback The callback to be executed when the API call finishes + * @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 reposUpstreamCranListAsync(String owner, String identifier, java.math.BigInteger page, java.math.BigInteger pageSize, final ApiCallback> callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = reposUpstreamCranListValidateBeforeCall(owner, identifier, page, pageSize, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken>(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for reposUpstreamCranPartialUpdate + * @param owner (required) + * @param identifier (required) + * @param slugPerm (required) + * @param data (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call reposUpstreamCranPartialUpdateCall(String owner, String identifier, String slugPerm, CranUpstreamRequestPatch data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = data; + + // create path and map variables + String localVarPath = "/repos/{owner}/{identifier}/upstream/cran/{slug_perm}/" + .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) + .replaceAll("\\{" + "identifier" + "\\}", apiClient.escapeString(identifier.toString())) + .replaceAll("\\{" + "slug_perm" + "\\}", apiClient.escapeString(slugPerm.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "apikey", "basic" }; + if (headers != null) { + localVarHeaderParams.putAll(headers); + } + return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call reposUpstreamCranPartialUpdateValidateBeforeCall(String owner, String identifier, String slugPerm, CranUpstreamRequestPatch data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + try { + ValidatorFactory factory = Validation.buildDefaultValidatorFactory(); + ExecutableValidator executableValidator = factory.getValidator().forExecutables(); + + Object[] parameterValues = { owner, identifier, slugPerm, data }; + Method method = this.getClass().getMethod("reposUpstreamCranPartialUpdateWithHttpInfo", String.class, String.class, String.class, CranUpstreamRequestPatch.class); + Set> violations = executableValidator.validateParameters(this, method, + parameterValues); + + if (violations.size() == 0) { + com.squareup.okhttp.Call call = reposUpstreamCranPartialUpdateCall(owner, identifier, slugPerm, data, progressListener, progressRequestListener); + return call; + + } else { + throw new BeanValidationException((Set) violations); + } + } catch (NoSuchMethodException e) { + e.printStackTrace(); + throw new ApiException(e.getMessage()); + } catch (SecurityException e) { + e.printStackTrace(); + throw new ApiException(e.getMessage()); + } + + } + + /** + * Partially update a CRAN upstream config for this repository. + * Partially update a CRAN upstream config for this repository. + * @param owner (required) + * @param identifier (required) + * @param slugPerm (required) + * @param data (optional) + * @return CranUpstream + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public CranUpstream reposUpstreamCranPartialUpdate(String owner, String identifier, String slugPerm, CranUpstreamRequestPatch data) throws ApiException { + ApiResponse resp = reposUpstreamCranPartialUpdateWithHttpInfo(owner, identifier, slugPerm, data); + return resp.getData(); + } + + /** + * Partially update a CRAN upstream config for this repository. + * Partially update a CRAN upstream config for this repository. + * @param owner (required) + * @param identifier (required) + * @param slugPerm (required) + * @param data (optional) + * @return ApiResponse<CranUpstream> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse reposUpstreamCranPartialUpdateWithHttpInfo( @NotNull String owner, @NotNull String identifier, @NotNull String slugPerm, CranUpstreamRequestPatch data) throws ApiException { + com.squareup.okhttp.Call call = reposUpstreamCranPartialUpdateValidateBeforeCall(owner, identifier, slugPerm, data, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Partially update a CRAN upstream config for this repository. (asynchronously) + * Partially update a CRAN upstream config for this repository. + * @param owner (required) + * @param identifier (required) + * @param slugPerm (required) + * @param data (optional) + * @param callback The callback to be executed when the API call finishes + * @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 reposUpstreamCranPartialUpdateAsync(String owner, String identifier, String slugPerm, CranUpstreamRequestPatch data, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = reposUpstreamCranPartialUpdateValidateBeforeCall(owner, identifier, slugPerm, data, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for reposUpstreamCranRead + * @param owner (required) + * @param identifier (required) + * @param slugPerm (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call reposUpstreamCranReadCall(String owner, String identifier, String slugPerm, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/repos/{owner}/{identifier}/upstream/cran/{slug_perm}/" + .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) + .replaceAll("\\{" + "identifier" + "\\}", apiClient.escapeString(identifier.toString())) + .replaceAll("\\{" + "slug_perm" + "\\}", apiClient.escapeString(slugPerm.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "apikey", "basic" }; + if (headers != null) { + localVarHeaderParams.putAll(headers); + } + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call reposUpstreamCranReadValidateBeforeCall(String owner, String identifier, String slugPerm, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + try { + ValidatorFactory factory = Validation.buildDefaultValidatorFactory(); + ExecutableValidator executableValidator = factory.getValidator().forExecutables(); + + Object[] parameterValues = { owner, identifier, slugPerm }; + Method method = this.getClass().getMethod("reposUpstreamCranReadWithHttpInfo", String.class, String.class, String.class); + Set> violations = executableValidator.validateParameters(this, method, + parameterValues); + + if (violations.size() == 0) { + com.squareup.okhttp.Call call = reposUpstreamCranReadCall(owner, identifier, slugPerm, progressListener, progressRequestListener); + return call; + + } else { + throw new BeanValidationException((Set) violations); + } + } catch (NoSuchMethodException e) { + e.printStackTrace(); + throw new ApiException(e.getMessage()); + } catch (SecurityException e) { + e.printStackTrace(); + throw new ApiException(e.getMessage()); + } + + } + + /** + * Retrieve a CRAN upstream config for this repository. + * Retrieve a CRAN upstream config for this repository. + * @param owner (required) + * @param identifier (required) + * @param slugPerm (required) + * @return CranUpstream + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public CranUpstream reposUpstreamCranRead(String owner, String identifier, String slugPerm) throws ApiException { + ApiResponse resp = reposUpstreamCranReadWithHttpInfo(owner, identifier, slugPerm); + return resp.getData(); + } + + /** + * Retrieve a CRAN upstream config for this repository. + * Retrieve a CRAN upstream config for this repository. + * @param owner (required) + * @param identifier (required) + * @param slugPerm (required) + * @return ApiResponse<CranUpstream> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse reposUpstreamCranReadWithHttpInfo( @NotNull String owner, @NotNull String identifier, @NotNull String slugPerm) throws ApiException { + com.squareup.okhttp.Call call = reposUpstreamCranReadValidateBeforeCall(owner, identifier, slugPerm, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Retrieve a CRAN upstream config for this repository. (asynchronously) + * Retrieve a CRAN upstream config for this repository. + * @param owner (required) + * @param identifier (required) + * @param slugPerm (required) + * @param callback The callback to be executed when the API call finishes + * @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 reposUpstreamCranReadAsync(String owner, String identifier, String slugPerm, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = reposUpstreamCranReadValidateBeforeCall(owner, identifier, slugPerm, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for reposUpstreamCranUpdate + * @param owner (required) + * @param identifier (required) + * @param slugPerm (required) + * @param data (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call reposUpstreamCranUpdateCall(String owner, String identifier, String slugPerm, CranUpstreamRequest data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = data; // create path and map variables @@ -5509,6 +6729,612 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch }); } + String[] localVarAuthNames = new String[] { "apikey", "basic" }; + if (headers != null) { + localVarHeaderParams.putAll(headers); + } + return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call reposUpstreamCranUpdateValidateBeforeCall(String owner, String identifier, String slugPerm, CranUpstreamRequest data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + try { + ValidatorFactory factory = Validation.buildDefaultValidatorFactory(); + ExecutableValidator executableValidator = factory.getValidator().forExecutables(); + + Object[] parameterValues = { owner, identifier, slugPerm, data }; + Method method = this.getClass().getMethod("reposUpstreamCranUpdateWithHttpInfo", String.class, String.class, String.class, CranUpstreamRequest.class); + Set> violations = executableValidator.validateParameters(this, method, + parameterValues); + + if (violations.size() == 0) { + com.squareup.okhttp.Call call = reposUpstreamCranUpdateCall(owner, identifier, slugPerm, data, progressListener, progressRequestListener); + return call; + + } else { + throw new BeanValidationException((Set) violations); + } + } catch (NoSuchMethodException e) { + e.printStackTrace(); + throw new ApiException(e.getMessage()); + } catch (SecurityException e) { + e.printStackTrace(); + throw new ApiException(e.getMessage()); + } + + } + + /** + * Update a CRAN upstream config for this repository. + * Update a CRAN upstream config for this repository. + * @param owner (required) + * @param identifier (required) + * @param slugPerm (required) + * @param data (optional) + * @return CranUpstream + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public CranUpstream reposUpstreamCranUpdate(String owner, String identifier, String slugPerm, CranUpstreamRequest data) throws ApiException { + ApiResponse resp = reposUpstreamCranUpdateWithHttpInfo(owner, identifier, slugPerm, data); + return resp.getData(); + } + + /** + * Update a CRAN upstream config for this repository. + * Update a CRAN upstream config for this repository. + * @param owner (required) + * @param identifier (required) + * @param slugPerm (required) + * @param data (optional) + * @return ApiResponse<CranUpstream> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse reposUpstreamCranUpdateWithHttpInfo( @NotNull String owner, @NotNull String identifier, @NotNull String slugPerm, CranUpstreamRequest data) throws ApiException { + com.squareup.okhttp.Call call = reposUpstreamCranUpdateValidateBeforeCall(owner, identifier, slugPerm, data, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Update a CRAN upstream config for this repository. (asynchronously) + * Update a CRAN upstream config for this repository. + * @param owner (required) + * @param identifier (required) + * @param slugPerm (required) + * @param data (optional) + * @param callback The callback to be executed when the API call finishes + * @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 reposUpstreamCranUpdateAsync(String owner, String identifier, String slugPerm, CranUpstreamRequest data, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = reposUpstreamCranUpdateValidateBeforeCall(owner, identifier, slugPerm, data, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for reposUpstreamDartCreate + * @param owner (required) + * @param identifier (required) + * @param data (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call reposUpstreamDartCreateCall(String owner, String identifier, DartUpstreamRequest data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = data; + + // create path and map variables + String localVarPath = "/repos/{owner}/{identifier}/upstream/dart/" + .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) + .replaceAll("\\{" + "identifier" + "\\}", apiClient.escapeString(identifier.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "apikey", "basic" }; + if (headers != null) { + localVarHeaderParams.putAll(headers); + } + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call reposUpstreamDartCreateValidateBeforeCall(String owner, String identifier, DartUpstreamRequest data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + try { + ValidatorFactory factory = Validation.buildDefaultValidatorFactory(); + ExecutableValidator executableValidator = factory.getValidator().forExecutables(); + + Object[] parameterValues = { owner, identifier, data }; + Method method = this.getClass().getMethod("reposUpstreamDartCreateWithHttpInfo", String.class, String.class, DartUpstreamRequest.class); + Set> violations = executableValidator.validateParameters(this, method, + parameterValues); + + if (violations.size() == 0) { + com.squareup.okhttp.Call call = reposUpstreamDartCreateCall(owner, identifier, data, progressListener, progressRequestListener); + return call; + + } else { + throw new BeanValidationException((Set) violations); + } + } catch (NoSuchMethodException e) { + e.printStackTrace(); + throw new ApiException(e.getMessage()); + } catch (SecurityException e) { + e.printStackTrace(); + throw new ApiException(e.getMessage()); + } + + } + + /** + * Create a Dart upstream config for this repository. + * Create a Dart upstream config for this repository. + * @param owner (required) + * @param identifier (required) + * @param data (optional) + * @return DartUpstream + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public DartUpstream reposUpstreamDartCreate(String owner, String identifier, DartUpstreamRequest data) throws ApiException { + ApiResponse resp = reposUpstreamDartCreateWithHttpInfo(owner, identifier, data); + return resp.getData(); + } + + /** + * Create a Dart upstream config for this repository. + * Create a Dart upstream config for this repository. + * @param owner (required) + * @param identifier (required) + * @param data (optional) + * @return ApiResponse<DartUpstream> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse reposUpstreamDartCreateWithHttpInfo( @NotNull String owner, @NotNull String identifier, DartUpstreamRequest data) throws ApiException { + com.squareup.okhttp.Call call = reposUpstreamDartCreateValidateBeforeCall(owner, identifier, data, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Create a Dart upstream config for this repository. (asynchronously) + * Create a Dart upstream config for this repository. + * @param owner (required) + * @param identifier (required) + * @param data (optional) + * @param callback The callback to be executed when the API call finishes + * @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 reposUpstreamDartCreateAsync(String owner, String identifier, DartUpstreamRequest data, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = reposUpstreamDartCreateValidateBeforeCall(owner, identifier, data, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for reposUpstreamDartDelete + * @param owner (required) + * @param identifier (required) + * @param slugPerm (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call reposUpstreamDartDeleteCall(String owner, String identifier, String slugPerm, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/repos/{owner}/{identifier}/upstream/dart/{slug_perm}/" + .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) + .replaceAll("\\{" + "identifier" + "\\}", apiClient.escapeString(identifier.toString())) + .replaceAll("\\{" + "slug_perm" + "\\}", apiClient.escapeString(slugPerm.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "apikey", "basic" }; + if (headers != null) { + localVarHeaderParams.putAll(headers); + } + return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call reposUpstreamDartDeleteValidateBeforeCall(String owner, String identifier, String slugPerm, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + try { + ValidatorFactory factory = Validation.buildDefaultValidatorFactory(); + ExecutableValidator executableValidator = factory.getValidator().forExecutables(); + + Object[] parameterValues = { owner, identifier, slugPerm }; + Method method = this.getClass().getMethod("reposUpstreamDartDeleteWithHttpInfo", String.class, String.class, String.class); + Set> violations = executableValidator.validateParameters(this, method, + parameterValues); + + if (violations.size() == 0) { + com.squareup.okhttp.Call call = reposUpstreamDartDeleteCall(owner, identifier, slugPerm, progressListener, progressRequestListener); + return call; + + } else { + throw new BeanValidationException((Set) violations); + } + } catch (NoSuchMethodException e) { + e.printStackTrace(); + throw new ApiException(e.getMessage()); + } catch (SecurityException e) { + e.printStackTrace(); + throw new ApiException(e.getMessage()); + } + + } + + /** + * Delete a Dart upstream config for this repository. + * Delete a Dart upstream config for this repository. + * @param owner (required) + * @param identifier (required) + * @param slugPerm (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public void reposUpstreamDartDelete(String owner, String identifier, String slugPerm) throws ApiException { + reposUpstreamDartDeleteWithHttpInfo(owner, identifier, slugPerm); + } + + /** + * Delete a Dart upstream config for this repository. + * Delete a Dart upstream config for this repository. + * @param owner (required) + * @param identifier (required) + * @param slugPerm (required) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse reposUpstreamDartDeleteWithHttpInfo( @NotNull String owner, @NotNull String identifier, @NotNull String slugPerm) throws ApiException { + com.squareup.okhttp.Call call = reposUpstreamDartDeleteValidateBeforeCall(owner, identifier, slugPerm, null, null); + return apiClient.execute(call); + } + + /** + * Delete a Dart upstream config for this repository. (asynchronously) + * Delete a Dart upstream config for this repository. + * @param owner (required) + * @param identifier (required) + * @param slugPerm (required) + * @param callback The callback to be executed when the API call finishes + * @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 reposUpstreamDartDeleteAsync(String owner, String identifier, String slugPerm, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = reposUpstreamDartDeleteValidateBeforeCall(owner, identifier, slugPerm, progressListener, progressRequestListener); + apiClient.executeAsync(call, callback); + return call; + } + /** + * Build call for reposUpstreamDartList + * @param owner (required) + * @param identifier (required) + * @param page A page number within the paginated result set. (optional) + * @param pageSize Number of results to return per page. (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call reposUpstreamDartListCall(String owner, String identifier, java.math.BigInteger page, java.math.BigInteger pageSize, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/repos/{owner}/{identifier}/upstream/dart/" + .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) + .replaceAll("\\{" + "identifier" + "\\}", apiClient.escapeString(identifier.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (page != null) + localVarQueryParams.addAll(apiClient.parameterToPair("page", page)); + if (pageSize != null) + localVarQueryParams.addAll(apiClient.parameterToPair("page_size", pageSize)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "apikey", "basic" }; + if (headers != null) { + localVarHeaderParams.putAll(headers); + } + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call reposUpstreamDartListValidateBeforeCall(String owner, String identifier, java.math.BigInteger page, java.math.BigInteger pageSize, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + try { + ValidatorFactory factory = Validation.buildDefaultValidatorFactory(); + ExecutableValidator executableValidator = factory.getValidator().forExecutables(); + + Object[] parameterValues = { owner, identifier, page, pageSize }; + Method method = this.getClass().getMethod("reposUpstreamDartListWithHttpInfo", String.class, String.class, java.math.BigInteger.class, java.math.BigInteger.class); + Set> violations = executableValidator.validateParameters(this, method, + parameterValues); + + if (violations.size() == 0) { + com.squareup.okhttp.Call call = reposUpstreamDartListCall(owner, identifier, page, pageSize, progressListener, progressRequestListener); + return call; + + } else { + throw new BeanValidationException((Set) violations); + } + } catch (NoSuchMethodException e) { + e.printStackTrace(); + throw new ApiException(e.getMessage()); + } catch (SecurityException e) { + e.printStackTrace(); + throw new ApiException(e.getMessage()); + } + + } + + /** + * List Dart upstream configs for this repository. + * List Dart upstream configs for this repository. + * @param owner (required) + * @param identifier (required) + * @param page A page number within the paginated result set. (optional) + * @param pageSize Number of results to return per page. (optional) + * @return List<DartUpstream> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public List reposUpstreamDartList(String owner, String identifier, java.math.BigInteger page, java.math.BigInteger pageSize) throws ApiException { + ApiResponse> resp = reposUpstreamDartListWithHttpInfo(owner, identifier, page, pageSize); + return resp.getData(); + } + + /** + * List Dart upstream configs for this repository. + * List Dart upstream configs for this repository. + * @param owner (required) + * @param identifier (required) + * @param page A page number within the paginated result set. (optional) + * @param pageSize Number of results to return per page. (optional) + * @return ApiResponse<List<DartUpstream>> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse> reposUpstreamDartListWithHttpInfo( @NotNull String owner, @NotNull String identifier, java.math.BigInteger page, java.math.BigInteger pageSize) throws ApiException { + com.squareup.okhttp.Call call = reposUpstreamDartListValidateBeforeCall(owner, identifier, page, pageSize, null, null); + Type localVarReturnType = new TypeToken>(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * List Dart upstream configs for this repository. (asynchronously) + * List Dart upstream configs for this repository. + * @param owner (required) + * @param identifier (required) + * @param page A page number within the paginated result set. (optional) + * @param pageSize Number of results to return per page. (optional) + * @param callback The callback to be executed when the API call finishes + * @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 reposUpstreamDartListAsync(String owner, String identifier, java.math.BigInteger page, java.math.BigInteger pageSize, final ApiCallback> callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = reposUpstreamDartListValidateBeforeCall(owner, identifier, page, pageSize, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken>(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for reposUpstreamDartPartialUpdate + * @param owner (required) + * @param identifier (required) + * @param slugPerm (required) + * @param data (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call reposUpstreamDartPartialUpdateCall(String owner, String identifier, String slugPerm, DartUpstreamRequestPatch data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = data; + + // create path and map variables + String localVarPath = "/repos/{owner}/{identifier}/upstream/dart/{slug_perm}/" + .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) + .replaceAll("\\{" + "identifier" + "\\}", apiClient.escapeString(identifier.toString())) + .replaceAll("\\{" + "slug_perm" + "\\}", apiClient.escapeString(slugPerm.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + String[] localVarAuthNames = new String[] { "apikey", "basic" }; if (headers != null) { localVarHeaderParams.putAll(headers); @@ -5517,18 +7343,18 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call reposUpstreamCranPartialUpdateValidateBeforeCall(String owner, String identifier, String slugPerm, CranUpstreamRequestPatch data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call reposUpstreamDartPartialUpdateValidateBeforeCall(String owner, String identifier, String slugPerm, DartUpstreamRequestPatch data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { ValidatorFactory factory = Validation.buildDefaultValidatorFactory(); ExecutableValidator executableValidator = factory.getValidator().forExecutables(); Object[] parameterValues = { owner, identifier, slugPerm, data }; - Method method = this.getClass().getMethod("reposUpstreamCranPartialUpdateWithHttpInfo", String.class, String.class, String.class, CranUpstreamRequestPatch.class); + Method method = this.getClass().getMethod("reposUpstreamDartPartialUpdateWithHttpInfo", String.class, String.class, String.class, DartUpstreamRequestPatch.class); Set> violations = executableValidator.validateParameters(this, method, parameterValues); if (violations.size() == 0) { - com.squareup.okhttp.Call call = reposUpstreamCranPartialUpdateCall(owner, identifier, slugPerm, data, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = reposUpstreamDartPartialUpdateCall(owner, identifier, slugPerm, data, progressListener, progressRequestListener); return call; } else { @@ -5545,39 +7371,39 @@ private com.squareup.okhttp.Call reposUpstreamCranPartialUpdateValidateBeforeCal } /** - * Partially update a CRAN upstream config for this repository. - * Partially update a CRAN upstream config for this repository. + * Partially update a Dart upstream config for this repository. + * Partially update a Dart upstream config for this repository. * @param owner (required) * @param identifier (required) * @param slugPerm (required) * @param data (optional) - * @return CranUpstream + * @return DartUpstream * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public CranUpstream reposUpstreamCranPartialUpdate(String owner, String identifier, String slugPerm, CranUpstreamRequestPatch data) throws ApiException { - ApiResponse resp = reposUpstreamCranPartialUpdateWithHttpInfo(owner, identifier, slugPerm, data); + public DartUpstream reposUpstreamDartPartialUpdate(String owner, String identifier, String slugPerm, DartUpstreamRequestPatch data) throws ApiException { + ApiResponse resp = reposUpstreamDartPartialUpdateWithHttpInfo(owner, identifier, slugPerm, data); return resp.getData(); } /** - * Partially update a CRAN upstream config for this repository. - * Partially update a CRAN upstream config for this repository. + * Partially update a Dart upstream config for this repository. + * Partially update a Dart upstream config for this repository. * @param owner (required) * @param identifier (required) * @param slugPerm (required) * @param data (optional) - * @return ApiResponse<CranUpstream> + * @return ApiResponse<DartUpstream> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse reposUpstreamCranPartialUpdateWithHttpInfo( @NotNull String owner, @NotNull String identifier, @NotNull String slugPerm, CranUpstreamRequestPatch data) throws ApiException { - com.squareup.okhttp.Call call = reposUpstreamCranPartialUpdateValidateBeforeCall(owner, identifier, slugPerm, data, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse reposUpstreamDartPartialUpdateWithHttpInfo( @NotNull String owner, @NotNull String identifier, @NotNull String slugPerm, DartUpstreamRequestPatch data) throws ApiException { + com.squareup.okhttp.Call call = reposUpstreamDartPartialUpdateValidateBeforeCall(owner, identifier, slugPerm, data, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Partially update a CRAN upstream config for this repository. (asynchronously) - * Partially update a CRAN upstream config for this repository. + * Partially update a Dart upstream config for this repository. (asynchronously) + * Partially update a Dart upstream config for this repository. * @param owner (required) * @param identifier (required) * @param slugPerm (required) @@ -5586,7 +7412,7 @@ public ApiResponse reposUpstreamCranPartialUpdateWithHttpInfo( @No * @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 reposUpstreamCranPartialUpdateAsync(String owner, String identifier, String slugPerm, CranUpstreamRequestPatch data, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call reposUpstreamDartPartialUpdateAsync(String owner, String identifier, String slugPerm, DartUpstreamRequestPatch data, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -5607,13 +7433,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = reposUpstreamCranPartialUpdateValidateBeforeCall(owner, identifier, slugPerm, data, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = reposUpstreamDartPartialUpdateValidateBeforeCall(owner, identifier, slugPerm, data, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for reposUpstreamCranRead + * Build call for reposUpstreamDartRead * @param owner (required) * @param identifier (required) * @param slugPerm (required) @@ -5622,11 +7448,11 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call reposUpstreamCranReadCall(String owner, String identifier, String slugPerm, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call reposUpstreamDartReadCall(String owner, String identifier, String slugPerm, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/repos/{owner}/{identifier}/upstream/cran/{slug_perm}/" + String localVarPath = "/repos/{owner}/{identifier}/upstream/dart/{slug_perm}/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "identifier" + "\\}", apiClient.escapeString(identifier.toString())) .replaceAll("\\{" + "slug_perm" + "\\}", apiClient.escapeString(slugPerm.toString())); @@ -5670,18 +7496,18 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call reposUpstreamCranReadValidateBeforeCall(String owner, String identifier, String slugPerm, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call reposUpstreamDartReadValidateBeforeCall(String owner, String identifier, String slugPerm, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { ValidatorFactory factory = Validation.buildDefaultValidatorFactory(); ExecutableValidator executableValidator = factory.getValidator().forExecutables(); Object[] parameterValues = { owner, identifier, slugPerm }; - Method method = this.getClass().getMethod("reposUpstreamCranReadWithHttpInfo", String.class, String.class, String.class); + Method method = this.getClass().getMethod("reposUpstreamDartReadWithHttpInfo", String.class, String.class, String.class); Set> violations = executableValidator.validateParameters(this, method, parameterValues); if (violations.size() == 0) { - com.squareup.okhttp.Call call = reposUpstreamCranReadCall(owner, identifier, slugPerm, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = reposUpstreamDartReadCall(owner, identifier, slugPerm, progressListener, progressRequestListener); return call; } else { @@ -5698,37 +7524,37 @@ private com.squareup.okhttp.Call reposUpstreamCranReadValidateBeforeCall(String } /** - * Retrieve a CRAN upstream config for this repository. - * Retrieve a CRAN upstream config for this repository. + * Retrieve a Dart upstream config for this repository. + * Retrieve a Dart upstream config for this repository. * @param owner (required) * @param identifier (required) * @param slugPerm (required) - * @return CranUpstream + * @return DartUpstream * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public CranUpstream reposUpstreamCranRead(String owner, String identifier, String slugPerm) throws ApiException { - ApiResponse resp = reposUpstreamCranReadWithHttpInfo(owner, identifier, slugPerm); + public DartUpstream reposUpstreamDartRead(String owner, String identifier, String slugPerm) throws ApiException { + ApiResponse resp = reposUpstreamDartReadWithHttpInfo(owner, identifier, slugPerm); return resp.getData(); } /** - * Retrieve a CRAN upstream config for this repository. - * Retrieve a CRAN upstream config for this repository. + * Retrieve a Dart upstream config for this repository. + * Retrieve a Dart upstream config for this repository. * @param owner (required) * @param identifier (required) * @param slugPerm (required) - * @return ApiResponse<CranUpstream> + * @return ApiResponse<DartUpstream> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse reposUpstreamCranReadWithHttpInfo( @NotNull String owner, @NotNull String identifier, @NotNull String slugPerm) throws ApiException { - com.squareup.okhttp.Call call = reposUpstreamCranReadValidateBeforeCall(owner, identifier, slugPerm, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse reposUpstreamDartReadWithHttpInfo( @NotNull String owner, @NotNull String identifier, @NotNull String slugPerm) throws ApiException { + com.squareup.okhttp.Call call = reposUpstreamDartReadValidateBeforeCall(owner, identifier, slugPerm, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Retrieve a CRAN upstream config for this repository. (asynchronously) - * Retrieve a CRAN upstream config for this repository. + * Retrieve a Dart upstream config for this repository. (asynchronously) + * Retrieve a Dart upstream config for this repository. * @param owner (required) * @param identifier (required) * @param slugPerm (required) @@ -5736,7 +7562,7 @@ public ApiResponse reposUpstreamCranReadWithHttpInfo( @NotNull Str * @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 reposUpstreamCranReadAsync(String owner, String identifier, String slugPerm, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call reposUpstreamDartReadAsync(String owner, String identifier, String slugPerm, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -5757,13 +7583,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = reposUpstreamCranReadValidateBeforeCall(owner, identifier, slugPerm, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = reposUpstreamDartReadValidateBeforeCall(owner, identifier, slugPerm, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for reposUpstreamCranUpdate + * Build call for reposUpstreamDartUpdate * @param owner (required) * @param identifier (required) * @param slugPerm (required) @@ -5773,11 +7599,11 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call reposUpstreamCranUpdateCall(String owner, String identifier, String slugPerm, CranUpstreamRequest data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call reposUpstreamDartUpdateCall(String owner, String identifier, String slugPerm, DartUpstreamRequest data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = data; // create path and map variables - String localVarPath = "/repos/{owner}/{identifier}/upstream/cran/{slug_perm}/" + String localVarPath = "/repos/{owner}/{identifier}/upstream/dart/{slug_perm}/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "identifier" + "\\}", apiClient.escapeString(identifier.toString())) .replaceAll("\\{" + "slug_perm" + "\\}", apiClient.escapeString(slugPerm.toString())); @@ -5821,18 +7647,18 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call reposUpstreamCranUpdateValidateBeforeCall(String owner, String identifier, String slugPerm, CranUpstreamRequest data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call reposUpstreamDartUpdateValidateBeforeCall(String owner, String identifier, String slugPerm, DartUpstreamRequest data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { ValidatorFactory factory = Validation.buildDefaultValidatorFactory(); ExecutableValidator executableValidator = factory.getValidator().forExecutables(); Object[] parameterValues = { owner, identifier, slugPerm, data }; - Method method = this.getClass().getMethod("reposUpstreamCranUpdateWithHttpInfo", String.class, String.class, String.class, CranUpstreamRequest.class); + Method method = this.getClass().getMethod("reposUpstreamDartUpdateWithHttpInfo", String.class, String.class, String.class, DartUpstreamRequest.class); Set> violations = executableValidator.validateParameters(this, method, parameterValues); if (violations.size() == 0) { - com.squareup.okhttp.Call call = reposUpstreamCranUpdateCall(owner, identifier, slugPerm, data, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = reposUpstreamDartUpdateCall(owner, identifier, slugPerm, data, progressListener, progressRequestListener); return call; } else { @@ -5849,39 +7675,39 @@ private com.squareup.okhttp.Call reposUpstreamCranUpdateValidateBeforeCall(Strin } /** - * Update a CRAN upstream config for this repository. - * Update a CRAN upstream config for this repository. + * Update a Dart upstream config for this repository. + * Update a Dart upstream config for this repository. * @param owner (required) * @param identifier (required) * @param slugPerm (required) * @param data (optional) - * @return CranUpstream + * @return DartUpstream * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public CranUpstream reposUpstreamCranUpdate(String owner, String identifier, String slugPerm, CranUpstreamRequest data) throws ApiException { - ApiResponse resp = reposUpstreamCranUpdateWithHttpInfo(owner, identifier, slugPerm, data); + public DartUpstream reposUpstreamDartUpdate(String owner, String identifier, String slugPerm, DartUpstreamRequest data) throws ApiException { + ApiResponse resp = reposUpstreamDartUpdateWithHttpInfo(owner, identifier, slugPerm, data); return resp.getData(); } /** - * Update a CRAN upstream config for this repository. - * Update a CRAN upstream config for this repository. + * Update a Dart upstream config for this repository. + * Update a Dart upstream config for this repository. * @param owner (required) * @param identifier (required) * @param slugPerm (required) * @param data (optional) - * @return ApiResponse<CranUpstream> + * @return ApiResponse<DartUpstream> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse reposUpstreamCranUpdateWithHttpInfo( @NotNull String owner, @NotNull String identifier, @NotNull String slugPerm, CranUpstreamRequest data) throws ApiException { - com.squareup.okhttp.Call call = reposUpstreamCranUpdateValidateBeforeCall(owner, identifier, slugPerm, data, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse reposUpstreamDartUpdateWithHttpInfo( @NotNull String owner, @NotNull String identifier, @NotNull String slugPerm, DartUpstreamRequest data) throws ApiException { + com.squareup.okhttp.Call call = reposUpstreamDartUpdateValidateBeforeCall(owner, identifier, slugPerm, data, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Update a CRAN upstream config for this repository. (asynchronously) - * Update a CRAN upstream config for this repository. + * Update a Dart upstream config for this repository. (asynchronously) + * Update a Dart upstream config for this repository. * @param owner (required) * @param identifier (required) * @param slugPerm (required) @@ -5890,7 +7716,7 @@ public ApiResponse reposUpstreamCranUpdateWithHttpInfo( @NotNull S * @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 reposUpstreamCranUpdateAsync(String owner, String identifier, String slugPerm, CranUpstreamRequest data, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call reposUpstreamDartUpdateAsync(String owner, String identifier, String slugPerm, DartUpstreamRequest data, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -5911,13 +7737,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = reposUpstreamCranUpdateValidateBeforeCall(owner, identifier, slugPerm, data, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = reposUpstreamDartUpdateValidateBeforeCall(owner, identifier, slugPerm, data, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for reposUpstreamDartCreate + * Build call for reposUpstreamDebCreate * @param owner (required) * @param identifier (required) * @param data (optional) @@ -5926,11 +7752,11 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call reposUpstreamDartCreateCall(String owner, String identifier, DartUpstreamRequest data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call reposUpstreamDebCreateCall(String owner, String identifier, DebUpstreamRequest data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = data; // create path and map variables - String localVarPath = "/repos/{owner}/{identifier}/upstream/dart/" + String localVarPath = "/repos/{owner}/{identifier}/upstream/deb/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "identifier" + "\\}", apiClient.escapeString(identifier.toString())); @@ -5973,18 +7799,18 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call reposUpstreamDartCreateValidateBeforeCall(String owner, String identifier, DartUpstreamRequest data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call reposUpstreamDebCreateValidateBeforeCall(String owner, String identifier, DebUpstreamRequest data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { ValidatorFactory factory = Validation.buildDefaultValidatorFactory(); ExecutableValidator executableValidator = factory.getValidator().forExecutables(); Object[] parameterValues = { owner, identifier, data }; - Method method = this.getClass().getMethod("reposUpstreamDartCreateWithHttpInfo", String.class, String.class, DartUpstreamRequest.class); + Method method = this.getClass().getMethod("reposUpstreamDebCreateWithHttpInfo", String.class, String.class, DebUpstreamRequest.class); Set> violations = executableValidator.validateParameters(this, method, parameterValues); if (violations.size() == 0) { - com.squareup.okhttp.Call call = reposUpstreamDartCreateCall(owner, identifier, data, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = reposUpstreamDebCreateCall(owner, identifier, data, progressListener, progressRequestListener); return call; } else { @@ -6001,37 +7827,37 @@ private com.squareup.okhttp.Call reposUpstreamDartCreateValidateBeforeCall(Strin } /** - * Create a Dart upstream config for this repository. - * Create a Dart upstream config for this repository. + * Create a Debian upstream config for this repository. + * Create a Debian upstream config for this repository. * @param owner (required) * @param identifier (required) * @param data (optional) - * @return DartUpstream + * @return DebUpstream * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public DartUpstream reposUpstreamDartCreate(String owner, String identifier, DartUpstreamRequest data) throws ApiException { - ApiResponse resp = reposUpstreamDartCreateWithHttpInfo(owner, identifier, data); + public DebUpstream reposUpstreamDebCreate(String owner, String identifier, DebUpstreamRequest data) throws ApiException { + ApiResponse resp = reposUpstreamDebCreateWithHttpInfo(owner, identifier, data); return resp.getData(); } /** - * Create a Dart upstream config for this repository. - * Create a Dart upstream config for this repository. + * Create a Debian upstream config for this repository. + * Create a Debian upstream config for this repository. * @param owner (required) * @param identifier (required) * @param data (optional) - * @return ApiResponse<DartUpstream> + * @return ApiResponse<DebUpstream> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse reposUpstreamDartCreateWithHttpInfo( @NotNull String owner, @NotNull String identifier, DartUpstreamRequest data) throws ApiException { - com.squareup.okhttp.Call call = reposUpstreamDartCreateValidateBeforeCall(owner, identifier, data, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse reposUpstreamDebCreateWithHttpInfo( @NotNull String owner, @NotNull String identifier, DebUpstreamRequest data) throws ApiException { + com.squareup.okhttp.Call call = reposUpstreamDebCreateValidateBeforeCall(owner, identifier, data, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Create a Dart upstream config for this repository. (asynchronously) - * Create a Dart upstream config for this repository. + * Create a Debian upstream config for this repository. (asynchronously) + * Create a Debian upstream config for this repository. * @param owner (required) * @param identifier (required) * @param data (optional) @@ -6039,7 +7865,7 @@ public ApiResponse reposUpstreamDartCreateWithHttpInfo( @NotNull S * @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 reposUpstreamDartCreateAsync(String owner, String identifier, DartUpstreamRequest data, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call reposUpstreamDebCreateAsync(String owner, String identifier, DebUpstreamRequest data, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -6060,13 +7886,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = reposUpstreamDartCreateValidateBeforeCall(owner, identifier, data, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = reposUpstreamDebCreateValidateBeforeCall(owner, identifier, data, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for reposUpstreamDartDelete + * Build call for reposUpstreamDebDelete * @param owner (required) * @param identifier (required) * @param slugPerm (required) @@ -6075,11 +7901,11 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call reposUpstreamDartDeleteCall(String owner, String identifier, String slugPerm, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call reposUpstreamDebDeleteCall(String owner, String identifier, String slugPerm, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/repos/{owner}/{identifier}/upstream/dart/{slug_perm}/" + String localVarPath = "/repos/{owner}/{identifier}/upstream/deb/{slug_perm}/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "identifier" + "\\}", apiClient.escapeString(identifier.toString())) .replaceAll("\\{" + "slug_perm" + "\\}", apiClient.escapeString(slugPerm.toString())); @@ -6123,18 +7949,18 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call reposUpstreamDartDeleteValidateBeforeCall(String owner, String identifier, String slugPerm, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call reposUpstreamDebDeleteValidateBeforeCall(String owner, String identifier, String slugPerm, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { ValidatorFactory factory = Validation.buildDefaultValidatorFactory(); ExecutableValidator executableValidator = factory.getValidator().forExecutables(); Object[] parameterValues = { owner, identifier, slugPerm }; - Method method = this.getClass().getMethod("reposUpstreamDartDeleteWithHttpInfo", String.class, String.class, String.class); + Method method = this.getClass().getMethod("reposUpstreamDebDeleteWithHttpInfo", String.class, String.class, String.class); Set> violations = executableValidator.validateParameters(this, method, parameterValues); if (violations.size() == 0) { - com.squareup.okhttp.Call call = reposUpstreamDartDeleteCall(owner, identifier, slugPerm, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = reposUpstreamDebDeleteCall(owner, identifier, slugPerm, progressListener, progressRequestListener); return call; } else { @@ -6151,34 +7977,34 @@ private com.squareup.okhttp.Call reposUpstreamDartDeleteValidateBeforeCall(Strin } /** - * Delete a Dart upstream config for this repository. - * Delete a Dart upstream config for this repository. + * Delete a Debian upstream config for this repository. + * Delete a Debian upstream config for this repository. * @param owner (required) * @param identifier (required) * @param slugPerm (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public void reposUpstreamDartDelete(String owner, String identifier, String slugPerm) throws ApiException { - reposUpstreamDartDeleteWithHttpInfo(owner, identifier, slugPerm); + public void reposUpstreamDebDelete(String owner, String identifier, String slugPerm) throws ApiException { + reposUpstreamDebDeleteWithHttpInfo(owner, identifier, slugPerm); } /** - * Delete a Dart upstream config for this repository. - * Delete a Dart upstream config for this repository. + * Delete a Debian upstream config for this repository. + * Delete a Debian upstream config for this repository. * @param owner (required) * @param identifier (required) * @param slugPerm (required) * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse reposUpstreamDartDeleteWithHttpInfo( @NotNull String owner, @NotNull String identifier, @NotNull String slugPerm) throws ApiException { - com.squareup.okhttp.Call call = reposUpstreamDartDeleteValidateBeforeCall(owner, identifier, slugPerm, null, null); + public ApiResponse reposUpstreamDebDeleteWithHttpInfo( @NotNull String owner, @NotNull String identifier, @NotNull String slugPerm) throws ApiException { + com.squareup.okhttp.Call call = reposUpstreamDebDeleteValidateBeforeCall(owner, identifier, slugPerm, null, null); return apiClient.execute(call); } /** - * Delete a Dart upstream config for this repository. (asynchronously) - * Delete a Dart upstream config for this repository. + * Delete a Debian upstream config for this repository. (asynchronously) + * Delete a Debian upstream config for this repository. * @param owner (required) * @param identifier (required) * @param slugPerm (required) @@ -6186,7 +8012,7 @@ public ApiResponse reposUpstreamDartDeleteWithHttpInfo( @NotNull String ow * @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 reposUpstreamDartDeleteAsync(String owner, String identifier, String slugPerm, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call reposUpstreamDebDeleteAsync(String owner, String identifier, String slugPerm, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -6207,12 +8033,12 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = reposUpstreamDartDeleteValidateBeforeCall(owner, identifier, slugPerm, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = reposUpstreamDebDeleteValidateBeforeCall(owner, identifier, slugPerm, progressListener, progressRequestListener); apiClient.executeAsync(call, callback); return call; } /** - * Build call for reposUpstreamDartList + * Build call for reposUpstreamDebList * @param owner (required) * @param identifier (required) * @param page A page number within the paginated result set. (optional) @@ -6222,11 +8048,11 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call reposUpstreamDartListCall(String owner, String identifier, java.math.BigInteger page, java.math.BigInteger pageSize, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call reposUpstreamDebListCall(String owner, String identifier, java.math.BigInteger page, java.math.BigInteger pageSize, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/repos/{owner}/{identifier}/upstream/dart/" + String localVarPath = "/repos/{owner}/{identifier}/upstream/deb/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "identifier" + "\\}", apiClient.escapeString(identifier.toString())); @@ -6273,18 +8099,18 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call reposUpstreamDartListValidateBeforeCall(String owner, String identifier, java.math.BigInteger page, java.math.BigInteger pageSize, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call reposUpstreamDebListValidateBeforeCall(String owner, String identifier, java.math.BigInteger page, java.math.BigInteger pageSize, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { ValidatorFactory factory = Validation.buildDefaultValidatorFactory(); ExecutableValidator executableValidator = factory.getValidator().forExecutables(); Object[] parameterValues = { owner, identifier, page, pageSize }; - Method method = this.getClass().getMethod("reposUpstreamDartListWithHttpInfo", String.class, String.class, java.math.BigInteger.class, java.math.BigInteger.class); + Method method = this.getClass().getMethod("reposUpstreamDebListWithHttpInfo", String.class, String.class, java.math.BigInteger.class, java.math.BigInteger.class); Set> violations = executableValidator.validateParameters(this, method, parameterValues); if (violations.size() == 0) { - com.squareup.okhttp.Call call = reposUpstreamDartListCall(owner, identifier, page, pageSize, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = reposUpstreamDebListCall(owner, identifier, page, pageSize, progressListener, progressRequestListener); return call; } else { @@ -6301,39 +8127,39 @@ private com.squareup.okhttp.Call reposUpstreamDartListValidateBeforeCall(String } /** - * List Dart upstream configs for this repository. - * List Dart upstream configs for this repository. + * List Debian upstream configs for this repository. + * List Debian upstream configs for this repository. * @param owner (required) * @param identifier (required) * @param page A page number within the paginated result set. (optional) * @param pageSize Number of results to return per page. (optional) - * @return List<DartUpstream> + * @return List<DebUpstream> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public List reposUpstreamDartList(String owner, String identifier, java.math.BigInteger page, java.math.BigInteger pageSize) throws ApiException { - ApiResponse> resp = reposUpstreamDartListWithHttpInfo(owner, identifier, page, pageSize); + public List reposUpstreamDebList(String owner, String identifier, java.math.BigInteger page, java.math.BigInteger pageSize) throws ApiException { + ApiResponse> resp = reposUpstreamDebListWithHttpInfo(owner, identifier, page, pageSize); return resp.getData(); } /** - * List Dart upstream configs for this repository. - * List Dart upstream configs for this repository. + * List Debian upstream configs for this repository. + * List Debian upstream configs for this repository. * @param owner (required) * @param identifier (required) * @param page A page number within the paginated result set. (optional) * @param pageSize Number of results to return per page. (optional) - * @return ApiResponse<List<DartUpstream>> + * @return ApiResponse<List<DebUpstream>> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse> reposUpstreamDartListWithHttpInfo( @NotNull String owner, @NotNull String identifier, java.math.BigInteger page, java.math.BigInteger pageSize) throws ApiException { - com.squareup.okhttp.Call call = reposUpstreamDartListValidateBeforeCall(owner, identifier, page, pageSize, null, null); - Type localVarReturnType = new TypeToken>(){}.getType(); + public ApiResponse> reposUpstreamDebListWithHttpInfo( @NotNull String owner, @NotNull String identifier, java.math.BigInteger page, java.math.BigInteger pageSize) throws ApiException { + com.squareup.okhttp.Call call = reposUpstreamDebListValidateBeforeCall(owner, identifier, page, pageSize, null, null); + Type localVarReturnType = new TypeToken>(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * List Dart upstream configs for this repository. (asynchronously) - * List Dart upstream configs for this repository. + * List Debian upstream configs for this repository. (asynchronously) + * List Debian upstream configs for this repository. * @param owner (required) * @param identifier (required) * @param page A page number within the paginated result set. (optional) @@ -6342,7 +8168,7 @@ public ApiResponse> reposUpstreamDartListWithHttpInfo( @NotNu * @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 reposUpstreamDartListAsync(String owner, String identifier, java.math.BigInteger page, java.math.BigInteger pageSize, final ApiCallback> callback) throws ApiException { + public com.squareup.okhttp.Call reposUpstreamDebListAsync(String owner, String identifier, java.math.BigInteger page, java.math.BigInteger pageSize, final ApiCallback> callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -6363,13 +8189,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = reposUpstreamDartListValidateBeforeCall(owner, identifier, page, pageSize, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken>(){}.getType(); + com.squareup.okhttp.Call call = reposUpstreamDebListValidateBeforeCall(owner, identifier, page, pageSize, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken>(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for reposUpstreamDartPartialUpdate + * Build call for reposUpstreamDebPartialUpdate * @param owner (required) * @param identifier (required) * @param slugPerm (required) @@ -6379,11 +8205,11 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call reposUpstreamDartPartialUpdateCall(String owner, String identifier, String slugPerm, DartUpstreamRequestPatch data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call reposUpstreamDebPartialUpdateCall(String owner, String identifier, String slugPerm, DebUpstreamRequestPatch data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = data; // create path and map variables - String localVarPath = "/repos/{owner}/{identifier}/upstream/dart/{slug_perm}/" + String localVarPath = "/repos/{owner}/{identifier}/upstream/deb/{slug_perm}/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "identifier" + "\\}", apiClient.escapeString(identifier.toString())) .replaceAll("\\{" + "slug_perm" + "\\}", apiClient.escapeString(slugPerm.toString())); @@ -6427,18 +8253,18 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call reposUpstreamDartPartialUpdateValidateBeforeCall(String owner, String identifier, String slugPerm, DartUpstreamRequestPatch data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call reposUpstreamDebPartialUpdateValidateBeforeCall(String owner, String identifier, String slugPerm, DebUpstreamRequestPatch data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { ValidatorFactory factory = Validation.buildDefaultValidatorFactory(); ExecutableValidator executableValidator = factory.getValidator().forExecutables(); Object[] parameterValues = { owner, identifier, slugPerm, data }; - Method method = this.getClass().getMethod("reposUpstreamDartPartialUpdateWithHttpInfo", String.class, String.class, String.class, DartUpstreamRequestPatch.class); + Method method = this.getClass().getMethod("reposUpstreamDebPartialUpdateWithHttpInfo", String.class, String.class, String.class, DebUpstreamRequestPatch.class); Set> violations = executableValidator.validateParameters(this, method, parameterValues); if (violations.size() == 0) { - com.squareup.okhttp.Call call = reposUpstreamDartPartialUpdateCall(owner, identifier, slugPerm, data, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = reposUpstreamDebPartialUpdateCall(owner, identifier, slugPerm, data, progressListener, progressRequestListener); return call; } else { @@ -6455,39 +8281,39 @@ private com.squareup.okhttp.Call reposUpstreamDartPartialUpdateValidateBeforeCal } /** - * Partially update a Dart upstream config for this repository. - * Partially update a Dart upstream config for this repository. + * Partially update a Debian upstream config for this repository. + * Partially update a Debian upstream config for this repository. * @param owner (required) * @param identifier (required) * @param slugPerm (required) * @param data (optional) - * @return DartUpstream + * @return DebUpstream * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public DartUpstream reposUpstreamDartPartialUpdate(String owner, String identifier, String slugPerm, DartUpstreamRequestPatch data) throws ApiException { - ApiResponse resp = reposUpstreamDartPartialUpdateWithHttpInfo(owner, identifier, slugPerm, data); + public DebUpstream reposUpstreamDebPartialUpdate(String owner, String identifier, String slugPerm, DebUpstreamRequestPatch data) throws ApiException { + ApiResponse resp = reposUpstreamDebPartialUpdateWithHttpInfo(owner, identifier, slugPerm, data); return resp.getData(); } /** - * Partially update a Dart upstream config for this repository. - * Partially update a Dart upstream config for this repository. + * Partially update a Debian upstream config for this repository. + * Partially update a Debian upstream config for this repository. * @param owner (required) * @param identifier (required) * @param slugPerm (required) * @param data (optional) - * @return ApiResponse<DartUpstream> + * @return ApiResponse<DebUpstream> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse reposUpstreamDartPartialUpdateWithHttpInfo( @NotNull String owner, @NotNull String identifier, @NotNull String slugPerm, DartUpstreamRequestPatch data) throws ApiException { - com.squareup.okhttp.Call call = reposUpstreamDartPartialUpdateValidateBeforeCall(owner, identifier, slugPerm, data, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse reposUpstreamDebPartialUpdateWithHttpInfo( @NotNull String owner, @NotNull String identifier, @NotNull String slugPerm, DebUpstreamRequestPatch data) throws ApiException { + com.squareup.okhttp.Call call = reposUpstreamDebPartialUpdateValidateBeforeCall(owner, identifier, slugPerm, data, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Partially update a Dart upstream config for this repository. (asynchronously) - * Partially update a Dart upstream config for this repository. + * Partially update a Debian upstream config for this repository. (asynchronously) + * Partially update a Debian upstream config for this repository. * @param owner (required) * @param identifier (required) * @param slugPerm (required) @@ -6496,7 +8322,7 @@ public ApiResponse reposUpstreamDartPartialUpdateWithHttpInfo( @No * @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 reposUpstreamDartPartialUpdateAsync(String owner, String identifier, String slugPerm, DartUpstreamRequestPatch data, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call reposUpstreamDebPartialUpdateAsync(String owner, String identifier, String slugPerm, DebUpstreamRequestPatch data, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -6517,13 +8343,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = reposUpstreamDartPartialUpdateValidateBeforeCall(owner, identifier, slugPerm, data, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = reposUpstreamDebPartialUpdateValidateBeforeCall(owner, identifier, slugPerm, data, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for reposUpstreamDartRead + * Build call for reposUpstreamDebRead * @param owner (required) * @param identifier (required) * @param slugPerm (required) @@ -6532,11 +8358,11 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call reposUpstreamDartReadCall(String owner, String identifier, String slugPerm, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call reposUpstreamDebReadCall(String owner, String identifier, String slugPerm, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/repos/{owner}/{identifier}/upstream/dart/{slug_perm}/" + String localVarPath = "/repos/{owner}/{identifier}/upstream/deb/{slug_perm}/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "identifier" + "\\}", apiClient.escapeString(identifier.toString())) .replaceAll("\\{" + "slug_perm" + "\\}", apiClient.escapeString(slugPerm.toString())); @@ -6580,18 +8406,18 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call reposUpstreamDartReadValidateBeforeCall(String owner, String identifier, String slugPerm, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call reposUpstreamDebReadValidateBeforeCall(String owner, String identifier, String slugPerm, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { ValidatorFactory factory = Validation.buildDefaultValidatorFactory(); ExecutableValidator executableValidator = factory.getValidator().forExecutables(); Object[] parameterValues = { owner, identifier, slugPerm }; - Method method = this.getClass().getMethod("reposUpstreamDartReadWithHttpInfo", String.class, String.class, String.class); + Method method = this.getClass().getMethod("reposUpstreamDebReadWithHttpInfo", String.class, String.class, String.class); Set> violations = executableValidator.validateParameters(this, method, parameterValues); if (violations.size() == 0) { - com.squareup.okhttp.Call call = reposUpstreamDartReadCall(owner, identifier, slugPerm, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = reposUpstreamDebReadCall(owner, identifier, slugPerm, progressListener, progressRequestListener); return call; } else { @@ -6608,37 +8434,37 @@ private com.squareup.okhttp.Call reposUpstreamDartReadValidateBeforeCall(String } /** - * Retrieve a Dart upstream config for this repository. - * Retrieve a Dart upstream config for this repository. + * Retrieve a Debian upstream config for this repository. + * Retrieve a Debian upstream config for this repository. * @param owner (required) * @param identifier (required) * @param slugPerm (required) - * @return DartUpstream + * @return DebUpstream * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public DartUpstream reposUpstreamDartRead(String owner, String identifier, String slugPerm) throws ApiException { - ApiResponse resp = reposUpstreamDartReadWithHttpInfo(owner, identifier, slugPerm); + public DebUpstream reposUpstreamDebRead(String owner, String identifier, String slugPerm) throws ApiException { + ApiResponse resp = reposUpstreamDebReadWithHttpInfo(owner, identifier, slugPerm); return resp.getData(); } /** - * Retrieve a Dart upstream config for this repository. - * Retrieve a Dart upstream config for this repository. + * Retrieve a Debian upstream config for this repository. + * Retrieve a Debian upstream config for this repository. * @param owner (required) * @param identifier (required) * @param slugPerm (required) - * @return ApiResponse<DartUpstream> + * @return ApiResponse<DebUpstream> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse reposUpstreamDartReadWithHttpInfo( @NotNull String owner, @NotNull String identifier, @NotNull String slugPerm) throws ApiException { - com.squareup.okhttp.Call call = reposUpstreamDartReadValidateBeforeCall(owner, identifier, slugPerm, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse reposUpstreamDebReadWithHttpInfo( @NotNull String owner, @NotNull String identifier, @NotNull String slugPerm) throws ApiException { + com.squareup.okhttp.Call call = reposUpstreamDebReadValidateBeforeCall(owner, identifier, slugPerm, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Retrieve a Dart upstream config for this repository. (asynchronously) - * Retrieve a Dart upstream config for this repository. + * Retrieve a Debian upstream config for this repository. (asynchronously) + * Retrieve a Debian upstream config for this repository. * @param owner (required) * @param identifier (required) * @param slugPerm (required) @@ -6646,7 +8472,7 @@ public ApiResponse reposUpstreamDartReadWithHttpInfo( @NotNull Str * @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 reposUpstreamDartReadAsync(String owner, String identifier, String slugPerm, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call reposUpstreamDebReadAsync(String owner, String identifier, String slugPerm, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -6667,13 +8493,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = reposUpstreamDartReadValidateBeforeCall(owner, identifier, slugPerm, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = reposUpstreamDebReadValidateBeforeCall(owner, identifier, slugPerm, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for reposUpstreamDartUpdate + * Build call for reposUpstreamDebUpdate * @param owner (required) * @param identifier (required) * @param slugPerm (required) @@ -6683,11 +8509,11 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call reposUpstreamDartUpdateCall(String owner, String identifier, String slugPerm, DartUpstreamRequest data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call reposUpstreamDebUpdateCall(String owner, String identifier, String slugPerm, DebUpstreamRequest data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = data; // create path and map variables - String localVarPath = "/repos/{owner}/{identifier}/upstream/dart/{slug_perm}/" + String localVarPath = "/repos/{owner}/{identifier}/upstream/deb/{slug_perm}/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "identifier" + "\\}", apiClient.escapeString(identifier.toString())) .replaceAll("\\{" + "slug_perm" + "\\}", apiClient.escapeString(slugPerm.toString())); @@ -6731,18 +8557,18 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call reposUpstreamDartUpdateValidateBeforeCall(String owner, String identifier, String slugPerm, DartUpstreamRequest data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call reposUpstreamDebUpdateValidateBeforeCall(String owner, String identifier, String slugPerm, DebUpstreamRequest data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { ValidatorFactory factory = Validation.buildDefaultValidatorFactory(); ExecutableValidator executableValidator = factory.getValidator().forExecutables(); Object[] parameterValues = { owner, identifier, slugPerm, data }; - Method method = this.getClass().getMethod("reposUpstreamDartUpdateWithHttpInfo", String.class, String.class, String.class, DartUpstreamRequest.class); + Method method = this.getClass().getMethod("reposUpstreamDebUpdateWithHttpInfo", String.class, String.class, String.class, DebUpstreamRequest.class); Set> violations = executableValidator.validateParameters(this, method, parameterValues); if (violations.size() == 0) { - com.squareup.okhttp.Call call = reposUpstreamDartUpdateCall(owner, identifier, slugPerm, data, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = reposUpstreamDebUpdateCall(owner, identifier, slugPerm, data, progressListener, progressRequestListener); return call; } else { @@ -6759,39 +8585,39 @@ private com.squareup.okhttp.Call reposUpstreamDartUpdateValidateBeforeCall(Strin } /** - * Update a Dart upstream config for this repository. - * Update a Dart upstream config for this repository. + * Update a Debian upstream config for this repository. + * Update a Debian upstream config for this repository. * @param owner (required) * @param identifier (required) * @param slugPerm (required) * @param data (optional) - * @return DartUpstream + * @return DebUpstream * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public DartUpstream reposUpstreamDartUpdate(String owner, String identifier, String slugPerm, DartUpstreamRequest data) throws ApiException { - ApiResponse resp = reposUpstreamDartUpdateWithHttpInfo(owner, identifier, slugPerm, data); + public DebUpstream reposUpstreamDebUpdate(String owner, String identifier, String slugPerm, DebUpstreamRequest data) throws ApiException { + ApiResponse resp = reposUpstreamDebUpdateWithHttpInfo(owner, identifier, slugPerm, data); return resp.getData(); } /** - * Update a Dart upstream config for this repository. - * Update a Dart upstream config for this repository. + * Update a Debian upstream config for this repository. + * Update a Debian upstream config for this repository. * @param owner (required) * @param identifier (required) * @param slugPerm (required) * @param data (optional) - * @return ApiResponse<DartUpstream> + * @return ApiResponse<DebUpstream> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse reposUpstreamDartUpdateWithHttpInfo( @NotNull String owner, @NotNull String identifier, @NotNull String slugPerm, DartUpstreamRequest data) throws ApiException { - com.squareup.okhttp.Call call = reposUpstreamDartUpdateValidateBeforeCall(owner, identifier, slugPerm, data, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse reposUpstreamDebUpdateWithHttpInfo( @NotNull String owner, @NotNull String identifier, @NotNull String slugPerm, DebUpstreamRequest data) throws ApiException { + com.squareup.okhttp.Call call = reposUpstreamDebUpdateValidateBeforeCall(owner, identifier, slugPerm, data, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Update a Dart upstream config for this repository. (asynchronously) - * Update a Dart upstream config for this repository. + * Update a Debian upstream config for this repository. (asynchronously) + * Update a Debian upstream config for this repository. * @param owner (required) * @param identifier (required) * @param slugPerm (required) @@ -6800,7 +8626,7 @@ public ApiResponse reposUpstreamDartUpdateWithHttpInfo( @NotNull S * @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 reposUpstreamDartUpdateAsync(String owner, String identifier, String slugPerm, DartUpstreamRequest data, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call reposUpstreamDebUpdateAsync(String owner, String identifier, String slugPerm, DebUpstreamRequest data, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -6821,13 +8647,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = reposUpstreamDartUpdateValidateBeforeCall(owner, identifier, slugPerm, data, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = reposUpstreamDebUpdateValidateBeforeCall(owner, identifier, slugPerm, data, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for reposUpstreamDebCreate + * Build call for reposUpstreamDockerCreate * @param owner (required) * @param identifier (required) * @param data (optional) @@ -6836,11 +8662,11 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call reposUpstreamDebCreateCall(String owner, String identifier, DebUpstreamRequest data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call reposUpstreamDockerCreateCall(String owner, String identifier, DockerUpstreamRequest data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = data; // create path and map variables - String localVarPath = "/repos/{owner}/{identifier}/upstream/deb/" + String localVarPath = "/repos/{owner}/{identifier}/upstream/docker/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "identifier" + "\\}", apiClient.escapeString(identifier.toString())); @@ -6883,18 +8709,18 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call reposUpstreamDebCreateValidateBeforeCall(String owner, String identifier, DebUpstreamRequest data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call reposUpstreamDockerCreateValidateBeforeCall(String owner, String identifier, DockerUpstreamRequest data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { ValidatorFactory factory = Validation.buildDefaultValidatorFactory(); ExecutableValidator executableValidator = factory.getValidator().forExecutables(); Object[] parameterValues = { owner, identifier, data }; - Method method = this.getClass().getMethod("reposUpstreamDebCreateWithHttpInfo", String.class, String.class, DebUpstreamRequest.class); + Method method = this.getClass().getMethod("reposUpstreamDockerCreateWithHttpInfo", String.class, String.class, DockerUpstreamRequest.class); Set> violations = executableValidator.validateParameters(this, method, parameterValues); if (violations.size() == 0) { - com.squareup.okhttp.Call call = reposUpstreamDebCreateCall(owner, identifier, data, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = reposUpstreamDockerCreateCall(owner, identifier, data, progressListener, progressRequestListener); return call; } else { @@ -6911,37 +8737,37 @@ private com.squareup.okhttp.Call reposUpstreamDebCreateValidateBeforeCall(String } /** - * Create a Debian upstream config for this repository. - * Create a Debian upstream config for this repository. + * Create a Docker upstream config for this repository. + * Create a Docker upstream config for this repository. * @param owner (required) * @param identifier (required) * @param data (optional) - * @return DebUpstream + * @return DockerUpstream * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public DebUpstream reposUpstreamDebCreate(String owner, String identifier, DebUpstreamRequest data) throws ApiException { - ApiResponse resp = reposUpstreamDebCreateWithHttpInfo(owner, identifier, data); + public DockerUpstream reposUpstreamDockerCreate(String owner, String identifier, DockerUpstreamRequest data) throws ApiException { + ApiResponse resp = reposUpstreamDockerCreateWithHttpInfo(owner, identifier, data); return resp.getData(); } /** - * Create a Debian upstream config for this repository. - * Create a Debian upstream config for this repository. + * Create a Docker upstream config for this repository. + * Create a Docker upstream config for this repository. * @param owner (required) * @param identifier (required) * @param data (optional) - * @return ApiResponse<DebUpstream> + * @return ApiResponse<DockerUpstream> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse reposUpstreamDebCreateWithHttpInfo( @NotNull String owner, @NotNull String identifier, DebUpstreamRequest data) throws ApiException { - com.squareup.okhttp.Call call = reposUpstreamDebCreateValidateBeforeCall(owner, identifier, data, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse reposUpstreamDockerCreateWithHttpInfo( @NotNull String owner, @NotNull String identifier, DockerUpstreamRequest data) throws ApiException { + com.squareup.okhttp.Call call = reposUpstreamDockerCreateValidateBeforeCall(owner, identifier, data, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Create a Debian upstream config for this repository. (asynchronously) - * Create a Debian upstream config for this repository. + * Create a Docker upstream config for this repository. (asynchronously) + * Create a Docker upstream config for this repository. * @param owner (required) * @param identifier (required) * @param data (optional) @@ -6949,7 +8775,7 @@ public ApiResponse reposUpstreamDebCreateWithHttpInfo( @NotNull Str * @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 reposUpstreamDebCreateAsync(String owner, String identifier, DebUpstreamRequest data, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call reposUpstreamDockerCreateAsync(String owner, String identifier, DockerUpstreamRequest data, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -6970,13 +8796,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = reposUpstreamDebCreateValidateBeforeCall(owner, identifier, data, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = reposUpstreamDockerCreateValidateBeforeCall(owner, identifier, data, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for reposUpstreamDebDelete + * Build call for reposUpstreamDockerDelete * @param owner (required) * @param identifier (required) * @param slugPerm (required) @@ -6985,11 +8811,11 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call reposUpstreamDebDeleteCall(String owner, String identifier, String slugPerm, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call reposUpstreamDockerDeleteCall(String owner, String identifier, String slugPerm, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/repos/{owner}/{identifier}/upstream/deb/{slug_perm}/" + String localVarPath = "/repos/{owner}/{identifier}/upstream/docker/{slug_perm}/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "identifier" + "\\}", apiClient.escapeString(identifier.toString())) .replaceAll("\\{" + "slug_perm" + "\\}", apiClient.escapeString(slugPerm.toString())); @@ -7033,18 +8859,18 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call reposUpstreamDebDeleteValidateBeforeCall(String owner, String identifier, String slugPerm, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call reposUpstreamDockerDeleteValidateBeforeCall(String owner, String identifier, String slugPerm, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { ValidatorFactory factory = Validation.buildDefaultValidatorFactory(); ExecutableValidator executableValidator = factory.getValidator().forExecutables(); Object[] parameterValues = { owner, identifier, slugPerm }; - Method method = this.getClass().getMethod("reposUpstreamDebDeleteWithHttpInfo", String.class, String.class, String.class); + Method method = this.getClass().getMethod("reposUpstreamDockerDeleteWithHttpInfo", String.class, String.class, String.class); Set> violations = executableValidator.validateParameters(this, method, parameterValues); if (violations.size() == 0) { - com.squareup.okhttp.Call call = reposUpstreamDebDeleteCall(owner, identifier, slugPerm, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = reposUpstreamDockerDeleteCall(owner, identifier, slugPerm, progressListener, progressRequestListener); return call; } else { @@ -7061,34 +8887,34 @@ private com.squareup.okhttp.Call reposUpstreamDebDeleteValidateBeforeCall(String } /** - * Delete a Debian upstream config for this repository. - * Delete a Debian upstream config for this repository. + * Delete a Docker upstream config for this repository. + * Delete a Docker upstream config for this repository. * @param owner (required) * @param identifier (required) * @param slugPerm (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public void reposUpstreamDebDelete(String owner, String identifier, String slugPerm) throws ApiException { - reposUpstreamDebDeleteWithHttpInfo(owner, identifier, slugPerm); + public void reposUpstreamDockerDelete(String owner, String identifier, String slugPerm) throws ApiException { + reposUpstreamDockerDeleteWithHttpInfo(owner, identifier, slugPerm); } /** - * Delete a Debian upstream config for this repository. - * Delete a Debian upstream config for this repository. + * Delete a Docker upstream config for this repository. + * Delete a Docker upstream config for this repository. * @param owner (required) * @param identifier (required) * @param slugPerm (required) * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse reposUpstreamDebDeleteWithHttpInfo( @NotNull String owner, @NotNull String identifier, @NotNull String slugPerm) throws ApiException { - com.squareup.okhttp.Call call = reposUpstreamDebDeleteValidateBeforeCall(owner, identifier, slugPerm, null, null); + public ApiResponse reposUpstreamDockerDeleteWithHttpInfo( @NotNull String owner, @NotNull String identifier, @NotNull String slugPerm) throws ApiException { + com.squareup.okhttp.Call call = reposUpstreamDockerDeleteValidateBeforeCall(owner, identifier, slugPerm, null, null); return apiClient.execute(call); } /** - * Delete a Debian upstream config for this repository. (asynchronously) - * Delete a Debian upstream config for this repository. + * Delete a Docker upstream config for this repository. (asynchronously) + * Delete a Docker upstream config for this repository. * @param owner (required) * @param identifier (required) * @param slugPerm (required) @@ -7096,7 +8922,7 @@ public ApiResponse reposUpstreamDebDeleteWithHttpInfo( @NotNull String own * @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 reposUpstreamDebDeleteAsync(String owner, String identifier, String slugPerm, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call reposUpstreamDockerDeleteAsync(String owner, String identifier, String slugPerm, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -7117,12 +8943,12 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = reposUpstreamDebDeleteValidateBeforeCall(owner, identifier, slugPerm, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = reposUpstreamDockerDeleteValidateBeforeCall(owner, identifier, slugPerm, progressListener, progressRequestListener); apiClient.executeAsync(call, callback); return call; } /** - * Build call for reposUpstreamDebList + * Build call for reposUpstreamDockerList * @param owner (required) * @param identifier (required) * @param page A page number within the paginated result set. (optional) @@ -7132,11 +8958,11 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call reposUpstreamDebListCall(String owner, String identifier, java.math.BigInteger page, java.math.BigInteger pageSize, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call reposUpstreamDockerListCall(String owner, String identifier, java.math.BigInteger page, java.math.BigInteger pageSize, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/repos/{owner}/{identifier}/upstream/deb/" + String localVarPath = "/repos/{owner}/{identifier}/upstream/docker/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "identifier" + "\\}", apiClient.escapeString(identifier.toString())); @@ -7183,18 +9009,18 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call reposUpstreamDebListValidateBeforeCall(String owner, String identifier, java.math.BigInteger page, java.math.BigInteger pageSize, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call reposUpstreamDockerListValidateBeforeCall(String owner, String identifier, java.math.BigInteger page, java.math.BigInteger pageSize, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { ValidatorFactory factory = Validation.buildDefaultValidatorFactory(); ExecutableValidator executableValidator = factory.getValidator().forExecutables(); Object[] parameterValues = { owner, identifier, page, pageSize }; - Method method = this.getClass().getMethod("reposUpstreamDebListWithHttpInfo", String.class, String.class, java.math.BigInteger.class, java.math.BigInteger.class); + Method method = this.getClass().getMethod("reposUpstreamDockerListWithHttpInfo", String.class, String.class, java.math.BigInteger.class, java.math.BigInteger.class); Set> violations = executableValidator.validateParameters(this, method, parameterValues); if (violations.size() == 0) { - com.squareup.okhttp.Call call = reposUpstreamDebListCall(owner, identifier, page, pageSize, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = reposUpstreamDockerListCall(owner, identifier, page, pageSize, progressListener, progressRequestListener); return call; } else { @@ -7211,39 +9037,39 @@ private com.squareup.okhttp.Call reposUpstreamDebListValidateBeforeCall(String o } /** - * List Debian upstream configs for this repository. - * List Debian upstream configs for this repository. + * List Docker upstream configs for this repository. + * List Docker upstream configs for this repository. * @param owner (required) * @param identifier (required) * @param page A page number within the paginated result set. (optional) * @param pageSize Number of results to return per page. (optional) - * @return List<DebUpstream> + * @return List<DockerUpstream> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public List reposUpstreamDebList(String owner, String identifier, java.math.BigInteger page, java.math.BigInteger pageSize) throws ApiException { - ApiResponse> resp = reposUpstreamDebListWithHttpInfo(owner, identifier, page, pageSize); + public List reposUpstreamDockerList(String owner, String identifier, java.math.BigInteger page, java.math.BigInteger pageSize) throws ApiException { + ApiResponse> resp = reposUpstreamDockerListWithHttpInfo(owner, identifier, page, pageSize); return resp.getData(); } /** - * List Debian upstream configs for this repository. - * List Debian upstream configs for this repository. + * List Docker upstream configs for this repository. + * List Docker upstream configs for this repository. * @param owner (required) * @param identifier (required) * @param page A page number within the paginated result set. (optional) * @param pageSize Number of results to return per page. (optional) - * @return ApiResponse<List<DebUpstream>> + * @return ApiResponse<List<DockerUpstream>> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse> reposUpstreamDebListWithHttpInfo( @NotNull String owner, @NotNull String identifier, java.math.BigInteger page, java.math.BigInteger pageSize) throws ApiException { - com.squareup.okhttp.Call call = reposUpstreamDebListValidateBeforeCall(owner, identifier, page, pageSize, null, null); - Type localVarReturnType = new TypeToken>(){}.getType(); + public ApiResponse> reposUpstreamDockerListWithHttpInfo( @NotNull String owner, @NotNull String identifier, java.math.BigInteger page, java.math.BigInteger pageSize) throws ApiException { + com.squareup.okhttp.Call call = reposUpstreamDockerListValidateBeforeCall(owner, identifier, page, pageSize, null, null); + Type localVarReturnType = new TypeToken>(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * List Debian upstream configs for this repository. (asynchronously) - * List Debian upstream configs for this repository. + * List Docker upstream configs for this repository. (asynchronously) + * List Docker upstream configs for this repository. * @param owner (required) * @param identifier (required) * @param page A page number within the paginated result set. (optional) @@ -7252,7 +9078,7 @@ public ApiResponse> reposUpstreamDebListWithHttpInfo( @NotNull * @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 reposUpstreamDebListAsync(String owner, String identifier, java.math.BigInteger page, java.math.BigInteger pageSize, final ApiCallback> callback) throws ApiException { + public com.squareup.okhttp.Call reposUpstreamDockerListAsync(String owner, String identifier, java.math.BigInteger page, java.math.BigInteger pageSize, final ApiCallback> callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -7273,13 +9099,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = reposUpstreamDebListValidateBeforeCall(owner, identifier, page, pageSize, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken>(){}.getType(); + com.squareup.okhttp.Call call = reposUpstreamDockerListValidateBeforeCall(owner, identifier, page, pageSize, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken>(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for reposUpstreamDebPartialUpdate + * Build call for reposUpstreamDockerPartialUpdate * @param owner (required) * @param identifier (required) * @param slugPerm (required) @@ -7289,11 +9115,11 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call reposUpstreamDebPartialUpdateCall(String owner, String identifier, String slugPerm, DebUpstreamRequestPatch data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call reposUpstreamDockerPartialUpdateCall(String owner, String identifier, String slugPerm, DockerUpstreamRequestPatch data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = data; // create path and map variables - String localVarPath = "/repos/{owner}/{identifier}/upstream/deb/{slug_perm}/" + String localVarPath = "/repos/{owner}/{identifier}/upstream/docker/{slug_perm}/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "identifier" + "\\}", apiClient.escapeString(identifier.toString())) .replaceAll("\\{" + "slug_perm" + "\\}", apiClient.escapeString(slugPerm.toString())); @@ -7337,18 +9163,18 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call reposUpstreamDebPartialUpdateValidateBeforeCall(String owner, String identifier, String slugPerm, DebUpstreamRequestPatch data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call reposUpstreamDockerPartialUpdateValidateBeforeCall(String owner, String identifier, String slugPerm, DockerUpstreamRequestPatch data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { ValidatorFactory factory = Validation.buildDefaultValidatorFactory(); ExecutableValidator executableValidator = factory.getValidator().forExecutables(); Object[] parameterValues = { owner, identifier, slugPerm, data }; - Method method = this.getClass().getMethod("reposUpstreamDebPartialUpdateWithHttpInfo", String.class, String.class, String.class, DebUpstreamRequestPatch.class); + Method method = this.getClass().getMethod("reposUpstreamDockerPartialUpdateWithHttpInfo", String.class, String.class, String.class, DockerUpstreamRequestPatch.class); Set> violations = executableValidator.validateParameters(this, method, parameterValues); if (violations.size() == 0) { - com.squareup.okhttp.Call call = reposUpstreamDebPartialUpdateCall(owner, identifier, slugPerm, data, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = reposUpstreamDockerPartialUpdateCall(owner, identifier, slugPerm, data, progressListener, progressRequestListener); return call; } else { @@ -7365,39 +9191,39 @@ private com.squareup.okhttp.Call reposUpstreamDebPartialUpdateValidateBeforeCall } /** - * Partially update a Debian upstream config for this repository. - * Partially update a Debian upstream config for this repository. + * Partially update a Docker upstream config for this repository. + * Partially update a Docker upstream config for this repository. * @param owner (required) * @param identifier (required) * @param slugPerm (required) * @param data (optional) - * @return DebUpstream + * @return DockerUpstream * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public DebUpstream reposUpstreamDebPartialUpdate(String owner, String identifier, String slugPerm, DebUpstreamRequestPatch data) throws ApiException { - ApiResponse resp = reposUpstreamDebPartialUpdateWithHttpInfo(owner, identifier, slugPerm, data); + public DockerUpstream reposUpstreamDockerPartialUpdate(String owner, String identifier, String slugPerm, DockerUpstreamRequestPatch data) throws ApiException { + ApiResponse resp = reposUpstreamDockerPartialUpdateWithHttpInfo(owner, identifier, slugPerm, data); return resp.getData(); } /** - * Partially update a Debian upstream config for this repository. - * Partially update a Debian upstream config for this repository. + * Partially update a Docker upstream config for this repository. + * Partially update a Docker upstream config for this repository. * @param owner (required) * @param identifier (required) * @param slugPerm (required) * @param data (optional) - * @return ApiResponse<DebUpstream> + * @return ApiResponse<DockerUpstream> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse reposUpstreamDebPartialUpdateWithHttpInfo( @NotNull String owner, @NotNull String identifier, @NotNull String slugPerm, DebUpstreamRequestPatch data) throws ApiException { - com.squareup.okhttp.Call call = reposUpstreamDebPartialUpdateValidateBeforeCall(owner, identifier, slugPerm, data, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse reposUpstreamDockerPartialUpdateWithHttpInfo( @NotNull String owner, @NotNull String identifier, @NotNull String slugPerm, DockerUpstreamRequestPatch data) throws ApiException { + com.squareup.okhttp.Call call = reposUpstreamDockerPartialUpdateValidateBeforeCall(owner, identifier, slugPerm, data, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Partially update a Debian upstream config for this repository. (asynchronously) - * Partially update a Debian upstream config for this repository. + * Partially update a Docker upstream config for this repository. (asynchronously) + * Partially update a Docker upstream config for this repository. * @param owner (required) * @param identifier (required) * @param slugPerm (required) @@ -7406,7 +9232,7 @@ public ApiResponse reposUpstreamDebPartialUpdateWithHttpInfo( @NotN * @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 reposUpstreamDebPartialUpdateAsync(String owner, String identifier, String slugPerm, DebUpstreamRequestPatch data, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call reposUpstreamDockerPartialUpdateAsync(String owner, String identifier, String slugPerm, DockerUpstreamRequestPatch data, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -7427,13 +9253,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = reposUpstreamDebPartialUpdateValidateBeforeCall(owner, identifier, slugPerm, data, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = reposUpstreamDockerPartialUpdateValidateBeforeCall(owner, identifier, slugPerm, data, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for reposUpstreamDebRead + * Build call for reposUpstreamDockerRead * @param owner (required) * @param identifier (required) * @param slugPerm (required) @@ -7442,11 +9268,11 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call reposUpstreamDebReadCall(String owner, String identifier, String slugPerm, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call reposUpstreamDockerReadCall(String owner, String identifier, String slugPerm, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/repos/{owner}/{identifier}/upstream/deb/{slug_perm}/" + String localVarPath = "/repos/{owner}/{identifier}/upstream/docker/{slug_perm}/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "identifier" + "\\}", apiClient.escapeString(identifier.toString())) .replaceAll("\\{" + "slug_perm" + "\\}", apiClient.escapeString(slugPerm.toString())); @@ -7490,18 +9316,18 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call reposUpstreamDebReadValidateBeforeCall(String owner, String identifier, String slugPerm, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call reposUpstreamDockerReadValidateBeforeCall(String owner, String identifier, String slugPerm, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { ValidatorFactory factory = Validation.buildDefaultValidatorFactory(); ExecutableValidator executableValidator = factory.getValidator().forExecutables(); Object[] parameterValues = { owner, identifier, slugPerm }; - Method method = this.getClass().getMethod("reposUpstreamDebReadWithHttpInfo", String.class, String.class, String.class); + Method method = this.getClass().getMethod("reposUpstreamDockerReadWithHttpInfo", String.class, String.class, String.class); Set> violations = executableValidator.validateParameters(this, method, parameterValues); if (violations.size() == 0) { - com.squareup.okhttp.Call call = reposUpstreamDebReadCall(owner, identifier, slugPerm, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = reposUpstreamDockerReadCall(owner, identifier, slugPerm, progressListener, progressRequestListener); return call; } else { @@ -7518,37 +9344,37 @@ private com.squareup.okhttp.Call reposUpstreamDebReadValidateBeforeCall(String o } /** - * Retrieve a Debian upstream config for this repository. - * Retrieve a Debian upstream config for this repository. + * Retrieve a Docker upstream config for this repository. + * Retrieve a Docker upstream config for this repository. * @param owner (required) * @param identifier (required) * @param slugPerm (required) - * @return DebUpstream + * @return DockerUpstream * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public DebUpstream reposUpstreamDebRead(String owner, String identifier, String slugPerm) throws ApiException { - ApiResponse resp = reposUpstreamDebReadWithHttpInfo(owner, identifier, slugPerm); + public DockerUpstream reposUpstreamDockerRead(String owner, String identifier, String slugPerm) throws ApiException { + ApiResponse resp = reposUpstreamDockerReadWithHttpInfo(owner, identifier, slugPerm); return resp.getData(); } /** - * Retrieve a Debian upstream config for this repository. - * Retrieve a Debian upstream config for this repository. + * Retrieve a Docker upstream config for this repository. + * Retrieve a Docker upstream config for this repository. * @param owner (required) * @param identifier (required) * @param slugPerm (required) - * @return ApiResponse<DebUpstream> + * @return ApiResponse<DockerUpstream> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse reposUpstreamDebReadWithHttpInfo( @NotNull String owner, @NotNull String identifier, @NotNull String slugPerm) throws ApiException { - com.squareup.okhttp.Call call = reposUpstreamDebReadValidateBeforeCall(owner, identifier, slugPerm, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse reposUpstreamDockerReadWithHttpInfo( @NotNull String owner, @NotNull String identifier, @NotNull String slugPerm) throws ApiException { + com.squareup.okhttp.Call call = reposUpstreamDockerReadValidateBeforeCall(owner, identifier, slugPerm, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Retrieve a Debian upstream config for this repository. (asynchronously) - * Retrieve a Debian upstream config for this repository. + * Retrieve a Docker upstream config for this repository. (asynchronously) + * Retrieve a Docker upstream config for this repository. * @param owner (required) * @param identifier (required) * @param slugPerm (required) @@ -7556,7 +9382,7 @@ public ApiResponse reposUpstreamDebReadWithHttpInfo( @NotNull Strin * @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 reposUpstreamDebReadAsync(String owner, String identifier, String slugPerm, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call reposUpstreamDockerReadAsync(String owner, String identifier, String slugPerm, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -7577,13 +9403,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = reposUpstreamDebReadValidateBeforeCall(owner, identifier, slugPerm, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = reposUpstreamDockerReadValidateBeforeCall(owner, identifier, slugPerm, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for reposUpstreamDebUpdate + * Build call for reposUpstreamDockerUpdate * @param owner (required) * @param identifier (required) * @param slugPerm (required) @@ -7593,11 +9419,11 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call reposUpstreamDebUpdateCall(String owner, String identifier, String slugPerm, DebUpstreamRequest data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call reposUpstreamDockerUpdateCall(String owner, String identifier, String slugPerm, DockerUpstreamRequest data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = data; // create path and map variables - String localVarPath = "/repos/{owner}/{identifier}/upstream/deb/{slug_perm}/" + String localVarPath = "/repos/{owner}/{identifier}/upstream/docker/{slug_perm}/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "identifier" + "\\}", apiClient.escapeString(identifier.toString())) .replaceAll("\\{" + "slug_perm" + "\\}", apiClient.escapeString(slugPerm.toString())); @@ -7641,18 +9467,18 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call reposUpstreamDebUpdateValidateBeforeCall(String owner, String identifier, String slugPerm, DebUpstreamRequest data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call reposUpstreamDockerUpdateValidateBeforeCall(String owner, String identifier, String slugPerm, DockerUpstreamRequest data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { ValidatorFactory factory = Validation.buildDefaultValidatorFactory(); ExecutableValidator executableValidator = factory.getValidator().forExecutables(); Object[] parameterValues = { owner, identifier, slugPerm, data }; - Method method = this.getClass().getMethod("reposUpstreamDebUpdateWithHttpInfo", String.class, String.class, String.class, DebUpstreamRequest.class); + Method method = this.getClass().getMethod("reposUpstreamDockerUpdateWithHttpInfo", String.class, String.class, String.class, DockerUpstreamRequest.class); Set> violations = executableValidator.validateParameters(this, method, parameterValues); if (violations.size() == 0) { - com.squareup.okhttp.Call call = reposUpstreamDebUpdateCall(owner, identifier, slugPerm, data, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = reposUpstreamDockerUpdateCall(owner, identifier, slugPerm, data, progressListener, progressRequestListener); return call; } else { @@ -7669,39 +9495,39 @@ private com.squareup.okhttp.Call reposUpstreamDebUpdateValidateBeforeCall(String } /** - * Update a Debian upstream config for this repository. - * Update a Debian upstream config for this repository. + * Update a Docker upstream config for this repository. + * Update a Docker upstream config for this repository. * @param owner (required) * @param identifier (required) * @param slugPerm (required) * @param data (optional) - * @return DebUpstream + * @return DockerUpstream * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public DebUpstream reposUpstreamDebUpdate(String owner, String identifier, String slugPerm, DebUpstreamRequest data) throws ApiException { - ApiResponse resp = reposUpstreamDebUpdateWithHttpInfo(owner, identifier, slugPerm, data); + public DockerUpstream reposUpstreamDockerUpdate(String owner, String identifier, String slugPerm, DockerUpstreamRequest data) throws ApiException { + ApiResponse resp = reposUpstreamDockerUpdateWithHttpInfo(owner, identifier, slugPerm, data); return resp.getData(); } /** - * Update a Debian upstream config for this repository. - * Update a Debian upstream config for this repository. + * Update a Docker upstream config for this repository. + * Update a Docker upstream config for this repository. * @param owner (required) * @param identifier (required) * @param slugPerm (required) * @param data (optional) - * @return ApiResponse<DebUpstream> + * @return ApiResponse<DockerUpstream> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse reposUpstreamDebUpdateWithHttpInfo( @NotNull String owner, @NotNull String identifier, @NotNull String slugPerm, DebUpstreamRequest data) throws ApiException { - com.squareup.okhttp.Call call = reposUpstreamDebUpdateValidateBeforeCall(owner, identifier, slugPerm, data, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse reposUpstreamDockerUpdateWithHttpInfo( @NotNull String owner, @NotNull String identifier, @NotNull String slugPerm, DockerUpstreamRequest data) throws ApiException { + com.squareup.okhttp.Call call = reposUpstreamDockerUpdateValidateBeforeCall(owner, identifier, slugPerm, data, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Update a Debian upstream config for this repository. (asynchronously) - * Update a Debian upstream config for this repository. + * Update a Docker upstream config for this repository. (asynchronously) + * Update a Docker upstream config for this repository. * @param owner (required) * @param identifier (required) * @param slugPerm (required) @@ -7710,7 +9536,7 @@ public ApiResponse reposUpstreamDebUpdateWithHttpInfo( @NotNull Str * @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 reposUpstreamDebUpdateAsync(String owner, String identifier, String slugPerm, DebUpstreamRequest data, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call reposUpstreamDockerUpdateAsync(String owner, String identifier, String slugPerm, DockerUpstreamRequest data, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -7731,13 +9557,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = reposUpstreamDebUpdateValidateBeforeCall(owner, identifier, slugPerm, data, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = reposUpstreamDockerUpdateValidateBeforeCall(owner, identifier, slugPerm, data, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for reposUpstreamDockerCreate + * Build call for reposUpstreamGoCreate * @param owner (required) * @param identifier (required) * @param data (optional) @@ -7746,11 +9572,11 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call reposUpstreamDockerCreateCall(String owner, String identifier, DockerUpstreamRequest data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call reposUpstreamGoCreateCall(String owner, String identifier, GoUpstreamRequest data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = data; // create path and map variables - String localVarPath = "/repos/{owner}/{identifier}/upstream/docker/" + String localVarPath = "/repos/{owner}/{identifier}/upstream/go/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "identifier" + "\\}", apiClient.escapeString(identifier.toString())); @@ -7793,18 +9619,18 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call reposUpstreamDockerCreateValidateBeforeCall(String owner, String identifier, DockerUpstreamRequest data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call reposUpstreamGoCreateValidateBeforeCall(String owner, String identifier, GoUpstreamRequest data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { ValidatorFactory factory = Validation.buildDefaultValidatorFactory(); ExecutableValidator executableValidator = factory.getValidator().forExecutables(); Object[] parameterValues = { owner, identifier, data }; - Method method = this.getClass().getMethod("reposUpstreamDockerCreateWithHttpInfo", String.class, String.class, DockerUpstreamRequest.class); + Method method = this.getClass().getMethod("reposUpstreamGoCreateWithHttpInfo", String.class, String.class, GoUpstreamRequest.class); Set> violations = executableValidator.validateParameters(this, method, parameterValues); if (violations.size() == 0) { - com.squareup.okhttp.Call call = reposUpstreamDockerCreateCall(owner, identifier, data, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = reposUpstreamGoCreateCall(owner, identifier, data, progressListener, progressRequestListener); return call; } else { @@ -7821,37 +9647,37 @@ private com.squareup.okhttp.Call reposUpstreamDockerCreateValidateBeforeCall(Str } /** - * Create a Docker upstream config for this repository. - * Create a Docker upstream config for this repository. + * Create a Go upstream config for this repository. + * Create a Go upstream config for this repository. * @param owner (required) * @param identifier (required) * @param data (optional) - * @return DockerUpstream + * @return GoUpstream * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public DockerUpstream reposUpstreamDockerCreate(String owner, String identifier, DockerUpstreamRequest data) throws ApiException { - ApiResponse resp = reposUpstreamDockerCreateWithHttpInfo(owner, identifier, data); + public GoUpstream reposUpstreamGoCreate(String owner, String identifier, GoUpstreamRequest data) throws ApiException { + ApiResponse resp = reposUpstreamGoCreateWithHttpInfo(owner, identifier, data); return resp.getData(); } /** - * Create a Docker upstream config for this repository. - * Create a Docker upstream config for this repository. + * Create a Go upstream config for this repository. + * Create a Go upstream config for this repository. * @param owner (required) * @param identifier (required) * @param data (optional) - * @return ApiResponse<DockerUpstream> + * @return ApiResponse<GoUpstream> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse reposUpstreamDockerCreateWithHttpInfo( @NotNull String owner, @NotNull String identifier, DockerUpstreamRequest data) throws ApiException { - com.squareup.okhttp.Call call = reposUpstreamDockerCreateValidateBeforeCall(owner, identifier, data, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse reposUpstreamGoCreateWithHttpInfo( @NotNull String owner, @NotNull String identifier, GoUpstreamRequest data) throws ApiException { + com.squareup.okhttp.Call call = reposUpstreamGoCreateValidateBeforeCall(owner, identifier, data, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Create a Docker upstream config for this repository. (asynchronously) - * Create a Docker upstream config for this repository. + * Create a Go upstream config for this repository. (asynchronously) + * Create a Go upstream config for this repository. * @param owner (required) * @param identifier (required) * @param data (optional) @@ -7859,7 +9685,7 @@ public ApiResponse reposUpstreamDockerCreateWithHttpInfo( @NotNu * @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 reposUpstreamDockerCreateAsync(String owner, String identifier, DockerUpstreamRequest data, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call reposUpstreamGoCreateAsync(String owner, String identifier, GoUpstreamRequest data, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -7880,13 +9706,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = reposUpstreamDockerCreateValidateBeforeCall(owner, identifier, data, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = reposUpstreamGoCreateValidateBeforeCall(owner, identifier, data, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for reposUpstreamDockerDelete + * Build call for reposUpstreamGoDelete * @param owner (required) * @param identifier (required) * @param slugPerm (required) @@ -7895,11 +9721,11 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call reposUpstreamDockerDeleteCall(String owner, String identifier, String slugPerm, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call reposUpstreamGoDeleteCall(String owner, String identifier, String slugPerm, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/repos/{owner}/{identifier}/upstream/docker/{slug_perm}/" + String localVarPath = "/repos/{owner}/{identifier}/upstream/go/{slug_perm}/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "identifier" + "\\}", apiClient.escapeString(identifier.toString())) .replaceAll("\\{" + "slug_perm" + "\\}", apiClient.escapeString(slugPerm.toString())); @@ -7943,18 +9769,18 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call reposUpstreamDockerDeleteValidateBeforeCall(String owner, String identifier, String slugPerm, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call reposUpstreamGoDeleteValidateBeforeCall(String owner, String identifier, String slugPerm, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { ValidatorFactory factory = Validation.buildDefaultValidatorFactory(); ExecutableValidator executableValidator = factory.getValidator().forExecutables(); Object[] parameterValues = { owner, identifier, slugPerm }; - Method method = this.getClass().getMethod("reposUpstreamDockerDeleteWithHttpInfo", String.class, String.class, String.class); + Method method = this.getClass().getMethod("reposUpstreamGoDeleteWithHttpInfo", String.class, String.class, String.class); Set> violations = executableValidator.validateParameters(this, method, parameterValues); if (violations.size() == 0) { - com.squareup.okhttp.Call call = reposUpstreamDockerDeleteCall(owner, identifier, slugPerm, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = reposUpstreamGoDeleteCall(owner, identifier, slugPerm, progressListener, progressRequestListener); return call; } else { @@ -7971,34 +9797,34 @@ private com.squareup.okhttp.Call reposUpstreamDockerDeleteValidateBeforeCall(Str } /** - * Delete a Docker upstream config for this repository. - * Delete a Docker upstream config for this repository. + * Delete a Go upstream config for this repository. + * Delete a Go upstream config for this repository. * @param owner (required) * @param identifier (required) * @param slugPerm (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public void reposUpstreamDockerDelete(String owner, String identifier, String slugPerm) throws ApiException { - reposUpstreamDockerDeleteWithHttpInfo(owner, identifier, slugPerm); + public void reposUpstreamGoDelete(String owner, String identifier, String slugPerm) throws ApiException { + reposUpstreamGoDeleteWithHttpInfo(owner, identifier, slugPerm); } /** - * Delete a Docker upstream config for this repository. - * Delete a Docker upstream config for this repository. + * Delete a Go upstream config for this repository. + * Delete a Go upstream config for this repository. * @param owner (required) * @param identifier (required) * @param slugPerm (required) * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse reposUpstreamDockerDeleteWithHttpInfo( @NotNull String owner, @NotNull String identifier, @NotNull String slugPerm) throws ApiException { - com.squareup.okhttp.Call call = reposUpstreamDockerDeleteValidateBeforeCall(owner, identifier, slugPerm, null, null); + public ApiResponse reposUpstreamGoDeleteWithHttpInfo( @NotNull String owner, @NotNull String identifier, @NotNull String slugPerm) throws ApiException { + com.squareup.okhttp.Call call = reposUpstreamGoDeleteValidateBeforeCall(owner, identifier, slugPerm, null, null); return apiClient.execute(call); } /** - * Delete a Docker upstream config for this repository. (asynchronously) - * Delete a Docker upstream config for this repository. + * Delete a Go upstream config for this repository. (asynchronously) + * Delete a Go upstream config for this repository. * @param owner (required) * @param identifier (required) * @param slugPerm (required) @@ -8006,7 +9832,7 @@ public ApiResponse reposUpstreamDockerDeleteWithHttpInfo( @NotNull String * @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 reposUpstreamDockerDeleteAsync(String owner, String identifier, String slugPerm, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call reposUpstreamGoDeleteAsync(String owner, String identifier, String slugPerm, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -8027,12 +9853,12 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = reposUpstreamDockerDeleteValidateBeforeCall(owner, identifier, slugPerm, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = reposUpstreamGoDeleteValidateBeforeCall(owner, identifier, slugPerm, progressListener, progressRequestListener); apiClient.executeAsync(call, callback); return call; } /** - * Build call for reposUpstreamDockerList + * Build call for reposUpstreamGoList * @param owner (required) * @param identifier (required) * @param page A page number within the paginated result set. (optional) @@ -8042,11 +9868,11 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call reposUpstreamDockerListCall(String owner, String identifier, java.math.BigInteger page, java.math.BigInteger pageSize, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call reposUpstreamGoListCall(String owner, String identifier, java.math.BigInteger page, java.math.BigInteger pageSize, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/repos/{owner}/{identifier}/upstream/docker/" + String localVarPath = "/repos/{owner}/{identifier}/upstream/go/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "identifier" + "\\}", apiClient.escapeString(identifier.toString())); @@ -8093,18 +9919,18 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call reposUpstreamDockerListValidateBeforeCall(String owner, String identifier, java.math.BigInteger page, java.math.BigInteger pageSize, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call reposUpstreamGoListValidateBeforeCall(String owner, String identifier, java.math.BigInteger page, java.math.BigInteger pageSize, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { ValidatorFactory factory = Validation.buildDefaultValidatorFactory(); ExecutableValidator executableValidator = factory.getValidator().forExecutables(); Object[] parameterValues = { owner, identifier, page, pageSize }; - Method method = this.getClass().getMethod("reposUpstreamDockerListWithHttpInfo", String.class, String.class, java.math.BigInteger.class, java.math.BigInteger.class); + Method method = this.getClass().getMethod("reposUpstreamGoListWithHttpInfo", String.class, String.class, java.math.BigInteger.class, java.math.BigInteger.class); Set> violations = executableValidator.validateParameters(this, method, parameterValues); if (violations.size() == 0) { - com.squareup.okhttp.Call call = reposUpstreamDockerListCall(owner, identifier, page, pageSize, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = reposUpstreamGoListCall(owner, identifier, page, pageSize, progressListener, progressRequestListener); return call; } else { @@ -8121,39 +9947,39 @@ private com.squareup.okhttp.Call reposUpstreamDockerListValidateBeforeCall(Strin } /** - * List Docker upstream configs for this repository. - * List Docker upstream configs for this repository. + * List Go upstream configs for this repository. + * List Go upstream configs for this repository. * @param owner (required) * @param identifier (required) * @param page A page number within the paginated result set. (optional) * @param pageSize Number of results to return per page. (optional) - * @return List<DockerUpstream> + * @return List<GoUpstream> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public List reposUpstreamDockerList(String owner, String identifier, java.math.BigInteger page, java.math.BigInteger pageSize) throws ApiException { - ApiResponse> resp = reposUpstreamDockerListWithHttpInfo(owner, identifier, page, pageSize); + public List reposUpstreamGoList(String owner, String identifier, java.math.BigInteger page, java.math.BigInteger pageSize) throws ApiException { + ApiResponse> resp = reposUpstreamGoListWithHttpInfo(owner, identifier, page, pageSize); return resp.getData(); } /** - * List Docker upstream configs for this repository. - * List Docker upstream configs for this repository. + * List Go upstream configs for this repository. + * List Go upstream configs for this repository. * @param owner (required) * @param identifier (required) * @param page A page number within the paginated result set. (optional) * @param pageSize Number of results to return per page. (optional) - * @return ApiResponse<List<DockerUpstream>> + * @return ApiResponse<List<GoUpstream>> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse> reposUpstreamDockerListWithHttpInfo( @NotNull String owner, @NotNull String identifier, java.math.BigInteger page, java.math.BigInteger pageSize) throws ApiException { - com.squareup.okhttp.Call call = reposUpstreamDockerListValidateBeforeCall(owner, identifier, page, pageSize, null, null); - Type localVarReturnType = new TypeToken>(){}.getType(); + public ApiResponse> reposUpstreamGoListWithHttpInfo( @NotNull String owner, @NotNull String identifier, java.math.BigInteger page, java.math.BigInteger pageSize) throws ApiException { + com.squareup.okhttp.Call call = reposUpstreamGoListValidateBeforeCall(owner, identifier, page, pageSize, null, null); + Type localVarReturnType = new TypeToken>(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * List Docker upstream configs for this repository. (asynchronously) - * List Docker upstream configs for this repository. + * List Go upstream configs for this repository. (asynchronously) + * List Go upstream configs for this repository. * @param owner (required) * @param identifier (required) * @param page A page number within the paginated result set. (optional) @@ -8162,7 +9988,7 @@ public ApiResponse> reposUpstreamDockerListWithHttpInfo( @N * @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 reposUpstreamDockerListAsync(String owner, String identifier, java.math.BigInteger page, java.math.BigInteger pageSize, final ApiCallback> callback) throws ApiException { + public com.squareup.okhttp.Call reposUpstreamGoListAsync(String owner, String identifier, java.math.BigInteger page, java.math.BigInteger pageSize, final ApiCallback> callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -8183,13 +10009,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = reposUpstreamDockerListValidateBeforeCall(owner, identifier, page, pageSize, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken>(){}.getType(); + com.squareup.okhttp.Call call = reposUpstreamGoListValidateBeforeCall(owner, identifier, page, pageSize, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken>(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for reposUpstreamDockerPartialUpdate + * Build call for reposUpstreamGoPartialUpdate * @param owner (required) * @param identifier (required) * @param slugPerm (required) @@ -8199,11 +10025,11 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call reposUpstreamDockerPartialUpdateCall(String owner, String identifier, String slugPerm, DockerUpstreamRequestPatch data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call reposUpstreamGoPartialUpdateCall(String owner, String identifier, String slugPerm, GoUpstreamRequestPatch data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = data; // create path and map variables - String localVarPath = "/repos/{owner}/{identifier}/upstream/docker/{slug_perm}/" + String localVarPath = "/repos/{owner}/{identifier}/upstream/go/{slug_perm}/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "identifier" + "\\}", apiClient.escapeString(identifier.toString())) .replaceAll("\\{" + "slug_perm" + "\\}", apiClient.escapeString(slugPerm.toString())); @@ -8247,18 +10073,18 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call reposUpstreamDockerPartialUpdateValidateBeforeCall(String owner, String identifier, String slugPerm, DockerUpstreamRequestPatch data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call reposUpstreamGoPartialUpdateValidateBeforeCall(String owner, String identifier, String slugPerm, GoUpstreamRequestPatch data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { ValidatorFactory factory = Validation.buildDefaultValidatorFactory(); ExecutableValidator executableValidator = factory.getValidator().forExecutables(); Object[] parameterValues = { owner, identifier, slugPerm, data }; - Method method = this.getClass().getMethod("reposUpstreamDockerPartialUpdateWithHttpInfo", String.class, String.class, String.class, DockerUpstreamRequestPatch.class); + Method method = this.getClass().getMethod("reposUpstreamGoPartialUpdateWithHttpInfo", String.class, String.class, String.class, GoUpstreamRequestPatch.class); Set> violations = executableValidator.validateParameters(this, method, parameterValues); if (violations.size() == 0) { - com.squareup.okhttp.Call call = reposUpstreamDockerPartialUpdateCall(owner, identifier, slugPerm, data, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = reposUpstreamGoPartialUpdateCall(owner, identifier, slugPerm, data, progressListener, progressRequestListener); return call; } else { @@ -8275,39 +10101,39 @@ private com.squareup.okhttp.Call reposUpstreamDockerPartialUpdateValidateBeforeC } /** - * Partially update a Docker upstream config for this repository. - * Partially update a Docker upstream config for this repository. + * Partially update a Go upstream config for this repository. + * Partially update a Go upstream config for this repository. * @param owner (required) * @param identifier (required) * @param slugPerm (required) * @param data (optional) - * @return DockerUpstream + * @return GoUpstream * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public DockerUpstream reposUpstreamDockerPartialUpdate(String owner, String identifier, String slugPerm, DockerUpstreamRequestPatch data) throws ApiException { - ApiResponse resp = reposUpstreamDockerPartialUpdateWithHttpInfo(owner, identifier, slugPerm, data); + public GoUpstream reposUpstreamGoPartialUpdate(String owner, String identifier, String slugPerm, GoUpstreamRequestPatch data) throws ApiException { + ApiResponse resp = reposUpstreamGoPartialUpdateWithHttpInfo(owner, identifier, slugPerm, data); return resp.getData(); } /** - * Partially update a Docker upstream config for this repository. - * Partially update a Docker upstream config for this repository. + * Partially update a Go upstream config for this repository. + * Partially update a Go upstream config for this repository. * @param owner (required) * @param identifier (required) * @param slugPerm (required) * @param data (optional) - * @return ApiResponse<DockerUpstream> + * @return ApiResponse<GoUpstream> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse reposUpstreamDockerPartialUpdateWithHttpInfo( @NotNull String owner, @NotNull String identifier, @NotNull String slugPerm, DockerUpstreamRequestPatch data) throws ApiException { - com.squareup.okhttp.Call call = reposUpstreamDockerPartialUpdateValidateBeforeCall(owner, identifier, slugPerm, data, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse reposUpstreamGoPartialUpdateWithHttpInfo( @NotNull String owner, @NotNull String identifier, @NotNull String slugPerm, GoUpstreamRequestPatch data) throws ApiException { + com.squareup.okhttp.Call call = reposUpstreamGoPartialUpdateValidateBeforeCall(owner, identifier, slugPerm, data, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Partially update a Docker upstream config for this repository. (asynchronously) - * Partially update a Docker upstream config for this repository. + * Partially update a Go upstream config for this repository. (asynchronously) + * Partially update a Go upstream config for this repository. * @param owner (required) * @param identifier (required) * @param slugPerm (required) @@ -8316,7 +10142,7 @@ public ApiResponse reposUpstreamDockerPartialUpdateWithHttpInfo( * @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 reposUpstreamDockerPartialUpdateAsync(String owner, String identifier, String slugPerm, DockerUpstreamRequestPatch data, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call reposUpstreamGoPartialUpdateAsync(String owner, String identifier, String slugPerm, GoUpstreamRequestPatch data, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -8337,13 +10163,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = reposUpstreamDockerPartialUpdateValidateBeforeCall(owner, identifier, slugPerm, data, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = reposUpstreamGoPartialUpdateValidateBeforeCall(owner, identifier, slugPerm, data, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for reposUpstreamDockerRead + * Build call for reposUpstreamGoRead * @param owner (required) * @param identifier (required) * @param slugPerm (required) @@ -8352,11 +10178,11 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call reposUpstreamDockerReadCall(String owner, String identifier, String slugPerm, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call reposUpstreamGoReadCall(String owner, String identifier, String slugPerm, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/repos/{owner}/{identifier}/upstream/docker/{slug_perm}/" + String localVarPath = "/repos/{owner}/{identifier}/upstream/go/{slug_perm}/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "identifier" + "\\}", apiClient.escapeString(identifier.toString())) .replaceAll("\\{" + "slug_perm" + "\\}", apiClient.escapeString(slugPerm.toString())); @@ -8400,18 +10226,18 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call reposUpstreamDockerReadValidateBeforeCall(String owner, String identifier, String slugPerm, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call reposUpstreamGoReadValidateBeforeCall(String owner, String identifier, String slugPerm, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { ValidatorFactory factory = Validation.buildDefaultValidatorFactory(); ExecutableValidator executableValidator = factory.getValidator().forExecutables(); Object[] parameterValues = { owner, identifier, slugPerm }; - Method method = this.getClass().getMethod("reposUpstreamDockerReadWithHttpInfo", String.class, String.class, String.class); + Method method = this.getClass().getMethod("reposUpstreamGoReadWithHttpInfo", String.class, String.class, String.class); Set> violations = executableValidator.validateParameters(this, method, parameterValues); if (violations.size() == 0) { - com.squareup.okhttp.Call call = reposUpstreamDockerReadCall(owner, identifier, slugPerm, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = reposUpstreamGoReadCall(owner, identifier, slugPerm, progressListener, progressRequestListener); return call; } else { @@ -8428,37 +10254,37 @@ private com.squareup.okhttp.Call reposUpstreamDockerReadValidateBeforeCall(Strin } /** - * Retrieve a Docker upstream config for this repository. - * Retrieve a Docker upstream config for this repository. + * Retrieve a Go upstream config for this repository. + * Retrieve a Go upstream config for this repository. * @param owner (required) * @param identifier (required) * @param slugPerm (required) - * @return DockerUpstream + * @return GoUpstream * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public DockerUpstream reposUpstreamDockerRead(String owner, String identifier, String slugPerm) throws ApiException { - ApiResponse resp = reposUpstreamDockerReadWithHttpInfo(owner, identifier, slugPerm); + public GoUpstream reposUpstreamGoRead(String owner, String identifier, String slugPerm) throws ApiException { + ApiResponse resp = reposUpstreamGoReadWithHttpInfo(owner, identifier, slugPerm); return resp.getData(); } /** - * Retrieve a Docker upstream config for this repository. - * Retrieve a Docker upstream config for this repository. + * Retrieve a Go upstream config for this repository. + * Retrieve a Go upstream config for this repository. * @param owner (required) * @param identifier (required) * @param slugPerm (required) - * @return ApiResponse<DockerUpstream> + * @return ApiResponse<GoUpstream> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse reposUpstreamDockerReadWithHttpInfo( @NotNull String owner, @NotNull String identifier, @NotNull String slugPerm) throws ApiException { - com.squareup.okhttp.Call call = reposUpstreamDockerReadValidateBeforeCall(owner, identifier, slugPerm, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse reposUpstreamGoReadWithHttpInfo( @NotNull String owner, @NotNull String identifier, @NotNull String slugPerm) throws ApiException { + com.squareup.okhttp.Call call = reposUpstreamGoReadValidateBeforeCall(owner, identifier, slugPerm, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Retrieve a Docker upstream config for this repository. (asynchronously) - * Retrieve a Docker upstream config for this repository. + * Retrieve a Go upstream config for this repository. (asynchronously) + * Retrieve a Go upstream config for this repository. * @param owner (required) * @param identifier (required) * @param slugPerm (required) @@ -8466,7 +10292,7 @@ public ApiResponse reposUpstreamDockerReadWithHttpInfo( @NotNull * @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 reposUpstreamDockerReadAsync(String owner, String identifier, String slugPerm, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call reposUpstreamGoReadAsync(String owner, String identifier, String slugPerm, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -8487,13 +10313,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = reposUpstreamDockerReadValidateBeforeCall(owner, identifier, slugPerm, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = reposUpstreamGoReadValidateBeforeCall(owner, identifier, slugPerm, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for reposUpstreamDockerUpdate + * Build call for reposUpstreamGoUpdate * @param owner (required) * @param identifier (required) * @param slugPerm (required) @@ -8503,11 +10329,11 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call reposUpstreamDockerUpdateCall(String owner, String identifier, String slugPerm, DockerUpstreamRequest data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call reposUpstreamGoUpdateCall(String owner, String identifier, String slugPerm, GoUpstreamRequest data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = data; // create path and map variables - String localVarPath = "/repos/{owner}/{identifier}/upstream/docker/{slug_perm}/" + String localVarPath = "/repos/{owner}/{identifier}/upstream/go/{slug_perm}/" .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString())) .replaceAll("\\{" + "identifier" + "\\}", apiClient.escapeString(identifier.toString())) .replaceAll("\\{" + "slug_perm" + "\\}", apiClient.escapeString(slugPerm.toString())); @@ -8551,18 +10377,18 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call reposUpstreamDockerUpdateValidateBeforeCall(String owner, String identifier, String slugPerm, DockerUpstreamRequest data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call reposUpstreamGoUpdateValidateBeforeCall(String owner, String identifier, String slugPerm, GoUpstreamRequest data, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { try { ValidatorFactory factory = Validation.buildDefaultValidatorFactory(); ExecutableValidator executableValidator = factory.getValidator().forExecutables(); Object[] parameterValues = { owner, identifier, slugPerm, data }; - Method method = this.getClass().getMethod("reposUpstreamDockerUpdateWithHttpInfo", String.class, String.class, String.class, DockerUpstreamRequest.class); + Method method = this.getClass().getMethod("reposUpstreamGoUpdateWithHttpInfo", String.class, String.class, String.class, GoUpstreamRequest.class); Set> violations = executableValidator.validateParameters(this, method, parameterValues); if (violations.size() == 0) { - com.squareup.okhttp.Call call = reposUpstreamDockerUpdateCall(owner, identifier, slugPerm, data, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = reposUpstreamGoUpdateCall(owner, identifier, slugPerm, data, progressListener, progressRequestListener); return call; } else { @@ -8579,39 +10405,39 @@ private com.squareup.okhttp.Call reposUpstreamDockerUpdateValidateBeforeCall(Str } /** - * Update a Docker upstream config for this repository. - * Update a Docker upstream config for this repository. + * Update a Go upstream config for this repository. + * Update a Go upstream config for this repository. * @param owner (required) * @param identifier (required) * @param slugPerm (required) * @param data (optional) - * @return DockerUpstream + * @return GoUpstream * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public DockerUpstream reposUpstreamDockerUpdate(String owner, String identifier, String slugPerm, DockerUpstreamRequest data) throws ApiException { - ApiResponse resp = reposUpstreamDockerUpdateWithHttpInfo(owner, identifier, slugPerm, data); + public GoUpstream reposUpstreamGoUpdate(String owner, String identifier, String slugPerm, GoUpstreamRequest data) throws ApiException { + ApiResponse resp = reposUpstreamGoUpdateWithHttpInfo(owner, identifier, slugPerm, data); return resp.getData(); } /** - * Update a Docker upstream config for this repository. - * Update a Docker upstream config for this repository. + * Update a Go upstream config for this repository. + * Update a Go upstream config for this repository. * @param owner (required) * @param identifier (required) * @param slugPerm (required) * @param data (optional) - * @return ApiResponse<DockerUpstream> + * @return ApiResponse<GoUpstream> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse reposUpstreamDockerUpdateWithHttpInfo( @NotNull String owner, @NotNull String identifier, @NotNull String slugPerm, DockerUpstreamRequest data) throws ApiException { - com.squareup.okhttp.Call call = reposUpstreamDockerUpdateValidateBeforeCall(owner, identifier, slugPerm, data, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse reposUpstreamGoUpdateWithHttpInfo( @NotNull String owner, @NotNull String identifier, @NotNull String slugPerm, GoUpstreamRequest data) throws ApiException { + com.squareup.okhttp.Call call = reposUpstreamGoUpdateValidateBeforeCall(owner, identifier, slugPerm, data, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** - * Update a Docker upstream config for this repository. (asynchronously) - * Update a Docker upstream config for this repository. + * Update a Go upstream config for this repository. (asynchronously) + * Update a Go upstream config for this repository. * @param owner (required) * @param identifier (required) * @param slugPerm (required) @@ -8620,7 +10446,7 @@ public ApiResponse reposUpstreamDockerUpdateWithHttpInfo( @NotNu * @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 reposUpstreamDockerUpdateAsync(String owner, String identifier, String slugPerm, DockerUpstreamRequest data, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call reposUpstreamGoUpdateAsync(String owner, String identifier, String slugPerm, GoUpstreamRequest data, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -8641,8 +10467,8 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = reposUpstreamDockerUpdateValidateBeforeCall(owner, identifier, slugPerm, data, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = reposUpstreamGoUpdateValidateBeforeCall(owner, identifier, slugPerm, data, progressListener, progressRequestListener); + 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/UserApi.java b/bindings/java/src/src/main/java/io/cloudsmith/api/apis/UserApi.java index 02bcd616..84476047 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 @@ -37,7 +37,7 @@ import java.lang.reflect.Type; import io.cloudsmith.api.models.ErrorDetail; -import io.cloudsmith.api.models.InlineResponse200; +import io.cloudsmith.api.models.InlineResponse2001; import io.cloudsmith.api.models.UserAuthToken; import io.cloudsmith.api.models.UserAuthTokenRequest; import io.cloudsmith.api.models.UserAuthenticationToken; @@ -572,11 +572,11 @@ private com.squareup.okhttp.Call userTokensListValidateBeforeCall(java.math.BigI * Retrieve the API key assigned to the user that is currently authenticated. * @param page A page number within the paginated result set. (optional) * @param pageSize Number of results to return per page. (optional) - * @return InlineResponse200 + * @return InlineResponse2001 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public InlineResponse200 userTokensList(java.math.BigInteger page, java.math.BigInteger pageSize) throws ApiException { - ApiResponse resp = userTokensListWithHttpInfo(page, pageSize); + public InlineResponse2001 userTokensList(java.math.BigInteger page, java.math.BigInteger pageSize) throws ApiException { + ApiResponse resp = userTokensListWithHttpInfo(page, pageSize); return resp.getData(); } @@ -585,12 +585,12 @@ public InlineResponse200 userTokensList(java.math.BigInteger page, java.math.Big * Retrieve the API key assigned to the user that is currently authenticated. * @param page A page number within the paginated result set. (optional) * @param pageSize Number of results to return per page. (optional) - * @return ApiResponse<InlineResponse200> + * @return ApiResponse<InlineResponse2001> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse userTokensListWithHttpInfo( java.math.BigInteger page, java.math.BigInteger pageSize) throws ApiException { + public ApiResponse userTokensListWithHttpInfo( java.math.BigInteger page, java.math.BigInteger pageSize) throws ApiException { com.squareup.okhttp.Call call = userTokensListValidateBeforeCall(page, pageSize, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } @@ -603,7 +603,7 @@ public ApiResponse userTokensListWithHttpInfo( java.math.BigI * @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 userTokensListAsync(java.math.BigInteger page, java.math.BigInteger pageSize, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call userTokensListAsync(java.math.BigInteger page, java.math.BigInteger pageSize, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -625,7 +625,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don } com.squareup.okhttp.Call call = userTokensListValidateBeforeCall(page, pageSize, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/CargoUpstream.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/CargoUpstream.java new file mode 100644 index 00000000..938cee01 --- /dev/null +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/CargoUpstream.java @@ -0,0 +1,595 @@ +/* + * Cloudsmith API (v1) + * The API to the Cloudsmith Service + * + * OpenAPI spec version: v1 + * Contact: support@cloudsmith.io + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +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; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.time.OffsetDateTime; +import java.io.Serializable; +import javax.validation.constraints.*; +import javax.validation.Valid; + +/** + * CargoUpstream + */ + +public class CargoUpstream implements Serializable { + private static final long serialVersionUID = 1L; + + /** + * The authentication mode to use when accessing this upstream. + */ + @JsonAdapter(AuthModeEnum.Adapter.class) + public enum AuthModeEnum { + NONE("None"), + + USERNAME_AND_PASSWORD("Username and Password"); + + private String value; + + AuthModeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static AuthModeEnum fromValue(String text) { + for (AuthModeEnum b : AuthModeEnum.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final AuthModeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public AuthModeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return AuthModeEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("auth_mode") + private AuthModeEnum authMode = AuthModeEnum.NONE; + + @SerializedName("auth_secret") + private String authSecret = null; + + @SerializedName("auth_username") + private String authUsername = null; + + @SerializedName("created_at") + private OffsetDateTime createdAt = null; + + /** + * Gets or Sets disableReason + */ + @JsonAdapter(DisableReasonEnum.Adapter.class) + public enum DisableReasonEnum { + N_A("N/A"), + + UPSTREAM_POINTS_TO_ITS_OWN_REPOSITORY("Upstream points to its own repository"), + + MISSING_UPSTREAM_SOURCE("Missing upstream source"), + + UPSTREAM_WAS_DISABLED_BY_REQUEST_OF_USER("Upstream was disabled by request of user"); + + private String value; + + DisableReasonEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static DisableReasonEnum fromValue(String text) { + for (DisableReasonEnum b : DisableReasonEnum.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final DisableReasonEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public DisableReasonEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return DisableReasonEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("disable_reason") + private DisableReasonEnum disableReason = DisableReasonEnum.N_A; + + @SerializedName("extra_header_1") + private String extraHeader1 = null; + + @SerializedName("extra_header_2") + private String extraHeader2 = null; + + @SerializedName("extra_value_1") + private String extraValue1 = null; + + @SerializedName("extra_value_2") + private String extraValue2 = null; + + @SerializedName("is_active") + private Boolean isActive = null; + + /** + * The mode that this upstream should operate in. Upstream sources can be used to proxy resolved packages, as well as operate in a proxy/cache or cache only mode. + */ + @JsonAdapter(ModeEnum.Adapter.class) + public enum ModeEnum { + PROXY_ONLY("Proxy Only"); + + private String value; + + ModeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static ModeEnum fromValue(String text) { + for (ModeEnum b : ModeEnum.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final ModeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public ModeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return ModeEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("mode") + private ModeEnum mode = ModeEnum.PROXY_ONLY; + + @SerializedName("name") + private String name = null; + + @SerializedName("pending_validation") + private Boolean pendingValidation = null; + + @SerializedName("priority") + private java.math.BigInteger priority = null; + + @SerializedName("slug_perm") + private String slugPerm = null; + + @SerializedName("updated_at") + private OffsetDateTime updatedAt = null; + + @SerializedName("upstream_url") + private String upstreamUrl = null; + + @SerializedName("verify_ssl") + private Boolean verifySsl = null; + + public CargoUpstream authMode(AuthModeEnum authMode) { + this.authMode = authMode; + return this; + } + + /** + * The authentication mode to use when accessing this upstream. + * @return authMode + **/ + @ApiModelProperty(value = "The authentication mode to use when accessing this upstream. ") + public AuthModeEnum getAuthMode() { + return authMode; + } + + public void setAuthMode(AuthModeEnum authMode) { + this.authMode = authMode; + } + + public CargoUpstream authSecret(String authSecret) { + this.authSecret = authSecret; + return this; + } + + /** + * Secret to provide with requests to upstream. + * @return authSecret + **/ + @Size(max=4096) @ApiModelProperty(value = "Secret to provide with requests to upstream.") + public String getAuthSecret() { + return authSecret; + } + + public void setAuthSecret(String authSecret) { + this.authSecret = authSecret; + } + + public CargoUpstream authUsername(String authUsername) { + this.authUsername = authUsername; + return this; + } + + /** + * Username to provide with requests to upstream. + * @return authUsername + **/ + @Size(max=64) @ApiModelProperty(value = "Username to provide with requests to upstream.") + public String getAuthUsername() { + return authUsername; + } + + public void setAuthUsername(String authUsername) { + this.authUsername = authUsername; + } + + /** + * The datetime the upstream source was created. + * @return createdAt + **/ + @Valid + @ApiModelProperty(value = "The datetime the upstream source was created.") + public OffsetDateTime getCreatedAt() { + return createdAt; + } + + /** + * Get disableReason + * @return disableReason + **/ + @ApiModelProperty(value = "") + public DisableReasonEnum getDisableReason() { + return disableReason; + } + + public CargoUpstream extraHeader1(String extraHeader1) { + this.extraHeader1 = extraHeader1; + return this; + } + + /** + * The key for extra header #1 to send to upstream. + * @return extraHeader1 + **/ + @Pattern(regexp="^[-\\w]+$") @Size(max=64) @ApiModelProperty(value = "The key for extra header #1 to send to upstream.") + public String getExtraHeader1() { + return extraHeader1; + } + + public void setExtraHeader1(String extraHeader1) { + this.extraHeader1 = extraHeader1; + } + + public CargoUpstream extraHeader2(String extraHeader2) { + this.extraHeader2 = extraHeader2; + return this; + } + + /** + * The key for extra header #2 to send to upstream. + * @return extraHeader2 + **/ + @Pattern(regexp="^[-\\w]+$") @Size(max=64) @ApiModelProperty(value = "The key for extra header #2 to send to upstream.") + public String getExtraHeader2() { + return extraHeader2; + } + + public void setExtraHeader2(String extraHeader2) { + this.extraHeader2 = extraHeader2; + } + + public CargoUpstream extraValue1(String extraValue1) { + this.extraValue1 = extraValue1; + return this; + } + + /** + * The value for extra header #1 to send to upstream. This is stored as plaintext, and is NOT encrypted. + * @return extraValue1 + **/ + @Pattern(regexp="^[^\\n\\r]+$") @Size(max=128) @ApiModelProperty(value = "The value for extra header #1 to send to upstream. This is stored as plaintext, and is NOT encrypted.") + public String getExtraValue1() { + return extraValue1; + } + + public void setExtraValue1(String extraValue1) { + this.extraValue1 = extraValue1; + } + + public CargoUpstream extraValue2(String extraValue2) { + this.extraValue2 = extraValue2; + return this; + } + + /** + * The value for extra header #2 to send to upstream. This is stored as plaintext, and is NOT encrypted. + * @return extraValue2 + **/ + @Pattern(regexp="^[^\\n\\r]+$") @Size(max=128) @ApiModelProperty(value = "The value for extra header #2 to send to upstream. This is stored as plaintext, and is NOT encrypted.") + public String getExtraValue2() { + return extraValue2; + } + + public void setExtraValue2(String extraValue2) { + this.extraValue2 = extraValue2; + } + + public CargoUpstream isActive(Boolean isActive) { + this.isActive = isActive; + return this; + } + + /** + * Whether or not this upstream is active and ready for requests. + * @return isActive + **/ + @ApiModelProperty(value = "Whether or not this upstream is active and ready for requests.") + public Boolean isIsActive() { + return isActive; + } + + public void setIsActive(Boolean isActive) { + this.isActive = isActive; + } + + public CargoUpstream mode(ModeEnum mode) { + this.mode = mode; + return this; + } + + /** + * The mode that this upstream should operate in. Upstream sources can be used to proxy resolved packages, as well as operate in a proxy/cache or cache only mode. + * @return mode + **/ + @ApiModelProperty(value = "The mode that this upstream should operate in. Upstream sources can be used to proxy resolved packages, as well as operate in a proxy/cache or cache only mode.") + public ModeEnum getMode() { + return mode; + } + + public void setMode(ModeEnum mode) { + this.mode = mode; + } + + public CargoUpstream name(String name) { + this.name = name; + return this; + } + + /** + * A descriptive name for this upstream source. A shortened version of this name will be used for tagging cached packages retrieved from this upstream. + * @return name + **/ + @NotNull + @Pattern(regexp="^\\w[\\w \\-'\\./()]+$") @Size(min=1,max=64) @ApiModelProperty(required = true, value = "A descriptive name for this upstream source. A shortened version of this name will be used for tagging cached packages retrieved from this upstream.") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + /** + * When true, this upstream source is pending validation. + * @return pendingValidation + **/ + @ApiModelProperty(value = "When true, this upstream source is pending validation.") + public Boolean isPendingValidation() { + return pendingValidation; + } + + public CargoUpstream priority(java.math.BigInteger priority) { + this.priority = priority; + return this; + } + + /** + * Upstream sources are selected for resolving requests by sequential order (1..n), followed by creation date. + * minimum: 1 + * maximum: 32767 + * @return priority + **/ + @Min(1L) @Max(32767L) @ApiModelProperty(value = "Upstream sources are selected for resolving requests by sequential order (1..n), followed by creation date.") + public java.math.BigInteger getPriority() { + return priority; + } + + public void setPriority(java.math.BigInteger priority) { + this.priority = priority; + } + + /** + * Get slugPerm + * @return slugPerm + **/ + @Pattern(regexp="^[-a-zA-Z0-9_]+$") @Size(min=1) @ApiModelProperty(value = "") + public String getSlugPerm() { + return slugPerm; + } + + /** + * Get updatedAt + * @return updatedAt + **/ + @Valid + @ApiModelProperty(value = "") + public OffsetDateTime getUpdatedAt() { + return updatedAt; + } + + public CargoUpstream upstreamUrl(String upstreamUrl) { + this.upstreamUrl = upstreamUrl; + return this; + } + + /** + * The URL for this upstream source. This must be a fully qualified URL including any path elements required to reach the root of the repository. + * @return upstreamUrl + **/ + @NotNull + @Size(min=1,max=200) @ApiModelProperty(required = true, value = "The URL for this upstream source. This must be a fully qualified URL including any path elements required to reach the root of the repository. ") + public String getUpstreamUrl() { + return upstreamUrl; + } + + public void setUpstreamUrl(String upstreamUrl) { + this.upstreamUrl = upstreamUrl; + } + + public CargoUpstream verifySsl(Boolean verifySsl) { + this.verifySsl = verifySsl; + return this; + } + + /** + * If enabled, SSL certificates are verified when requests are made to this upstream. It's recommended to leave this enabled for all public sources to help mitigate Man-In-The-Middle (MITM) attacks. Please note this only applies to HTTPS upstreams. + * @return verifySsl + **/ + @ApiModelProperty(value = "If enabled, SSL certificates are verified when requests are made to this upstream. It's recommended to leave this enabled for all public sources to help mitigate Man-In-The-Middle (MITM) attacks. Please note this only applies to HTTPS upstreams.") + public Boolean isVerifySsl() { + return verifySsl; + } + + public void setVerifySsl(Boolean verifySsl) { + this.verifySsl = verifySsl; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CargoUpstream cargoUpstream = (CargoUpstream) o; + return Objects.equals(this.authMode, cargoUpstream.authMode) && + Objects.equals(this.authSecret, cargoUpstream.authSecret) && + Objects.equals(this.authUsername, cargoUpstream.authUsername) && + Objects.equals(this.createdAt, cargoUpstream.createdAt) && + Objects.equals(this.disableReason, cargoUpstream.disableReason) && + Objects.equals(this.extraHeader1, cargoUpstream.extraHeader1) && + Objects.equals(this.extraHeader2, cargoUpstream.extraHeader2) && + Objects.equals(this.extraValue1, cargoUpstream.extraValue1) && + Objects.equals(this.extraValue2, cargoUpstream.extraValue2) && + Objects.equals(this.isActive, cargoUpstream.isActive) && + Objects.equals(this.mode, cargoUpstream.mode) && + Objects.equals(this.name, cargoUpstream.name) && + Objects.equals(this.pendingValidation, cargoUpstream.pendingValidation) && + Objects.equals(this.priority, cargoUpstream.priority) && + Objects.equals(this.slugPerm, cargoUpstream.slugPerm) && + Objects.equals(this.updatedAt, cargoUpstream.updatedAt) && + Objects.equals(this.upstreamUrl, cargoUpstream.upstreamUrl) && + Objects.equals(this.verifySsl, cargoUpstream.verifySsl); + } + + @Override + public int hashCode() { + return Objects.hash(authMode, authSecret, authUsername, createdAt, disableReason, extraHeader1, extraHeader2, extraValue1, extraValue2, isActive, mode, name, pendingValidation, priority, slugPerm, updatedAt, upstreamUrl, verifySsl); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CargoUpstream {\n"); + + sb.append(" authMode: ").append(toIndentedString(authMode)).append("\n"); + sb.append(" authSecret: ").append(toIndentedString(authSecret)).append("\n"); + sb.append(" authUsername: ").append(toIndentedString(authUsername)).append("\n"); + sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); + sb.append(" disableReason: ").append(toIndentedString(disableReason)).append("\n"); + sb.append(" extraHeader1: ").append(toIndentedString(extraHeader1)).append("\n"); + sb.append(" extraHeader2: ").append(toIndentedString(extraHeader2)).append("\n"); + sb.append(" extraValue1: ").append(toIndentedString(extraValue1)).append("\n"); + sb.append(" extraValue2: ").append(toIndentedString(extraValue2)).append("\n"); + sb.append(" isActive: ").append(toIndentedString(isActive)).append("\n"); + sb.append(" mode: ").append(toIndentedString(mode)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" pendingValidation: ").append(toIndentedString(pendingValidation)).append("\n"); + sb.append(" priority: ").append(toIndentedString(priority)).append("\n"); + sb.append(" slugPerm: ").append(toIndentedString(slugPerm)).append("\n"); + sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); + sb.append(" upstreamUrl: ").append(toIndentedString(upstreamUrl)).append("\n"); + sb.append(" verifySsl: ").append(toIndentedString(verifySsl)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/CargoUpstreamRequest.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/CargoUpstreamRequest.java new file mode 100644 index 00000000..d06ff5ec --- /dev/null +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/CargoUpstreamRequest.java @@ -0,0 +1,471 @@ +/* + * Cloudsmith API (v1) + * The API to the Cloudsmith Service + * + * OpenAPI spec version: v1 + * Contact: support@cloudsmith.io + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +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; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.io.Serializable; +import javax.validation.constraints.*; +import javax.validation.Valid; + +/** + * CargoUpstreamRequest + */ + +public class CargoUpstreamRequest implements Serializable { + private static final long serialVersionUID = 1L; + + /** + * The authentication mode to use when accessing this upstream. + */ + @JsonAdapter(AuthModeEnum.Adapter.class) + public enum AuthModeEnum { + NONE("None"), + + USERNAME_AND_PASSWORD("Username and Password"); + + private String value; + + AuthModeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static AuthModeEnum fromValue(String text) { + for (AuthModeEnum b : AuthModeEnum.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final AuthModeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public AuthModeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return AuthModeEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("auth_mode") + private AuthModeEnum authMode = AuthModeEnum.NONE; + + @SerializedName("auth_secret") + private String authSecret = null; + + @SerializedName("auth_username") + private String authUsername = null; + + @SerializedName("extra_header_1") + private String extraHeader1 = null; + + @SerializedName("extra_header_2") + private String extraHeader2 = null; + + @SerializedName("extra_value_1") + private String extraValue1 = null; + + @SerializedName("extra_value_2") + private String extraValue2 = null; + + @SerializedName("is_active") + private Boolean isActive = null; + + /** + * The mode that this upstream should operate in. Upstream sources can be used to proxy resolved packages, as well as operate in a proxy/cache or cache only mode. + */ + @JsonAdapter(ModeEnum.Adapter.class) + public enum ModeEnum { + PROXY_ONLY("Proxy Only"); + + private String value; + + ModeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static ModeEnum fromValue(String text) { + for (ModeEnum b : ModeEnum.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final ModeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public ModeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return ModeEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("mode") + private ModeEnum mode = ModeEnum.PROXY_ONLY; + + @SerializedName("name") + private String name = null; + + @SerializedName("priority") + private java.math.BigInteger priority = null; + + @SerializedName("upstream_url") + private String upstreamUrl = null; + + @SerializedName("verify_ssl") + private Boolean verifySsl = null; + + public CargoUpstreamRequest authMode(AuthModeEnum authMode) { + this.authMode = authMode; + return this; + } + + /** + * The authentication mode to use when accessing this upstream. + * @return authMode + **/ + @ApiModelProperty(value = "The authentication mode to use when accessing this upstream. ") + public AuthModeEnum getAuthMode() { + return authMode; + } + + public void setAuthMode(AuthModeEnum authMode) { + this.authMode = authMode; + } + + public CargoUpstreamRequest authSecret(String authSecret) { + this.authSecret = authSecret; + return this; + } + + /** + * Secret to provide with requests to upstream. + * @return authSecret + **/ + @Size(max=4096) @ApiModelProperty(value = "Secret to provide with requests to upstream.") + public String getAuthSecret() { + return authSecret; + } + + public void setAuthSecret(String authSecret) { + this.authSecret = authSecret; + } + + public CargoUpstreamRequest authUsername(String authUsername) { + this.authUsername = authUsername; + return this; + } + + /** + * Username to provide with requests to upstream. + * @return authUsername + **/ + @Size(max=64) @ApiModelProperty(value = "Username to provide with requests to upstream.") + public String getAuthUsername() { + return authUsername; + } + + public void setAuthUsername(String authUsername) { + this.authUsername = authUsername; + } + + public CargoUpstreamRequest extraHeader1(String extraHeader1) { + this.extraHeader1 = extraHeader1; + return this; + } + + /** + * The key for extra header #1 to send to upstream. + * @return extraHeader1 + **/ + @Pattern(regexp="^[-\\w]+$") @Size(max=64) @ApiModelProperty(value = "The key for extra header #1 to send to upstream.") + public String getExtraHeader1() { + return extraHeader1; + } + + public void setExtraHeader1(String extraHeader1) { + this.extraHeader1 = extraHeader1; + } + + public CargoUpstreamRequest extraHeader2(String extraHeader2) { + this.extraHeader2 = extraHeader2; + return this; + } + + /** + * The key for extra header #2 to send to upstream. + * @return extraHeader2 + **/ + @Pattern(regexp="^[-\\w]+$") @Size(max=64) @ApiModelProperty(value = "The key for extra header #2 to send to upstream.") + public String getExtraHeader2() { + return extraHeader2; + } + + public void setExtraHeader2(String extraHeader2) { + this.extraHeader2 = extraHeader2; + } + + public CargoUpstreamRequest extraValue1(String extraValue1) { + this.extraValue1 = extraValue1; + return this; + } + + /** + * The value for extra header #1 to send to upstream. This is stored as plaintext, and is NOT encrypted. + * @return extraValue1 + **/ + @Pattern(regexp="^[^\\n\\r]+$") @Size(max=128) @ApiModelProperty(value = "The value for extra header #1 to send to upstream. This is stored as plaintext, and is NOT encrypted.") + public String getExtraValue1() { + return extraValue1; + } + + public void setExtraValue1(String extraValue1) { + this.extraValue1 = extraValue1; + } + + public CargoUpstreamRequest extraValue2(String extraValue2) { + this.extraValue2 = extraValue2; + return this; + } + + /** + * The value for extra header #2 to send to upstream. This is stored as plaintext, and is NOT encrypted. + * @return extraValue2 + **/ + @Pattern(regexp="^[^\\n\\r]+$") @Size(max=128) @ApiModelProperty(value = "The value for extra header #2 to send to upstream. This is stored as plaintext, and is NOT encrypted.") + public String getExtraValue2() { + return extraValue2; + } + + public void setExtraValue2(String extraValue2) { + this.extraValue2 = extraValue2; + } + + public CargoUpstreamRequest isActive(Boolean isActive) { + this.isActive = isActive; + return this; + } + + /** + * Whether or not this upstream is active and ready for requests. + * @return isActive + **/ + @ApiModelProperty(value = "Whether or not this upstream is active and ready for requests.") + public Boolean isIsActive() { + return isActive; + } + + public void setIsActive(Boolean isActive) { + this.isActive = isActive; + } + + public CargoUpstreamRequest mode(ModeEnum mode) { + this.mode = mode; + return this; + } + + /** + * The mode that this upstream should operate in. Upstream sources can be used to proxy resolved packages, as well as operate in a proxy/cache or cache only mode. + * @return mode + **/ + @ApiModelProperty(value = "The mode that this upstream should operate in. Upstream sources can be used to proxy resolved packages, as well as operate in a proxy/cache or cache only mode.") + public ModeEnum getMode() { + return mode; + } + + public void setMode(ModeEnum mode) { + this.mode = mode; + } + + public CargoUpstreamRequest name(String name) { + this.name = name; + return this; + } + + /** + * A descriptive name for this upstream source. A shortened version of this name will be used for tagging cached packages retrieved from this upstream. + * @return name + **/ + @NotNull + @Pattern(regexp="^\\w[\\w \\-'\\./()]+$") @Size(min=1,max=64) @ApiModelProperty(required = true, value = "A descriptive name for this upstream source. A shortened version of this name will be used for tagging cached packages retrieved from this upstream.") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public CargoUpstreamRequest priority(java.math.BigInteger priority) { + this.priority = priority; + return this; + } + + /** + * Upstream sources are selected for resolving requests by sequential order (1..n), followed by creation date. + * minimum: 1 + * maximum: 32767 + * @return priority + **/ + @Min(1L) @Max(32767L) @ApiModelProperty(value = "Upstream sources are selected for resolving requests by sequential order (1..n), followed by creation date.") + public java.math.BigInteger getPriority() { + return priority; + } + + public void setPriority(java.math.BigInteger priority) { + this.priority = priority; + } + + public CargoUpstreamRequest upstreamUrl(String upstreamUrl) { + this.upstreamUrl = upstreamUrl; + return this; + } + + /** + * The URL for this upstream source. This must be a fully qualified URL including any path elements required to reach the root of the repository. + * @return upstreamUrl + **/ + @NotNull + @Size(min=1,max=200) @ApiModelProperty(required = true, value = "The URL for this upstream source. This must be a fully qualified URL including any path elements required to reach the root of the repository. ") + public String getUpstreamUrl() { + return upstreamUrl; + } + + public void setUpstreamUrl(String upstreamUrl) { + this.upstreamUrl = upstreamUrl; + } + + public CargoUpstreamRequest verifySsl(Boolean verifySsl) { + this.verifySsl = verifySsl; + return this; + } + + /** + * If enabled, SSL certificates are verified when requests are made to this upstream. It's recommended to leave this enabled for all public sources to help mitigate Man-In-The-Middle (MITM) attacks. Please note this only applies to HTTPS upstreams. + * @return verifySsl + **/ + @ApiModelProperty(value = "If enabled, SSL certificates are verified when requests are made to this upstream. It's recommended to leave this enabled for all public sources to help mitigate Man-In-The-Middle (MITM) attacks. Please note this only applies to HTTPS upstreams.") + public Boolean isVerifySsl() { + return verifySsl; + } + + public void setVerifySsl(Boolean verifySsl) { + this.verifySsl = verifySsl; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CargoUpstreamRequest cargoUpstreamRequest = (CargoUpstreamRequest) o; + return Objects.equals(this.authMode, cargoUpstreamRequest.authMode) && + Objects.equals(this.authSecret, cargoUpstreamRequest.authSecret) && + Objects.equals(this.authUsername, cargoUpstreamRequest.authUsername) && + Objects.equals(this.extraHeader1, cargoUpstreamRequest.extraHeader1) && + Objects.equals(this.extraHeader2, cargoUpstreamRequest.extraHeader2) && + Objects.equals(this.extraValue1, cargoUpstreamRequest.extraValue1) && + Objects.equals(this.extraValue2, cargoUpstreamRequest.extraValue2) && + Objects.equals(this.isActive, cargoUpstreamRequest.isActive) && + Objects.equals(this.mode, cargoUpstreamRequest.mode) && + Objects.equals(this.name, cargoUpstreamRequest.name) && + Objects.equals(this.priority, cargoUpstreamRequest.priority) && + Objects.equals(this.upstreamUrl, cargoUpstreamRequest.upstreamUrl) && + Objects.equals(this.verifySsl, cargoUpstreamRequest.verifySsl); + } + + @Override + public int hashCode() { + return Objects.hash(authMode, authSecret, authUsername, extraHeader1, extraHeader2, extraValue1, extraValue2, isActive, mode, name, priority, upstreamUrl, verifySsl); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CargoUpstreamRequest {\n"); + + sb.append(" authMode: ").append(toIndentedString(authMode)).append("\n"); + sb.append(" authSecret: ").append(toIndentedString(authSecret)).append("\n"); + sb.append(" authUsername: ").append(toIndentedString(authUsername)).append("\n"); + sb.append(" extraHeader1: ").append(toIndentedString(extraHeader1)).append("\n"); + sb.append(" extraHeader2: ").append(toIndentedString(extraHeader2)).append("\n"); + sb.append(" extraValue1: ").append(toIndentedString(extraValue1)).append("\n"); + sb.append(" extraValue2: ").append(toIndentedString(extraValue2)).append("\n"); + sb.append(" isActive: ").append(toIndentedString(isActive)).append("\n"); + sb.append(" mode: ").append(toIndentedString(mode)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" priority: ").append(toIndentedString(priority)).append("\n"); + sb.append(" upstreamUrl: ").append(toIndentedString(upstreamUrl)).append("\n"); + sb.append(" verifySsl: ").append(toIndentedString(verifySsl)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/CargoUpstreamRequestPatch.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/CargoUpstreamRequestPatch.java new file mode 100644 index 00000000..36f01ec7 --- /dev/null +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/CargoUpstreamRequestPatch.java @@ -0,0 +1,469 @@ +/* + * Cloudsmith API (v1) + * The API to the Cloudsmith Service + * + * OpenAPI spec version: v1 + * Contact: support@cloudsmith.io + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +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; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.io.Serializable; +import javax.validation.constraints.*; +import javax.validation.Valid; + +/** + * CargoUpstreamRequestPatch + */ + +public class CargoUpstreamRequestPatch implements Serializable { + private static final long serialVersionUID = 1L; + + /** + * The authentication mode to use when accessing this upstream. + */ + @JsonAdapter(AuthModeEnum.Adapter.class) + public enum AuthModeEnum { + NONE("None"), + + USERNAME_AND_PASSWORD("Username and Password"); + + private String value; + + AuthModeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static AuthModeEnum fromValue(String text) { + for (AuthModeEnum b : AuthModeEnum.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final AuthModeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public AuthModeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return AuthModeEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("auth_mode") + private AuthModeEnum authMode = AuthModeEnum.NONE; + + @SerializedName("auth_secret") + private String authSecret = null; + + @SerializedName("auth_username") + private String authUsername = null; + + @SerializedName("extra_header_1") + private String extraHeader1 = null; + + @SerializedName("extra_header_2") + private String extraHeader2 = null; + + @SerializedName("extra_value_1") + private String extraValue1 = null; + + @SerializedName("extra_value_2") + private String extraValue2 = null; + + @SerializedName("is_active") + private Boolean isActive = null; + + /** + * The mode that this upstream should operate in. Upstream sources can be used to proxy resolved packages, as well as operate in a proxy/cache or cache only mode. + */ + @JsonAdapter(ModeEnum.Adapter.class) + public enum ModeEnum { + PROXY_ONLY("Proxy Only"); + + private String value; + + ModeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static ModeEnum fromValue(String text) { + for (ModeEnum b : ModeEnum.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final ModeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public ModeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return ModeEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("mode") + private ModeEnum mode = ModeEnum.PROXY_ONLY; + + @SerializedName("name") + private String name = null; + + @SerializedName("priority") + private java.math.BigInteger priority = null; + + @SerializedName("upstream_url") + private String upstreamUrl = null; + + @SerializedName("verify_ssl") + private Boolean verifySsl = null; + + public CargoUpstreamRequestPatch authMode(AuthModeEnum authMode) { + this.authMode = authMode; + return this; + } + + /** + * The authentication mode to use when accessing this upstream. + * @return authMode + **/ + @ApiModelProperty(value = "The authentication mode to use when accessing this upstream. ") + public AuthModeEnum getAuthMode() { + return authMode; + } + + public void setAuthMode(AuthModeEnum authMode) { + this.authMode = authMode; + } + + public CargoUpstreamRequestPatch authSecret(String authSecret) { + this.authSecret = authSecret; + return this; + } + + /** + * Secret to provide with requests to upstream. + * @return authSecret + **/ + @Size(max=4096) @ApiModelProperty(value = "Secret to provide with requests to upstream.") + public String getAuthSecret() { + return authSecret; + } + + public void setAuthSecret(String authSecret) { + this.authSecret = authSecret; + } + + public CargoUpstreamRequestPatch authUsername(String authUsername) { + this.authUsername = authUsername; + return this; + } + + /** + * Username to provide with requests to upstream. + * @return authUsername + **/ + @Size(max=64) @ApiModelProperty(value = "Username to provide with requests to upstream.") + public String getAuthUsername() { + return authUsername; + } + + public void setAuthUsername(String authUsername) { + this.authUsername = authUsername; + } + + public CargoUpstreamRequestPatch extraHeader1(String extraHeader1) { + this.extraHeader1 = extraHeader1; + return this; + } + + /** + * The key for extra header #1 to send to upstream. + * @return extraHeader1 + **/ + @Pattern(regexp="^[-\\w]+$") @Size(max=64) @ApiModelProperty(value = "The key for extra header #1 to send to upstream.") + public String getExtraHeader1() { + return extraHeader1; + } + + public void setExtraHeader1(String extraHeader1) { + this.extraHeader1 = extraHeader1; + } + + public CargoUpstreamRequestPatch extraHeader2(String extraHeader2) { + this.extraHeader2 = extraHeader2; + return this; + } + + /** + * The key for extra header #2 to send to upstream. + * @return extraHeader2 + **/ + @Pattern(regexp="^[-\\w]+$") @Size(max=64) @ApiModelProperty(value = "The key for extra header #2 to send to upstream.") + public String getExtraHeader2() { + return extraHeader2; + } + + public void setExtraHeader2(String extraHeader2) { + this.extraHeader2 = extraHeader2; + } + + public CargoUpstreamRequestPatch extraValue1(String extraValue1) { + this.extraValue1 = extraValue1; + return this; + } + + /** + * The value for extra header #1 to send to upstream. This is stored as plaintext, and is NOT encrypted. + * @return extraValue1 + **/ + @Pattern(regexp="^[^\\n\\r]+$") @Size(max=128) @ApiModelProperty(value = "The value for extra header #1 to send to upstream. This is stored as plaintext, and is NOT encrypted.") + public String getExtraValue1() { + return extraValue1; + } + + public void setExtraValue1(String extraValue1) { + this.extraValue1 = extraValue1; + } + + public CargoUpstreamRequestPatch extraValue2(String extraValue2) { + this.extraValue2 = extraValue2; + return this; + } + + /** + * The value for extra header #2 to send to upstream. This is stored as plaintext, and is NOT encrypted. + * @return extraValue2 + **/ + @Pattern(regexp="^[^\\n\\r]+$") @Size(max=128) @ApiModelProperty(value = "The value for extra header #2 to send to upstream. This is stored as plaintext, and is NOT encrypted.") + public String getExtraValue2() { + return extraValue2; + } + + public void setExtraValue2(String extraValue2) { + this.extraValue2 = extraValue2; + } + + public CargoUpstreamRequestPatch isActive(Boolean isActive) { + this.isActive = isActive; + return this; + } + + /** + * Whether or not this upstream is active and ready for requests. + * @return isActive + **/ + @ApiModelProperty(value = "Whether or not this upstream is active and ready for requests.") + public Boolean isIsActive() { + return isActive; + } + + public void setIsActive(Boolean isActive) { + this.isActive = isActive; + } + + public CargoUpstreamRequestPatch mode(ModeEnum mode) { + this.mode = mode; + return this; + } + + /** + * The mode that this upstream should operate in. Upstream sources can be used to proxy resolved packages, as well as operate in a proxy/cache or cache only mode. + * @return mode + **/ + @ApiModelProperty(value = "The mode that this upstream should operate in. Upstream sources can be used to proxy resolved packages, as well as operate in a proxy/cache or cache only mode.") + public ModeEnum getMode() { + return mode; + } + + public void setMode(ModeEnum mode) { + this.mode = mode; + } + + public CargoUpstreamRequestPatch name(String name) { + this.name = name; + return this; + } + + /** + * A descriptive name for this upstream source. A shortened version of this name will be used for tagging cached packages retrieved from this upstream. + * @return name + **/ + @Pattern(regexp="^\\w[\\w \\-'\\./()]+$") @Size(min=1,max=64) @ApiModelProperty(value = "A descriptive name for this upstream source. A shortened version of this name will be used for tagging cached packages retrieved from this upstream.") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public CargoUpstreamRequestPatch priority(java.math.BigInteger priority) { + this.priority = priority; + return this; + } + + /** + * Upstream sources are selected for resolving requests by sequential order (1..n), followed by creation date. + * minimum: 1 + * maximum: 32767 + * @return priority + **/ + @Min(1L) @Max(32767L) @ApiModelProperty(value = "Upstream sources are selected for resolving requests by sequential order (1..n), followed by creation date.") + public java.math.BigInteger getPriority() { + return priority; + } + + public void setPriority(java.math.BigInteger priority) { + this.priority = priority; + } + + public CargoUpstreamRequestPatch upstreamUrl(String upstreamUrl) { + this.upstreamUrl = upstreamUrl; + return this; + } + + /** + * The URL for this upstream source. This must be a fully qualified URL including any path elements required to reach the root of the repository. + * @return upstreamUrl + **/ + @Size(min=1,max=200) @ApiModelProperty(value = "The URL for this upstream source. This must be a fully qualified URL including any path elements required to reach the root of the repository. ") + public String getUpstreamUrl() { + return upstreamUrl; + } + + public void setUpstreamUrl(String upstreamUrl) { + this.upstreamUrl = upstreamUrl; + } + + public CargoUpstreamRequestPatch verifySsl(Boolean verifySsl) { + this.verifySsl = verifySsl; + return this; + } + + /** + * If enabled, SSL certificates are verified when requests are made to this upstream. It's recommended to leave this enabled for all public sources to help mitigate Man-In-The-Middle (MITM) attacks. Please note this only applies to HTTPS upstreams. + * @return verifySsl + **/ + @ApiModelProperty(value = "If enabled, SSL certificates are verified when requests are made to this upstream. It's recommended to leave this enabled for all public sources to help mitigate Man-In-The-Middle (MITM) attacks. Please note this only applies to HTTPS upstreams.") + public Boolean isVerifySsl() { + return verifySsl; + } + + public void setVerifySsl(Boolean verifySsl) { + this.verifySsl = verifySsl; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CargoUpstreamRequestPatch cargoUpstreamRequestPatch = (CargoUpstreamRequestPatch) o; + return Objects.equals(this.authMode, cargoUpstreamRequestPatch.authMode) && + Objects.equals(this.authSecret, cargoUpstreamRequestPatch.authSecret) && + Objects.equals(this.authUsername, cargoUpstreamRequestPatch.authUsername) && + Objects.equals(this.extraHeader1, cargoUpstreamRequestPatch.extraHeader1) && + Objects.equals(this.extraHeader2, cargoUpstreamRequestPatch.extraHeader2) && + Objects.equals(this.extraValue1, cargoUpstreamRequestPatch.extraValue1) && + Objects.equals(this.extraValue2, cargoUpstreamRequestPatch.extraValue2) && + Objects.equals(this.isActive, cargoUpstreamRequestPatch.isActive) && + Objects.equals(this.mode, cargoUpstreamRequestPatch.mode) && + Objects.equals(this.name, cargoUpstreamRequestPatch.name) && + Objects.equals(this.priority, cargoUpstreamRequestPatch.priority) && + Objects.equals(this.upstreamUrl, cargoUpstreamRequestPatch.upstreamUrl) && + Objects.equals(this.verifySsl, cargoUpstreamRequestPatch.verifySsl); + } + + @Override + public int hashCode() { + return Objects.hash(authMode, authSecret, authUsername, extraHeader1, extraHeader2, extraValue1, extraValue2, isActive, mode, name, priority, upstreamUrl, verifySsl); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CargoUpstreamRequestPatch {\n"); + + sb.append(" authMode: ").append(toIndentedString(authMode)).append("\n"); + sb.append(" authSecret: ").append(toIndentedString(authSecret)).append("\n"); + sb.append(" authUsername: ").append(toIndentedString(authUsername)).append("\n"); + sb.append(" extraHeader1: ").append(toIndentedString(extraHeader1)).append("\n"); + sb.append(" extraHeader2: ").append(toIndentedString(extraHeader2)).append("\n"); + sb.append(" extraValue1: ").append(toIndentedString(extraValue1)).append("\n"); + sb.append(" extraValue2: ").append(toIndentedString(extraValue2)).append("\n"); + sb.append(" isActive: ").append(toIndentedString(isActive)).append("\n"); + sb.append(" mode: ").append(toIndentedString(mode)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" priority: ").append(toIndentedString(priority)).append("\n"); + sb.append(" upstreamUrl: ").append(toIndentedString(upstreamUrl)).append("\n"); + sb.append(" verifySsl: ").append(toIndentedString(verifySsl)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/GoUpstream.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/GoUpstream.java new file mode 100644 index 00000000..b6ebc7e9 --- /dev/null +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/GoUpstream.java @@ -0,0 +1,595 @@ +/* + * Cloudsmith API (v1) + * The API to the Cloudsmith Service + * + * OpenAPI spec version: v1 + * Contact: support@cloudsmith.io + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +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; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.time.OffsetDateTime; +import java.io.Serializable; +import javax.validation.constraints.*; +import javax.validation.Valid; + +/** + * GoUpstream + */ + +public class GoUpstream implements Serializable { + private static final long serialVersionUID = 1L; + + /** + * The authentication mode to use when accessing this upstream. + */ + @JsonAdapter(AuthModeEnum.Adapter.class) + public enum AuthModeEnum { + NONE("None"), + + USERNAME_AND_PASSWORD("Username and Password"); + + private String value; + + AuthModeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static AuthModeEnum fromValue(String text) { + for (AuthModeEnum b : AuthModeEnum.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final AuthModeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public AuthModeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return AuthModeEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("auth_mode") + private AuthModeEnum authMode = AuthModeEnum.NONE; + + @SerializedName("auth_secret") + private String authSecret = null; + + @SerializedName("auth_username") + private String authUsername = null; + + @SerializedName("created_at") + private OffsetDateTime createdAt = null; + + /** + * Gets or Sets disableReason + */ + @JsonAdapter(DisableReasonEnum.Adapter.class) + public enum DisableReasonEnum { + N_A("N/A"), + + UPSTREAM_POINTS_TO_ITS_OWN_REPOSITORY("Upstream points to its own repository"), + + MISSING_UPSTREAM_SOURCE("Missing upstream source"), + + UPSTREAM_WAS_DISABLED_BY_REQUEST_OF_USER("Upstream was disabled by request of user"); + + private String value; + + DisableReasonEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static DisableReasonEnum fromValue(String text) { + for (DisableReasonEnum b : DisableReasonEnum.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final DisableReasonEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public DisableReasonEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return DisableReasonEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("disable_reason") + private DisableReasonEnum disableReason = DisableReasonEnum.N_A; + + @SerializedName("extra_header_1") + private String extraHeader1 = null; + + @SerializedName("extra_header_2") + private String extraHeader2 = null; + + @SerializedName("extra_value_1") + private String extraValue1 = null; + + @SerializedName("extra_value_2") + private String extraValue2 = null; + + @SerializedName("is_active") + private Boolean isActive = null; + + /** + * The mode that this upstream should operate in. Upstream sources can be used to proxy resolved packages, as well as operate in a proxy/cache or cache only mode. + */ + @JsonAdapter(ModeEnum.Adapter.class) + public enum ModeEnum { + PROXY_ONLY("Proxy Only"); + + private String value; + + ModeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static ModeEnum fromValue(String text) { + for (ModeEnum b : ModeEnum.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final ModeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public ModeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return ModeEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("mode") + private ModeEnum mode = ModeEnum.PROXY_ONLY; + + @SerializedName("name") + private String name = null; + + @SerializedName("pending_validation") + private Boolean pendingValidation = null; + + @SerializedName("priority") + private java.math.BigInteger priority = null; + + @SerializedName("slug_perm") + private String slugPerm = null; + + @SerializedName("updated_at") + private OffsetDateTime updatedAt = null; + + @SerializedName("upstream_url") + private String upstreamUrl = null; + + @SerializedName("verify_ssl") + private Boolean verifySsl = null; + + public GoUpstream authMode(AuthModeEnum authMode) { + this.authMode = authMode; + return this; + } + + /** + * The authentication mode to use when accessing this upstream. + * @return authMode + **/ + @ApiModelProperty(value = "The authentication mode to use when accessing this upstream. ") + public AuthModeEnum getAuthMode() { + return authMode; + } + + public void setAuthMode(AuthModeEnum authMode) { + this.authMode = authMode; + } + + public GoUpstream authSecret(String authSecret) { + this.authSecret = authSecret; + return this; + } + + /** + * Secret to provide with requests to upstream. + * @return authSecret + **/ + @Size(max=4096) @ApiModelProperty(value = "Secret to provide with requests to upstream.") + public String getAuthSecret() { + return authSecret; + } + + public void setAuthSecret(String authSecret) { + this.authSecret = authSecret; + } + + public GoUpstream authUsername(String authUsername) { + this.authUsername = authUsername; + return this; + } + + /** + * Username to provide with requests to upstream. + * @return authUsername + **/ + @Size(max=64) @ApiModelProperty(value = "Username to provide with requests to upstream.") + public String getAuthUsername() { + return authUsername; + } + + public void setAuthUsername(String authUsername) { + this.authUsername = authUsername; + } + + /** + * The datetime the upstream source was created. + * @return createdAt + **/ + @Valid + @ApiModelProperty(value = "The datetime the upstream source was created.") + public OffsetDateTime getCreatedAt() { + return createdAt; + } + + /** + * Get disableReason + * @return disableReason + **/ + @ApiModelProperty(value = "") + public DisableReasonEnum getDisableReason() { + return disableReason; + } + + public GoUpstream extraHeader1(String extraHeader1) { + this.extraHeader1 = extraHeader1; + return this; + } + + /** + * The key for extra header #1 to send to upstream. + * @return extraHeader1 + **/ + @Pattern(regexp="^[-\\w]+$") @Size(max=64) @ApiModelProperty(value = "The key for extra header #1 to send to upstream.") + public String getExtraHeader1() { + return extraHeader1; + } + + public void setExtraHeader1(String extraHeader1) { + this.extraHeader1 = extraHeader1; + } + + public GoUpstream extraHeader2(String extraHeader2) { + this.extraHeader2 = extraHeader2; + return this; + } + + /** + * The key for extra header #2 to send to upstream. + * @return extraHeader2 + **/ + @Pattern(regexp="^[-\\w]+$") @Size(max=64) @ApiModelProperty(value = "The key for extra header #2 to send to upstream.") + public String getExtraHeader2() { + return extraHeader2; + } + + public void setExtraHeader2(String extraHeader2) { + this.extraHeader2 = extraHeader2; + } + + public GoUpstream extraValue1(String extraValue1) { + this.extraValue1 = extraValue1; + return this; + } + + /** + * The value for extra header #1 to send to upstream. This is stored as plaintext, and is NOT encrypted. + * @return extraValue1 + **/ + @Pattern(regexp="^[^\\n\\r]+$") @Size(max=128) @ApiModelProperty(value = "The value for extra header #1 to send to upstream. This is stored as plaintext, and is NOT encrypted.") + public String getExtraValue1() { + return extraValue1; + } + + public void setExtraValue1(String extraValue1) { + this.extraValue1 = extraValue1; + } + + public GoUpstream extraValue2(String extraValue2) { + this.extraValue2 = extraValue2; + return this; + } + + /** + * The value for extra header #2 to send to upstream. This is stored as plaintext, and is NOT encrypted. + * @return extraValue2 + **/ + @Pattern(regexp="^[^\\n\\r]+$") @Size(max=128) @ApiModelProperty(value = "The value for extra header #2 to send to upstream. This is stored as plaintext, and is NOT encrypted.") + public String getExtraValue2() { + return extraValue2; + } + + public void setExtraValue2(String extraValue2) { + this.extraValue2 = extraValue2; + } + + public GoUpstream isActive(Boolean isActive) { + this.isActive = isActive; + return this; + } + + /** + * Whether or not this upstream is active and ready for requests. + * @return isActive + **/ + @ApiModelProperty(value = "Whether or not this upstream is active and ready for requests.") + public Boolean isIsActive() { + return isActive; + } + + public void setIsActive(Boolean isActive) { + this.isActive = isActive; + } + + public GoUpstream mode(ModeEnum mode) { + this.mode = mode; + return this; + } + + /** + * The mode that this upstream should operate in. Upstream sources can be used to proxy resolved packages, as well as operate in a proxy/cache or cache only mode. + * @return mode + **/ + @ApiModelProperty(value = "The mode that this upstream should operate in. Upstream sources can be used to proxy resolved packages, as well as operate in a proxy/cache or cache only mode.") + public ModeEnum getMode() { + return mode; + } + + public void setMode(ModeEnum mode) { + this.mode = mode; + } + + public GoUpstream name(String name) { + this.name = name; + return this; + } + + /** + * A descriptive name for this upstream source. A shortened version of this name will be used for tagging cached packages retrieved from this upstream. + * @return name + **/ + @NotNull + @Pattern(regexp="^\\w[\\w \\-'\\./()]+$") @Size(min=1,max=64) @ApiModelProperty(required = true, value = "A descriptive name for this upstream source. A shortened version of this name will be used for tagging cached packages retrieved from this upstream.") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + /** + * When true, this upstream source is pending validation. + * @return pendingValidation + **/ + @ApiModelProperty(value = "When true, this upstream source is pending validation.") + public Boolean isPendingValidation() { + return pendingValidation; + } + + public GoUpstream priority(java.math.BigInteger priority) { + this.priority = priority; + return this; + } + + /** + * Upstream sources are selected for resolving requests by sequential order (1..n), followed by creation date. + * minimum: 1 + * maximum: 32767 + * @return priority + **/ + @Min(1L) @Max(32767L) @ApiModelProperty(value = "Upstream sources are selected for resolving requests by sequential order (1..n), followed by creation date.") + public java.math.BigInteger getPriority() { + return priority; + } + + public void setPriority(java.math.BigInteger priority) { + this.priority = priority; + } + + /** + * Get slugPerm + * @return slugPerm + **/ + @Pattern(regexp="^[-a-zA-Z0-9_]+$") @Size(min=1) @ApiModelProperty(value = "") + public String getSlugPerm() { + return slugPerm; + } + + /** + * Get updatedAt + * @return updatedAt + **/ + @Valid + @ApiModelProperty(value = "") + public OffsetDateTime getUpdatedAt() { + return updatedAt; + } + + public GoUpstream upstreamUrl(String upstreamUrl) { + this.upstreamUrl = upstreamUrl; + return this; + } + + /** + * The URL for this upstream source. This must be a fully qualified URL including any path elements required to reach the root of the repository. + * @return upstreamUrl + **/ + @NotNull + @Size(min=1,max=200) @ApiModelProperty(required = true, value = "The URL for this upstream source. This must be a fully qualified URL including any path elements required to reach the root of the repository. ") + public String getUpstreamUrl() { + return upstreamUrl; + } + + public void setUpstreamUrl(String upstreamUrl) { + this.upstreamUrl = upstreamUrl; + } + + public GoUpstream verifySsl(Boolean verifySsl) { + this.verifySsl = verifySsl; + return this; + } + + /** + * If enabled, SSL certificates are verified when requests are made to this upstream. It's recommended to leave this enabled for all public sources to help mitigate Man-In-The-Middle (MITM) attacks. Please note this only applies to HTTPS upstreams. + * @return verifySsl + **/ + @ApiModelProperty(value = "If enabled, SSL certificates are verified when requests are made to this upstream. It's recommended to leave this enabled for all public sources to help mitigate Man-In-The-Middle (MITM) attacks. Please note this only applies to HTTPS upstreams.") + public Boolean isVerifySsl() { + return verifySsl; + } + + public void setVerifySsl(Boolean verifySsl) { + this.verifySsl = verifySsl; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GoUpstream goUpstream = (GoUpstream) o; + return Objects.equals(this.authMode, goUpstream.authMode) && + Objects.equals(this.authSecret, goUpstream.authSecret) && + Objects.equals(this.authUsername, goUpstream.authUsername) && + Objects.equals(this.createdAt, goUpstream.createdAt) && + Objects.equals(this.disableReason, goUpstream.disableReason) && + Objects.equals(this.extraHeader1, goUpstream.extraHeader1) && + Objects.equals(this.extraHeader2, goUpstream.extraHeader2) && + Objects.equals(this.extraValue1, goUpstream.extraValue1) && + Objects.equals(this.extraValue2, goUpstream.extraValue2) && + Objects.equals(this.isActive, goUpstream.isActive) && + Objects.equals(this.mode, goUpstream.mode) && + Objects.equals(this.name, goUpstream.name) && + Objects.equals(this.pendingValidation, goUpstream.pendingValidation) && + Objects.equals(this.priority, goUpstream.priority) && + Objects.equals(this.slugPerm, goUpstream.slugPerm) && + Objects.equals(this.updatedAt, goUpstream.updatedAt) && + Objects.equals(this.upstreamUrl, goUpstream.upstreamUrl) && + Objects.equals(this.verifySsl, goUpstream.verifySsl); + } + + @Override + public int hashCode() { + return Objects.hash(authMode, authSecret, authUsername, createdAt, disableReason, extraHeader1, extraHeader2, extraValue1, extraValue2, isActive, mode, name, pendingValidation, priority, slugPerm, updatedAt, upstreamUrl, verifySsl); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GoUpstream {\n"); + + sb.append(" authMode: ").append(toIndentedString(authMode)).append("\n"); + sb.append(" authSecret: ").append(toIndentedString(authSecret)).append("\n"); + sb.append(" authUsername: ").append(toIndentedString(authUsername)).append("\n"); + sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); + sb.append(" disableReason: ").append(toIndentedString(disableReason)).append("\n"); + sb.append(" extraHeader1: ").append(toIndentedString(extraHeader1)).append("\n"); + sb.append(" extraHeader2: ").append(toIndentedString(extraHeader2)).append("\n"); + sb.append(" extraValue1: ").append(toIndentedString(extraValue1)).append("\n"); + sb.append(" extraValue2: ").append(toIndentedString(extraValue2)).append("\n"); + sb.append(" isActive: ").append(toIndentedString(isActive)).append("\n"); + sb.append(" mode: ").append(toIndentedString(mode)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" pendingValidation: ").append(toIndentedString(pendingValidation)).append("\n"); + sb.append(" priority: ").append(toIndentedString(priority)).append("\n"); + sb.append(" slugPerm: ").append(toIndentedString(slugPerm)).append("\n"); + sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); + sb.append(" upstreamUrl: ").append(toIndentedString(upstreamUrl)).append("\n"); + sb.append(" verifySsl: ").append(toIndentedString(verifySsl)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/GoUpstreamRequest.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/GoUpstreamRequest.java new file mode 100644 index 00000000..ce044b74 --- /dev/null +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/GoUpstreamRequest.java @@ -0,0 +1,471 @@ +/* + * Cloudsmith API (v1) + * The API to the Cloudsmith Service + * + * OpenAPI spec version: v1 + * Contact: support@cloudsmith.io + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +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; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.io.Serializable; +import javax.validation.constraints.*; +import javax.validation.Valid; + +/** + * GoUpstreamRequest + */ + +public class GoUpstreamRequest implements Serializable { + private static final long serialVersionUID = 1L; + + /** + * The authentication mode to use when accessing this upstream. + */ + @JsonAdapter(AuthModeEnum.Adapter.class) + public enum AuthModeEnum { + NONE("None"), + + USERNAME_AND_PASSWORD("Username and Password"); + + private String value; + + AuthModeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static AuthModeEnum fromValue(String text) { + for (AuthModeEnum b : AuthModeEnum.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final AuthModeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public AuthModeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return AuthModeEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("auth_mode") + private AuthModeEnum authMode = AuthModeEnum.NONE; + + @SerializedName("auth_secret") + private String authSecret = null; + + @SerializedName("auth_username") + private String authUsername = null; + + @SerializedName("extra_header_1") + private String extraHeader1 = null; + + @SerializedName("extra_header_2") + private String extraHeader2 = null; + + @SerializedName("extra_value_1") + private String extraValue1 = null; + + @SerializedName("extra_value_2") + private String extraValue2 = null; + + @SerializedName("is_active") + private Boolean isActive = null; + + /** + * The mode that this upstream should operate in. Upstream sources can be used to proxy resolved packages, as well as operate in a proxy/cache or cache only mode. + */ + @JsonAdapter(ModeEnum.Adapter.class) + public enum ModeEnum { + PROXY_ONLY("Proxy Only"); + + private String value; + + ModeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static ModeEnum fromValue(String text) { + for (ModeEnum b : ModeEnum.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final ModeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public ModeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return ModeEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("mode") + private ModeEnum mode = ModeEnum.PROXY_ONLY; + + @SerializedName("name") + private String name = null; + + @SerializedName("priority") + private java.math.BigInteger priority = null; + + @SerializedName("upstream_url") + private String upstreamUrl = null; + + @SerializedName("verify_ssl") + private Boolean verifySsl = null; + + public GoUpstreamRequest authMode(AuthModeEnum authMode) { + this.authMode = authMode; + return this; + } + + /** + * The authentication mode to use when accessing this upstream. + * @return authMode + **/ + @ApiModelProperty(value = "The authentication mode to use when accessing this upstream. ") + public AuthModeEnum getAuthMode() { + return authMode; + } + + public void setAuthMode(AuthModeEnum authMode) { + this.authMode = authMode; + } + + public GoUpstreamRequest authSecret(String authSecret) { + this.authSecret = authSecret; + return this; + } + + /** + * Secret to provide with requests to upstream. + * @return authSecret + **/ + @Size(max=4096) @ApiModelProperty(value = "Secret to provide with requests to upstream.") + public String getAuthSecret() { + return authSecret; + } + + public void setAuthSecret(String authSecret) { + this.authSecret = authSecret; + } + + public GoUpstreamRequest authUsername(String authUsername) { + this.authUsername = authUsername; + return this; + } + + /** + * Username to provide with requests to upstream. + * @return authUsername + **/ + @Size(max=64) @ApiModelProperty(value = "Username to provide with requests to upstream.") + public String getAuthUsername() { + return authUsername; + } + + public void setAuthUsername(String authUsername) { + this.authUsername = authUsername; + } + + public GoUpstreamRequest extraHeader1(String extraHeader1) { + this.extraHeader1 = extraHeader1; + return this; + } + + /** + * The key for extra header #1 to send to upstream. + * @return extraHeader1 + **/ + @Pattern(regexp="^[-\\w]+$") @Size(max=64) @ApiModelProperty(value = "The key for extra header #1 to send to upstream.") + public String getExtraHeader1() { + return extraHeader1; + } + + public void setExtraHeader1(String extraHeader1) { + this.extraHeader1 = extraHeader1; + } + + public GoUpstreamRequest extraHeader2(String extraHeader2) { + this.extraHeader2 = extraHeader2; + return this; + } + + /** + * The key for extra header #2 to send to upstream. + * @return extraHeader2 + **/ + @Pattern(regexp="^[-\\w]+$") @Size(max=64) @ApiModelProperty(value = "The key for extra header #2 to send to upstream.") + public String getExtraHeader2() { + return extraHeader2; + } + + public void setExtraHeader2(String extraHeader2) { + this.extraHeader2 = extraHeader2; + } + + public GoUpstreamRequest extraValue1(String extraValue1) { + this.extraValue1 = extraValue1; + return this; + } + + /** + * The value for extra header #1 to send to upstream. This is stored as plaintext, and is NOT encrypted. + * @return extraValue1 + **/ + @Pattern(regexp="^[^\\n\\r]+$") @Size(max=128) @ApiModelProperty(value = "The value for extra header #1 to send to upstream. This is stored as plaintext, and is NOT encrypted.") + public String getExtraValue1() { + return extraValue1; + } + + public void setExtraValue1(String extraValue1) { + this.extraValue1 = extraValue1; + } + + public GoUpstreamRequest extraValue2(String extraValue2) { + this.extraValue2 = extraValue2; + return this; + } + + /** + * The value for extra header #2 to send to upstream. This is stored as plaintext, and is NOT encrypted. + * @return extraValue2 + **/ + @Pattern(regexp="^[^\\n\\r]+$") @Size(max=128) @ApiModelProperty(value = "The value for extra header #2 to send to upstream. This is stored as plaintext, and is NOT encrypted.") + public String getExtraValue2() { + return extraValue2; + } + + public void setExtraValue2(String extraValue2) { + this.extraValue2 = extraValue2; + } + + public GoUpstreamRequest isActive(Boolean isActive) { + this.isActive = isActive; + return this; + } + + /** + * Whether or not this upstream is active and ready for requests. + * @return isActive + **/ + @ApiModelProperty(value = "Whether or not this upstream is active and ready for requests.") + public Boolean isIsActive() { + return isActive; + } + + public void setIsActive(Boolean isActive) { + this.isActive = isActive; + } + + public GoUpstreamRequest mode(ModeEnum mode) { + this.mode = mode; + return this; + } + + /** + * The mode that this upstream should operate in. Upstream sources can be used to proxy resolved packages, as well as operate in a proxy/cache or cache only mode. + * @return mode + **/ + @ApiModelProperty(value = "The mode that this upstream should operate in. Upstream sources can be used to proxy resolved packages, as well as operate in a proxy/cache or cache only mode.") + public ModeEnum getMode() { + return mode; + } + + public void setMode(ModeEnum mode) { + this.mode = mode; + } + + public GoUpstreamRequest name(String name) { + this.name = name; + return this; + } + + /** + * A descriptive name for this upstream source. A shortened version of this name will be used for tagging cached packages retrieved from this upstream. + * @return name + **/ + @NotNull + @Pattern(regexp="^\\w[\\w \\-'\\./()]+$") @Size(min=1,max=64) @ApiModelProperty(required = true, value = "A descriptive name for this upstream source. A shortened version of this name will be used for tagging cached packages retrieved from this upstream.") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public GoUpstreamRequest priority(java.math.BigInteger priority) { + this.priority = priority; + return this; + } + + /** + * Upstream sources are selected for resolving requests by sequential order (1..n), followed by creation date. + * minimum: 1 + * maximum: 32767 + * @return priority + **/ + @Min(1L) @Max(32767L) @ApiModelProperty(value = "Upstream sources are selected for resolving requests by sequential order (1..n), followed by creation date.") + public java.math.BigInteger getPriority() { + return priority; + } + + public void setPriority(java.math.BigInteger priority) { + this.priority = priority; + } + + public GoUpstreamRequest upstreamUrl(String upstreamUrl) { + this.upstreamUrl = upstreamUrl; + return this; + } + + /** + * The URL for this upstream source. This must be a fully qualified URL including any path elements required to reach the root of the repository. + * @return upstreamUrl + **/ + @NotNull + @Size(min=1,max=200) @ApiModelProperty(required = true, value = "The URL for this upstream source. This must be a fully qualified URL including any path elements required to reach the root of the repository. ") + public String getUpstreamUrl() { + return upstreamUrl; + } + + public void setUpstreamUrl(String upstreamUrl) { + this.upstreamUrl = upstreamUrl; + } + + public GoUpstreamRequest verifySsl(Boolean verifySsl) { + this.verifySsl = verifySsl; + return this; + } + + /** + * If enabled, SSL certificates are verified when requests are made to this upstream. It's recommended to leave this enabled for all public sources to help mitigate Man-In-The-Middle (MITM) attacks. Please note this only applies to HTTPS upstreams. + * @return verifySsl + **/ + @ApiModelProperty(value = "If enabled, SSL certificates are verified when requests are made to this upstream. It's recommended to leave this enabled for all public sources to help mitigate Man-In-The-Middle (MITM) attacks. Please note this only applies to HTTPS upstreams.") + public Boolean isVerifySsl() { + return verifySsl; + } + + public void setVerifySsl(Boolean verifySsl) { + this.verifySsl = verifySsl; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GoUpstreamRequest goUpstreamRequest = (GoUpstreamRequest) o; + return Objects.equals(this.authMode, goUpstreamRequest.authMode) && + Objects.equals(this.authSecret, goUpstreamRequest.authSecret) && + Objects.equals(this.authUsername, goUpstreamRequest.authUsername) && + Objects.equals(this.extraHeader1, goUpstreamRequest.extraHeader1) && + Objects.equals(this.extraHeader2, goUpstreamRequest.extraHeader2) && + Objects.equals(this.extraValue1, goUpstreamRequest.extraValue1) && + Objects.equals(this.extraValue2, goUpstreamRequest.extraValue2) && + Objects.equals(this.isActive, goUpstreamRequest.isActive) && + Objects.equals(this.mode, goUpstreamRequest.mode) && + Objects.equals(this.name, goUpstreamRequest.name) && + Objects.equals(this.priority, goUpstreamRequest.priority) && + Objects.equals(this.upstreamUrl, goUpstreamRequest.upstreamUrl) && + Objects.equals(this.verifySsl, goUpstreamRequest.verifySsl); + } + + @Override + public int hashCode() { + return Objects.hash(authMode, authSecret, authUsername, extraHeader1, extraHeader2, extraValue1, extraValue2, isActive, mode, name, priority, upstreamUrl, verifySsl); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GoUpstreamRequest {\n"); + + sb.append(" authMode: ").append(toIndentedString(authMode)).append("\n"); + sb.append(" authSecret: ").append(toIndentedString(authSecret)).append("\n"); + sb.append(" authUsername: ").append(toIndentedString(authUsername)).append("\n"); + sb.append(" extraHeader1: ").append(toIndentedString(extraHeader1)).append("\n"); + sb.append(" extraHeader2: ").append(toIndentedString(extraHeader2)).append("\n"); + sb.append(" extraValue1: ").append(toIndentedString(extraValue1)).append("\n"); + sb.append(" extraValue2: ").append(toIndentedString(extraValue2)).append("\n"); + sb.append(" isActive: ").append(toIndentedString(isActive)).append("\n"); + sb.append(" mode: ").append(toIndentedString(mode)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" priority: ").append(toIndentedString(priority)).append("\n"); + sb.append(" upstreamUrl: ").append(toIndentedString(upstreamUrl)).append("\n"); + sb.append(" verifySsl: ").append(toIndentedString(verifySsl)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/GoUpstreamRequestPatch.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/GoUpstreamRequestPatch.java new file mode 100644 index 00000000..7cd1fe4a --- /dev/null +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/GoUpstreamRequestPatch.java @@ -0,0 +1,469 @@ +/* + * Cloudsmith API (v1) + * The API to the Cloudsmith Service + * + * OpenAPI spec version: v1 + * Contact: support@cloudsmith.io + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +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; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.io.Serializable; +import javax.validation.constraints.*; +import javax.validation.Valid; + +/** + * GoUpstreamRequestPatch + */ + +public class GoUpstreamRequestPatch implements Serializable { + private static final long serialVersionUID = 1L; + + /** + * The authentication mode to use when accessing this upstream. + */ + @JsonAdapter(AuthModeEnum.Adapter.class) + public enum AuthModeEnum { + NONE("None"), + + USERNAME_AND_PASSWORD("Username and Password"); + + private String value; + + AuthModeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static AuthModeEnum fromValue(String text) { + for (AuthModeEnum b : AuthModeEnum.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final AuthModeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public AuthModeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return AuthModeEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("auth_mode") + private AuthModeEnum authMode = AuthModeEnum.NONE; + + @SerializedName("auth_secret") + private String authSecret = null; + + @SerializedName("auth_username") + private String authUsername = null; + + @SerializedName("extra_header_1") + private String extraHeader1 = null; + + @SerializedName("extra_header_2") + private String extraHeader2 = null; + + @SerializedName("extra_value_1") + private String extraValue1 = null; + + @SerializedName("extra_value_2") + private String extraValue2 = null; + + @SerializedName("is_active") + private Boolean isActive = null; + + /** + * The mode that this upstream should operate in. Upstream sources can be used to proxy resolved packages, as well as operate in a proxy/cache or cache only mode. + */ + @JsonAdapter(ModeEnum.Adapter.class) + public enum ModeEnum { + PROXY_ONLY("Proxy Only"); + + private String value; + + ModeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static ModeEnum fromValue(String text) { + for (ModeEnum b : ModeEnum.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final ModeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public ModeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return ModeEnum.fromValue(String.valueOf(value)); + } + } + } + + @SerializedName("mode") + private ModeEnum mode = ModeEnum.PROXY_ONLY; + + @SerializedName("name") + private String name = null; + + @SerializedName("priority") + private java.math.BigInteger priority = null; + + @SerializedName("upstream_url") + private String upstreamUrl = null; + + @SerializedName("verify_ssl") + private Boolean verifySsl = null; + + public GoUpstreamRequestPatch authMode(AuthModeEnum authMode) { + this.authMode = authMode; + return this; + } + + /** + * The authentication mode to use when accessing this upstream. + * @return authMode + **/ + @ApiModelProperty(value = "The authentication mode to use when accessing this upstream. ") + public AuthModeEnum getAuthMode() { + return authMode; + } + + public void setAuthMode(AuthModeEnum authMode) { + this.authMode = authMode; + } + + public GoUpstreamRequestPatch authSecret(String authSecret) { + this.authSecret = authSecret; + return this; + } + + /** + * Secret to provide with requests to upstream. + * @return authSecret + **/ + @Size(max=4096) @ApiModelProperty(value = "Secret to provide with requests to upstream.") + public String getAuthSecret() { + return authSecret; + } + + public void setAuthSecret(String authSecret) { + this.authSecret = authSecret; + } + + public GoUpstreamRequestPatch authUsername(String authUsername) { + this.authUsername = authUsername; + return this; + } + + /** + * Username to provide with requests to upstream. + * @return authUsername + **/ + @Size(max=64) @ApiModelProperty(value = "Username to provide with requests to upstream.") + public String getAuthUsername() { + return authUsername; + } + + public void setAuthUsername(String authUsername) { + this.authUsername = authUsername; + } + + public GoUpstreamRequestPatch extraHeader1(String extraHeader1) { + this.extraHeader1 = extraHeader1; + return this; + } + + /** + * The key for extra header #1 to send to upstream. + * @return extraHeader1 + **/ + @Pattern(regexp="^[-\\w]+$") @Size(max=64) @ApiModelProperty(value = "The key for extra header #1 to send to upstream.") + public String getExtraHeader1() { + return extraHeader1; + } + + public void setExtraHeader1(String extraHeader1) { + this.extraHeader1 = extraHeader1; + } + + public GoUpstreamRequestPatch extraHeader2(String extraHeader2) { + this.extraHeader2 = extraHeader2; + return this; + } + + /** + * The key for extra header #2 to send to upstream. + * @return extraHeader2 + **/ + @Pattern(regexp="^[-\\w]+$") @Size(max=64) @ApiModelProperty(value = "The key for extra header #2 to send to upstream.") + public String getExtraHeader2() { + return extraHeader2; + } + + public void setExtraHeader2(String extraHeader2) { + this.extraHeader2 = extraHeader2; + } + + public GoUpstreamRequestPatch extraValue1(String extraValue1) { + this.extraValue1 = extraValue1; + return this; + } + + /** + * The value for extra header #1 to send to upstream. This is stored as plaintext, and is NOT encrypted. + * @return extraValue1 + **/ + @Pattern(regexp="^[^\\n\\r]+$") @Size(max=128) @ApiModelProperty(value = "The value for extra header #1 to send to upstream. This is stored as plaintext, and is NOT encrypted.") + public String getExtraValue1() { + return extraValue1; + } + + public void setExtraValue1(String extraValue1) { + this.extraValue1 = extraValue1; + } + + public GoUpstreamRequestPatch extraValue2(String extraValue2) { + this.extraValue2 = extraValue2; + return this; + } + + /** + * The value for extra header #2 to send to upstream. This is stored as plaintext, and is NOT encrypted. + * @return extraValue2 + **/ + @Pattern(regexp="^[^\\n\\r]+$") @Size(max=128) @ApiModelProperty(value = "The value for extra header #2 to send to upstream. This is stored as plaintext, and is NOT encrypted.") + public String getExtraValue2() { + return extraValue2; + } + + public void setExtraValue2(String extraValue2) { + this.extraValue2 = extraValue2; + } + + public GoUpstreamRequestPatch isActive(Boolean isActive) { + this.isActive = isActive; + return this; + } + + /** + * Whether or not this upstream is active and ready for requests. + * @return isActive + **/ + @ApiModelProperty(value = "Whether or not this upstream is active and ready for requests.") + public Boolean isIsActive() { + return isActive; + } + + public void setIsActive(Boolean isActive) { + this.isActive = isActive; + } + + public GoUpstreamRequestPatch mode(ModeEnum mode) { + this.mode = mode; + return this; + } + + /** + * The mode that this upstream should operate in. Upstream sources can be used to proxy resolved packages, as well as operate in a proxy/cache or cache only mode. + * @return mode + **/ + @ApiModelProperty(value = "The mode that this upstream should operate in. Upstream sources can be used to proxy resolved packages, as well as operate in a proxy/cache or cache only mode.") + public ModeEnum getMode() { + return mode; + } + + public void setMode(ModeEnum mode) { + this.mode = mode; + } + + public GoUpstreamRequestPatch name(String name) { + this.name = name; + return this; + } + + /** + * A descriptive name for this upstream source. A shortened version of this name will be used for tagging cached packages retrieved from this upstream. + * @return name + **/ + @Pattern(regexp="^\\w[\\w \\-'\\./()]+$") @Size(min=1,max=64) @ApiModelProperty(value = "A descriptive name for this upstream source. A shortened version of this name will be used for tagging cached packages retrieved from this upstream.") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public GoUpstreamRequestPatch priority(java.math.BigInteger priority) { + this.priority = priority; + return this; + } + + /** + * Upstream sources are selected for resolving requests by sequential order (1..n), followed by creation date. + * minimum: 1 + * maximum: 32767 + * @return priority + **/ + @Min(1L) @Max(32767L) @ApiModelProperty(value = "Upstream sources are selected for resolving requests by sequential order (1..n), followed by creation date.") + public java.math.BigInteger getPriority() { + return priority; + } + + public void setPriority(java.math.BigInteger priority) { + this.priority = priority; + } + + public GoUpstreamRequestPatch upstreamUrl(String upstreamUrl) { + this.upstreamUrl = upstreamUrl; + return this; + } + + /** + * The URL for this upstream source. This must be a fully qualified URL including any path elements required to reach the root of the repository. + * @return upstreamUrl + **/ + @Size(min=1,max=200) @ApiModelProperty(value = "The URL for this upstream source. This must be a fully qualified URL including any path elements required to reach the root of the repository. ") + public String getUpstreamUrl() { + return upstreamUrl; + } + + public void setUpstreamUrl(String upstreamUrl) { + this.upstreamUrl = upstreamUrl; + } + + public GoUpstreamRequestPatch verifySsl(Boolean verifySsl) { + this.verifySsl = verifySsl; + return this; + } + + /** + * If enabled, SSL certificates are verified when requests are made to this upstream. It's recommended to leave this enabled for all public sources to help mitigate Man-In-The-Middle (MITM) attacks. Please note this only applies to HTTPS upstreams. + * @return verifySsl + **/ + @ApiModelProperty(value = "If enabled, SSL certificates are verified when requests are made to this upstream. It's recommended to leave this enabled for all public sources to help mitigate Man-In-The-Middle (MITM) attacks. Please note this only applies to HTTPS upstreams.") + public Boolean isVerifySsl() { + return verifySsl; + } + + public void setVerifySsl(Boolean verifySsl) { + this.verifySsl = verifySsl; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GoUpstreamRequestPatch goUpstreamRequestPatch = (GoUpstreamRequestPatch) o; + return Objects.equals(this.authMode, goUpstreamRequestPatch.authMode) && + Objects.equals(this.authSecret, goUpstreamRequestPatch.authSecret) && + Objects.equals(this.authUsername, goUpstreamRequestPatch.authUsername) && + Objects.equals(this.extraHeader1, goUpstreamRequestPatch.extraHeader1) && + Objects.equals(this.extraHeader2, goUpstreamRequestPatch.extraHeader2) && + Objects.equals(this.extraValue1, goUpstreamRequestPatch.extraValue1) && + Objects.equals(this.extraValue2, goUpstreamRequestPatch.extraValue2) && + Objects.equals(this.isActive, goUpstreamRequestPatch.isActive) && + Objects.equals(this.mode, goUpstreamRequestPatch.mode) && + Objects.equals(this.name, goUpstreamRequestPatch.name) && + Objects.equals(this.priority, goUpstreamRequestPatch.priority) && + Objects.equals(this.upstreamUrl, goUpstreamRequestPatch.upstreamUrl) && + Objects.equals(this.verifySsl, goUpstreamRequestPatch.verifySsl); + } + + @Override + public int hashCode() { + return Objects.hash(authMode, authSecret, authUsername, extraHeader1, extraHeader2, extraValue1, extraValue2, isActive, mode, name, priority, upstreamUrl, verifySsl); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GoUpstreamRequestPatch {\n"); + + sb.append(" authMode: ").append(toIndentedString(authMode)).append("\n"); + sb.append(" authSecret: ").append(toIndentedString(authSecret)).append("\n"); + sb.append(" authUsername: ").append(toIndentedString(authUsername)).append("\n"); + sb.append(" extraHeader1: ").append(toIndentedString(extraHeader1)).append("\n"); + sb.append(" extraHeader2: ").append(toIndentedString(extraHeader2)).append("\n"); + sb.append(" extraValue1: ").append(toIndentedString(extraValue1)).append("\n"); + sb.append(" extraValue2: ").append(toIndentedString(extraValue2)).append("\n"); + sb.append(" isActive: ").append(toIndentedString(isActive)).append("\n"); + sb.append(" mode: ").append(toIndentedString(mode)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" priority: ").append(toIndentedString(priority)).append("\n"); + sb.append(" upstreamUrl: ").append(toIndentedString(upstreamUrl)).append("\n"); + sb.append(" verifySsl: ").append(toIndentedString(verifySsl)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/InlineResponse200.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/InlineResponse200.java index e7d2c00c..acc8ef75 100644 --- a/bindings/java/src/src/main/java/io/cloudsmith/api/models/InlineResponse200.java +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/InlineResponse200.java @@ -20,7 +20,7 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.cloudsmith.api.models.UserAuthenticationToken; +import io.cloudsmith.api.models.PackageGroup; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -38,14 +38,14 @@ public class InlineResponse200 implements Serializable { private static final long serialVersionUID = 1L; @SerializedName("results") - private List results = new ArrayList<>(); + private List results = new ArrayList<>(); - public InlineResponse200 results(List results) { + public InlineResponse200 results(List results) { this.results = results; return this; } - public InlineResponse200 addResultsItem(UserAuthenticationToken resultsItem) { + public InlineResponse200 addResultsItem(PackageGroup resultsItem) { this.results.add(resultsItem); return this; } @@ -57,11 +57,11 @@ public InlineResponse200 addResultsItem(UserAuthenticationToken resultsItem) { @NotNull @Valid @ApiModelProperty(required = true, value = "") - public List getResults() { + public List getResults() { return results; } - public void setResults(List results) { + public void setResults(List results) { this.results = results; } diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/InlineResponse2001.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/InlineResponse2001.java new file mode 100644 index 00000000..7f764f4d --- /dev/null +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/InlineResponse2001.java @@ -0,0 +1,109 @@ +/* + * Cloudsmith API (v1) + * The API to the Cloudsmith Service + * + * OpenAPI spec version: v1 + * Contact: support@cloudsmith.io + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +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; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.cloudsmith.api.models.UserAuthenticationToken; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import java.io.Serializable; +import javax.validation.constraints.*; +import javax.validation.Valid; + +/** + * InlineResponse2001 + */ + +public class InlineResponse2001 implements Serializable { + private static final long serialVersionUID = 1L; + + @SerializedName("results") + private List results = new ArrayList<>(); + + public InlineResponse2001 results(List results) { + this.results = results; + return this; + } + + public InlineResponse2001 addResultsItem(UserAuthenticationToken resultsItem) { + this.results.add(resultsItem); + return this; + } + + /** + * Get results + * @return results + **/ + @NotNull + @Valid + @ApiModelProperty(required = true, value = "") + public List getResults() { + return results; + } + + public void setResults(List results) { + this.results = results; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + InlineResponse2001 inlineResponse2001 = (InlineResponse2001) o; + return Objects.equals(this.results, inlineResponse2001.results); + } + + @Override + public int hashCode() { + return Objects.hash(results); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class InlineResponse2001 {\n"); + + sb.append(" results: ").append(toIndentedString(results)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageGroup.java b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageGroup.java new file mode 100644 index 00000000..6110ae4d --- /dev/null +++ b/bindings/java/src/src/main/java/io/cloudsmith/api/models/PackageGroup.java @@ -0,0 +1,220 @@ +/* + * Cloudsmith API (v1) + * The API to the Cloudsmith Service + * + * OpenAPI spec version: v1 + * Contact: support@cloudsmith.io + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +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; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.time.OffsetDateTime; +import java.io.Serializable; +import javax.validation.constraints.*; +import javax.validation.Valid; + +/** + * PackageGroup + */ + +public class PackageGroup implements Serializable { + private static final long serialVersionUID = 1L; + + @SerializedName("backend_kind") + private java.math.BigInteger backendKind = null; + + @SerializedName("count") + private java.math.BigInteger count = null; + + @SerializedName("last_push") + private OffsetDateTime lastPush = null; + + @SerializedName("name") + private String name = null; + + @SerializedName("num_downloads") + private java.math.BigInteger numDownloads = null; + + @SerializedName("size") + private java.math.BigInteger size = null; + + public PackageGroup backendKind(java.math.BigInteger backendKind) { + this.backendKind = backendKind; + return this; + } + + /** + * Get backendKind + * @return backendKind + **/ + @ApiModelProperty(value = "") + public java.math.BigInteger getBackendKind() { + return backendKind; + } + + public void setBackendKind(java.math.BigInteger backendKind) { + this.backendKind = backendKind; + } + + public PackageGroup count(java.math.BigInteger count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @NotNull + @ApiModelProperty(required = true, value = "") + public java.math.BigInteger getCount() { + return count; + } + + public void setCount(java.math.BigInteger count) { + this.count = count; + } + + public PackageGroup lastPush(OffsetDateTime lastPush) { + this.lastPush = lastPush; + return this; + } + + /** + * Get lastPush + * @return lastPush + **/ + @NotNull + @Valid + @ApiModelProperty(required = true, value = "") + public OffsetDateTime getLastPush() { + return lastPush; + } + + public void setLastPush(OffsetDateTime lastPush) { + this.lastPush = lastPush; + } + + public PackageGroup name(String name) { + this.name = name; + return this; + } + + /** + * Get name + * @return name + **/ + @Size(min=1) @ApiModelProperty(value = "") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public PackageGroup numDownloads(java.math.BigInteger numDownloads) { + this.numDownloads = numDownloads; + return this; + } + + /** + * Get numDownloads + * @return numDownloads + **/ + @NotNull + @ApiModelProperty(required = true, value = "") + public java.math.BigInteger getNumDownloads() { + return numDownloads; + } + + public void setNumDownloads(java.math.BigInteger numDownloads) { + this.numDownloads = numDownloads; + } + + public PackageGroup size(java.math.BigInteger size) { + this.size = size; + return this; + } + + /** + * Get size + * @return size + **/ + @NotNull + @ApiModelProperty(required = true, value = "") + public java.math.BigInteger getSize() { + return size; + } + + public void setSize(java.math.BigInteger size) { + this.size = size; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PackageGroup packageGroup = (PackageGroup) o; + return Objects.equals(this.backendKind, packageGroup.backendKind) && + Objects.equals(this.count, packageGroup.count) && + Objects.equals(this.lastPush, packageGroup.lastPush) && + Objects.equals(this.name, packageGroup.name) && + Objects.equals(this.numDownloads, packageGroup.numDownloads) && + Objects.equals(this.size, packageGroup.size); + } + + @Override + public int hashCode() { + return Objects.hash(backendKind, count, lastPush, name, numDownloads, size); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PackageGroup {\n"); + + sb.append(" backendKind: ").append(toIndentedString(backendKind)).append("\n"); + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" lastPush: ").append(toIndentedString(lastPush)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" numDownloads: ").append(toIndentedString(numDownloads)).append("\n"); + sb.append(" size: ").append(toIndentedString(size)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + 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 e4703549..63c8ecad 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 @@ -38,7 +38,7 @@ public class StatusBasic implements Serializable { private String detail = "Cloudsmith API is operational."; @SerializedName("version") - private String version = "1.674.0"; + private String version = "1.698.0"; /** * The message describing the state of the API. 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 9ca9b636..d6825ed0 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 @@ -40,6 +40,7 @@ import io.cloudsmith.api.models.HelmPackageUploadRequest; import io.cloudsmith.api.models.HexPackageUpload; import io.cloudsmith.api.models.HexPackageUploadRequest; +import io.cloudsmith.api.models.InlineResponse200; import io.cloudsmith.api.models.LuarocksPackageUpload; import io.cloudsmith.api.models.LuarocksPackageUploadRequest; import io.cloudsmith.api.models.MavenPackageUpload; @@ -148,6 +149,28 @@ public void packagesDependenciesTest() throws Exception { // TODO: test validations } + /** + * Return a list of Package Groups in a repository. + * + * Return a list of Package Groups in a repository. + * + * @throws Exception + * if the Api call fails + */ + @Test + public void packagesGroupsListTest() throws Exception { + String owner = null; + String repo = null; + java.math.BigInteger page = null; + java.math.BigInteger pageSize = null; + String groupBy = null; + String query = null; + String sort = null; + InlineResponse200 response = api.packagesGroupsList(owner, repo, page, pageSize, groupBy, query, sort); + + // TODO: test validations + } + /** * Get a list of all packages associated with repository. * 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 0bdc6e45..d3a6aff4 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,6 +13,9 @@ package io.cloudsmith.api.apis; +import io.cloudsmith.api.models.CargoUpstream; +import io.cloudsmith.api.models.CargoUpstreamRequest; +import io.cloudsmith.api.models.CargoUpstreamRequestPatch; import io.cloudsmith.api.models.ComposerUpstream; import io.cloudsmith.api.models.ComposerUpstreamRequest; import io.cloudsmith.api.models.ComposerUpstreamRequestPatch; @@ -29,6 +32,9 @@ import io.cloudsmith.api.models.DockerUpstreamRequest; import io.cloudsmith.api.models.DockerUpstreamRequestPatch; import io.cloudsmith.api.models.ErrorDetail; +import io.cloudsmith.api.models.GoUpstream; +import io.cloudsmith.api.models.GoUpstreamRequest; +import io.cloudsmith.api.models.GoUpstreamRequestPatch; import io.cloudsmith.api.models.HelmUpstream; import io.cloudsmith.api.models.HelmUpstreamRequest; import io.cloudsmith.api.models.HelmUpstreamRequestPatch; @@ -574,6 +580,117 @@ public void reposTransferRegionTest() throws Exception { // TODO: test validations } + /** + * Create a Cargo upstream config for this repository. + * + * Create a Cargo upstream config for this repository. + * + * @throws Exception + * if the Api call fails + */ + @Test + public void reposUpstreamCargoCreateTest() throws Exception { + String owner = null; + String identifier = null; + CargoUpstreamRequest data = null; + CargoUpstream response = api.reposUpstreamCargoCreate(owner, identifier, data); + + // TODO: test validations + } + + /** + * Delete a Cargo upstream config for this repository. + * + * Delete a Cargo upstream config for this repository. + * + * @throws Exception + * if the Api call fails + */ + @Test + public void reposUpstreamCargoDeleteTest() throws Exception { + String owner = null; + String identifier = null; + String slugPerm = null; + api.reposUpstreamCargoDelete(owner, identifier, slugPerm); + + // TODO: test validations + } + + /** + * List Cargo upstream configs for this repository. + * + * List Cargo upstream configs for this repository. + * + * @throws Exception + * if the Api call fails + */ + @Test + public void reposUpstreamCargoListTest() throws Exception { + String owner = null; + String identifier = null; + java.math.BigInteger page = null; + java.math.BigInteger pageSize = null; + List response = api.reposUpstreamCargoList(owner, identifier, page, pageSize); + + // TODO: test validations + } + + /** + * Partially update a Cargo upstream config for this repository. + * + * Partially update a Cargo upstream config for this repository. + * + * @throws Exception + * if the Api call fails + */ + @Test + public void reposUpstreamCargoPartialUpdateTest() throws Exception { + String owner = null; + String identifier = null; + String slugPerm = null; + CargoUpstreamRequestPatch data = null; + CargoUpstream response = api.reposUpstreamCargoPartialUpdate(owner, identifier, slugPerm, data); + + // TODO: test validations + } + + /** + * Retrieve a Cargo upstream config for this repository. + * + * Retrieve a Cargo upstream config for this repository. + * + * @throws Exception + * if the Api call fails + */ + @Test + public void reposUpstreamCargoReadTest() throws Exception { + String owner = null; + String identifier = null; + String slugPerm = null; + CargoUpstream response = api.reposUpstreamCargoRead(owner, identifier, slugPerm); + + // TODO: test validations + } + + /** + * Update a Cargo upstream config for this repository. + * + * Update a Cargo upstream config for this repository. + * + * @throws Exception + * if the Api call fails + */ + @Test + public void reposUpstreamCargoUpdateTest() throws Exception { + String owner = null; + String identifier = null; + String slugPerm = null; + CargoUpstreamRequest data = null; + CargoUpstream response = api.reposUpstreamCargoUpdate(owner, identifier, slugPerm, data); + + // TODO: test validations + } + /** * Create a Composer upstream config for this repository. * @@ -1129,6 +1246,117 @@ public void reposUpstreamDockerUpdateTest() throws Exception { // TODO: test validations } + /** + * Create a Go upstream config for this repository. + * + * Create a Go upstream config for this repository. + * + * @throws Exception + * if the Api call fails + */ + @Test + public void reposUpstreamGoCreateTest() throws Exception { + String owner = null; + String identifier = null; + GoUpstreamRequest data = null; + GoUpstream response = api.reposUpstreamGoCreate(owner, identifier, data); + + // TODO: test validations + } + + /** + * Delete a Go upstream config for this repository. + * + * Delete a Go upstream config for this repository. + * + * @throws Exception + * if the Api call fails + */ + @Test + public void reposUpstreamGoDeleteTest() throws Exception { + String owner = null; + String identifier = null; + String slugPerm = null; + api.reposUpstreamGoDelete(owner, identifier, slugPerm); + + // TODO: test validations + } + + /** + * List Go upstream configs for this repository. + * + * List Go upstream configs for this repository. + * + * @throws Exception + * if the Api call fails + */ + @Test + public void reposUpstreamGoListTest() throws Exception { + String owner = null; + String identifier = null; + java.math.BigInteger page = null; + java.math.BigInteger pageSize = null; + List response = api.reposUpstreamGoList(owner, identifier, page, pageSize); + + // TODO: test validations + } + + /** + * Partially update a Go upstream config for this repository. + * + * Partially update a Go upstream config for this repository. + * + * @throws Exception + * if the Api call fails + */ + @Test + public void reposUpstreamGoPartialUpdateTest() throws Exception { + String owner = null; + String identifier = null; + String slugPerm = null; + GoUpstreamRequestPatch data = null; + GoUpstream response = api.reposUpstreamGoPartialUpdate(owner, identifier, slugPerm, data); + + // TODO: test validations + } + + /** + * Retrieve a Go upstream config for this repository. + * + * Retrieve a Go upstream config for this repository. + * + * @throws Exception + * if the Api call fails + */ + @Test + public void reposUpstreamGoReadTest() throws Exception { + String owner = null; + String identifier = null; + String slugPerm = null; + GoUpstream response = api.reposUpstreamGoRead(owner, identifier, slugPerm); + + // TODO: test validations + } + + /** + * Update a Go upstream config for this repository. + * + * Update a Go upstream config for this repository. + * + * @throws Exception + * if the Api call fails + */ + @Test + public void reposUpstreamGoUpdateTest() throws Exception { + String owner = null; + String identifier = null; + String slugPerm = null; + GoUpstreamRequest data = null; + GoUpstream response = api.reposUpstreamGoUpdate(owner, identifier, slugPerm, data); + + // TODO: test validations + } + /** * Create a Helm upstream config for this repository. * 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 b50d739c..93dd3972 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 @@ -14,7 +14,7 @@ package io.cloudsmith.api.apis; import io.cloudsmith.api.models.ErrorDetail; -import io.cloudsmith.api.models.InlineResponse200; +import io.cloudsmith.api.models.InlineResponse2001; import io.cloudsmith.api.models.UserAuthToken; import io.cloudsmith.api.models.UserAuthTokenRequest; import io.cloudsmith.api.models.UserAuthenticationToken; @@ -95,7 +95,7 @@ public void userTokensCreateTest() throws Exception { public void userTokensListTest() throws Exception { java.math.BigInteger page = null; java.math.BigInteger pageSize = null; - InlineResponse200 response = api.userTokensList(page, pageSize); + InlineResponse2001 response = api.userTokensList(page, pageSize); // TODO: test validations } diff --git a/bindings/python/src/README.md b/bindings/python/src/README.md index 4019e46c..a42bf5e4 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: 2.0.18 +- Package version: 2.0.1 - Build package: io.swagger.codegen.languages.PythonClientCodegen For more information, please visit [https://help.cloudsmith.io](https://help.cloudsmith.io) @@ -185,6 +185,7 @@ Class | Method | HTTP request | Description *PackagesApi* | [**packages_copy**](docs/PackagesApi.md#packages_copy) | **POST** /packages/{owner}/{repo}/{identifier}/copy/ | Copy a package to another repository. *PackagesApi* | [**packages_delete**](docs/PackagesApi.md#packages_delete) | **DELETE** /packages/{owner}/{repo}/{identifier}/ | Delete a specific package in a repository. *PackagesApi* | [**packages_dependencies**](docs/PackagesApi.md#packages_dependencies) | **GET** /packages/{owner}/{repo}/{identifier}/dependencies/ | Get the list of dependencies for a package. Transitive dependencies are included where supported. +*PackagesApi* | [**packages_groups_list**](docs/PackagesApi.md#packages_groups_list) | **GET** /packages/{owner}/{repo}/groups/ | Return a list of Package Groups in a repository. *PackagesApi* | [**packages_list**](docs/PackagesApi.md#packages_list) | **GET** /packages/{owner}/{repo}/ | Get a list of all packages associated with repository. *PackagesApi* | [**packages_move**](docs/PackagesApi.md#packages_move) | **POST** /packages/{owner}/{repo}/{identifier}/move/ | Move a package to another repository. *PackagesApi* | [**packages_quarantine**](docs/PackagesApi.md#packages_quarantine) | **POST** /packages/{owner}/{repo}/{identifier}/quarantine/ | Quarantine or release a package. @@ -275,6 +276,12 @@ Class | Method | HTTP request | Description *ReposApi* | [**repos_rsa_list**](docs/ReposApi.md#repos_rsa_list) | **GET** /repos/{owner}/{identifier}/rsa/ | Retrieve the active RSA key for the Repository. *ReposApi* | [**repos_rsa_regenerate**](docs/ReposApi.md#repos_rsa_regenerate) | **POST** /repos/{owner}/{identifier}/rsa/regenerate/ | Regenerate RSA Key for the Repository. *ReposApi* | [**repos_transfer_region**](docs/ReposApi.md#repos_transfer_region) | **POST** /repos/{owner}/{repo}/transfer-region/ | Transfer a repository to a different region. +*ReposApi* | [**repos_upstream_cargo_create**](docs/ReposApi.md#repos_upstream_cargo_create) | **POST** /repos/{owner}/{identifier}/upstream/cargo/ | Create a Cargo upstream config for this repository. +*ReposApi* | [**repos_upstream_cargo_delete**](docs/ReposApi.md#repos_upstream_cargo_delete) | **DELETE** /repos/{owner}/{identifier}/upstream/cargo/{slug_perm}/ | Delete a Cargo upstream config for this repository. +*ReposApi* | [**repos_upstream_cargo_list**](docs/ReposApi.md#repos_upstream_cargo_list) | **GET** /repos/{owner}/{identifier}/upstream/cargo/ | List Cargo upstream configs for this repository. +*ReposApi* | [**repos_upstream_cargo_partial_update**](docs/ReposApi.md#repos_upstream_cargo_partial_update) | **PATCH** /repos/{owner}/{identifier}/upstream/cargo/{slug_perm}/ | Partially update a Cargo upstream config for this repository. +*ReposApi* | [**repos_upstream_cargo_read**](docs/ReposApi.md#repos_upstream_cargo_read) | **GET** /repos/{owner}/{identifier}/upstream/cargo/{slug_perm}/ | Retrieve a Cargo upstream config for this repository. +*ReposApi* | [**repos_upstream_cargo_update**](docs/ReposApi.md#repos_upstream_cargo_update) | **PUT** /repos/{owner}/{identifier}/upstream/cargo/{slug_perm}/ | Update a Cargo upstream config for this repository. *ReposApi* | [**repos_upstream_composer_create**](docs/ReposApi.md#repos_upstream_composer_create) | **POST** /repos/{owner}/{identifier}/upstream/composer/ | Create a Composer upstream config for this repository. *ReposApi* | [**repos_upstream_composer_delete**](docs/ReposApi.md#repos_upstream_composer_delete) | **DELETE** /repos/{owner}/{identifier}/upstream/composer/{slug_perm}/ | Delete a Composer upstream config for this repository. *ReposApi* | [**repos_upstream_composer_list**](docs/ReposApi.md#repos_upstream_composer_list) | **GET** /repos/{owner}/{identifier}/upstream/composer/ | List Composer upstream configs for this repository. @@ -305,6 +312,12 @@ Class | Method | HTTP request | Description *ReposApi* | [**repos_upstream_docker_partial_update**](docs/ReposApi.md#repos_upstream_docker_partial_update) | **PATCH** /repos/{owner}/{identifier}/upstream/docker/{slug_perm}/ | Partially update a Docker upstream config for this repository. *ReposApi* | [**repos_upstream_docker_read**](docs/ReposApi.md#repos_upstream_docker_read) | **GET** /repos/{owner}/{identifier}/upstream/docker/{slug_perm}/ | Retrieve a Docker upstream config for this repository. *ReposApi* | [**repos_upstream_docker_update**](docs/ReposApi.md#repos_upstream_docker_update) | **PUT** /repos/{owner}/{identifier}/upstream/docker/{slug_perm}/ | Update a Docker upstream config for this repository. +*ReposApi* | [**repos_upstream_go_create**](docs/ReposApi.md#repos_upstream_go_create) | **POST** /repos/{owner}/{identifier}/upstream/go/ | Create a Go upstream config for this repository. +*ReposApi* | [**repos_upstream_go_delete**](docs/ReposApi.md#repos_upstream_go_delete) | **DELETE** /repos/{owner}/{identifier}/upstream/go/{slug_perm}/ | Delete a Go upstream config for this repository. +*ReposApi* | [**repos_upstream_go_list**](docs/ReposApi.md#repos_upstream_go_list) | **GET** /repos/{owner}/{identifier}/upstream/go/ | List Go upstream configs for this repository. +*ReposApi* | [**repos_upstream_go_partial_update**](docs/ReposApi.md#repos_upstream_go_partial_update) | **PATCH** /repos/{owner}/{identifier}/upstream/go/{slug_perm}/ | Partially update a Go upstream config for this repository. +*ReposApi* | [**repos_upstream_go_read**](docs/ReposApi.md#repos_upstream_go_read) | **GET** /repos/{owner}/{identifier}/upstream/go/{slug_perm}/ | Retrieve a Go upstream config for this repository. +*ReposApi* | [**repos_upstream_go_update**](docs/ReposApi.md#repos_upstream_go_update) | **PUT** /repos/{owner}/{identifier}/upstream/go/{slug_perm}/ | Update a Go upstream config for this repository. *ReposApi* | [**repos_upstream_helm_create**](docs/ReposApi.md#repos_upstream_helm_create) | **POST** /repos/{owner}/{identifier}/upstream/helm/ | Create a Helm upstream config for this repository. *ReposApi* | [**repos_upstream_helm_delete**](docs/ReposApi.md#repos_upstream_helm_delete) | **DELETE** /repos/{owner}/{identifier}/upstream/helm/{slug_perm}/ | Delete a Helm upstream config for this repository. *ReposApi* | [**repos_upstream_helm_list**](docs/ReposApi.md#repos_upstream_helm_list) | **GET** /repos/{owner}/{identifier}/upstream/helm/ | List Helm upstream configs for this repository. @@ -391,6 +404,9 @@ Class | Method | HTTP request | Description - [Architecture](docs/Architecture.md) - [CargoPackageUpload](docs/CargoPackageUpload.md) - [CargoPackageUploadRequest](docs/CargoPackageUploadRequest.md) + - [CargoUpstream](docs/CargoUpstream.md) + - [CargoUpstreamRequest](docs/CargoUpstreamRequest.md) + - [CargoUpstreamRequestPatch](docs/CargoUpstreamRequestPatch.md) - [CocoapodsPackageUpload](docs/CocoapodsPackageUpload.md) - [CocoapodsPackageUploadRequest](docs/CocoapodsPackageUploadRequest.md) - [CommonBandwidthMetrics](docs/CommonBandwidthMetrics.md) @@ -439,6 +455,9 @@ Class | Method | HTTP request | Description - [GeoIpLocation](docs/GeoIpLocation.md) - [GoPackageUpload](docs/GoPackageUpload.md) - [GoPackageUploadRequest](docs/GoPackageUploadRequest.md) + - [GoUpstream](docs/GoUpstream.md) + - [GoUpstreamRequest](docs/GoUpstreamRequest.md) + - [GoUpstreamRequestPatch](docs/GoUpstreamRequestPatch.md) - [HelmPackageUpload](docs/HelmPackageUpload.md) - [HelmPackageUploadRequest](docs/HelmPackageUploadRequest.md) - [HelmUpstream](docs/HelmUpstream.md) @@ -453,6 +472,7 @@ Class | Method | HTTP request | Description - [HistoryFieldset](docs/HistoryFieldset.md) - [HistoryFieldsetRaw](docs/HistoryFieldsetRaw.md) - [InlineResponse200](docs/InlineResponse200.md) + - [InlineResponse2001](docs/InlineResponse2001.md) - [LuarocksPackageUpload](docs/LuarocksPackageUpload.md) - [LuarocksPackageUploadRequest](docs/LuarocksPackageUploadRequest.md) - [MavenPackageUpload](docs/MavenPackageUpload.md) @@ -518,6 +538,7 @@ Class | Method | HTTP request | Description - [PackageFilePartsUpload](docs/PackageFilePartsUpload.md) - [PackageFileUpload](docs/PackageFileUpload.md) - [PackageFileUploadRequest](docs/PackageFileUploadRequest.md) + - [PackageGroup](docs/PackageGroup.md) - [PackageLicensePolicyEvaluationRequest](docs/PackageLicensePolicyEvaluationRequest.md) - [PackageLicensePolicyEvaluationRequestRequest](docs/PackageLicensePolicyEvaluationRequestRequest.md) - [PackageLicensePolicyViolationLog](docs/PackageLicensePolicyViolationLog.md) diff --git a/bindings/python/src/build.json b/bindings/python/src/build.json index 25d4d14c..cc5c6670 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": "2.0.18", + "packageVersion": "2.0.1", "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 6f72652a..06723c70 100644 --- a/bindings/python/src/cloudsmith_api/__init__.py +++ b/bindings/python/src/cloudsmith_api/__init__.py @@ -47,6 +47,9 @@ from cloudsmith_api.models.architecture import Architecture from cloudsmith_api.models.cargo_package_upload import CargoPackageUpload from cloudsmith_api.models.cargo_package_upload_request import CargoPackageUploadRequest +from cloudsmith_api.models.cargo_upstream import CargoUpstream +from cloudsmith_api.models.cargo_upstream_request import CargoUpstreamRequest +from cloudsmith_api.models.cargo_upstream_request_patch import CargoUpstreamRequestPatch from cloudsmith_api.models.cocoapods_package_upload import CocoapodsPackageUpload from cloudsmith_api.models.cocoapods_package_upload_request import CocoapodsPackageUploadRequest from cloudsmith_api.models.common_bandwidth_metrics import CommonBandwidthMetrics @@ -95,6 +98,9 @@ from cloudsmith_api.models.geo_ip_location import GeoIpLocation from cloudsmith_api.models.go_package_upload import GoPackageUpload from cloudsmith_api.models.go_package_upload_request import GoPackageUploadRequest +from cloudsmith_api.models.go_upstream import GoUpstream +from cloudsmith_api.models.go_upstream_request import GoUpstreamRequest +from cloudsmith_api.models.go_upstream_request_patch import GoUpstreamRequestPatch from cloudsmith_api.models.helm_package_upload import HelmPackageUpload from cloudsmith_api.models.helm_package_upload_request import HelmPackageUploadRequest from cloudsmith_api.models.helm_upstream import HelmUpstream @@ -109,6 +115,7 @@ from cloudsmith_api.models.history_fieldset import HistoryFieldset from cloudsmith_api.models.history_fieldset_raw import HistoryFieldsetRaw from cloudsmith_api.models.inline_response200 import InlineResponse200 +from cloudsmith_api.models.inline_response2001 import InlineResponse2001 from cloudsmith_api.models.luarocks_package_upload import LuarocksPackageUpload from cloudsmith_api.models.luarocks_package_upload_request import LuarocksPackageUploadRequest from cloudsmith_api.models.maven_package_upload import MavenPackageUpload @@ -174,6 +181,7 @@ from cloudsmith_api.models.package_file_parts_upload import PackageFilePartsUpload from cloudsmith_api.models.package_file_upload import PackageFileUpload from cloudsmith_api.models.package_file_upload_request import PackageFileUploadRequest +from cloudsmith_api.models.package_group import PackageGroup from cloudsmith_api.models.package_license_policy_evaluation_request import PackageLicensePolicyEvaluationRequest from cloudsmith_api.models.package_license_policy_evaluation_request_request import PackageLicensePolicyEvaluationRequestRequest from cloudsmith_api.models.package_license_policy_violation_log import PackageLicensePolicyViolationLog diff --git a/bindings/python/src/cloudsmith_api/api/packages_api.py b/bindings/python/src/cloudsmith_api/api/packages_api.py index 79a8b5be..0c059171 100644 --- a/bindings/python/src/cloudsmith_api/api/packages_api.py +++ b/bindings/python/src/cloudsmith_api/api/packages_api.py @@ -382,6 +382,133 @@ def packages_dependencies_with_http_info(self, owner, repo, identifier, **kwargs _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def packages_groups_list(self, owner, repo, **kwargs): # noqa: E501 + """Return a list of Package Groups in a repository. # noqa: E501 + + Return a list of Package Groups 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_groups_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 group_by: A field to group packages by. Available options: name, backend_kind. + :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. Use `-` prefix for descending order (e.g., `-name`). Available options: name, count, num_downloads, size, last_push, backend_kind. + :return: InlineResponse200 + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.packages_groups_list_with_http_info(owner, repo, **kwargs) # noqa: E501 + else: + (data) = self.packages_groups_list_with_http_info(owner, repo, **kwargs) # noqa: E501 + return data + + def packages_groups_list_with_http_info(self, owner, repo, **kwargs): # noqa: E501 + """Return a list of Package Groups in a repository. # noqa: E501 + + Return a list of Package Groups 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_groups_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 group_by: A field to group packages by. Available options: name, backend_kind. + :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. Use `-` prefix for descending order (e.g., `-name`). Available options: name, count, num_downloads, size, last_push, backend_kind. + :return: InlineResponse200 + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['owner', 'repo', 'page', 'page_size', 'group_by', '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_groups_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_groups_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_groups_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 'group_by' in params: + query_params.append(('group_by', params['group_by'])) # 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 + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # 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', 'basic'] # noqa: E501 + + return self.api_client.call_api( + '/packages/{owner}/{repo}/groups/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='InlineResponse200', # 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 diff --git a/bindings/python/src/cloudsmith_api/api/repos_api.py b/bindings/python/src/cloudsmith_api/api/repos_api.py index c0078a7e..a0bc09c6 100644 --- a/bindings/python/src/cloudsmith_api/api/repos_api.py +++ b/bindings/python/src/cloudsmith_api/api/repos_api.py @@ -2978,44 +2978,44 @@ def repos_transfer_region_with_http_info(self, owner, repo, **kwargs): # noqa: _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def repos_upstream_composer_create(self, owner, identifier, **kwargs): # noqa: E501 - """Create a Composer upstream config for this repository. # noqa: E501 + def repos_upstream_cargo_create(self, owner, identifier, **kwargs): # noqa: E501 + """Create a Cargo upstream config for this repository. # noqa: E501 - Create a Composer upstream config for this repository. # noqa: E501 + Create a Cargo upstream config for this 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_upstream_composer_create(owner, identifier, async_req=True) + >>> thread = api.repos_upstream_cargo_create(owner, identifier, async_req=True) >>> result = thread.get() :param async_req bool :param str owner: (required) :param str identifier: (required) - :param ComposerUpstreamRequest data: - :return: ComposerUpstream + :param CargoUpstreamRequest data: + :return: CargoUpstream If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.repos_upstream_composer_create_with_http_info(owner, identifier, **kwargs) # noqa: E501 + return self.repos_upstream_cargo_create_with_http_info(owner, identifier, **kwargs) # noqa: E501 else: - (data) = self.repos_upstream_composer_create_with_http_info(owner, identifier, **kwargs) # noqa: E501 + (data) = self.repos_upstream_cargo_create_with_http_info(owner, identifier, **kwargs) # noqa: E501 return data - def repos_upstream_composer_create_with_http_info(self, owner, identifier, **kwargs): # noqa: E501 - """Create a Composer upstream config for this repository. # noqa: E501 + def repos_upstream_cargo_create_with_http_info(self, owner, identifier, **kwargs): # noqa: E501 + """Create a Cargo upstream config for this repository. # noqa: E501 - Create a Composer upstream config for this repository. # noqa: E501 + Create a Cargo upstream config for this 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_upstream_composer_create_with_http_info(owner, identifier, async_req=True) + >>> thread = api.repos_upstream_cargo_create_with_http_info(owner, identifier, async_req=True) >>> result = thread.get() :param async_req bool :param str owner: (required) :param str identifier: (required) - :param ComposerUpstreamRequest data: - :return: ComposerUpstream + :param CargoUpstreamRequest data: + :return: CargoUpstream If the method is called asynchronously, returns the request thread. """ @@ -3031,18 +3031,18 @@ def repos_upstream_composer_create_with_http_info(self, owner, identifier, **kwa if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method repos_upstream_composer_create" % key + " to method repos_upstream_cargo_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_upstream_composer_create`") # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `repos_upstream_cargo_create`") # 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_upstream_composer_create`") # noqa: E501 + raise ValueError("Missing the required parameter `identifier` when calling `repos_upstream_cargo_create`") # noqa: E501 collection_formats = {} @@ -3074,14 +3074,14 @@ def repos_upstream_composer_create_with_http_info(self, owner, identifier, **kwa auth_settings = ['apikey', 'basic'] # noqa: E501 return self.api_client.call_api( - '/repos/{owner}/{identifier}/upstream/composer/', 'POST', + '/repos/{owner}/{identifier}/upstream/cargo/', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='ComposerUpstream', # noqa: E501 + response_type='CargoUpstream', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -3089,13 +3089,13 @@ def repos_upstream_composer_create_with_http_info(self, owner, identifier, **kwa _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def repos_upstream_composer_delete(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 - """Delete a Composer upstream config for this repository. # noqa: E501 + def repos_upstream_cargo_delete(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Delete a Cargo upstream config for this repository. # noqa: E501 - Delete a Composer upstream config for this repository. # noqa: E501 + Delete a Cargo upstream config for this 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_upstream_composer_delete(owner, identifier, slug_perm, async_req=True) + >>> thread = api.repos_upstream_cargo_delete(owner, identifier, slug_perm, async_req=True) >>> result = thread.get() :param async_req bool @@ -3108,18 +3108,18 @@ def repos_upstream_composer_delete(self, owner, identifier, slug_perm, **kwargs) """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.repos_upstream_composer_delete_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 + return self.repos_upstream_cargo_delete_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 else: - (data) = self.repos_upstream_composer_delete_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 + (data) = self.repos_upstream_cargo_delete_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 return data - def repos_upstream_composer_delete_with_http_info(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 - """Delete a Composer upstream config for this repository. # noqa: E501 + def repos_upstream_cargo_delete_with_http_info(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Delete a Cargo upstream config for this repository. # noqa: E501 - Delete a Composer upstream config for this repository. # noqa: E501 + Delete a Cargo upstream config for this 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_upstream_composer_delete_with_http_info(owner, identifier, slug_perm, async_req=True) + >>> thread = api.repos_upstream_cargo_delete_with_http_info(owner, identifier, slug_perm, async_req=True) >>> result = thread.get() :param async_req bool @@ -3142,22 +3142,22 @@ def repos_upstream_composer_delete_with_http_info(self, owner, identifier, slug_ if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method repos_upstream_composer_delete" % key + " to method repos_upstream_cargo_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_upstream_composer_delete`") # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `repos_upstream_cargo_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_upstream_composer_delete`") # noqa: E501 + raise ValueError("Missing the required parameter `identifier` when calling `repos_upstream_cargo_delete`") # noqa: E501 # verify the required parameter 'slug_perm' is set if self.api_client.client_side_validation and ('slug_perm' not in params or params['slug_perm'] is None): # noqa: E501 - raise ValueError("Missing the required parameter `slug_perm` when calling `repos_upstream_composer_delete`") # noqa: E501 + raise ValueError("Missing the required parameter `slug_perm` when calling `repos_upstream_cargo_delete`") # noqa: E501 collection_formats = {} @@ -3189,7 +3189,7 @@ def repos_upstream_composer_delete_with_http_info(self, owner, identifier, slug_ auth_settings = ['apikey', 'basic'] # noqa: E501 return self.api_client.call_api( - '/repos/{owner}/{identifier}/upstream/composer/{slug_perm}/', 'DELETE', + '/repos/{owner}/{identifier}/upstream/cargo/{slug_perm}/', 'DELETE', path_params, query_params, header_params, @@ -3204,13 +3204,13 @@ def repos_upstream_composer_delete_with_http_info(self, owner, identifier, slug_ _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def repos_upstream_composer_list(self, owner, identifier, **kwargs): # noqa: E501 - """List Composer upstream configs for this repository. # noqa: E501 + def repos_upstream_cargo_list(self, owner, identifier, **kwargs): # noqa: E501 + """List Cargo upstream configs for this repository. # noqa: E501 - List Composer upstream configs for this repository. # noqa: E501 + List Cargo upstream configs for this 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_upstream_composer_list(owner, identifier, async_req=True) + >>> thread = api.repos_upstream_cargo_list(owner, identifier, async_req=True) >>> result = thread.get() :param async_req bool @@ -3218,24 +3218,24 @@ def repos_upstream_composer_list(self, owner, identifier, **kwargs): # noqa: E5 :param str identifier: (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[ComposerUpstream] + :return: list[CargoUpstream] If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.repos_upstream_composer_list_with_http_info(owner, identifier, **kwargs) # noqa: E501 + return self.repos_upstream_cargo_list_with_http_info(owner, identifier, **kwargs) # noqa: E501 else: - (data) = self.repos_upstream_composer_list_with_http_info(owner, identifier, **kwargs) # noqa: E501 + (data) = self.repos_upstream_cargo_list_with_http_info(owner, identifier, **kwargs) # noqa: E501 return data - def repos_upstream_composer_list_with_http_info(self, owner, identifier, **kwargs): # noqa: E501 - """List Composer upstream configs for this repository. # noqa: E501 + def repos_upstream_cargo_list_with_http_info(self, owner, identifier, **kwargs): # noqa: E501 + """List Cargo upstream configs for this repository. # noqa: E501 - List Composer upstream configs for this repository. # noqa: E501 + List Cargo upstream configs for this 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_upstream_composer_list_with_http_info(owner, identifier, async_req=True) + >>> thread = api.repos_upstream_cargo_list_with_http_info(owner, identifier, async_req=True) >>> result = thread.get() :param async_req bool @@ -3243,7 +3243,7 @@ def repos_upstream_composer_list_with_http_info(self, owner, identifier, **kwarg :param str identifier: (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[ComposerUpstream] + :return: list[CargoUpstream] If the method is called asynchronously, returns the request thread. """ @@ -3259,18 +3259,18 @@ def repos_upstream_composer_list_with_http_info(self, owner, identifier, **kwarg if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method repos_upstream_composer_list" % key + " to method repos_upstream_cargo_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_upstream_composer_list`") # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `repos_upstream_cargo_list`") # 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_upstream_composer_list`") # noqa: E501 + raise ValueError("Missing the required parameter `identifier` when calling `repos_upstream_cargo_list`") # noqa: E501 collection_formats = {} @@ -3304,14 +3304,14 @@ def repos_upstream_composer_list_with_http_info(self, owner, identifier, **kwarg auth_settings = ['apikey', 'basic'] # noqa: E501 return self.api_client.call_api( - '/repos/{owner}/{identifier}/upstream/composer/', 'GET', + '/repos/{owner}/{identifier}/upstream/cargo/', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='list[ComposerUpstream]', # noqa: E501 + response_type='list[CargoUpstream]', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -3319,46 +3319,46 @@ def repos_upstream_composer_list_with_http_info(self, owner, identifier, **kwarg _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def repos_upstream_composer_partial_update(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 - """Partially update a Composer upstream config for this repository. # noqa: E501 + def repos_upstream_cargo_partial_update(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Partially update a Cargo upstream config for this repository. # noqa: E501 - Partially update a Composer upstream config for this repository. # noqa: E501 + Partially update a Cargo upstream config for this 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_upstream_composer_partial_update(owner, identifier, slug_perm, async_req=True) + >>> thread = api.repos_upstream_cargo_partial_update(owner, identifier, slug_perm, async_req=True) >>> result = thread.get() :param async_req bool :param str owner: (required) :param str identifier: (required) :param str slug_perm: (required) - :param ComposerUpstreamRequestPatch data: - :return: ComposerUpstream + :param CargoUpstreamRequestPatch data: + :return: CargoUpstream If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.repos_upstream_composer_partial_update_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 + return self.repos_upstream_cargo_partial_update_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 else: - (data) = self.repos_upstream_composer_partial_update_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 + (data) = self.repos_upstream_cargo_partial_update_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 return data - def repos_upstream_composer_partial_update_with_http_info(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 - """Partially update a Composer upstream config for this repository. # noqa: E501 + def repos_upstream_cargo_partial_update_with_http_info(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Partially update a Cargo upstream config for this repository. # noqa: E501 - Partially update a Composer upstream config for this repository. # noqa: E501 + Partially update a Cargo upstream config for this 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_upstream_composer_partial_update_with_http_info(owner, identifier, slug_perm, async_req=True) + >>> thread = api.repos_upstream_cargo_partial_update_with_http_info(owner, identifier, slug_perm, async_req=True) >>> result = thread.get() :param async_req bool :param str owner: (required) :param str identifier: (required) :param str slug_perm: (required) - :param ComposerUpstreamRequestPatch data: - :return: ComposerUpstream + :param CargoUpstreamRequestPatch data: + :return: CargoUpstream If the method is called asynchronously, returns the request thread. """ @@ -3374,22 +3374,22 @@ def repos_upstream_composer_partial_update_with_http_info(self, owner, identifie if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method repos_upstream_composer_partial_update" % key + " to method repos_upstream_cargo_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_upstream_composer_partial_update`") # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `repos_upstream_cargo_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_upstream_composer_partial_update`") # noqa: E501 + raise ValueError("Missing the required parameter `identifier` when calling `repos_upstream_cargo_partial_update`") # noqa: E501 # verify the required parameter 'slug_perm' is set if self.api_client.client_side_validation and ('slug_perm' not in params or params['slug_perm'] is None): # noqa: E501 - raise ValueError("Missing the required parameter `slug_perm` when calling `repos_upstream_composer_partial_update`") # noqa: E501 + raise ValueError("Missing the required parameter `slug_perm` when calling `repos_upstream_cargo_partial_update`") # noqa: E501 collection_formats = {} @@ -3423,14 +3423,14 @@ def repos_upstream_composer_partial_update_with_http_info(self, owner, identifie auth_settings = ['apikey', 'basic'] # noqa: E501 return self.api_client.call_api( - '/repos/{owner}/{identifier}/upstream/composer/{slug_perm}/', 'PATCH', + '/repos/{owner}/{identifier}/upstream/cargo/{slug_perm}/', 'PATCH', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='ComposerUpstream', # noqa: E501 + response_type='CargoUpstream', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -3438,44 +3438,44 @@ def repos_upstream_composer_partial_update_with_http_info(self, owner, identifie _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def repos_upstream_composer_read(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 - """Retrieve a Composer upstream config for this repository. # noqa: E501 + def repos_upstream_cargo_read(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Retrieve a Cargo upstream config for this repository. # noqa: E501 - Retrieve a Composer upstream config for this repository. # noqa: E501 + Retrieve a Cargo upstream config for this 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_upstream_composer_read(owner, identifier, slug_perm, async_req=True) + >>> thread = api.repos_upstream_cargo_read(owner, identifier, slug_perm, async_req=True) >>> result = thread.get() :param async_req bool :param str owner: (required) :param str identifier: (required) :param str slug_perm: (required) - :return: ComposerUpstream + :return: CargoUpstream If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.repos_upstream_composer_read_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 + return self.repos_upstream_cargo_read_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 else: - (data) = self.repos_upstream_composer_read_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 + (data) = self.repos_upstream_cargo_read_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 return data - def repos_upstream_composer_read_with_http_info(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 - """Retrieve a Composer upstream config for this repository. # noqa: E501 + def repos_upstream_cargo_read_with_http_info(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Retrieve a Cargo upstream config for this repository. # noqa: E501 - Retrieve a Composer upstream config for this repository. # noqa: E501 + Retrieve a Cargo upstream config for this 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_upstream_composer_read_with_http_info(owner, identifier, slug_perm, async_req=True) + >>> thread = api.repos_upstream_cargo_read_with_http_info(owner, identifier, slug_perm, async_req=True) >>> result = thread.get() :param async_req bool :param str owner: (required) :param str identifier: (required) :param str slug_perm: (required) - :return: ComposerUpstream + :return: CargoUpstream If the method is called asynchronously, returns the request thread. """ @@ -3491,22 +3491,22 @@ def repos_upstream_composer_read_with_http_info(self, owner, identifier, slug_pe if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method repos_upstream_composer_read" % key + " to method repos_upstream_cargo_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_upstream_composer_read`") # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `repos_upstream_cargo_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_upstream_composer_read`") # noqa: E501 + raise ValueError("Missing the required parameter `identifier` when calling `repos_upstream_cargo_read`") # noqa: E501 # verify the required parameter 'slug_perm' is set if self.api_client.client_side_validation and ('slug_perm' not in params or params['slug_perm'] is None): # noqa: E501 - raise ValueError("Missing the required parameter `slug_perm` when calling `repos_upstream_composer_read`") # noqa: E501 + raise ValueError("Missing the required parameter `slug_perm` when calling `repos_upstream_cargo_read`") # noqa: E501 collection_formats = {} @@ -3538,14 +3538,14 @@ def repos_upstream_composer_read_with_http_info(self, owner, identifier, slug_pe auth_settings = ['apikey', 'basic'] # noqa: E501 return self.api_client.call_api( - '/repos/{owner}/{identifier}/upstream/composer/{slug_perm}/', 'GET', + '/repos/{owner}/{identifier}/upstream/cargo/{slug_perm}/', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='ComposerUpstream', # noqa: E501 + response_type='CargoUpstream', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -3553,46 +3553,46 @@ def repos_upstream_composer_read_with_http_info(self, owner, identifier, slug_pe _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def repos_upstream_composer_update(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 - """Update a Composer upstream config for this repository. # noqa: E501 + def repos_upstream_cargo_update(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Update a Cargo upstream config for this repository. # noqa: E501 - Update a Composer upstream config for this repository. # noqa: E501 + Update a Cargo upstream config for this 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_upstream_composer_update(owner, identifier, slug_perm, async_req=True) + >>> thread = api.repos_upstream_cargo_update(owner, identifier, slug_perm, async_req=True) >>> result = thread.get() :param async_req bool :param str owner: (required) :param str identifier: (required) :param str slug_perm: (required) - :param ComposerUpstreamRequest data: - :return: ComposerUpstream + :param CargoUpstreamRequest data: + :return: CargoUpstream If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.repos_upstream_composer_update_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 + return self.repos_upstream_cargo_update_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 else: - (data) = self.repos_upstream_composer_update_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 + (data) = self.repos_upstream_cargo_update_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 return data - def repos_upstream_composer_update_with_http_info(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 - """Update a Composer upstream config for this repository. # noqa: E501 + def repos_upstream_cargo_update_with_http_info(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Update a Cargo upstream config for this repository. # noqa: E501 - Update a Composer upstream config for this repository. # noqa: E501 + Update a Cargo upstream config for this 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_upstream_composer_update_with_http_info(owner, identifier, slug_perm, async_req=True) + >>> thread = api.repos_upstream_cargo_update_with_http_info(owner, identifier, slug_perm, async_req=True) >>> result = thread.get() :param async_req bool :param str owner: (required) :param str identifier: (required) :param str slug_perm: (required) - :param ComposerUpstreamRequest data: - :return: ComposerUpstream + :param CargoUpstreamRequest data: + :return: CargoUpstream If the method is called asynchronously, returns the request thread. """ @@ -3608,22 +3608,22 @@ def repos_upstream_composer_update_with_http_info(self, owner, identifier, slug_ if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method repos_upstream_composer_update" % key + " to method repos_upstream_cargo_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_upstream_composer_update`") # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `repos_upstream_cargo_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_upstream_composer_update`") # noqa: E501 + raise ValueError("Missing the required parameter `identifier` when calling `repos_upstream_cargo_update`") # noqa: E501 # verify the required parameter 'slug_perm' is set if self.api_client.client_side_validation and ('slug_perm' not in params or params['slug_perm'] is None): # noqa: E501 - raise ValueError("Missing the required parameter `slug_perm` when calling `repos_upstream_composer_update`") # noqa: E501 + raise ValueError("Missing the required parameter `slug_perm` when calling `repos_upstream_cargo_update`") # noqa: E501 collection_formats = {} @@ -3657,14 +3657,14 @@ def repos_upstream_composer_update_with_http_info(self, owner, identifier, slug_ auth_settings = ['apikey', 'basic'] # noqa: E501 return self.api_client.call_api( - '/repos/{owner}/{identifier}/upstream/composer/{slug_perm}/', 'PUT', + '/repos/{owner}/{identifier}/upstream/cargo/{slug_perm}/', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='ComposerUpstream', # noqa: E501 + response_type='CargoUpstream', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -3672,44 +3672,44 @@ def repos_upstream_composer_update_with_http_info(self, owner, identifier, slug_ _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def repos_upstream_cran_create(self, owner, identifier, **kwargs): # noqa: E501 - """Create a CRAN upstream config for this repository. # noqa: E501 + def repos_upstream_composer_create(self, owner, identifier, **kwargs): # noqa: E501 + """Create a Composer upstream config for this repository. # noqa: E501 - Create a CRAN upstream config for this repository. # noqa: E501 + Create a Composer upstream config for this 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_upstream_cran_create(owner, identifier, async_req=True) + >>> thread = api.repos_upstream_composer_create(owner, identifier, async_req=True) >>> result = thread.get() :param async_req bool :param str owner: (required) :param str identifier: (required) - :param CranUpstreamRequest data: - :return: CranUpstream + :param ComposerUpstreamRequest data: + :return: ComposerUpstream If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.repos_upstream_cran_create_with_http_info(owner, identifier, **kwargs) # noqa: E501 + return self.repos_upstream_composer_create_with_http_info(owner, identifier, **kwargs) # noqa: E501 else: - (data) = self.repos_upstream_cran_create_with_http_info(owner, identifier, **kwargs) # noqa: E501 + (data) = self.repos_upstream_composer_create_with_http_info(owner, identifier, **kwargs) # noqa: E501 return data - def repos_upstream_cran_create_with_http_info(self, owner, identifier, **kwargs): # noqa: E501 - """Create a CRAN upstream config for this repository. # noqa: E501 + def repos_upstream_composer_create_with_http_info(self, owner, identifier, **kwargs): # noqa: E501 + """Create a Composer upstream config for this repository. # noqa: E501 - Create a CRAN upstream config for this repository. # noqa: E501 + Create a Composer upstream config for this 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_upstream_cran_create_with_http_info(owner, identifier, async_req=True) + >>> thread = api.repos_upstream_composer_create_with_http_info(owner, identifier, async_req=True) >>> result = thread.get() :param async_req bool :param str owner: (required) :param str identifier: (required) - :param CranUpstreamRequest data: - :return: CranUpstream + :param ComposerUpstreamRequest data: + :return: ComposerUpstream If the method is called asynchronously, returns the request thread. """ @@ -3725,18 +3725,18 @@ def repos_upstream_cran_create_with_http_info(self, owner, identifier, **kwargs) if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method repos_upstream_cran_create" % key + " to method repos_upstream_composer_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_upstream_cran_create`") # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `repos_upstream_composer_create`") # 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_upstream_cran_create`") # noqa: E501 + raise ValueError("Missing the required parameter `identifier` when calling `repos_upstream_composer_create`") # noqa: E501 collection_formats = {} @@ -3768,14 +3768,14 @@ def repos_upstream_cran_create_with_http_info(self, owner, identifier, **kwargs) auth_settings = ['apikey', 'basic'] # noqa: E501 return self.api_client.call_api( - '/repos/{owner}/{identifier}/upstream/cran/', 'POST', + '/repos/{owner}/{identifier}/upstream/composer/', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='CranUpstream', # noqa: E501 + response_type='ComposerUpstream', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -3783,13 +3783,13 @@ def repos_upstream_cran_create_with_http_info(self, owner, identifier, **kwargs) _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def repos_upstream_cran_delete(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 - """Delete a CRAN upstream config for this repository. # noqa: E501 + def repos_upstream_composer_delete(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Delete a Composer upstream config for this repository. # noqa: E501 - Delete a CRAN upstream config for this repository. # noqa: E501 + Delete a Composer upstream config for this 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_upstream_cran_delete(owner, identifier, slug_perm, async_req=True) + >>> thread = api.repos_upstream_composer_delete(owner, identifier, slug_perm, async_req=True) >>> result = thread.get() :param async_req bool @@ -3802,18 +3802,18 @@ def repos_upstream_cran_delete(self, owner, identifier, slug_perm, **kwargs): # """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.repos_upstream_cran_delete_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 + return self.repos_upstream_composer_delete_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 else: - (data) = self.repos_upstream_cran_delete_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 + (data) = self.repos_upstream_composer_delete_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 return data - def repos_upstream_cran_delete_with_http_info(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 - """Delete a CRAN upstream config for this repository. # noqa: E501 + def repos_upstream_composer_delete_with_http_info(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Delete a Composer upstream config for this repository. # noqa: E501 - Delete a CRAN upstream config for this repository. # noqa: E501 + Delete a Composer upstream config for this 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_upstream_cran_delete_with_http_info(owner, identifier, slug_perm, async_req=True) + >>> thread = api.repos_upstream_composer_delete_with_http_info(owner, identifier, slug_perm, async_req=True) >>> result = thread.get() :param async_req bool @@ -3836,22 +3836,22 @@ def repos_upstream_cran_delete_with_http_info(self, owner, identifier, slug_perm if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method repos_upstream_cran_delete" % key + " to method repos_upstream_composer_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_upstream_cran_delete`") # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `repos_upstream_composer_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_upstream_cran_delete`") # noqa: E501 + raise ValueError("Missing the required parameter `identifier` when calling `repos_upstream_composer_delete`") # noqa: E501 # verify the required parameter 'slug_perm' is set if self.api_client.client_side_validation and ('slug_perm' not in params or params['slug_perm'] is None): # noqa: E501 - raise ValueError("Missing the required parameter `slug_perm` when calling `repos_upstream_cran_delete`") # noqa: E501 + raise ValueError("Missing the required parameter `slug_perm` when calling `repos_upstream_composer_delete`") # noqa: E501 collection_formats = {} @@ -3883,7 +3883,7 @@ def repos_upstream_cran_delete_with_http_info(self, owner, identifier, slug_perm auth_settings = ['apikey', 'basic'] # noqa: E501 return self.api_client.call_api( - '/repos/{owner}/{identifier}/upstream/cran/{slug_perm}/', 'DELETE', + '/repos/{owner}/{identifier}/upstream/composer/{slug_perm}/', 'DELETE', path_params, query_params, header_params, @@ -3898,13 +3898,13 @@ def repos_upstream_cran_delete_with_http_info(self, owner, identifier, slug_perm _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def repos_upstream_cran_list(self, owner, identifier, **kwargs): # noqa: E501 - """List CRAN upstream configs for this repository. # noqa: E501 + def repos_upstream_composer_list(self, owner, identifier, **kwargs): # noqa: E501 + """List Composer upstream configs for this repository. # noqa: E501 - List CRAN upstream configs for this repository. # noqa: E501 + List Composer upstream configs for this 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_upstream_cran_list(owner, identifier, async_req=True) + >>> thread = api.repos_upstream_composer_list(owner, identifier, async_req=True) >>> result = thread.get() :param async_req bool @@ -3912,24 +3912,24 @@ def repos_upstream_cran_list(self, owner, identifier, **kwargs): # noqa: E501 :param str identifier: (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[CranUpstream] + :return: list[ComposerUpstream] If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.repos_upstream_cran_list_with_http_info(owner, identifier, **kwargs) # noqa: E501 + return self.repos_upstream_composer_list_with_http_info(owner, identifier, **kwargs) # noqa: E501 else: - (data) = self.repos_upstream_cran_list_with_http_info(owner, identifier, **kwargs) # noqa: E501 + (data) = self.repos_upstream_composer_list_with_http_info(owner, identifier, **kwargs) # noqa: E501 return data - def repos_upstream_cran_list_with_http_info(self, owner, identifier, **kwargs): # noqa: E501 - """List CRAN upstream configs for this repository. # noqa: E501 + def repos_upstream_composer_list_with_http_info(self, owner, identifier, **kwargs): # noqa: E501 + """List Composer upstream configs for this repository. # noqa: E501 - List CRAN upstream configs for this repository. # noqa: E501 + List Composer upstream configs for this 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_upstream_cran_list_with_http_info(owner, identifier, async_req=True) + >>> thread = api.repos_upstream_composer_list_with_http_info(owner, identifier, async_req=True) >>> result = thread.get() :param async_req bool @@ -3937,7 +3937,7 @@ def repos_upstream_cran_list_with_http_info(self, owner, identifier, **kwargs): :param str identifier: (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[CranUpstream] + :return: list[ComposerUpstream] If the method is called asynchronously, returns the request thread. """ @@ -3953,18 +3953,18 @@ def repos_upstream_cran_list_with_http_info(self, owner, identifier, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method repos_upstream_cran_list" % key + " to method repos_upstream_composer_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_upstream_cran_list`") # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `repos_upstream_composer_list`") # 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_upstream_cran_list`") # noqa: E501 + raise ValueError("Missing the required parameter `identifier` when calling `repos_upstream_composer_list`") # noqa: E501 collection_formats = {} @@ -3998,14 +3998,14 @@ def repos_upstream_cran_list_with_http_info(self, owner, identifier, **kwargs): auth_settings = ['apikey', 'basic'] # noqa: E501 return self.api_client.call_api( - '/repos/{owner}/{identifier}/upstream/cran/', 'GET', + '/repos/{owner}/{identifier}/upstream/composer/', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='list[CranUpstream]', # noqa: E501 + response_type='list[ComposerUpstream]', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -4013,46 +4013,46 @@ def repos_upstream_cran_list_with_http_info(self, owner, identifier, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def repos_upstream_cran_partial_update(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 - """Partially update a CRAN upstream config for this repository. # noqa: E501 + def repos_upstream_composer_partial_update(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Partially update a Composer upstream config for this repository. # noqa: E501 - Partially update a CRAN upstream config for this repository. # noqa: E501 + Partially update a Composer upstream config for this 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_upstream_cran_partial_update(owner, identifier, slug_perm, async_req=True) + >>> thread = api.repos_upstream_composer_partial_update(owner, identifier, slug_perm, async_req=True) >>> result = thread.get() :param async_req bool :param str owner: (required) :param str identifier: (required) :param str slug_perm: (required) - :param CranUpstreamRequestPatch data: - :return: CranUpstream + :param ComposerUpstreamRequestPatch data: + :return: ComposerUpstream If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.repos_upstream_cran_partial_update_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 + return self.repos_upstream_composer_partial_update_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 else: - (data) = self.repos_upstream_cran_partial_update_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 + (data) = self.repos_upstream_composer_partial_update_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 return data - def repos_upstream_cran_partial_update_with_http_info(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 - """Partially update a CRAN upstream config for this repository. # noqa: E501 + def repos_upstream_composer_partial_update_with_http_info(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Partially update a Composer upstream config for this repository. # noqa: E501 - Partially update a CRAN upstream config for this repository. # noqa: E501 + Partially update a Composer upstream config for this 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_upstream_cran_partial_update_with_http_info(owner, identifier, slug_perm, async_req=True) + >>> thread = api.repos_upstream_composer_partial_update_with_http_info(owner, identifier, slug_perm, async_req=True) >>> result = thread.get() :param async_req bool :param str owner: (required) :param str identifier: (required) :param str slug_perm: (required) - :param CranUpstreamRequestPatch data: - :return: CranUpstream + :param ComposerUpstreamRequestPatch data: + :return: ComposerUpstream If the method is called asynchronously, returns the request thread. """ @@ -4068,22 +4068,22 @@ def repos_upstream_cran_partial_update_with_http_info(self, owner, identifier, s if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method repos_upstream_cran_partial_update" % key + " to method repos_upstream_composer_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_upstream_cran_partial_update`") # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `repos_upstream_composer_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_upstream_cran_partial_update`") # noqa: E501 + raise ValueError("Missing the required parameter `identifier` when calling `repos_upstream_composer_partial_update`") # noqa: E501 # verify the required parameter 'slug_perm' is set if self.api_client.client_side_validation and ('slug_perm' not in params or params['slug_perm'] is None): # noqa: E501 - raise ValueError("Missing the required parameter `slug_perm` when calling `repos_upstream_cran_partial_update`") # noqa: E501 + raise ValueError("Missing the required parameter `slug_perm` when calling `repos_upstream_composer_partial_update`") # noqa: E501 collection_formats = {} @@ -4117,14 +4117,14 @@ def repos_upstream_cran_partial_update_with_http_info(self, owner, identifier, s auth_settings = ['apikey', 'basic'] # noqa: E501 return self.api_client.call_api( - '/repos/{owner}/{identifier}/upstream/cran/{slug_perm}/', 'PATCH', + '/repos/{owner}/{identifier}/upstream/composer/{slug_perm}/', 'PATCH', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='CranUpstream', # noqa: E501 + response_type='ComposerUpstream', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -4132,49 +4132,1320 @@ def repos_upstream_cran_partial_update_with_http_info(self, owner, identifier, s _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def repos_upstream_cran_read(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 - """Retrieve a CRAN upstream config for this repository. # noqa: E501 + def repos_upstream_composer_read(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Retrieve a Composer upstream config for this repository. # noqa: E501 - Retrieve a CRAN upstream config for this repository. # noqa: E501 + Retrieve a Composer upstream config for this 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_upstream_composer_read(owner, identifier, slug_perm, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str identifier: (required) + :param str slug_perm: (required) + :return: ComposerUpstream + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.repos_upstream_composer_read_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 + else: + (data) = self.repos_upstream_composer_read_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 + return data + + def repos_upstream_composer_read_with_http_info(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Retrieve a Composer upstream config for this repository. # noqa: E501 + + Retrieve a Composer upstream config for this 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_upstream_composer_read_with_http_info(owner, identifier, slug_perm, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str identifier: (required) + :param str slug_perm: (required) + :return: ComposerUpstream + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['owner', 'identifier', 'slug_perm'] # 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_upstream_composer_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_upstream_composer_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_upstream_composer_read`") # noqa: E501 + # verify the required parameter 'slug_perm' is set + if self.api_client.client_side_validation and ('slug_perm' not in params or + params['slug_perm'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `slug_perm` when calling `repos_upstream_composer_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 + if 'slug_perm' in params: + path_params['slug_perm'] = params['slug_perm'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # 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', 'basic'] # noqa: E501 + + return self.api_client.call_api( + '/repos/{owner}/{identifier}/upstream/composer/{slug_perm}/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ComposerUpstream', # 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_upstream_composer_update(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Update a Composer upstream config for this repository. # noqa: E501 + + Update a Composer upstream config for this 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_upstream_composer_update(owner, identifier, slug_perm, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str identifier: (required) + :param str slug_perm: (required) + :param ComposerUpstreamRequest data: + :return: ComposerUpstream + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.repos_upstream_composer_update_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 + else: + (data) = self.repos_upstream_composer_update_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 + return data + + def repos_upstream_composer_update_with_http_info(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Update a Composer upstream config for this repository. # noqa: E501 + + Update a Composer upstream config for this 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_upstream_composer_update_with_http_info(owner, identifier, slug_perm, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str identifier: (required) + :param str slug_perm: (required) + :param ComposerUpstreamRequest data: + :return: ComposerUpstream + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['owner', 'identifier', 'slug_perm', '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_upstream_composer_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_upstream_composer_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_upstream_composer_update`") # noqa: E501 + # verify the required parameter 'slug_perm' is set + if self.api_client.client_side_validation and ('slug_perm' not in params or + params['slug_perm'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `slug_perm` when calling `repos_upstream_composer_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 + if 'slug_perm' in params: + path_params['slug_perm'] = params['slug_perm'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'data' in params: + body_params = params['data'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # 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', 'basic'] # noqa: E501 + + return self.api_client.call_api( + '/repos/{owner}/{identifier}/upstream/composer/{slug_perm}/', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ComposerUpstream', # 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_upstream_cran_create(self, owner, identifier, **kwargs): # noqa: E501 + """Create a CRAN upstream config for this repository. # noqa: E501 + + Create a CRAN upstream config for this 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_upstream_cran_create(owner, identifier, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str identifier: (required) + :param CranUpstreamRequest data: + :return: CranUpstream + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.repos_upstream_cran_create_with_http_info(owner, identifier, **kwargs) # noqa: E501 + else: + (data) = self.repos_upstream_cran_create_with_http_info(owner, identifier, **kwargs) # noqa: E501 + return data + + def repos_upstream_cran_create_with_http_info(self, owner, identifier, **kwargs): # noqa: E501 + """Create a CRAN upstream config for this repository. # noqa: E501 + + Create a CRAN upstream config for this 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_upstream_cran_create_with_http_info(owner, identifier, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str identifier: (required) + :param CranUpstreamRequest data: + :return: CranUpstream + 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_upstream_cran_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_upstream_cran_create`") # 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_upstream_cran_create`") # 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 `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # 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', 'basic'] # noqa: E501 + + return self.api_client.call_api( + '/repos/{owner}/{identifier}/upstream/cran/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='CranUpstream', # 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_upstream_cran_delete(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Delete a CRAN upstream config for this repository. # noqa: E501 + + Delete a CRAN upstream config for this 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_upstream_cran_delete(owner, identifier, slug_perm, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str identifier: (required) + :param str slug_perm: (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_upstream_cran_delete_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 + else: + (data) = self.repos_upstream_cran_delete_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 + return data + + def repos_upstream_cran_delete_with_http_info(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Delete a CRAN upstream config for this repository. # noqa: E501 + + Delete a CRAN upstream config for this 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_upstream_cran_delete_with_http_info(owner, identifier, slug_perm, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str identifier: (required) + :param str slug_perm: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['owner', 'identifier', 'slug_perm'] # 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_upstream_cran_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_upstream_cran_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_upstream_cran_delete`") # noqa: E501 + # verify the required parameter 'slug_perm' is set + if self.api_client.client_side_validation and ('slug_perm' not in params or + params['slug_perm'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `slug_perm` when calling `repos_upstream_cran_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 + if 'slug_perm' in params: + path_params['slug_perm'] = params['slug_perm'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # 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', 'basic'] # noqa: E501 + + return self.api_client.call_api( + '/repos/{owner}/{identifier}/upstream/cran/{slug_perm}/', '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_upstream_cran_list(self, owner, identifier, **kwargs): # noqa: E501 + """List CRAN upstream configs for this repository. # noqa: E501 + + List CRAN upstream configs for this 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_upstream_cran_list(owner, identifier, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str identifier: (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[CranUpstream] + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.repos_upstream_cran_list_with_http_info(owner, identifier, **kwargs) # noqa: E501 + else: + (data) = self.repos_upstream_cran_list_with_http_info(owner, identifier, **kwargs) # noqa: E501 + return data + + def repos_upstream_cran_list_with_http_info(self, owner, identifier, **kwargs): # noqa: E501 + """List CRAN upstream configs for this repository. # noqa: E501 + + List CRAN upstream configs for this 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_upstream_cran_list_with_http_info(owner, identifier, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str identifier: (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[CranUpstream] + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['owner', 'identifier', '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_upstream_cran_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_upstream_cran_list`") # 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_upstream_cran_list`") # 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 = [] + 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 + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # 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', 'basic'] # noqa: E501 + + return self.api_client.call_api( + '/repos/{owner}/{identifier}/upstream/cran/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='list[CranUpstream]', # 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_upstream_cran_partial_update(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Partially update a CRAN upstream config for this repository. # noqa: E501 + + Partially update a CRAN upstream config for this 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_upstream_cran_partial_update(owner, identifier, slug_perm, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str identifier: (required) + :param str slug_perm: (required) + :param CranUpstreamRequestPatch data: + :return: CranUpstream + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.repos_upstream_cran_partial_update_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 + else: + (data) = self.repos_upstream_cran_partial_update_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 + return data + + def repos_upstream_cran_partial_update_with_http_info(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Partially update a CRAN upstream config for this repository. # noqa: E501 + + Partially update a CRAN upstream config for this 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_upstream_cran_partial_update_with_http_info(owner, identifier, slug_perm, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str identifier: (required) + :param str slug_perm: (required) + :param CranUpstreamRequestPatch data: + :return: CranUpstream + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['owner', 'identifier', 'slug_perm', '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_upstream_cran_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_upstream_cran_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_upstream_cran_partial_update`") # noqa: E501 + # verify the required parameter 'slug_perm' is set + if self.api_client.client_side_validation and ('slug_perm' not in params or + params['slug_perm'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `slug_perm` when calling `repos_upstream_cran_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 + if 'slug_perm' in params: + path_params['slug_perm'] = params['slug_perm'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'data' in params: + body_params = params['data'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # 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', 'basic'] # noqa: E501 + + return self.api_client.call_api( + '/repos/{owner}/{identifier}/upstream/cran/{slug_perm}/', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='CranUpstream', # 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_upstream_cran_read(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Retrieve a CRAN upstream config for this repository. # noqa: E501 + + Retrieve a CRAN upstream config for this 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_upstream_cran_read(owner, identifier, slug_perm, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str identifier: (required) + :param str slug_perm: (required) + :return: CranUpstream + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.repos_upstream_cran_read_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 + else: + (data) = self.repos_upstream_cran_read_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 + return data + + def repos_upstream_cran_read_with_http_info(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Retrieve a CRAN upstream config for this repository. # noqa: E501 + + Retrieve a CRAN upstream config for this 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_upstream_cran_read_with_http_info(owner, identifier, slug_perm, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str identifier: (required) + :param str slug_perm: (required) + :return: CranUpstream + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['owner', 'identifier', 'slug_perm'] # 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_upstream_cran_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_upstream_cran_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_upstream_cran_read`") # noqa: E501 + # verify the required parameter 'slug_perm' is set + if self.api_client.client_side_validation and ('slug_perm' not in params or + params['slug_perm'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `slug_perm` when calling `repos_upstream_cran_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 + if 'slug_perm' in params: + path_params['slug_perm'] = params['slug_perm'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # 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', 'basic'] # noqa: E501 + + return self.api_client.call_api( + '/repos/{owner}/{identifier}/upstream/cran/{slug_perm}/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='CranUpstream', # 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_upstream_cran_update(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Update a CRAN upstream config for this repository. # noqa: E501 + + Update a CRAN upstream config for this 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_upstream_cran_update(owner, identifier, slug_perm, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str identifier: (required) + :param str slug_perm: (required) + :param CranUpstreamRequest data: + :return: CranUpstream + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.repos_upstream_cran_update_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 + else: + (data) = self.repos_upstream_cran_update_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 + return data + + def repos_upstream_cran_update_with_http_info(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Update a CRAN upstream config for this repository. # noqa: E501 + + Update a CRAN upstream config for this 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_upstream_cran_update_with_http_info(owner, identifier, slug_perm, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str identifier: (required) + :param str slug_perm: (required) + :param CranUpstreamRequest data: + :return: CranUpstream + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['owner', 'identifier', 'slug_perm', '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_upstream_cran_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_upstream_cran_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_upstream_cran_update`") # noqa: E501 + # verify the required parameter 'slug_perm' is set + if self.api_client.client_side_validation and ('slug_perm' not in params or + params['slug_perm'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `slug_perm` when calling `repos_upstream_cran_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 + if 'slug_perm' in params: + path_params['slug_perm'] = params['slug_perm'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'data' in params: + body_params = params['data'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # 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', 'basic'] # noqa: E501 + + return self.api_client.call_api( + '/repos/{owner}/{identifier}/upstream/cran/{slug_perm}/', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='CranUpstream', # 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_upstream_dart_create(self, owner, identifier, **kwargs): # noqa: E501 + """Create a Dart upstream config for this repository. # noqa: E501 + + Create a Dart upstream config for this 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_upstream_dart_create(owner, identifier, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str identifier: (required) + :param DartUpstreamRequest data: + :return: DartUpstream + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.repos_upstream_dart_create_with_http_info(owner, identifier, **kwargs) # noqa: E501 + else: + (data) = self.repos_upstream_dart_create_with_http_info(owner, identifier, **kwargs) # noqa: E501 + return data + + def repos_upstream_dart_create_with_http_info(self, owner, identifier, **kwargs): # noqa: E501 + """Create a Dart upstream config for this repository. # noqa: E501 + + Create a Dart upstream config for this 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_upstream_dart_create_with_http_info(owner, identifier, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str identifier: (required) + :param DartUpstreamRequest data: + :return: DartUpstream + 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_upstream_dart_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_upstream_dart_create`") # 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_upstream_dart_create`") # 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 `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # 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', 'basic'] # noqa: E501 + + return self.api_client.call_api( + '/repos/{owner}/{identifier}/upstream/dart/', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='DartUpstream', # 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_upstream_dart_delete(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Delete a Dart upstream config for this repository. # noqa: E501 + + Delete a Dart upstream config for this 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_upstream_dart_delete(owner, identifier, slug_perm, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str identifier: (required) + :param str slug_perm: (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_upstream_dart_delete_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 + else: + (data) = self.repos_upstream_dart_delete_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 + return data + + def repos_upstream_dart_delete_with_http_info(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Delete a Dart upstream config for this repository. # noqa: E501 + + Delete a Dart upstream config for this 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_upstream_dart_delete_with_http_info(owner, identifier, slug_perm, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str identifier: (required) + :param str slug_perm: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['owner', 'identifier', 'slug_perm'] # 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_upstream_dart_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_upstream_dart_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_upstream_dart_delete`") # noqa: E501 + # verify the required parameter 'slug_perm' is set + if self.api_client.client_side_validation and ('slug_perm' not in params or + params['slug_perm'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `slug_perm` when calling `repos_upstream_dart_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 + if 'slug_perm' in params: + path_params['slug_perm'] = params['slug_perm'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # 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', 'basic'] # noqa: E501 + + return self.api_client.call_api( + '/repos/{owner}/{identifier}/upstream/dart/{slug_perm}/', '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_upstream_dart_list(self, owner, identifier, **kwargs): # noqa: E501 + """List Dart upstream configs for this repository. # noqa: E501 + + List Dart upstream configs for this 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_upstream_dart_list(owner, identifier, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str identifier: (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[DartUpstream] + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.repos_upstream_dart_list_with_http_info(owner, identifier, **kwargs) # noqa: E501 + else: + (data) = self.repos_upstream_dart_list_with_http_info(owner, identifier, **kwargs) # noqa: E501 + return data + + def repos_upstream_dart_list_with_http_info(self, owner, identifier, **kwargs): # noqa: E501 + """List Dart upstream configs for this repository. # noqa: E501 + + List Dart upstream configs for this 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_upstream_dart_list_with_http_info(owner, identifier, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str identifier: (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[DartUpstream] + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['owner', 'identifier', '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_upstream_dart_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_upstream_dart_list`") # 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_upstream_dart_list`") # 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 = [] + 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 + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # 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', 'basic'] # noqa: E501 + + return self.api_client.call_api( + '/repos/{owner}/{identifier}/upstream/dart/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='list[DartUpstream]', # 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_upstream_dart_partial_update(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Partially update a Dart upstream config for this repository. # noqa: E501 + + Partially update a Dart upstream config for this 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_upstream_cran_read(owner, identifier, slug_perm, async_req=True) + >>> thread = api.repos_upstream_dart_partial_update(owner, identifier, slug_perm, async_req=True) >>> result = thread.get() :param async_req bool :param str owner: (required) :param str identifier: (required) :param str slug_perm: (required) - :return: CranUpstream + :param DartUpstreamRequestPatch data: + :return: DartUpstream If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.repos_upstream_cran_read_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 + return self.repos_upstream_dart_partial_update_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 else: - (data) = self.repos_upstream_cran_read_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 + (data) = self.repos_upstream_dart_partial_update_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 return data - def repos_upstream_cran_read_with_http_info(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 - """Retrieve a CRAN upstream config for this repository. # noqa: E501 + def repos_upstream_dart_partial_update_with_http_info(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Partially update a Dart upstream config for this repository. # noqa: E501 - Retrieve a CRAN upstream config for this repository. # noqa: E501 + Partially update a Dart upstream config for this 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_upstream_cran_read_with_http_info(owner, identifier, slug_perm, async_req=True) + >>> thread = api.repos_upstream_dart_partial_update_with_http_info(owner, identifier, slug_perm, async_req=True) >>> result = thread.get() :param async_req bool :param str owner: (required) :param str identifier: (required) :param str slug_perm: (required) - :return: CranUpstream + :param DartUpstreamRequestPatch data: + :return: DartUpstream If the method is called asynchronously, returns the request thread. """ - all_params = ['owner', 'identifier', 'slug_perm'] # noqa: E501 + all_params = ['owner', 'identifier', 'slug_perm', 'data'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -4185,22 +5456,22 @@ def repos_upstream_cran_read_with_http_info(self, owner, identifier, slug_perm, if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method repos_upstream_cran_read" % key + " to method repos_upstream_dart_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_upstream_cran_read`") # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `repos_upstream_dart_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_upstream_cran_read`") # noqa: E501 + raise ValueError("Missing the required parameter `identifier` when calling `repos_upstream_dart_partial_update`") # noqa: E501 # verify the required parameter 'slug_perm' is set if self.api_client.client_side_validation and ('slug_perm' not in params or params['slug_perm'] is None): # noqa: E501 - raise ValueError("Missing the required parameter `slug_perm` when calling `repos_upstream_cran_read`") # noqa: E501 + raise ValueError("Missing the required parameter `slug_perm` when calling `repos_upstream_dart_partial_update`") # noqa: E501 collection_formats = {} @@ -4220,6 +5491,8 @@ def repos_upstream_cran_read_with_http_info(self, owner, identifier, slug_perm, local_var_files = {} body_params = None + if 'data' in params: + body_params = params['data'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 @@ -4232,14 +5505,14 @@ def repos_upstream_cran_read_with_http_info(self, owner, identifier, slug_perm, auth_settings = ['apikey', 'basic'] # noqa: E501 return self.api_client.call_api( - '/repos/{owner}/{identifier}/upstream/cran/{slug_perm}/', 'GET', + '/repos/{owner}/{identifier}/upstream/dart/{slug_perm}/', 'PATCH', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='CranUpstream', # noqa: E501 + response_type='DartUpstream', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -4247,51 +5520,49 @@ def repos_upstream_cran_read_with_http_info(self, owner, identifier, slug_perm, _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def repos_upstream_cran_update(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 - """Update a CRAN upstream config for this repository. # noqa: E501 + def repos_upstream_dart_read(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Retrieve a Dart upstream config for this repository. # noqa: E501 - Update a CRAN upstream config for this repository. # noqa: E501 + Retrieve a Dart upstream config for this 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_upstream_cran_update(owner, identifier, slug_perm, async_req=True) + >>> thread = api.repos_upstream_dart_read(owner, identifier, slug_perm, async_req=True) >>> result = thread.get() :param async_req bool :param str owner: (required) :param str identifier: (required) :param str slug_perm: (required) - :param CranUpstreamRequest data: - :return: CranUpstream + :return: DartUpstream If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.repos_upstream_cran_update_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 + return self.repos_upstream_dart_read_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 else: - (data) = self.repos_upstream_cran_update_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 + (data) = self.repos_upstream_dart_read_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 return data - def repos_upstream_cran_update_with_http_info(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 - """Update a CRAN upstream config for this repository. # noqa: E501 + def repos_upstream_dart_read_with_http_info(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Retrieve a Dart upstream config for this repository. # noqa: E501 - Update a CRAN upstream config for this repository. # noqa: E501 + Retrieve a Dart upstream config for this 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_upstream_cran_update_with_http_info(owner, identifier, slug_perm, async_req=True) + >>> thread = api.repos_upstream_dart_read_with_http_info(owner, identifier, slug_perm, async_req=True) >>> result = thread.get() :param async_req bool :param str owner: (required) :param str identifier: (required) :param str slug_perm: (required) - :param CranUpstreamRequest data: - :return: CranUpstream + :return: DartUpstream If the method is called asynchronously, returns the request thread. """ - all_params = ['owner', 'identifier', 'slug_perm', 'data'] # noqa: E501 + all_params = ['owner', 'identifier', 'slug_perm'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -4302,22 +5573,22 @@ def repos_upstream_cran_update_with_http_info(self, owner, identifier, slug_perm if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method repos_upstream_cran_update" % key + " to method repos_upstream_dart_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_upstream_cran_update`") # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `repos_upstream_dart_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_upstream_cran_update`") # noqa: E501 + raise ValueError("Missing the required parameter `identifier` when calling `repos_upstream_dart_read`") # noqa: E501 # verify the required parameter 'slug_perm' is set if self.api_client.client_side_validation and ('slug_perm' not in params or params['slug_perm'] is None): # noqa: E501 - raise ValueError("Missing the required parameter `slug_perm` when calling `repos_upstream_cran_update`") # noqa: E501 + raise ValueError("Missing the required parameter `slug_perm` when calling `repos_upstream_dart_read`") # noqa: E501 collection_formats = {} @@ -4337,8 +5608,6 @@ def repos_upstream_cran_update_with_http_info(self, owner, identifier, slug_perm local_var_files = {} body_params = None - if 'data' in params: - body_params = params['data'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 @@ -4351,14 +5620,14 @@ def repos_upstream_cran_update_with_http_info(self, owner, identifier, slug_perm auth_settings = ['apikey', 'basic'] # noqa: E501 return self.api_client.call_api( - '/repos/{owner}/{identifier}/upstream/cran/{slug_perm}/', 'PUT', + '/repos/{owner}/{identifier}/upstream/dart/{slug_perm}/', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='CranUpstream', # noqa: E501 + response_type='DartUpstream', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -4366,18 +5635,19 @@ def repos_upstream_cran_update_with_http_info(self, owner, identifier, slug_perm _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def repos_upstream_dart_create(self, owner, identifier, **kwargs): # noqa: E501 - """Create a Dart upstream config for this repository. # noqa: E501 + def repos_upstream_dart_update(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Update a Dart upstream config for this repository. # noqa: E501 - Create a Dart upstream config for this repository. # noqa: E501 + Update a Dart upstream config for this 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_upstream_dart_create(owner, identifier, async_req=True) + >>> thread = api.repos_upstream_dart_update(owner, identifier, slug_perm, async_req=True) >>> result = thread.get() :param async_req bool :param str owner: (required) :param str identifier: (required) + :param str slug_perm: (required) :param DartUpstreamRequest data: :return: DartUpstream If the method is called asynchronously, @@ -4385,29 +5655,147 @@ def repos_upstream_dart_create(self, owner, identifier, **kwargs): # noqa: E501 """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.repos_upstream_dart_create_with_http_info(owner, identifier, **kwargs) # noqa: E501 + return self.repos_upstream_dart_update_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 else: - (data) = self.repos_upstream_dart_create_with_http_info(owner, identifier, **kwargs) # noqa: E501 + (data) = self.repos_upstream_dart_update_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 return data - def repos_upstream_dart_create_with_http_info(self, owner, identifier, **kwargs): # noqa: E501 - """Create a Dart upstream config for this repository. # noqa: E501 + def repos_upstream_dart_update_with_http_info(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Update a Dart upstream config for this repository. # noqa: E501 - Create a Dart upstream config for this repository. # noqa: E501 + Update a Dart upstream config for this 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_upstream_dart_create_with_http_info(owner, identifier, async_req=True) + >>> thread = api.repos_upstream_dart_update_with_http_info(owner, identifier, slug_perm, async_req=True) >>> result = thread.get() :param async_req bool :param str owner: (required) :param str identifier: (required) + :param str slug_perm: (required) :param DartUpstreamRequest data: :return: DartUpstream If the method is called asynchronously, returns the request thread. """ + all_params = ['owner', 'identifier', 'slug_perm', '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_upstream_dart_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_upstream_dart_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_upstream_dart_update`") # noqa: E501 + # verify the required parameter 'slug_perm' is set + if self.api_client.client_side_validation and ('slug_perm' not in params or + params['slug_perm'] is None): # noqa: E501 + raise ValueError("Missing the required parameter `slug_perm` when calling `repos_upstream_dart_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 + if 'slug_perm' in params: + path_params['slug_perm'] = params['slug_perm'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'data' in params: + body_params = params['data'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # 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', 'basic'] # noqa: E501 + + return self.api_client.call_api( + '/repos/{owner}/{identifier}/upstream/dart/{slug_perm}/', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='DartUpstream', # 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_upstream_deb_create(self, owner, identifier, **kwargs): # noqa: E501 + """Create a Debian upstream config for this repository. # noqa: E501 + + Create a Debian upstream config for this 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_upstream_deb_create(owner, identifier, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str identifier: (required) + :param DebUpstreamRequest data: + :return: DebUpstream + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.repos_upstream_deb_create_with_http_info(owner, identifier, **kwargs) # noqa: E501 + else: + (data) = self.repos_upstream_deb_create_with_http_info(owner, identifier, **kwargs) # noqa: E501 + return data + + def repos_upstream_deb_create_with_http_info(self, owner, identifier, **kwargs): # noqa: E501 + """Create a Debian upstream config for this repository. # noqa: E501 + + Create a Debian upstream config for this 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_upstream_deb_create_with_http_info(owner, identifier, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str owner: (required) + :param str identifier: (required) + :param DebUpstreamRequest data: + :return: DebUpstream + 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') @@ -4419,18 +5807,18 @@ def repos_upstream_dart_create_with_http_info(self, owner, identifier, **kwargs) if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method repos_upstream_dart_create" % key + " to method repos_upstream_deb_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_upstream_dart_create`") # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `repos_upstream_deb_create`") # 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_upstream_dart_create`") # noqa: E501 + raise ValueError("Missing the required parameter `identifier` when calling `repos_upstream_deb_create`") # noqa: E501 collection_formats = {} @@ -4462,14 +5850,14 @@ def repos_upstream_dart_create_with_http_info(self, owner, identifier, **kwargs) auth_settings = ['apikey', 'basic'] # noqa: E501 return self.api_client.call_api( - '/repos/{owner}/{identifier}/upstream/dart/', 'POST', + '/repos/{owner}/{identifier}/upstream/deb/', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='DartUpstream', # noqa: E501 + response_type='DebUpstream', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -4477,13 +5865,13 @@ def repos_upstream_dart_create_with_http_info(self, owner, identifier, **kwargs) _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def repos_upstream_dart_delete(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 - """Delete a Dart upstream config for this repository. # noqa: E501 + def repos_upstream_deb_delete(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Delete a Debian upstream config for this repository. # noqa: E501 - Delete a Dart upstream config for this repository. # noqa: E501 + Delete a Debian upstream config for this 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_upstream_dart_delete(owner, identifier, slug_perm, async_req=True) + >>> thread = api.repos_upstream_deb_delete(owner, identifier, slug_perm, async_req=True) >>> result = thread.get() :param async_req bool @@ -4496,18 +5884,18 @@ def repos_upstream_dart_delete(self, owner, identifier, slug_perm, **kwargs): # """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.repos_upstream_dart_delete_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 + return self.repos_upstream_deb_delete_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 else: - (data) = self.repos_upstream_dart_delete_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 + (data) = self.repos_upstream_deb_delete_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 return data - def repos_upstream_dart_delete_with_http_info(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 - """Delete a Dart upstream config for this repository. # noqa: E501 + def repos_upstream_deb_delete_with_http_info(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Delete a Debian upstream config for this repository. # noqa: E501 - Delete a Dart upstream config for this repository. # noqa: E501 + Delete a Debian upstream config for this 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_upstream_dart_delete_with_http_info(owner, identifier, slug_perm, async_req=True) + >>> thread = api.repos_upstream_deb_delete_with_http_info(owner, identifier, slug_perm, async_req=True) >>> result = thread.get() :param async_req bool @@ -4530,22 +5918,22 @@ def repos_upstream_dart_delete_with_http_info(self, owner, identifier, slug_perm if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method repos_upstream_dart_delete" % key + " to method repos_upstream_deb_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_upstream_dart_delete`") # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `repos_upstream_deb_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_upstream_dart_delete`") # noqa: E501 + raise ValueError("Missing the required parameter `identifier` when calling `repos_upstream_deb_delete`") # noqa: E501 # verify the required parameter 'slug_perm' is set if self.api_client.client_side_validation and ('slug_perm' not in params or params['slug_perm'] is None): # noqa: E501 - raise ValueError("Missing the required parameter `slug_perm` when calling `repos_upstream_dart_delete`") # noqa: E501 + raise ValueError("Missing the required parameter `slug_perm` when calling `repos_upstream_deb_delete`") # noqa: E501 collection_formats = {} @@ -4577,7 +5965,7 @@ def repos_upstream_dart_delete_with_http_info(self, owner, identifier, slug_perm auth_settings = ['apikey', 'basic'] # noqa: E501 return self.api_client.call_api( - '/repos/{owner}/{identifier}/upstream/dart/{slug_perm}/', 'DELETE', + '/repos/{owner}/{identifier}/upstream/deb/{slug_perm}/', 'DELETE', path_params, query_params, header_params, @@ -4592,13 +5980,13 @@ def repos_upstream_dart_delete_with_http_info(self, owner, identifier, slug_perm _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def repos_upstream_dart_list(self, owner, identifier, **kwargs): # noqa: E501 - """List Dart upstream configs for this repository. # noqa: E501 + def repos_upstream_deb_list(self, owner, identifier, **kwargs): # noqa: E501 + """List Debian upstream configs for this repository. # noqa: E501 - List Dart upstream configs for this repository. # noqa: E501 + List Debian upstream configs for this 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_upstream_dart_list(owner, identifier, async_req=True) + >>> thread = api.repos_upstream_deb_list(owner, identifier, async_req=True) >>> result = thread.get() :param async_req bool @@ -4606,24 +5994,24 @@ def repos_upstream_dart_list(self, owner, identifier, **kwargs): # noqa: E501 :param str identifier: (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[DartUpstream] + :return: list[DebUpstream] If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.repos_upstream_dart_list_with_http_info(owner, identifier, **kwargs) # noqa: E501 + return self.repos_upstream_deb_list_with_http_info(owner, identifier, **kwargs) # noqa: E501 else: - (data) = self.repos_upstream_dart_list_with_http_info(owner, identifier, **kwargs) # noqa: E501 + (data) = self.repos_upstream_deb_list_with_http_info(owner, identifier, **kwargs) # noqa: E501 return data - def repos_upstream_dart_list_with_http_info(self, owner, identifier, **kwargs): # noqa: E501 - """List Dart upstream configs for this repository. # noqa: E501 + def repos_upstream_deb_list_with_http_info(self, owner, identifier, **kwargs): # noqa: E501 + """List Debian upstream configs for this repository. # noqa: E501 - List Dart upstream configs for this repository. # noqa: E501 + List Debian upstream configs for this 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_upstream_dart_list_with_http_info(owner, identifier, async_req=True) + >>> thread = api.repos_upstream_deb_list_with_http_info(owner, identifier, async_req=True) >>> result = thread.get() :param async_req bool @@ -4631,7 +6019,7 @@ def repos_upstream_dart_list_with_http_info(self, owner, identifier, **kwargs): :param str identifier: (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[DartUpstream] + :return: list[DebUpstream] If the method is called asynchronously, returns the request thread. """ @@ -4647,18 +6035,18 @@ def repos_upstream_dart_list_with_http_info(self, owner, identifier, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method repos_upstream_dart_list" % key + " to method repos_upstream_deb_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_upstream_dart_list`") # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `repos_upstream_deb_list`") # 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_upstream_dart_list`") # noqa: E501 + raise ValueError("Missing the required parameter `identifier` when calling `repos_upstream_deb_list`") # noqa: E501 collection_formats = {} @@ -4692,14 +6080,14 @@ def repos_upstream_dart_list_with_http_info(self, owner, identifier, **kwargs): auth_settings = ['apikey', 'basic'] # noqa: E501 return self.api_client.call_api( - '/repos/{owner}/{identifier}/upstream/dart/', 'GET', + '/repos/{owner}/{identifier}/upstream/deb/', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='list[DartUpstream]', # noqa: E501 + response_type='list[DebUpstream]', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -4707,46 +6095,46 @@ def repos_upstream_dart_list_with_http_info(self, owner, identifier, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def repos_upstream_dart_partial_update(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 - """Partially update a Dart upstream config for this repository. # noqa: E501 + def repos_upstream_deb_partial_update(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Partially update a Debian upstream config for this repository. # noqa: E501 - Partially update a Dart upstream config for this repository. # noqa: E501 + Partially update a Debian upstream config for this 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_upstream_dart_partial_update(owner, identifier, slug_perm, async_req=True) + >>> thread = api.repos_upstream_deb_partial_update(owner, identifier, slug_perm, async_req=True) >>> result = thread.get() :param async_req bool :param str owner: (required) :param str identifier: (required) :param str slug_perm: (required) - :param DartUpstreamRequestPatch data: - :return: DartUpstream + :param DebUpstreamRequestPatch data: + :return: DebUpstream If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.repos_upstream_dart_partial_update_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 + return self.repos_upstream_deb_partial_update_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 else: - (data) = self.repos_upstream_dart_partial_update_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 + (data) = self.repos_upstream_deb_partial_update_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 return data - def repos_upstream_dart_partial_update_with_http_info(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 - """Partially update a Dart upstream config for this repository. # noqa: E501 + def repos_upstream_deb_partial_update_with_http_info(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Partially update a Debian upstream config for this repository. # noqa: E501 - Partially update a Dart upstream config for this repository. # noqa: E501 + Partially update a Debian upstream config for this 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_upstream_dart_partial_update_with_http_info(owner, identifier, slug_perm, async_req=True) + >>> thread = api.repos_upstream_deb_partial_update_with_http_info(owner, identifier, slug_perm, async_req=True) >>> result = thread.get() :param async_req bool :param str owner: (required) :param str identifier: (required) :param str slug_perm: (required) - :param DartUpstreamRequestPatch data: - :return: DartUpstream + :param DebUpstreamRequestPatch data: + :return: DebUpstream If the method is called asynchronously, returns the request thread. """ @@ -4762,22 +6150,22 @@ def repos_upstream_dart_partial_update_with_http_info(self, owner, identifier, s if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method repos_upstream_dart_partial_update" % key + " to method repos_upstream_deb_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_upstream_dart_partial_update`") # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `repos_upstream_deb_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_upstream_dart_partial_update`") # noqa: E501 + raise ValueError("Missing the required parameter `identifier` when calling `repos_upstream_deb_partial_update`") # noqa: E501 # verify the required parameter 'slug_perm' is set if self.api_client.client_side_validation and ('slug_perm' not in params or params['slug_perm'] is None): # noqa: E501 - raise ValueError("Missing the required parameter `slug_perm` when calling `repos_upstream_dart_partial_update`") # noqa: E501 + raise ValueError("Missing the required parameter `slug_perm` when calling `repos_upstream_deb_partial_update`") # noqa: E501 collection_formats = {} @@ -4811,14 +6199,14 @@ def repos_upstream_dart_partial_update_with_http_info(self, owner, identifier, s auth_settings = ['apikey', 'basic'] # noqa: E501 return self.api_client.call_api( - '/repos/{owner}/{identifier}/upstream/dart/{slug_perm}/', 'PATCH', + '/repos/{owner}/{identifier}/upstream/deb/{slug_perm}/', 'PATCH', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='DartUpstream', # noqa: E501 + response_type='DebUpstream', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -4826,44 +6214,44 @@ def repos_upstream_dart_partial_update_with_http_info(self, owner, identifier, s _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def repos_upstream_dart_read(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 - """Retrieve a Dart upstream config for this repository. # noqa: E501 + def repos_upstream_deb_read(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Retrieve a Debian upstream config for this repository. # noqa: E501 - Retrieve a Dart upstream config for this repository. # noqa: E501 + Retrieve a Debian upstream config for this 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_upstream_dart_read(owner, identifier, slug_perm, async_req=True) + >>> thread = api.repos_upstream_deb_read(owner, identifier, slug_perm, async_req=True) >>> result = thread.get() :param async_req bool :param str owner: (required) :param str identifier: (required) :param str slug_perm: (required) - :return: DartUpstream + :return: DebUpstream If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.repos_upstream_dart_read_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 + return self.repos_upstream_deb_read_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 else: - (data) = self.repos_upstream_dart_read_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 + (data) = self.repos_upstream_deb_read_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 return data - def repos_upstream_dart_read_with_http_info(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 - """Retrieve a Dart upstream config for this repository. # noqa: E501 + def repos_upstream_deb_read_with_http_info(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Retrieve a Debian upstream config for this repository. # noqa: E501 - Retrieve a Dart upstream config for this repository. # noqa: E501 + Retrieve a Debian upstream config for this 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_upstream_dart_read_with_http_info(owner, identifier, slug_perm, async_req=True) + >>> thread = api.repos_upstream_deb_read_with_http_info(owner, identifier, slug_perm, async_req=True) >>> result = thread.get() :param async_req bool :param str owner: (required) :param str identifier: (required) :param str slug_perm: (required) - :return: DartUpstream + :return: DebUpstream If the method is called asynchronously, returns the request thread. """ @@ -4879,22 +6267,22 @@ def repos_upstream_dart_read_with_http_info(self, owner, identifier, slug_perm, if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method repos_upstream_dart_read" % key + " to method repos_upstream_deb_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_upstream_dart_read`") # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `repos_upstream_deb_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_upstream_dart_read`") # noqa: E501 + raise ValueError("Missing the required parameter `identifier` when calling `repos_upstream_deb_read`") # noqa: E501 # verify the required parameter 'slug_perm' is set if self.api_client.client_side_validation and ('slug_perm' not in params or params['slug_perm'] is None): # noqa: E501 - raise ValueError("Missing the required parameter `slug_perm` when calling `repos_upstream_dart_read`") # noqa: E501 + raise ValueError("Missing the required parameter `slug_perm` when calling `repos_upstream_deb_read`") # noqa: E501 collection_formats = {} @@ -4926,14 +6314,14 @@ def repos_upstream_dart_read_with_http_info(self, owner, identifier, slug_perm, auth_settings = ['apikey', 'basic'] # noqa: E501 return self.api_client.call_api( - '/repos/{owner}/{identifier}/upstream/dart/{slug_perm}/', 'GET', + '/repos/{owner}/{identifier}/upstream/deb/{slug_perm}/', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='DartUpstream', # noqa: E501 + response_type='DebUpstream', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -4941,46 +6329,46 @@ def repos_upstream_dart_read_with_http_info(self, owner, identifier, slug_perm, _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def repos_upstream_dart_update(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 - """Update a Dart upstream config for this repository. # noqa: E501 + def repos_upstream_deb_update(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Update a Debian upstream config for this repository. # noqa: E501 - Update a Dart upstream config for this repository. # noqa: E501 + Update a Debian upstream config for this 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_upstream_dart_update(owner, identifier, slug_perm, async_req=True) + >>> thread = api.repos_upstream_deb_update(owner, identifier, slug_perm, async_req=True) >>> result = thread.get() :param async_req bool :param str owner: (required) :param str identifier: (required) :param str slug_perm: (required) - :param DartUpstreamRequest data: - :return: DartUpstream + :param DebUpstreamRequest data: + :return: DebUpstream If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.repos_upstream_dart_update_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 + return self.repos_upstream_deb_update_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 else: - (data) = self.repos_upstream_dart_update_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 + (data) = self.repos_upstream_deb_update_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 return data - def repos_upstream_dart_update_with_http_info(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 - """Update a Dart upstream config for this repository. # noqa: E501 + def repos_upstream_deb_update_with_http_info(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Update a Debian upstream config for this repository. # noqa: E501 - Update a Dart upstream config for this repository. # noqa: E501 + Update a Debian upstream config for this 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_upstream_dart_update_with_http_info(owner, identifier, slug_perm, async_req=True) + >>> thread = api.repos_upstream_deb_update_with_http_info(owner, identifier, slug_perm, async_req=True) >>> result = thread.get() :param async_req bool :param str owner: (required) :param str identifier: (required) :param str slug_perm: (required) - :param DartUpstreamRequest data: - :return: DartUpstream + :param DebUpstreamRequest data: + :return: DebUpstream If the method is called asynchronously, returns the request thread. """ @@ -4996,22 +6384,22 @@ def repos_upstream_dart_update_with_http_info(self, owner, identifier, slug_perm if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method repos_upstream_dart_update" % key + " to method repos_upstream_deb_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_upstream_dart_update`") # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `repos_upstream_deb_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_upstream_dart_update`") # noqa: E501 + raise ValueError("Missing the required parameter `identifier` when calling `repos_upstream_deb_update`") # noqa: E501 # verify the required parameter 'slug_perm' is set if self.api_client.client_side_validation and ('slug_perm' not in params or params['slug_perm'] is None): # noqa: E501 - raise ValueError("Missing the required parameter `slug_perm` when calling `repos_upstream_dart_update`") # noqa: E501 + raise ValueError("Missing the required parameter `slug_perm` when calling `repos_upstream_deb_update`") # noqa: E501 collection_formats = {} @@ -5045,14 +6433,14 @@ def repos_upstream_dart_update_with_http_info(self, owner, identifier, slug_perm auth_settings = ['apikey', 'basic'] # noqa: E501 return self.api_client.call_api( - '/repos/{owner}/{identifier}/upstream/dart/{slug_perm}/', 'PUT', + '/repos/{owner}/{identifier}/upstream/deb/{slug_perm}/', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='DartUpstream', # noqa: E501 + response_type='DebUpstream', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -5060,44 +6448,44 @@ def repos_upstream_dart_update_with_http_info(self, owner, identifier, slug_perm _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def repos_upstream_deb_create(self, owner, identifier, **kwargs): # noqa: E501 - """Create a Debian upstream config for this repository. # noqa: E501 + def repos_upstream_docker_create(self, owner, identifier, **kwargs): # noqa: E501 + """Create a Docker upstream config for this repository. # noqa: E501 - Create a Debian upstream config for this repository. # noqa: E501 + Create a Docker upstream config for this 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_upstream_deb_create(owner, identifier, async_req=True) + >>> thread = api.repos_upstream_docker_create(owner, identifier, async_req=True) >>> result = thread.get() :param async_req bool :param str owner: (required) :param str identifier: (required) - :param DebUpstreamRequest data: - :return: DebUpstream + :param DockerUpstreamRequest data: + :return: DockerUpstream If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.repos_upstream_deb_create_with_http_info(owner, identifier, **kwargs) # noqa: E501 + return self.repos_upstream_docker_create_with_http_info(owner, identifier, **kwargs) # noqa: E501 else: - (data) = self.repos_upstream_deb_create_with_http_info(owner, identifier, **kwargs) # noqa: E501 + (data) = self.repos_upstream_docker_create_with_http_info(owner, identifier, **kwargs) # noqa: E501 return data - def repos_upstream_deb_create_with_http_info(self, owner, identifier, **kwargs): # noqa: E501 - """Create a Debian upstream config for this repository. # noqa: E501 + def repos_upstream_docker_create_with_http_info(self, owner, identifier, **kwargs): # noqa: E501 + """Create a Docker upstream config for this repository. # noqa: E501 - Create a Debian upstream config for this repository. # noqa: E501 + Create a Docker upstream config for this 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_upstream_deb_create_with_http_info(owner, identifier, async_req=True) + >>> thread = api.repos_upstream_docker_create_with_http_info(owner, identifier, async_req=True) >>> result = thread.get() :param async_req bool :param str owner: (required) :param str identifier: (required) - :param DebUpstreamRequest data: - :return: DebUpstream + :param DockerUpstreamRequest data: + :return: DockerUpstream If the method is called asynchronously, returns the request thread. """ @@ -5113,18 +6501,18 @@ def repos_upstream_deb_create_with_http_info(self, owner, identifier, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method repos_upstream_deb_create" % key + " to method repos_upstream_docker_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_upstream_deb_create`") # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `repos_upstream_docker_create`") # 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_upstream_deb_create`") # noqa: E501 + raise ValueError("Missing the required parameter `identifier` when calling `repos_upstream_docker_create`") # noqa: E501 collection_formats = {} @@ -5156,14 +6544,14 @@ def repos_upstream_deb_create_with_http_info(self, owner, identifier, **kwargs): auth_settings = ['apikey', 'basic'] # noqa: E501 return self.api_client.call_api( - '/repos/{owner}/{identifier}/upstream/deb/', 'POST', + '/repos/{owner}/{identifier}/upstream/docker/', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='DebUpstream', # noqa: E501 + response_type='DockerUpstream', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -5171,13 +6559,13 @@ def repos_upstream_deb_create_with_http_info(self, owner, identifier, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def repos_upstream_deb_delete(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 - """Delete a Debian upstream config for this repository. # noqa: E501 + def repos_upstream_docker_delete(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Delete a Docker upstream config for this repository. # noqa: E501 - Delete a Debian upstream config for this repository. # noqa: E501 + Delete a Docker upstream config for this 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_upstream_deb_delete(owner, identifier, slug_perm, async_req=True) + >>> thread = api.repos_upstream_docker_delete(owner, identifier, slug_perm, async_req=True) >>> result = thread.get() :param async_req bool @@ -5190,18 +6578,18 @@ def repos_upstream_deb_delete(self, owner, identifier, slug_perm, **kwargs): # """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.repos_upstream_deb_delete_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 + return self.repos_upstream_docker_delete_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 else: - (data) = self.repos_upstream_deb_delete_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 + (data) = self.repos_upstream_docker_delete_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 return data - def repos_upstream_deb_delete_with_http_info(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 - """Delete a Debian upstream config for this repository. # noqa: E501 + def repos_upstream_docker_delete_with_http_info(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Delete a Docker upstream config for this repository. # noqa: E501 - Delete a Debian upstream config for this repository. # noqa: E501 + Delete a Docker upstream config for this 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_upstream_deb_delete_with_http_info(owner, identifier, slug_perm, async_req=True) + >>> thread = api.repos_upstream_docker_delete_with_http_info(owner, identifier, slug_perm, async_req=True) >>> result = thread.get() :param async_req bool @@ -5224,22 +6612,22 @@ def repos_upstream_deb_delete_with_http_info(self, owner, identifier, slug_perm, if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method repos_upstream_deb_delete" % key + " to method repos_upstream_docker_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_upstream_deb_delete`") # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `repos_upstream_docker_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_upstream_deb_delete`") # noqa: E501 + raise ValueError("Missing the required parameter `identifier` when calling `repos_upstream_docker_delete`") # noqa: E501 # verify the required parameter 'slug_perm' is set if self.api_client.client_side_validation and ('slug_perm' not in params or params['slug_perm'] is None): # noqa: E501 - raise ValueError("Missing the required parameter `slug_perm` when calling `repos_upstream_deb_delete`") # noqa: E501 + raise ValueError("Missing the required parameter `slug_perm` when calling `repos_upstream_docker_delete`") # noqa: E501 collection_formats = {} @@ -5271,7 +6659,7 @@ def repos_upstream_deb_delete_with_http_info(self, owner, identifier, slug_perm, auth_settings = ['apikey', 'basic'] # noqa: E501 return self.api_client.call_api( - '/repos/{owner}/{identifier}/upstream/deb/{slug_perm}/', 'DELETE', + '/repos/{owner}/{identifier}/upstream/docker/{slug_perm}/', 'DELETE', path_params, query_params, header_params, @@ -5286,13 +6674,13 @@ def repos_upstream_deb_delete_with_http_info(self, owner, identifier, slug_perm, _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def repos_upstream_deb_list(self, owner, identifier, **kwargs): # noqa: E501 - """List Debian upstream configs for this repository. # noqa: E501 + def repos_upstream_docker_list(self, owner, identifier, **kwargs): # noqa: E501 + """List Docker upstream configs for this repository. # noqa: E501 - List Debian upstream configs for this repository. # noqa: E501 + List Docker upstream configs for this 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_upstream_deb_list(owner, identifier, async_req=True) + >>> thread = api.repos_upstream_docker_list(owner, identifier, async_req=True) >>> result = thread.get() :param async_req bool @@ -5300,24 +6688,24 @@ def repos_upstream_deb_list(self, owner, identifier, **kwargs): # noqa: E501 :param str identifier: (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[DebUpstream] + :return: list[DockerUpstream] If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.repos_upstream_deb_list_with_http_info(owner, identifier, **kwargs) # noqa: E501 + return self.repos_upstream_docker_list_with_http_info(owner, identifier, **kwargs) # noqa: E501 else: - (data) = self.repos_upstream_deb_list_with_http_info(owner, identifier, **kwargs) # noqa: E501 + (data) = self.repos_upstream_docker_list_with_http_info(owner, identifier, **kwargs) # noqa: E501 return data - def repos_upstream_deb_list_with_http_info(self, owner, identifier, **kwargs): # noqa: E501 - """List Debian upstream configs for this repository. # noqa: E501 + def repos_upstream_docker_list_with_http_info(self, owner, identifier, **kwargs): # noqa: E501 + """List Docker upstream configs for this repository. # noqa: E501 - List Debian upstream configs for this repository. # noqa: E501 + List Docker upstream configs for this 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_upstream_deb_list_with_http_info(owner, identifier, async_req=True) + >>> thread = api.repos_upstream_docker_list_with_http_info(owner, identifier, async_req=True) >>> result = thread.get() :param async_req bool @@ -5325,7 +6713,7 @@ def repos_upstream_deb_list_with_http_info(self, owner, identifier, **kwargs): :param str identifier: (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[DebUpstream] + :return: list[DockerUpstream] If the method is called asynchronously, returns the request thread. """ @@ -5341,18 +6729,18 @@ def repos_upstream_deb_list_with_http_info(self, owner, identifier, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method repos_upstream_deb_list" % key + " to method repos_upstream_docker_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_upstream_deb_list`") # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `repos_upstream_docker_list`") # 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_upstream_deb_list`") # noqa: E501 + raise ValueError("Missing the required parameter `identifier` when calling `repos_upstream_docker_list`") # noqa: E501 collection_formats = {} @@ -5386,14 +6774,14 @@ def repos_upstream_deb_list_with_http_info(self, owner, identifier, **kwargs): auth_settings = ['apikey', 'basic'] # noqa: E501 return self.api_client.call_api( - '/repos/{owner}/{identifier}/upstream/deb/', 'GET', + '/repos/{owner}/{identifier}/upstream/docker/', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='list[DebUpstream]', # noqa: E501 + response_type='list[DockerUpstream]', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -5401,46 +6789,46 @@ def repos_upstream_deb_list_with_http_info(self, owner, identifier, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def repos_upstream_deb_partial_update(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 - """Partially update a Debian upstream config for this repository. # noqa: E501 + def repos_upstream_docker_partial_update(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Partially update a Docker upstream config for this repository. # noqa: E501 - Partially update a Debian upstream config for this repository. # noqa: E501 + Partially update a Docker upstream config for this 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_upstream_deb_partial_update(owner, identifier, slug_perm, async_req=True) + >>> thread = api.repos_upstream_docker_partial_update(owner, identifier, slug_perm, async_req=True) >>> result = thread.get() :param async_req bool :param str owner: (required) :param str identifier: (required) :param str slug_perm: (required) - :param DebUpstreamRequestPatch data: - :return: DebUpstream + :param DockerUpstreamRequestPatch data: + :return: DockerUpstream If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.repos_upstream_deb_partial_update_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 + return self.repos_upstream_docker_partial_update_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 else: - (data) = self.repos_upstream_deb_partial_update_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 + (data) = self.repos_upstream_docker_partial_update_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 return data - def repos_upstream_deb_partial_update_with_http_info(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 - """Partially update a Debian upstream config for this repository. # noqa: E501 + def repos_upstream_docker_partial_update_with_http_info(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Partially update a Docker upstream config for this repository. # noqa: E501 - Partially update a Debian upstream config for this repository. # noqa: E501 + Partially update a Docker upstream config for this 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_upstream_deb_partial_update_with_http_info(owner, identifier, slug_perm, async_req=True) + >>> thread = api.repos_upstream_docker_partial_update_with_http_info(owner, identifier, slug_perm, async_req=True) >>> result = thread.get() :param async_req bool :param str owner: (required) :param str identifier: (required) :param str slug_perm: (required) - :param DebUpstreamRequestPatch data: - :return: DebUpstream + :param DockerUpstreamRequestPatch data: + :return: DockerUpstream If the method is called asynchronously, returns the request thread. """ @@ -5456,22 +6844,22 @@ def repos_upstream_deb_partial_update_with_http_info(self, owner, identifier, sl if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method repos_upstream_deb_partial_update" % key + " to method repos_upstream_docker_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_upstream_deb_partial_update`") # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `repos_upstream_docker_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_upstream_deb_partial_update`") # noqa: E501 + raise ValueError("Missing the required parameter `identifier` when calling `repos_upstream_docker_partial_update`") # noqa: E501 # verify the required parameter 'slug_perm' is set if self.api_client.client_side_validation and ('slug_perm' not in params or params['slug_perm'] is None): # noqa: E501 - raise ValueError("Missing the required parameter `slug_perm` when calling `repos_upstream_deb_partial_update`") # noqa: E501 + raise ValueError("Missing the required parameter `slug_perm` when calling `repos_upstream_docker_partial_update`") # noqa: E501 collection_formats = {} @@ -5505,14 +6893,14 @@ def repos_upstream_deb_partial_update_with_http_info(self, owner, identifier, sl auth_settings = ['apikey', 'basic'] # noqa: E501 return self.api_client.call_api( - '/repos/{owner}/{identifier}/upstream/deb/{slug_perm}/', 'PATCH', + '/repos/{owner}/{identifier}/upstream/docker/{slug_perm}/', 'PATCH', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='DebUpstream', # noqa: E501 + response_type='DockerUpstream', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -5520,44 +6908,44 @@ def repos_upstream_deb_partial_update_with_http_info(self, owner, identifier, sl _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def repos_upstream_deb_read(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 - """Retrieve a Debian upstream config for this repository. # noqa: E501 + def repos_upstream_docker_read(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Retrieve a Docker upstream config for this repository. # noqa: E501 - Retrieve a Debian upstream config for this repository. # noqa: E501 + Retrieve a Docker upstream config for this 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_upstream_deb_read(owner, identifier, slug_perm, async_req=True) + >>> thread = api.repos_upstream_docker_read(owner, identifier, slug_perm, async_req=True) >>> result = thread.get() :param async_req bool :param str owner: (required) :param str identifier: (required) :param str slug_perm: (required) - :return: DebUpstream + :return: DockerUpstream If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.repos_upstream_deb_read_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 + return self.repos_upstream_docker_read_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 else: - (data) = self.repos_upstream_deb_read_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 + (data) = self.repos_upstream_docker_read_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 return data - def repos_upstream_deb_read_with_http_info(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 - """Retrieve a Debian upstream config for this repository. # noqa: E501 + def repos_upstream_docker_read_with_http_info(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Retrieve a Docker upstream config for this repository. # noqa: E501 - Retrieve a Debian upstream config for this repository. # noqa: E501 + Retrieve a Docker upstream config for this 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_upstream_deb_read_with_http_info(owner, identifier, slug_perm, async_req=True) + >>> thread = api.repos_upstream_docker_read_with_http_info(owner, identifier, slug_perm, async_req=True) >>> result = thread.get() :param async_req bool :param str owner: (required) :param str identifier: (required) :param str slug_perm: (required) - :return: DebUpstream + :return: DockerUpstream If the method is called asynchronously, returns the request thread. """ @@ -5573,22 +6961,22 @@ def repos_upstream_deb_read_with_http_info(self, owner, identifier, slug_perm, * if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method repos_upstream_deb_read" % key + " to method repos_upstream_docker_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_upstream_deb_read`") # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `repos_upstream_docker_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_upstream_deb_read`") # noqa: E501 + raise ValueError("Missing the required parameter `identifier` when calling `repos_upstream_docker_read`") # noqa: E501 # verify the required parameter 'slug_perm' is set if self.api_client.client_side_validation and ('slug_perm' not in params or params['slug_perm'] is None): # noqa: E501 - raise ValueError("Missing the required parameter `slug_perm` when calling `repos_upstream_deb_read`") # noqa: E501 + raise ValueError("Missing the required parameter `slug_perm` when calling `repos_upstream_docker_read`") # noqa: E501 collection_formats = {} @@ -5620,14 +7008,14 @@ def repos_upstream_deb_read_with_http_info(self, owner, identifier, slug_perm, * auth_settings = ['apikey', 'basic'] # noqa: E501 return self.api_client.call_api( - '/repos/{owner}/{identifier}/upstream/deb/{slug_perm}/', 'GET', + '/repos/{owner}/{identifier}/upstream/docker/{slug_perm}/', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='DebUpstream', # noqa: E501 + response_type='DockerUpstream', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -5635,46 +7023,46 @@ def repos_upstream_deb_read_with_http_info(self, owner, identifier, slug_perm, * _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def repos_upstream_deb_update(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 - """Update a Debian upstream config for this repository. # noqa: E501 + def repos_upstream_docker_update(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Update a Docker upstream config for this repository. # noqa: E501 - Update a Debian upstream config for this repository. # noqa: E501 + Update a Docker upstream config for this 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_upstream_deb_update(owner, identifier, slug_perm, async_req=True) + >>> thread = api.repos_upstream_docker_update(owner, identifier, slug_perm, async_req=True) >>> result = thread.get() :param async_req bool :param str owner: (required) :param str identifier: (required) :param str slug_perm: (required) - :param DebUpstreamRequest data: - :return: DebUpstream + :param DockerUpstreamRequest data: + :return: DockerUpstream If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.repos_upstream_deb_update_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 + return self.repos_upstream_docker_update_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 else: - (data) = self.repos_upstream_deb_update_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 + (data) = self.repos_upstream_docker_update_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 return data - def repos_upstream_deb_update_with_http_info(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 - """Update a Debian upstream config for this repository. # noqa: E501 + def repos_upstream_docker_update_with_http_info(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Update a Docker upstream config for this repository. # noqa: E501 - Update a Debian upstream config for this repository. # noqa: E501 + Update a Docker upstream config for this 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_upstream_deb_update_with_http_info(owner, identifier, slug_perm, async_req=True) + >>> thread = api.repos_upstream_docker_update_with_http_info(owner, identifier, slug_perm, async_req=True) >>> result = thread.get() :param async_req bool :param str owner: (required) :param str identifier: (required) :param str slug_perm: (required) - :param DebUpstreamRequest data: - :return: DebUpstream + :param DockerUpstreamRequest data: + :return: DockerUpstream If the method is called asynchronously, returns the request thread. """ @@ -5690,22 +7078,22 @@ def repos_upstream_deb_update_with_http_info(self, owner, identifier, slug_perm, if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method repos_upstream_deb_update" % key + " to method repos_upstream_docker_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_upstream_deb_update`") # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `repos_upstream_docker_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_upstream_deb_update`") # noqa: E501 + raise ValueError("Missing the required parameter `identifier` when calling `repos_upstream_docker_update`") # noqa: E501 # verify the required parameter 'slug_perm' is set if self.api_client.client_side_validation and ('slug_perm' not in params or params['slug_perm'] is None): # noqa: E501 - raise ValueError("Missing the required parameter `slug_perm` when calling `repos_upstream_deb_update`") # noqa: E501 + raise ValueError("Missing the required parameter `slug_perm` when calling `repos_upstream_docker_update`") # noqa: E501 collection_formats = {} @@ -5739,14 +7127,14 @@ def repos_upstream_deb_update_with_http_info(self, owner, identifier, slug_perm, auth_settings = ['apikey', 'basic'] # noqa: E501 return self.api_client.call_api( - '/repos/{owner}/{identifier}/upstream/deb/{slug_perm}/', 'PUT', + '/repos/{owner}/{identifier}/upstream/docker/{slug_perm}/', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='DebUpstream', # noqa: E501 + response_type='DockerUpstream', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -5754,44 +7142,44 @@ def repos_upstream_deb_update_with_http_info(self, owner, identifier, slug_perm, _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def repos_upstream_docker_create(self, owner, identifier, **kwargs): # noqa: E501 - """Create a Docker upstream config for this repository. # noqa: E501 + def repos_upstream_go_create(self, owner, identifier, **kwargs): # noqa: E501 + """Create a Go upstream config for this repository. # noqa: E501 - Create a Docker upstream config for this repository. # noqa: E501 + Create a Go upstream config for this 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_upstream_docker_create(owner, identifier, async_req=True) + >>> thread = api.repos_upstream_go_create(owner, identifier, async_req=True) >>> result = thread.get() :param async_req bool :param str owner: (required) :param str identifier: (required) - :param DockerUpstreamRequest data: - :return: DockerUpstream + :param GoUpstreamRequest data: + :return: GoUpstream If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.repos_upstream_docker_create_with_http_info(owner, identifier, **kwargs) # noqa: E501 + return self.repos_upstream_go_create_with_http_info(owner, identifier, **kwargs) # noqa: E501 else: - (data) = self.repos_upstream_docker_create_with_http_info(owner, identifier, **kwargs) # noqa: E501 + (data) = self.repos_upstream_go_create_with_http_info(owner, identifier, **kwargs) # noqa: E501 return data - def repos_upstream_docker_create_with_http_info(self, owner, identifier, **kwargs): # noqa: E501 - """Create a Docker upstream config for this repository. # noqa: E501 + def repos_upstream_go_create_with_http_info(self, owner, identifier, **kwargs): # noqa: E501 + """Create a Go upstream config for this repository. # noqa: E501 - Create a Docker upstream config for this repository. # noqa: E501 + Create a Go upstream config for this 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_upstream_docker_create_with_http_info(owner, identifier, async_req=True) + >>> thread = api.repos_upstream_go_create_with_http_info(owner, identifier, async_req=True) >>> result = thread.get() :param async_req bool :param str owner: (required) :param str identifier: (required) - :param DockerUpstreamRequest data: - :return: DockerUpstream + :param GoUpstreamRequest data: + :return: GoUpstream If the method is called asynchronously, returns the request thread. """ @@ -5807,18 +7195,18 @@ def repos_upstream_docker_create_with_http_info(self, owner, identifier, **kwarg if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method repos_upstream_docker_create" % key + " to method repos_upstream_go_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_upstream_docker_create`") # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `repos_upstream_go_create`") # 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_upstream_docker_create`") # noqa: E501 + raise ValueError("Missing the required parameter `identifier` when calling `repos_upstream_go_create`") # noqa: E501 collection_formats = {} @@ -5850,14 +7238,14 @@ def repos_upstream_docker_create_with_http_info(self, owner, identifier, **kwarg auth_settings = ['apikey', 'basic'] # noqa: E501 return self.api_client.call_api( - '/repos/{owner}/{identifier}/upstream/docker/', 'POST', + '/repos/{owner}/{identifier}/upstream/go/', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='DockerUpstream', # noqa: E501 + response_type='GoUpstream', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -5865,13 +7253,13 @@ def repos_upstream_docker_create_with_http_info(self, owner, identifier, **kwarg _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def repos_upstream_docker_delete(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 - """Delete a Docker upstream config for this repository. # noqa: E501 + def repos_upstream_go_delete(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Delete a Go upstream config for this repository. # noqa: E501 - Delete a Docker upstream config for this repository. # noqa: E501 + Delete a Go upstream config for this 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_upstream_docker_delete(owner, identifier, slug_perm, async_req=True) + >>> thread = api.repos_upstream_go_delete(owner, identifier, slug_perm, async_req=True) >>> result = thread.get() :param async_req bool @@ -5884,18 +7272,18 @@ def repos_upstream_docker_delete(self, owner, identifier, slug_perm, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.repos_upstream_docker_delete_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 + return self.repos_upstream_go_delete_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 else: - (data) = self.repos_upstream_docker_delete_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 + (data) = self.repos_upstream_go_delete_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 return data - def repos_upstream_docker_delete_with_http_info(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 - """Delete a Docker upstream config for this repository. # noqa: E501 + def repos_upstream_go_delete_with_http_info(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Delete a Go upstream config for this repository. # noqa: E501 - Delete a Docker upstream config for this repository. # noqa: E501 + Delete a Go upstream config for this 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_upstream_docker_delete_with_http_info(owner, identifier, slug_perm, async_req=True) + >>> thread = api.repos_upstream_go_delete_with_http_info(owner, identifier, slug_perm, async_req=True) >>> result = thread.get() :param async_req bool @@ -5918,22 +7306,22 @@ def repos_upstream_docker_delete_with_http_info(self, owner, identifier, slug_pe if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method repos_upstream_docker_delete" % key + " to method repos_upstream_go_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_upstream_docker_delete`") # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `repos_upstream_go_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_upstream_docker_delete`") # noqa: E501 + raise ValueError("Missing the required parameter `identifier` when calling `repos_upstream_go_delete`") # noqa: E501 # verify the required parameter 'slug_perm' is set if self.api_client.client_side_validation and ('slug_perm' not in params or params['slug_perm'] is None): # noqa: E501 - raise ValueError("Missing the required parameter `slug_perm` when calling `repos_upstream_docker_delete`") # noqa: E501 + raise ValueError("Missing the required parameter `slug_perm` when calling `repos_upstream_go_delete`") # noqa: E501 collection_formats = {} @@ -5965,7 +7353,7 @@ def repos_upstream_docker_delete_with_http_info(self, owner, identifier, slug_pe auth_settings = ['apikey', 'basic'] # noqa: E501 return self.api_client.call_api( - '/repos/{owner}/{identifier}/upstream/docker/{slug_perm}/', 'DELETE', + '/repos/{owner}/{identifier}/upstream/go/{slug_perm}/', 'DELETE', path_params, query_params, header_params, @@ -5980,13 +7368,13 @@ def repos_upstream_docker_delete_with_http_info(self, owner, identifier, slug_pe _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def repos_upstream_docker_list(self, owner, identifier, **kwargs): # noqa: E501 - """List Docker upstream configs for this repository. # noqa: E501 + def repos_upstream_go_list(self, owner, identifier, **kwargs): # noqa: E501 + """List Go upstream configs for this repository. # noqa: E501 - List Docker upstream configs for this repository. # noqa: E501 + List Go upstream configs for this 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_upstream_docker_list(owner, identifier, async_req=True) + >>> thread = api.repos_upstream_go_list(owner, identifier, async_req=True) >>> result = thread.get() :param async_req bool @@ -5994,24 +7382,24 @@ def repos_upstream_docker_list(self, owner, identifier, **kwargs): # noqa: E501 :param str identifier: (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[DockerUpstream] + :return: list[GoUpstream] If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.repos_upstream_docker_list_with_http_info(owner, identifier, **kwargs) # noqa: E501 + return self.repos_upstream_go_list_with_http_info(owner, identifier, **kwargs) # noqa: E501 else: - (data) = self.repos_upstream_docker_list_with_http_info(owner, identifier, **kwargs) # noqa: E501 + (data) = self.repos_upstream_go_list_with_http_info(owner, identifier, **kwargs) # noqa: E501 return data - def repos_upstream_docker_list_with_http_info(self, owner, identifier, **kwargs): # noqa: E501 - """List Docker upstream configs for this repository. # noqa: E501 + def repos_upstream_go_list_with_http_info(self, owner, identifier, **kwargs): # noqa: E501 + """List Go upstream configs for this repository. # noqa: E501 - List Docker upstream configs for this repository. # noqa: E501 + List Go upstream configs for this 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_upstream_docker_list_with_http_info(owner, identifier, async_req=True) + >>> thread = api.repos_upstream_go_list_with_http_info(owner, identifier, async_req=True) >>> result = thread.get() :param async_req bool @@ -6019,7 +7407,7 @@ def repos_upstream_docker_list_with_http_info(self, owner, identifier, **kwargs) :param str identifier: (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[DockerUpstream] + :return: list[GoUpstream] If the method is called asynchronously, returns the request thread. """ @@ -6035,18 +7423,18 @@ def repos_upstream_docker_list_with_http_info(self, owner, identifier, **kwargs) if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method repos_upstream_docker_list" % key + " to method repos_upstream_go_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_upstream_docker_list`") # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `repos_upstream_go_list`") # 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_upstream_docker_list`") # noqa: E501 + raise ValueError("Missing the required parameter `identifier` when calling `repos_upstream_go_list`") # noqa: E501 collection_formats = {} @@ -6080,14 +7468,14 @@ def repos_upstream_docker_list_with_http_info(self, owner, identifier, **kwargs) auth_settings = ['apikey', 'basic'] # noqa: E501 return self.api_client.call_api( - '/repos/{owner}/{identifier}/upstream/docker/', 'GET', + '/repos/{owner}/{identifier}/upstream/go/', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='list[DockerUpstream]', # noqa: E501 + response_type='list[GoUpstream]', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -6095,46 +7483,46 @@ def repos_upstream_docker_list_with_http_info(self, owner, identifier, **kwargs) _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def repos_upstream_docker_partial_update(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 - """Partially update a Docker upstream config for this repository. # noqa: E501 + def repos_upstream_go_partial_update(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Partially update a Go upstream config for this repository. # noqa: E501 - Partially update a Docker upstream config for this repository. # noqa: E501 + Partially update a Go upstream config for this 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_upstream_docker_partial_update(owner, identifier, slug_perm, async_req=True) + >>> thread = api.repos_upstream_go_partial_update(owner, identifier, slug_perm, async_req=True) >>> result = thread.get() :param async_req bool :param str owner: (required) :param str identifier: (required) :param str slug_perm: (required) - :param DockerUpstreamRequestPatch data: - :return: DockerUpstream + :param GoUpstreamRequestPatch data: + :return: GoUpstream If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.repos_upstream_docker_partial_update_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 + return self.repos_upstream_go_partial_update_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 else: - (data) = self.repos_upstream_docker_partial_update_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 + (data) = self.repos_upstream_go_partial_update_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 return data - def repos_upstream_docker_partial_update_with_http_info(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 - """Partially update a Docker upstream config for this repository. # noqa: E501 + def repos_upstream_go_partial_update_with_http_info(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Partially update a Go upstream config for this repository. # noqa: E501 - Partially update a Docker upstream config for this repository. # noqa: E501 + Partially update a Go upstream config for this 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_upstream_docker_partial_update_with_http_info(owner, identifier, slug_perm, async_req=True) + >>> thread = api.repos_upstream_go_partial_update_with_http_info(owner, identifier, slug_perm, async_req=True) >>> result = thread.get() :param async_req bool :param str owner: (required) :param str identifier: (required) :param str slug_perm: (required) - :param DockerUpstreamRequestPatch data: - :return: DockerUpstream + :param GoUpstreamRequestPatch data: + :return: GoUpstream If the method is called asynchronously, returns the request thread. """ @@ -6150,22 +7538,22 @@ def repos_upstream_docker_partial_update_with_http_info(self, owner, identifier, if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method repos_upstream_docker_partial_update" % key + " to method repos_upstream_go_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_upstream_docker_partial_update`") # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `repos_upstream_go_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_upstream_docker_partial_update`") # noqa: E501 + raise ValueError("Missing the required parameter `identifier` when calling `repos_upstream_go_partial_update`") # noqa: E501 # verify the required parameter 'slug_perm' is set if self.api_client.client_side_validation and ('slug_perm' not in params or params['slug_perm'] is None): # noqa: E501 - raise ValueError("Missing the required parameter `slug_perm` when calling `repos_upstream_docker_partial_update`") # noqa: E501 + raise ValueError("Missing the required parameter `slug_perm` when calling `repos_upstream_go_partial_update`") # noqa: E501 collection_formats = {} @@ -6199,14 +7587,14 @@ def repos_upstream_docker_partial_update_with_http_info(self, owner, identifier, auth_settings = ['apikey', 'basic'] # noqa: E501 return self.api_client.call_api( - '/repos/{owner}/{identifier}/upstream/docker/{slug_perm}/', 'PATCH', + '/repos/{owner}/{identifier}/upstream/go/{slug_perm}/', 'PATCH', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='DockerUpstream', # noqa: E501 + response_type='GoUpstream', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -6214,44 +7602,44 @@ def repos_upstream_docker_partial_update_with_http_info(self, owner, identifier, _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def repos_upstream_docker_read(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 - """Retrieve a Docker upstream config for this repository. # noqa: E501 + def repos_upstream_go_read(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Retrieve a Go upstream config for this repository. # noqa: E501 - Retrieve a Docker upstream config for this repository. # noqa: E501 + Retrieve a Go upstream config for this 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_upstream_docker_read(owner, identifier, slug_perm, async_req=True) + >>> thread = api.repos_upstream_go_read(owner, identifier, slug_perm, async_req=True) >>> result = thread.get() :param async_req bool :param str owner: (required) :param str identifier: (required) :param str slug_perm: (required) - :return: DockerUpstream + :return: GoUpstream If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.repos_upstream_docker_read_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 + return self.repos_upstream_go_read_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 else: - (data) = self.repos_upstream_docker_read_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 + (data) = self.repos_upstream_go_read_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 return data - def repos_upstream_docker_read_with_http_info(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 - """Retrieve a Docker upstream config for this repository. # noqa: E501 + def repos_upstream_go_read_with_http_info(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Retrieve a Go upstream config for this repository. # noqa: E501 - Retrieve a Docker upstream config for this repository. # noqa: E501 + Retrieve a Go upstream config for this 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_upstream_docker_read_with_http_info(owner, identifier, slug_perm, async_req=True) + >>> thread = api.repos_upstream_go_read_with_http_info(owner, identifier, slug_perm, async_req=True) >>> result = thread.get() :param async_req bool :param str owner: (required) :param str identifier: (required) :param str slug_perm: (required) - :return: DockerUpstream + :return: GoUpstream If the method is called asynchronously, returns the request thread. """ @@ -6267,22 +7655,22 @@ def repos_upstream_docker_read_with_http_info(self, owner, identifier, slug_perm if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method repos_upstream_docker_read" % key + " to method repos_upstream_go_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_upstream_docker_read`") # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `repos_upstream_go_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_upstream_docker_read`") # noqa: E501 + raise ValueError("Missing the required parameter `identifier` when calling `repos_upstream_go_read`") # noqa: E501 # verify the required parameter 'slug_perm' is set if self.api_client.client_side_validation and ('slug_perm' not in params or params['slug_perm'] is None): # noqa: E501 - raise ValueError("Missing the required parameter `slug_perm` when calling `repos_upstream_docker_read`") # noqa: E501 + raise ValueError("Missing the required parameter `slug_perm` when calling `repos_upstream_go_read`") # noqa: E501 collection_formats = {} @@ -6314,14 +7702,14 @@ def repos_upstream_docker_read_with_http_info(self, owner, identifier, slug_perm auth_settings = ['apikey', 'basic'] # noqa: E501 return self.api_client.call_api( - '/repos/{owner}/{identifier}/upstream/docker/{slug_perm}/', 'GET', + '/repos/{owner}/{identifier}/upstream/go/{slug_perm}/', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='DockerUpstream', # noqa: E501 + response_type='GoUpstream', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -6329,46 +7717,46 @@ def repos_upstream_docker_read_with_http_info(self, owner, identifier, slug_perm _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def repos_upstream_docker_update(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 - """Update a Docker upstream config for this repository. # noqa: E501 + def repos_upstream_go_update(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Update a Go upstream config for this repository. # noqa: E501 - Update a Docker upstream config for this repository. # noqa: E501 + Update a Go upstream config for this 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_upstream_docker_update(owner, identifier, slug_perm, async_req=True) + >>> thread = api.repos_upstream_go_update(owner, identifier, slug_perm, async_req=True) >>> result = thread.get() :param async_req bool :param str owner: (required) :param str identifier: (required) :param str slug_perm: (required) - :param DockerUpstreamRequest data: - :return: DockerUpstream + :param GoUpstreamRequest data: + :return: GoUpstream If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): - return self.repos_upstream_docker_update_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 + return self.repos_upstream_go_update_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 else: - (data) = self.repos_upstream_docker_update_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 + (data) = self.repos_upstream_go_update_with_http_info(owner, identifier, slug_perm, **kwargs) # noqa: E501 return data - def repos_upstream_docker_update_with_http_info(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 - """Update a Docker upstream config for this repository. # noqa: E501 + def repos_upstream_go_update_with_http_info(self, owner, identifier, slug_perm, **kwargs): # noqa: E501 + """Update a Go upstream config for this repository. # noqa: E501 - Update a Docker upstream config for this repository. # noqa: E501 + Update a Go upstream config for this 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_upstream_docker_update_with_http_info(owner, identifier, slug_perm, async_req=True) + >>> thread = api.repos_upstream_go_update_with_http_info(owner, identifier, slug_perm, async_req=True) >>> result = thread.get() :param async_req bool :param str owner: (required) :param str identifier: (required) :param str slug_perm: (required) - :param DockerUpstreamRequest data: - :return: DockerUpstream + :param GoUpstreamRequest data: + :return: GoUpstream If the method is called asynchronously, returns the request thread. """ @@ -6384,22 +7772,22 @@ def repos_upstream_docker_update_with_http_info(self, owner, identifier, slug_pe if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method repos_upstream_docker_update" % key + " to method repos_upstream_go_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_upstream_docker_update`") # noqa: E501 + raise ValueError("Missing the required parameter `owner` when calling `repos_upstream_go_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_upstream_docker_update`") # noqa: E501 + raise ValueError("Missing the required parameter `identifier` when calling `repos_upstream_go_update`") # noqa: E501 # verify the required parameter 'slug_perm' is set if self.api_client.client_side_validation and ('slug_perm' not in params or params['slug_perm'] is None): # noqa: E501 - raise ValueError("Missing the required parameter `slug_perm` when calling `repos_upstream_docker_update`") # noqa: E501 + raise ValueError("Missing the required parameter `slug_perm` when calling `repos_upstream_go_update`") # noqa: E501 collection_formats = {} @@ -6433,14 +7821,14 @@ def repos_upstream_docker_update_with_http_info(self, owner, identifier, slug_pe auth_settings = ['apikey', 'basic'] # noqa: E501 return self.api_client.call_api( - '/repos/{owner}/{identifier}/upstream/docker/{slug_perm}/', 'PUT', + '/repos/{owner}/{identifier}/upstream/go/{slug_perm}/', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='DockerUpstream', # noqa: E501 + response_type='GoUpstream', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), diff --git a/bindings/python/src/cloudsmith_api/api/user_api.py b/bindings/python/src/cloudsmith_api/api/user_api.py index 2e24be05..525f0eb5 100644 --- a/bindings/python/src/cloudsmith_api/api/user_api.py +++ b/bindings/python/src/cloudsmith_api/api/user_api.py @@ -322,7 +322,7 @@ def user_tokens_list(self, **kwargs): # noqa: E501 :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: InlineResponse200 + :return: InlineResponse2001 If the method is called asynchronously, returns the request thread. """ @@ -345,7 +345,7 @@ def user_tokens_list_with_http_info(self, **kwargs): # noqa: E501 :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: InlineResponse200 + :return: InlineResponse2001 If the method is called asynchronously, returns the request thread. """ @@ -401,7 +401,7 @@ def user_tokens_list_with_http_info(self, **kwargs): # noqa: E501 body=body_params, post_params=form_params, files=local_var_files, - response_type='InlineResponse200', # noqa: E501 + response_type='InlineResponse2001', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), diff --git a/bindings/python/src/cloudsmith_api/api_client.py b/bindings/python/src/cloudsmith_api/api_client.py index f46938a9..f875795a 100644 --- a/bindings/python/src/cloudsmith_api/api_client.py +++ b/bindings/python/src/cloudsmith_api/api_client.py @@ -74,7 +74,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None, self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'Swagger-Codegen/2.0.18/python' + self.user_agent = 'Swagger-Codegen/2.0.1/python' self.client_side_validation = configuration.client_side_validation def __del__(self): diff --git a/bindings/python/src/cloudsmith_api/configuration.py b/bindings/python/src/cloudsmith_api/configuration.py index cc74eeeb..889cb5db 100644 --- a/bindings/python/src/cloudsmith_api/configuration.py +++ b/bindings/python/src/cloudsmith_api/configuration.py @@ -261,5 +261,5 @@ def to_debug_report(self): "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: v1\n"\ - "SDK Package Version: 2.0.18".\ + "SDK Package Version: 2.0.1".\ 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 24aeafaf..db6b4fa4 100644 --- a/bindings/python/src/cloudsmith_api/models/__init__.py +++ b/bindings/python/src/cloudsmith_api/models/__init__.py @@ -22,6 +22,9 @@ from cloudsmith_api.models.architecture import Architecture from cloudsmith_api.models.cargo_package_upload import CargoPackageUpload from cloudsmith_api.models.cargo_package_upload_request import CargoPackageUploadRequest +from cloudsmith_api.models.cargo_upstream import CargoUpstream +from cloudsmith_api.models.cargo_upstream_request import CargoUpstreamRequest +from cloudsmith_api.models.cargo_upstream_request_patch import CargoUpstreamRequestPatch from cloudsmith_api.models.cocoapods_package_upload import CocoapodsPackageUpload from cloudsmith_api.models.cocoapods_package_upload_request import CocoapodsPackageUploadRequest from cloudsmith_api.models.common_bandwidth_metrics import CommonBandwidthMetrics @@ -70,6 +73,9 @@ from cloudsmith_api.models.geo_ip_location import GeoIpLocation from cloudsmith_api.models.go_package_upload import GoPackageUpload from cloudsmith_api.models.go_package_upload_request import GoPackageUploadRequest +from cloudsmith_api.models.go_upstream import GoUpstream +from cloudsmith_api.models.go_upstream_request import GoUpstreamRequest +from cloudsmith_api.models.go_upstream_request_patch import GoUpstreamRequestPatch from cloudsmith_api.models.helm_package_upload import HelmPackageUpload from cloudsmith_api.models.helm_package_upload_request import HelmPackageUploadRequest from cloudsmith_api.models.helm_upstream import HelmUpstream @@ -84,6 +90,7 @@ from cloudsmith_api.models.history_fieldset import HistoryFieldset from cloudsmith_api.models.history_fieldset_raw import HistoryFieldsetRaw from cloudsmith_api.models.inline_response200 import InlineResponse200 +from cloudsmith_api.models.inline_response2001 import InlineResponse2001 from cloudsmith_api.models.luarocks_package_upload import LuarocksPackageUpload from cloudsmith_api.models.luarocks_package_upload_request import LuarocksPackageUploadRequest from cloudsmith_api.models.maven_package_upload import MavenPackageUpload @@ -149,6 +156,7 @@ from cloudsmith_api.models.package_file_parts_upload import PackageFilePartsUpload from cloudsmith_api.models.package_file_upload import PackageFileUpload from cloudsmith_api.models.package_file_upload_request import PackageFileUploadRequest +from cloudsmith_api.models.package_group import PackageGroup from cloudsmith_api.models.package_license_policy_evaluation_request import PackageLicensePolicyEvaluationRequest from cloudsmith_api.models.package_license_policy_evaluation_request_request import PackageLicensePolicyEvaluationRequestRequest from cloudsmith_api.models.package_license_policy_violation_log import PackageLicensePolicyViolationLog diff --git a/bindings/python/src/cloudsmith_api/models/cargo_upstream.py b/bindings/python/src/cloudsmith_api/models/cargo_upstream.py new file mode 100644 index 00000000..324b4fc9 --- /dev/null +++ b/bindings/python/src/cloudsmith_api/models/cargo_upstream.py @@ -0,0 +1,676 @@ +# coding: utf-8 + +""" + Cloudsmith API (v1) + + 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 +""" + + +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration + + +class CargoUpstream(object): + """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 + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'auth_mode': 'str', + 'auth_secret': 'str', + 'auth_username': 'str', + 'created_at': 'datetime', + 'disable_reason': 'str', + 'extra_header_1': 'str', + 'extra_header_2': 'str', + 'extra_value_1': 'str', + 'extra_value_2': 'str', + 'is_active': 'bool', + 'mode': 'str', + 'name': 'str', + 'pending_validation': 'bool', + 'priority': 'int', + 'slug_perm': 'str', + 'updated_at': 'datetime', + 'upstream_url': 'str', + 'verify_ssl': 'bool' + } + + attribute_map = { + 'auth_mode': 'auth_mode', + 'auth_secret': 'auth_secret', + 'auth_username': 'auth_username', + 'created_at': 'created_at', + 'disable_reason': 'disable_reason', + 'extra_header_1': 'extra_header_1', + 'extra_header_2': 'extra_header_2', + 'extra_value_1': 'extra_value_1', + 'extra_value_2': 'extra_value_2', + 'is_active': 'is_active', + 'mode': 'mode', + 'name': 'name', + 'pending_validation': 'pending_validation', + 'priority': 'priority', + 'slug_perm': 'slug_perm', + 'updated_at': 'updated_at', + 'upstream_url': 'upstream_url', + 'verify_ssl': 'verify_ssl' + } + + def __init__(self, auth_mode='None', auth_secret=None, auth_username=None, created_at=None, disable_reason='N/A', extra_header_1=None, extra_header_2=None, extra_value_1=None, extra_value_2=None, is_active=None, mode='Proxy Only', name=None, pending_validation=None, priority=None, slug_perm=None, updated_at=None, upstream_url=None, verify_ssl=None, _configuration=None): # noqa: E501 + """CargoUpstream - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._auth_mode = None + self._auth_secret = None + self._auth_username = None + self._created_at = None + self._disable_reason = None + self._extra_header_1 = None + self._extra_header_2 = None + self._extra_value_1 = None + self._extra_value_2 = None + self._is_active = None + self._mode = None + self._name = None + self._pending_validation = None + self._priority = None + self._slug_perm = None + self._updated_at = None + self._upstream_url = None + self._verify_ssl = None + self.discriminator = None + + if auth_mode is not None: + self.auth_mode = auth_mode + if auth_secret is not None: + self.auth_secret = auth_secret + if auth_username is not None: + self.auth_username = auth_username + if created_at is not None: + self.created_at = created_at + if disable_reason is not None: + self.disable_reason = disable_reason + if extra_header_1 is not None: + self.extra_header_1 = extra_header_1 + if extra_header_2 is not None: + self.extra_header_2 = extra_header_2 + if extra_value_1 is not None: + self.extra_value_1 = extra_value_1 + if extra_value_2 is not None: + self.extra_value_2 = extra_value_2 + if is_active is not None: + self.is_active = is_active + if mode is not None: + self.mode = mode + self.name = name + if pending_validation is not None: + self.pending_validation = pending_validation + if priority is not None: + self.priority = priority + if slug_perm is not None: + self.slug_perm = slug_perm + if updated_at is not None: + self.updated_at = updated_at + self.upstream_url = upstream_url + if verify_ssl is not None: + self.verify_ssl = verify_ssl + + @property + def auth_mode(self): + """Gets the auth_mode of this CargoUpstream. + + The authentication mode to use when accessing this upstream. + + :return: The auth_mode of this CargoUpstream. + :rtype: str + """ + return self._auth_mode + + @auth_mode.setter + def auth_mode(self, auth_mode): + """Sets the auth_mode of this CargoUpstream. + + The authentication mode to use when accessing this upstream. + + :param auth_mode: The auth_mode of this CargoUpstream. + :type: str + """ + allowed_values = ["None", "Username and Password"] # noqa: E501 + if (self._configuration.client_side_validation and + auth_mode not in allowed_values): + raise ValueError( + "Invalid value for `auth_mode` ({0}), must be one of {1}" # noqa: E501 + .format(auth_mode, allowed_values) + ) + + self._auth_mode = auth_mode + + @property + def auth_secret(self): + """Gets the auth_secret of this CargoUpstream. + + Secret to provide with requests to upstream. + + :return: The auth_secret of this CargoUpstream. + :rtype: str + """ + return self._auth_secret + + @auth_secret.setter + def auth_secret(self, auth_secret): + """Sets the auth_secret of this CargoUpstream. + + Secret to provide with requests to upstream. + + :param auth_secret: The auth_secret of this CargoUpstream. + :type: str + """ + if (self._configuration.client_side_validation and + auth_secret is not None and len(auth_secret) > 4096): + raise ValueError("Invalid value for `auth_secret`, length must be less than or equal to `4096`") # noqa: E501 + + self._auth_secret = auth_secret + + @property + def auth_username(self): + """Gets the auth_username of this CargoUpstream. + + Username to provide with requests to upstream. + + :return: The auth_username of this CargoUpstream. + :rtype: str + """ + return self._auth_username + + @auth_username.setter + def auth_username(self, auth_username): + """Sets the auth_username of this CargoUpstream. + + Username to provide with requests to upstream. + + :param auth_username: The auth_username of this CargoUpstream. + :type: str + """ + if (self._configuration.client_side_validation and + auth_username is not None and len(auth_username) > 64): + raise ValueError("Invalid value for `auth_username`, length must be less than or equal to `64`") # noqa: E501 + + self._auth_username = auth_username + + @property + def created_at(self): + """Gets the created_at of this CargoUpstream. + + The datetime the upstream source was created. + + :return: The created_at of this CargoUpstream. + :rtype: datetime + """ + return self._created_at + + @created_at.setter + def created_at(self, created_at): + """Sets the created_at of this CargoUpstream. + + The datetime the upstream source was created. + + :param created_at: The created_at of this CargoUpstream. + :type: datetime + """ + + self._created_at = created_at + + @property + def disable_reason(self): + """Gets the disable_reason of this CargoUpstream. + + + :return: The disable_reason of this CargoUpstream. + :rtype: str + """ + return self._disable_reason + + @disable_reason.setter + def disable_reason(self, disable_reason): + """Sets the disable_reason of this CargoUpstream. + + + :param disable_reason: The disable_reason of this CargoUpstream. + :type: str + """ + allowed_values = ["N/A", "Upstream points to its own repository", "Missing upstream source", "Upstream was disabled by request of user"] # noqa: E501 + if (self._configuration.client_side_validation and + disable_reason not in allowed_values): + raise ValueError( + "Invalid value for `disable_reason` ({0}), must be one of {1}" # noqa: E501 + .format(disable_reason, allowed_values) + ) + + self._disable_reason = disable_reason + + @property + def extra_header_1(self): + """Gets the extra_header_1 of this CargoUpstream. + + The key for extra header #1 to send to upstream. + + :return: The extra_header_1 of this CargoUpstream. + :rtype: str + """ + return self._extra_header_1 + + @extra_header_1.setter + def extra_header_1(self, extra_header_1): + """Sets the extra_header_1 of this CargoUpstream. + + The key for extra header #1 to send to upstream. + + :param extra_header_1: The extra_header_1 of this CargoUpstream. + :type: str + """ + if (self._configuration.client_side_validation and + extra_header_1 is not None and len(extra_header_1) > 64): + raise ValueError("Invalid value for `extra_header_1`, length must be less than or equal to `64`") # noqa: E501 + if (self._configuration.client_side_validation and + extra_header_1 is not None and not re.search('^[-\\w]+$', extra_header_1)): # noqa: E501 + raise ValueError(r"Invalid value for `extra_header_1`, must be a follow pattern or equal to `/^[-\\w]+$/`") # noqa: E501 + + self._extra_header_1 = extra_header_1 + + @property + def extra_header_2(self): + """Gets the extra_header_2 of this CargoUpstream. + + The key for extra header #2 to send to upstream. + + :return: The extra_header_2 of this CargoUpstream. + :rtype: str + """ + return self._extra_header_2 + + @extra_header_2.setter + def extra_header_2(self, extra_header_2): + """Sets the extra_header_2 of this CargoUpstream. + + The key for extra header #2 to send to upstream. + + :param extra_header_2: The extra_header_2 of this CargoUpstream. + :type: str + """ + if (self._configuration.client_side_validation and + extra_header_2 is not None and len(extra_header_2) > 64): + raise ValueError("Invalid value for `extra_header_2`, length must be less than or equal to `64`") # noqa: E501 + if (self._configuration.client_side_validation and + extra_header_2 is not None and not re.search('^[-\\w]+$', extra_header_2)): # noqa: E501 + raise ValueError(r"Invalid value for `extra_header_2`, must be a follow pattern or equal to `/^[-\\w]+$/`") # noqa: E501 + + self._extra_header_2 = extra_header_2 + + @property + def extra_value_1(self): + """Gets the extra_value_1 of this CargoUpstream. + + The value for extra header #1 to send to upstream. This is stored as plaintext, and is NOT encrypted. + + :return: The extra_value_1 of this CargoUpstream. + :rtype: str + """ + return self._extra_value_1 + + @extra_value_1.setter + def extra_value_1(self, extra_value_1): + """Sets the extra_value_1 of this CargoUpstream. + + The value for extra header #1 to send to upstream. This is stored as plaintext, and is NOT encrypted. + + :param extra_value_1: The extra_value_1 of this CargoUpstream. + :type: str + """ + if (self._configuration.client_side_validation and + extra_value_1 is not None and len(extra_value_1) > 128): + raise ValueError("Invalid value for `extra_value_1`, length must be less than or equal to `128`") # noqa: E501 + if (self._configuration.client_side_validation and + extra_value_1 is not None and not re.search('^[^\\n\\r]+$', extra_value_1)): # noqa: E501 + raise ValueError(r"Invalid value for `extra_value_1`, must be a follow pattern or equal to `/^[^\\n\\r]+$/`") # noqa: E501 + + self._extra_value_1 = extra_value_1 + + @property + def extra_value_2(self): + """Gets the extra_value_2 of this CargoUpstream. + + The value for extra header #2 to send to upstream. This is stored as plaintext, and is NOT encrypted. + + :return: The extra_value_2 of this CargoUpstream. + :rtype: str + """ + return self._extra_value_2 + + @extra_value_2.setter + def extra_value_2(self, extra_value_2): + """Sets the extra_value_2 of this CargoUpstream. + + The value for extra header #2 to send to upstream. This is stored as plaintext, and is NOT encrypted. + + :param extra_value_2: The extra_value_2 of this CargoUpstream. + :type: str + """ + if (self._configuration.client_side_validation and + extra_value_2 is not None and len(extra_value_2) > 128): + raise ValueError("Invalid value for `extra_value_2`, length must be less than or equal to `128`") # noqa: E501 + if (self._configuration.client_side_validation and + extra_value_2 is not None and not re.search('^[^\\n\\r]+$', extra_value_2)): # noqa: E501 + raise ValueError(r"Invalid value for `extra_value_2`, must be a follow pattern or equal to `/^[^\\n\\r]+$/`") # noqa: E501 + + self._extra_value_2 = extra_value_2 + + @property + def is_active(self): + """Gets the is_active of this CargoUpstream. + + Whether or not this upstream is active and ready for requests. + + :return: The is_active of this CargoUpstream. + :rtype: bool + """ + return self._is_active + + @is_active.setter + def is_active(self, is_active): + """Sets the is_active of this CargoUpstream. + + Whether or not this upstream is active and ready for requests. + + :param is_active: The is_active of this CargoUpstream. + :type: bool + """ + + self._is_active = is_active + + @property + def mode(self): + """Gets the mode of this CargoUpstream. + + The mode that this upstream should operate in. Upstream sources can be used to proxy resolved packages, as well as operate in a proxy/cache or cache only mode. + + :return: The mode of this CargoUpstream. + :rtype: str + """ + return self._mode + + @mode.setter + def mode(self, mode): + """Sets the mode of this CargoUpstream. + + The mode that this upstream should operate in. Upstream sources can be used to proxy resolved packages, as well as operate in a proxy/cache or cache only mode. + + :param mode: The mode of this CargoUpstream. + :type: str + """ + allowed_values = ["Proxy Only"] # noqa: E501 + if (self._configuration.client_side_validation and + mode not in allowed_values): + raise ValueError( + "Invalid value for `mode` ({0}), must be one of {1}" # noqa: E501 + .format(mode, allowed_values) + ) + + self._mode = mode + + @property + def name(self): + """Gets the name of this CargoUpstream. + + A descriptive name for this upstream source. A shortened version of this name will be used for tagging cached packages retrieved from this upstream. + + :return: The name of this CargoUpstream. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this CargoUpstream. + + A descriptive name for this upstream source. A shortened version of this name will be used for tagging cached packages retrieved from this upstream. + + :param name: The name of this CargoUpstream. + :type: str + """ + if self._configuration.client_side_validation and name is None: + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 + if (self._configuration.client_side_validation and + name is not None and len(name) > 64): + raise ValueError("Invalid value for `name`, length must be less than or equal to `64`") # noqa: E501 + if (self._configuration.client_side_validation and + name is not None and len(name) < 1): + raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501 + if (self._configuration.client_side_validation and + name is not None and not re.search('^\\w[\\w \\-\'\\.\/()]+$', name)): # noqa: E501 + raise ValueError(r"Invalid value for `name`, must be a follow pattern or equal to `/^\\w[\\w \\-'\\.\/()]+$/`") # noqa: E501 + + self._name = name + + @property + def pending_validation(self): + """Gets the pending_validation of this CargoUpstream. + + When true, this upstream source is pending validation. + + :return: The pending_validation of this CargoUpstream. + :rtype: bool + """ + return self._pending_validation + + @pending_validation.setter + def pending_validation(self, pending_validation): + """Sets the pending_validation of this CargoUpstream. + + When true, this upstream source is pending validation. + + :param pending_validation: The pending_validation of this CargoUpstream. + :type: bool + """ + + self._pending_validation = pending_validation + + @property + def priority(self): + """Gets the priority of this CargoUpstream. + + Upstream sources are selected for resolving requests by sequential order (1..n), followed by creation date. + + :return: The priority of this CargoUpstream. + :rtype: int + """ + return self._priority + + @priority.setter + def priority(self, priority): + """Sets the priority of this CargoUpstream. + + Upstream sources are selected for resolving requests by sequential order (1..n), followed by creation date. + + :param priority: The priority of this CargoUpstream. + :type: int + """ + if (self._configuration.client_side_validation and + priority is not None and priority > 32767): # noqa: E501 + raise ValueError("Invalid value for `priority`, must be a value less than or equal to `32767`") # noqa: E501 + if (self._configuration.client_side_validation and + priority is not None and priority < 1): # noqa: E501 + raise ValueError("Invalid value for `priority`, must be a value greater than or equal to `1`") # noqa: E501 + + self._priority = priority + + @property + def slug_perm(self): + """Gets the slug_perm of this CargoUpstream. + + + :return: The slug_perm of this CargoUpstream. + :rtype: str + """ + return self._slug_perm + + @slug_perm.setter + def slug_perm(self, slug_perm): + """Sets the slug_perm of this CargoUpstream. + + + :param slug_perm: The slug_perm of this CargoUpstream. + :type: str + """ + if (self._configuration.client_side_validation and + slug_perm is not None and len(slug_perm) < 1): + raise ValueError("Invalid value for `slug_perm`, length must be greater than or equal to `1`") # noqa: E501 + if (self._configuration.client_side_validation and + slug_perm is not None and not re.search('^[-a-zA-Z0-9_]+$', slug_perm)): # noqa: E501 + raise ValueError(r"Invalid value for `slug_perm`, must be a follow pattern or equal to `/^[-a-zA-Z0-9_]+$/`") # noqa: E501 + + self._slug_perm = slug_perm + + @property + def updated_at(self): + """Gets the updated_at of this CargoUpstream. + + + :return: The updated_at of this CargoUpstream. + :rtype: datetime + """ + return self._updated_at + + @updated_at.setter + def updated_at(self, updated_at): + """Sets the updated_at of this CargoUpstream. + + + :param updated_at: The updated_at of this CargoUpstream. + :type: datetime + """ + + self._updated_at = updated_at + + @property + def upstream_url(http://github.com/self): + """Gets the upstream_url of this CargoUpstream. + + The URL for this upstream source. This must be a fully qualified URL including any path elements required to reach the root of the repository. + + :return: The upstream_url of this CargoUpstream. + :rtype: str + """ + return self._upstream_url + + @upstream_url.setter + def upstream_url(http://github.com/self,%20upstream_url): + """Sets the upstream_url of this CargoUpstream. + + The URL for this upstream source. This must be a fully qualified URL including any path elements required to reach the root of the repository. + + :param upstream_url: The upstream_url of this CargoUpstream. + :type: str + """ + if self._configuration.client_side_validation and upstream_url is None: + raise ValueError("Invalid value for `upstream_url`, must not be `None`") # noqa: E501 + if (self._configuration.client_side_validation and + upstream_url is not None and len(upstream_url) > 200): + raise ValueError("Invalid value for `upstream_url`, length must be less than or equal to `200`") # noqa: E501 + if (self._configuration.client_side_validation and + upstream_url is not None and len(upstream_url) < 1): + raise ValueError("Invalid value for `upstream_url`, length must be greater than or equal to `1`") # noqa: E501 + + self._upstream_url = upstream_url + + @property + def verify_ssl(self): + """Gets the verify_ssl of this CargoUpstream. + + If enabled, SSL certificates are verified when requests are made to this upstream. It's recommended to leave this enabled for all public sources to help mitigate Man-In-The-Middle (MITM) attacks. Please note this only applies to HTTPS upstreams. + + :return: The verify_ssl of this CargoUpstream. + :rtype: bool + """ + return self._verify_ssl + + @verify_ssl.setter + def verify_ssl(self, verify_ssl): + """Sets the verify_ssl of this CargoUpstream. + + If enabled, SSL certificates are verified when requests are made to this upstream. It's recommended to leave this enabled for all public sources to help mitigate Man-In-The-Middle (MITM) attacks. Please note this only applies to HTTPS upstreams. + + :param verify_ssl: The verify_ssl of this CargoUpstream. + :type: bool + """ + + self._verify_ssl = verify_ssl + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CargoUpstream, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CargoUpstream): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, CargoUpstream): + return True + + return self.to_dict() != other.to_dict() + diff --git a/bindings/python/src/cloudsmith_api/models/cargo_upstream_request.py b/bindings/python/src/cloudsmith_api/models/cargo_upstream_request.py new file mode 100644 index 00000000..a83d6c73 --- /dev/null +++ b/bindings/python/src/cloudsmith_api/models/cargo_upstream_request.py @@ -0,0 +1,529 @@ +# coding: utf-8 + +""" + Cloudsmith API (v1) + + 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 +""" + + +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration + + +class CargoUpstreamRequest(object): + """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 + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'auth_mode': 'str', + 'auth_secret': 'str', + 'auth_username': 'str', + 'extra_header_1': 'str', + 'extra_header_2': 'str', + 'extra_value_1': 'str', + 'extra_value_2': 'str', + 'is_active': 'bool', + 'mode': 'str', + 'name': 'str', + 'priority': 'int', + 'upstream_url': 'str', + 'verify_ssl': 'bool' + } + + attribute_map = { + 'auth_mode': 'auth_mode', + 'auth_secret': 'auth_secret', + 'auth_username': 'auth_username', + 'extra_header_1': 'extra_header_1', + 'extra_header_2': 'extra_header_2', + 'extra_value_1': 'extra_value_1', + 'extra_value_2': 'extra_value_2', + 'is_active': 'is_active', + 'mode': 'mode', + 'name': 'name', + 'priority': 'priority', + 'upstream_url': 'upstream_url', + 'verify_ssl': 'verify_ssl' + } + + def __init__(self, auth_mode='None', auth_secret=None, auth_username=None, extra_header_1=None, extra_header_2=None, extra_value_1=None, extra_value_2=None, is_active=None, mode='Proxy Only', name=None, priority=None, upstream_url=None, verify_ssl=None, _configuration=None): # noqa: E501 + """CargoUpstreamRequest - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._auth_mode = None + self._auth_secret = None + self._auth_username = None + self._extra_header_1 = None + self._extra_header_2 = None + self._extra_value_1 = None + self._extra_value_2 = None + self._is_active = None + self._mode = None + self._name = None + self._priority = None + self._upstream_url = None + self._verify_ssl = None + self.discriminator = None + + if auth_mode is not None: + self.auth_mode = auth_mode + if auth_secret is not None: + self.auth_secret = auth_secret + if auth_username is not None: + self.auth_username = auth_username + if extra_header_1 is not None: + self.extra_header_1 = extra_header_1 + if extra_header_2 is not None: + self.extra_header_2 = extra_header_2 + if extra_value_1 is not None: + self.extra_value_1 = extra_value_1 + if extra_value_2 is not None: + self.extra_value_2 = extra_value_2 + if is_active is not None: + self.is_active = is_active + if mode is not None: + self.mode = mode + self.name = name + if priority is not None: + self.priority = priority + self.upstream_url = upstream_url + if verify_ssl is not None: + self.verify_ssl = verify_ssl + + @property + def auth_mode(self): + """Gets the auth_mode of this CargoUpstreamRequest. + + The authentication mode to use when accessing this upstream. + + :return: The auth_mode of this CargoUpstreamRequest. + :rtype: str + """ + return self._auth_mode + + @auth_mode.setter + def auth_mode(self, auth_mode): + """Sets the auth_mode of this CargoUpstreamRequest. + + The authentication mode to use when accessing this upstream. + + :param auth_mode: The auth_mode of this CargoUpstreamRequest. + :type: str + """ + allowed_values = ["None", "Username and Password"] # noqa: E501 + if (self._configuration.client_side_validation and + auth_mode not in allowed_values): + raise ValueError( + "Invalid value for `auth_mode` ({0}), must be one of {1}" # noqa: E501 + .format(auth_mode, allowed_values) + ) + + self._auth_mode = auth_mode + + @property + def auth_secret(self): + """Gets the auth_secret of this CargoUpstreamRequest. + + Secret to provide with requests to upstream. + + :return: The auth_secret of this CargoUpstreamRequest. + :rtype: str + """ + return self._auth_secret + + @auth_secret.setter + def auth_secret(self, auth_secret): + """Sets the auth_secret of this CargoUpstreamRequest. + + Secret to provide with requests to upstream. + + :param auth_secret: The auth_secret of this CargoUpstreamRequest. + :type: str + """ + if (self._configuration.client_side_validation and + auth_secret is not None and len(auth_secret) > 4096): + raise ValueError("Invalid value for `auth_secret`, length must be less than or equal to `4096`") # noqa: E501 + + self._auth_secret = auth_secret + + @property + def auth_username(self): + """Gets the auth_username of this CargoUpstreamRequest. + + Username to provide with requests to upstream. + + :return: The auth_username of this CargoUpstreamRequest. + :rtype: str + """ + return self._auth_username + + @auth_username.setter + def auth_username(self, auth_username): + """Sets the auth_username of this CargoUpstreamRequest. + + Username to provide with requests to upstream. + + :param auth_username: The auth_username of this CargoUpstreamRequest. + :type: str + """ + if (self._configuration.client_side_validation and + auth_username is not None and len(auth_username) > 64): + raise ValueError("Invalid value for `auth_username`, length must be less than or equal to `64`") # noqa: E501 + + self._auth_username = auth_username + + @property + def extra_header_1(self): + """Gets the extra_header_1 of this CargoUpstreamRequest. + + The key for extra header #1 to send to upstream. + + :return: The extra_header_1 of this CargoUpstreamRequest. + :rtype: str + """ + return self._extra_header_1 + + @extra_header_1.setter + def extra_header_1(self, extra_header_1): + """Sets the extra_header_1 of this CargoUpstreamRequest. + + The key for extra header #1 to send to upstream. + + :param extra_header_1: The extra_header_1 of this CargoUpstreamRequest. + :type: str + """ + if (self._configuration.client_side_validation and + extra_header_1 is not None and len(extra_header_1) > 64): + raise ValueError("Invalid value for `extra_header_1`, length must be less than or equal to `64`") # noqa: E501 + if (self._configuration.client_side_validation and + extra_header_1 is not None and not re.search('^[-\\w]+$', extra_header_1)): # noqa: E501 + raise ValueError(r"Invalid value for `extra_header_1`, must be a follow pattern or equal to `/^[-\\w]+$/`") # noqa: E501 + + self._extra_header_1 = extra_header_1 + + @property + def extra_header_2(self): + """Gets the extra_header_2 of this CargoUpstreamRequest. + + The key for extra header #2 to send to upstream. + + :return: The extra_header_2 of this CargoUpstreamRequest. + :rtype: str + """ + return self._extra_header_2 + + @extra_header_2.setter + def extra_header_2(self, extra_header_2): + """Sets the extra_header_2 of this CargoUpstreamRequest. + + The key for extra header #2 to send to upstream. + + :param extra_header_2: The extra_header_2 of this CargoUpstreamRequest. + :type: str + """ + if (self._configuration.client_side_validation and + extra_header_2 is not None and len(extra_header_2) > 64): + raise ValueError("Invalid value for `extra_header_2`, length must be less than or equal to `64`") # noqa: E501 + if (self._configuration.client_side_validation and + extra_header_2 is not None and not re.search('^[-\\w]+$', extra_header_2)): # noqa: E501 + raise ValueError(r"Invalid value for `extra_header_2`, must be a follow pattern or equal to `/^[-\\w]+$/`") # noqa: E501 + + self._extra_header_2 = extra_header_2 + + @property + def extra_value_1(self): + """Gets the extra_value_1 of this CargoUpstreamRequest. + + The value for extra header #1 to send to upstream. This is stored as plaintext, and is NOT encrypted. + + :return: The extra_value_1 of this CargoUpstreamRequest. + :rtype: str + """ + return self._extra_value_1 + + @extra_value_1.setter + def extra_value_1(self, extra_value_1): + """Sets the extra_value_1 of this CargoUpstreamRequest. + + The value for extra header #1 to send to upstream. This is stored as plaintext, and is NOT encrypted. + + :param extra_value_1: The extra_value_1 of this CargoUpstreamRequest. + :type: str + """ + if (self._configuration.client_side_validation and + extra_value_1 is not None and len(extra_value_1) > 128): + raise ValueError("Invalid value for `extra_value_1`, length must be less than or equal to `128`") # noqa: E501 + if (self._configuration.client_side_validation and + extra_value_1 is not None and not re.search('^[^\\n\\r]+$', extra_value_1)): # noqa: E501 + raise ValueError(r"Invalid value for `extra_value_1`, must be a follow pattern or equal to `/^[^\\n\\r]+$/`") # noqa: E501 + + self._extra_value_1 = extra_value_1 + + @property + def extra_value_2(self): + """Gets the extra_value_2 of this CargoUpstreamRequest. + + The value for extra header #2 to send to upstream. This is stored as plaintext, and is NOT encrypted. + + :return: The extra_value_2 of this CargoUpstreamRequest. + :rtype: str + """ + return self._extra_value_2 + + @extra_value_2.setter + def extra_value_2(self, extra_value_2): + """Sets the extra_value_2 of this CargoUpstreamRequest. + + The value for extra header #2 to send to upstream. This is stored as plaintext, and is NOT encrypted. + + :param extra_value_2: The extra_value_2 of this CargoUpstreamRequest. + :type: str + """ + if (self._configuration.client_side_validation and + extra_value_2 is not None and len(extra_value_2) > 128): + raise ValueError("Invalid value for `extra_value_2`, length must be less than or equal to `128`") # noqa: E501 + if (self._configuration.client_side_validation and + extra_value_2 is not None and not re.search('^[^\\n\\r]+$', extra_value_2)): # noqa: E501 + raise ValueError(r"Invalid value for `extra_value_2`, must be a follow pattern or equal to `/^[^\\n\\r]+$/`") # noqa: E501 + + self._extra_value_2 = extra_value_2 + + @property + def is_active(self): + """Gets the is_active of this CargoUpstreamRequest. + + Whether or not this upstream is active and ready for requests. + + :return: The is_active of this CargoUpstreamRequest. + :rtype: bool + """ + return self._is_active + + @is_active.setter + def is_active(self, is_active): + """Sets the is_active of this CargoUpstreamRequest. + + Whether or not this upstream is active and ready for requests. + + :param is_active: The is_active of this CargoUpstreamRequest. + :type: bool + """ + + self._is_active = is_active + + @property + def mode(self): + """Gets the mode of this CargoUpstreamRequest. + + The mode that this upstream should operate in. Upstream sources can be used to proxy resolved packages, as well as operate in a proxy/cache or cache only mode. + + :return: The mode of this CargoUpstreamRequest. + :rtype: str + """ + return self._mode + + @mode.setter + def mode(self, mode): + """Sets the mode of this CargoUpstreamRequest. + + The mode that this upstream should operate in. Upstream sources can be used to proxy resolved packages, as well as operate in a proxy/cache or cache only mode. + + :param mode: The mode of this CargoUpstreamRequest. + :type: str + """ + allowed_values = ["Proxy Only"] # noqa: E501 + if (self._configuration.client_side_validation and + mode not in allowed_values): + raise ValueError( + "Invalid value for `mode` ({0}), must be one of {1}" # noqa: E501 + .format(mode, allowed_values) + ) + + self._mode = mode + + @property + def name(self): + """Gets the name of this CargoUpstreamRequest. + + A descriptive name for this upstream source. A shortened version of this name will be used for tagging cached packages retrieved from this upstream. + + :return: The name of this CargoUpstreamRequest. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this CargoUpstreamRequest. + + A descriptive name for this upstream source. A shortened version of this name will be used for tagging cached packages retrieved from this upstream. + + :param name: The name of this CargoUpstreamRequest. + :type: str + """ + if self._configuration.client_side_validation and name is None: + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 + if (self._configuration.client_side_validation and + name is not None and len(name) > 64): + raise ValueError("Invalid value for `name`, length must be less than or equal to `64`") # noqa: E501 + if (self._configuration.client_side_validation and + name is not None and len(name) < 1): + raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501 + if (self._configuration.client_side_validation and + name is not None and not re.search('^\\w[\\w \\-\'\\.\/()]+$', name)): # noqa: E501 + raise ValueError(r"Invalid value for `name`, must be a follow pattern or equal to `/^\\w[\\w \\-'\\.\/()]+$/`") # noqa: E501 + + self._name = name + + @property + def priority(self): + """Gets the priority of this CargoUpstreamRequest. + + Upstream sources are selected for resolving requests by sequential order (1..n), followed by creation date. + + :return: The priority of this CargoUpstreamRequest. + :rtype: int + """ + return self._priority + + @priority.setter + def priority(self, priority): + """Sets the priority of this CargoUpstreamRequest. + + Upstream sources are selected for resolving requests by sequential order (1..n), followed by creation date. + + :param priority: The priority of this CargoUpstreamRequest. + :type: int + """ + if (self._configuration.client_side_validation and + priority is not None and priority > 32767): # noqa: E501 + raise ValueError("Invalid value for `priority`, must be a value less than or equal to `32767`") # noqa: E501 + if (self._configuration.client_side_validation and + priority is not None and priority < 1): # noqa: E501 + raise ValueError("Invalid value for `priority`, must be a value greater than or equal to `1`") # noqa: E501 + + self._priority = priority + + @property + def upstream_url(http://github.com/self): + """Gets the upstream_url of this CargoUpstreamRequest. + + The URL for this upstream source. This must be a fully qualified URL including any path elements required to reach the root of the repository. + + :return: The upstream_url of this CargoUpstreamRequest. + :rtype: str + """ + return self._upstream_url + + @upstream_url.setter + def upstream_url(http://github.com/self,%20upstream_url): + """Sets the upstream_url of this CargoUpstreamRequest. + + The URL for this upstream source. This must be a fully qualified URL including any path elements required to reach the root of the repository. + + :param upstream_url: The upstream_url of this CargoUpstreamRequest. + :type: str + """ + if self._configuration.client_side_validation and upstream_url is None: + raise ValueError("Invalid value for `upstream_url`, must not be `None`") # noqa: E501 + if (self._configuration.client_side_validation and + upstream_url is not None and len(upstream_url) > 200): + raise ValueError("Invalid value for `upstream_url`, length must be less than or equal to `200`") # noqa: E501 + if (self._configuration.client_side_validation and + upstream_url is not None and len(upstream_url) < 1): + raise ValueError("Invalid value for `upstream_url`, length must be greater than or equal to `1`") # noqa: E501 + + self._upstream_url = upstream_url + + @property + def verify_ssl(self): + """Gets the verify_ssl of this CargoUpstreamRequest. + + If enabled, SSL certificates are verified when requests are made to this upstream. It's recommended to leave this enabled for all public sources to help mitigate Man-In-The-Middle (MITM) attacks. Please note this only applies to HTTPS upstreams. + + :return: The verify_ssl of this CargoUpstreamRequest. + :rtype: bool + """ + return self._verify_ssl + + @verify_ssl.setter + def verify_ssl(self, verify_ssl): + """Sets the verify_ssl of this CargoUpstreamRequest. + + If enabled, SSL certificates are verified when requests are made to this upstream. It's recommended to leave this enabled for all public sources to help mitigate Man-In-The-Middle (MITM) attacks. Please note this only applies to HTTPS upstreams. + + :param verify_ssl: The verify_ssl of this CargoUpstreamRequest. + :type: bool + """ + + self._verify_ssl = verify_ssl + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CargoUpstreamRequest, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CargoUpstreamRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, CargoUpstreamRequest): + return True + + return self.to_dict() != other.to_dict() + diff --git a/bindings/python/src/cloudsmith_api/models/cargo_upstream_request_patch.py b/bindings/python/src/cloudsmith_api/models/cargo_upstream_request_patch.py new file mode 100644 index 00000000..6dc101af --- /dev/null +++ b/bindings/python/src/cloudsmith_api/models/cargo_upstream_request_patch.py @@ -0,0 +1,527 @@ +# coding: utf-8 + +""" + Cloudsmith API (v1) + + 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 +""" + + +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration + + +class CargoUpstreamRequestPatch(object): + """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 + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'auth_mode': 'str', + 'auth_secret': 'str', + 'auth_username': 'str', + 'extra_header_1': 'str', + 'extra_header_2': 'str', + 'extra_value_1': 'str', + 'extra_value_2': 'str', + 'is_active': 'bool', + 'mode': 'str', + 'name': 'str', + 'priority': 'int', + 'upstream_url': 'str', + 'verify_ssl': 'bool' + } + + attribute_map = { + 'auth_mode': 'auth_mode', + 'auth_secret': 'auth_secret', + 'auth_username': 'auth_username', + 'extra_header_1': 'extra_header_1', + 'extra_header_2': 'extra_header_2', + 'extra_value_1': 'extra_value_1', + 'extra_value_2': 'extra_value_2', + 'is_active': 'is_active', + 'mode': 'mode', + 'name': 'name', + 'priority': 'priority', + 'upstream_url': 'upstream_url', + 'verify_ssl': 'verify_ssl' + } + + def __init__(self, auth_mode='None', auth_secret=None, auth_username=None, extra_header_1=None, extra_header_2=None, extra_value_1=None, extra_value_2=None, is_active=None, mode='Proxy Only', name=None, priority=None, upstream_url=None, verify_ssl=None, _configuration=None): # noqa: E501 + """CargoUpstreamRequestPatch - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._auth_mode = None + self._auth_secret = None + self._auth_username = None + self._extra_header_1 = None + self._extra_header_2 = None + self._extra_value_1 = None + self._extra_value_2 = None + self._is_active = None + self._mode = None + self._name = None + self._priority = None + self._upstream_url = None + self._verify_ssl = None + self.discriminator = None + + if auth_mode is not None: + self.auth_mode = auth_mode + if auth_secret is not None: + self.auth_secret = auth_secret + if auth_username is not None: + self.auth_username = auth_username + if extra_header_1 is not None: + self.extra_header_1 = extra_header_1 + if extra_header_2 is not None: + self.extra_header_2 = extra_header_2 + if extra_value_1 is not None: + self.extra_value_1 = extra_value_1 + if extra_value_2 is not None: + self.extra_value_2 = extra_value_2 + if is_active is not None: + self.is_active = is_active + if mode is not None: + self.mode = mode + if name is not None: + self.name = name + if priority is not None: + self.priority = priority + if upstream_url is not None: + self.upstream_url = upstream_url + if verify_ssl is not None: + self.verify_ssl = verify_ssl + + @property + def auth_mode(self): + """Gets the auth_mode of this CargoUpstreamRequestPatch. + + The authentication mode to use when accessing this upstream. + + :return: The auth_mode of this CargoUpstreamRequestPatch. + :rtype: str + """ + return self._auth_mode + + @auth_mode.setter + def auth_mode(self, auth_mode): + """Sets the auth_mode of this CargoUpstreamRequestPatch. + + The authentication mode to use when accessing this upstream. + + :param auth_mode: The auth_mode of this CargoUpstreamRequestPatch. + :type: str + """ + allowed_values = ["None", "Username and Password"] # noqa: E501 + if (self._configuration.client_side_validation and + auth_mode not in allowed_values): + raise ValueError( + "Invalid value for `auth_mode` ({0}), must be one of {1}" # noqa: E501 + .format(auth_mode, allowed_values) + ) + + self._auth_mode = auth_mode + + @property + def auth_secret(self): + """Gets the auth_secret of this CargoUpstreamRequestPatch. + + Secret to provide with requests to upstream. + + :return: The auth_secret of this CargoUpstreamRequestPatch. + :rtype: str + """ + return self._auth_secret + + @auth_secret.setter + def auth_secret(self, auth_secret): + """Sets the auth_secret of this CargoUpstreamRequestPatch. + + Secret to provide with requests to upstream. + + :param auth_secret: The auth_secret of this CargoUpstreamRequestPatch. + :type: str + """ + if (self._configuration.client_side_validation and + auth_secret is not None and len(auth_secret) > 4096): + raise ValueError("Invalid value for `auth_secret`, length must be less than or equal to `4096`") # noqa: E501 + + self._auth_secret = auth_secret + + @property + def auth_username(self): + """Gets the auth_username of this CargoUpstreamRequestPatch. + + Username to provide with requests to upstream. + + :return: The auth_username of this CargoUpstreamRequestPatch. + :rtype: str + """ + return self._auth_username + + @auth_username.setter + def auth_username(self, auth_username): + """Sets the auth_username of this CargoUpstreamRequestPatch. + + Username to provide with requests to upstream. + + :param auth_username: The auth_username of this CargoUpstreamRequestPatch. + :type: str + """ + if (self._configuration.client_side_validation and + auth_username is not None and len(auth_username) > 64): + raise ValueError("Invalid value for `auth_username`, length must be less than or equal to `64`") # noqa: E501 + + self._auth_username = auth_username + + @property + def extra_header_1(self): + """Gets the extra_header_1 of this CargoUpstreamRequestPatch. + + The key for extra header #1 to send to upstream. + + :return: The extra_header_1 of this CargoUpstreamRequestPatch. + :rtype: str + """ + return self._extra_header_1 + + @extra_header_1.setter + def extra_header_1(self, extra_header_1): + """Sets the extra_header_1 of this CargoUpstreamRequestPatch. + + The key for extra header #1 to send to upstream. + + :param extra_header_1: The extra_header_1 of this CargoUpstreamRequestPatch. + :type: str + """ + if (self._configuration.client_side_validation and + extra_header_1 is not None and len(extra_header_1) > 64): + raise ValueError("Invalid value for `extra_header_1`, length must be less than or equal to `64`") # noqa: E501 + if (self._configuration.client_side_validation and + extra_header_1 is not None and not re.search('^[-\\w]+$', extra_header_1)): # noqa: E501 + raise ValueError(r"Invalid value for `extra_header_1`, must be a follow pattern or equal to `/^[-\\w]+$/`") # noqa: E501 + + self._extra_header_1 = extra_header_1 + + @property + def extra_header_2(self): + """Gets the extra_header_2 of this CargoUpstreamRequestPatch. + + The key for extra header #2 to send to upstream. + + :return: The extra_header_2 of this CargoUpstreamRequestPatch. + :rtype: str + """ + return self._extra_header_2 + + @extra_header_2.setter + def extra_header_2(self, extra_header_2): + """Sets the extra_header_2 of this CargoUpstreamRequestPatch. + + The key for extra header #2 to send to upstream. + + :param extra_header_2: The extra_header_2 of this CargoUpstreamRequestPatch. + :type: str + """ + if (self._configuration.client_side_validation and + extra_header_2 is not None and len(extra_header_2) > 64): + raise ValueError("Invalid value for `extra_header_2`, length must be less than or equal to `64`") # noqa: E501 + if (self._configuration.client_side_validation and + extra_header_2 is not None and not re.search('^[-\\w]+$', extra_header_2)): # noqa: E501 + raise ValueError(r"Invalid value for `extra_header_2`, must be a follow pattern or equal to `/^[-\\w]+$/`") # noqa: E501 + + self._extra_header_2 = extra_header_2 + + @property + def extra_value_1(self): + """Gets the extra_value_1 of this CargoUpstreamRequestPatch. + + The value for extra header #1 to send to upstream. This is stored as plaintext, and is NOT encrypted. + + :return: The extra_value_1 of this CargoUpstreamRequestPatch. + :rtype: str + """ + return self._extra_value_1 + + @extra_value_1.setter + def extra_value_1(self, extra_value_1): + """Sets the extra_value_1 of this CargoUpstreamRequestPatch. + + The value for extra header #1 to send to upstream. This is stored as plaintext, and is NOT encrypted. + + :param extra_value_1: The extra_value_1 of this CargoUpstreamRequestPatch. + :type: str + """ + if (self._configuration.client_side_validation and + extra_value_1 is not None and len(extra_value_1) > 128): + raise ValueError("Invalid value for `extra_value_1`, length must be less than or equal to `128`") # noqa: E501 + if (self._configuration.client_side_validation and + extra_value_1 is not None and not re.search('^[^\\n\\r]+$', extra_value_1)): # noqa: E501 + raise ValueError(r"Invalid value for `extra_value_1`, must be a follow pattern or equal to `/^[^\\n\\r]+$/`") # noqa: E501 + + self._extra_value_1 = extra_value_1 + + @property + def extra_value_2(self): + """Gets the extra_value_2 of this CargoUpstreamRequestPatch. + + The value for extra header #2 to send to upstream. This is stored as plaintext, and is NOT encrypted. + + :return: The extra_value_2 of this CargoUpstreamRequestPatch. + :rtype: str + """ + return self._extra_value_2 + + @extra_value_2.setter + def extra_value_2(self, extra_value_2): + """Sets the extra_value_2 of this CargoUpstreamRequestPatch. + + The value for extra header #2 to send to upstream. This is stored as plaintext, and is NOT encrypted. + + :param extra_value_2: The extra_value_2 of this CargoUpstreamRequestPatch. + :type: str + """ + if (self._configuration.client_side_validation and + extra_value_2 is not None and len(extra_value_2) > 128): + raise ValueError("Invalid value for `extra_value_2`, length must be less than or equal to `128`") # noqa: E501 + if (self._configuration.client_side_validation and + extra_value_2 is not None and not re.search('^[^\\n\\r]+$', extra_value_2)): # noqa: E501 + raise ValueError(r"Invalid value for `extra_value_2`, must be a follow pattern or equal to `/^[^\\n\\r]+$/`") # noqa: E501 + + self._extra_value_2 = extra_value_2 + + @property + def is_active(self): + """Gets the is_active of this CargoUpstreamRequestPatch. + + Whether or not this upstream is active and ready for requests. + + :return: The is_active of this CargoUpstreamRequestPatch. + :rtype: bool + """ + return self._is_active + + @is_active.setter + def is_active(self, is_active): + """Sets the is_active of this CargoUpstreamRequestPatch. + + Whether or not this upstream is active and ready for requests. + + :param is_active: The is_active of this CargoUpstreamRequestPatch. + :type: bool + """ + + self._is_active = is_active + + @property + def mode(self): + """Gets the mode of this CargoUpstreamRequestPatch. + + The mode that this upstream should operate in. Upstream sources can be used to proxy resolved packages, as well as operate in a proxy/cache or cache only mode. + + :return: The mode of this CargoUpstreamRequestPatch. + :rtype: str + """ + return self._mode + + @mode.setter + def mode(self, mode): + """Sets the mode of this CargoUpstreamRequestPatch. + + The mode that this upstream should operate in. Upstream sources can be used to proxy resolved packages, as well as operate in a proxy/cache or cache only mode. + + :param mode: The mode of this CargoUpstreamRequestPatch. + :type: str + """ + allowed_values = ["Proxy Only"] # noqa: E501 + if (self._configuration.client_side_validation and + mode not in allowed_values): + raise ValueError( + "Invalid value for `mode` ({0}), must be one of {1}" # noqa: E501 + .format(mode, allowed_values) + ) + + self._mode = mode + + @property + def name(self): + """Gets the name of this CargoUpstreamRequestPatch. + + A descriptive name for this upstream source. A shortened version of this name will be used for tagging cached packages retrieved from this upstream. + + :return: The name of this CargoUpstreamRequestPatch. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this CargoUpstreamRequestPatch. + + A descriptive name for this upstream source. A shortened version of this name will be used for tagging cached packages retrieved from this upstream. + + :param name: The name of this CargoUpstreamRequestPatch. + :type: str + """ + if (self._configuration.client_side_validation and + name is not None and len(name) > 64): + raise ValueError("Invalid value for `name`, length must be less than or equal to `64`") # noqa: E501 + if (self._configuration.client_side_validation and + name is not None and len(name) < 1): + raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501 + if (self._configuration.client_side_validation and + name is not None and not re.search('^\\w[\\w \\-\'\\.\/()]+$', name)): # noqa: E501 + raise ValueError(r"Invalid value for `name`, must be a follow pattern or equal to `/^\\w[\\w \\-'\\.\/()]+$/`") # noqa: E501 + + self._name = name + + @property + def priority(self): + """Gets the priority of this CargoUpstreamRequestPatch. + + Upstream sources are selected for resolving requests by sequential order (1..n), followed by creation date. + + :return: The priority of this CargoUpstreamRequestPatch. + :rtype: int + """ + return self._priority + + @priority.setter + def priority(self, priority): + """Sets the priority of this CargoUpstreamRequestPatch. + + Upstream sources are selected for resolving requests by sequential order (1..n), followed by creation date. + + :param priority: The priority of this CargoUpstreamRequestPatch. + :type: int + """ + if (self._configuration.client_side_validation and + priority is not None and priority > 32767): # noqa: E501 + raise ValueError("Invalid value for `priority`, must be a value less than or equal to `32767`") # noqa: E501 + if (self._configuration.client_side_validation and + priority is not None and priority < 1): # noqa: E501 + raise ValueError("Invalid value for `priority`, must be a value greater than or equal to `1`") # noqa: E501 + + self._priority = priority + + @property + def upstream_url(http://github.com/self): + """Gets the upstream_url of this CargoUpstreamRequestPatch. + + The URL for this upstream source. This must be a fully qualified URL including any path elements required to reach the root of the repository. + + :return: The upstream_url of this CargoUpstreamRequestPatch. + :rtype: str + """ + return self._upstream_url + + @upstream_url.setter + def upstream_url(http://github.com/self,%20upstream_url): + """Sets the upstream_url of this CargoUpstreamRequestPatch. + + The URL for this upstream source. This must be a fully qualified URL including any path elements required to reach the root of the repository. + + :param upstream_url: The upstream_url of this CargoUpstreamRequestPatch. + :type: str + """ + if (self._configuration.client_side_validation and + upstream_url is not None and len(upstream_url) > 200): + raise ValueError("Invalid value for `upstream_url`, length must be less than or equal to `200`") # noqa: E501 + if (self._configuration.client_side_validation and + upstream_url is not None and len(upstream_url) < 1): + raise ValueError("Invalid value for `upstream_url`, length must be greater than or equal to `1`") # noqa: E501 + + self._upstream_url = upstream_url + + @property + def verify_ssl(self): + """Gets the verify_ssl of this CargoUpstreamRequestPatch. + + If enabled, SSL certificates are verified when requests are made to this upstream. It's recommended to leave this enabled for all public sources to help mitigate Man-In-The-Middle (MITM) attacks. Please note this only applies to HTTPS upstreams. + + :return: The verify_ssl of this CargoUpstreamRequestPatch. + :rtype: bool + """ + return self._verify_ssl + + @verify_ssl.setter + def verify_ssl(self, verify_ssl): + """Sets the verify_ssl of this CargoUpstreamRequestPatch. + + If enabled, SSL certificates are verified when requests are made to this upstream. It's recommended to leave this enabled for all public sources to help mitigate Man-In-The-Middle (MITM) attacks. Please note this only applies to HTTPS upstreams. + + :param verify_ssl: The verify_ssl of this CargoUpstreamRequestPatch. + :type: bool + """ + + self._verify_ssl = verify_ssl + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CargoUpstreamRequestPatch, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CargoUpstreamRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, CargoUpstreamRequestPatch): + return True + + return self.to_dict() != other.to_dict() + diff --git a/bindings/python/src/cloudsmith_api/models/composer_upstream.py b/bindings/python/src/cloudsmith_api/models/composer_upstream.py index 4be50637..6d31a832 100644 --- a/bindings/python/src/cloudsmith_api/models/composer_upstream.py +++ b/bindings/python/src/cloudsmith_api/models/composer_upstream.py @@ -466,7 +466,7 @@ def name(self, name): name is not None and len(name) < 1): raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501 if (self._configuration.client_side_validation and - name is not None and not re.search('^\\w[\\w \\-\'\\.\\/()]+$', name)): # noqa: E501 + name is not None and not re.search('^\\w[\\w \\-\'\\.\/()]+$', name)): # noqa: E501 raise ValueError(r"Invalid value for `name`, must be a follow pattern or equal to `/^\\w[\\w \\-'\\.\/()]+$/`") # noqa: E501 self._name = name diff --git a/bindings/python/src/cloudsmith_api/models/composer_upstream_request.py b/bindings/python/src/cloudsmith_api/models/composer_upstream_request.py index fecd58b6..e10915b7 100644 --- a/bindings/python/src/cloudsmith_api/models/composer_upstream_request.py +++ b/bindings/python/src/cloudsmith_api/models/composer_upstream_request.py @@ -390,7 +390,7 @@ def name(self, name): name is not None and len(name) < 1): raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501 if (self._configuration.client_side_validation and - name is not None and not re.search('^\\w[\\w \\-\'\\.\\/()]+$', name)): # noqa: E501 + name is not None and not re.search('^\\w[\\w \\-\'\\.\/()]+$', name)): # noqa: E501 raise ValueError(r"Invalid value for `name`, must be a follow pattern or equal to `/^\\w[\\w \\-'\\.\/()]+$/`") # noqa: E501 self._name = name diff --git a/bindings/python/src/cloudsmith_api/models/composer_upstream_request_patch.py b/bindings/python/src/cloudsmith_api/models/composer_upstream_request_patch.py index cac85264..4bbbf2e9 100644 --- a/bindings/python/src/cloudsmith_api/models/composer_upstream_request_patch.py +++ b/bindings/python/src/cloudsmith_api/models/composer_upstream_request_patch.py @@ -390,7 +390,7 @@ def name(self, name): name is not None and len(name) < 1): raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501 if (self._configuration.client_side_validation and - name is not None and not re.search('^\\w[\\w \\-\'\\.\\/()]+$', name)): # noqa: E501 + name is not None and not re.search('^\\w[\\w \\-\'\\.\/()]+$', name)): # noqa: E501 raise ValueError(r"Invalid value for `name`, must be a follow pattern or equal to `/^\\w[\\w \\-'\\.\/()]+$/`") # noqa: E501 self._name = name diff --git a/bindings/python/src/cloudsmith_api/models/cran_upstream.py b/bindings/python/src/cloudsmith_api/models/cran_upstream.py index 6d9f74cd..c754cbea 100644 --- a/bindings/python/src/cloudsmith_api/models/cran_upstream.py +++ b/bindings/python/src/cloudsmith_api/models/cran_upstream.py @@ -466,7 +466,7 @@ def name(self, name): name is not None and len(name) < 1): raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501 if (self._configuration.client_side_validation and - name is not None and not re.search('^\\w[\\w \\-\'\\.\\/()]+$', name)): # noqa: E501 + name is not None and not re.search('^\\w[\\w \\-\'\\.\/()]+$', name)): # noqa: E501 raise ValueError(r"Invalid value for `name`, must be a follow pattern or equal to `/^\\w[\\w \\-'\\.\/()]+$/`") # noqa: E501 self._name = name diff --git a/bindings/python/src/cloudsmith_api/models/cran_upstream_request.py b/bindings/python/src/cloudsmith_api/models/cran_upstream_request.py index 307af8ed..211eac3c 100644 --- a/bindings/python/src/cloudsmith_api/models/cran_upstream_request.py +++ b/bindings/python/src/cloudsmith_api/models/cran_upstream_request.py @@ -390,7 +390,7 @@ def name(self, name): name is not None and len(name) < 1): raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501 if (self._configuration.client_side_validation and - name is not None and not re.search('^\\w[\\w \\-\'\\.\\/()]+$', name)): # noqa: E501 + name is not None and not re.search('^\\w[\\w \\-\'\\.\/()]+$', name)): # noqa: E501 raise ValueError(r"Invalid value for `name`, must be a follow pattern or equal to `/^\\w[\\w \\-'\\.\/()]+$/`") # noqa: E501 self._name = name diff --git a/bindings/python/src/cloudsmith_api/models/cran_upstream_request_patch.py b/bindings/python/src/cloudsmith_api/models/cran_upstream_request_patch.py index 2f00162a..673d17b7 100644 --- a/bindings/python/src/cloudsmith_api/models/cran_upstream_request_patch.py +++ b/bindings/python/src/cloudsmith_api/models/cran_upstream_request_patch.py @@ -390,7 +390,7 @@ def name(self, name): name is not None and len(name) < 1): raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501 if (self._configuration.client_side_validation and - name is not None and not re.search('^\\w[\\w \\-\'\\.\\/()]+$', name)): # noqa: E501 + name is not None and not re.search('^\\w[\\w \\-\'\\.\/()]+$', name)): # noqa: E501 raise ValueError(r"Invalid value for `name`, must be a follow pattern or equal to `/^\\w[\\w \\-'\\.\/()]+$/`") # noqa: E501 self._name = name diff --git a/bindings/python/src/cloudsmith_api/models/dart_upstream.py b/bindings/python/src/cloudsmith_api/models/dart_upstream.py index 1094c467..ff7b97d3 100644 --- a/bindings/python/src/cloudsmith_api/models/dart_upstream.py +++ b/bindings/python/src/cloudsmith_api/models/dart_upstream.py @@ -466,7 +466,7 @@ def name(self, name): name is not None and len(name) < 1): raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501 if (self._configuration.client_side_validation and - name is not None and not re.search('^\\w[\\w \\-\'\\.\\/()]+$', name)): # noqa: E501 + name is not None and not re.search('^\\w[\\w \\-\'\\.\/()]+$', name)): # noqa: E501 raise ValueError(r"Invalid value for `name`, must be a follow pattern or equal to `/^\\w[\\w \\-'\\.\/()]+$/`") # noqa: E501 self._name = name diff --git a/bindings/python/src/cloudsmith_api/models/dart_upstream_request.py b/bindings/python/src/cloudsmith_api/models/dart_upstream_request.py index c67c33b9..ec305c91 100644 --- a/bindings/python/src/cloudsmith_api/models/dart_upstream_request.py +++ b/bindings/python/src/cloudsmith_api/models/dart_upstream_request.py @@ -390,7 +390,7 @@ def name(self, name): name is not None and len(name) < 1): raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501 if (self._configuration.client_side_validation and - name is not None and not re.search('^\\w[\\w \\-\'\\.\\/()]+$', name)): # noqa: E501 + name is not None and not re.search('^\\w[\\w \\-\'\\.\/()]+$', name)): # noqa: E501 raise ValueError(r"Invalid value for `name`, must be a follow pattern or equal to `/^\\w[\\w \\-'\\.\/()]+$/`") # noqa: E501 self._name = name diff --git a/bindings/python/src/cloudsmith_api/models/dart_upstream_request_patch.py b/bindings/python/src/cloudsmith_api/models/dart_upstream_request_patch.py index 0938fa3b..4555fb6d 100644 --- a/bindings/python/src/cloudsmith_api/models/dart_upstream_request_patch.py +++ b/bindings/python/src/cloudsmith_api/models/dart_upstream_request_patch.py @@ -390,7 +390,7 @@ def name(self, name): name is not None and len(name) < 1): raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501 if (self._configuration.client_side_validation and - name is not None and not re.search('^\\w[\\w \\-\'\\.\\/()]+$', name)): # noqa: E501 + name is not None and not re.search('^\\w[\\w \\-\'\\.\/()]+$', name)): # noqa: E501 raise ValueError(r"Invalid value for `name`, must be a follow pattern or equal to `/^\\w[\\w \\-'\\.\/()]+$/`") # noqa: E501 self._name = name diff --git a/bindings/python/src/cloudsmith_api/models/deb_upstream.py b/bindings/python/src/cloudsmith_api/models/deb_upstream.py index f4381c1c..a4b48717 100644 --- a/bindings/python/src/cloudsmith_api/models/deb_upstream.py +++ b/bindings/python/src/cloudsmith_api/models/deb_upstream.py @@ -661,7 +661,7 @@ def name(self, name): name is not None and len(name) < 1): raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501 if (self._configuration.client_side_validation and - name is not None and not re.search('^\\w[\\w \\-\'\\.\\/()]+$', name)): # noqa: E501 + name is not None and not re.search('^\\w[\\w \\-\'\\.\/()]+$', name)): # noqa: E501 raise ValueError(r"Invalid value for `name`, must be a follow pattern or equal to `/^\\w[\\w \\-'\\.\/()]+$/`") # noqa: E501 self._name = name diff --git a/bindings/python/src/cloudsmith_api/models/deb_upstream_request.py b/bindings/python/src/cloudsmith_api/models/deb_upstream_request.py index ebc61c1f..fd1548bb 100644 --- a/bindings/python/src/cloudsmith_api/models/deb_upstream_request.py +++ b/bindings/python/src/cloudsmith_api/models/deb_upstream_request.py @@ -580,7 +580,7 @@ def name(self, name): name is not None and len(name) < 1): raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501 if (self._configuration.client_side_validation and - name is not None and not re.search('^\\w[\\w \\-\'\\.\\/()]+$', name)): # noqa: E501 + name is not None and not re.search('^\\w[\\w \\-\'\\.\/()]+$', name)): # noqa: E501 raise ValueError(r"Invalid value for `name`, must be a follow pattern or equal to `/^\\w[\\w \\-'\\.\/()]+$/`") # noqa: E501 self._name = name diff --git a/bindings/python/src/cloudsmith_api/models/deb_upstream_request_patch.py b/bindings/python/src/cloudsmith_api/models/deb_upstream_request_patch.py index 779ca8b1..409f4257 100644 --- a/bindings/python/src/cloudsmith_api/models/deb_upstream_request_patch.py +++ b/bindings/python/src/cloudsmith_api/models/deb_upstream_request_patch.py @@ -579,7 +579,7 @@ def name(self, name): name is not None and len(name) < 1): raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501 if (self._configuration.client_side_validation and - name is not None and not re.search('^\\w[\\w \\-\'\\.\\/()]+$', name)): # noqa: E501 + name is not None and not re.search('^\\w[\\w \\-\'\\.\/()]+$', name)): # noqa: E501 raise ValueError(r"Invalid value for `name`, must be a follow pattern or equal to `/^\\w[\\w \\-'\\.\/()]+$/`") # noqa: E501 self._name = name diff --git a/bindings/python/src/cloudsmith_api/models/docker_upstream.py b/bindings/python/src/cloudsmith_api/models/docker_upstream.py index c9477fc3..ba37f3bb 100644 --- a/bindings/python/src/cloudsmith_api/models/docker_upstream.py +++ b/bindings/python/src/cloudsmith_api/models/docker_upstream.py @@ -466,7 +466,7 @@ def name(self, name): name is not None and len(name) < 1): raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501 if (self._configuration.client_side_validation and - name is not None and not re.search('^\\w[\\w \\-\'\\.\\/()]+$', name)): # noqa: E501 + name is not None and not re.search('^\\w[\\w \\-\'\\.\/()]+$', name)): # noqa: E501 raise ValueError(r"Invalid value for `name`, must be a follow pattern or equal to `/^\\w[\\w \\-'\\.\/()]+$/`") # noqa: E501 self._name = name diff --git a/bindings/python/src/cloudsmith_api/models/docker_upstream_request.py b/bindings/python/src/cloudsmith_api/models/docker_upstream_request.py index 9ed94791..1da946ac 100644 --- a/bindings/python/src/cloudsmith_api/models/docker_upstream_request.py +++ b/bindings/python/src/cloudsmith_api/models/docker_upstream_request.py @@ -452,7 +452,7 @@ def name(self, name): name is not None and len(name) < 1): raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501 if (self._configuration.client_side_validation and - name is not None and not re.search('^\\w[\\w \\-\'\\.\\/()]+$', name)): # noqa: E501 + name is not None and not re.search('^\\w[\\w \\-\'\\.\/()]+$', name)): # noqa: E501 raise ValueError(r"Invalid value for `name`, must be a follow pattern or equal to `/^\\w[\\w \\-'\\.\/()]+$/`") # noqa: E501 self._name = name diff --git a/bindings/python/src/cloudsmith_api/models/docker_upstream_request_patch.py b/bindings/python/src/cloudsmith_api/models/docker_upstream_request_patch.py index 08e4b225..ca3bb379 100644 --- a/bindings/python/src/cloudsmith_api/models/docker_upstream_request_patch.py +++ b/bindings/python/src/cloudsmith_api/models/docker_upstream_request_patch.py @@ -452,7 +452,7 @@ def name(self, name): name is not None and len(name) < 1): raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501 if (self._configuration.client_side_validation and - name is not None and not re.search('^\\w[\\w \\-\'\\.\\/()]+$', name)): # noqa: E501 + name is not None and not re.search('^\\w[\\w \\-\'\\.\/()]+$', name)): # noqa: E501 raise ValueError(r"Invalid value for `name`, must be a follow pattern or equal to `/^\\w[\\w \\-'\\.\/()]+$/`") # noqa: E501 self._name = name diff --git a/bindings/python/src/cloudsmith_api/models/go_upstream.py b/bindings/python/src/cloudsmith_api/models/go_upstream.py new file mode 100644 index 00000000..1257b7ee --- /dev/null +++ b/bindings/python/src/cloudsmith_api/models/go_upstream.py @@ -0,0 +1,676 @@ +# coding: utf-8 + +""" + Cloudsmith API (v1) + + 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 +""" + + +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration + + +class GoUpstream(object): + """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 + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'auth_mode': 'str', + 'auth_secret': 'str', + 'auth_username': 'str', + 'created_at': 'datetime', + 'disable_reason': 'str', + 'extra_header_1': 'str', + 'extra_header_2': 'str', + 'extra_value_1': 'str', + 'extra_value_2': 'str', + 'is_active': 'bool', + 'mode': 'str', + 'name': 'str', + 'pending_validation': 'bool', + 'priority': 'int', + 'slug_perm': 'str', + 'updated_at': 'datetime', + 'upstream_url': 'str', + 'verify_ssl': 'bool' + } + + attribute_map = { + 'auth_mode': 'auth_mode', + 'auth_secret': 'auth_secret', + 'auth_username': 'auth_username', + 'created_at': 'created_at', + 'disable_reason': 'disable_reason', + 'extra_header_1': 'extra_header_1', + 'extra_header_2': 'extra_header_2', + 'extra_value_1': 'extra_value_1', + 'extra_value_2': 'extra_value_2', + 'is_active': 'is_active', + 'mode': 'mode', + 'name': 'name', + 'pending_validation': 'pending_validation', + 'priority': 'priority', + 'slug_perm': 'slug_perm', + 'updated_at': 'updated_at', + 'upstream_url': 'upstream_url', + 'verify_ssl': 'verify_ssl' + } + + def __init__(self, auth_mode='None', auth_secret=None, auth_username=None, created_at=None, disable_reason='N/A', extra_header_1=None, extra_header_2=None, extra_value_1=None, extra_value_2=None, is_active=None, mode='Proxy Only', name=None, pending_validation=None, priority=None, slug_perm=None, updated_at=None, upstream_url=None, verify_ssl=None, _configuration=None): # noqa: E501 + """GoUpstream - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._auth_mode = None + self._auth_secret = None + self._auth_username = None + self._created_at = None + self._disable_reason = None + self._extra_header_1 = None + self._extra_header_2 = None + self._extra_value_1 = None + self._extra_value_2 = None + self._is_active = None + self._mode = None + self._name = None + self._pending_validation = None + self._priority = None + self._slug_perm = None + self._updated_at = None + self._upstream_url = None + self._verify_ssl = None + self.discriminator = None + + if auth_mode is not None: + self.auth_mode = auth_mode + if auth_secret is not None: + self.auth_secret = auth_secret + if auth_username is not None: + self.auth_username = auth_username + if created_at is not None: + self.created_at = created_at + if disable_reason is not None: + self.disable_reason = disable_reason + if extra_header_1 is not None: + self.extra_header_1 = extra_header_1 + if extra_header_2 is not None: + self.extra_header_2 = extra_header_2 + if extra_value_1 is not None: + self.extra_value_1 = extra_value_1 + if extra_value_2 is not None: + self.extra_value_2 = extra_value_2 + if is_active is not None: + self.is_active = is_active + if mode is not None: + self.mode = mode + self.name = name + if pending_validation is not None: + self.pending_validation = pending_validation + if priority is not None: + self.priority = priority + if slug_perm is not None: + self.slug_perm = slug_perm + if updated_at is not None: + self.updated_at = updated_at + self.upstream_url = upstream_url + if verify_ssl is not None: + self.verify_ssl = verify_ssl + + @property + def auth_mode(self): + """Gets the auth_mode of this GoUpstream. + + The authentication mode to use when accessing this upstream. + + :return: The auth_mode of this GoUpstream. + :rtype: str + """ + return self._auth_mode + + @auth_mode.setter + def auth_mode(self, auth_mode): + """Sets the auth_mode of this GoUpstream. + + The authentication mode to use when accessing this upstream. + + :param auth_mode: The auth_mode of this GoUpstream. + :type: str + """ + allowed_values = ["None", "Username and Password"] # noqa: E501 + if (self._configuration.client_side_validation and + auth_mode not in allowed_values): + raise ValueError( + "Invalid value for `auth_mode` ({0}), must be one of {1}" # noqa: E501 + .format(auth_mode, allowed_values) + ) + + self._auth_mode = auth_mode + + @property + def auth_secret(self): + """Gets the auth_secret of this GoUpstream. + + Secret to provide with requests to upstream. + + :return: The auth_secret of this GoUpstream. + :rtype: str + """ + return self._auth_secret + + @auth_secret.setter + def auth_secret(self, auth_secret): + """Sets the auth_secret of this GoUpstream. + + Secret to provide with requests to upstream. + + :param auth_secret: The auth_secret of this GoUpstream. + :type: str + """ + if (self._configuration.client_side_validation and + auth_secret is not None and len(auth_secret) > 4096): + raise ValueError("Invalid value for `auth_secret`, length must be less than or equal to `4096`") # noqa: E501 + + self._auth_secret = auth_secret + + @property + def auth_username(self): + """Gets the auth_username of this GoUpstream. + + Username to provide with requests to upstream. + + :return: The auth_username of this GoUpstream. + :rtype: str + """ + return self._auth_username + + @auth_username.setter + def auth_username(self, auth_username): + """Sets the auth_username of this GoUpstream. + + Username to provide with requests to upstream. + + :param auth_username: The auth_username of this GoUpstream. + :type: str + """ + if (self._configuration.client_side_validation and + auth_username is not None and len(auth_username) > 64): + raise ValueError("Invalid value for `auth_username`, length must be less than or equal to `64`") # noqa: E501 + + self._auth_username = auth_username + + @property + def created_at(self): + """Gets the created_at of this GoUpstream. + + The datetime the upstream source was created. + + :return: The created_at of this GoUpstream. + :rtype: datetime + """ + return self._created_at + + @created_at.setter + def created_at(self, created_at): + """Sets the created_at of this GoUpstream. + + The datetime the upstream source was created. + + :param created_at: The created_at of this GoUpstream. + :type: datetime + """ + + self._created_at = created_at + + @property + def disable_reason(self): + """Gets the disable_reason of this GoUpstream. + + + :return: The disable_reason of this GoUpstream. + :rtype: str + """ + return self._disable_reason + + @disable_reason.setter + def disable_reason(self, disable_reason): + """Sets the disable_reason of this GoUpstream. + + + :param disable_reason: The disable_reason of this GoUpstream. + :type: str + """ + allowed_values = ["N/A", "Upstream points to its own repository", "Missing upstream source", "Upstream was disabled by request of user"] # noqa: E501 + if (self._configuration.client_side_validation and + disable_reason not in allowed_values): + raise ValueError( + "Invalid value for `disable_reason` ({0}), must be one of {1}" # noqa: E501 + .format(disable_reason, allowed_values) + ) + + self._disable_reason = disable_reason + + @property + def extra_header_1(self): + """Gets the extra_header_1 of this GoUpstream. + + The key for extra header #1 to send to upstream. + + :return: The extra_header_1 of this GoUpstream. + :rtype: str + """ + return self._extra_header_1 + + @extra_header_1.setter + def extra_header_1(self, extra_header_1): + """Sets the extra_header_1 of this GoUpstream. + + The key for extra header #1 to send to upstream. + + :param extra_header_1: The extra_header_1 of this GoUpstream. + :type: str + """ + if (self._configuration.client_side_validation and + extra_header_1 is not None and len(extra_header_1) > 64): + raise ValueError("Invalid value for `extra_header_1`, length must be less than or equal to `64`") # noqa: E501 + if (self._configuration.client_side_validation and + extra_header_1 is not None and not re.search('^[-\\w]+$', extra_header_1)): # noqa: E501 + raise ValueError(r"Invalid value for `extra_header_1`, must be a follow pattern or equal to `/^[-\\w]+$/`") # noqa: E501 + + self._extra_header_1 = extra_header_1 + + @property + def extra_header_2(self): + """Gets the extra_header_2 of this GoUpstream. + + The key for extra header #2 to send to upstream. + + :return: The extra_header_2 of this GoUpstream. + :rtype: str + """ + return self._extra_header_2 + + @extra_header_2.setter + def extra_header_2(self, extra_header_2): + """Sets the extra_header_2 of this GoUpstream. + + The key for extra header #2 to send to upstream. + + :param extra_header_2: The extra_header_2 of this GoUpstream. + :type: str + """ + if (self._configuration.client_side_validation and + extra_header_2 is not None and len(extra_header_2) > 64): + raise ValueError("Invalid value for `extra_header_2`, length must be less than or equal to `64`") # noqa: E501 + if (self._configuration.client_side_validation and + extra_header_2 is not None and not re.search('^[-\\w]+$', extra_header_2)): # noqa: E501 + raise ValueError(r"Invalid value for `extra_header_2`, must be a follow pattern or equal to `/^[-\\w]+$/`") # noqa: E501 + + self._extra_header_2 = extra_header_2 + + @property + def extra_value_1(self): + """Gets the extra_value_1 of this GoUpstream. + + The value for extra header #1 to send to upstream. This is stored as plaintext, and is NOT encrypted. + + :return: The extra_value_1 of this GoUpstream. + :rtype: str + """ + return self._extra_value_1 + + @extra_value_1.setter + def extra_value_1(self, extra_value_1): + """Sets the extra_value_1 of this GoUpstream. + + The value for extra header #1 to send to upstream. This is stored as plaintext, and is NOT encrypted. + + :param extra_value_1: The extra_value_1 of this GoUpstream. + :type: str + """ + if (self._configuration.client_side_validation and + extra_value_1 is not None and len(extra_value_1) > 128): + raise ValueError("Invalid value for `extra_value_1`, length must be less than or equal to `128`") # noqa: E501 + if (self._configuration.client_side_validation and + extra_value_1 is not None and not re.search('^[^\\n\\r]+$', extra_value_1)): # noqa: E501 + raise ValueError(r"Invalid value for `extra_value_1`, must be a follow pattern or equal to `/^[^\\n\\r]+$/`") # noqa: E501 + + self._extra_value_1 = extra_value_1 + + @property + def extra_value_2(self): + """Gets the extra_value_2 of this GoUpstream. + + The value for extra header #2 to send to upstream. This is stored as plaintext, and is NOT encrypted. + + :return: The extra_value_2 of this GoUpstream. + :rtype: str + """ + return self._extra_value_2 + + @extra_value_2.setter + def extra_value_2(self, extra_value_2): + """Sets the extra_value_2 of this GoUpstream. + + The value for extra header #2 to send to upstream. This is stored as plaintext, and is NOT encrypted. + + :param extra_value_2: The extra_value_2 of this GoUpstream. + :type: str + """ + if (self._configuration.client_side_validation and + extra_value_2 is not None and len(extra_value_2) > 128): + raise ValueError("Invalid value for `extra_value_2`, length must be less than or equal to `128`") # noqa: E501 + if (self._configuration.client_side_validation and + extra_value_2 is not None and not re.search('^[^\\n\\r]+$', extra_value_2)): # noqa: E501 + raise ValueError(r"Invalid value for `extra_value_2`, must be a follow pattern or equal to `/^[^\\n\\r]+$/`") # noqa: E501 + + self._extra_value_2 = extra_value_2 + + @property + def is_active(self): + """Gets the is_active of this GoUpstream. + + Whether or not this upstream is active and ready for requests. + + :return: The is_active of this GoUpstream. + :rtype: bool + """ + return self._is_active + + @is_active.setter + def is_active(self, is_active): + """Sets the is_active of this GoUpstream. + + Whether or not this upstream is active and ready for requests. + + :param is_active: The is_active of this GoUpstream. + :type: bool + """ + + self._is_active = is_active + + @property + def mode(self): + """Gets the mode of this GoUpstream. + + The mode that this upstream should operate in. Upstream sources can be used to proxy resolved packages, as well as operate in a proxy/cache or cache only mode. + + :return: The mode of this GoUpstream. + :rtype: str + """ + return self._mode + + @mode.setter + def mode(self, mode): + """Sets the mode of this GoUpstream. + + The mode that this upstream should operate in. Upstream sources can be used to proxy resolved packages, as well as operate in a proxy/cache or cache only mode. + + :param mode: The mode of this GoUpstream. + :type: str + """ + allowed_values = ["Proxy Only"] # noqa: E501 + if (self._configuration.client_side_validation and + mode not in allowed_values): + raise ValueError( + "Invalid value for `mode` ({0}), must be one of {1}" # noqa: E501 + .format(mode, allowed_values) + ) + + self._mode = mode + + @property + def name(self): + """Gets the name of this GoUpstream. + + A descriptive name for this upstream source. A shortened version of this name will be used for tagging cached packages retrieved from this upstream. + + :return: The name of this GoUpstream. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this GoUpstream. + + A descriptive name for this upstream source. A shortened version of this name will be used for tagging cached packages retrieved from this upstream. + + :param name: The name of this GoUpstream. + :type: str + """ + if self._configuration.client_side_validation and name is None: + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 + if (self._configuration.client_side_validation and + name is not None and len(name) > 64): + raise ValueError("Invalid value for `name`, length must be less than or equal to `64`") # noqa: E501 + if (self._configuration.client_side_validation and + name is not None and len(name) < 1): + raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501 + if (self._configuration.client_side_validation and + name is not None and not re.search('^\\w[\\w \\-\'\\.\/()]+$', name)): # noqa: E501 + raise ValueError(r"Invalid value for `name`, must be a follow pattern or equal to `/^\\w[\\w \\-'\\.\/()]+$/`") # noqa: E501 + + self._name = name + + @property + def pending_validation(self): + """Gets the pending_validation of this GoUpstream. + + When true, this upstream source is pending validation. + + :return: The pending_validation of this GoUpstream. + :rtype: bool + """ + return self._pending_validation + + @pending_validation.setter + def pending_validation(self, pending_validation): + """Sets the pending_validation of this GoUpstream. + + When true, this upstream source is pending validation. + + :param pending_validation: The pending_validation of this GoUpstream. + :type: bool + """ + + self._pending_validation = pending_validation + + @property + def priority(self): + """Gets the priority of this GoUpstream. + + Upstream sources are selected for resolving requests by sequential order (1..n), followed by creation date. + + :return: The priority of this GoUpstream. + :rtype: int + """ + return self._priority + + @priority.setter + def priority(self, priority): + """Sets the priority of this GoUpstream. + + Upstream sources are selected for resolving requests by sequential order (1..n), followed by creation date. + + :param priority: The priority of this GoUpstream. + :type: int + """ + if (self._configuration.client_side_validation and + priority is not None and priority > 32767): # noqa: E501 + raise ValueError("Invalid value for `priority`, must be a value less than or equal to `32767`") # noqa: E501 + if (self._configuration.client_side_validation and + priority is not None and priority < 1): # noqa: E501 + raise ValueError("Invalid value for `priority`, must be a value greater than or equal to `1`") # noqa: E501 + + self._priority = priority + + @property + def slug_perm(self): + """Gets the slug_perm of this GoUpstream. + + + :return: The slug_perm of this GoUpstream. + :rtype: str + """ + return self._slug_perm + + @slug_perm.setter + def slug_perm(self, slug_perm): + """Sets the slug_perm of this GoUpstream. + + + :param slug_perm: The slug_perm of this GoUpstream. + :type: str + """ + if (self._configuration.client_side_validation and + slug_perm is not None and len(slug_perm) < 1): + raise ValueError("Invalid value for `slug_perm`, length must be greater than or equal to `1`") # noqa: E501 + if (self._configuration.client_side_validation and + slug_perm is not None and not re.search('^[-a-zA-Z0-9_]+$', slug_perm)): # noqa: E501 + raise ValueError(r"Invalid value for `slug_perm`, must be a follow pattern or equal to `/^[-a-zA-Z0-9_]+$/`") # noqa: E501 + + self._slug_perm = slug_perm + + @property + def updated_at(self): + """Gets the updated_at of this GoUpstream. + + + :return: The updated_at of this GoUpstream. + :rtype: datetime + """ + return self._updated_at + + @updated_at.setter + def updated_at(self, updated_at): + """Sets the updated_at of this GoUpstream. + + + :param updated_at: The updated_at of this GoUpstream. + :type: datetime + """ + + self._updated_at = updated_at + + @property + def upstream_url(http://github.com/self): + """Gets the upstream_url of this GoUpstream. + + The URL for this upstream source. This must be a fully qualified URL including any path elements required to reach the root of the repository. + + :return: The upstream_url of this GoUpstream. + :rtype: str + """ + return self._upstream_url + + @upstream_url.setter + def upstream_url(http://github.com/self,%20upstream_url): + """Sets the upstream_url of this GoUpstream. + + The URL for this upstream source. This must be a fully qualified URL including any path elements required to reach the root of the repository. + + :param upstream_url: The upstream_url of this GoUpstream. + :type: str + """ + if self._configuration.client_side_validation and upstream_url is None: + raise ValueError("Invalid value for `upstream_url`, must not be `None`") # noqa: E501 + if (self._configuration.client_side_validation and + upstream_url is not None and len(upstream_url) > 200): + raise ValueError("Invalid value for `upstream_url`, length must be less than or equal to `200`") # noqa: E501 + if (self._configuration.client_side_validation and + upstream_url is not None and len(upstream_url) < 1): + raise ValueError("Invalid value for `upstream_url`, length must be greater than or equal to `1`") # noqa: E501 + + self._upstream_url = upstream_url + + @property + def verify_ssl(self): + """Gets the verify_ssl of this GoUpstream. + + If enabled, SSL certificates are verified when requests are made to this upstream. It's recommended to leave this enabled for all public sources to help mitigate Man-In-The-Middle (MITM) attacks. Please note this only applies to HTTPS upstreams. + + :return: The verify_ssl of this GoUpstream. + :rtype: bool + """ + return self._verify_ssl + + @verify_ssl.setter + def verify_ssl(self, verify_ssl): + """Sets the verify_ssl of this GoUpstream. + + If enabled, SSL certificates are verified when requests are made to this upstream. It's recommended to leave this enabled for all public sources to help mitigate Man-In-The-Middle (MITM) attacks. Please note this only applies to HTTPS upstreams. + + :param verify_ssl: The verify_ssl of this GoUpstream. + :type: bool + """ + + self._verify_ssl = verify_ssl + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GoUpstream, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GoUpstream): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, GoUpstream): + return True + + return self.to_dict() != other.to_dict() + diff --git a/bindings/python/src/cloudsmith_api/models/go_upstream_request.py b/bindings/python/src/cloudsmith_api/models/go_upstream_request.py new file mode 100644 index 00000000..8b59661c --- /dev/null +++ b/bindings/python/src/cloudsmith_api/models/go_upstream_request.py @@ -0,0 +1,529 @@ +# coding: utf-8 + +""" + Cloudsmith API (v1) + + 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 +""" + + +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration + + +class GoUpstreamRequest(object): + """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 + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'auth_mode': 'str', + 'auth_secret': 'str', + 'auth_username': 'str', + 'extra_header_1': 'str', + 'extra_header_2': 'str', + 'extra_value_1': 'str', + 'extra_value_2': 'str', + 'is_active': 'bool', + 'mode': 'str', + 'name': 'str', + 'priority': 'int', + 'upstream_url': 'str', + 'verify_ssl': 'bool' + } + + attribute_map = { + 'auth_mode': 'auth_mode', + 'auth_secret': 'auth_secret', + 'auth_username': 'auth_username', + 'extra_header_1': 'extra_header_1', + 'extra_header_2': 'extra_header_2', + 'extra_value_1': 'extra_value_1', + 'extra_value_2': 'extra_value_2', + 'is_active': 'is_active', + 'mode': 'mode', + 'name': 'name', + 'priority': 'priority', + 'upstream_url': 'upstream_url', + 'verify_ssl': 'verify_ssl' + } + + def __init__(self, auth_mode='None', auth_secret=None, auth_username=None, extra_header_1=None, extra_header_2=None, extra_value_1=None, extra_value_2=None, is_active=None, mode='Proxy Only', name=None, priority=None, upstream_url=None, verify_ssl=None, _configuration=None): # noqa: E501 + """GoUpstreamRequest - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._auth_mode = None + self._auth_secret = None + self._auth_username = None + self._extra_header_1 = None + self._extra_header_2 = None + self._extra_value_1 = None + self._extra_value_2 = None + self._is_active = None + self._mode = None + self._name = None + self._priority = None + self._upstream_url = None + self._verify_ssl = None + self.discriminator = None + + if auth_mode is not None: + self.auth_mode = auth_mode + if auth_secret is not None: + self.auth_secret = auth_secret + if auth_username is not None: + self.auth_username = auth_username + if extra_header_1 is not None: + self.extra_header_1 = extra_header_1 + if extra_header_2 is not None: + self.extra_header_2 = extra_header_2 + if extra_value_1 is not None: + self.extra_value_1 = extra_value_1 + if extra_value_2 is not None: + self.extra_value_2 = extra_value_2 + if is_active is not None: + self.is_active = is_active + if mode is not None: + self.mode = mode + self.name = name + if priority is not None: + self.priority = priority + self.upstream_url = upstream_url + if verify_ssl is not None: + self.verify_ssl = verify_ssl + + @property + def auth_mode(self): + """Gets the auth_mode of this GoUpstreamRequest. + + The authentication mode to use when accessing this upstream. + + :return: The auth_mode of this GoUpstreamRequest. + :rtype: str + """ + return self._auth_mode + + @auth_mode.setter + def auth_mode(self, auth_mode): + """Sets the auth_mode of this GoUpstreamRequest. + + The authentication mode to use when accessing this upstream. + + :param auth_mode: The auth_mode of this GoUpstreamRequest. + :type: str + """ + allowed_values = ["None", "Username and Password"] # noqa: E501 + if (self._configuration.client_side_validation and + auth_mode not in allowed_values): + raise ValueError( + "Invalid value for `auth_mode` ({0}), must be one of {1}" # noqa: E501 + .format(auth_mode, allowed_values) + ) + + self._auth_mode = auth_mode + + @property + def auth_secret(self): + """Gets the auth_secret of this GoUpstreamRequest. + + Secret to provide with requests to upstream. + + :return: The auth_secret of this GoUpstreamRequest. + :rtype: str + """ + return self._auth_secret + + @auth_secret.setter + def auth_secret(self, auth_secret): + """Sets the auth_secret of this GoUpstreamRequest. + + Secret to provide with requests to upstream. + + :param auth_secret: The auth_secret of this GoUpstreamRequest. + :type: str + """ + if (self._configuration.client_side_validation and + auth_secret is not None and len(auth_secret) > 4096): + raise ValueError("Invalid value for `auth_secret`, length must be less than or equal to `4096`") # noqa: E501 + + self._auth_secret = auth_secret + + @property + def auth_username(self): + """Gets the auth_username of this GoUpstreamRequest. + + Username to provide with requests to upstream. + + :return: The auth_username of this GoUpstreamRequest. + :rtype: str + """ + return self._auth_username + + @auth_username.setter + def auth_username(self, auth_username): + """Sets the auth_username of this GoUpstreamRequest. + + Username to provide with requests to upstream. + + :param auth_username: The auth_username of this GoUpstreamRequest. + :type: str + """ + if (self._configuration.client_side_validation and + auth_username is not None and len(auth_username) > 64): + raise ValueError("Invalid value for `auth_username`, length must be less than or equal to `64`") # noqa: E501 + + self._auth_username = auth_username + + @property + def extra_header_1(self): + """Gets the extra_header_1 of this GoUpstreamRequest. + + The key for extra header #1 to send to upstream. + + :return: The extra_header_1 of this GoUpstreamRequest. + :rtype: str + """ + return self._extra_header_1 + + @extra_header_1.setter + def extra_header_1(self, extra_header_1): + """Sets the extra_header_1 of this GoUpstreamRequest. + + The key for extra header #1 to send to upstream. + + :param extra_header_1: The extra_header_1 of this GoUpstreamRequest. + :type: str + """ + if (self._configuration.client_side_validation and + extra_header_1 is not None and len(extra_header_1) > 64): + raise ValueError("Invalid value for `extra_header_1`, length must be less than or equal to `64`") # noqa: E501 + if (self._configuration.client_side_validation and + extra_header_1 is not None and not re.search('^[-\\w]+$', extra_header_1)): # noqa: E501 + raise ValueError(r"Invalid value for `extra_header_1`, must be a follow pattern or equal to `/^[-\\w]+$/`") # noqa: E501 + + self._extra_header_1 = extra_header_1 + + @property + def extra_header_2(self): + """Gets the extra_header_2 of this GoUpstreamRequest. + + The key for extra header #2 to send to upstream. + + :return: The extra_header_2 of this GoUpstreamRequest. + :rtype: str + """ + return self._extra_header_2 + + @extra_header_2.setter + def extra_header_2(self, extra_header_2): + """Sets the extra_header_2 of this GoUpstreamRequest. + + The key for extra header #2 to send to upstream. + + :param extra_header_2: The extra_header_2 of this GoUpstreamRequest. + :type: str + """ + if (self._configuration.client_side_validation and + extra_header_2 is not None and len(extra_header_2) > 64): + raise ValueError("Invalid value for `extra_header_2`, length must be less than or equal to `64`") # noqa: E501 + if (self._configuration.client_side_validation and + extra_header_2 is not None and not re.search('^[-\\w]+$', extra_header_2)): # noqa: E501 + raise ValueError(r"Invalid value for `extra_header_2`, must be a follow pattern or equal to `/^[-\\w]+$/`") # noqa: E501 + + self._extra_header_2 = extra_header_2 + + @property + def extra_value_1(self): + """Gets the extra_value_1 of this GoUpstreamRequest. + + The value for extra header #1 to send to upstream. This is stored as plaintext, and is NOT encrypted. + + :return: The extra_value_1 of this GoUpstreamRequest. + :rtype: str + """ + return self._extra_value_1 + + @extra_value_1.setter + def extra_value_1(self, extra_value_1): + """Sets the extra_value_1 of this GoUpstreamRequest. + + The value for extra header #1 to send to upstream. This is stored as plaintext, and is NOT encrypted. + + :param extra_value_1: The extra_value_1 of this GoUpstreamRequest. + :type: str + """ + if (self._configuration.client_side_validation and + extra_value_1 is not None and len(extra_value_1) > 128): + raise ValueError("Invalid value for `extra_value_1`, length must be less than or equal to `128`") # noqa: E501 + if (self._configuration.client_side_validation and + extra_value_1 is not None and not re.search('^[^\\n\\r]+$', extra_value_1)): # noqa: E501 + raise ValueError(r"Invalid value for `extra_value_1`, must be a follow pattern or equal to `/^[^\\n\\r]+$/`") # noqa: E501 + + self._extra_value_1 = extra_value_1 + + @property + def extra_value_2(self): + """Gets the extra_value_2 of this GoUpstreamRequest. + + The value for extra header #2 to send to upstream. This is stored as plaintext, and is NOT encrypted. + + :return: The extra_value_2 of this GoUpstreamRequest. + :rtype: str + """ + return self._extra_value_2 + + @extra_value_2.setter + def extra_value_2(self, extra_value_2): + """Sets the extra_value_2 of this GoUpstreamRequest. + + The value for extra header #2 to send to upstream. This is stored as plaintext, and is NOT encrypted. + + :param extra_value_2: The extra_value_2 of this GoUpstreamRequest. + :type: str + """ + if (self._configuration.client_side_validation and + extra_value_2 is not None and len(extra_value_2) > 128): + raise ValueError("Invalid value for `extra_value_2`, length must be less than or equal to `128`") # noqa: E501 + if (self._configuration.client_side_validation and + extra_value_2 is not None and not re.search('^[^\\n\\r]+$', extra_value_2)): # noqa: E501 + raise ValueError(r"Invalid value for `extra_value_2`, must be a follow pattern or equal to `/^[^\\n\\r]+$/`") # noqa: E501 + + self._extra_value_2 = extra_value_2 + + @property + def is_active(self): + """Gets the is_active of this GoUpstreamRequest. + + Whether or not this upstream is active and ready for requests. + + :return: The is_active of this GoUpstreamRequest. + :rtype: bool + """ + return self._is_active + + @is_active.setter + def is_active(self, is_active): + """Sets the is_active of this GoUpstreamRequest. + + Whether or not this upstream is active and ready for requests. + + :param is_active: The is_active of this GoUpstreamRequest. + :type: bool + """ + + self._is_active = is_active + + @property + def mode(self): + """Gets the mode of this GoUpstreamRequest. + + The mode that this upstream should operate in. Upstream sources can be used to proxy resolved packages, as well as operate in a proxy/cache or cache only mode. + + :return: The mode of this GoUpstreamRequest. + :rtype: str + """ + return self._mode + + @mode.setter + def mode(self, mode): + """Sets the mode of this GoUpstreamRequest. + + The mode that this upstream should operate in. Upstream sources can be used to proxy resolved packages, as well as operate in a proxy/cache or cache only mode. + + :param mode: The mode of this GoUpstreamRequest. + :type: str + """ + allowed_values = ["Proxy Only"] # noqa: E501 + if (self._configuration.client_side_validation and + mode not in allowed_values): + raise ValueError( + "Invalid value for `mode` ({0}), must be one of {1}" # noqa: E501 + .format(mode, allowed_values) + ) + + self._mode = mode + + @property + def name(self): + """Gets the name of this GoUpstreamRequest. + + A descriptive name for this upstream source. A shortened version of this name will be used for tagging cached packages retrieved from this upstream. + + :return: The name of this GoUpstreamRequest. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this GoUpstreamRequest. + + A descriptive name for this upstream source. A shortened version of this name will be used for tagging cached packages retrieved from this upstream. + + :param name: The name of this GoUpstreamRequest. + :type: str + """ + if self._configuration.client_side_validation and name is None: + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 + if (self._configuration.client_side_validation and + name is not None and len(name) > 64): + raise ValueError("Invalid value for `name`, length must be less than or equal to `64`") # noqa: E501 + if (self._configuration.client_side_validation and + name is not None and len(name) < 1): + raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501 + if (self._configuration.client_side_validation and + name is not None and not re.search('^\\w[\\w \\-\'\\.\/()]+$', name)): # noqa: E501 + raise ValueError(r"Invalid value for `name`, must be a follow pattern or equal to `/^\\w[\\w \\-'\\.\/()]+$/`") # noqa: E501 + + self._name = name + + @property + def priority(self): + """Gets the priority of this GoUpstreamRequest. + + Upstream sources are selected for resolving requests by sequential order (1..n), followed by creation date. + + :return: The priority of this GoUpstreamRequest. + :rtype: int + """ + return self._priority + + @priority.setter + def priority(self, priority): + """Sets the priority of this GoUpstreamRequest. + + Upstream sources are selected for resolving requests by sequential order (1..n), followed by creation date. + + :param priority: The priority of this GoUpstreamRequest. + :type: int + """ + if (self._configuration.client_side_validation and + priority is not None and priority > 32767): # noqa: E501 + raise ValueError("Invalid value for `priority`, must be a value less than or equal to `32767`") # noqa: E501 + if (self._configuration.client_side_validation and + priority is not None and priority < 1): # noqa: E501 + raise ValueError("Invalid value for `priority`, must be a value greater than or equal to `1`") # noqa: E501 + + self._priority = priority + + @property + def upstream_url(http://github.com/self): + """Gets the upstream_url of this GoUpstreamRequest. + + The URL for this upstream source. This must be a fully qualified URL including any path elements required to reach the root of the repository. + + :return: The upstream_url of this GoUpstreamRequest. + :rtype: str + """ + return self._upstream_url + + @upstream_url.setter + def upstream_url(http://github.com/self,%20upstream_url): + """Sets the upstream_url of this GoUpstreamRequest. + + The URL for this upstream source. This must be a fully qualified URL including any path elements required to reach the root of the repository. + + :param upstream_url: The upstream_url of this GoUpstreamRequest. + :type: str + """ + if self._configuration.client_side_validation and upstream_url is None: + raise ValueError("Invalid value for `upstream_url`, must not be `None`") # noqa: E501 + if (self._configuration.client_side_validation and + upstream_url is not None and len(upstream_url) > 200): + raise ValueError("Invalid value for `upstream_url`, length must be less than or equal to `200`") # noqa: E501 + if (self._configuration.client_side_validation and + upstream_url is not None and len(upstream_url) < 1): + raise ValueError("Invalid value for `upstream_url`, length must be greater than or equal to `1`") # noqa: E501 + + self._upstream_url = upstream_url + + @property + def verify_ssl(self): + """Gets the verify_ssl of this GoUpstreamRequest. + + If enabled, SSL certificates are verified when requests are made to this upstream. It's recommended to leave this enabled for all public sources to help mitigate Man-In-The-Middle (MITM) attacks. Please note this only applies to HTTPS upstreams. + + :return: The verify_ssl of this GoUpstreamRequest. + :rtype: bool + """ + return self._verify_ssl + + @verify_ssl.setter + def verify_ssl(self, verify_ssl): + """Sets the verify_ssl of this GoUpstreamRequest. + + If enabled, SSL certificates are verified when requests are made to this upstream. It's recommended to leave this enabled for all public sources to help mitigate Man-In-The-Middle (MITM) attacks. Please note this only applies to HTTPS upstreams. + + :param verify_ssl: The verify_ssl of this GoUpstreamRequest. + :type: bool + """ + + self._verify_ssl = verify_ssl + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GoUpstreamRequest, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GoUpstreamRequest): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, GoUpstreamRequest): + return True + + return self.to_dict() != other.to_dict() + diff --git a/bindings/python/src/cloudsmith_api/models/go_upstream_request_patch.py b/bindings/python/src/cloudsmith_api/models/go_upstream_request_patch.py new file mode 100644 index 00000000..3b8df23e --- /dev/null +++ b/bindings/python/src/cloudsmith_api/models/go_upstream_request_patch.py @@ -0,0 +1,527 @@ +# coding: utf-8 + +""" + Cloudsmith API (v1) + + 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 +""" + + +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration + + +class GoUpstreamRequestPatch(object): + """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 + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'auth_mode': 'str', + 'auth_secret': 'str', + 'auth_username': 'str', + 'extra_header_1': 'str', + 'extra_header_2': 'str', + 'extra_value_1': 'str', + 'extra_value_2': 'str', + 'is_active': 'bool', + 'mode': 'str', + 'name': 'str', + 'priority': 'int', + 'upstream_url': 'str', + 'verify_ssl': 'bool' + } + + attribute_map = { + 'auth_mode': 'auth_mode', + 'auth_secret': 'auth_secret', + 'auth_username': 'auth_username', + 'extra_header_1': 'extra_header_1', + 'extra_header_2': 'extra_header_2', + 'extra_value_1': 'extra_value_1', + 'extra_value_2': 'extra_value_2', + 'is_active': 'is_active', + 'mode': 'mode', + 'name': 'name', + 'priority': 'priority', + 'upstream_url': 'upstream_url', + 'verify_ssl': 'verify_ssl' + } + + def __init__(self, auth_mode='None', auth_secret=None, auth_username=None, extra_header_1=None, extra_header_2=None, extra_value_1=None, extra_value_2=None, is_active=None, mode='Proxy Only', name=None, priority=None, upstream_url=None, verify_ssl=None, _configuration=None): # noqa: E501 + """GoUpstreamRequestPatch - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._auth_mode = None + self._auth_secret = None + self._auth_username = None + self._extra_header_1 = None + self._extra_header_2 = None + self._extra_value_1 = None + self._extra_value_2 = None + self._is_active = None + self._mode = None + self._name = None + self._priority = None + self._upstream_url = None + self._verify_ssl = None + self.discriminator = None + + if auth_mode is not None: + self.auth_mode = auth_mode + if auth_secret is not None: + self.auth_secret = auth_secret + if auth_username is not None: + self.auth_username = auth_username + if extra_header_1 is not None: + self.extra_header_1 = extra_header_1 + if extra_header_2 is not None: + self.extra_header_2 = extra_header_2 + if extra_value_1 is not None: + self.extra_value_1 = extra_value_1 + if extra_value_2 is not None: + self.extra_value_2 = extra_value_2 + if is_active is not None: + self.is_active = is_active + if mode is not None: + self.mode = mode + if name is not None: + self.name = name + if priority is not None: + self.priority = priority + if upstream_url is not None: + self.upstream_url = upstream_url + if verify_ssl is not None: + self.verify_ssl = verify_ssl + + @property + def auth_mode(self): + """Gets the auth_mode of this GoUpstreamRequestPatch. + + The authentication mode to use when accessing this upstream. + + :return: The auth_mode of this GoUpstreamRequestPatch. + :rtype: str + """ + return self._auth_mode + + @auth_mode.setter + def auth_mode(self, auth_mode): + """Sets the auth_mode of this GoUpstreamRequestPatch. + + The authentication mode to use when accessing this upstream. + + :param auth_mode: The auth_mode of this GoUpstreamRequestPatch. + :type: str + """ + allowed_values = ["None", "Username and Password"] # noqa: E501 + if (self._configuration.client_side_validation and + auth_mode not in allowed_values): + raise ValueError( + "Invalid value for `auth_mode` ({0}), must be one of {1}" # noqa: E501 + .format(auth_mode, allowed_values) + ) + + self._auth_mode = auth_mode + + @property + def auth_secret(self): + """Gets the auth_secret of this GoUpstreamRequestPatch. + + Secret to provide with requests to upstream. + + :return: The auth_secret of this GoUpstreamRequestPatch. + :rtype: str + """ + return self._auth_secret + + @auth_secret.setter + def auth_secret(self, auth_secret): + """Sets the auth_secret of this GoUpstreamRequestPatch. + + Secret to provide with requests to upstream. + + :param auth_secret: The auth_secret of this GoUpstreamRequestPatch. + :type: str + """ + if (self._configuration.client_side_validation and + auth_secret is not None and len(auth_secret) > 4096): + raise ValueError("Invalid value for `auth_secret`, length must be less than or equal to `4096`") # noqa: E501 + + self._auth_secret = auth_secret + + @property + def auth_username(self): + """Gets the auth_username of this GoUpstreamRequestPatch. + + Username to provide with requests to upstream. + + :return: The auth_username of this GoUpstreamRequestPatch. + :rtype: str + """ + return self._auth_username + + @auth_username.setter + def auth_username(self, auth_username): + """Sets the auth_username of this GoUpstreamRequestPatch. + + Username to provide with requests to upstream. + + :param auth_username: The auth_username of this GoUpstreamRequestPatch. + :type: str + """ + if (self._configuration.client_side_validation and + auth_username is not None and len(auth_username) > 64): + raise ValueError("Invalid value for `auth_username`, length must be less than or equal to `64`") # noqa: E501 + + self._auth_username = auth_username + + @property + def extra_header_1(self): + """Gets the extra_header_1 of this GoUpstreamRequestPatch. + + The key for extra header #1 to send to upstream. + + :return: The extra_header_1 of this GoUpstreamRequestPatch. + :rtype: str + """ + return self._extra_header_1 + + @extra_header_1.setter + def extra_header_1(self, extra_header_1): + """Sets the extra_header_1 of this GoUpstreamRequestPatch. + + The key for extra header #1 to send to upstream. + + :param extra_header_1: The extra_header_1 of this GoUpstreamRequestPatch. + :type: str + """ + if (self._configuration.client_side_validation and + extra_header_1 is not None and len(extra_header_1) > 64): + raise ValueError("Invalid value for `extra_header_1`, length must be less than or equal to `64`") # noqa: E501 + if (self._configuration.client_side_validation and + extra_header_1 is not None and not re.search('^[-\\w]+$', extra_header_1)): # noqa: E501 + raise ValueError(r"Invalid value for `extra_header_1`, must be a follow pattern or equal to `/^[-\\w]+$/`") # noqa: E501 + + self._extra_header_1 = extra_header_1 + + @property + def extra_header_2(self): + """Gets the extra_header_2 of this GoUpstreamRequestPatch. + + The key for extra header #2 to send to upstream. + + :return: The extra_header_2 of this GoUpstreamRequestPatch. + :rtype: str + """ + return self._extra_header_2 + + @extra_header_2.setter + def extra_header_2(self, extra_header_2): + """Sets the extra_header_2 of this GoUpstreamRequestPatch. + + The key for extra header #2 to send to upstream. + + :param extra_header_2: The extra_header_2 of this GoUpstreamRequestPatch. + :type: str + """ + if (self._configuration.client_side_validation and + extra_header_2 is not None and len(extra_header_2) > 64): + raise ValueError("Invalid value for `extra_header_2`, length must be less than or equal to `64`") # noqa: E501 + if (self._configuration.client_side_validation and + extra_header_2 is not None and not re.search('^[-\\w]+$', extra_header_2)): # noqa: E501 + raise ValueError(r"Invalid value for `extra_header_2`, must be a follow pattern or equal to `/^[-\\w]+$/`") # noqa: E501 + + self._extra_header_2 = extra_header_2 + + @property + def extra_value_1(self): + """Gets the extra_value_1 of this GoUpstreamRequestPatch. + + The value for extra header #1 to send to upstream. This is stored as plaintext, and is NOT encrypted. + + :return: The extra_value_1 of this GoUpstreamRequestPatch. + :rtype: str + """ + return self._extra_value_1 + + @extra_value_1.setter + def extra_value_1(self, extra_value_1): + """Sets the extra_value_1 of this GoUpstreamRequestPatch. + + The value for extra header #1 to send to upstream. This is stored as plaintext, and is NOT encrypted. + + :param extra_value_1: The extra_value_1 of this GoUpstreamRequestPatch. + :type: str + """ + if (self._configuration.client_side_validation and + extra_value_1 is not None and len(extra_value_1) > 128): + raise ValueError("Invalid value for `extra_value_1`, length must be less than or equal to `128`") # noqa: E501 + if (self._configuration.client_side_validation and + extra_value_1 is not None and not re.search('^[^\\n\\r]+$', extra_value_1)): # noqa: E501 + raise ValueError(r"Invalid value for `extra_value_1`, must be a follow pattern or equal to `/^[^\\n\\r]+$/`") # noqa: E501 + + self._extra_value_1 = extra_value_1 + + @property + def extra_value_2(self): + """Gets the extra_value_2 of this GoUpstreamRequestPatch. + + The value for extra header #2 to send to upstream. This is stored as plaintext, and is NOT encrypted. + + :return: The extra_value_2 of this GoUpstreamRequestPatch. + :rtype: str + """ + return self._extra_value_2 + + @extra_value_2.setter + def extra_value_2(self, extra_value_2): + """Sets the extra_value_2 of this GoUpstreamRequestPatch. + + The value for extra header #2 to send to upstream. This is stored as plaintext, and is NOT encrypted. + + :param extra_value_2: The extra_value_2 of this GoUpstreamRequestPatch. + :type: str + """ + if (self._configuration.client_side_validation and + extra_value_2 is not None and len(extra_value_2) > 128): + raise ValueError("Invalid value for `extra_value_2`, length must be less than or equal to `128`") # noqa: E501 + if (self._configuration.client_side_validation and + extra_value_2 is not None and not re.search('^[^\\n\\r]+$', extra_value_2)): # noqa: E501 + raise ValueError(r"Invalid value for `extra_value_2`, must be a follow pattern or equal to `/^[^\\n\\r]+$/`") # noqa: E501 + + self._extra_value_2 = extra_value_2 + + @property + def is_active(self): + """Gets the is_active of this GoUpstreamRequestPatch. + + Whether or not this upstream is active and ready for requests. + + :return: The is_active of this GoUpstreamRequestPatch. + :rtype: bool + """ + return self._is_active + + @is_active.setter + def is_active(self, is_active): + """Sets the is_active of this GoUpstreamRequestPatch. + + Whether or not this upstream is active and ready for requests. + + :param is_active: The is_active of this GoUpstreamRequestPatch. + :type: bool + """ + + self._is_active = is_active + + @property + def mode(self): + """Gets the mode of this GoUpstreamRequestPatch. + + The mode that this upstream should operate in. Upstream sources can be used to proxy resolved packages, as well as operate in a proxy/cache or cache only mode. + + :return: The mode of this GoUpstreamRequestPatch. + :rtype: str + """ + return self._mode + + @mode.setter + def mode(self, mode): + """Sets the mode of this GoUpstreamRequestPatch. + + The mode that this upstream should operate in. Upstream sources can be used to proxy resolved packages, as well as operate in a proxy/cache or cache only mode. + + :param mode: The mode of this GoUpstreamRequestPatch. + :type: str + """ + allowed_values = ["Proxy Only"] # noqa: E501 + if (self._configuration.client_side_validation and + mode not in allowed_values): + raise ValueError( + "Invalid value for `mode` ({0}), must be one of {1}" # noqa: E501 + .format(mode, allowed_values) + ) + + self._mode = mode + + @property + def name(self): + """Gets the name of this GoUpstreamRequestPatch. + + A descriptive name for this upstream source. A shortened version of this name will be used for tagging cached packages retrieved from this upstream. + + :return: The name of this GoUpstreamRequestPatch. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this GoUpstreamRequestPatch. + + A descriptive name for this upstream source. A shortened version of this name will be used for tagging cached packages retrieved from this upstream. + + :param name: The name of this GoUpstreamRequestPatch. + :type: str + """ + if (self._configuration.client_side_validation and + name is not None and len(name) > 64): + raise ValueError("Invalid value for `name`, length must be less than or equal to `64`") # noqa: E501 + if (self._configuration.client_side_validation and + name is not None and len(name) < 1): + raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501 + if (self._configuration.client_side_validation and + name is not None and not re.search('^\\w[\\w \\-\'\\.\/()]+$', name)): # noqa: E501 + raise ValueError(r"Invalid value for `name`, must be a follow pattern or equal to `/^\\w[\\w \\-'\\.\/()]+$/`") # noqa: E501 + + self._name = name + + @property + def priority(self): + """Gets the priority of this GoUpstreamRequestPatch. + + Upstream sources are selected for resolving requests by sequential order (1..n), followed by creation date. + + :return: The priority of this GoUpstreamRequestPatch. + :rtype: int + """ + return self._priority + + @priority.setter + def priority(self, priority): + """Sets the priority of this GoUpstreamRequestPatch. + + Upstream sources are selected for resolving requests by sequential order (1..n), followed by creation date. + + :param priority: The priority of this GoUpstreamRequestPatch. + :type: int + """ + if (self._configuration.client_side_validation and + priority is not None and priority > 32767): # noqa: E501 + raise ValueError("Invalid value for `priority`, must be a value less than or equal to `32767`") # noqa: E501 + if (self._configuration.client_side_validation and + priority is not None and priority < 1): # noqa: E501 + raise ValueError("Invalid value for `priority`, must be a value greater than or equal to `1`") # noqa: E501 + + self._priority = priority + + @property + def upstream_url(http://github.com/self): + """Gets the upstream_url of this GoUpstreamRequestPatch. + + The URL for this upstream source. This must be a fully qualified URL including any path elements required to reach the root of the repository. + + :return: The upstream_url of this GoUpstreamRequestPatch. + :rtype: str + """ + return self._upstream_url + + @upstream_url.setter + def upstream_url(http://github.com/self,%20upstream_url): + """Sets the upstream_url of this GoUpstreamRequestPatch. + + The URL for this upstream source. This must be a fully qualified URL including any path elements required to reach the root of the repository. + + :param upstream_url: The upstream_url of this GoUpstreamRequestPatch. + :type: str + """ + if (self._configuration.client_side_validation and + upstream_url is not None and len(upstream_url) > 200): + raise ValueError("Invalid value for `upstream_url`, length must be less than or equal to `200`") # noqa: E501 + if (self._configuration.client_side_validation and + upstream_url is not None and len(upstream_url) < 1): + raise ValueError("Invalid value for `upstream_url`, length must be greater than or equal to `1`") # noqa: E501 + + self._upstream_url = upstream_url + + @property + def verify_ssl(self): + """Gets the verify_ssl of this GoUpstreamRequestPatch. + + If enabled, SSL certificates are verified when requests are made to this upstream. It's recommended to leave this enabled for all public sources to help mitigate Man-In-The-Middle (MITM) attacks. Please note this only applies to HTTPS upstreams. + + :return: The verify_ssl of this GoUpstreamRequestPatch. + :rtype: bool + """ + return self._verify_ssl + + @verify_ssl.setter + def verify_ssl(self, verify_ssl): + """Sets the verify_ssl of this GoUpstreamRequestPatch. + + If enabled, SSL certificates are verified when requests are made to this upstream. It's recommended to leave this enabled for all public sources to help mitigate Man-In-The-Middle (MITM) attacks. Please note this only applies to HTTPS upstreams. + + :param verify_ssl: The verify_ssl of this GoUpstreamRequestPatch. + :type: bool + """ + + self._verify_ssl = verify_ssl + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GoUpstreamRequestPatch, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GoUpstreamRequestPatch): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, GoUpstreamRequestPatch): + return True + + return self.to_dict() != other.to_dict() + diff --git a/bindings/python/src/cloudsmith_api/models/helm_upstream.py b/bindings/python/src/cloudsmith_api/models/helm_upstream.py index 741c5a4d..7be1cb93 100644 --- a/bindings/python/src/cloudsmith_api/models/helm_upstream.py +++ b/bindings/python/src/cloudsmith_api/models/helm_upstream.py @@ -466,7 +466,7 @@ def name(self, name): name is not None and len(name) < 1): raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501 if (self._configuration.client_side_validation and - name is not None and not re.search('^\\w[\\w \\-\'\\.\\/()]+$', name)): # noqa: E501 + name is not None and not re.search('^\\w[\\w \\-\'\\.\/()]+$', name)): # noqa: E501 raise ValueError(r"Invalid value for `name`, must be a follow pattern or equal to `/^\\w[\\w \\-'\\.\/()]+$/`") # noqa: E501 self._name = name diff --git a/bindings/python/src/cloudsmith_api/models/helm_upstream_request.py b/bindings/python/src/cloudsmith_api/models/helm_upstream_request.py index 8635ebf3..dd3a5d3e 100644 --- a/bindings/python/src/cloudsmith_api/models/helm_upstream_request.py +++ b/bindings/python/src/cloudsmith_api/models/helm_upstream_request.py @@ -390,7 +390,7 @@ def name(self, name): name is not None and len(name) < 1): raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501 if (self._configuration.client_side_validation and - name is not None and not re.search('^\\w[\\w \\-\'\\.\\/()]+$', name)): # noqa: E501 + name is not None and not re.search('^\\w[\\w \\-\'\\.\/()]+$', name)): # noqa: E501 raise ValueError(r"Invalid value for `name`, must be a follow pattern or equal to `/^\\w[\\w \\-'\\.\/()]+$/`") # noqa: E501 self._name = name diff --git a/bindings/python/src/cloudsmith_api/models/helm_upstream_request_patch.py b/bindings/python/src/cloudsmith_api/models/helm_upstream_request_patch.py index b76eb29a..6e4afef3 100644 --- a/bindings/python/src/cloudsmith_api/models/helm_upstream_request_patch.py +++ b/bindings/python/src/cloudsmith_api/models/helm_upstream_request_patch.py @@ -390,7 +390,7 @@ def name(self, name): name is not None and len(name) < 1): raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501 if (self._configuration.client_side_validation and - name is not None and not re.search('^\\w[\\w \\-\'\\.\\/()]+$', name)): # noqa: E501 + name is not None and not re.search('^\\w[\\w \\-\'\\.\/()]+$', name)): # noqa: E501 raise ValueError(r"Invalid value for `name`, must be a follow pattern or equal to `/^\\w[\\w \\-'\\.\/()]+$/`") # noqa: E501 self._name = name diff --git a/bindings/python/src/cloudsmith_api/models/hex_upstream.py b/bindings/python/src/cloudsmith_api/models/hex_upstream.py index 0833b1a7..af5986e3 100644 --- a/bindings/python/src/cloudsmith_api/models/hex_upstream.py +++ b/bindings/python/src/cloudsmith_api/models/hex_upstream.py @@ -466,7 +466,7 @@ def name(self, name): name is not None and len(name) < 1): raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501 if (self._configuration.client_side_validation and - name is not None and not re.search('^\\w[\\w \\-\'\\.\\/()]+$', name)): # noqa: E501 + name is not None and not re.search('^\\w[\\w \\-\'\\.\/()]+$', name)): # noqa: E501 raise ValueError(r"Invalid value for `name`, must be a follow pattern or equal to `/^\\w[\\w \\-'\\.\/()]+$/`") # noqa: E501 self._name = name diff --git a/bindings/python/src/cloudsmith_api/models/hex_upstream_request.py b/bindings/python/src/cloudsmith_api/models/hex_upstream_request.py index c1411326..64036d1c 100644 --- a/bindings/python/src/cloudsmith_api/models/hex_upstream_request.py +++ b/bindings/python/src/cloudsmith_api/models/hex_upstream_request.py @@ -390,7 +390,7 @@ def name(self, name): name is not None and len(name) < 1): raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501 if (self._configuration.client_side_validation and - name is not None and not re.search('^\\w[\\w \\-\'\\.\\/()]+$', name)): # noqa: E501 + name is not None and not re.search('^\\w[\\w \\-\'\\.\/()]+$', name)): # noqa: E501 raise ValueError(r"Invalid value for `name`, must be a follow pattern or equal to `/^\\w[\\w \\-'\\.\/()]+$/`") # noqa: E501 self._name = name diff --git a/bindings/python/src/cloudsmith_api/models/hex_upstream_request_patch.py b/bindings/python/src/cloudsmith_api/models/hex_upstream_request_patch.py index 4998abb6..b589e642 100644 --- a/bindings/python/src/cloudsmith_api/models/hex_upstream_request_patch.py +++ b/bindings/python/src/cloudsmith_api/models/hex_upstream_request_patch.py @@ -390,7 +390,7 @@ def name(self, name): name is not None and len(name) < 1): raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501 if (self._configuration.client_side_validation and - name is not None and not re.search('^\\w[\\w \\-\'\\.\\/()]+$', name)): # noqa: E501 + name is not None and not re.search('^\\w[\\w \\-\'\\.\/()]+$', name)): # noqa: E501 raise ValueError(r"Invalid value for `name`, must be a follow pattern or equal to `/^\\w[\\w \\-'\\.\/()]+$/`") # noqa: E501 self._name = name diff --git a/bindings/python/src/cloudsmith_api/models/inline_response200.py b/bindings/python/src/cloudsmith_api/models/inline_response200.py index 74dd0e07..685bbf89 100644 --- a/bindings/python/src/cloudsmith_api/models/inline_response200.py +++ b/bindings/python/src/cloudsmith_api/models/inline_response200.py @@ -33,7 +33,7 @@ class InlineResponse200(object): and the value is json key in definition. """ swagger_types = { - 'results': 'list[UserAuthenticationToken]' + 'results': 'list[PackageGroup]' } attribute_map = { @@ -57,7 +57,7 @@ def results(self): :return: The results of this InlineResponse200. - :rtype: list[UserAuthenticationToken] + :rtype: list[PackageGroup] """ return self._results @@ -67,7 +67,7 @@ def results(self, results): :param results: The results of this InlineResponse200. - :type: list[UserAuthenticationToken] + :type: list[PackageGroup] """ if self._configuration.client_side_validation and results is None: raise ValueError("Invalid value for `results`, must not be `None`") # noqa: E501 diff --git a/bindings/python/src/cloudsmith_api/models/inline_response2001.py b/bindings/python/src/cloudsmith_api/models/inline_response2001.py new file mode 100644 index 00000000..15c2c703 --- /dev/null +++ b/bindings/python/src/cloudsmith_api/models/inline_response2001.py @@ -0,0 +1,125 @@ +# coding: utf-8 + +""" + Cloudsmith API (v1) + + 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 +""" + + +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration + + +class InlineResponse2001(object): + """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 + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'results': 'list[UserAuthenticationToken]' + } + + attribute_map = { + 'results': 'results' + } + + def __init__(self, results=None, _configuration=None): # noqa: E501 + """InlineResponse2001 - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._results = None + self.discriminator = None + + self.results = results + + @property + def results(self): + """Gets the results of this InlineResponse2001. + + + :return: The results of this InlineResponse2001. + :rtype: list[UserAuthenticationToken] + """ + return self._results + + @results.setter + def results(self, results): + """Sets the results of this InlineResponse2001. + + + :param results: The results of this InlineResponse2001. + :type: list[UserAuthenticationToken] + """ + if self._configuration.client_side_validation and results is None: + raise ValueError("Invalid value for `results`, must not be `None`") # noqa: E501 + + self._results = results + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(InlineResponse2001, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, InlineResponse2001): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, InlineResponse2001): + return True + + return self.to_dict() != other.to_dict() + diff --git a/bindings/python/src/cloudsmith_api/models/maven_upstream.py b/bindings/python/src/cloudsmith_api/models/maven_upstream.py index 965d6b97..5bfa52a1 100644 --- a/bindings/python/src/cloudsmith_api/models/maven_upstream.py +++ b/bindings/python/src/cloudsmith_api/models/maven_upstream.py @@ -565,7 +565,7 @@ def name(self, name): name is not None and len(name) < 1): raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501 if (self._configuration.client_side_validation and - name is not None and not re.search('^\\w[\\w \\-\'\\.\\/()]+$', name)): # noqa: E501 + name is not None and not re.search('^\\w[\\w \\-\'\\.\/()]+$', name)): # noqa: E501 raise ValueError(r"Invalid value for `name`, must be a follow pattern or equal to `/^\\w[\\w \\-'\\.\/()]+$/`") # noqa: E501 self._name = name diff --git a/bindings/python/src/cloudsmith_api/models/maven_upstream_request.py b/bindings/python/src/cloudsmith_api/models/maven_upstream_request.py index 321be509..f1c1f3e4 100644 --- a/bindings/python/src/cloudsmith_api/models/maven_upstream_request.py +++ b/bindings/python/src/cloudsmith_api/models/maven_upstream_request.py @@ -484,7 +484,7 @@ def name(self, name): name is not None and len(name) < 1): raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501 if (self._configuration.client_side_validation and - name is not None and not re.search('^\\w[\\w \\-\'\\.\\/()]+$', name)): # noqa: E501 + name is not None and not re.search('^\\w[\\w \\-\'\\.\/()]+$', name)): # noqa: E501 raise ValueError(r"Invalid value for `name`, must be a follow pattern or equal to `/^\\w[\\w \\-'\\.\/()]+$/`") # noqa: E501 self._name = name diff --git a/bindings/python/src/cloudsmith_api/models/maven_upstream_request_patch.py b/bindings/python/src/cloudsmith_api/models/maven_upstream_request_patch.py index 80b08818..af1fdc3a 100644 --- a/bindings/python/src/cloudsmith_api/models/maven_upstream_request_patch.py +++ b/bindings/python/src/cloudsmith_api/models/maven_upstream_request_patch.py @@ -484,7 +484,7 @@ def name(self, name): name is not None and len(name) < 1): raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501 if (self._configuration.client_side_validation and - name is not None and not re.search('^\\w[\\w \\-\'\\.\\/()]+$', name)): # noqa: E501 + name is not None and not re.search('^\\w[\\w \\-\'\\.\/()]+$', name)): # noqa: E501 raise ValueError(r"Invalid value for `name`, must be a follow pattern or equal to `/^\\w[\\w \\-'\\.\/()]+$/`") # noqa: E501 self._name = name diff --git a/bindings/python/src/cloudsmith_api/models/npm_upstream.py b/bindings/python/src/cloudsmith_api/models/npm_upstream.py index cea6d0bd..c2d8957a 100644 --- a/bindings/python/src/cloudsmith_api/models/npm_upstream.py +++ b/bindings/python/src/cloudsmith_api/models/npm_upstream.py @@ -466,7 +466,7 @@ def name(self, name): name is not None and len(name) < 1): raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501 if (self._configuration.client_side_validation and - name is not None and not re.search('^\\w[\\w \\-\'\\.\\/()]+$', name)): # noqa: E501 + name is not None and not re.search('^\\w[\\w \\-\'\\.\/()]+$', name)): # noqa: E501 raise ValueError(r"Invalid value for `name`, must be a follow pattern or equal to `/^\\w[\\w \\-'\\.\/()]+$/`") # noqa: E501 self._name = name diff --git a/bindings/python/src/cloudsmith_api/models/npm_upstream_request.py b/bindings/python/src/cloudsmith_api/models/npm_upstream_request.py index 2e3fc951..e3fb6c1f 100644 --- a/bindings/python/src/cloudsmith_api/models/npm_upstream_request.py +++ b/bindings/python/src/cloudsmith_api/models/npm_upstream_request.py @@ -390,7 +390,7 @@ def name(self, name): name is not None and len(name) < 1): raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501 if (self._configuration.client_side_validation and - name is not None and not re.search('^\\w[\\w \\-\'\\.\\/()]+$', name)): # noqa: E501 + name is not None and not re.search('^\\w[\\w \\-\'\\.\/()]+$', name)): # noqa: E501 raise ValueError(r"Invalid value for `name`, must be a follow pattern or equal to `/^\\w[\\w \\-'\\.\/()]+$/`") # noqa: E501 self._name = name diff --git a/bindings/python/src/cloudsmith_api/models/npm_upstream_request_patch.py b/bindings/python/src/cloudsmith_api/models/npm_upstream_request_patch.py index fc3793e4..a6a72031 100644 --- a/bindings/python/src/cloudsmith_api/models/npm_upstream_request_patch.py +++ b/bindings/python/src/cloudsmith_api/models/npm_upstream_request_patch.py @@ -390,7 +390,7 @@ def name(self, name): name is not None and len(name) < 1): raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501 if (self._configuration.client_side_validation and - name is not None and not re.search('^\\w[\\w \\-\'\\.\\/()]+$', name)): # noqa: E501 + name is not None and not re.search('^\\w[\\w \\-\'\\.\/()]+$', name)): # noqa: E501 raise ValueError(r"Invalid value for `name`, must be a follow pattern or equal to `/^\\w[\\w \\-'\\.\/()]+$/`") # noqa: E501 self._name = name diff --git a/bindings/python/src/cloudsmith_api/models/nuget_upstream.py b/bindings/python/src/cloudsmith_api/models/nuget_upstream.py index b4ad272a..09a62f23 100644 --- a/bindings/python/src/cloudsmith_api/models/nuget_upstream.py +++ b/bindings/python/src/cloudsmith_api/models/nuget_upstream.py @@ -466,7 +466,7 @@ def name(self, name): name is not None and len(name) < 1): raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501 if (self._configuration.client_side_validation and - name is not None and not re.search('^\\w[\\w \\-\'\\.\\/()]+$', name)): # noqa: E501 + name is not None and not re.search('^\\w[\\w \\-\'\\.\/()]+$', name)): # noqa: E501 raise ValueError(r"Invalid value for `name`, must be a follow pattern or equal to `/^\\w[\\w \\-'\\.\/()]+$/`") # noqa: E501 self._name = name diff --git a/bindings/python/src/cloudsmith_api/models/nuget_upstream_request.py b/bindings/python/src/cloudsmith_api/models/nuget_upstream_request.py index fb7d2dae..9b8a8c65 100644 --- a/bindings/python/src/cloudsmith_api/models/nuget_upstream_request.py +++ b/bindings/python/src/cloudsmith_api/models/nuget_upstream_request.py @@ -390,7 +390,7 @@ def name(self, name): name is not None and len(name) < 1): raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501 if (self._configuration.client_side_validation and - name is not None and not re.search('^\\w[\\w \\-\'\\.\\/()]+$', name)): # noqa: E501 + name is not None and not re.search('^\\w[\\w \\-\'\\.\/()]+$', name)): # noqa: E501 raise ValueError(r"Invalid value for `name`, must be a follow pattern or equal to `/^\\w[\\w \\-'\\.\/()]+$/`") # noqa: E501 self._name = name diff --git a/bindings/python/src/cloudsmith_api/models/nuget_upstream_request_patch.py b/bindings/python/src/cloudsmith_api/models/nuget_upstream_request_patch.py index 67eafadb..101e4437 100644 --- a/bindings/python/src/cloudsmith_api/models/nuget_upstream_request_patch.py +++ b/bindings/python/src/cloudsmith_api/models/nuget_upstream_request_patch.py @@ -390,7 +390,7 @@ def name(self, name): name is not None and len(name) < 1): raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501 if (self._configuration.client_side_validation and - name is not None and not re.search('^\\w[\\w \\-\'\\.\\/()]+$', name)): # noqa: E501 + name is not None and not re.search('^\\w[\\w \\-\'\\.\/()]+$', name)): # noqa: E501 raise ValueError(r"Invalid value for `name`, must be a follow pattern or equal to `/^\\w[\\w \\-'\\.\/()]+$/`") # noqa: E501 self._name = name diff --git a/bindings/python/src/cloudsmith_api/models/package_group.py b/bindings/python/src/cloudsmith_api/models/package_group.py new file mode 100644 index 00000000..3a95d562 --- /dev/null +++ b/bindings/python/src/cloudsmith_api/models/package_group.py @@ -0,0 +1,261 @@ +# coding: utf-8 + +""" + Cloudsmith API (v1) + + 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 +""" + + +import pprint +import re # noqa: F401 + +import six + +from cloudsmith_api.configuration import Configuration + + +class PackageGroup(object): + """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 + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'backend_kind': 'int', + 'count': 'int', + 'last_push': 'datetime', + 'name': 'str', + 'num_downloads': 'int', + 'size': 'int' + } + + attribute_map = { + 'backend_kind': 'backend_kind', + 'count': 'count', + 'last_push': 'last_push', + 'name': 'name', + 'num_downloads': 'num_downloads', + 'size': 'size' + } + + def __init__(self, backend_kind=None, count=None, last_push=None, name=None, num_downloads=None, size=None, _configuration=None): # noqa: E501 + """PackageGroup - a model defined in Swagger""" # noqa: E501 + if _configuration is None: + _configuration = Configuration() + self._configuration = _configuration + + self._backend_kind = None + self._count = None + self._last_push = None + self._name = None + self._num_downloads = None + self._size = None + self.discriminator = None + + if backend_kind is not None: + self.backend_kind = backend_kind + self.count = count + self.last_push = last_push + if name is not None: + self.name = name + self.num_downloads = num_downloads + self.size = size + + @property + def backend_kind(self): + """Gets the backend_kind of this PackageGroup. + + + :return: The backend_kind of this PackageGroup. + :rtype: int + """ + return self._backend_kind + + @backend_kind.setter + def backend_kind(self, backend_kind): + """Sets the backend_kind of this PackageGroup. + + + :param backend_kind: The backend_kind of this PackageGroup. + :type: int + """ + + self._backend_kind = backend_kind + + @property + def count(self): + """Gets the count of this PackageGroup. + + + :return: The count of this PackageGroup. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this PackageGroup. + + + :param count: The count of this PackageGroup. + :type: int + """ + if self._configuration.client_side_validation and count is None: + raise ValueError("Invalid value for `count`, must not be `None`") # noqa: E501 + + self._count = count + + @property + def last_push(self): + """Gets the last_push of this PackageGroup. + + + :return: The last_push of this PackageGroup. + :rtype: datetime + """ + return self._last_push + + @last_push.setter + def last_push(self, last_push): + """Sets the last_push of this PackageGroup. + + + :param last_push: The last_push of this PackageGroup. + :type: datetime + """ + if self._configuration.client_side_validation and last_push is None: + raise ValueError("Invalid value for `last_push`, must not be `None`") # noqa: E501 + + self._last_push = last_push + + @property + def name(self): + """Gets the name of this PackageGroup. + + + :return: The name of this PackageGroup. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this PackageGroup. + + + :param name: The name of this PackageGroup. + :type: str + """ + if (self._configuration.client_side_validation and + name is not None and len(name) < 1): + raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501 + + self._name = name + + @property + def num_downloads(self): + """Gets the num_downloads of this PackageGroup. + + + :return: The num_downloads of this PackageGroup. + :rtype: int + """ + return self._num_downloads + + @num_downloads.setter + def num_downloads(self, num_downloads): + """Sets the num_downloads of this PackageGroup. + + + :param num_downloads: The num_downloads of this PackageGroup. + :type: int + """ + if self._configuration.client_side_validation and num_downloads is None: + raise ValueError("Invalid value for `num_downloads`, must not be `None`") # noqa: E501 + + self._num_downloads = num_downloads + + @property + def size(self): + """Gets the size of this PackageGroup. + + + :return: The size of this PackageGroup. + :rtype: int + """ + return self._size + + @size.setter + def size(self, size): + """Sets the size of this PackageGroup. + + + :param size: The size of this PackageGroup. + :type: int + """ + if self._configuration.client_side_validation and size is None: + raise ValueError("Invalid value for `size`, must not be `None`") # noqa: E501 + + self._size = size + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(PackageGroup, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PackageGroup): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, PackageGroup): + return True + + return self.to_dict() != other.to_dict() + diff --git a/bindings/python/src/cloudsmith_api/models/python_upstream.py b/bindings/python/src/cloudsmith_api/models/python_upstream.py index b6610843..fe49227c 100644 --- a/bindings/python/src/cloudsmith_api/models/python_upstream.py +++ b/bindings/python/src/cloudsmith_api/models/python_upstream.py @@ -466,7 +466,7 @@ def name(self, name): name is not None and len(name) < 1): raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501 if (self._configuration.client_side_validation and - name is not None and not re.search('^\\w[\\w \\-\'\\.\\/()]+$', name)): # noqa: E501 + name is not None and not re.search('^\\w[\\w \\-\'\\.\/()]+$', name)): # noqa: E501 raise ValueError(r"Invalid value for `name`, must be a follow pattern or equal to `/^\\w[\\w \\-'\\.\/()]+$/`") # noqa: E501 self._name = name diff --git a/bindings/python/src/cloudsmith_api/models/python_upstream_request.py b/bindings/python/src/cloudsmith_api/models/python_upstream_request.py index 3e586529..ce01f447 100644 --- a/bindings/python/src/cloudsmith_api/models/python_upstream_request.py +++ b/bindings/python/src/cloudsmith_api/models/python_upstream_request.py @@ -390,7 +390,7 @@ def name(self, name): name is not None and len(name) < 1): raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501 if (self._configuration.client_side_validation and - name is not None and not re.search('^\\w[\\w \\-\'\\.\\/()]+$', name)): # noqa: E501 + name is not None and not re.search('^\\w[\\w \\-\'\\.\/()]+$', name)): # noqa: E501 raise ValueError(r"Invalid value for `name`, must be a follow pattern or equal to `/^\\w[\\w \\-'\\.\/()]+$/`") # noqa: E501 self._name = name diff --git a/bindings/python/src/cloudsmith_api/models/python_upstream_request_patch.py b/bindings/python/src/cloudsmith_api/models/python_upstream_request_patch.py index ea221b2e..27e64863 100644 --- a/bindings/python/src/cloudsmith_api/models/python_upstream_request_patch.py +++ b/bindings/python/src/cloudsmith_api/models/python_upstream_request_patch.py @@ -390,7 +390,7 @@ def name(self, name): name is not None and len(name) < 1): raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501 if (self._configuration.client_side_validation and - name is not None and not re.search('^\\w[\\w \\-\'\\.\\/()]+$', name)): # noqa: E501 + name is not None and not re.search('^\\w[\\w \\-\'\\.\/()]+$', name)): # noqa: E501 raise ValueError(r"Invalid value for `name`, must be a follow pattern or equal to `/^\\w[\\w \\-'\\.\/()]+$/`") # noqa: E501 self._name = name diff --git a/bindings/python/src/cloudsmith_api/models/repository.py b/bindings/python/src/cloudsmith_api/models/repository.py index 049bd329..cc419ca2 100644 --- a/bindings/python/src/cloudsmith_api/models/repository.py +++ b/bindings/python/src/cloudsmith_api/models/repository.py @@ -982,7 +982,7 @@ def name(self, name): name is not None and len(name) < 1): raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501 if (self._configuration.client_side_validation and - name is not None and not re.search('^\\w[\\w \\-\'\\.\\/()]+$', name)): # noqa: E501 + name is not None and not re.search('^\\w[\\w \\-\'\\.\/()]+$', name)): # noqa: E501 raise ValueError(r"Invalid value for `name`, must be a follow pattern or equal to `/^\\w[\\w \\-'\\.\/()]+$/`") # noqa: E501 self._name = name diff --git a/bindings/python/src/cloudsmith_api/models/repository_create.py b/bindings/python/src/cloudsmith_api/models/repository_create.py index 6aba222c..65c776d7 100644 --- a/bindings/python/src/cloudsmith_api/models/repository_create.py +++ b/bindings/python/src/cloudsmith_api/models/repository_create.py @@ -982,7 +982,7 @@ def name(self, name): name is not None and len(name) < 1): raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501 if (self._configuration.client_side_validation and - name is not None and not re.search('^\\w[\\w \\-\'\\.\\/()]+$', name)): # noqa: E501 + name is not None and not re.search('^\\w[\\w \\-\'\\.\/()]+$', name)): # noqa: E501 raise ValueError(r"Invalid value for `name`, must be a follow pattern or equal to `/^\\w[\\w \\-'\\.\/()]+$/`") # noqa: E501 self._name = name diff --git a/bindings/python/src/cloudsmith_api/models/repository_create_request.py b/bindings/python/src/cloudsmith_api/models/repository_create_request.py index 6ced6748..ff257560 100644 --- a/bindings/python/src/cloudsmith_api/models/repository_create_request.py +++ b/bindings/python/src/cloudsmith_api/models/repository_create_request.py @@ -705,7 +705,7 @@ def name(self, name): name is not None and len(name) < 1): raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501 if (self._configuration.client_side_validation and - name is not None and not re.search('^\\w[\\w \\-\'\\.\\/()]+$', name)): # noqa: E501 + name is not None and not re.search('^\\w[\\w \\-\'\\.\/()]+$', name)): # noqa: E501 raise ValueError(r"Invalid value for `name`, must be a follow pattern or equal to `/^\\w[\\w \\-'\\.\/()]+$/`") # noqa: E501 self._name = name diff --git a/bindings/python/src/cloudsmith_api/models/repository_request_patch.py b/bindings/python/src/cloudsmith_api/models/repository_request_patch.py index 397d24cd..a2d06f8c 100644 --- a/bindings/python/src/cloudsmith_api/models/repository_request_patch.py +++ b/bindings/python/src/cloudsmith_api/models/repository_request_patch.py @@ -699,7 +699,7 @@ def name(self, name): name is not None and len(name) < 1): raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501 if (self._configuration.client_side_validation and - name is not None and not re.search('^\\w[\\w \\-\'\\.\\/()]+$', name)): # noqa: E501 + name is not None and not re.search('^\\w[\\w \\-\'\\.\/()]+$', name)): # noqa: E501 raise ValueError(r"Invalid value for `name`, must be a follow pattern or equal to `/^\\w[\\w \\-'\\.\/()]+$/`") # noqa: E501 self._name = name diff --git a/bindings/python/src/cloudsmith_api/models/rpm_upstream.py b/bindings/python/src/cloudsmith_api/models/rpm_upstream.py index 87a1ac27..7140d274 100644 --- a/bindings/python/src/cloudsmith_api/models/rpm_upstream.py +++ b/bindings/python/src/cloudsmith_api/models/rpm_upstream.py @@ -622,7 +622,7 @@ def name(self, name): name is not None and len(name) < 1): raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501 if (self._configuration.client_side_validation and - name is not None and not re.search('^\\w[\\w \\-\'\\.\\/()]+$', name)): # noqa: E501 + name is not None and not re.search('^\\w[\\w \\-\'\\.\/()]+$', name)): # noqa: E501 raise ValueError(r"Invalid value for `name`, must be a follow pattern or equal to `/^\\w[\\w \\-'\\.\/()]+$/`") # noqa: E501 self._name = name diff --git a/bindings/python/src/cloudsmith_api/models/rpm_upstream_request.py b/bindings/python/src/cloudsmith_api/models/rpm_upstream_request.py index 8fd416ce..19ef7d14 100644 --- a/bindings/python/src/cloudsmith_api/models/rpm_upstream_request.py +++ b/bindings/python/src/cloudsmith_api/models/rpm_upstream_request.py @@ -541,7 +541,7 @@ def name(self, name): name is not None and len(name) < 1): raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501 if (self._configuration.client_side_validation and - name is not None and not re.search('^\\w[\\w \\-\'\\.\\/()]+$', name)): # noqa: E501 + name is not None and not re.search('^\\w[\\w \\-\'\\.\/()]+$', name)): # noqa: E501 raise ValueError(r"Invalid value for `name`, must be a follow pattern or equal to `/^\\w[\\w \\-'\\.\/()]+$/`") # noqa: E501 self._name = name diff --git a/bindings/python/src/cloudsmith_api/models/rpm_upstream_request_patch.py b/bindings/python/src/cloudsmith_api/models/rpm_upstream_request_patch.py index 4cb65bba..4c5f7aa1 100644 --- a/bindings/python/src/cloudsmith_api/models/rpm_upstream_request_patch.py +++ b/bindings/python/src/cloudsmith_api/models/rpm_upstream_request_patch.py @@ -540,7 +540,7 @@ def name(self, name): name is not None and len(name) < 1): raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501 if (self._configuration.client_side_validation and - name is not None and not re.search('^\\w[\\w \\-\'\\.\\/()]+$', name)): # noqa: E501 + name is not None and not re.search('^\\w[\\w \\-\'\\.\/()]+$', name)): # noqa: E501 raise ValueError(r"Invalid value for `name`, must be a follow pattern or equal to `/^\\w[\\w \\-'\\.\/()]+$/`") # noqa: E501 self._name = name diff --git a/bindings/python/src/cloudsmith_api/models/ruby_upstream.py b/bindings/python/src/cloudsmith_api/models/ruby_upstream.py index f0940477..ec8cbd8b 100644 --- a/bindings/python/src/cloudsmith_api/models/ruby_upstream.py +++ b/bindings/python/src/cloudsmith_api/models/ruby_upstream.py @@ -466,7 +466,7 @@ def name(self, name): name is not None and len(name) < 1): raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501 if (self._configuration.client_side_validation and - name is not None and not re.search('^\\w[\\w \\-\'\\.\\/()]+$', name)): # noqa: E501 + name is not None and not re.search('^\\w[\\w \\-\'\\.\/()]+$', name)): # noqa: E501 raise ValueError(r"Invalid value for `name`, must be a follow pattern or equal to `/^\\w[\\w \\-'\\.\/()]+$/`") # noqa: E501 self._name = name diff --git a/bindings/python/src/cloudsmith_api/models/ruby_upstream_request.py b/bindings/python/src/cloudsmith_api/models/ruby_upstream_request.py index e5ba3cfd..a1045011 100644 --- a/bindings/python/src/cloudsmith_api/models/ruby_upstream_request.py +++ b/bindings/python/src/cloudsmith_api/models/ruby_upstream_request.py @@ -390,7 +390,7 @@ def name(self, name): name is not None and len(name) < 1): raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501 if (self._configuration.client_side_validation and - name is not None and not re.search('^\\w[\\w \\-\'\\.\\/()]+$', name)): # noqa: E501 + name is not None and not re.search('^\\w[\\w \\-\'\\.\/()]+$', name)): # noqa: E501 raise ValueError(r"Invalid value for `name`, must be a follow pattern or equal to `/^\\w[\\w \\-'\\.\/()]+$/`") # noqa: E501 self._name = name diff --git a/bindings/python/src/cloudsmith_api/models/ruby_upstream_request_patch.py b/bindings/python/src/cloudsmith_api/models/ruby_upstream_request_patch.py index b32279c6..92016299 100644 --- a/bindings/python/src/cloudsmith_api/models/ruby_upstream_request_patch.py +++ b/bindings/python/src/cloudsmith_api/models/ruby_upstream_request_patch.py @@ -390,7 +390,7 @@ def name(self, name): name is not None and len(name) < 1): raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501 if (self._configuration.client_side_validation and - name is not None and not re.search('^\\w[\\w \\-\'\\.\\/()]+$', name)): # noqa: E501 + name is not None and not re.search('^\\w[\\w \\-\'\\.\/()]+$', name)): # noqa: E501 raise ValueError(r"Invalid value for `name`, must be a follow pattern or equal to `/^\\w[\\w \\-'\\.\/()]+$/`") # noqa: E501 self._name = name diff --git a/bindings/python/src/cloudsmith_api/models/status_basic.py b/bindings/python/src/cloudsmith_api/models/status_basic.py index 9507fcf1..e6457636 100644 --- a/bindings/python/src/cloudsmith_api/models/status_basic.py +++ b/bindings/python/src/cloudsmith_api/models/status_basic.py @@ -42,7 +42,7 @@ class StatusBasic(object): 'version': 'version' } - def __init__(self, detail='Cloudsmith API is operational.', version='1.674.0', _configuration=None): # noqa: E501 + def __init__(self, detail='Cloudsmith API is operational.', version='1.698.0', _configuration=None): # noqa: E501 """StatusBasic - a model defined in Swagger""" # noqa: E501 if _configuration is None: _configuration = Configuration() diff --git a/bindings/python/src/cloudsmith_api/models/swift_upstream.py b/bindings/python/src/cloudsmith_api/models/swift_upstream.py index f3f47dc5..3ac0768a 100644 --- a/bindings/python/src/cloudsmith_api/models/swift_upstream.py +++ b/bindings/python/src/cloudsmith_api/models/swift_upstream.py @@ -466,7 +466,7 @@ def name(self, name): name is not None and len(name) < 1): raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501 if (self._configuration.client_side_validation and - name is not None and not re.search('^\\w[\\w \\-\'\\.\\/()]+$', name)): # noqa: E501 + name is not None and not re.search('^\\w[\\w \\-\'\\.\/()]+$', name)): # noqa: E501 raise ValueError(r"Invalid value for `name`, must be a follow pattern or equal to `/^\\w[\\w \\-'\\.\/()]+$/`") # noqa: E501 self._name = name diff --git a/bindings/python/src/cloudsmith_api/models/swift_upstream_request.py b/bindings/python/src/cloudsmith_api/models/swift_upstream_request.py index 951a9c66..b557d518 100644 --- a/bindings/python/src/cloudsmith_api/models/swift_upstream_request.py +++ b/bindings/python/src/cloudsmith_api/models/swift_upstream_request.py @@ -390,7 +390,7 @@ def name(self, name): name is not None and len(name) < 1): raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501 if (self._configuration.client_side_validation and - name is not None and not re.search('^\\w[\\w \\-\'\\.\\/()]+$', name)): # noqa: E501 + name is not None and not re.search('^\\w[\\w \\-\'\\.\/()]+$', name)): # noqa: E501 raise ValueError(r"Invalid value for `name`, must be a follow pattern or equal to `/^\\w[\\w \\-'\\.\/()]+$/`") # noqa: E501 self._name = name diff --git a/bindings/python/src/cloudsmith_api/models/swift_upstream_request_patch.py b/bindings/python/src/cloudsmith_api/models/swift_upstream_request_patch.py index 746ef6fd..209c1a18 100644 --- a/bindings/python/src/cloudsmith_api/models/swift_upstream_request_patch.py +++ b/bindings/python/src/cloudsmith_api/models/swift_upstream_request_patch.py @@ -390,7 +390,7 @@ def name(self, name): name is not None and len(name) < 1): raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501 if (self._configuration.client_side_validation and - name is not None and not re.search('^\\w[\\w \\-\'\\.\\/()]+$', name)): # noqa: E501 + name is not None and not re.search('^\\w[\\w \\-\'\\.\/()]+$', name)): # noqa: E501 raise ValueError(r"Invalid value for `name`, must be a follow pattern or equal to `/^\\w[\\w \\-'\\.\/()]+$/`") # noqa: E501 self._name = name diff --git a/bindings/python/src/docs/CargoUpstream.md b/bindings/python/src/docs/CargoUpstream.md new file mode 100644 index 00000000..5ee51555 --- /dev/null +++ b/bindings/python/src/docs/CargoUpstream.md @@ -0,0 +1,27 @@ +# CargoUpstream + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**auth_mode** | **str** | The authentication mode to use when accessing this upstream. | [optional] [default to 'None'] +**auth_secret** | **str** | Secret to provide with requests to upstream. | [optional] +**auth_username** | **str** | Username to provide with requests to upstream. | [optional] +**created_at** | **datetime** | The datetime the upstream source was created. | [optional] +**disable_reason** | **str** | | [optional] [default to 'N/A'] +**extra_header_1** | **str** | The key for extra header #1 to send to upstream. | [optional] +**extra_header_2** | **str** | The key for extra header #2 to send to upstream. | [optional] +**extra_value_1** | **str** | The value for extra header #1 to send to upstream. This is stored as plaintext, and is NOT encrypted. | [optional] +**extra_value_2** | **str** | The value for extra header #2 to send to upstream. This is stored as plaintext, and is NOT encrypted. | [optional] +**is_active** | **bool** | Whether or not this upstream is active and ready for requests. | [optional] +**mode** | **str** | The mode that this upstream should operate in. Upstream sources can be used to proxy resolved packages, as well as operate in a proxy/cache or cache only mode. | [optional] [default to 'Proxy Only'] +**name** | **str** | A descriptive name for this upstream source. A shortened version of this name will be used for tagging cached packages retrieved from this upstream. | +**pending_validation** | **bool** | When true, this upstream source is pending validation. | [optional] +**priority** | **int** | Upstream sources are selected for resolving requests by sequential order (1..n), followed by creation date. | [optional] +**slug_perm** | **str** | | [optional] +**updated_at** | **datetime** | | [optional] +**upstream_url** | **str** | The URL for this upstream source. This must be a fully qualified URL including any path elements required to reach the root of the repository. | +**verify_ssl** | **bool** | If enabled, SSL certificates are verified when requests are made to this upstream. It's recommended to leave this enabled for all public sources to help mitigate Man-In-The-Middle (MITM) attacks. Please note this only applies to HTTPS upstreams. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/bindings/python/src/docs/CargoUpstreamRequest.md b/bindings/python/src/docs/CargoUpstreamRequest.md new file mode 100644 index 00000000..644c9b32 --- /dev/null +++ b/bindings/python/src/docs/CargoUpstreamRequest.md @@ -0,0 +1,22 @@ +# CargoUpstreamRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**auth_mode** | **str** | The authentication mode to use when accessing this upstream. | [optional] [default to 'None'] +**auth_secret** | **str** | Secret to provide with requests to upstream. | [optional] +**auth_username** | **str** | Username to provide with requests to upstream. | [optional] +**extra_header_1** | **str** | The key for extra header #1 to send to upstream. | [optional] +**extra_header_2** | **str** | The key for extra header #2 to send to upstream. | [optional] +**extra_value_1** | **str** | The value for extra header #1 to send to upstream. This is stored as plaintext, and is NOT encrypted. | [optional] +**extra_value_2** | **str** | The value for extra header #2 to send to upstream. This is stored as plaintext, and is NOT encrypted. | [optional] +**is_active** | **bool** | Whether or not this upstream is active and ready for requests. | [optional] +**mode** | **str** | The mode that this upstream should operate in. Upstream sources can be used to proxy resolved packages, as well as operate in a proxy/cache or cache only mode. | [optional] [default to 'Proxy Only'] +**name** | **str** | A descriptive name for this upstream source. A shortened version of this name will be used for tagging cached packages retrieved from this upstream. | +**priority** | **int** | Upstream sources are selected for resolving requests by sequential order (1..n), followed by creation date. | [optional] +**upstream_url** | **str** | The URL for this upstream source. This must be a fully qualified URL including any path elements required to reach the root of the repository. | +**verify_ssl** | **bool** | If enabled, SSL certificates are verified when requests are made to this upstream. It's recommended to leave this enabled for all public sources to help mitigate Man-In-The-Middle (MITM) attacks. Please note this only applies to HTTPS upstreams. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/bindings/python/src/docs/CargoUpstreamRequestPatch.md b/bindings/python/src/docs/CargoUpstreamRequestPatch.md new file mode 100644 index 00000000..706ebb17 --- /dev/null +++ b/bindings/python/src/docs/CargoUpstreamRequestPatch.md @@ -0,0 +1,22 @@ +# CargoUpstreamRequestPatch + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**auth_mode** | **str** | The authentication mode to use when accessing this upstream. | [optional] [default to 'None'] +**auth_secret** | **str** | Secret to provide with requests to upstream. | [optional] +**auth_username** | **str** | Username to provide with requests to upstream. | [optional] +**extra_header_1** | **str** | The key for extra header #1 to send to upstream. | [optional] +**extra_header_2** | **str** | The key for extra header #2 to send to upstream. | [optional] +**extra_value_1** | **str** | The value for extra header #1 to send to upstream. This is stored as plaintext, and is NOT encrypted. | [optional] +**extra_value_2** | **str** | The value for extra header #2 to send to upstream. This is stored as plaintext, and is NOT encrypted. | [optional] +**is_active** | **bool** | Whether or not this upstream is active and ready for requests. | [optional] +**mode** | **str** | The mode that this upstream should operate in. Upstream sources can be used to proxy resolved packages, as well as operate in a proxy/cache or cache only mode. | [optional] [default to 'Proxy Only'] +**name** | **str** | A descriptive name for this upstream source. A shortened version of this name will be used for tagging cached packages retrieved from this upstream. | [optional] +**priority** | **int** | Upstream sources are selected for resolving requests by sequential order (1..n), followed by creation date. | [optional] +**upstream_url** | **str** | The URL for this upstream source. This must be a fully qualified URL including any path elements required to reach the root of the repository. | [optional] +**verify_ssl** | **bool** | If enabled, SSL certificates are verified when requests are made to this upstream. It's recommended to leave this enabled for all public sources to help mitigate Man-In-The-Middle (MITM) attacks. Please note this only applies to HTTPS upstreams. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/bindings/python/src/docs/GoUpstream.md b/bindings/python/src/docs/GoUpstream.md new file mode 100644 index 00000000..30f445ad --- /dev/null +++ b/bindings/python/src/docs/GoUpstream.md @@ -0,0 +1,27 @@ +# GoUpstream + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**auth_mode** | **str** | The authentication mode to use when accessing this upstream. | [optional] [default to 'None'] +**auth_secret** | **str** | Secret to provide with requests to upstream. | [optional] +**auth_username** | **str** | Username to provide with requests to upstream. | [optional] +**created_at** | **datetime** | The datetime the upstream source was created. | [optional] +**disable_reason** | **str** | | [optional] [default to 'N/A'] +**extra_header_1** | **str** | The key for extra header #1 to send to upstream. | [optional] +**extra_header_2** | **str** | The key for extra header #2 to send to upstream. | [optional] +**extra_value_1** | **str** | The value for extra header #1 to send to upstream. This is stored as plaintext, and is NOT encrypted. | [optional] +**extra_value_2** | **str** | The value for extra header #2 to send to upstream. This is stored as plaintext, and is NOT encrypted. | [optional] +**is_active** | **bool** | Whether or not this upstream is active and ready for requests. | [optional] +**mode** | **str** | The mode that this upstream should operate in. Upstream sources can be used to proxy resolved packages, as well as operate in a proxy/cache or cache only mode. | [optional] [default to 'Proxy Only'] +**name** | **str** | A descriptive name for this upstream source. A shortened version of this name will be used for tagging cached packages retrieved from this upstream. | +**pending_validation** | **bool** | When true, this upstream source is pending validation. | [optional] +**priority** | **int** | Upstream sources are selected for resolving requests by sequential order (1..n), followed by creation date. | [optional] +**slug_perm** | **str** | | [optional] +**updated_at** | **datetime** | | [optional] +**upstream_url** | **str** | The URL for this upstream source. This must be a fully qualified URL including any path elements required to reach the root of the repository. | +**verify_ssl** | **bool** | If enabled, SSL certificates are verified when requests are made to this upstream. It's recommended to leave this enabled for all public sources to help mitigate Man-In-The-Middle (MITM) attacks. Please note this only applies to HTTPS upstreams. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/bindings/python/src/docs/GoUpstreamRequest.md b/bindings/python/src/docs/GoUpstreamRequest.md new file mode 100644 index 00000000..79e7e5e2 --- /dev/null +++ b/bindings/python/src/docs/GoUpstreamRequest.md @@ -0,0 +1,22 @@ +# GoUpstreamRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**auth_mode** | **str** | The authentication mode to use when accessing this upstream. | [optional] [default to 'None'] +**auth_secret** | **str** | Secret to provide with requests to upstream. | [optional] +**auth_username** | **str** | Username to provide with requests to upstream. | [optional] +**extra_header_1** | **str** | The key for extra header #1 to send to upstream. | [optional] +**extra_header_2** | **str** | The key for extra header #2 to send to upstream. | [optional] +**extra_value_1** | **str** | The value for extra header #1 to send to upstream. This is stored as plaintext, and is NOT encrypted. | [optional] +**extra_value_2** | **str** | The value for extra header #2 to send to upstream. This is stored as plaintext, and is NOT encrypted. | [optional] +**is_active** | **bool** | Whether or not this upstream is active and ready for requests. | [optional] +**mode** | **str** | The mode that this upstream should operate in. Upstream sources can be used to proxy resolved packages, as well as operate in a proxy/cache or cache only mode. | [optional] [default to 'Proxy Only'] +**name** | **str** | A descriptive name for this upstream source. A shortened version of this name will be used for tagging cached packages retrieved from this upstream. | +**priority** | **int** | Upstream sources are selected for resolving requests by sequential order (1..n), followed by creation date. | [optional] +**upstream_url** | **str** | The URL for this upstream source. This must be a fully qualified URL including any path elements required to reach the root of the repository. | +**verify_ssl** | **bool** | If enabled, SSL certificates are verified when requests are made to this upstream. It's recommended to leave this enabled for all public sources to help mitigate Man-In-The-Middle (MITM) attacks. Please note this only applies to HTTPS upstreams. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/bindings/python/src/docs/GoUpstreamRequestPatch.md b/bindings/python/src/docs/GoUpstreamRequestPatch.md new file mode 100644 index 00000000..82274e76 --- /dev/null +++ b/bindings/python/src/docs/GoUpstreamRequestPatch.md @@ -0,0 +1,22 @@ +# GoUpstreamRequestPatch + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**auth_mode** | **str** | The authentication mode to use when accessing this upstream. | [optional] [default to 'None'] +**auth_secret** | **str** | Secret to provide with requests to upstream. | [optional] +**auth_username** | **str** | Username to provide with requests to upstream. | [optional] +**extra_header_1** | **str** | The key for extra header #1 to send to upstream. | [optional] +**extra_header_2** | **str** | The key for extra header #2 to send to upstream. | [optional] +**extra_value_1** | **str** | The value for extra header #1 to send to upstream. This is stored as plaintext, and is NOT encrypted. | [optional] +**extra_value_2** | **str** | The value for extra header #2 to send to upstream. This is stored as plaintext, and is NOT encrypted. | [optional] +**is_active** | **bool** | Whether or not this upstream is active and ready for requests. | [optional] +**mode** | **str** | The mode that this upstream should operate in. Upstream sources can be used to proxy resolved packages, as well as operate in a proxy/cache or cache only mode. | [optional] [default to 'Proxy Only'] +**name** | **str** | A descriptive name for this upstream source. A shortened version of this name will be used for tagging cached packages retrieved from this upstream. | [optional] +**priority** | **int** | Upstream sources are selected for resolving requests by sequential order (1..n), followed by creation date. | [optional] +**upstream_url** | **str** | The URL for this upstream source. This must be a fully qualified URL including any path elements required to reach the root of the repository. | [optional] +**verify_ssl** | **bool** | If enabled, SSL certificates are verified when requests are made to this upstream. It's recommended to leave this enabled for all public sources to help mitigate Man-In-The-Middle (MITM) attacks. Please note this only applies to HTTPS upstreams. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/bindings/python/src/docs/InlineResponse200.md b/bindings/python/src/docs/InlineResponse200.md index 87641cb4..751cf037 100644 --- a/bindings/python/src/docs/InlineResponse200.md +++ b/bindings/python/src/docs/InlineResponse200.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**results** | [**list[UserAuthenticationToken]**](UserAuthenticationToken.md) | | +**results** | [**list[PackageGroup]**](PackageGroup.md) | | [[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/python/src/docs/InlineResponse2001.md b/bindings/python/src/docs/InlineResponse2001.md new file mode 100644 index 00000000..79850088 --- /dev/null +++ b/bindings/python/src/docs/InlineResponse2001.md @@ -0,0 +1,10 @@ +# InlineResponse2001 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**results** | [**list[UserAuthenticationToken]**](UserAuthenticationToken.md) | | + +[[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/python/src/docs/PackageGroup.md b/bindings/python/src/docs/PackageGroup.md new file mode 100644 index 00000000..66b81bca --- /dev/null +++ b/bindings/python/src/docs/PackageGroup.md @@ -0,0 +1,15 @@ +# PackageGroup + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**backend_kind** | **int** | | [optional] +**count** | **int** | | +**last_push** | **datetime** | | +**name** | **str** | | [optional] +**num_downloads** | **int** | | +**size** | **int** | | + +[[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/python/src/docs/PackagesApi.md b/bindings/python/src/docs/PackagesApi.md index c32a3a06..5741c4b7 100644 --- a/bindings/python/src/docs/PackagesApi.md +++ b/bindings/python/src/docs/PackagesApi.md @@ -7,6 +7,7 @@ Method | HTTP request | Description [**packages_copy**](PackagesApi.md#packages_copy) | **POST** /packages/{owner}/{repo}/{identifier}/copy/ | Copy a package to another repository. [**packages_delete**](PackagesApi.md#packages_delete) | **DELETE** /packages/{owner}/{repo}/{identifier}/ | Delete a specific package in a repository. [**packages_dependencies**](PackagesApi.md#packages_dependencies) | **GET** /packages/{owner}/{repo}/{identifier}/dependencies/ | Get the list of dependencies for a package. Transitive dependencies are included where supported. +[**packages_groups_list**](PackagesApi.md#packages_groups_list) | **GET** /packages/{owner}/{repo}/groups/ | Return a list of Package Groups in a repository. [**packages_list**](PackagesApi.md#packages_list) | **GET** /packages/{owner}/{repo}/ | Get a list of all packages associated with repository. [**packages_move**](PackagesApi.md#packages_move) | **POST** /packages/{owner}/{repo}/{identifier}/move/ | Move a package to another repository. [**packages_quarantine**](PackagesApi.md#packages_quarantine) | **POST** /packages/{owner}/{repo}/{identifier}/quarantine/ | Quarantine or release a package. @@ -254,6 +255,76 @@ 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) +# **packages_groups_list** +> InlineResponse200 packages_groups_list(owner, repo, page=page, page_size=page_size, group_by=group_by, query=query, sort=sort) + +Return a list of Package Groups in a repository. + +Return a list of Package Groups in a repository. + +### Example +```python +from __future__ import print_function +import time +import cloudsmith_api +from cloudsmith_api.rest import ApiException +from pprint import pprint + +# Configure API key authorization: apikey +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 +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# Configure HTTP basic authorization: basic +configuration = cloudsmith_api.Configuration() +configuration.username = 'YOUR_USERNAME' +configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +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) +page_size = 56 # int | Number of results to return per page. (optional) +group_by = 'name' # str | A field to group packages by. Available options: name, backend_kind. (optional) (default to name) +query = '' # str | A search term for querying names, filenames, versions, distributions, architectures, formats, or statuses of packages. (optional) (default to ) +sort = 'name' # str | A field for sorting objects in ascending or descending order. Use `-` prefix for descending order (e.g., `-name`). Available options: name, count, num_downloads, size, last_push, backend_kind. (optional) (default to name) + +try: + # Return a list of Package Groups in a repository. + api_response = api_instance.packages_groups_list(owner, repo, page=page, page_size=page_size, group_by=group_by, query=query, sort=sort) + pprint(api_response) +except ApiException as e: + print("Exception when calling PackagesApi->packages_groups_list: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **str**| | + **repo** | **str**| | + **page** | **int**| A page number within the paginated result set. | [optional] + **page_size** | **int**| Number of results to return per page. | [optional] + **group_by** | **str**| A field to group packages by. Available options: name, backend_kind. | [optional] [default to name] + **query** | **str**| A search term for querying names, filenames, versions, distributions, architectures, formats, or statuses of packages. | [optional] [default to ] + **sort** | **str**| A field for sorting objects in ascending or descending order. Use `-` prefix for descending order (e.g., `-name`). Available options: name, count, num_downloads, size, last_push, backend_kind. | [optional] [default to name] + +### Return type + +[**InlineResponse200**](InlineResponse200.md) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **packages_list** > list[Package] packages_list(owner, repo, page=page, page_size=page_size, query=query, sort=sort) diff --git a/bindings/python/src/docs/ReposApi.md b/bindings/python/src/docs/ReposApi.md index be44fa0e..8bdf7338 100644 --- a/bindings/python/src/docs/ReposApi.md +++ b/bindings/python/src/docs/ReposApi.md @@ -31,6 +31,12 @@ Method | HTTP request | Description [**repos_rsa_list**](ReposApi.md#repos_rsa_list) | **GET** /repos/{owner}/{identifier}/rsa/ | Retrieve the active RSA key for the Repository. [**repos_rsa_regenerate**](ReposApi.md#repos_rsa_regenerate) | **POST** /repos/{owner}/{identifier}/rsa/regenerate/ | Regenerate RSA Key for the Repository. [**repos_transfer_region**](ReposApi.md#repos_transfer_region) | **POST** /repos/{owner}/{repo}/transfer-region/ | Transfer a repository to a different region. +[**repos_upstream_cargo_create**](ReposApi.md#repos_upstream_cargo_create) | **POST** /repos/{owner}/{identifier}/upstream/cargo/ | Create a Cargo upstream config for this repository. +[**repos_upstream_cargo_delete**](ReposApi.md#repos_upstream_cargo_delete) | **DELETE** /repos/{owner}/{identifier}/upstream/cargo/{slug_perm}/ | Delete a Cargo upstream config for this repository. +[**repos_upstream_cargo_list**](ReposApi.md#repos_upstream_cargo_list) | **GET** /repos/{owner}/{identifier}/upstream/cargo/ | List Cargo upstream configs for this repository. +[**repos_upstream_cargo_partial_update**](ReposApi.md#repos_upstream_cargo_partial_update) | **PATCH** /repos/{owner}/{identifier}/upstream/cargo/{slug_perm}/ | Partially update a Cargo upstream config for this repository. +[**repos_upstream_cargo_read**](ReposApi.md#repos_upstream_cargo_read) | **GET** /repos/{owner}/{identifier}/upstream/cargo/{slug_perm}/ | Retrieve a Cargo upstream config for this repository. +[**repos_upstream_cargo_update**](ReposApi.md#repos_upstream_cargo_update) | **PUT** /repos/{owner}/{identifier}/upstream/cargo/{slug_perm}/ | Update a Cargo upstream config for this repository. [**repos_upstream_composer_create**](ReposApi.md#repos_upstream_composer_create) | **POST** /repos/{owner}/{identifier}/upstream/composer/ | Create a Composer upstream config for this repository. [**repos_upstream_composer_delete**](ReposApi.md#repos_upstream_composer_delete) | **DELETE** /repos/{owner}/{identifier}/upstream/composer/{slug_perm}/ | Delete a Composer upstream config for this repository. [**repos_upstream_composer_list**](ReposApi.md#repos_upstream_composer_list) | **GET** /repos/{owner}/{identifier}/upstream/composer/ | List Composer upstream configs for this repository. @@ -61,6 +67,12 @@ Method | HTTP request | Description [**repos_upstream_docker_partial_update**](ReposApi.md#repos_upstream_docker_partial_update) | **PATCH** /repos/{owner}/{identifier}/upstream/docker/{slug_perm}/ | Partially update a Docker upstream config for this repository. [**repos_upstream_docker_read**](ReposApi.md#repos_upstream_docker_read) | **GET** /repos/{owner}/{identifier}/upstream/docker/{slug_perm}/ | Retrieve a Docker upstream config for this repository. [**repos_upstream_docker_update**](ReposApi.md#repos_upstream_docker_update) | **PUT** /repos/{owner}/{identifier}/upstream/docker/{slug_perm}/ | Update a Docker upstream config for this repository. +[**repos_upstream_go_create**](ReposApi.md#repos_upstream_go_create) | **POST** /repos/{owner}/{identifier}/upstream/go/ | Create a Go upstream config for this repository. +[**repos_upstream_go_delete**](ReposApi.md#repos_upstream_go_delete) | **DELETE** /repos/{owner}/{identifier}/upstream/go/{slug_perm}/ | Delete a Go upstream config for this repository. +[**repos_upstream_go_list**](ReposApi.md#repos_upstream_go_list) | **GET** /repos/{owner}/{identifier}/upstream/go/ | List Go upstream configs for this repository. +[**repos_upstream_go_partial_update**](ReposApi.md#repos_upstream_go_partial_update) | **PATCH** /repos/{owner}/{identifier}/upstream/go/{slug_perm}/ | Partially update a Go upstream config for this repository. +[**repos_upstream_go_read**](ReposApi.md#repos_upstream_go_read) | **GET** /repos/{owner}/{identifier}/upstream/go/{slug_perm}/ | Retrieve a Go upstream config for this repository. +[**repos_upstream_go_update**](ReposApi.md#repos_upstream_go_update) | **PUT** /repos/{owner}/{identifier}/upstream/go/{slug_perm}/ | Update a Go upstream config for this repository. [**repos_upstream_helm_create**](ReposApi.md#repos_upstream_helm_create) | **POST** /repos/{owner}/{identifier}/upstream/helm/ | Create a Helm upstream config for this repository. [**repos_upstream_helm_delete**](ReposApi.md#repos_upstream_helm_delete) | **DELETE** /repos/{owner}/{identifier}/upstream/helm/{slug_perm}/ | Delete a Helm upstream config for this repository. [**repos_upstream_helm_list**](ReposApi.md#repos_upstream_helm_list) | **GET** /repos/{owner}/{identifier}/upstream/helm/ | List Helm upstream configs for this repository. @@ -1766,12 +1778,12 @@ 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) -# **repos_upstream_composer_create** -> ComposerUpstream repos_upstream_composer_create(owner, identifier, data=data) +# **repos_upstream_cargo_create** +> CargoUpstream repos_upstream_cargo_create(owner, identifier, data=data) -Create a Composer upstream config for this repository. +Create a Cargo upstream config for this repository. -Create a Composer upstream config for this repository. +Create a Cargo upstream config for this repository. ### Example ```python @@ -1795,14 +1807,14 @@ configuration.password = 'YOUR_PASSWORD' api_instance = cloudsmith_api.ReposApi(cloudsmith_api.ApiClient(configuration)) owner = 'owner_example' # str | identifier = 'identifier_example' # str | -data = cloudsmith_api.ComposerUpstreamRequest() # ComposerUpstreamRequest | (optional) +data = cloudsmith_api.CargoUpstreamRequest() # CargoUpstreamRequest | (optional) try: - # Create a Composer upstream config for this repository. - api_response = api_instance.repos_upstream_composer_create(owner, identifier, data=data) + # Create a Cargo upstream config for this repository. + api_response = api_instance.repos_upstream_cargo_create(owner, identifier, data=data) pprint(api_response) except ApiException as e: - print("Exception when calling ReposApi->repos_upstream_composer_create: %s\n" % e) + print("Exception when calling ReposApi->repos_upstream_cargo_create: %s\n" % e) ``` ### Parameters @@ -1811,11 +1823,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **owner** | **str**| | **identifier** | **str**| | - **data** | [**ComposerUpstreamRequest**](ComposerUpstreamRequest.md)| | [optional] + **data** | [**CargoUpstreamRequest**](CargoUpstreamRequest.md)| | [optional] ### Return type -[**ComposerUpstream**](ComposerUpstream.md) +[**CargoUpstream**](CargoUpstream.md) ### Authorization @@ -1828,12 +1840,12 @@ 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) -# **repos_upstream_composer_delete** -> repos_upstream_composer_delete(owner, identifier, slug_perm) +# **repos_upstream_cargo_delete** +> repos_upstream_cargo_delete(owner, identifier, slug_perm) -Delete a Composer upstream config for this repository. +Delete a Cargo upstream config for this repository. -Delete a Composer upstream config for this repository. +Delete a Cargo upstream config for this repository. ### Example ```python @@ -1860,10 +1872,10 @@ identifier = 'identifier_example' # str | slug_perm = 'slug_perm_example' # str | try: - # Delete a Composer upstream config for this repository. - api_instance.repos_upstream_composer_delete(owner, identifier, slug_perm) + # Delete a Cargo upstream config for this repository. + api_instance.repos_upstream_cargo_delete(owner, identifier, slug_perm) except ApiException as e: - print("Exception when calling ReposApi->repos_upstream_composer_delete: %s\n" % e) + print("Exception when calling ReposApi->repos_upstream_cargo_delete: %s\n" % e) ``` ### Parameters @@ -1889,12 +1901,12 @@ 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) -# **repos_upstream_composer_list** -> list[ComposerUpstream] repos_upstream_composer_list(owner, identifier, page=page, page_size=page_size) +# **repos_upstream_cargo_list** +> list[CargoUpstream] repos_upstream_cargo_list(owner, identifier, page=page, page_size=page_size) -List Composer upstream configs for this repository. +List Cargo upstream configs for this repository. -List Composer upstream configs for this repository. +List Cargo upstream configs for this repository. ### Example ```python @@ -1922,11 +1934,11 @@ 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: - # List Composer upstream configs for this repository. - api_response = api_instance.repos_upstream_composer_list(owner, identifier, page=page, page_size=page_size) + # List Cargo upstream configs for this repository. + api_response = api_instance.repos_upstream_cargo_list(owner, identifier, page=page, page_size=page_size) pprint(api_response) except ApiException as e: - print("Exception when calling ReposApi->repos_upstream_composer_list: %s\n" % e) + print("Exception when calling ReposApi->repos_upstream_cargo_list: %s\n" % e) ``` ### Parameters @@ -1940,7 +1952,7 @@ Name | Type | Description | Notes ### Return type -[**list[ComposerUpstream]**](ComposerUpstream.md) +[**list[CargoUpstream]**](CargoUpstream.md) ### Authorization @@ -1953,12 +1965,12 @@ 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) -# **repos_upstream_composer_partial_update** -> ComposerUpstream repos_upstream_composer_partial_update(owner, identifier, slug_perm, data=data) +# **repos_upstream_cargo_partial_update** +> CargoUpstream repos_upstream_cargo_partial_update(owner, identifier, slug_perm, data=data) -Partially update a Composer upstream config for this repository. +Partially update a Cargo upstream config for this repository. -Partially update a Composer upstream config for this repository. +Partially update a Cargo upstream config for this repository. ### Example ```python @@ -1983,14 +1995,14 @@ api_instance = cloudsmith_api.ReposApi(cloudsmith_api.ApiClient(configuration)) owner = 'owner_example' # str | identifier = 'identifier_example' # str | slug_perm = 'slug_perm_example' # str | -data = cloudsmith_api.ComposerUpstreamRequestPatch() # ComposerUpstreamRequestPatch | (optional) +data = cloudsmith_api.CargoUpstreamRequestPatch() # CargoUpstreamRequestPatch | (optional) try: - # Partially update a Composer upstream config for this repository. - api_response = api_instance.repos_upstream_composer_partial_update(owner, identifier, slug_perm, data=data) + # Partially update a Cargo upstream config for this repository. + api_response = api_instance.repos_upstream_cargo_partial_update(owner, identifier, slug_perm, data=data) pprint(api_response) except ApiException as e: - print("Exception when calling ReposApi->repos_upstream_composer_partial_update: %s\n" % e) + print("Exception when calling ReposApi->repos_upstream_cargo_partial_update: %s\n" % e) ``` ### Parameters @@ -2000,11 +2012,11 @@ Name | Type | Description | Notes **owner** | **str**| | **identifier** | **str**| | **slug_perm** | **str**| | - **data** | [**ComposerUpstreamRequestPatch**](ComposerUpstreamRequestPatch.md)| | [optional] + **data** | [**CargoUpstreamRequestPatch**](CargoUpstreamRequestPatch.md)| | [optional] ### Return type -[**ComposerUpstream**](ComposerUpstream.md) +[**CargoUpstream**](CargoUpstream.md) ### Authorization @@ -2017,12 +2029,12 @@ 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) -# **repos_upstream_composer_read** -> ComposerUpstream repos_upstream_composer_read(owner, identifier, slug_perm) +# **repos_upstream_cargo_read** +> CargoUpstream repos_upstream_cargo_read(owner, identifier, slug_perm) -Retrieve a Composer upstream config for this repository. +Retrieve a Cargo upstream config for this repository. -Retrieve a Composer upstream config for this repository. +Retrieve a Cargo upstream config for this repository. ### Example ```python @@ -2049,11 +2061,11 @@ identifier = 'identifier_example' # str | slug_perm = 'slug_perm_example' # str | try: - # Retrieve a Composer upstream config for this repository. - api_response = api_instance.repos_upstream_composer_read(owner, identifier, slug_perm) + # Retrieve a Cargo upstream config for this repository. + api_response = api_instance.repos_upstream_cargo_read(owner, identifier, slug_perm) pprint(api_response) except ApiException as e: - print("Exception when calling ReposApi->repos_upstream_composer_read: %s\n" % e) + print("Exception when calling ReposApi->repos_upstream_cargo_read: %s\n" % e) ``` ### Parameters @@ -2066,7 +2078,7 @@ Name | Type | Description | Notes ### Return type -[**ComposerUpstream**](ComposerUpstream.md) +[**CargoUpstream**](CargoUpstream.md) ### Authorization @@ -2079,12 +2091,12 @@ 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) -# **repos_upstream_composer_update** -> ComposerUpstream repos_upstream_composer_update(owner, identifier, slug_perm, data=data) +# **repos_upstream_cargo_update** +> CargoUpstream repos_upstream_cargo_update(owner, identifier, slug_perm, data=data) -Update a Composer upstream config for this repository. +Update a Cargo upstream config for this repository. -Update a Composer upstream config for this repository. +Update a Cargo upstream config for this repository. ### Example ```python @@ -2109,14 +2121,14 @@ api_instance = cloudsmith_api.ReposApi(cloudsmith_api.ApiClient(configuration)) owner = 'owner_example' # str | identifier = 'identifier_example' # str | slug_perm = 'slug_perm_example' # str | -data = cloudsmith_api.ComposerUpstreamRequest() # ComposerUpstreamRequest | (optional) +data = cloudsmith_api.CargoUpstreamRequest() # CargoUpstreamRequest | (optional) try: - # Update a Composer upstream config for this repository. - api_response = api_instance.repos_upstream_composer_update(owner, identifier, slug_perm, data=data) + # Update a Cargo upstream config for this repository. + api_response = api_instance.repos_upstream_cargo_update(owner, identifier, slug_perm, data=data) pprint(api_response) except ApiException as e: - print("Exception when calling ReposApi->repos_upstream_composer_update: %s\n" % e) + print("Exception when calling ReposApi->repos_upstream_cargo_update: %s\n" % e) ``` ### Parameters @@ -2126,11 +2138,11 @@ Name | Type | Description | Notes **owner** | **str**| | **identifier** | **str**| | **slug_perm** | **str**| | - **data** | [**ComposerUpstreamRequest**](ComposerUpstreamRequest.md)| | [optional] + **data** | [**CargoUpstreamRequest**](CargoUpstreamRequest.md)| | [optional] ### Return type -[**ComposerUpstream**](ComposerUpstream.md) +[**CargoUpstream**](CargoUpstream.md) ### Authorization @@ -2143,12 +2155,12 @@ 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) -# **repos_upstream_cran_create** -> CranUpstream repos_upstream_cran_create(owner, identifier, data=data) +# **repos_upstream_composer_create** +> ComposerUpstream repos_upstream_composer_create(owner, identifier, data=data) -Create a CRAN upstream config for this repository. +Create a Composer upstream config for this repository. -Create a CRAN upstream config for this repository. +Create a Composer upstream config for this repository. ### Example ```python @@ -2172,14 +2184,14 @@ configuration.password = 'YOUR_PASSWORD' api_instance = cloudsmith_api.ReposApi(cloudsmith_api.ApiClient(configuration)) owner = 'owner_example' # str | identifier = 'identifier_example' # str | -data = cloudsmith_api.CranUpstreamRequest() # CranUpstreamRequest | (optional) +data = cloudsmith_api.ComposerUpstreamRequest() # ComposerUpstreamRequest | (optional) try: - # Create a CRAN upstream config for this repository. - api_response = api_instance.repos_upstream_cran_create(owner, identifier, data=data) + # Create a Composer upstream config for this repository. + api_response = api_instance.repos_upstream_composer_create(owner, identifier, data=data) pprint(api_response) except ApiException as e: - print("Exception when calling ReposApi->repos_upstream_cran_create: %s\n" % e) + print("Exception when calling ReposApi->repos_upstream_composer_create: %s\n" % e) ``` ### Parameters @@ -2188,11 +2200,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **owner** | **str**| | **identifier** | **str**| | - **data** | [**CranUpstreamRequest**](CranUpstreamRequest.md)| | [optional] + **data** | [**ComposerUpstreamRequest**](ComposerUpstreamRequest.md)| | [optional] ### Return type -[**CranUpstream**](CranUpstream.md) +[**ComposerUpstream**](ComposerUpstream.md) ### Authorization @@ -2205,12 +2217,12 @@ 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) -# **repos_upstream_cran_delete** -> repos_upstream_cran_delete(owner, identifier, slug_perm) +# **repos_upstream_composer_delete** +> repos_upstream_composer_delete(owner, identifier, slug_perm) -Delete a CRAN upstream config for this repository. +Delete a Composer upstream config for this repository. -Delete a CRAN upstream config for this repository. +Delete a Composer upstream config for this repository. ### Example ```python @@ -2237,10 +2249,10 @@ identifier = 'identifier_example' # str | slug_perm = 'slug_perm_example' # str | try: - # Delete a CRAN upstream config for this repository. - api_instance.repos_upstream_cran_delete(owner, identifier, slug_perm) + # Delete a Composer upstream config for this repository. + api_instance.repos_upstream_composer_delete(owner, identifier, slug_perm) except ApiException as e: - print("Exception when calling ReposApi->repos_upstream_cran_delete: %s\n" % e) + print("Exception when calling ReposApi->repos_upstream_composer_delete: %s\n" % e) ``` ### Parameters @@ -2266,12 +2278,12 @@ 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) -# **repos_upstream_cran_list** -> list[CranUpstream] repos_upstream_cran_list(owner, identifier, page=page, page_size=page_size) +# **repos_upstream_composer_list** +> list[ComposerUpstream] repos_upstream_composer_list(owner, identifier, page=page, page_size=page_size) -List CRAN upstream configs for this repository. +List Composer upstream configs for this repository. -List CRAN upstream configs for this repository. +List Composer upstream configs for this repository. ### Example ```python @@ -2299,11 +2311,11 @@ 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: - # List CRAN upstream configs for this repository. - api_response = api_instance.repos_upstream_cran_list(owner, identifier, page=page, page_size=page_size) + # List Composer upstream configs for this repository. + api_response = api_instance.repos_upstream_composer_list(owner, identifier, page=page, page_size=page_size) pprint(api_response) except ApiException as e: - print("Exception when calling ReposApi->repos_upstream_cran_list: %s\n" % e) + print("Exception when calling ReposApi->repos_upstream_composer_list: %s\n" % e) ``` ### Parameters @@ -2317,7 +2329,7 @@ Name | Type | Description | Notes ### Return type -[**list[CranUpstream]**](CranUpstream.md) +[**list[ComposerUpstream]**](ComposerUpstream.md) ### Authorization @@ -2330,12 +2342,12 @@ 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) -# **repos_upstream_cran_partial_update** -> CranUpstream repos_upstream_cran_partial_update(owner, identifier, slug_perm, data=data) +# **repos_upstream_composer_partial_update** +> ComposerUpstream repos_upstream_composer_partial_update(owner, identifier, slug_perm, data=data) -Partially update a CRAN upstream config for this repository. +Partially update a Composer upstream config for this repository. -Partially update a CRAN upstream config for this repository. +Partially update a Composer upstream config for this repository. ### Example ```python @@ -2360,14 +2372,14 @@ api_instance = cloudsmith_api.ReposApi(cloudsmith_api.ApiClient(configuration)) owner = 'owner_example' # str | identifier = 'identifier_example' # str | slug_perm = 'slug_perm_example' # str | -data = cloudsmith_api.CranUpstreamRequestPatch() # CranUpstreamRequestPatch | (optional) +data = cloudsmith_api.ComposerUpstreamRequestPatch() # ComposerUpstreamRequestPatch | (optional) try: - # Partially update a CRAN upstream config for this repository. - api_response = api_instance.repos_upstream_cran_partial_update(owner, identifier, slug_perm, data=data) + # Partially update a Composer upstream config for this repository. + api_response = api_instance.repos_upstream_composer_partial_update(owner, identifier, slug_perm, data=data) pprint(api_response) except ApiException as e: - print("Exception when calling ReposApi->repos_upstream_cran_partial_update: %s\n" % e) + print("Exception when calling ReposApi->repos_upstream_composer_partial_update: %s\n" % e) ``` ### Parameters @@ -2377,11 +2389,11 @@ Name | Type | Description | Notes **owner** | **str**| | **identifier** | **str**| | **slug_perm** | **str**| | - **data** | [**CranUpstreamRequestPatch**](CranUpstreamRequestPatch.md)| | [optional] + **data** | [**ComposerUpstreamRequestPatch**](ComposerUpstreamRequestPatch.md)| | [optional] ### Return type -[**CranUpstream**](CranUpstream.md) +[**ComposerUpstream**](ComposerUpstream.md) ### Authorization @@ -2394,12 +2406,12 @@ 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) -# **repos_upstream_cran_read** -> CranUpstream repos_upstream_cran_read(owner, identifier, slug_perm) +# **repos_upstream_composer_read** +> ComposerUpstream repos_upstream_composer_read(owner, identifier, slug_perm) -Retrieve a CRAN upstream config for this repository. +Retrieve a Composer upstream config for this repository. -Retrieve a CRAN upstream config for this repository. +Retrieve a Composer upstream config for this repository. ### Example ```python @@ -2426,11 +2438,11 @@ identifier = 'identifier_example' # str | slug_perm = 'slug_perm_example' # str | try: - # Retrieve a CRAN upstream config for this repository. - api_response = api_instance.repos_upstream_cran_read(owner, identifier, slug_perm) + # Retrieve a Composer upstream config for this repository. + api_response = api_instance.repos_upstream_composer_read(owner, identifier, slug_perm) pprint(api_response) except ApiException as e: - print("Exception when calling ReposApi->repos_upstream_cran_read: %s\n" % e) + print("Exception when calling ReposApi->repos_upstream_composer_read: %s\n" % e) ``` ### Parameters @@ -2443,7 +2455,7 @@ Name | Type | Description | Notes ### Return type -[**CranUpstream**](CranUpstream.md) +[**ComposerUpstream**](ComposerUpstream.md) ### Authorization @@ -2456,12 +2468,12 @@ 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) -# **repos_upstream_cran_update** -> CranUpstream repos_upstream_cran_update(owner, identifier, slug_perm, data=data) +# **repos_upstream_composer_update** +> ComposerUpstream repos_upstream_composer_update(owner, identifier, slug_perm, data=data) -Update a CRAN upstream config for this repository. +Update a Composer upstream config for this repository. -Update a CRAN upstream config for this repository. +Update a Composer upstream config for this repository. ### Example ```python @@ -2486,14 +2498,14 @@ api_instance = cloudsmith_api.ReposApi(cloudsmith_api.ApiClient(configuration)) owner = 'owner_example' # str | identifier = 'identifier_example' # str | slug_perm = 'slug_perm_example' # str | -data = cloudsmith_api.CranUpstreamRequest() # CranUpstreamRequest | (optional) +data = cloudsmith_api.ComposerUpstreamRequest() # ComposerUpstreamRequest | (optional) try: - # Update a CRAN upstream config for this repository. - api_response = api_instance.repos_upstream_cran_update(owner, identifier, slug_perm, data=data) + # Update a Composer upstream config for this repository. + api_response = api_instance.repos_upstream_composer_update(owner, identifier, slug_perm, data=data) pprint(api_response) except ApiException as e: - print("Exception when calling ReposApi->repos_upstream_cran_update: %s\n" % e) + print("Exception when calling ReposApi->repos_upstream_composer_update: %s\n" % e) ``` ### Parameters @@ -2503,11 +2515,11 @@ Name | Type | Description | Notes **owner** | **str**| | **identifier** | **str**| | **slug_perm** | **str**| | - **data** | [**CranUpstreamRequest**](CranUpstreamRequest.md)| | [optional] + **data** | [**ComposerUpstreamRequest**](ComposerUpstreamRequest.md)| | [optional] ### Return type -[**CranUpstream**](CranUpstream.md) +[**ComposerUpstream**](ComposerUpstream.md) ### Authorization @@ -2520,12 +2532,12 @@ 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) -# **repos_upstream_dart_create** -> DartUpstream repos_upstream_dart_create(owner, identifier, data=data) +# **repos_upstream_cran_create** +> CranUpstream repos_upstream_cran_create(owner, identifier, data=data) -Create a Dart upstream config for this repository. +Create a CRAN upstream config for this repository. -Create a Dart upstream config for this repository. +Create a CRAN upstream config for this repository. ### Example ```python @@ -2549,14 +2561,14 @@ configuration.password = 'YOUR_PASSWORD' api_instance = cloudsmith_api.ReposApi(cloudsmith_api.ApiClient(configuration)) owner = 'owner_example' # str | identifier = 'identifier_example' # str | -data = cloudsmith_api.DartUpstreamRequest() # DartUpstreamRequest | (optional) +data = cloudsmith_api.CranUpstreamRequest() # CranUpstreamRequest | (optional) try: - # Create a Dart upstream config for this repository. - api_response = api_instance.repos_upstream_dart_create(owner, identifier, data=data) + # Create a CRAN upstream config for this repository. + api_response = api_instance.repos_upstream_cran_create(owner, identifier, data=data) pprint(api_response) except ApiException as e: - print("Exception when calling ReposApi->repos_upstream_dart_create: %s\n" % e) + print("Exception when calling ReposApi->repos_upstream_cran_create: %s\n" % e) ``` ### Parameters @@ -2565,11 +2577,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **owner** | **str**| | **identifier** | **str**| | - **data** | [**DartUpstreamRequest**](DartUpstreamRequest.md)| | [optional] + **data** | [**CranUpstreamRequest**](CranUpstreamRequest.md)| | [optional] ### Return type -[**DartUpstream**](DartUpstream.md) +[**CranUpstream**](CranUpstream.md) ### Authorization @@ -2582,12 +2594,12 @@ 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) -# **repos_upstream_dart_delete** -> repos_upstream_dart_delete(owner, identifier, slug_perm) +# **repos_upstream_cran_delete** +> repos_upstream_cran_delete(owner, identifier, slug_perm) -Delete a Dart upstream config for this repository. +Delete a CRAN upstream config for this repository. -Delete a Dart upstream config for this repository. +Delete a CRAN upstream config for this repository. ### Example ```python @@ -2614,10 +2626,10 @@ identifier = 'identifier_example' # str | slug_perm = 'slug_perm_example' # str | try: - # Delete a Dart upstream config for this repository. - api_instance.repos_upstream_dart_delete(owner, identifier, slug_perm) + # Delete a CRAN upstream config for this repository. + api_instance.repos_upstream_cran_delete(owner, identifier, slug_perm) except ApiException as e: - print("Exception when calling ReposApi->repos_upstream_dart_delete: %s\n" % e) + print("Exception when calling ReposApi->repos_upstream_cran_delete: %s\n" % e) ``` ### Parameters @@ -2643,12 +2655,12 @@ 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) -# **repos_upstream_dart_list** -> list[DartUpstream] repos_upstream_dart_list(owner, identifier, page=page, page_size=page_size) +# **repos_upstream_cran_list** +> list[CranUpstream] repos_upstream_cran_list(owner, identifier, page=page, page_size=page_size) -List Dart upstream configs for this repository. +List CRAN upstream configs for this repository. -List Dart upstream configs for this repository. +List CRAN upstream configs for this repository. ### Example ```python @@ -2676,11 +2688,11 @@ 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: - # List Dart upstream configs for this repository. - api_response = api_instance.repos_upstream_dart_list(owner, identifier, page=page, page_size=page_size) + # List CRAN upstream configs for this repository. + api_response = api_instance.repos_upstream_cran_list(owner, identifier, page=page, page_size=page_size) pprint(api_response) except ApiException as e: - print("Exception when calling ReposApi->repos_upstream_dart_list: %s\n" % e) + print("Exception when calling ReposApi->repos_upstream_cran_list: %s\n" % e) ``` ### Parameters @@ -2694,7 +2706,7 @@ Name | Type | Description | Notes ### Return type -[**list[DartUpstream]**](DartUpstream.md) +[**list[CranUpstream]**](CranUpstream.md) ### Authorization @@ -2707,12 +2719,12 @@ 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) -# **repos_upstream_dart_partial_update** -> DartUpstream repos_upstream_dart_partial_update(owner, identifier, slug_perm, data=data) +# **repos_upstream_cran_partial_update** +> CranUpstream repos_upstream_cran_partial_update(owner, identifier, slug_perm, data=data) -Partially update a Dart upstream config for this repository. +Partially update a CRAN upstream config for this repository. -Partially update a Dart upstream config for this repository. +Partially update a CRAN upstream config for this repository. ### Example ```python @@ -2737,14 +2749,14 @@ api_instance = cloudsmith_api.ReposApi(cloudsmith_api.ApiClient(configuration)) owner = 'owner_example' # str | identifier = 'identifier_example' # str | slug_perm = 'slug_perm_example' # str | -data = cloudsmith_api.DartUpstreamRequestPatch() # DartUpstreamRequestPatch | (optional) +data = cloudsmith_api.CranUpstreamRequestPatch() # CranUpstreamRequestPatch | (optional) try: - # Partially update a Dart upstream config for this repository. - api_response = api_instance.repos_upstream_dart_partial_update(owner, identifier, slug_perm, data=data) + # Partially update a CRAN upstream config for this repository. + api_response = api_instance.repos_upstream_cran_partial_update(owner, identifier, slug_perm, data=data) pprint(api_response) except ApiException as e: - print("Exception when calling ReposApi->repos_upstream_dart_partial_update: %s\n" % e) + print("Exception when calling ReposApi->repos_upstream_cran_partial_update: %s\n" % e) ``` ### Parameters @@ -2754,11 +2766,11 @@ Name | Type | Description | Notes **owner** | **str**| | **identifier** | **str**| | **slug_perm** | **str**| | - **data** | [**DartUpstreamRequestPatch**](DartUpstreamRequestPatch.md)| | [optional] + **data** | [**CranUpstreamRequestPatch**](CranUpstreamRequestPatch.md)| | [optional] ### Return type -[**DartUpstream**](DartUpstream.md) +[**CranUpstream**](CranUpstream.md) ### Authorization @@ -2771,12 +2783,12 @@ 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) -# **repos_upstream_dart_read** -> DartUpstream repos_upstream_dart_read(owner, identifier, slug_perm) +# **repos_upstream_cran_read** +> CranUpstream repos_upstream_cran_read(owner, identifier, slug_perm) -Retrieve a Dart upstream config for this repository. +Retrieve a CRAN upstream config for this repository. -Retrieve a Dart upstream config for this repository. +Retrieve a CRAN upstream config for this repository. ### Example ```python @@ -2803,11 +2815,11 @@ identifier = 'identifier_example' # str | slug_perm = 'slug_perm_example' # str | try: - # Retrieve a Dart upstream config for this repository. - api_response = api_instance.repos_upstream_dart_read(owner, identifier, slug_perm) + # Retrieve a CRAN upstream config for this repository. + api_response = api_instance.repos_upstream_cran_read(owner, identifier, slug_perm) pprint(api_response) except ApiException as e: - print("Exception when calling ReposApi->repos_upstream_dart_read: %s\n" % e) + print("Exception when calling ReposApi->repos_upstream_cran_read: %s\n" % e) ``` ### Parameters @@ -2820,7 +2832,7 @@ Name | Type | Description | Notes ### Return type -[**DartUpstream**](DartUpstream.md) +[**CranUpstream**](CranUpstream.md) ### Authorization @@ -2833,12 +2845,12 @@ 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) -# **repos_upstream_dart_update** -> DartUpstream repos_upstream_dart_update(owner, identifier, slug_perm, data=data) +# **repos_upstream_cran_update** +> CranUpstream repos_upstream_cran_update(owner, identifier, slug_perm, data=data) -Update a Dart upstream config for this repository. +Update a CRAN upstream config for this repository. -Update a Dart upstream config for this repository. +Update a CRAN upstream config for this repository. ### Example ```python @@ -2863,14 +2875,705 @@ api_instance = cloudsmith_api.ReposApi(cloudsmith_api.ApiClient(configuration)) owner = 'owner_example' # str | identifier = 'identifier_example' # str | slug_perm = 'slug_perm_example' # str | -data = cloudsmith_api.DartUpstreamRequest() # DartUpstreamRequest | (optional) +data = cloudsmith_api.CranUpstreamRequest() # CranUpstreamRequest | (optional) try: - # Update a Dart upstream config for this repository. + # Update a CRAN upstream config for this repository. + api_response = api_instance.repos_upstream_cran_update(owner, identifier, slug_perm, data=data) + pprint(api_response) +except ApiException as e: + print("Exception when calling ReposApi->repos_upstream_cran_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **str**| | + **identifier** | **str**| | + **slug_perm** | **str**| | + **data** | [**CranUpstreamRequest**](CranUpstreamRequest.md)| | [optional] + +### Return type + +[**CranUpstream**](CranUpstream.md) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **repos_upstream_dart_create** +> DartUpstream repos_upstream_dart_create(owner, identifier, data=data) + +Create a Dart upstream config for this repository. + +Create a Dart upstream config for this repository. + +### Example +```python +from __future__ import print_function +import time +import cloudsmith_api +from cloudsmith_api.rest import ApiException +from pprint import pprint + +# Configure API key authorization: apikey +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 +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# Configure HTTP basic authorization: basic +configuration = cloudsmith_api.Configuration() +configuration.username = 'YOUR_USERNAME' +configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = cloudsmith_api.ReposApi(cloudsmith_api.ApiClient(configuration)) +owner = 'owner_example' # str | +identifier = 'identifier_example' # str | +data = cloudsmith_api.DartUpstreamRequest() # DartUpstreamRequest | (optional) + +try: + # Create a Dart upstream config for this repository. + api_response = api_instance.repos_upstream_dart_create(owner, identifier, data=data) + pprint(api_response) +except ApiException as e: + print("Exception when calling ReposApi->repos_upstream_dart_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **str**| | + **identifier** | **str**| | + **data** | [**DartUpstreamRequest**](DartUpstreamRequest.md)| | [optional] + +### Return type + +[**DartUpstream**](DartUpstream.md) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **repos_upstream_dart_delete** +> repos_upstream_dart_delete(owner, identifier, slug_perm) + +Delete a Dart upstream config for this repository. + +Delete a Dart upstream config for this repository. + +### Example +```python +from __future__ import print_function +import time +import cloudsmith_api +from cloudsmith_api.rest import ApiException +from pprint import pprint + +# Configure API key authorization: apikey +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 +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# Configure HTTP basic authorization: basic +configuration = cloudsmith_api.Configuration() +configuration.username = 'YOUR_USERNAME' +configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = cloudsmith_api.ReposApi(cloudsmith_api.ApiClient(configuration)) +owner = 'owner_example' # str | +identifier = 'identifier_example' # str | +slug_perm = 'slug_perm_example' # str | + +try: + # Delete a Dart upstream config for this repository. + api_instance.repos_upstream_dart_delete(owner, identifier, slug_perm) +except ApiException as e: + print("Exception when calling ReposApi->repos_upstream_dart_delete: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **str**| | + **identifier** | **str**| | + **slug_perm** | **str**| | + +### Return type + +void (empty response body) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **repos_upstream_dart_list** +> list[DartUpstream] repos_upstream_dart_list(owner, identifier, page=page, page_size=page_size) + +List Dart upstream configs for this repository. + +List Dart upstream configs for this repository. + +### Example +```python +from __future__ import print_function +import time +import cloudsmith_api +from cloudsmith_api.rest import ApiException +from pprint import pprint + +# Configure API key authorization: apikey +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 +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# Configure HTTP basic authorization: basic +configuration = cloudsmith_api.Configuration() +configuration.username = 'YOUR_USERNAME' +configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = cloudsmith_api.ReposApi(cloudsmith_api.ApiClient(configuration)) +owner = 'owner_example' # str | +identifier = 'identifier_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: + # List Dart upstream configs for this repository. + api_response = api_instance.repos_upstream_dart_list(owner, identifier, page=page, page_size=page_size) + pprint(api_response) +except ApiException as e: + print("Exception when calling ReposApi->repos_upstream_dart_list: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **str**| | + **identifier** | **str**| | + **page** | **int**| A page number within the paginated result set. | [optional] + **page_size** | **int**| Number of results to return per page. | [optional] + +### Return type + +[**list[DartUpstream]**](DartUpstream.md) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **repos_upstream_dart_partial_update** +> DartUpstream repos_upstream_dart_partial_update(owner, identifier, slug_perm, data=data) + +Partially update a Dart upstream config for this repository. + +Partially update a Dart upstream config for this repository. + +### Example +```python +from __future__ import print_function +import time +import cloudsmith_api +from cloudsmith_api.rest import ApiException +from pprint import pprint + +# Configure API key authorization: apikey +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 +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# Configure HTTP basic authorization: basic +configuration = cloudsmith_api.Configuration() +configuration.username = 'YOUR_USERNAME' +configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = cloudsmith_api.ReposApi(cloudsmith_api.ApiClient(configuration)) +owner = 'owner_example' # str | +identifier = 'identifier_example' # str | +slug_perm = 'slug_perm_example' # str | +data = cloudsmith_api.DartUpstreamRequestPatch() # DartUpstreamRequestPatch | (optional) + +try: + # Partially update a Dart upstream config for this repository. + api_response = api_instance.repos_upstream_dart_partial_update(owner, identifier, slug_perm, data=data) + pprint(api_response) +except ApiException as e: + print("Exception when calling ReposApi->repos_upstream_dart_partial_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **str**| | + **identifier** | **str**| | + **slug_perm** | **str**| | + **data** | [**DartUpstreamRequestPatch**](DartUpstreamRequestPatch.md)| | [optional] + +### Return type + +[**DartUpstream**](DartUpstream.md) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **repos_upstream_dart_read** +> DartUpstream repos_upstream_dart_read(owner, identifier, slug_perm) + +Retrieve a Dart upstream config for this repository. + +Retrieve a Dart upstream config for this repository. + +### Example +```python +from __future__ import print_function +import time +import cloudsmith_api +from cloudsmith_api.rest import ApiException +from pprint import pprint + +# Configure API key authorization: apikey +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 +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# Configure HTTP basic authorization: basic +configuration = cloudsmith_api.Configuration() +configuration.username = 'YOUR_USERNAME' +configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = cloudsmith_api.ReposApi(cloudsmith_api.ApiClient(configuration)) +owner = 'owner_example' # str | +identifier = 'identifier_example' # str | +slug_perm = 'slug_perm_example' # str | + +try: + # Retrieve a Dart upstream config for this repository. + api_response = api_instance.repos_upstream_dart_read(owner, identifier, slug_perm) + pprint(api_response) +except ApiException as e: + print("Exception when calling ReposApi->repos_upstream_dart_read: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **str**| | + **identifier** | **str**| | + **slug_perm** | **str**| | + +### Return type + +[**DartUpstream**](DartUpstream.md) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **repos_upstream_dart_update** +> DartUpstream repos_upstream_dart_update(owner, identifier, slug_perm, data=data) + +Update a Dart upstream config for this repository. + +Update a Dart upstream config for this repository. + +### Example +```python +from __future__ import print_function +import time +import cloudsmith_api +from cloudsmith_api.rest import ApiException +from pprint import pprint + +# Configure API key authorization: apikey +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 +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# Configure HTTP basic authorization: basic +configuration = cloudsmith_api.Configuration() +configuration.username = 'YOUR_USERNAME' +configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = cloudsmith_api.ReposApi(cloudsmith_api.ApiClient(configuration)) +owner = 'owner_example' # str | +identifier = 'identifier_example' # str | +slug_perm = 'slug_perm_example' # str | +data = cloudsmith_api.DartUpstreamRequest() # DartUpstreamRequest | (optional) + +try: + # Update a Dart upstream config for this repository. api_response = api_instance.repos_upstream_dart_update(owner, identifier, slug_perm, data=data) pprint(api_response) except ApiException as e: - print("Exception when calling ReposApi->repos_upstream_dart_update: %s\n" % e) + print("Exception when calling ReposApi->repos_upstream_dart_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **str**| | + **identifier** | **str**| | + **slug_perm** | **str**| | + **data** | [**DartUpstreamRequest**](DartUpstreamRequest.md)| | [optional] + +### Return type + +[**DartUpstream**](DartUpstream.md) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **repos_upstream_deb_create** +> DebUpstream repos_upstream_deb_create(owner, identifier, data=data) + +Create a Debian upstream config for this repository. + +Create a Debian upstream config for this repository. + +### Example +```python +from __future__ import print_function +import time +import cloudsmith_api +from cloudsmith_api.rest import ApiException +from pprint import pprint + +# Configure API key authorization: apikey +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 +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# Configure HTTP basic authorization: basic +configuration = cloudsmith_api.Configuration() +configuration.username = 'YOUR_USERNAME' +configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = cloudsmith_api.ReposApi(cloudsmith_api.ApiClient(configuration)) +owner = 'owner_example' # str | +identifier = 'identifier_example' # str | +data = cloudsmith_api.DebUpstreamRequest() # DebUpstreamRequest | (optional) + +try: + # Create a Debian upstream config for this repository. + api_response = api_instance.repos_upstream_deb_create(owner, identifier, data=data) + pprint(api_response) +except ApiException as e: + print("Exception when calling ReposApi->repos_upstream_deb_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **str**| | + **identifier** | **str**| | + **data** | [**DebUpstreamRequest**](DebUpstreamRequest.md)| | [optional] + +### Return type + +[**DebUpstream**](DebUpstream.md) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **repos_upstream_deb_delete** +> repos_upstream_deb_delete(owner, identifier, slug_perm) + +Delete a Debian upstream config for this repository. + +Delete a Debian upstream config for this repository. + +### Example +```python +from __future__ import print_function +import time +import cloudsmith_api +from cloudsmith_api.rest import ApiException +from pprint import pprint + +# Configure API key authorization: apikey +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 +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# Configure HTTP basic authorization: basic +configuration = cloudsmith_api.Configuration() +configuration.username = 'YOUR_USERNAME' +configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = cloudsmith_api.ReposApi(cloudsmith_api.ApiClient(configuration)) +owner = 'owner_example' # str | +identifier = 'identifier_example' # str | +slug_perm = 'slug_perm_example' # str | + +try: + # Delete a Debian upstream config for this repository. + api_instance.repos_upstream_deb_delete(owner, identifier, slug_perm) +except ApiException as e: + print("Exception when calling ReposApi->repos_upstream_deb_delete: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **str**| | + **identifier** | **str**| | + **slug_perm** | **str**| | + +### Return type + +void (empty response body) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **repos_upstream_deb_list** +> list[DebUpstream] repos_upstream_deb_list(owner, identifier, page=page, page_size=page_size) + +List Debian upstream configs for this repository. + +List Debian upstream configs for this repository. + +### Example +```python +from __future__ import print_function +import time +import cloudsmith_api +from cloudsmith_api.rest import ApiException +from pprint import pprint + +# Configure API key authorization: apikey +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 +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# Configure HTTP basic authorization: basic +configuration = cloudsmith_api.Configuration() +configuration.username = 'YOUR_USERNAME' +configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = cloudsmith_api.ReposApi(cloudsmith_api.ApiClient(configuration)) +owner = 'owner_example' # str | +identifier = 'identifier_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: + # List Debian upstream configs for this repository. + api_response = api_instance.repos_upstream_deb_list(owner, identifier, page=page, page_size=page_size) + pprint(api_response) +except ApiException as e: + print("Exception when calling ReposApi->repos_upstream_deb_list: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **str**| | + **identifier** | **str**| | + **page** | **int**| A page number within the paginated result set. | [optional] + **page_size** | **int**| Number of results to return per page. | [optional] + +### Return type + +[**list[DebUpstream]**](DebUpstream.md) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **repos_upstream_deb_partial_update** +> DebUpstream repos_upstream_deb_partial_update(owner, identifier, slug_perm, data=data) + +Partially update a Debian upstream config for this repository. + +Partially update a Debian upstream config for this repository. + +### Example +```python +from __future__ import print_function +import time +import cloudsmith_api +from cloudsmith_api.rest import ApiException +from pprint import pprint + +# Configure API key authorization: apikey +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 +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# Configure HTTP basic authorization: basic +configuration = cloudsmith_api.Configuration() +configuration.username = 'YOUR_USERNAME' +configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = cloudsmith_api.ReposApi(cloudsmith_api.ApiClient(configuration)) +owner = 'owner_example' # str | +identifier = 'identifier_example' # str | +slug_perm = 'slug_perm_example' # str | +data = cloudsmith_api.DebUpstreamRequestPatch() # DebUpstreamRequestPatch | (optional) + +try: + # Partially update a Debian upstream config for this repository. + api_response = api_instance.repos_upstream_deb_partial_update(owner, identifier, slug_perm, data=data) + pprint(api_response) +except ApiException as e: + print("Exception when calling ReposApi->repos_upstream_deb_partial_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **str**| | + **identifier** | **str**| | + **slug_perm** | **str**| | + **data** | [**DebUpstreamRequestPatch**](DebUpstreamRequestPatch.md)| | [optional] + +### Return type + +[**DebUpstream**](DebUpstream.md) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **repos_upstream_deb_read** +> DebUpstream repos_upstream_deb_read(owner, identifier, slug_perm) + +Retrieve a Debian upstream config for this repository. + +Retrieve a Debian upstream config for this repository. + +### Example +```python +from __future__ import print_function +import time +import cloudsmith_api +from cloudsmith_api.rest import ApiException +from pprint import pprint + +# Configure API key authorization: apikey +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 +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# Configure HTTP basic authorization: basic +configuration = cloudsmith_api.Configuration() +configuration.username = 'YOUR_USERNAME' +configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = cloudsmith_api.ReposApi(cloudsmith_api.ApiClient(configuration)) +owner = 'owner_example' # str | +identifier = 'identifier_example' # str | +slug_perm = 'slug_perm_example' # str | + +try: + # Retrieve a Debian upstream config for this repository. + api_response = api_instance.repos_upstream_deb_read(owner, identifier, slug_perm) + pprint(api_response) +except ApiException as e: + print("Exception when calling ReposApi->repos_upstream_deb_read: %s\n" % e) ``` ### Parameters @@ -2880,11 +3583,10 @@ Name | Type | Description | Notes **owner** | **str**| | **identifier** | **str**| | **slug_perm** | **str**| | - **data** | [**DartUpstreamRequest**](DartUpstreamRequest.md)| | [optional] ### Return type -[**DartUpstream**](DartUpstream.md) +[**DebUpstream**](DebUpstream.md) ### Authorization @@ -2897,12 +3599,12 @@ 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) -# **repos_upstream_deb_create** -> DebUpstream repos_upstream_deb_create(owner, identifier, data=data) +# **repos_upstream_deb_update** +> DebUpstream repos_upstream_deb_update(owner, identifier, slug_perm, data=data) -Create a Debian upstream config for this repository. +Update a Debian upstream config for this repository. -Create a Debian upstream config for this repository. +Update a Debian upstream config for this repository. ### Example ```python @@ -2926,14 +3628,15 @@ configuration.password = 'YOUR_PASSWORD' api_instance = cloudsmith_api.ReposApi(cloudsmith_api.ApiClient(configuration)) owner = 'owner_example' # str | identifier = 'identifier_example' # str | +slug_perm = 'slug_perm_example' # str | data = cloudsmith_api.DebUpstreamRequest() # DebUpstreamRequest | (optional) try: - # Create a Debian upstream config for this repository. - api_response = api_instance.repos_upstream_deb_create(owner, identifier, data=data) + # Update a Debian upstream config for this repository. + api_response = api_instance.repos_upstream_deb_update(owner, identifier, slug_perm, data=data) pprint(api_response) except ApiException as e: - print("Exception when calling ReposApi->repos_upstream_deb_create: %s\n" % e) + print("Exception when calling ReposApi->repos_upstream_deb_update: %s\n" % e) ``` ### Parameters @@ -2942,6 +3645,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **owner** | **str**| | **identifier** | **str**| | + **slug_perm** | **str**| | **data** | [**DebUpstreamRequest**](DebUpstreamRequest.md)| | [optional] ### Return type @@ -2959,12 +3663,74 @@ 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) -# **repos_upstream_deb_delete** -> repos_upstream_deb_delete(owner, identifier, slug_perm) +# **repos_upstream_docker_create** +> DockerUpstream repos_upstream_docker_create(owner, identifier, data=data) -Delete a Debian upstream config for this repository. +Create a Docker upstream config for this repository. -Delete a Debian upstream config for this repository. +Create a Docker upstream config for this repository. + +### Example +```python +from __future__ import print_function +import time +import cloudsmith_api +from cloudsmith_api.rest import ApiException +from pprint import pprint + +# Configure API key authorization: apikey +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 +# configuration.api_key_prefix['X-Api-Key'] = 'Bearer' +# Configure HTTP basic authorization: basic +configuration = cloudsmith_api.Configuration() +configuration.username = 'YOUR_USERNAME' +configuration.password = 'YOUR_PASSWORD' + +# create an instance of the API class +api_instance = cloudsmith_api.ReposApi(cloudsmith_api.ApiClient(configuration)) +owner = 'owner_example' # str | +identifier = 'identifier_example' # str | +data = cloudsmith_api.DockerUpstreamRequest() # DockerUpstreamRequest | (optional) + +try: + # Create a Docker upstream config for this repository. + api_response = api_instance.repos_upstream_docker_create(owner, identifier, data=data) + pprint(api_response) +except ApiException as e: + print("Exception when calling ReposApi->repos_upstream_docker_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **str**| | + **identifier** | **str**| | + **data** | [**DockerUpstreamRequest**](DockerUpstreamRequest.md)| | [optional] + +### Return type + +[**DockerUpstream**](DockerUpstream.md) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **repos_upstream_docker_delete** +> repos_upstream_docker_delete(owner, identifier, slug_perm) + +Delete a Docker upstream config for this repository. + +Delete a Docker upstream config for this repository. ### Example ```python @@ -2991,10 +3757,10 @@ identifier = 'identifier_example' # str | slug_perm = 'slug_perm_example' # str | try: - # Delete a Debian upstream config for this repository. - api_instance.repos_upstream_deb_delete(owner, identifier, slug_perm) + # Delete a Docker upstream config for this repository. + api_instance.repos_upstream_docker_delete(owner, identifier, slug_perm) except ApiException as e: - print("Exception when calling ReposApi->repos_upstream_deb_delete: %s\n" % e) + print("Exception when calling ReposApi->repos_upstream_docker_delete: %s\n" % e) ``` ### Parameters @@ -3020,12 +3786,12 @@ 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) -# **repos_upstream_deb_list** -> list[DebUpstream] repos_upstream_deb_list(owner, identifier, page=page, page_size=page_size) +# **repos_upstream_docker_list** +> list[DockerUpstream] repos_upstream_docker_list(owner, identifier, page=page, page_size=page_size) -List Debian upstream configs for this repository. +List Docker upstream configs for this repository. -List Debian upstream configs for this repository. +List Docker upstream configs for this repository. ### Example ```python @@ -3053,11 +3819,11 @@ 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: - # List Debian upstream configs for this repository. - api_response = api_instance.repos_upstream_deb_list(owner, identifier, page=page, page_size=page_size) + # List Docker upstream configs for this repository. + api_response = api_instance.repos_upstream_docker_list(owner, identifier, page=page, page_size=page_size) pprint(api_response) except ApiException as e: - print("Exception when calling ReposApi->repos_upstream_deb_list: %s\n" % e) + print("Exception when calling ReposApi->repos_upstream_docker_list: %s\n" % e) ``` ### Parameters @@ -3071,7 +3837,7 @@ Name | Type | Description | Notes ### Return type -[**list[DebUpstream]**](DebUpstream.md) +[**list[DockerUpstream]**](DockerUpstream.md) ### Authorization @@ -3084,12 +3850,12 @@ 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) -# **repos_upstream_deb_partial_update** -> DebUpstream repos_upstream_deb_partial_update(owner, identifier, slug_perm, data=data) +# **repos_upstream_docker_partial_update** +> DockerUpstream repos_upstream_docker_partial_update(owner, identifier, slug_perm, data=data) -Partially update a Debian upstream config for this repository. +Partially update a Docker upstream config for this repository. -Partially update a Debian upstream config for this repository. +Partially update a Docker upstream config for this repository. ### Example ```python @@ -3114,14 +3880,14 @@ api_instance = cloudsmith_api.ReposApi(cloudsmith_api.ApiClient(configuration)) owner = 'owner_example' # str | identifier = 'identifier_example' # str | slug_perm = 'slug_perm_example' # str | -data = cloudsmith_api.DebUpstreamRequestPatch() # DebUpstreamRequestPatch | (optional) +data = cloudsmith_api.DockerUpstreamRequestPatch() # DockerUpstreamRequestPatch | (optional) try: - # Partially update a Debian upstream config for this repository. - api_response = api_instance.repos_upstream_deb_partial_update(owner, identifier, slug_perm, data=data) + # Partially update a Docker upstream config for this repository. + api_response = api_instance.repos_upstream_docker_partial_update(owner, identifier, slug_perm, data=data) pprint(api_response) except ApiException as e: - print("Exception when calling ReposApi->repos_upstream_deb_partial_update: %s\n" % e) + print("Exception when calling ReposApi->repos_upstream_docker_partial_update: %s\n" % e) ``` ### Parameters @@ -3131,11 +3897,11 @@ Name | Type | Description | Notes **owner** | **str**| | **identifier** | **str**| | **slug_perm** | **str**| | - **data** | [**DebUpstreamRequestPatch**](DebUpstreamRequestPatch.md)| | [optional] + **data** | [**DockerUpstreamRequestPatch**](DockerUpstreamRequestPatch.md)| | [optional] ### Return type -[**DebUpstream**](DebUpstream.md) +[**DockerUpstream**](DockerUpstream.md) ### Authorization @@ -3148,12 +3914,12 @@ 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) -# **repos_upstream_deb_read** -> DebUpstream repos_upstream_deb_read(owner, identifier, slug_perm) +# **repos_upstream_docker_read** +> DockerUpstream repos_upstream_docker_read(owner, identifier, slug_perm) -Retrieve a Debian upstream config for this repository. +Retrieve a Docker upstream config for this repository. -Retrieve a Debian upstream config for this repository. +Retrieve a Docker upstream config for this repository. ### Example ```python @@ -3180,11 +3946,11 @@ identifier = 'identifier_example' # str | slug_perm = 'slug_perm_example' # str | try: - # Retrieve a Debian upstream config for this repository. - api_response = api_instance.repos_upstream_deb_read(owner, identifier, slug_perm) + # Retrieve a Docker upstream config for this repository. + api_response = api_instance.repos_upstream_docker_read(owner, identifier, slug_perm) pprint(api_response) except ApiException as e: - print("Exception when calling ReposApi->repos_upstream_deb_read: %s\n" % e) + print("Exception when calling ReposApi->repos_upstream_docker_read: %s\n" % e) ``` ### Parameters @@ -3197,7 +3963,7 @@ Name | Type | Description | Notes ### Return type -[**DebUpstream**](DebUpstream.md) +[**DockerUpstream**](DockerUpstream.md) ### Authorization @@ -3210,12 +3976,12 @@ 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) -# **repos_upstream_deb_update** -> DebUpstream repos_upstream_deb_update(owner, identifier, slug_perm, data=data) +# **repos_upstream_docker_update** +> DockerUpstream repos_upstream_docker_update(owner, identifier, slug_perm, data=data) -Update a Debian upstream config for this repository. +Update a Docker upstream config for this repository. -Update a Debian upstream config for this repository. +Update a Docker upstream config for this repository. ### Example ```python @@ -3240,14 +4006,14 @@ api_instance = cloudsmith_api.ReposApi(cloudsmith_api.ApiClient(configuration)) owner = 'owner_example' # str | identifier = 'identifier_example' # str | slug_perm = 'slug_perm_example' # str | -data = cloudsmith_api.DebUpstreamRequest() # DebUpstreamRequest | (optional) +data = cloudsmith_api.DockerUpstreamRequest() # DockerUpstreamRequest | (optional) try: - # Update a Debian upstream config for this repository. - api_response = api_instance.repos_upstream_deb_update(owner, identifier, slug_perm, data=data) + # Update a Docker upstream config for this repository. + api_response = api_instance.repos_upstream_docker_update(owner, identifier, slug_perm, data=data) pprint(api_response) except ApiException as e: - print("Exception when calling ReposApi->repos_upstream_deb_update: %s\n" % e) + print("Exception when calling ReposApi->repos_upstream_docker_update: %s\n" % e) ``` ### Parameters @@ -3257,11 +4023,11 @@ Name | Type | Description | Notes **owner** | **str**| | **identifier** | **str**| | **slug_perm** | **str**| | - **data** | [**DebUpstreamRequest**](DebUpstreamRequest.md)| | [optional] + **data** | [**DockerUpstreamRequest**](DockerUpstreamRequest.md)| | [optional] ### Return type -[**DebUpstream**](DebUpstream.md) +[**DockerUpstream**](DockerUpstream.md) ### Authorization @@ -3274,12 +4040,12 @@ 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) -# **repos_upstream_docker_create** -> DockerUpstream repos_upstream_docker_create(owner, identifier, data=data) +# **repos_upstream_go_create** +> GoUpstream repos_upstream_go_create(owner, identifier, data=data) -Create a Docker upstream config for this repository. +Create a Go upstream config for this repository. -Create a Docker upstream config for this repository. +Create a Go upstream config for this repository. ### Example ```python @@ -3303,14 +4069,14 @@ configuration.password = 'YOUR_PASSWORD' api_instance = cloudsmith_api.ReposApi(cloudsmith_api.ApiClient(configuration)) owner = 'owner_example' # str | identifier = 'identifier_example' # str | -data = cloudsmith_api.DockerUpstreamRequest() # DockerUpstreamRequest | (optional) +data = cloudsmith_api.GoUpstreamRequest() # GoUpstreamRequest | (optional) try: - # Create a Docker upstream config for this repository. - api_response = api_instance.repos_upstream_docker_create(owner, identifier, data=data) + # Create a Go upstream config for this repository. + api_response = api_instance.repos_upstream_go_create(owner, identifier, data=data) pprint(api_response) except ApiException as e: - print("Exception when calling ReposApi->repos_upstream_docker_create: %s\n" % e) + print("Exception when calling ReposApi->repos_upstream_go_create: %s\n" % e) ``` ### Parameters @@ -3319,11 +4085,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **owner** | **str**| | **identifier** | **str**| | - **data** | [**DockerUpstreamRequest**](DockerUpstreamRequest.md)| | [optional] + **data** | [**GoUpstreamRequest**](GoUpstreamRequest.md)| | [optional] ### Return type -[**DockerUpstream**](DockerUpstream.md) +[**GoUpstream**](GoUpstream.md) ### Authorization @@ -3336,12 +4102,12 @@ 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) -# **repos_upstream_docker_delete** -> repos_upstream_docker_delete(owner, identifier, slug_perm) +# **repos_upstream_go_delete** +> repos_upstream_go_delete(owner, identifier, slug_perm) -Delete a Docker upstream config for this repository. +Delete a Go upstream config for this repository. -Delete a Docker upstream config for this repository. +Delete a Go upstream config for this repository. ### Example ```python @@ -3368,10 +4134,10 @@ identifier = 'identifier_example' # str | slug_perm = 'slug_perm_example' # str | try: - # Delete a Docker upstream config for this repository. - api_instance.repos_upstream_docker_delete(owner, identifier, slug_perm) + # Delete a Go upstream config for this repository. + api_instance.repos_upstream_go_delete(owner, identifier, slug_perm) except ApiException as e: - print("Exception when calling ReposApi->repos_upstream_docker_delete: %s\n" % e) + print("Exception when calling ReposApi->repos_upstream_go_delete: %s\n" % e) ``` ### Parameters @@ -3397,12 +4163,12 @@ 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) -# **repos_upstream_docker_list** -> list[DockerUpstream] repos_upstream_docker_list(owner, identifier, page=page, page_size=page_size) +# **repos_upstream_go_list** +> list[GoUpstream] repos_upstream_go_list(owner, identifier, page=page, page_size=page_size) -List Docker upstream configs for this repository. +List Go upstream configs for this repository. -List Docker upstream configs for this repository. +List Go upstream configs for this repository. ### Example ```python @@ -3430,11 +4196,11 @@ 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: - # List Docker upstream configs for this repository. - api_response = api_instance.repos_upstream_docker_list(owner, identifier, page=page, page_size=page_size) + # List Go upstream configs for this repository. + api_response = api_instance.repos_upstream_go_list(owner, identifier, page=page, page_size=page_size) pprint(api_response) except ApiException as e: - print("Exception when calling ReposApi->repos_upstream_docker_list: %s\n" % e) + print("Exception when calling ReposApi->repos_upstream_go_list: %s\n" % e) ``` ### Parameters @@ -3448,7 +4214,7 @@ Name | Type | Description | Notes ### Return type -[**list[DockerUpstream]**](DockerUpstream.md) +[**list[GoUpstream]**](GoUpstream.md) ### Authorization @@ -3461,12 +4227,12 @@ 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) -# **repos_upstream_docker_partial_update** -> DockerUpstream repos_upstream_docker_partial_update(owner, identifier, slug_perm, data=data) +# **repos_upstream_go_partial_update** +> GoUpstream repos_upstream_go_partial_update(owner, identifier, slug_perm, data=data) -Partially update a Docker upstream config for this repository. +Partially update a Go upstream config for this repository. -Partially update a Docker upstream config for this repository. +Partially update a Go upstream config for this repository. ### Example ```python @@ -3491,14 +4257,14 @@ api_instance = cloudsmith_api.ReposApi(cloudsmith_api.ApiClient(configuration)) owner = 'owner_example' # str | identifier = 'identifier_example' # str | slug_perm = 'slug_perm_example' # str | -data = cloudsmith_api.DockerUpstreamRequestPatch() # DockerUpstreamRequestPatch | (optional) +data = cloudsmith_api.GoUpstreamRequestPatch() # GoUpstreamRequestPatch | (optional) try: - # Partially update a Docker upstream config for this repository. - api_response = api_instance.repos_upstream_docker_partial_update(owner, identifier, slug_perm, data=data) + # Partially update a Go upstream config for this repository. + api_response = api_instance.repos_upstream_go_partial_update(owner, identifier, slug_perm, data=data) pprint(api_response) except ApiException as e: - print("Exception when calling ReposApi->repos_upstream_docker_partial_update: %s\n" % e) + print("Exception when calling ReposApi->repos_upstream_go_partial_update: %s\n" % e) ``` ### Parameters @@ -3508,11 +4274,11 @@ Name | Type | Description | Notes **owner** | **str**| | **identifier** | **str**| | **slug_perm** | **str**| | - **data** | [**DockerUpstreamRequestPatch**](DockerUpstreamRequestPatch.md)| | [optional] + **data** | [**GoUpstreamRequestPatch**](GoUpstreamRequestPatch.md)| | [optional] ### Return type -[**DockerUpstream**](DockerUpstream.md) +[**GoUpstream**](GoUpstream.md) ### Authorization @@ -3525,12 +4291,12 @@ 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) -# **repos_upstream_docker_read** -> DockerUpstream repos_upstream_docker_read(owner, identifier, slug_perm) +# **repos_upstream_go_read** +> GoUpstream repos_upstream_go_read(owner, identifier, slug_perm) -Retrieve a Docker upstream config for this repository. +Retrieve a Go upstream config for this repository. -Retrieve a Docker upstream config for this repository. +Retrieve a Go upstream config for this repository. ### Example ```python @@ -3557,11 +4323,11 @@ identifier = 'identifier_example' # str | slug_perm = 'slug_perm_example' # str | try: - # Retrieve a Docker upstream config for this repository. - api_response = api_instance.repos_upstream_docker_read(owner, identifier, slug_perm) + # Retrieve a Go upstream config for this repository. + api_response = api_instance.repos_upstream_go_read(owner, identifier, slug_perm) pprint(api_response) except ApiException as e: - print("Exception when calling ReposApi->repos_upstream_docker_read: %s\n" % e) + print("Exception when calling ReposApi->repos_upstream_go_read: %s\n" % e) ``` ### Parameters @@ -3574,7 +4340,7 @@ Name | Type | Description | Notes ### Return type -[**DockerUpstream**](DockerUpstream.md) +[**GoUpstream**](GoUpstream.md) ### Authorization @@ -3587,12 +4353,12 @@ 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) -# **repos_upstream_docker_update** -> DockerUpstream repos_upstream_docker_update(owner, identifier, slug_perm, data=data) +# **repos_upstream_go_update** +> GoUpstream repos_upstream_go_update(owner, identifier, slug_perm, data=data) -Update a Docker upstream config for this repository. +Update a Go upstream config for this repository. -Update a Docker upstream config for this repository. +Update a Go upstream config for this repository. ### Example ```python @@ -3617,14 +4383,14 @@ api_instance = cloudsmith_api.ReposApi(cloudsmith_api.ApiClient(configuration)) owner = 'owner_example' # str | identifier = 'identifier_example' # str | slug_perm = 'slug_perm_example' # str | -data = cloudsmith_api.DockerUpstreamRequest() # DockerUpstreamRequest | (optional) +data = cloudsmith_api.GoUpstreamRequest() # GoUpstreamRequest | (optional) try: - # Update a Docker upstream config for this repository. - api_response = api_instance.repos_upstream_docker_update(owner, identifier, slug_perm, data=data) + # Update a Go upstream config for this repository. + api_response = api_instance.repos_upstream_go_update(owner, identifier, slug_perm, data=data) pprint(api_response) except ApiException as e: - print("Exception when calling ReposApi->repos_upstream_docker_update: %s\n" % e) + print("Exception when calling ReposApi->repos_upstream_go_update: %s\n" % e) ``` ### Parameters @@ -3634,11 +4400,11 @@ Name | Type | Description | Notes **owner** | **str**| | **identifier** | **str**| | **slug_perm** | **str**| | - **data** | [**DockerUpstreamRequest**](DockerUpstreamRequest.md)| | [optional] + **data** | [**GoUpstreamRequest**](GoUpstreamRequest.md)| | [optional] ### Return type -[**DockerUpstream**](DockerUpstream.md) +[**GoUpstream**](GoUpstream.md) ### Authorization diff --git a/bindings/python/src/docs/StatusBasic.md b/bindings/python/src/docs/StatusBasic.md index 422691af..406f3a69 100644 --- a/bindings/python/src/docs/StatusBasic.md +++ b/bindings/python/src/docs/StatusBasic.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **detail** | **str** | The message describing the state of the API. | [optional] [default to 'Cloudsmith API is operational.'] -**version** | **str** | The current version for the Cloudsmith service. | [optional] [default to '1.674.0'] +**version** | **str** | The current version for the Cloudsmith service. | [optional] [default to '1.698.0'] [[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/python/src/docs/UserApi.md b/bindings/python/src/docs/UserApi.md index bca47b39..7f32d0fb 100644 --- a/bindings/python/src/docs/UserApi.md +++ b/bindings/python/src/docs/UserApi.md @@ -173,7 +173,7 @@ 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) # **user_tokens_list** -> InlineResponse200 user_tokens_list(page=page, page_size=page_size) +> InlineResponse2001 user_tokens_list(page=page, page_size=page_size) Retrieve the API key assigned to the user that is currently authenticated. @@ -219,7 +219,7 @@ Name | Type | Description | Notes ### Return type -[**InlineResponse200**](InlineResponse200.md) +[**InlineResponse2001**](InlineResponse2001.md) ### Authorization diff --git a/bindings/python/src/setup.py b/bindings/python/src/setup.py index 78c72dcd..4eba0d03 100644 --- a/bindings/python/src/setup.py +++ b/bindings/python/src/setup.py @@ -13,8 +13,8 @@ from setuptools import setup, find_packages # noqa: H301 -NAME = "cloudsmith_api" -VERSION = "2.0.18" +NAME = "cloudsmith-api" +VERSION = "2.0.1" # To install the library, run the following # # python setup.py install diff --git a/bindings/python/src/test/test_cargo_upstream.py b/bindings/python/src/test/test_cargo_upstream.py new file mode 100644 index 00000000..cc313244 --- /dev/null +++ b/bindings/python/src/test/test_cargo_upstream.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Cloudsmith API (v1) + + 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 unittest + +import cloudsmith_api +from cloudsmith_api.models.cargo_upstream import CargoUpstream # noqa: E501 +from cloudsmith_api.rest import ApiException + + +class TestCargoUpstream(unittest.TestCase): + """CargoUpstream unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCargoUpstream(self): + """Test CargoUpstream""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudsmith_api.models.cargo_upstream.CargoUpstream() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/bindings/python/src/test/test_cargo_upstream_request.py b/bindings/python/src/test/test_cargo_upstream_request.py new file mode 100644 index 00000000..7b47223f --- /dev/null +++ b/bindings/python/src/test/test_cargo_upstream_request.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Cloudsmith API (v1) + + 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 unittest + +import cloudsmith_api +from cloudsmith_api.models.cargo_upstream_request import CargoUpstreamRequest # noqa: E501 +from cloudsmith_api.rest import ApiException + + +class TestCargoUpstreamRequest(unittest.TestCase): + """CargoUpstreamRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCargoUpstreamRequest(self): + """Test CargoUpstreamRequest""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudsmith_api.models.cargo_upstream_request.CargoUpstreamRequest() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/bindings/python/src/test/test_cargo_upstream_request_patch.py b/bindings/python/src/test/test_cargo_upstream_request_patch.py new file mode 100644 index 00000000..bddccfe7 --- /dev/null +++ b/bindings/python/src/test/test_cargo_upstream_request_patch.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Cloudsmith API (v1) + + 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 unittest + +import cloudsmith_api +from cloudsmith_api.models.cargo_upstream_request_patch import CargoUpstreamRequestPatch # noqa: E501 +from cloudsmith_api.rest import ApiException + + +class TestCargoUpstreamRequestPatch(unittest.TestCase): + """CargoUpstreamRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCargoUpstreamRequestPatch(self): + """Test CargoUpstreamRequestPatch""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudsmith_api.models.cargo_upstream_request_patch.CargoUpstreamRequestPatch() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/bindings/python/src/test/test_go_upstream.py b/bindings/python/src/test/test_go_upstream.py new file mode 100644 index 00000000..6c382cd0 --- /dev/null +++ b/bindings/python/src/test/test_go_upstream.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Cloudsmith API (v1) + + 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 unittest + +import cloudsmith_api +from cloudsmith_api.models.go_upstream import GoUpstream # noqa: E501 +from cloudsmith_api.rest import ApiException + + +class TestGoUpstream(unittest.TestCase): + """GoUpstream unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testGoUpstream(self): + """Test GoUpstream""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudsmith_api.models.go_upstream.GoUpstream() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/bindings/python/src/test/test_go_upstream_request.py b/bindings/python/src/test/test_go_upstream_request.py new file mode 100644 index 00000000..dff91796 --- /dev/null +++ b/bindings/python/src/test/test_go_upstream_request.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Cloudsmith API (v1) + + 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 unittest + +import cloudsmith_api +from cloudsmith_api.models.go_upstream_request import GoUpstreamRequest # noqa: E501 +from cloudsmith_api.rest import ApiException + + +class TestGoUpstreamRequest(unittest.TestCase): + """GoUpstreamRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testGoUpstreamRequest(self): + """Test GoUpstreamRequest""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudsmith_api.models.go_upstream_request.GoUpstreamRequest() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/bindings/python/src/test/test_go_upstream_request_patch.py b/bindings/python/src/test/test_go_upstream_request_patch.py new file mode 100644 index 00000000..ca506d0d --- /dev/null +++ b/bindings/python/src/test/test_go_upstream_request_patch.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Cloudsmith API (v1) + + 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 unittest + +import cloudsmith_api +from cloudsmith_api.models.go_upstream_request_patch import GoUpstreamRequestPatch # noqa: E501 +from cloudsmith_api.rest import ApiException + + +class TestGoUpstreamRequestPatch(unittest.TestCase): + """GoUpstreamRequestPatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testGoUpstreamRequestPatch(self): + """Test GoUpstreamRequestPatch""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudsmith_api.models.go_upstream_request_patch.GoUpstreamRequestPatch() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/bindings/python/src/test/test_inline_response2001.py b/bindings/python/src/test/test_inline_response2001.py new file mode 100644 index 00000000..40d21bcd --- /dev/null +++ b/bindings/python/src/test/test_inline_response2001.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Cloudsmith API (v1) + + 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 unittest + +import cloudsmith_api +from cloudsmith_api.models.inline_response2001 import InlineResponse2001 # noqa: E501 +from cloudsmith_api.rest import ApiException + + +class TestInlineResponse2001(unittest.TestCase): + """InlineResponse2001 unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testInlineResponse2001(self): + """Test InlineResponse2001""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudsmith_api.models.inline_response2001.InlineResponse2001() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/bindings/python/src/test/test_package_group.py b/bindings/python/src/test/test_package_group.py new file mode 100644 index 00000000..2b8b4404 --- /dev/null +++ b/bindings/python/src/test/test_package_group.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Cloudsmith API (v1) + + 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 unittest + +import cloudsmith_api +from cloudsmith_api.models.package_group import PackageGroup # noqa: E501 +from cloudsmith_api.rest import ApiException + + +class TestPackageGroup(unittest.TestCase): + """PackageGroup unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPackageGroup(self): + """Test PackageGroup""" + # FIXME: construct object with mandatory attributes with example values + # model = cloudsmith_api.models.package_group.PackageGroup() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/bindings/python/src/test/test_packages_api.py b/bindings/python/src/test/test_packages_api.py index fc2db977..90c81320 100644 --- a/bindings/python/src/test/test_packages_api.py +++ b/bindings/python/src/test/test_packages_api.py @@ -50,6 +50,13 @@ def test_packages_dependencies(self): """ pass + def test_packages_groups_list(self): + """Test case for packages_groups_list + + Return a list of Package Groups in a repository. # noqa: E501 + """ + pass + def test_packages_list(self): """Test case for packages_list diff --git a/bindings/python/src/test/test_repos_api.py b/bindings/python/src/test/test_repos_api.py index 396edb4e..ccb55df9 100644 --- a/bindings/python/src/test/test_repos_api.py +++ b/bindings/python/src/test/test_repos_api.py @@ -218,6 +218,48 @@ def test_repos_transfer_region(self): """ pass + def test_repos_upstream_cargo_create(self): + """Test case for repos_upstream_cargo_create + + Create a Cargo upstream config for this repository. # noqa: E501 + """ + pass + + def test_repos_upstream_cargo_delete(self): + """Test case for repos_upstream_cargo_delete + + Delete a Cargo upstream config for this repository. # noqa: E501 + """ + pass + + def test_repos_upstream_cargo_list(self): + """Test case for repos_upstream_cargo_list + + List Cargo upstream configs for this repository. # noqa: E501 + """ + pass + + def test_repos_upstream_cargo_partial_update(self): + """Test case for repos_upstream_cargo_partial_update + + Partially update a Cargo upstream config for this repository. # noqa: E501 + """ + pass + + def test_repos_upstream_cargo_read(self): + """Test case for repos_upstream_cargo_read + + Retrieve a Cargo upstream config for this repository. # noqa: E501 + """ + pass + + def test_repos_upstream_cargo_update(self): + """Test case for repos_upstream_cargo_update + + Update a Cargo upstream config for this repository. # noqa: E501 + """ + pass + def test_repos_upstream_composer_create(self): """Test case for repos_upstream_composer_create @@ -428,6 +470,48 @@ def test_repos_upstream_docker_update(self): """ pass + def test_repos_upstream_go_create(self): + """Test case for repos_upstream_go_create + + Create a Go upstream config for this repository. # noqa: E501 + """ + pass + + def test_repos_upstream_go_delete(self): + """Test case for repos_upstream_go_delete + + Delete a Go upstream config for this repository. # noqa: E501 + """ + pass + + def test_repos_upstream_go_list(self): + """Test case for repos_upstream_go_list + + List Go upstream configs for this repository. # noqa: E501 + """ + pass + + def test_repos_upstream_go_partial_update(self): + """Test case for repos_upstream_go_partial_update + + Partially update a Go upstream config for this repository. # noqa: E501 + """ + pass + + def test_repos_upstream_go_read(self): + """Test case for repos_upstream_go_read + + Retrieve a Go upstream config for this repository. # noqa: E501 + """ + pass + + def test_repos_upstream_go_update(self): + """Test case for repos_upstream_go_update + + Update a Go upstream config for this repository. # noqa: E501 + """ + pass + def test_repos_upstream_helm_create(self): """Test case for repos_upstream_helm_create diff --git a/bindings/ruby/src/README.md b/bindings/ruby/src/README.md index 01eeedef..064789c9 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: 2.0.18 +- Package version: 2.0.1 - 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-2.0.18.gem +gem install ./cloudsmith-api-2.0.1.gem ``` -(for development, run `gem install --dev ./cloudsmith-api-2.0.18.gem` to install the development dependencies) +(for development, run `gem install --dev ./cloudsmith-api-2.0.1.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', '~> 2.0.18' + gem 'cloudsmith-api', '~> 2.0.1' ### Install from Git @@ -194,6 +194,7 @@ Class | Method | HTTP request | Description *CloudsmithApi::PackagesApi* | [**packages_copy**](docs/PackagesApi.md#packages_copy) | **POST** /packages/{owner}/{repo}/{identifier}/copy/ | Copy a package to another repository. *CloudsmithApi::PackagesApi* | [**packages_delete**](docs/PackagesApi.md#packages_delete) | **DELETE** /packages/{owner}/{repo}/{identifier}/ | Delete a specific package in a repository. *CloudsmithApi::PackagesApi* | [**packages_dependencies**](docs/PackagesApi.md#packages_dependencies) | **GET** /packages/{owner}/{repo}/{identifier}/dependencies/ | Get the list of dependencies for a package. Transitive dependencies are included where supported. +*CloudsmithApi::PackagesApi* | [**packages_groups_list**](docs/PackagesApi.md#packages_groups_list) | **GET** /packages/{owner}/{repo}/groups/ | Return a list of Package Groups in a repository. *CloudsmithApi::PackagesApi* | [**packages_list**](docs/PackagesApi.md#packages_list) | **GET** /packages/{owner}/{repo}/ | Get a list of all packages associated with repository. *CloudsmithApi::PackagesApi* | [**packages_move**](docs/PackagesApi.md#packages_move) | **POST** /packages/{owner}/{repo}/{identifier}/move/ | Move a package to another repository. *CloudsmithApi::PackagesApi* | [**packages_quarantine**](docs/PackagesApi.md#packages_quarantine) | **POST** /packages/{owner}/{repo}/{identifier}/quarantine/ | Quarantine or release a package. @@ -284,6 +285,12 @@ Class | Method | HTTP request | Description *CloudsmithApi::ReposApi* | [**repos_rsa_list**](docs/ReposApi.md#repos_rsa_list) | **GET** /repos/{owner}/{identifier}/rsa/ | Retrieve the active RSA key for the Repository. *CloudsmithApi::ReposApi* | [**repos_rsa_regenerate**](docs/ReposApi.md#repos_rsa_regenerate) | **POST** /repos/{owner}/{identifier}/rsa/regenerate/ | Regenerate RSA Key for the Repository. *CloudsmithApi::ReposApi* | [**repos_transfer_region**](docs/ReposApi.md#repos_transfer_region) | **POST** /repos/{owner}/{repo}/transfer-region/ | Transfer a repository to a different region. +*CloudsmithApi::ReposApi* | [**repos_upstream_cargo_create**](docs/ReposApi.md#repos_upstream_cargo_create) | **POST** /repos/{owner}/{identifier}/upstream/cargo/ | Create a Cargo upstream config for this repository. +*CloudsmithApi::ReposApi* | [**repos_upstream_cargo_delete**](docs/ReposApi.md#repos_upstream_cargo_delete) | **DELETE** /repos/{owner}/{identifier}/upstream/cargo/{slug_perm}/ | Delete a Cargo upstream config for this repository. +*CloudsmithApi::ReposApi* | [**repos_upstream_cargo_list**](docs/ReposApi.md#repos_upstream_cargo_list) | **GET** /repos/{owner}/{identifier}/upstream/cargo/ | List Cargo upstream configs for this repository. +*CloudsmithApi::ReposApi* | [**repos_upstream_cargo_partial_update**](docs/ReposApi.md#repos_upstream_cargo_partial_update) | **PATCH** /repos/{owner}/{identifier}/upstream/cargo/{slug_perm}/ | Partially update a Cargo upstream config for this repository. +*CloudsmithApi::ReposApi* | [**repos_upstream_cargo_read**](docs/ReposApi.md#repos_upstream_cargo_read) | **GET** /repos/{owner}/{identifier}/upstream/cargo/{slug_perm}/ | Retrieve a Cargo upstream config for this repository. +*CloudsmithApi::ReposApi* | [**repos_upstream_cargo_update**](docs/ReposApi.md#repos_upstream_cargo_update) | **PUT** /repos/{owner}/{identifier}/upstream/cargo/{slug_perm}/ | Update a Cargo upstream config for this repository. *CloudsmithApi::ReposApi* | [**repos_upstream_composer_create**](docs/ReposApi.md#repos_upstream_composer_create) | **POST** /repos/{owner}/{identifier}/upstream/composer/ | Create a Composer upstream config for this repository. *CloudsmithApi::ReposApi* | [**repos_upstream_composer_delete**](docs/ReposApi.md#repos_upstream_composer_delete) | **DELETE** /repos/{owner}/{identifier}/upstream/composer/{slug_perm}/ | Delete a Composer upstream config for this repository. *CloudsmithApi::ReposApi* | [**repos_upstream_composer_list**](docs/ReposApi.md#repos_upstream_composer_list) | **GET** /repos/{owner}/{identifier}/upstream/composer/ | List Composer upstream configs for this repository. @@ -314,6 +321,12 @@ Class | Method | HTTP request | Description *CloudsmithApi::ReposApi* | [**repos_upstream_docker_partial_update**](docs/ReposApi.md#repos_upstream_docker_partial_update) | **PATCH** /repos/{owner}/{identifier}/upstream/docker/{slug_perm}/ | Partially update a Docker upstream config for this repository. *CloudsmithApi::ReposApi* | [**repos_upstream_docker_read**](docs/ReposApi.md#repos_upstream_docker_read) | **GET** /repos/{owner}/{identifier}/upstream/docker/{slug_perm}/ | Retrieve a Docker upstream config for this repository. *CloudsmithApi::ReposApi* | [**repos_upstream_docker_update**](docs/ReposApi.md#repos_upstream_docker_update) | **PUT** /repos/{owner}/{identifier}/upstream/docker/{slug_perm}/ | Update a Docker upstream config for this repository. +*CloudsmithApi::ReposApi* | [**repos_upstream_go_create**](docs/ReposApi.md#repos_upstream_go_create) | **POST** /repos/{owner}/{identifier}/upstream/go/ | Create a Go upstream config for this repository. +*CloudsmithApi::ReposApi* | [**repos_upstream_go_delete**](docs/ReposApi.md#repos_upstream_go_delete) | **DELETE** /repos/{owner}/{identifier}/upstream/go/{slug_perm}/ | Delete a Go upstream config for this repository. +*CloudsmithApi::ReposApi* | [**repos_upstream_go_list**](docs/ReposApi.md#repos_upstream_go_list) | **GET** /repos/{owner}/{identifier}/upstream/go/ | List Go upstream configs for this repository. +*CloudsmithApi::ReposApi* | [**repos_upstream_go_partial_update**](docs/ReposApi.md#repos_upstream_go_partial_update) | **PATCH** /repos/{owner}/{identifier}/upstream/go/{slug_perm}/ | Partially update a Go upstream config for this repository. +*CloudsmithApi::ReposApi* | [**repos_upstream_go_read**](docs/ReposApi.md#repos_upstream_go_read) | **GET** /repos/{owner}/{identifier}/upstream/go/{slug_perm}/ | Retrieve a Go upstream config for this repository. +*CloudsmithApi::ReposApi* | [**repos_upstream_go_update**](docs/ReposApi.md#repos_upstream_go_update) | **PUT** /repos/{owner}/{identifier}/upstream/go/{slug_perm}/ | Update a Go upstream config for this repository. *CloudsmithApi::ReposApi* | [**repos_upstream_helm_create**](docs/ReposApi.md#repos_upstream_helm_create) | **POST** /repos/{owner}/{identifier}/upstream/helm/ | Create a Helm upstream config for this repository. *CloudsmithApi::ReposApi* | [**repos_upstream_helm_delete**](docs/ReposApi.md#repos_upstream_helm_delete) | **DELETE** /repos/{owner}/{identifier}/upstream/helm/{slug_perm}/ | Delete a Helm upstream config for this repository. *CloudsmithApi::ReposApi* | [**repos_upstream_helm_list**](docs/ReposApi.md#repos_upstream_helm_list) | **GET** /repos/{owner}/{identifier}/upstream/helm/ | List Helm upstream configs for this repository. @@ -400,6 +413,9 @@ Class | Method | HTTP request | Description - [CloudsmithApi::Architecture](docs/Architecture.md) - [CloudsmithApi::CargoPackageUpload](docs/CargoPackageUpload.md) - [CloudsmithApi::CargoPackageUploadRequest](docs/CargoPackageUploadRequest.md) + - [CloudsmithApi::CargoUpstream](docs/CargoUpstream.md) + - [CloudsmithApi::CargoUpstreamRequest](docs/CargoUpstreamRequest.md) + - [CloudsmithApi::CargoUpstreamRequestPatch](docs/CargoUpstreamRequestPatch.md) - [CloudsmithApi::CocoapodsPackageUpload](docs/CocoapodsPackageUpload.md) - [CloudsmithApi::CocoapodsPackageUploadRequest](docs/CocoapodsPackageUploadRequest.md) - [CloudsmithApi::CommonBandwidthMetrics](docs/CommonBandwidthMetrics.md) @@ -448,6 +464,9 @@ Class | Method | HTTP request | Description - [CloudsmithApi::GeoIpLocation](docs/GeoIpLocation.md) - [CloudsmithApi::GoPackageUpload](docs/GoPackageUpload.md) - [CloudsmithApi::GoPackageUploadRequest](docs/GoPackageUploadRequest.md) + - [CloudsmithApi::GoUpstream](docs/GoUpstream.md) + - [CloudsmithApi::GoUpstreamRequest](docs/GoUpstreamRequest.md) + - [CloudsmithApi::GoUpstreamRequestPatch](docs/GoUpstreamRequestPatch.md) - [CloudsmithApi::HelmPackageUpload](docs/HelmPackageUpload.md) - [CloudsmithApi::HelmPackageUploadRequest](docs/HelmPackageUploadRequest.md) - [CloudsmithApi::HelmUpstream](docs/HelmUpstream.md) @@ -462,6 +481,7 @@ Class | Method | HTTP request | Description - [CloudsmithApi::HistoryFieldset](docs/HistoryFieldset.md) - [CloudsmithApi::HistoryFieldsetRaw](docs/HistoryFieldsetRaw.md) - [CloudsmithApi::InlineResponse200](docs/InlineResponse200.md) + - [CloudsmithApi::InlineResponse2001](docs/InlineResponse2001.md) - [CloudsmithApi::LuarocksPackageUpload](docs/LuarocksPackageUpload.md) - [CloudsmithApi::LuarocksPackageUploadRequest](docs/LuarocksPackageUploadRequest.md) - [CloudsmithApi::MavenPackageUpload](docs/MavenPackageUpload.md) @@ -527,6 +547,7 @@ Class | Method | HTTP request | Description - [CloudsmithApi::PackageFilePartsUpload](docs/PackageFilePartsUpload.md) - [CloudsmithApi::PackageFileUpload](docs/PackageFileUpload.md) - [CloudsmithApi::PackageFileUploadRequest](docs/PackageFileUploadRequest.md) + - [CloudsmithApi::PackageGroup](docs/PackageGroup.md) - [CloudsmithApi::PackageLicensePolicyEvaluationRequest](docs/PackageLicensePolicyEvaluationRequest.md) - [CloudsmithApi::PackageLicensePolicyEvaluationRequestRequest](docs/PackageLicensePolicyEvaluationRequestRequest.md) - [CloudsmithApi::PackageLicensePolicyViolationLog](docs/PackageLicensePolicyViolationLog.md) diff --git a/bindings/ruby/src/build.json b/bindings/ruby/src/build.json index d7401053..2ef72e1e 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": "2.0.18", + "gemVersion": "2.0.1", "hideGenerationTimestamp": true, "moduleName": "CloudsmithApi", "sortParamsByRequiredFlag": true diff --git a/bindings/ruby/src/docs/CargoUpstream.md b/bindings/ruby/src/docs/CargoUpstream.md new file mode 100644 index 00000000..68fed446 --- /dev/null +++ b/bindings/ruby/src/docs/CargoUpstream.md @@ -0,0 +1,25 @@ +# CloudsmithApi::CargoUpstream + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**auth_mode** | **String** | The authentication mode to use when accessing this upstream. | [optional] [default to 'None'] +**auth_secret** | **String** | Secret to provide with requests to upstream. | [optional] +**auth_username** | **String** | Username to provide with requests to upstream. | [optional] +**created_at** | **DateTime** | The datetime the upstream source was created. | [optional] +**disable_reason** | **String** | | [optional] [default to 'N/A'] +**extra_header_1** | **String** | The key for extra header #1 to send to upstream. | [optional] +**extra_header_2** | **String** | The key for extra header #2 to send to upstream. | [optional] +**extra_value_1** | **String** | The value for extra header #1 to send to upstream. This is stored as plaintext, and is NOT encrypted. | [optional] +**extra_value_2** | **String** | The value for extra header #2 to send to upstream. This is stored as plaintext, and is NOT encrypted. | [optional] +**is_active** | **BOOLEAN** | Whether or not this upstream is active and ready for requests. | [optional] +**mode** | **String** | The mode that this upstream should operate in. Upstream sources can be used to proxy resolved packages, as well as operate in a proxy/cache or cache only mode. | [optional] [default to 'Proxy Only'] +**name** | **String** | A descriptive name for this upstream source. A shortened version of this name will be used for tagging cached packages retrieved from this upstream. | +**pending_validation** | **BOOLEAN** | When true, this upstream source is pending validation. | [optional] +**priority** | **Integer** | Upstream sources are selected for resolving requests by sequential order (1..n), followed by creation date. | [optional] +**slug_perm** | **String** | | [optional] +**updated_at** | **DateTime** | | [optional] +**upstream_url** | **String** | The URL for this upstream source. This must be a fully qualified URL including any path elements required to reach the root of the repository. | +**verify_ssl** | **BOOLEAN** | If enabled, SSL certificates are verified when requests are made to this upstream. It's recommended to leave this enabled for all public sources to help mitigate Man-In-The-Middle (MITM) attacks. Please note this only applies to HTTPS upstreams. | [optional] + + diff --git a/bindings/ruby/src/docs/CargoUpstreamRequest.md b/bindings/ruby/src/docs/CargoUpstreamRequest.md new file mode 100644 index 00000000..2b219dd2 --- /dev/null +++ b/bindings/ruby/src/docs/CargoUpstreamRequest.md @@ -0,0 +1,20 @@ +# CloudsmithApi::CargoUpstreamRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**auth_mode** | **String** | The authentication mode to use when accessing this upstream. | [optional] [default to 'None'] +**auth_secret** | **String** | Secret to provide with requests to upstream. | [optional] +**auth_username** | **String** | Username to provide with requests to upstream. | [optional] +**extra_header_1** | **String** | The key for extra header #1 to send to upstream. | [optional] +**extra_header_2** | **String** | The key for extra header #2 to send to upstream. | [optional] +**extra_value_1** | **String** | The value for extra header #1 to send to upstream. This is stored as plaintext, and is NOT encrypted. | [optional] +**extra_value_2** | **String** | The value for extra header #2 to send to upstream. This is stored as plaintext, and is NOT encrypted. | [optional] +**is_active** | **BOOLEAN** | Whether or not this upstream is active and ready for requests. | [optional] +**mode** | **String** | The mode that this upstream should operate in. Upstream sources can be used to proxy resolved packages, as well as operate in a proxy/cache or cache only mode. | [optional] [default to 'Proxy Only'] +**name** | **String** | A descriptive name for this upstream source. A shortened version of this name will be used for tagging cached packages retrieved from this upstream. | +**priority** | **Integer** | Upstream sources are selected for resolving requests by sequential order (1..n), followed by creation date. | [optional] +**upstream_url** | **String** | The URL for this upstream source. This must be a fully qualified URL including any path elements required to reach the root of the repository. | +**verify_ssl** | **BOOLEAN** | If enabled, SSL certificates are verified when requests are made to this upstream. It's recommended to leave this enabled for all public sources to help mitigate Man-In-The-Middle (MITM) attacks. Please note this only applies to HTTPS upstreams. | [optional] + + diff --git a/bindings/ruby/src/docs/CargoUpstreamRequestPatch.md b/bindings/ruby/src/docs/CargoUpstreamRequestPatch.md new file mode 100644 index 00000000..36e15bc2 --- /dev/null +++ b/bindings/ruby/src/docs/CargoUpstreamRequestPatch.md @@ -0,0 +1,20 @@ +# CloudsmithApi::CargoUpstreamRequestPatch + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**auth_mode** | **String** | The authentication mode to use when accessing this upstream. | [optional] [default to 'None'] +**auth_secret** | **String** | Secret to provide with requests to upstream. | [optional] +**auth_username** | **String** | Username to provide with requests to upstream. | [optional] +**extra_header_1** | **String** | The key for extra header #1 to send to upstream. | [optional] +**extra_header_2** | **String** | The key for extra header #2 to send to upstream. | [optional] +**extra_value_1** | **String** | The value for extra header #1 to send to upstream. This is stored as plaintext, and is NOT encrypted. | [optional] +**extra_value_2** | **String** | The value for extra header #2 to send to upstream. This is stored as plaintext, and is NOT encrypted. | [optional] +**is_active** | **BOOLEAN** | Whether or not this upstream is active and ready for requests. | [optional] +**mode** | **String** | The mode that this upstream should operate in. Upstream sources can be used to proxy resolved packages, as well as operate in a proxy/cache or cache only mode. | [optional] [default to 'Proxy Only'] +**name** | **String** | A descriptive name for this upstream source. A shortened version of this name will be used for tagging cached packages retrieved from this upstream. | [optional] +**priority** | **Integer** | Upstream sources are selected for resolving requests by sequential order (1..n), followed by creation date. | [optional] +**upstream_url** | **String** | The URL for this upstream source. This must be a fully qualified URL including any path elements required to reach the root of the repository. | [optional] +**verify_ssl** | **BOOLEAN** | If enabled, SSL certificates are verified when requests are made to this upstream. It's recommended to leave this enabled for all public sources to help mitigate Man-In-The-Middle (MITM) attacks. Please note this only applies to HTTPS upstreams. | [optional] + + diff --git a/bindings/ruby/src/docs/GoUpstream.md b/bindings/ruby/src/docs/GoUpstream.md new file mode 100644 index 00000000..196ea603 --- /dev/null +++ b/bindings/ruby/src/docs/GoUpstream.md @@ -0,0 +1,25 @@ +# CloudsmithApi::GoUpstream + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**auth_mode** | **String** | The authentication mode to use when accessing this upstream. | [optional] [default to 'None'] +**auth_secret** | **String** | Secret to provide with requests to upstream. | [optional] +**auth_username** | **String** | Username to provide with requests to upstream. | [optional] +**created_at** | **DateTime** | The datetime the upstream source was created. | [optional] +**disable_reason** | **String** | | [optional] [default to 'N/A'] +**extra_header_1** | **String** | The key for extra header #1 to send to upstream. | [optional] +**extra_header_2** | **String** | The key for extra header #2 to send to upstream. | [optional] +**extra_value_1** | **String** | The value for extra header #1 to send to upstream. This is stored as plaintext, and is NOT encrypted. | [optional] +**extra_value_2** | **String** | The value for extra header #2 to send to upstream. This is stored as plaintext, and is NOT encrypted. | [optional] +**is_active** | **BOOLEAN** | Whether or not this upstream is active and ready for requests. | [optional] +**mode** | **String** | The mode that this upstream should operate in. Upstream sources can be used to proxy resolved packages, as well as operate in a proxy/cache or cache only mode. | [optional] [default to 'Proxy Only'] +**name** | **String** | A descriptive name for this upstream source. A shortened version of this name will be used for tagging cached packages retrieved from this upstream. | +**pending_validation** | **BOOLEAN** | When true, this upstream source is pending validation. | [optional] +**priority** | **Integer** | Upstream sources are selected for resolving requests by sequential order (1..n), followed by creation date. | [optional] +**slug_perm** | **String** | | [optional] +**updated_at** | **DateTime** | | [optional] +**upstream_url** | **String** | The URL for this upstream source. This must be a fully qualified URL including any path elements required to reach the root of the repository. | +**verify_ssl** | **BOOLEAN** | If enabled, SSL certificates are verified when requests are made to this upstream. It's recommended to leave this enabled for all public sources to help mitigate Man-In-The-Middle (MITM) attacks. Please note this only applies to HTTPS upstreams. | [optional] + + diff --git a/bindings/ruby/src/docs/GoUpstreamRequest.md b/bindings/ruby/src/docs/GoUpstreamRequest.md new file mode 100644 index 00000000..60b80553 --- /dev/null +++ b/bindings/ruby/src/docs/GoUpstreamRequest.md @@ -0,0 +1,20 @@ +# CloudsmithApi::GoUpstreamRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**auth_mode** | **String** | The authentication mode to use when accessing this upstream. | [optional] [default to 'None'] +**auth_secret** | **String** | Secret to provide with requests to upstream. | [optional] +**auth_username** | **String** | Username to provide with requests to upstream. | [optional] +**extra_header_1** | **String** | The key for extra header #1 to send to upstream. | [optional] +**extra_header_2** | **String** | The key for extra header #2 to send to upstream. | [optional] +**extra_value_1** | **String** | The value for extra header #1 to send to upstream. This is stored as plaintext, and is NOT encrypted. | [optional] +**extra_value_2** | **String** | The value for extra header #2 to send to upstream. This is stored as plaintext, and is NOT encrypted. | [optional] +**is_active** | **BOOLEAN** | Whether or not this upstream is active and ready for requests. | [optional] +**mode** | **String** | The mode that this upstream should operate in. Upstream sources can be used to proxy resolved packages, as well as operate in a proxy/cache or cache only mode. | [optional] [default to 'Proxy Only'] +**name** | **String** | A descriptive name for this upstream source. A shortened version of this name will be used for tagging cached packages retrieved from this upstream. | +**priority** | **Integer** | Upstream sources are selected for resolving requests by sequential order (1..n), followed by creation date. | [optional] +**upstream_url** | **String** | The URL for this upstream source. This must be a fully qualified URL including any path elements required to reach the root of the repository. | +**verify_ssl** | **BOOLEAN** | If enabled, SSL certificates are verified when requests are made to this upstream. It's recommended to leave this enabled for all public sources to help mitigate Man-In-The-Middle (MITM) attacks. Please note this only applies to HTTPS upstreams. | [optional] + + diff --git a/bindings/ruby/src/docs/GoUpstreamRequestPatch.md b/bindings/ruby/src/docs/GoUpstreamRequestPatch.md new file mode 100644 index 00000000..d2949a7d --- /dev/null +++ b/bindings/ruby/src/docs/GoUpstreamRequestPatch.md @@ -0,0 +1,20 @@ +# CloudsmithApi::GoUpstreamRequestPatch + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**auth_mode** | **String** | The authentication mode to use when accessing this upstream. | [optional] [default to 'None'] +**auth_secret** | **String** | Secret to provide with requests to upstream. | [optional] +**auth_username** | **String** | Username to provide with requests to upstream. | [optional] +**extra_header_1** | **String** | The key for extra header #1 to send to upstream. | [optional] +**extra_header_2** | **String** | The key for extra header #2 to send to upstream. | [optional] +**extra_value_1** | **String** | The value for extra header #1 to send to upstream. This is stored as plaintext, and is NOT encrypted. | [optional] +**extra_value_2** | **String** | The value for extra header #2 to send to upstream. This is stored as plaintext, and is NOT encrypted. | [optional] +**is_active** | **BOOLEAN** | Whether or not this upstream is active and ready for requests. | [optional] +**mode** | **String** | The mode that this upstream should operate in. Upstream sources can be used to proxy resolved packages, as well as operate in a proxy/cache or cache only mode. | [optional] [default to 'Proxy Only'] +**name** | **String** | A descriptive name for this upstream source. A shortened version of this name will be used for tagging cached packages retrieved from this upstream. | [optional] +**priority** | **Integer** | Upstream sources are selected for resolving requests by sequential order (1..n), followed by creation date. | [optional] +**upstream_url** | **String** | The URL for this upstream source. This must be a fully qualified URL including any path elements required to reach the root of the repository. | [optional] +**verify_ssl** | **BOOLEAN** | If enabled, SSL certificates are verified when requests are made to this upstream. It's recommended to leave this enabled for all public sources to help mitigate Man-In-The-Middle (MITM) attacks. Please note this only applies to HTTPS upstreams. | [optional] + + diff --git a/bindings/ruby/src/docs/InlineResponse200.md b/bindings/ruby/src/docs/InlineResponse200.md index a36dccd4..43a9ce7f 100644 --- a/bindings/ruby/src/docs/InlineResponse200.md +++ b/bindings/ruby/src/docs/InlineResponse200.md @@ -3,6 +3,6 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**results** | [**Array<UserAuthenticationToken>**](UserAuthenticationToken.md) | | +**results** | [**Array<PackageGroup>**](PackageGroup.md) | | diff --git a/bindings/ruby/src/docs/InlineResponse2001.md b/bindings/ruby/src/docs/InlineResponse2001.md new file mode 100644 index 00000000..9ef01ba9 --- /dev/null +++ b/bindings/ruby/src/docs/InlineResponse2001.md @@ -0,0 +1,8 @@ +# CloudsmithApi::InlineResponse2001 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**results** | [**Array<UserAuthenticationToken>**](UserAuthenticationToken.md) | | + + diff --git a/bindings/ruby/src/docs/PackageGroup.md b/bindings/ruby/src/docs/PackageGroup.md new file mode 100644 index 00000000..79297444 --- /dev/null +++ b/bindings/ruby/src/docs/PackageGroup.md @@ -0,0 +1,13 @@ +# CloudsmithApi::PackageGroup + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**backend_kind** | **Integer** | | [optional] +**count** | **Integer** | | +**last_push** | **DateTime** | | +**name** | **String** | | [optional] +**num_downloads** | **Integer** | | +**size** | **Integer** | | + + diff --git a/bindings/ruby/src/docs/PackagesApi.md b/bindings/ruby/src/docs/PackagesApi.md index 64c5fe88..2368c4e8 100644 --- a/bindings/ruby/src/docs/PackagesApi.md +++ b/bindings/ruby/src/docs/PackagesApi.md @@ -7,6 +7,7 @@ Method | HTTP request | Description [**packages_copy**](PackagesApi.md#packages_copy) | **POST** /packages/{owner}/{repo}/{identifier}/copy/ | Copy a package to another repository. [**packages_delete**](PackagesApi.md#packages_delete) | **DELETE** /packages/{owner}/{repo}/{identifier}/ | Delete a specific package in a repository. [**packages_dependencies**](PackagesApi.md#packages_dependencies) | **GET** /packages/{owner}/{repo}/{identifier}/dependencies/ | Get the list of dependencies for a package. Transitive dependencies are included where supported. +[**packages_groups_list**](PackagesApi.md#packages_groups_list) | **GET** /packages/{owner}/{repo}/groups/ | Return a list of Package Groups in a repository. [**packages_list**](PackagesApi.md#packages_list) | **GET** /packages/{owner}/{repo}/ | Get a list of all packages associated with repository. [**packages_move**](PackagesApi.md#packages_move) | **POST** /packages/{owner}/{repo}/{identifier}/move/ | Move a package to another repository. [**packages_quarantine**](PackagesApi.md#packages_quarantine) | **POST** /packages/{owner}/{repo}/{identifier}/quarantine/ | Quarantine or release a package. @@ -262,6 +263,79 @@ Name | Type | Description | Notes +# **packages_groups_list** +> InlineResponse200 packages_groups_list(owner, repo, opts) + +Return a list of Package Groups in a repository. + +Return a list of Package Groups in a repository. + +### Example +```ruby +# load the gem +require 'cloudsmith-api' +# setup authorization +CloudsmithApi.configure do |config| + # Configure API key authorization: apikey + config.api_key['X-Api-Key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + #config.api_key_prefix['X-Api-Key'] = 'Bearer' + + # Configure HTTP basic authorization: basic + config.username = 'YOUR USERNAME' + config.password = 'YOUR PASSWORD' +end + +api_instance = CloudsmithApi::PackagesApi.new + +owner = 'owner_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. + group_by: 'name', # String | A field to group packages by. Available options: name, backend_kind. + query: '', # String | A search term for querying names, filenames, versions, distributions, architectures, formats, or statuses of packages. + sort: 'name' # String | A field for sorting objects in ascending or descending order. Use `-` prefix for descending order (e.g., `-name`). Available options: name, count, num_downloads, size, last_push, backend_kind. +} + +begin + #Return a list of Package Groups in a repository. + result = api_instance.packages_groups_list(owner, repo, opts) + p result +rescue CloudsmithApi::ApiError => e + puts "Exception when calling PackagesApi->packages_groups_list: #{e}" +end +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| | + **repo** | **String**| | + **page** | **Integer**| A page number within the paginated result set. | [optional] + **page_size** | **Integer**| Number of results to return per page. | [optional] + **group_by** | **String**| A field to group packages by. Available options: name, backend_kind. | [optional] [default to name] + **query** | **String**| A search term for querying names, filenames, versions, distributions, architectures, formats, or statuses of packages. | [optional] [default to ] + **sort** | **String**| A field for sorting objects in ascending or descending order. Use `-` prefix for descending order (e.g., `-name`). Available options: name, count, num_downloads, size, last_push, backend_kind. | [optional] [default to name] + +### Return type + +[**InlineResponse200**](InlineResponse200.md) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + + # **packages_list** > Array<Package> packages_list(owner, repo, opts) diff --git a/bindings/ruby/src/docs/ReposApi.md b/bindings/ruby/src/docs/ReposApi.md index f2e9dee2..a0a63e5e 100644 --- a/bindings/ruby/src/docs/ReposApi.md +++ b/bindings/ruby/src/docs/ReposApi.md @@ -31,6 +31,12 @@ Method | HTTP request | Description [**repos_rsa_list**](ReposApi.md#repos_rsa_list) | **GET** /repos/{owner}/{identifier}/rsa/ | Retrieve the active RSA key for the Repository. [**repos_rsa_regenerate**](ReposApi.md#repos_rsa_regenerate) | **POST** /repos/{owner}/{identifier}/rsa/regenerate/ | Regenerate RSA Key for the Repository. [**repos_transfer_region**](ReposApi.md#repos_transfer_region) | **POST** /repos/{owner}/{repo}/transfer-region/ | Transfer a repository to a different region. +[**repos_upstream_cargo_create**](ReposApi.md#repos_upstream_cargo_create) | **POST** /repos/{owner}/{identifier}/upstream/cargo/ | Create a Cargo upstream config for this repository. +[**repos_upstream_cargo_delete**](ReposApi.md#repos_upstream_cargo_delete) | **DELETE** /repos/{owner}/{identifier}/upstream/cargo/{slug_perm}/ | Delete a Cargo upstream config for this repository. +[**repos_upstream_cargo_list**](ReposApi.md#repos_upstream_cargo_list) | **GET** /repos/{owner}/{identifier}/upstream/cargo/ | List Cargo upstream configs for this repository. +[**repos_upstream_cargo_partial_update**](ReposApi.md#repos_upstream_cargo_partial_update) | **PATCH** /repos/{owner}/{identifier}/upstream/cargo/{slug_perm}/ | Partially update a Cargo upstream config for this repository. +[**repos_upstream_cargo_read**](ReposApi.md#repos_upstream_cargo_read) | **GET** /repos/{owner}/{identifier}/upstream/cargo/{slug_perm}/ | Retrieve a Cargo upstream config for this repository. +[**repos_upstream_cargo_update**](ReposApi.md#repos_upstream_cargo_update) | **PUT** /repos/{owner}/{identifier}/upstream/cargo/{slug_perm}/ | Update a Cargo upstream config for this repository. [**repos_upstream_composer_create**](ReposApi.md#repos_upstream_composer_create) | **POST** /repos/{owner}/{identifier}/upstream/composer/ | Create a Composer upstream config for this repository. [**repos_upstream_composer_delete**](ReposApi.md#repos_upstream_composer_delete) | **DELETE** /repos/{owner}/{identifier}/upstream/composer/{slug_perm}/ | Delete a Composer upstream config for this repository. [**repos_upstream_composer_list**](ReposApi.md#repos_upstream_composer_list) | **GET** /repos/{owner}/{identifier}/upstream/composer/ | List Composer upstream configs for this repository. @@ -61,6 +67,12 @@ Method | HTTP request | Description [**repos_upstream_docker_partial_update**](ReposApi.md#repos_upstream_docker_partial_update) | **PATCH** /repos/{owner}/{identifier}/upstream/docker/{slug_perm}/ | Partially update a Docker upstream config for this repository. [**repos_upstream_docker_read**](ReposApi.md#repos_upstream_docker_read) | **GET** /repos/{owner}/{identifier}/upstream/docker/{slug_perm}/ | Retrieve a Docker upstream config for this repository. [**repos_upstream_docker_update**](ReposApi.md#repos_upstream_docker_update) | **PUT** /repos/{owner}/{identifier}/upstream/docker/{slug_perm}/ | Update a Docker upstream config for this repository. +[**repos_upstream_go_create**](ReposApi.md#repos_upstream_go_create) | **POST** /repos/{owner}/{identifier}/upstream/go/ | Create a Go upstream config for this repository. +[**repos_upstream_go_delete**](ReposApi.md#repos_upstream_go_delete) | **DELETE** /repos/{owner}/{identifier}/upstream/go/{slug_perm}/ | Delete a Go upstream config for this repository. +[**repos_upstream_go_list**](ReposApi.md#repos_upstream_go_list) | **GET** /repos/{owner}/{identifier}/upstream/go/ | List Go upstream configs for this repository. +[**repos_upstream_go_partial_update**](ReposApi.md#repos_upstream_go_partial_update) | **PATCH** /repos/{owner}/{identifier}/upstream/go/{slug_perm}/ | Partially update a Go upstream config for this repository. +[**repos_upstream_go_read**](ReposApi.md#repos_upstream_go_read) | **GET** /repos/{owner}/{identifier}/upstream/go/{slug_perm}/ | Retrieve a Go upstream config for this repository. +[**repos_upstream_go_update**](ReposApi.md#repos_upstream_go_update) | **PUT** /repos/{owner}/{identifier}/upstream/go/{slug_perm}/ | Update a Go upstream config for this repository. [**repos_upstream_helm_create**](ReposApi.md#repos_upstream_helm_create) | **POST** /repos/{owner}/{identifier}/upstream/helm/ | Create a Helm upstream config for this repository. [**repos_upstream_helm_delete**](ReposApi.md#repos_upstream_helm_delete) | **DELETE** /repos/{owner}/{identifier}/upstream/helm/{slug_perm}/ | Delete a Helm upstream config for this repository. [**repos_upstream_helm_list**](ReposApi.md#repos_upstream_helm_list) | **GET** /repos/{owner}/{identifier}/upstream/helm/ | List Helm upstream configs for this repository. @@ -1823,12 +1835,12 @@ nil (empty response body) -# **repos_upstream_composer_create** -> ComposerUpstream repos_upstream_composer_create(owner, identifier, opts) +# **repos_upstream_cargo_create** +> CargoUpstream repos_upstream_cargo_create(owner, identifier, opts) -Create a Composer upstream config for this repository. +Create a Cargo upstream config for this repository. -Create a Composer upstream config for this repository. +Create a Cargo upstream config for this repository. ### Example ```ruby @@ -1853,15 +1865,15 @@ owner = 'owner_example' # String | identifier = 'identifier_example' # String | opts = { - data: CloudsmithApi::ComposerUpstreamRequest.new # ComposerUpstreamRequest | + data: CloudsmithApi::CargoUpstreamRequest.new # CargoUpstreamRequest | } begin - #Create a Composer upstream config for this repository. - result = api_instance.repos_upstream_composer_create(owner, identifier, opts) + #Create a Cargo upstream config for this repository. + result = api_instance.repos_upstream_cargo_create(owner, identifier, opts) p result rescue CloudsmithApi::ApiError => e - puts "Exception when calling ReposApi->repos_upstream_composer_create: #{e}" + puts "Exception when calling ReposApi->repos_upstream_cargo_create: #{e}" end ``` @@ -1871,11 +1883,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **owner** | **String**| | **identifier** | **String**| | - **data** | [**ComposerUpstreamRequest**](ComposerUpstreamRequest.md)| | [optional] + **data** | [**CargoUpstreamRequest**](CargoUpstreamRequest.md)| | [optional] ### Return type -[**ComposerUpstream**](ComposerUpstream.md) +[**CargoUpstream**](CargoUpstream.md) ### Authorization @@ -1888,12 +1900,12 @@ Name | Type | Description | Notes -# **repos_upstream_composer_delete** -> repos_upstream_composer_delete(owner, identifier, slug_perm) +# **repos_upstream_cargo_delete** +> repos_upstream_cargo_delete(owner, identifier, slug_perm) -Delete a Composer upstream config for this repository. +Delete a Cargo upstream config for this repository. -Delete a Composer upstream config for this repository. +Delete a Cargo upstream config for this repository. ### Example ```ruby @@ -1921,10 +1933,10 @@ slug_perm = 'slug_perm_example' # String | begin - #Delete a Composer upstream config for this repository. - api_instance.repos_upstream_composer_delete(owner, identifier, slug_perm) + #Delete a Cargo upstream config for this repository. + api_instance.repos_upstream_cargo_delete(owner, identifier, slug_perm) rescue CloudsmithApi::ApiError => e - puts "Exception when calling ReposApi->repos_upstream_composer_delete: #{e}" + puts "Exception when calling ReposApi->repos_upstream_cargo_delete: #{e}" end ``` @@ -1951,12 +1963,12 @@ nil (empty response body) -# **repos_upstream_composer_list** -> Array<ComposerUpstream> repos_upstream_composer_list(owner, identifier, opts) +# **repos_upstream_cargo_list** +> Array<CargoUpstream> repos_upstream_cargo_list(owner, identifier, opts) -List Composer upstream configs for this repository. +List Cargo upstream configs for this repository. -List Composer upstream configs for this repository. +List Cargo upstream configs for this repository. ### Example ```ruby @@ -1986,11 +1998,11 @@ opts = { } begin - #List Composer upstream configs for this repository. - result = api_instance.repos_upstream_composer_list(owner, identifier, opts) + #List Cargo upstream configs for this repository. + result = api_instance.repos_upstream_cargo_list(owner, identifier, opts) p result rescue CloudsmithApi::ApiError => e - puts "Exception when calling ReposApi->repos_upstream_composer_list: #{e}" + puts "Exception when calling ReposApi->repos_upstream_cargo_list: #{e}" end ``` @@ -2005,7 +2017,7 @@ Name | Type | Description | Notes ### Return type -[**Array<ComposerUpstream>**](ComposerUpstream.md) +[**Array<CargoUpstream>**](CargoUpstream.md) ### Authorization @@ -2018,12 +2030,12 @@ Name | Type | Description | Notes -# **repos_upstream_composer_partial_update** -> ComposerUpstream repos_upstream_composer_partial_update(owner, identifier, slug_perm, opts) +# **repos_upstream_cargo_partial_update** +> CargoUpstream repos_upstream_cargo_partial_update(owner, identifier, slug_perm, opts) -Partially update a Composer upstream config for this repository. +Partially update a Cargo upstream config for this repository. -Partially update a Composer upstream config for this repository. +Partially update a Cargo upstream config for this repository. ### Example ```ruby @@ -2050,15 +2062,15 @@ identifier = 'identifier_example' # String | slug_perm = 'slug_perm_example' # String | opts = { - data: CloudsmithApi::ComposerUpstreamRequestPatch.new # ComposerUpstreamRequestPatch | + data: CloudsmithApi::CargoUpstreamRequestPatch.new # CargoUpstreamRequestPatch | } begin - #Partially update a Composer upstream config for this repository. - result = api_instance.repos_upstream_composer_partial_update(owner, identifier, slug_perm, opts) + #Partially update a Cargo upstream config for this repository. + result = api_instance.repos_upstream_cargo_partial_update(owner, identifier, slug_perm, opts) p result rescue CloudsmithApi::ApiError => e - puts "Exception when calling ReposApi->repos_upstream_composer_partial_update: #{e}" + puts "Exception when calling ReposApi->repos_upstream_cargo_partial_update: #{e}" end ``` @@ -2069,11 +2081,11 @@ Name | Type | Description | Notes **owner** | **String**| | **identifier** | **String**| | **slug_perm** | **String**| | - **data** | [**ComposerUpstreamRequestPatch**](ComposerUpstreamRequestPatch.md)| | [optional] + **data** | [**CargoUpstreamRequestPatch**](CargoUpstreamRequestPatch.md)| | [optional] ### Return type -[**ComposerUpstream**](ComposerUpstream.md) +[**CargoUpstream**](CargoUpstream.md) ### Authorization @@ -2086,12 +2098,12 @@ Name | Type | Description | Notes -# **repos_upstream_composer_read** -> ComposerUpstream repos_upstream_composer_read(owner, identifier, slug_perm) +# **repos_upstream_cargo_read** +> CargoUpstream repos_upstream_cargo_read(owner, identifier, slug_perm) -Retrieve a Composer upstream config for this repository. +Retrieve a Cargo upstream config for this repository. -Retrieve a Composer upstream config for this repository. +Retrieve a Cargo upstream config for this repository. ### Example ```ruby @@ -2119,11 +2131,11 @@ slug_perm = 'slug_perm_example' # String | begin - #Retrieve a Composer upstream config for this repository. - result = api_instance.repos_upstream_composer_read(owner, identifier, slug_perm) + #Retrieve a Cargo upstream config for this repository. + result = api_instance.repos_upstream_cargo_read(owner, identifier, slug_perm) p result rescue CloudsmithApi::ApiError => e - puts "Exception when calling ReposApi->repos_upstream_composer_read: #{e}" + puts "Exception when calling ReposApi->repos_upstream_cargo_read: #{e}" end ``` @@ -2137,7 +2149,7 @@ Name | Type | Description | Notes ### Return type -[**ComposerUpstream**](ComposerUpstream.md) +[**CargoUpstream**](CargoUpstream.md) ### Authorization @@ -2150,12 +2162,12 @@ Name | Type | Description | Notes -# **repos_upstream_composer_update** -> ComposerUpstream repos_upstream_composer_update(owner, identifier, slug_perm, opts) +# **repos_upstream_cargo_update** +> CargoUpstream repos_upstream_cargo_update(owner, identifier, slug_perm, opts) -Update a Composer upstream config for this repository. +Update a Cargo upstream config for this repository. -Update a Composer upstream config for this repository. +Update a Cargo upstream config for this repository. ### Example ```ruby @@ -2182,15 +2194,15 @@ identifier = 'identifier_example' # String | slug_perm = 'slug_perm_example' # String | opts = { - data: CloudsmithApi::ComposerUpstreamRequest.new # ComposerUpstreamRequest | + data: CloudsmithApi::CargoUpstreamRequest.new # CargoUpstreamRequest | } begin - #Update a Composer upstream config for this repository. - result = api_instance.repos_upstream_composer_update(owner, identifier, slug_perm, opts) + #Update a Cargo upstream config for this repository. + result = api_instance.repos_upstream_cargo_update(owner, identifier, slug_perm, opts) p result rescue CloudsmithApi::ApiError => e - puts "Exception when calling ReposApi->repos_upstream_composer_update: #{e}" + puts "Exception when calling ReposApi->repos_upstream_cargo_update: #{e}" end ``` @@ -2201,11 +2213,11 @@ Name | Type | Description | Notes **owner** | **String**| | **identifier** | **String**| | **slug_perm** | **String**| | - **data** | [**ComposerUpstreamRequest**](ComposerUpstreamRequest.md)| | [optional] + **data** | [**CargoUpstreamRequest**](CargoUpstreamRequest.md)| | [optional] ### Return type -[**ComposerUpstream**](ComposerUpstream.md) +[**CargoUpstream**](CargoUpstream.md) ### Authorization @@ -2218,12 +2230,12 @@ Name | Type | Description | Notes -# **repos_upstream_cran_create** -> CranUpstream repos_upstream_cran_create(owner, identifier, opts) +# **repos_upstream_composer_create** +> ComposerUpstream repos_upstream_composer_create(owner, identifier, opts) -Create a CRAN upstream config for this repository. +Create a Composer upstream config for this repository. -Create a CRAN upstream config for this repository. +Create a Composer upstream config for this repository. ### Example ```ruby @@ -2248,15 +2260,15 @@ owner = 'owner_example' # String | identifier = 'identifier_example' # String | opts = { - data: CloudsmithApi::CranUpstreamRequest.new # CranUpstreamRequest | + data: CloudsmithApi::ComposerUpstreamRequest.new # ComposerUpstreamRequest | } begin - #Create a CRAN upstream config for this repository. - result = api_instance.repos_upstream_cran_create(owner, identifier, opts) + #Create a Composer upstream config for this repository. + result = api_instance.repos_upstream_composer_create(owner, identifier, opts) p result rescue CloudsmithApi::ApiError => e - puts "Exception when calling ReposApi->repos_upstream_cran_create: #{e}" + puts "Exception when calling ReposApi->repos_upstream_composer_create: #{e}" end ``` @@ -2266,11 +2278,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **owner** | **String**| | **identifier** | **String**| | - **data** | [**CranUpstreamRequest**](CranUpstreamRequest.md)| | [optional] + **data** | [**ComposerUpstreamRequest**](ComposerUpstreamRequest.md)| | [optional] ### Return type -[**CranUpstream**](CranUpstream.md) +[**ComposerUpstream**](ComposerUpstream.md) ### Authorization @@ -2283,12 +2295,12 @@ Name | Type | Description | Notes -# **repos_upstream_cran_delete** -> repos_upstream_cran_delete(owner, identifier, slug_perm) +# **repos_upstream_composer_delete** +> repos_upstream_composer_delete(owner, identifier, slug_perm) -Delete a CRAN upstream config for this repository. +Delete a Composer upstream config for this repository. -Delete a CRAN upstream config for this repository. +Delete a Composer upstream config for this repository. ### Example ```ruby @@ -2316,10 +2328,10 @@ slug_perm = 'slug_perm_example' # String | begin - #Delete a CRAN upstream config for this repository. - api_instance.repos_upstream_cran_delete(owner, identifier, slug_perm) + #Delete a Composer upstream config for this repository. + api_instance.repos_upstream_composer_delete(owner, identifier, slug_perm) rescue CloudsmithApi::ApiError => e - puts "Exception when calling ReposApi->repos_upstream_cran_delete: #{e}" + puts "Exception when calling ReposApi->repos_upstream_composer_delete: #{e}" end ``` @@ -2346,12 +2358,12 @@ nil (empty response body) -# **repos_upstream_cran_list** -> Array<CranUpstream> repos_upstream_cran_list(owner, identifier, opts) +# **repos_upstream_composer_list** +> Array<ComposerUpstream> repos_upstream_composer_list(owner, identifier, opts) -List CRAN upstream configs for this repository. +List Composer upstream configs for this repository. -List CRAN upstream configs for this repository. +List Composer upstream configs for this repository. ### Example ```ruby @@ -2381,11 +2393,11 @@ opts = { } begin - #List CRAN upstream configs for this repository. - result = api_instance.repos_upstream_cran_list(owner, identifier, opts) + #List Composer upstream configs for this repository. + result = api_instance.repos_upstream_composer_list(owner, identifier, opts) p result rescue CloudsmithApi::ApiError => e - puts "Exception when calling ReposApi->repos_upstream_cran_list: #{e}" + puts "Exception when calling ReposApi->repos_upstream_composer_list: #{e}" end ``` @@ -2400,7 +2412,7 @@ Name | Type | Description | Notes ### Return type -[**Array<CranUpstream>**](CranUpstream.md) +[**Array<ComposerUpstream>**](ComposerUpstream.md) ### Authorization @@ -2413,12 +2425,12 @@ Name | Type | Description | Notes -# **repos_upstream_cran_partial_update** -> CranUpstream repos_upstream_cran_partial_update(owner, identifier, slug_perm, opts) +# **repos_upstream_composer_partial_update** +> ComposerUpstream repos_upstream_composer_partial_update(owner, identifier, slug_perm, opts) -Partially update a CRAN upstream config for this repository. +Partially update a Composer upstream config for this repository. -Partially update a CRAN upstream config for this repository. +Partially update a Composer upstream config for this repository. ### Example ```ruby @@ -2445,15 +2457,15 @@ identifier = 'identifier_example' # String | slug_perm = 'slug_perm_example' # String | opts = { - data: CloudsmithApi::CranUpstreamRequestPatch.new # CranUpstreamRequestPatch | + data: CloudsmithApi::ComposerUpstreamRequestPatch.new # ComposerUpstreamRequestPatch | } begin - #Partially update a CRAN upstream config for this repository. - result = api_instance.repos_upstream_cran_partial_update(owner, identifier, slug_perm, opts) + #Partially update a Composer upstream config for this repository. + result = api_instance.repos_upstream_composer_partial_update(owner, identifier, slug_perm, opts) p result rescue CloudsmithApi::ApiError => e - puts "Exception when calling ReposApi->repos_upstream_cran_partial_update: #{e}" + puts "Exception when calling ReposApi->repos_upstream_composer_partial_update: #{e}" end ``` @@ -2464,11 +2476,11 @@ Name | Type | Description | Notes **owner** | **String**| | **identifier** | **String**| | **slug_perm** | **String**| | - **data** | [**CranUpstreamRequestPatch**](CranUpstreamRequestPatch.md)| | [optional] + **data** | [**ComposerUpstreamRequestPatch**](ComposerUpstreamRequestPatch.md)| | [optional] ### Return type -[**CranUpstream**](CranUpstream.md) +[**ComposerUpstream**](ComposerUpstream.md) ### Authorization @@ -2481,12 +2493,12 @@ Name | Type | Description | Notes -# **repos_upstream_cran_read** -> CranUpstream repos_upstream_cran_read(owner, identifier, slug_perm) +# **repos_upstream_composer_read** +> ComposerUpstream repos_upstream_composer_read(owner, identifier, slug_perm) -Retrieve a CRAN upstream config for this repository. +Retrieve a Composer upstream config for this repository. -Retrieve a CRAN upstream config for this repository. +Retrieve a Composer upstream config for this repository. ### Example ```ruby @@ -2514,11 +2526,11 @@ slug_perm = 'slug_perm_example' # String | begin - #Retrieve a CRAN upstream config for this repository. - result = api_instance.repos_upstream_cran_read(owner, identifier, slug_perm) + #Retrieve a Composer upstream config for this repository. + result = api_instance.repos_upstream_composer_read(owner, identifier, slug_perm) p result rescue CloudsmithApi::ApiError => e - puts "Exception when calling ReposApi->repos_upstream_cran_read: #{e}" + puts "Exception when calling ReposApi->repos_upstream_composer_read: #{e}" end ``` @@ -2532,7 +2544,7 @@ Name | Type | Description | Notes ### Return type -[**CranUpstream**](CranUpstream.md) +[**ComposerUpstream**](ComposerUpstream.md) ### Authorization @@ -2545,12 +2557,12 @@ Name | Type | Description | Notes -# **repos_upstream_cran_update** -> CranUpstream repos_upstream_cran_update(owner, identifier, slug_perm, opts) +# **repos_upstream_composer_update** +> ComposerUpstream repos_upstream_composer_update(owner, identifier, slug_perm, opts) -Update a CRAN upstream config for this repository. +Update a Composer upstream config for this repository. -Update a CRAN upstream config for this repository. +Update a Composer upstream config for this repository. ### Example ```ruby @@ -2577,15 +2589,15 @@ identifier = 'identifier_example' # String | slug_perm = 'slug_perm_example' # String | opts = { - data: CloudsmithApi::CranUpstreamRequest.new # CranUpstreamRequest | + data: CloudsmithApi::ComposerUpstreamRequest.new # ComposerUpstreamRequest | } begin - #Update a CRAN upstream config for this repository. - result = api_instance.repos_upstream_cran_update(owner, identifier, slug_perm, opts) + #Update a Composer upstream config for this repository. + result = api_instance.repos_upstream_composer_update(owner, identifier, slug_perm, opts) p result rescue CloudsmithApi::ApiError => e - puts "Exception when calling ReposApi->repos_upstream_cran_update: #{e}" + puts "Exception when calling ReposApi->repos_upstream_composer_update: #{e}" end ``` @@ -2596,11 +2608,11 @@ Name | Type | Description | Notes **owner** | **String**| | **identifier** | **String**| | **slug_perm** | **String**| | - **data** | [**CranUpstreamRequest**](CranUpstreamRequest.md)| | [optional] + **data** | [**ComposerUpstreamRequest**](ComposerUpstreamRequest.md)| | [optional] ### Return type -[**CranUpstream**](CranUpstream.md) +[**ComposerUpstream**](ComposerUpstream.md) ### Authorization @@ -2613,12 +2625,12 @@ Name | Type | Description | Notes -# **repos_upstream_dart_create** -> DartUpstream repos_upstream_dart_create(owner, identifier, opts) +# **repos_upstream_cran_create** +> CranUpstream repos_upstream_cran_create(owner, identifier, opts) -Create a Dart upstream config for this repository. +Create a CRAN upstream config for this repository. -Create a Dart upstream config for this repository. +Create a CRAN upstream config for this repository. ### Example ```ruby @@ -2643,15 +2655,15 @@ owner = 'owner_example' # String | identifier = 'identifier_example' # String | opts = { - data: CloudsmithApi::DartUpstreamRequest.new # DartUpstreamRequest | + data: CloudsmithApi::CranUpstreamRequest.new # CranUpstreamRequest | } begin - #Create a Dart upstream config for this repository. - result = api_instance.repos_upstream_dart_create(owner, identifier, opts) + #Create a CRAN upstream config for this repository. + result = api_instance.repos_upstream_cran_create(owner, identifier, opts) p result rescue CloudsmithApi::ApiError => e - puts "Exception when calling ReposApi->repos_upstream_dart_create: #{e}" + puts "Exception when calling ReposApi->repos_upstream_cran_create: #{e}" end ``` @@ -2661,11 +2673,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **owner** | **String**| | **identifier** | **String**| | - **data** | [**DartUpstreamRequest**](DartUpstreamRequest.md)| | [optional] + **data** | [**CranUpstreamRequest**](CranUpstreamRequest.md)| | [optional] ### Return type -[**DartUpstream**](DartUpstream.md) +[**CranUpstream**](CranUpstream.md) ### Authorization @@ -2678,12 +2690,12 @@ Name | Type | Description | Notes -# **repos_upstream_dart_delete** -> repos_upstream_dart_delete(owner, identifier, slug_perm) +# **repos_upstream_cran_delete** +> repos_upstream_cran_delete(owner, identifier, slug_perm) -Delete a Dart upstream config for this repository. +Delete a CRAN upstream config for this repository. -Delete a Dart upstream config for this repository. +Delete a CRAN upstream config for this repository. ### Example ```ruby @@ -2711,10 +2723,10 @@ slug_perm = 'slug_perm_example' # String | begin - #Delete a Dart upstream config for this repository. - api_instance.repos_upstream_dart_delete(owner, identifier, slug_perm) + #Delete a CRAN upstream config for this repository. + api_instance.repos_upstream_cran_delete(owner, identifier, slug_perm) rescue CloudsmithApi::ApiError => e - puts "Exception when calling ReposApi->repos_upstream_dart_delete: #{e}" + puts "Exception when calling ReposApi->repos_upstream_cran_delete: #{e}" end ``` @@ -2741,12 +2753,12 @@ nil (empty response body) -# **repos_upstream_dart_list** -> Array<DartUpstream> repos_upstream_dart_list(owner, identifier, opts) +# **repos_upstream_cran_list** +> Array<CranUpstream> repos_upstream_cran_list(owner, identifier, opts) -List Dart upstream configs for this repository. +List CRAN upstream configs for this repository. -List Dart upstream configs for this repository. +List CRAN upstream configs for this repository. ### Example ```ruby @@ -2776,11 +2788,11 @@ opts = { } begin - #List Dart upstream configs for this repository. - result = api_instance.repos_upstream_dart_list(owner, identifier, opts) + #List CRAN upstream configs for this repository. + result = api_instance.repos_upstream_cran_list(owner, identifier, opts) p result rescue CloudsmithApi::ApiError => e - puts "Exception when calling ReposApi->repos_upstream_dart_list: #{e}" + puts "Exception when calling ReposApi->repos_upstream_cran_list: #{e}" end ``` @@ -2795,7 +2807,7 @@ Name | Type | Description | Notes ### Return type -[**Array<DartUpstream>**](DartUpstream.md) +[**Array<CranUpstream>**](CranUpstream.md) ### Authorization @@ -2808,12 +2820,12 @@ Name | Type | Description | Notes -# **repos_upstream_dart_partial_update** -> DartUpstream repos_upstream_dart_partial_update(owner, identifier, slug_perm, opts) +# **repos_upstream_cran_partial_update** +> CranUpstream repos_upstream_cran_partial_update(owner, identifier, slug_perm, opts) -Partially update a Dart upstream config for this repository. +Partially update a CRAN upstream config for this repository. -Partially update a Dart upstream config for this repository. +Partially update a CRAN upstream config for this repository. ### Example ```ruby @@ -2840,15 +2852,15 @@ identifier = 'identifier_example' # String | slug_perm = 'slug_perm_example' # String | opts = { - data: CloudsmithApi::DartUpstreamRequestPatch.new # DartUpstreamRequestPatch | + data: CloudsmithApi::CranUpstreamRequestPatch.new # CranUpstreamRequestPatch | } begin - #Partially update a Dart upstream config for this repository. - result = api_instance.repos_upstream_dart_partial_update(owner, identifier, slug_perm, opts) + #Partially update a CRAN upstream config for this repository. + result = api_instance.repos_upstream_cran_partial_update(owner, identifier, slug_perm, opts) p result rescue CloudsmithApi::ApiError => e - puts "Exception when calling ReposApi->repos_upstream_dart_partial_update: #{e}" + puts "Exception when calling ReposApi->repos_upstream_cran_partial_update: #{e}" end ``` @@ -2859,11 +2871,11 @@ Name | Type | Description | Notes **owner** | **String**| | **identifier** | **String**| | **slug_perm** | **String**| | - **data** | [**DartUpstreamRequestPatch**](DartUpstreamRequestPatch.md)| | [optional] + **data** | [**CranUpstreamRequestPatch**](CranUpstreamRequestPatch.md)| | [optional] ### Return type -[**DartUpstream**](DartUpstream.md) +[**CranUpstream**](CranUpstream.md) ### Authorization @@ -2876,12 +2888,12 @@ Name | Type | Description | Notes -# **repos_upstream_dart_read** -> DartUpstream repos_upstream_dart_read(owner, identifier, slug_perm) +# **repos_upstream_cran_read** +> CranUpstream repos_upstream_cran_read(owner, identifier, slug_perm) -Retrieve a Dart upstream config for this repository. +Retrieve a CRAN upstream config for this repository. -Retrieve a Dart upstream config for this repository. +Retrieve a CRAN upstream config for this repository. ### Example ```ruby @@ -2909,11 +2921,11 @@ slug_perm = 'slug_perm_example' # String | begin - #Retrieve a Dart upstream config for this repository. - result = api_instance.repos_upstream_dart_read(owner, identifier, slug_perm) + #Retrieve a CRAN upstream config for this repository. + result = api_instance.repos_upstream_cran_read(owner, identifier, slug_perm) p result rescue CloudsmithApi::ApiError => e - puts "Exception when calling ReposApi->repos_upstream_dart_read: #{e}" + puts "Exception when calling ReposApi->repos_upstream_cran_read: #{e}" end ``` @@ -2927,7 +2939,7 @@ Name | Type | Description | Notes ### Return type -[**DartUpstream**](DartUpstream.md) +[**CranUpstream**](CranUpstream.md) ### Authorization @@ -2940,12 +2952,12 @@ Name | Type | Description | Notes -# **repos_upstream_dart_update** -> DartUpstream repos_upstream_dart_update(owner, identifier, slug_perm, opts) +# **repos_upstream_cran_update** +> CranUpstream repos_upstream_cran_update(owner, identifier, slug_perm, opts) -Update a Dart upstream config for this repository. +Update a CRAN upstream config for this repository. -Update a Dart upstream config for this repository. +Update a CRAN upstream config for this repository. ### Example ```ruby @@ -2972,15 +2984,738 @@ identifier = 'identifier_example' # String | slug_perm = 'slug_perm_example' # String | opts = { - data: CloudsmithApi::DartUpstreamRequest.new # DartUpstreamRequest | + data: CloudsmithApi::CranUpstreamRequest.new # CranUpstreamRequest | } begin - #Update a Dart upstream config for this repository. + #Update a CRAN upstream config for this repository. + result = api_instance.repos_upstream_cran_update(owner, identifier, slug_perm, opts) + p result +rescue CloudsmithApi::ApiError => e + puts "Exception when calling ReposApi->repos_upstream_cran_update: #{e}" +end +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| | + **identifier** | **String**| | + **slug_perm** | **String**| | + **data** | [**CranUpstreamRequest**](CranUpstreamRequest.md)| | [optional] + +### Return type + +[**CranUpstream**](CranUpstream.md) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + + +# **repos_upstream_dart_create** +> DartUpstream repos_upstream_dart_create(owner, identifier, opts) + +Create a Dart upstream config for this repository. + +Create a Dart upstream config for this repository. + +### Example +```ruby +# load the gem +require 'cloudsmith-api' +# setup authorization +CloudsmithApi.configure do |config| + # Configure API key authorization: apikey + config.api_key['X-Api-Key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + #config.api_key_prefix['X-Api-Key'] = 'Bearer' + + # Configure HTTP basic authorization: basic + config.username = 'YOUR USERNAME' + config.password = 'YOUR PASSWORD' +end + +api_instance = CloudsmithApi::ReposApi.new + +owner = 'owner_example' # String | + +identifier = 'identifier_example' # String | + +opts = { + data: CloudsmithApi::DartUpstreamRequest.new # DartUpstreamRequest | +} + +begin + #Create a Dart upstream config for this repository. + result = api_instance.repos_upstream_dart_create(owner, identifier, opts) + p result +rescue CloudsmithApi::ApiError => e + puts "Exception when calling ReposApi->repos_upstream_dart_create: #{e}" +end +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| | + **identifier** | **String**| | + **data** | [**DartUpstreamRequest**](DartUpstreamRequest.md)| | [optional] + +### Return type + +[**DartUpstream**](DartUpstream.md) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + + +# **repos_upstream_dart_delete** +> repos_upstream_dart_delete(owner, identifier, slug_perm) + +Delete a Dart upstream config for this repository. + +Delete a Dart upstream config for this repository. + +### Example +```ruby +# load the gem +require 'cloudsmith-api' +# setup authorization +CloudsmithApi.configure do |config| + # Configure API key authorization: apikey + config.api_key['X-Api-Key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + #config.api_key_prefix['X-Api-Key'] = 'Bearer' + + # Configure HTTP basic authorization: basic + config.username = 'YOUR USERNAME' + config.password = 'YOUR PASSWORD' +end + +api_instance = CloudsmithApi::ReposApi.new + +owner = 'owner_example' # String | + +identifier = 'identifier_example' # String | + +slug_perm = 'slug_perm_example' # String | + + +begin + #Delete a Dart upstream config for this repository. + api_instance.repos_upstream_dart_delete(owner, identifier, slug_perm) +rescue CloudsmithApi::ApiError => e + puts "Exception when calling ReposApi->repos_upstream_dart_delete: #{e}" +end +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| | + **identifier** | **String**| | + **slug_perm** | **String**| | + +### Return type + +nil (empty response body) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + + +# **repos_upstream_dart_list** +> Array<DartUpstream> repos_upstream_dart_list(owner, identifier, opts) + +List Dart upstream configs for this repository. + +List Dart upstream configs for this repository. + +### Example +```ruby +# load the gem +require 'cloudsmith-api' +# setup authorization +CloudsmithApi.configure do |config| + # Configure API key authorization: apikey + config.api_key['X-Api-Key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + #config.api_key_prefix['X-Api-Key'] = 'Bearer' + + # Configure HTTP basic authorization: basic + config.username = 'YOUR USERNAME' + config.password = 'YOUR PASSWORD' +end + +api_instance = CloudsmithApi::ReposApi.new + +owner = 'owner_example' # String | + +identifier = 'identifier_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. +} + +begin + #List Dart upstream configs for this repository. + result = api_instance.repos_upstream_dart_list(owner, identifier, opts) + p result +rescue CloudsmithApi::ApiError => e + puts "Exception when calling ReposApi->repos_upstream_dart_list: #{e}" +end +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| | + **identifier** | **String**| | + **page** | **Integer**| A page number within the paginated result set. | [optional] + **page_size** | **Integer**| Number of results to return per page. | [optional] + +### Return type + +[**Array<DartUpstream>**](DartUpstream.md) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + + +# **repos_upstream_dart_partial_update** +> DartUpstream repos_upstream_dart_partial_update(owner, identifier, slug_perm, opts) + +Partially update a Dart upstream config for this repository. + +Partially update a Dart upstream config for this repository. + +### Example +```ruby +# load the gem +require 'cloudsmith-api' +# setup authorization +CloudsmithApi.configure do |config| + # Configure API key authorization: apikey + config.api_key['X-Api-Key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + #config.api_key_prefix['X-Api-Key'] = 'Bearer' + + # Configure HTTP basic authorization: basic + config.username = 'YOUR USERNAME' + config.password = 'YOUR PASSWORD' +end + +api_instance = CloudsmithApi::ReposApi.new + +owner = 'owner_example' # String | + +identifier = 'identifier_example' # String | + +slug_perm = 'slug_perm_example' # String | + +opts = { + data: CloudsmithApi::DartUpstreamRequestPatch.new # DartUpstreamRequestPatch | +} + +begin + #Partially update a Dart upstream config for this repository. + result = api_instance.repos_upstream_dart_partial_update(owner, identifier, slug_perm, opts) + p result +rescue CloudsmithApi::ApiError => e + puts "Exception when calling ReposApi->repos_upstream_dart_partial_update: #{e}" +end +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| | + **identifier** | **String**| | + **slug_perm** | **String**| | + **data** | [**DartUpstreamRequestPatch**](DartUpstreamRequestPatch.md)| | [optional] + +### Return type + +[**DartUpstream**](DartUpstream.md) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + + +# **repos_upstream_dart_read** +> DartUpstream repos_upstream_dart_read(owner, identifier, slug_perm) + +Retrieve a Dart upstream config for this repository. + +Retrieve a Dart upstream config for this repository. + +### Example +```ruby +# load the gem +require 'cloudsmith-api' +# setup authorization +CloudsmithApi.configure do |config| + # Configure API key authorization: apikey + config.api_key['X-Api-Key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + #config.api_key_prefix['X-Api-Key'] = 'Bearer' + + # Configure HTTP basic authorization: basic + config.username = 'YOUR USERNAME' + config.password = 'YOUR PASSWORD' +end + +api_instance = CloudsmithApi::ReposApi.new + +owner = 'owner_example' # String | + +identifier = 'identifier_example' # String | + +slug_perm = 'slug_perm_example' # String | + + +begin + #Retrieve a Dart upstream config for this repository. + result = api_instance.repos_upstream_dart_read(owner, identifier, slug_perm) + p result +rescue CloudsmithApi::ApiError => e + puts "Exception when calling ReposApi->repos_upstream_dart_read: #{e}" +end +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| | + **identifier** | **String**| | + **slug_perm** | **String**| | + +### Return type + +[**DartUpstream**](DartUpstream.md) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + + +# **repos_upstream_dart_update** +> DartUpstream repos_upstream_dart_update(owner, identifier, slug_perm, opts) + +Update a Dart upstream config for this repository. + +Update a Dart upstream config for this repository. + +### Example +```ruby +# load the gem +require 'cloudsmith-api' +# setup authorization +CloudsmithApi.configure do |config| + # Configure API key authorization: apikey + config.api_key['X-Api-Key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + #config.api_key_prefix['X-Api-Key'] = 'Bearer' + + # Configure HTTP basic authorization: basic + config.username = 'YOUR USERNAME' + config.password = 'YOUR PASSWORD' +end + +api_instance = CloudsmithApi::ReposApi.new + +owner = 'owner_example' # String | + +identifier = 'identifier_example' # String | + +slug_perm = 'slug_perm_example' # String | + +opts = { + data: CloudsmithApi::DartUpstreamRequest.new # DartUpstreamRequest | +} + +begin + #Update a Dart upstream config for this repository. result = api_instance.repos_upstream_dart_update(owner, identifier, slug_perm, opts) p result rescue CloudsmithApi::ApiError => e - puts "Exception when calling ReposApi->repos_upstream_dart_update: #{e}" + puts "Exception when calling ReposApi->repos_upstream_dart_update: #{e}" +end +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| | + **identifier** | **String**| | + **slug_perm** | **String**| | + **data** | [**DartUpstreamRequest**](DartUpstreamRequest.md)| | [optional] + +### Return type + +[**DartUpstream**](DartUpstream.md) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + + +# **repos_upstream_deb_create** +> DebUpstream repos_upstream_deb_create(owner, identifier, opts) + +Create a Debian upstream config for this repository. + +Create a Debian upstream config for this repository. + +### Example +```ruby +# load the gem +require 'cloudsmith-api' +# setup authorization +CloudsmithApi.configure do |config| + # Configure API key authorization: apikey + config.api_key['X-Api-Key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + #config.api_key_prefix['X-Api-Key'] = 'Bearer' + + # Configure HTTP basic authorization: basic + config.username = 'YOUR USERNAME' + config.password = 'YOUR PASSWORD' +end + +api_instance = CloudsmithApi::ReposApi.new + +owner = 'owner_example' # String | + +identifier = 'identifier_example' # String | + +opts = { + data: CloudsmithApi::DebUpstreamRequest.new # DebUpstreamRequest | +} + +begin + #Create a Debian upstream config for this repository. + result = api_instance.repos_upstream_deb_create(owner, identifier, opts) + p result +rescue CloudsmithApi::ApiError => e + puts "Exception when calling ReposApi->repos_upstream_deb_create: #{e}" +end +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| | + **identifier** | **String**| | + **data** | [**DebUpstreamRequest**](DebUpstreamRequest.md)| | [optional] + +### Return type + +[**DebUpstream**](DebUpstream.md) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + + +# **repos_upstream_deb_delete** +> repos_upstream_deb_delete(owner, identifier, slug_perm) + +Delete a Debian upstream config for this repository. + +Delete a Debian upstream config for this repository. + +### Example +```ruby +# load the gem +require 'cloudsmith-api' +# setup authorization +CloudsmithApi.configure do |config| + # Configure API key authorization: apikey + config.api_key['X-Api-Key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + #config.api_key_prefix['X-Api-Key'] = 'Bearer' + + # Configure HTTP basic authorization: basic + config.username = 'YOUR USERNAME' + config.password = 'YOUR PASSWORD' +end + +api_instance = CloudsmithApi::ReposApi.new + +owner = 'owner_example' # String | + +identifier = 'identifier_example' # String | + +slug_perm = 'slug_perm_example' # String | + + +begin + #Delete a Debian upstream config for this repository. + api_instance.repos_upstream_deb_delete(owner, identifier, slug_perm) +rescue CloudsmithApi::ApiError => e + puts "Exception when calling ReposApi->repos_upstream_deb_delete: #{e}" +end +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| | + **identifier** | **String**| | + **slug_perm** | **String**| | + +### Return type + +nil (empty response body) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + + +# **repos_upstream_deb_list** +> Array<DebUpstream> repos_upstream_deb_list(owner, identifier, opts) + +List Debian upstream configs for this repository. + +List Debian upstream configs for this repository. + +### Example +```ruby +# load the gem +require 'cloudsmith-api' +# setup authorization +CloudsmithApi.configure do |config| + # Configure API key authorization: apikey + config.api_key['X-Api-Key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + #config.api_key_prefix['X-Api-Key'] = 'Bearer' + + # Configure HTTP basic authorization: basic + config.username = 'YOUR USERNAME' + config.password = 'YOUR PASSWORD' +end + +api_instance = CloudsmithApi::ReposApi.new + +owner = 'owner_example' # String | + +identifier = 'identifier_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. +} + +begin + #List Debian upstream configs for this repository. + result = api_instance.repos_upstream_deb_list(owner, identifier, opts) + p result +rescue CloudsmithApi::ApiError => e + puts "Exception when calling ReposApi->repos_upstream_deb_list: #{e}" +end +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| | + **identifier** | **String**| | + **page** | **Integer**| A page number within the paginated result set. | [optional] + **page_size** | **Integer**| Number of results to return per page. | [optional] + +### Return type + +[**Array<DebUpstream>**](DebUpstream.md) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + + +# **repos_upstream_deb_partial_update** +> DebUpstream repos_upstream_deb_partial_update(owner, identifier, slug_perm, opts) + +Partially update a Debian upstream config for this repository. + +Partially update a Debian upstream config for this repository. + +### Example +```ruby +# load the gem +require 'cloudsmith-api' +# setup authorization +CloudsmithApi.configure do |config| + # Configure API key authorization: apikey + config.api_key['X-Api-Key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + #config.api_key_prefix['X-Api-Key'] = 'Bearer' + + # Configure HTTP basic authorization: basic + config.username = 'YOUR USERNAME' + config.password = 'YOUR PASSWORD' +end + +api_instance = CloudsmithApi::ReposApi.new + +owner = 'owner_example' # String | + +identifier = 'identifier_example' # String | + +slug_perm = 'slug_perm_example' # String | + +opts = { + data: CloudsmithApi::DebUpstreamRequestPatch.new # DebUpstreamRequestPatch | +} + +begin + #Partially update a Debian upstream config for this repository. + result = api_instance.repos_upstream_deb_partial_update(owner, identifier, slug_perm, opts) + p result +rescue CloudsmithApi::ApiError => e + puts "Exception when calling ReposApi->repos_upstream_deb_partial_update: #{e}" +end +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| | + **identifier** | **String**| | + **slug_perm** | **String**| | + **data** | [**DebUpstreamRequestPatch**](DebUpstreamRequestPatch.md)| | [optional] + +### Return type + +[**DebUpstream**](DebUpstream.md) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + + +# **repos_upstream_deb_read** +> DebUpstream repos_upstream_deb_read(owner, identifier, slug_perm) + +Retrieve a Debian upstream config for this repository. + +Retrieve a Debian upstream config for this repository. + +### Example +```ruby +# load the gem +require 'cloudsmith-api' +# setup authorization +CloudsmithApi.configure do |config| + # Configure API key authorization: apikey + config.api_key['X-Api-Key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + #config.api_key_prefix['X-Api-Key'] = 'Bearer' + + # Configure HTTP basic authorization: basic + config.username = 'YOUR USERNAME' + config.password = 'YOUR PASSWORD' +end + +api_instance = CloudsmithApi::ReposApi.new + +owner = 'owner_example' # String | + +identifier = 'identifier_example' # String | + +slug_perm = 'slug_perm_example' # String | + + +begin + #Retrieve a Debian upstream config for this repository. + result = api_instance.repos_upstream_deb_read(owner, identifier, slug_perm) + p result +rescue CloudsmithApi::ApiError => e + puts "Exception when calling ReposApi->repos_upstream_deb_read: #{e}" end ``` @@ -2991,11 +3726,10 @@ Name | Type | Description | Notes **owner** | **String**| | **identifier** | **String**| | **slug_perm** | **String**| | - **data** | [**DartUpstreamRequest**](DartUpstreamRequest.md)| | [optional] ### Return type -[**DartUpstream**](DartUpstream.md) +[**DebUpstream**](DebUpstream.md) ### Authorization @@ -3008,12 +3742,12 @@ Name | Type | Description | Notes -# **repos_upstream_deb_create** -> DebUpstream repos_upstream_deb_create(owner, identifier, opts) +# **repos_upstream_deb_update** +> DebUpstream repos_upstream_deb_update(owner, identifier, slug_perm, opts) -Create a Debian upstream config for this repository. +Update a Debian upstream config for this repository. -Create a Debian upstream config for this repository. +Update a Debian upstream config for this repository. ### Example ```ruby @@ -3037,16 +3771,18 @@ owner = 'owner_example' # String | identifier = 'identifier_example' # String | +slug_perm = 'slug_perm_example' # String | + opts = { data: CloudsmithApi::DebUpstreamRequest.new # DebUpstreamRequest | } begin - #Create a Debian upstream config for this repository. - result = api_instance.repos_upstream_deb_create(owner, identifier, opts) + #Update a Debian upstream config for this repository. + result = api_instance.repos_upstream_deb_update(owner, identifier, slug_perm, opts) p result rescue CloudsmithApi::ApiError => e - puts "Exception when calling ReposApi->repos_upstream_deb_create: #{e}" + puts "Exception when calling ReposApi->repos_upstream_deb_update: #{e}" end ``` @@ -3056,6 +3792,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **owner** | **String**| | **identifier** | **String**| | + **slug_perm** | **String**| | **data** | [**DebUpstreamRequest**](DebUpstreamRequest.md)| | [optional] ### Return type @@ -3073,12 +3810,77 @@ Name | Type | Description | Notes -# **repos_upstream_deb_delete** -> repos_upstream_deb_delete(owner, identifier, slug_perm) +# **repos_upstream_docker_create** +> DockerUpstream repos_upstream_docker_create(owner, identifier, opts) -Delete a Debian upstream config for this repository. +Create a Docker upstream config for this repository. -Delete a Debian upstream config for this repository. +Create a Docker upstream config for this repository. + +### Example +```ruby +# load the gem +require 'cloudsmith-api' +# setup authorization +CloudsmithApi.configure do |config| + # Configure API key authorization: apikey + config.api_key['X-Api-Key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + #config.api_key_prefix['X-Api-Key'] = 'Bearer' + + # Configure HTTP basic authorization: basic + config.username = 'YOUR USERNAME' + config.password = 'YOUR PASSWORD' +end + +api_instance = CloudsmithApi::ReposApi.new + +owner = 'owner_example' # String | + +identifier = 'identifier_example' # String | + +opts = { + data: CloudsmithApi::DockerUpstreamRequest.new # DockerUpstreamRequest | +} + +begin + #Create a Docker upstream config for this repository. + result = api_instance.repos_upstream_docker_create(owner, identifier, opts) + p result +rescue CloudsmithApi::ApiError => e + puts "Exception when calling ReposApi->repos_upstream_docker_create: #{e}" +end +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner** | **String**| | + **identifier** | **String**| | + **data** | [**DockerUpstreamRequest**](DockerUpstreamRequest.md)| | [optional] + +### Return type + +[**DockerUpstream**](DockerUpstream.md) + +### Authorization + +[apikey](../README.md#apikey), [basic](../README.md#basic) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + + +# **repos_upstream_docker_delete** +> repos_upstream_docker_delete(owner, identifier, slug_perm) + +Delete a Docker upstream config for this repository. + +Delete a Docker upstream config for this repository. ### Example ```ruby @@ -3106,10 +3908,10 @@ slug_perm = 'slug_perm_example' # String | begin - #Delete a Debian upstream config for this repository. - api_instance.repos_upstream_deb_delete(owner, identifier, slug_perm) + #Delete a Docker upstream config for this repository. + api_instance.repos_upstream_docker_delete(owner, identifier, slug_perm) rescue CloudsmithApi::ApiError => e - puts "Exception when calling ReposApi->repos_upstream_deb_delete: #{e}" + puts "Exception when calling ReposApi->repos_upstream_docker_delete: #{e}" end ``` @@ -3136,12 +3938,12 @@ nil (empty response body) -# **repos_upstream_deb_list** -> Array<DebUpstream> repos_upstream_deb_list(owner, identifier, opts) +# **repos_upstream_docker_list** +> Array<DockerUpstream> repos_upstream_docker_list(owner, identifier, opts) -List Debian upstream configs for this repository. +List Docker upstream configs for this repository. -List Debian upstream configs for this repository. +List Docker upstream configs for this repository. ### Example ```ruby @@ -3171,11 +3973,11 @@ opts = { } begin - #List Debian upstream configs for this repository. - result = api_instance.repos_upstream_deb_list(owner, identifier, opts) + #List Docker upstream configs for this repository. + result = api_instance.repos_upstream_docker_list(owner, identifier, opts) p result rescue CloudsmithApi::ApiError => e - puts "Exception when calling ReposApi->repos_upstream_deb_list: #{e}" + puts "Exception when calling ReposApi->repos_upstream_docker_list: #{e}" end ``` @@ -3190,7 +3992,7 @@ Name | Type | Description | Notes ### Return type -[**Array<DebUpstream>**](DebUpstream.md) +[**Array<DockerUpstream>**](DockerUpstream.md) ### Authorization @@ -3203,12 +4005,12 @@ Name | Type | Description | Notes -# **repos_upstream_deb_partial_update** -> DebUpstream repos_upstream_deb_partial_update(owner, identifier, slug_perm, opts) +# **repos_upstream_docker_partial_update** +> DockerUpstream repos_upstream_docker_partial_update(owner, identifier, slug_perm, opts) -Partially update a Debian upstream config for this repository. +Partially update a Docker upstream config for this repository. -Partially update a Debian upstream config for this repository. +Partially update a Docker upstream config for this repository. ### Example ```ruby @@ -3235,15 +4037,15 @@ identifier = 'identifier_example' # String | slug_perm = 'slug_perm_example' # String | opts = { - data: CloudsmithApi::DebUpstreamRequestPatch.new # DebUpstreamRequestPatch | + data: CloudsmithApi::DockerUpstreamRequestPatch.new # DockerUpstreamRequestPatch | } begin - #Partially update a Debian upstream config for this repository. - result = api_instance.repos_upstream_deb_partial_update(owner, identifier, slug_perm, opts) + #Partially update a Docker upstream config for this repository. + result = api_instance.repos_upstream_docker_partial_update(owner, identifier, slug_perm, opts) p result rescue CloudsmithApi::ApiError => e - puts "Exception when calling ReposApi->repos_upstream_deb_partial_update: #{e}" + puts "Exception when calling ReposApi->repos_upstream_docker_partial_update: #{e}" end ``` @@ -3254,11 +4056,11 @@ Name | Type | Description | Notes **owner** | **String**| | **identifier** | **String**| | **slug_perm** | **String**| | - **data** | [**DebUpstreamRequestPatch**](DebUpstreamRequestPatch.md)| | [optional] + **data** | [**DockerUpstreamRequestPatch**](DockerUpstreamRequestPatch.md)| | [optional] ### Return type -[**DebUpstream**](DebUpstream.md) +[**DockerUpstream**](DockerUpstream.md) ### Authorization @@ -3271,12 +4073,12 @@ Name | Type | Description | Notes -# **repos_upstream_deb_read** -> DebUpstream repos_upstream_deb_read(owner, identifier, slug_perm) +# **repos_upstream_docker_read** +> DockerUpstream repos_upstream_docker_read(owner, identifier, slug_perm) -Retrieve a Debian upstream config for this repository. +Retrieve a Docker upstream config for this repository. -Retrieve a Debian upstream config for this repository. +Retrieve a Docker upstream config for this repository. ### Example ```ruby @@ -3304,11 +4106,11 @@ slug_perm = 'slug_perm_example' # String | begin - #Retrieve a Debian upstream config for this repository. - result = api_instance.repos_upstream_deb_read(owner, identifier, slug_perm) + #Retrieve a Docker upstream config for this repository. + result = api_instance.repos_upstream_docker_read(owner, identifier, slug_perm) p result rescue CloudsmithApi::ApiError => e - puts "Exception when calling ReposApi->repos_upstream_deb_read: #{e}" + puts "Exception when calling ReposApi->repos_upstream_docker_read: #{e}" end ``` @@ -3322,7 +4124,7 @@ Name | Type | Description | Notes ### Return type -[**DebUpstream**](DebUpstream.md) +[**DockerUpstream**](DockerUpstream.md) ### Authorization @@ -3335,12 +4137,12 @@ Name | Type | Description | Notes -# **repos_upstream_deb_update** -> DebUpstream repos_upstream_deb_update(owner, identifier, slug_perm, opts) +# **repos_upstream_docker_update** +> DockerUpstream repos_upstream_docker_update(owner, identifier, slug_perm, opts) -Update a Debian upstream config for this repository. +Update a Docker upstream config for this repository. -Update a Debian upstream config for this repository. +Update a Docker upstream config for this repository. ### Example ```ruby @@ -3367,15 +4169,15 @@ identifier = 'identifier_example' # String | slug_perm = 'slug_perm_example' # String | opts = { - data: CloudsmithApi::DebUpstreamRequest.new # DebUpstreamRequest | + data: CloudsmithApi::DockerUpstreamRequest.new # DockerUpstreamRequest | } begin - #Update a Debian upstream config for this repository. - result = api_instance.repos_upstream_deb_update(owner, identifier, slug_perm, opts) + #Update a Docker upstream config for this repository. + result = api_instance.repos_upstream_docker_update(owner, identifier, slug_perm, opts) p result rescue CloudsmithApi::ApiError => e - puts "Exception when calling ReposApi->repos_upstream_deb_update: #{e}" + puts "Exception when calling ReposApi->repos_upstream_docker_update: #{e}" end ``` @@ -3386,11 +4188,11 @@ Name | Type | Description | Notes **owner** | **String**| | **identifier** | **String**| | **slug_perm** | **String**| | - **data** | [**DebUpstreamRequest**](DebUpstreamRequest.md)| | [optional] + **data** | [**DockerUpstreamRequest**](DockerUpstreamRequest.md)| | [optional] ### Return type -[**DebUpstream**](DebUpstream.md) +[**DockerUpstream**](DockerUpstream.md) ### Authorization @@ -3403,12 +4205,12 @@ Name | Type | Description | Notes -# **repos_upstream_docker_create** -> DockerUpstream repos_upstream_docker_create(owner, identifier, opts) +# **repos_upstream_go_create** +> GoUpstream repos_upstream_go_create(owner, identifier, opts) -Create a Docker upstream config for this repository. +Create a Go upstream config for this repository. -Create a Docker upstream config for this repository. +Create a Go upstream config for this repository. ### Example ```ruby @@ -3433,15 +4235,15 @@ owner = 'owner_example' # String | identifier = 'identifier_example' # String | opts = { - data: CloudsmithApi::DockerUpstreamRequest.new # DockerUpstreamRequest | + data: CloudsmithApi::GoUpstreamRequest.new # GoUpstreamRequest | } begin - #Create a Docker upstream config for this repository. - result = api_instance.repos_upstream_docker_create(owner, identifier, opts) + #Create a Go upstream config for this repository. + result = api_instance.repos_upstream_go_create(owner, identifier, opts) p result rescue CloudsmithApi::ApiError => e - puts "Exception when calling ReposApi->repos_upstream_docker_create: #{e}" + puts "Exception when calling ReposApi->repos_upstream_go_create: #{e}" end ``` @@ -3451,11 +4253,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **owner** | **String**| | **identifier** | **String**| | - **data** | [**DockerUpstreamRequest**](DockerUpstreamRequest.md)| | [optional] + **data** | [**GoUpstreamRequest**](GoUpstreamRequest.md)| | [optional] ### Return type -[**DockerUpstream**](DockerUpstream.md) +[**GoUpstream**](GoUpstream.md) ### Authorization @@ -3468,12 +4270,12 @@ Name | Type | Description | Notes -# **repos_upstream_docker_delete** -> repos_upstream_docker_delete(owner, identifier, slug_perm) +# **repos_upstream_go_delete** +> repos_upstream_go_delete(owner, identifier, slug_perm) -Delete a Docker upstream config for this repository. +Delete a Go upstream config for this repository. -Delete a Docker upstream config for this repository. +Delete a Go upstream config for this repository. ### Example ```ruby @@ -3501,10 +4303,10 @@ slug_perm = 'slug_perm_example' # String | begin - #Delete a Docker upstream config for this repository. - api_instance.repos_upstream_docker_delete(owner, identifier, slug_perm) + #Delete a Go upstream config for this repository. + api_instance.repos_upstream_go_delete(owner, identifier, slug_perm) rescue CloudsmithApi::ApiError => e - puts "Exception when calling ReposApi->repos_upstream_docker_delete: #{e}" + puts "Exception when calling ReposApi->repos_upstream_go_delete: #{e}" end ``` @@ -3531,12 +4333,12 @@ nil (empty response body) -# **repos_upstream_docker_list** -> Array<DockerUpstream> repos_upstream_docker_list(owner, identifier, opts) +# **repos_upstream_go_list** +> Array<GoUpstream> repos_upstream_go_list(owner, identifier, opts) -List Docker upstream configs for this repository. +List Go upstream configs for this repository. -List Docker upstream configs for this repository. +List Go upstream configs for this repository. ### Example ```ruby @@ -3566,11 +4368,11 @@ opts = { } begin - #List Docker upstream configs for this repository. - result = api_instance.repos_upstream_docker_list(owner, identifier, opts) + #List Go upstream configs for this repository. + result = api_instance.repos_upstream_go_list(owner, identifier, opts) p result rescue CloudsmithApi::ApiError => e - puts "Exception when calling ReposApi->repos_upstream_docker_list: #{e}" + puts "Exception when calling ReposApi->repos_upstream_go_list: #{e}" end ``` @@ -3585,7 +4387,7 @@ Name | Type | Description | Notes ### Return type -[**Array<DockerUpstream>**](DockerUpstream.md) +[**Array<GoUpstream>**](GoUpstream.md) ### Authorization @@ -3598,12 +4400,12 @@ Name | Type | Description | Notes -# **repos_upstream_docker_partial_update** -> DockerUpstream repos_upstream_docker_partial_update(owner, identifier, slug_perm, opts) +# **repos_upstream_go_partial_update** +> GoUpstream repos_upstream_go_partial_update(owner, identifier, slug_perm, opts) -Partially update a Docker upstream config for this repository. +Partially update a Go upstream config for this repository. -Partially update a Docker upstream config for this repository. +Partially update a Go upstream config for this repository. ### Example ```ruby @@ -3630,15 +4432,15 @@ identifier = 'identifier_example' # String | slug_perm = 'slug_perm_example' # String | opts = { - data: CloudsmithApi::DockerUpstreamRequestPatch.new # DockerUpstreamRequestPatch | + data: CloudsmithApi::GoUpstreamRequestPatch.new # GoUpstreamRequestPatch | } begin - #Partially update a Docker upstream config for this repository. - result = api_instance.repos_upstream_docker_partial_update(owner, identifier, slug_perm, opts) + #Partially update a Go upstream config for this repository. + result = api_instance.repos_upstream_go_partial_update(owner, identifier, slug_perm, opts) p result rescue CloudsmithApi::ApiError => e - puts "Exception when calling ReposApi->repos_upstream_docker_partial_update: #{e}" + puts "Exception when calling ReposApi->repos_upstream_go_partial_update: #{e}" end ``` @@ -3649,11 +4451,11 @@ Name | Type | Description | Notes **owner** | **String**| | **identifier** | **String**| | **slug_perm** | **String**| | - **data** | [**DockerUpstreamRequestPatch**](DockerUpstreamRequestPatch.md)| | [optional] + **data** | [**GoUpstreamRequestPatch**](GoUpstreamRequestPatch.md)| | [optional] ### Return type -[**DockerUpstream**](DockerUpstream.md) +[**GoUpstream**](GoUpstream.md) ### Authorization @@ -3666,12 +4468,12 @@ Name | Type | Description | Notes -# **repos_upstream_docker_read** -> DockerUpstream repos_upstream_docker_read(owner, identifier, slug_perm) +# **repos_upstream_go_read** +> GoUpstream repos_upstream_go_read(owner, identifier, slug_perm) -Retrieve a Docker upstream config for this repository. +Retrieve a Go upstream config for this repository. -Retrieve a Docker upstream config for this repository. +Retrieve a Go upstream config for this repository. ### Example ```ruby @@ -3699,11 +4501,11 @@ slug_perm = 'slug_perm_example' # String | begin - #Retrieve a Docker upstream config for this repository. - result = api_instance.repos_upstream_docker_read(owner, identifier, slug_perm) + #Retrieve a Go upstream config for this repository. + result = api_instance.repos_upstream_go_read(owner, identifier, slug_perm) p result rescue CloudsmithApi::ApiError => e - puts "Exception when calling ReposApi->repos_upstream_docker_read: #{e}" + puts "Exception when calling ReposApi->repos_upstream_go_read: #{e}" end ``` @@ -3717,7 +4519,7 @@ Name | Type | Description | Notes ### Return type -[**DockerUpstream**](DockerUpstream.md) +[**GoUpstream**](GoUpstream.md) ### Authorization @@ -3730,12 +4532,12 @@ Name | Type | Description | Notes -# **repos_upstream_docker_update** -> DockerUpstream repos_upstream_docker_update(owner, identifier, slug_perm, opts) +# **repos_upstream_go_update** +> GoUpstream repos_upstream_go_update(owner, identifier, slug_perm, opts) -Update a Docker upstream config for this repository. +Update a Go upstream config for this repository. -Update a Docker upstream config for this repository. +Update a Go upstream config for this repository. ### Example ```ruby @@ -3762,15 +4564,15 @@ identifier = 'identifier_example' # String | slug_perm = 'slug_perm_example' # String | opts = { - data: CloudsmithApi::DockerUpstreamRequest.new # DockerUpstreamRequest | + data: CloudsmithApi::GoUpstreamRequest.new # GoUpstreamRequest | } begin - #Update a Docker upstream config for this repository. - result = api_instance.repos_upstream_docker_update(owner, identifier, slug_perm, opts) + #Update a Go upstream config for this repository. + result = api_instance.repos_upstream_go_update(owner, identifier, slug_perm, opts) p result rescue CloudsmithApi::ApiError => e - puts "Exception when calling ReposApi->repos_upstream_docker_update: #{e}" + puts "Exception when calling ReposApi->repos_upstream_go_update: #{e}" end ``` @@ -3781,11 +4583,11 @@ Name | Type | Description | Notes **owner** | **String**| | **identifier** | **String**| | **slug_perm** | **String**| | - **data** | [**DockerUpstreamRequest**](DockerUpstreamRequest.md)| | [optional] + **data** | [**GoUpstreamRequest**](GoUpstreamRequest.md)| | [optional] ### Return type -[**DockerUpstream**](DockerUpstream.md) +[**GoUpstream**](GoUpstream.md) ### Authorization diff --git a/bindings/ruby/src/docs/StatusBasic.md b/bindings/ruby/src/docs/StatusBasic.md index 3b031e3e..7eb1214d 100644 --- a/bindings/ruby/src/docs/StatusBasic.md +++ b/bindings/ruby/src/docs/StatusBasic.md @@ -4,6 +4,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **detail** | **String** | The message describing the state of the API. | [optional] [default to 'Cloudsmith API is operational.'] -**version** | **String** | The current version for the Cloudsmith service. | [optional] [default to '1.674.0'] +**version** | **String** | The current version for the Cloudsmith service. | [optional] [default to '1.698.0'] diff --git a/bindings/ruby/src/docs/UserApi.md b/bindings/ruby/src/docs/UserApi.md index ff169e46..2864ac81 100644 --- a/bindings/ruby/src/docs/UserApi.md +++ b/bindings/ruby/src/docs/UserApi.md @@ -170,7 +170,7 @@ This endpoint does not need any parameter. # **user_tokens_list** -> InlineResponse200 user_tokens_list(opts) +> InlineResponse2001 user_tokens_list(opts) Retrieve the API key assigned to the user that is currently authenticated. @@ -217,7 +217,7 @@ Name | Type | Description | Notes ### Return type -[**InlineResponse200**](InlineResponse200.md) +[**InlineResponse2001**](InlineResponse2001.md) ### Authorization diff --git a/bindings/ruby/src/lib/cloudsmith-api.rb b/bindings/ruby/src/lib/cloudsmith-api.rb index 49f57ac9..6c05328b 100644 --- a/bindings/ruby/src/lib/cloudsmith-api.rb +++ b/bindings/ruby/src/lib/cloudsmith-api.rb @@ -24,6 +24,9 @@ require 'cloudsmith-api/models/architecture' require 'cloudsmith-api/models/cargo_package_upload' require 'cloudsmith-api/models/cargo_package_upload_request' +require 'cloudsmith-api/models/cargo_upstream' +require 'cloudsmith-api/models/cargo_upstream_request' +require 'cloudsmith-api/models/cargo_upstream_request_patch' require 'cloudsmith-api/models/cocoapods_package_upload' require 'cloudsmith-api/models/cocoapods_package_upload_request' require 'cloudsmith-api/models/common_bandwidth_metrics' @@ -72,6 +75,9 @@ require 'cloudsmith-api/models/geo_ip_location' require 'cloudsmith-api/models/go_package_upload' require 'cloudsmith-api/models/go_package_upload_request' +require 'cloudsmith-api/models/go_upstream' +require 'cloudsmith-api/models/go_upstream_request' +require 'cloudsmith-api/models/go_upstream_request_patch' require 'cloudsmith-api/models/helm_package_upload' require 'cloudsmith-api/models/helm_package_upload_request' require 'cloudsmith-api/models/helm_upstream' @@ -86,6 +92,7 @@ require 'cloudsmith-api/models/history_fieldset' require 'cloudsmith-api/models/history_fieldset_raw' require 'cloudsmith-api/models/inline_response_200' +require 'cloudsmith-api/models/inline_response_200_1' require 'cloudsmith-api/models/luarocks_package_upload' require 'cloudsmith-api/models/luarocks_package_upload_request' require 'cloudsmith-api/models/maven_package_upload' @@ -151,6 +158,7 @@ require 'cloudsmith-api/models/package_file_parts_upload' require 'cloudsmith-api/models/package_file_upload' require 'cloudsmith-api/models/package_file_upload_request' +require 'cloudsmith-api/models/package_group' require 'cloudsmith-api/models/package_license_policy_evaluation_request' require 'cloudsmith-api/models/package_license_policy_evaluation_request_request' require 'cloudsmith-api/models/package_license_policy_violation_log' 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 0711a5d2..26b4e5f1 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/api/packages_api.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/api/packages_api.rb @@ -218,6 +218,81 @@ def packages_dependencies_with_http_info(owner, repo, identifier, opts = {}) end return data, status_code, headers end + # Return a list of Package Groups in a repository. + # Return a list of Package Groups in a repository. + # @param owner + # @param repo + # @param [Hash] opts the optional parameters + # @option opts [Integer] :page A page number within the paginated result set. + # @option opts [Integer] :page_size Number of results to return per page. + # @option opts [String] :group_by A field to group packages by. Available options: name, backend_kind. (default to name) + # @option opts [String] :query A search term for querying names, filenames, versions, distributions, architectures, formats, or statuses of packages. (default to ) + # @option opts [String] :sort A field for sorting objects in ascending or descending order. Use `-` prefix for descending order (e.g., `-name`). Available options: name, count, num_downloads, size, last_push, backend_kind. (default to name) + # @return [InlineResponse200] + def packages_groups_list(owner, repo, opts = {}) + data, _status_code, _headers = packages_groups_list_with_http_info(owner, repo, opts) + data + end + + # Return a list of Package Groups in a repository. + # Return a list of Package Groups in a repository. + # @param owner + # @param repo + # @param [Hash] opts the optional parameters + # @option opts [Integer] :page A page number within the paginated result set. + # @option opts [Integer] :page_size Number of results to return per page. + # @option opts [String] :group_by A field to group packages by. Available options: name, backend_kind. + # @option opts [String] :query A search term for querying names, filenames, versions, distributions, architectures, formats, or statuses of packages. + # @option opts [String] :sort A field for sorting objects in ascending or descending order. Use `-` prefix for descending order (e.g., `-name`). Available options: name, count, num_downloads, size, last_push, backend_kind. + # @return [Array<(InlineResponse200, Fixnum, Hash)>] InlineResponse200 data, response status code and response headers + def packages_groups_list_with_http_info(owner, repo, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug 'Calling API: PackagesApi.packages_groups_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 PackagesApi.packages_groups_list" + end + # verify the required parameter 'repo' is set + if @api_client.config.client_side_validation && repo.nil? + fail ArgumentError, "Missing the required parameter 'repo' when calling PackagesApi.packages_groups_list" + end + # resource path + local_var_path = '/packages/{owner}/{repo}/groups/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s) + + # query parameters + query_params = {} + query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil? + query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil? + query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil? + query_params[:'query'] = opts[:'query'] if !opts[:'query'].nil? + query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil? + + # header parameters + header_params = {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) + # HTTP header 'Content-Type' + header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) + + # form parameters + form_params = {} + + # http body (model) + post_body = nil + auth_names = ['apikey', 'basic'] + data, status_code, headers = @api_client.call_api(:GET, local_var_path, + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => 'InlineResponse200') + if @api_client.config.debugging + @api_client.config.logger.debug "API called: PackagesApi#packages_groups_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + 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 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 fdb6c829..a064f1ff 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/api/repos_api.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/api/repos_api.rb @@ -1661,39 +1661,39 @@ def repos_transfer_region_with_http_info(owner, repo, opts = {}) end return data, status_code, headers end - # Create a Composer upstream config for this repository. - # Create a Composer upstream config for this repository. + # Create a Cargo upstream config for this repository. + # Create a Cargo upstream config for this repository. # @param owner # @param identifier # @param [Hash] opts the optional parameters - # @option opts [ComposerUpstreamRequest] :data - # @return [ComposerUpstream] - def repos_upstream_composer_create(owner, identifier, opts = {}) - data, _status_code, _headers = repos_upstream_composer_create_with_http_info(owner, identifier, opts) + # @option opts [CargoUpstreamRequest] :data + # @return [CargoUpstream] + def repos_upstream_cargo_create(owner, identifier, opts = {}) + data, _status_code, _headers = repos_upstream_cargo_create_with_http_info(owner, identifier, opts) data end - # Create a Composer upstream config for this repository. - # Create a Composer upstream config for this repository. + # Create a Cargo upstream config for this repository. + # Create a Cargo upstream config for this repository. # @param owner # @param identifier # @param [Hash] opts the optional parameters - # @option opts [ComposerUpstreamRequest] :data - # @return [Array<(ComposerUpstream, Fixnum, Hash)>] ComposerUpstream data, response status code and response headers - def repos_upstream_composer_create_with_http_info(owner, identifier, opts = {}) + # @option opts [CargoUpstreamRequest] :data + # @return [Array<(CargoUpstream, Fixnum, Hash)>] CargoUpstream data, response status code and response headers + def repos_upstream_cargo_create_with_http_info(owner, identifier, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_composer_create ...' + @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_cargo_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_upstream_composer_create" + fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_cargo_create" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? - fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_composer_create" + fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_cargo_create" end # resource path - local_var_path = '/repos/{owner}/{identifier}/upstream/composer/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s) + local_var_path = '/repos/{owner}/{identifier}/upstream/cargo/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s) # query parameters query_params = {} @@ -1717,49 +1717,49 @@ def repos_upstream_composer_create_with_http_info(owner, identifier, opts = {}) :form_params => form_params, :body => post_body, :auth_names => auth_names, - :return_type => 'ComposerUpstream') + :return_type => 'CargoUpstream') if @api_client.config.debugging - @api_client.config.logger.debug "API called: ReposApi#repos_upstream_composer_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: ReposApi#repos_upstream_cargo_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end - # Delete a Composer upstream config for this repository. - # Delete a Composer upstream config for this repository. + # Delete a Cargo upstream config for this repository. + # Delete a Cargo upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @return [nil] - def repos_upstream_composer_delete(owner, identifier, slug_perm, opts = {}) - repos_upstream_composer_delete_with_http_info(owner, identifier, slug_perm, opts) + def repos_upstream_cargo_delete(owner, identifier, slug_perm, opts = {}) + repos_upstream_cargo_delete_with_http_info(owner, identifier, slug_perm, opts) nil end - # Delete a Composer upstream config for this repository. - # Delete a Composer upstream config for this repository. + # Delete a Cargo upstream config for this repository. + # Delete a Cargo upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers - def repos_upstream_composer_delete_with_http_info(owner, identifier, slug_perm, opts = {}) + def repos_upstream_cargo_delete_with_http_info(owner, identifier, slug_perm, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_composer_delete ...' + @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_cargo_delete ...' 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_upstream_composer_delete" + fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_cargo_delete" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? - fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_composer_delete" + fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_cargo_delete" end # verify the required parameter 'slug_perm' is set if @api_client.config.client_side_validation && slug_perm.nil? - fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_composer_delete" + fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_cargo_delete" end # resource path - local_var_path = '/repos/{owner}/{identifier}/upstream/composer/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) + local_var_path = '/repos/{owner}/{identifier}/upstream/cargo/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) # query parameters query_params = {} @@ -1784,45 +1784,45 @@ def repos_upstream_composer_delete_with_http_info(owner, identifier, slug_perm, :body => post_body, :auth_names => auth_names) if @api_client.config.debugging - @api_client.config.logger.debug "API called: ReposApi#repos_upstream_composer_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: ReposApi#repos_upstream_cargo_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end - # List Composer upstream configs for this repository. - # List Composer upstream configs for this repository. + # List Cargo upstream configs for this repository. + # List Cargo upstream configs for this repository. # @param owner # @param identifier # @param [Hash] opts the optional parameters # @option opts [Integer] :page A page number within the paginated result set. # @option opts [Integer] :page_size Number of results to return per page. - # @return [Array] - def repos_upstream_composer_list(owner, identifier, opts = {}) - data, _status_code, _headers = repos_upstream_composer_list_with_http_info(owner, identifier, opts) + # @return [Array] + def repos_upstream_cargo_list(owner, identifier, opts = {}) + data, _status_code, _headers = repos_upstream_cargo_list_with_http_info(owner, identifier, opts) data end - # List Composer upstream configs for this repository. - # List Composer upstream configs for this repository. + # List Cargo upstream configs for this repository. + # List Cargo upstream configs for this repository. # @param owner # @param identifier # @param [Hash] opts the optional parameters # @option opts [Integer] :page A page number within the paginated result set. # @option opts [Integer] :page_size Number of results to return per page. - # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers - def repos_upstream_composer_list_with_http_info(owner, identifier, opts = {}) + # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers + def repos_upstream_cargo_list_with_http_info(owner, identifier, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_composer_list ...' + @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_cargo_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_upstream_composer_list" + fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_cargo_list" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? - fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_composer_list" + fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_cargo_list" end # resource path - local_var_path = '/repos/{owner}/{identifier}/upstream/composer/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s) + local_var_path = '/repos/{owner}/{identifier}/upstream/cargo/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s) # query parameters query_params = {} @@ -1848,51 +1848,51 @@ def repos_upstream_composer_list_with_http_info(owner, identifier, opts = {}) :form_params => form_params, :body => post_body, :auth_names => auth_names, - :return_type => 'Array') + :return_type => 'Array') if @api_client.config.debugging - @api_client.config.logger.debug "API called: ReposApi#repos_upstream_composer_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: ReposApi#repos_upstream_cargo_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end - # Partially update a Composer upstream config for this repository. - # Partially update a Composer upstream config for this repository. + # Partially update a Cargo upstream config for this repository. + # Partially update a Cargo upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters - # @option opts [ComposerUpstreamRequestPatch] :data - # @return [ComposerUpstream] - def repos_upstream_composer_partial_update(owner, identifier, slug_perm, opts = {}) - data, _status_code, _headers = repos_upstream_composer_partial_update_with_http_info(owner, identifier, slug_perm, opts) + # @option opts [CargoUpstreamRequestPatch] :data + # @return [CargoUpstream] + def repos_upstream_cargo_partial_update(owner, identifier, slug_perm, opts = {}) + data, _status_code, _headers = repos_upstream_cargo_partial_update_with_http_info(owner, identifier, slug_perm, opts) data end - # Partially update a Composer upstream config for this repository. - # Partially update a Composer upstream config for this repository. + # Partially update a Cargo upstream config for this repository. + # Partially update a Cargo upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters - # @option opts [ComposerUpstreamRequestPatch] :data - # @return [Array<(ComposerUpstream, Fixnum, Hash)>] ComposerUpstream data, response status code and response headers - def repos_upstream_composer_partial_update_with_http_info(owner, identifier, slug_perm, opts = {}) + # @option opts [CargoUpstreamRequestPatch] :data + # @return [Array<(CargoUpstream, Fixnum, Hash)>] CargoUpstream data, response status code and response headers + def repos_upstream_cargo_partial_update_with_http_info(owner, identifier, slug_perm, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_composer_partial_update ...' + @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_cargo_partial_update ...' 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_upstream_composer_partial_update" + fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_cargo_partial_update" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? - fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_composer_partial_update" + fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_cargo_partial_update" end # verify the required parameter 'slug_perm' is set if @api_client.config.client_side_validation && slug_perm.nil? - fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_composer_partial_update" + fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_cargo_partial_update" end # resource path - local_var_path = '/repos/{owner}/{identifier}/upstream/composer/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) + local_var_path = '/repos/{owner}/{identifier}/upstream/cargo/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) # query parameters query_params = {} @@ -1916,49 +1916,49 @@ def repos_upstream_composer_partial_update_with_http_info(owner, identifier, slu :form_params => form_params, :body => post_body, :auth_names => auth_names, - :return_type => 'ComposerUpstream') + :return_type => 'CargoUpstream') if @api_client.config.debugging - @api_client.config.logger.debug "API called: ReposApi#repos_upstream_composer_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: ReposApi#repos_upstream_cargo_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end - # Retrieve a Composer upstream config for this repository. - # Retrieve a Composer upstream config for this repository. + # Retrieve a Cargo upstream config for this repository. + # Retrieve a Cargo upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters - # @return [ComposerUpstream] - def repos_upstream_composer_read(owner, identifier, slug_perm, opts = {}) - data, _status_code, _headers = repos_upstream_composer_read_with_http_info(owner, identifier, slug_perm, opts) + # @return [CargoUpstream] + def repos_upstream_cargo_read(owner, identifier, slug_perm, opts = {}) + data, _status_code, _headers = repos_upstream_cargo_read_with_http_info(owner, identifier, slug_perm, opts) data end - # Retrieve a Composer upstream config for this repository. - # Retrieve a Composer upstream config for this repository. + # Retrieve a Cargo upstream config for this repository. + # Retrieve a Cargo upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters - # @return [Array<(ComposerUpstream, Fixnum, Hash)>] ComposerUpstream data, response status code and response headers - def repos_upstream_composer_read_with_http_info(owner, identifier, slug_perm, opts = {}) + # @return [Array<(CargoUpstream, Fixnum, Hash)>] CargoUpstream data, response status code and response headers + def repos_upstream_cargo_read_with_http_info(owner, identifier, slug_perm, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_composer_read ...' + @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_cargo_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 ReposApi.repos_upstream_composer_read" + fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_cargo_read" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? - fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_composer_read" + fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_cargo_read" end # verify the required parameter 'slug_perm' is set if @api_client.config.client_side_validation && slug_perm.nil? - fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_composer_read" + fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_cargo_read" end # resource path - local_var_path = '/repos/{owner}/{identifier}/upstream/composer/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) + local_var_path = '/repos/{owner}/{identifier}/upstream/cargo/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) # query parameters query_params = {} @@ -1982,51 +1982,51 @@ def repos_upstream_composer_read_with_http_info(owner, identifier, slug_perm, op :form_params => form_params, :body => post_body, :auth_names => auth_names, - :return_type => 'ComposerUpstream') + :return_type => 'CargoUpstream') if @api_client.config.debugging - @api_client.config.logger.debug "API called: ReposApi#repos_upstream_composer_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: ReposApi#repos_upstream_cargo_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end - # Update a Composer upstream config for this repository. - # Update a Composer upstream config for this repository. + # Update a Cargo upstream config for this repository. + # Update a Cargo upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters - # @option opts [ComposerUpstreamRequest] :data - # @return [ComposerUpstream] - def repos_upstream_composer_update(owner, identifier, slug_perm, opts = {}) - data, _status_code, _headers = repos_upstream_composer_update_with_http_info(owner, identifier, slug_perm, opts) + # @option opts [CargoUpstreamRequest] :data + # @return [CargoUpstream] + def repos_upstream_cargo_update(owner, identifier, slug_perm, opts = {}) + data, _status_code, _headers = repos_upstream_cargo_update_with_http_info(owner, identifier, slug_perm, opts) data end - # Update a Composer upstream config for this repository. - # Update a Composer upstream config for this repository. + # Update a Cargo upstream config for this repository. + # Update a Cargo upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters - # @option opts [ComposerUpstreamRequest] :data - # @return [Array<(ComposerUpstream, Fixnum, Hash)>] ComposerUpstream data, response status code and response headers - def repos_upstream_composer_update_with_http_info(owner, identifier, slug_perm, opts = {}) + # @option opts [CargoUpstreamRequest] :data + # @return [Array<(CargoUpstream, Fixnum, Hash)>] CargoUpstream data, response status code and response headers + def repos_upstream_cargo_update_with_http_info(owner, identifier, slug_perm, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_composer_update ...' + @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_cargo_update ...' 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_upstream_composer_update" + fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_cargo_update" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? - fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_composer_update" + fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_cargo_update" end # verify the required parameter 'slug_perm' is set if @api_client.config.client_side_validation && slug_perm.nil? - fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_composer_update" + fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_cargo_update" end # resource path - local_var_path = '/repos/{owner}/{identifier}/upstream/composer/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) + local_var_path = '/repos/{owner}/{identifier}/upstream/cargo/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) # query parameters query_params = {} @@ -2050,45 +2050,45 @@ def repos_upstream_composer_update_with_http_info(owner, identifier, slug_perm, :form_params => form_params, :body => post_body, :auth_names => auth_names, - :return_type => 'ComposerUpstream') + :return_type => 'CargoUpstream') if @api_client.config.debugging - @api_client.config.logger.debug "API called: ReposApi#repos_upstream_composer_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: ReposApi#repos_upstream_cargo_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end - # Create a CRAN upstream config for this repository. - # Create a CRAN upstream config for this repository. + # Create a Composer upstream config for this repository. + # Create a Composer upstream config for this repository. # @param owner # @param identifier # @param [Hash] opts the optional parameters - # @option opts [CranUpstreamRequest] :data - # @return [CranUpstream] - def repos_upstream_cran_create(owner, identifier, opts = {}) - data, _status_code, _headers = repos_upstream_cran_create_with_http_info(owner, identifier, opts) + # @option opts [ComposerUpstreamRequest] :data + # @return [ComposerUpstream] + def repos_upstream_composer_create(owner, identifier, opts = {}) + data, _status_code, _headers = repos_upstream_composer_create_with_http_info(owner, identifier, opts) data end - # Create a CRAN upstream config for this repository. - # Create a CRAN upstream config for this repository. + # Create a Composer upstream config for this repository. + # Create a Composer upstream config for this repository. # @param owner # @param identifier # @param [Hash] opts the optional parameters - # @option opts [CranUpstreamRequest] :data - # @return [Array<(CranUpstream, Fixnum, Hash)>] CranUpstream data, response status code and response headers - def repos_upstream_cran_create_with_http_info(owner, identifier, opts = {}) + # @option opts [ComposerUpstreamRequest] :data + # @return [Array<(ComposerUpstream, Fixnum, Hash)>] ComposerUpstream data, response status code and response headers + def repos_upstream_composer_create_with_http_info(owner, identifier, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_cran_create ...' + @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_composer_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_upstream_cran_create" + fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_composer_create" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? - fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_cran_create" + fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_composer_create" end # resource path - local_var_path = '/repos/{owner}/{identifier}/upstream/cran/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s) + local_var_path = '/repos/{owner}/{identifier}/upstream/composer/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s) # query parameters query_params = {} @@ -2112,49 +2112,49 @@ def repos_upstream_cran_create_with_http_info(owner, identifier, opts = {}) :form_params => form_params, :body => post_body, :auth_names => auth_names, - :return_type => 'CranUpstream') + :return_type => 'ComposerUpstream') if @api_client.config.debugging - @api_client.config.logger.debug "API called: ReposApi#repos_upstream_cran_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: ReposApi#repos_upstream_composer_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end - # Delete a CRAN upstream config for this repository. - # Delete a CRAN upstream config for this repository. + # Delete a Composer upstream config for this repository. + # Delete a Composer upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @return [nil] - def repos_upstream_cran_delete(owner, identifier, slug_perm, opts = {}) - repos_upstream_cran_delete_with_http_info(owner, identifier, slug_perm, opts) + def repos_upstream_composer_delete(owner, identifier, slug_perm, opts = {}) + repos_upstream_composer_delete_with_http_info(owner, identifier, slug_perm, opts) nil end - # Delete a CRAN upstream config for this repository. - # Delete a CRAN upstream config for this repository. + # Delete a Composer upstream config for this repository. + # Delete a Composer upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers - def repos_upstream_cran_delete_with_http_info(owner, identifier, slug_perm, opts = {}) + def repos_upstream_composer_delete_with_http_info(owner, identifier, slug_perm, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_cran_delete ...' + @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_composer_delete ...' 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_upstream_cran_delete" + fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_composer_delete" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? - fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_cran_delete" + fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_composer_delete" end # verify the required parameter 'slug_perm' is set if @api_client.config.client_side_validation && slug_perm.nil? - fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_cran_delete" + fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_composer_delete" end # resource path - local_var_path = '/repos/{owner}/{identifier}/upstream/cran/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) + local_var_path = '/repos/{owner}/{identifier}/upstream/composer/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) # query parameters query_params = {} @@ -2179,45 +2179,45 @@ def repos_upstream_cran_delete_with_http_info(owner, identifier, slug_perm, opts :body => post_body, :auth_names => auth_names) if @api_client.config.debugging - @api_client.config.logger.debug "API called: ReposApi#repos_upstream_cran_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: ReposApi#repos_upstream_composer_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end - # List CRAN upstream configs for this repository. - # List CRAN upstream configs for this repository. + # List Composer upstream configs for this repository. + # List Composer upstream configs for this repository. # @param owner # @param identifier # @param [Hash] opts the optional parameters # @option opts [Integer] :page A page number within the paginated result set. # @option opts [Integer] :page_size Number of results to return per page. - # @return [Array] - def repos_upstream_cran_list(owner, identifier, opts = {}) - data, _status_code, _headers = repos_upstream_cran_list_with_http_info(owner, identifier, opts) + # @return [Array] + def repos_upstream_composer_list(owner, identifier, opts = {}) + data, _status_code, _headers = repos_upstream_composer_list_with_http_info(owner, identifier, opts) data end - # List CRAN upstream configs for this repository. - # List CRAN upstream configs for this repository. + # List Composer upstream configs for this repository. + # List Composer upstream configs for this repository. # @param owner # @param identifier # @param [Hash] opts the optional parameters # @option opts [Integer] :page A page number within the paginated result set. # @option opts [Integer] :page_size Number of results to return per page. - # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers - def repos_upstream_cran_list_with_http_info(owner, identifier, opts = {}) + # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers + def repos_upstream_composer_list_with_http_info(owner, identifier, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_cran_list ...' + @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_composer_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_upstream_cran_list" + fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_composer_list" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? - fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_cran_list" + fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_composer_list" end # resource path - local_var_path = '/repos/{owner}/{identifier}/upstream/cran/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s) + local_var_path = '/repos/{owner}/{identifier}/upstream/composer/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s) # query parameters query_params = {} @@ -2243,51 +2243,51 @@ def repos_upstream_cran_list_with_http_info(owner, identifier, opts = {}) :form_params => form_params, :body => post_body, :auth_names => auth_names, - :return_type => 'Array') + :return_type => 'Array') if @api_client.config.debugging - @api_client.config.logger.debug "API called: ReposApi#repos_upstream_cran_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: ReposApi#repos_upstream_composer_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end - # Partially update a CRAN upstream config for this repository. - # Partially update a CRAN upstream config for this repository. + # Partially update a Composer upstream config for this repository. + # Partially update a Composer upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters - # @option opts [CranUpstreamRequestPatch] :data - # @return [CranUpstream] - def repos_upstream_cran_partial_update(owner, identifier, slug_perm, opts = {}) - data, _status_code, _headers = repos_upstream_cran_partial_update_with_http_info(owner, identifier, slug_perm, opts) + # @option opts [ComposerUpstreamRequestPatch] :data + # @return [ComposerUpstream] + def repos_upstream_composer_partial_update(owner, identifier, slug_perm, opts = {}) + data, _status_code, _headers = repos_upstream_composer_partial_update_with_http_info(owner, identifier, slug_perm, opts) data end - # Partially update a CRAN upstream config for this repository. - # Partially update a CRAN upstream config for this repository. + # Partially update a Composer upstream config for this repository. + # Partially update a Composer upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters - # @option opts [CranUpstreamRequestPatch] :data - # @return [Array<(CranUpstream, Fixnum, Hash)>] CranUpstream data, response status code and response headers - def repos_upstream_cran_partial_update_with_http_info(owner, identifier, slug_perm, opts = {}) + # @option opts [ComposerUpstreamRequestPatch] :data + # @return [Array<(ComposerUpstream, Fixnum, Hash)>] ComposerUpstream data, response status code and response headers + def repos_upstream_composer_partial_update_with_http_info(owner, identifier, slug_perm, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_cran_partial_update ...' + @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_composer_partial_update ...' 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_upstream_cran_partial_update" + fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_composer_partial_update" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? - fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_cran_partial_update" + fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_composer_partial_update" end # verify the required parameter 'slug_perm' is set if @api_client.config.client_side_validation && slug_perm.nil? - fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_cran_partial_update" + fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_composer_partial_update" end # resource path - local_var_path = '/repos/{owner}/{identifier}/upstream/cran/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) + local_var_path = '/repos/{owner}/{identifier}/upstream/composer/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) # query parameters query_params = {} @@ -2311,49 +2311,49 @@ def repos_upstream_cran_partial_update_with_http_info(owner, identifier, slug_pe :form_params => form_params, :body => post_body, :auth_names => auth_names, - :return_type => 'CranUpstream') + :return_type => 'ComposerUpstream') if @api_client.config.debugging - @api_client.config.logger.debug "API called: ReposApi#repos_upstream_cran_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: ReposApi#repos_upstream_composer_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end - # Retrieve a CRAN upstream config for this repository. - # Retrieve a CRAN upstream config for this repository. + # Retrieve a Composer upstream config for this repository. + # Retrieve a Composer upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters - # @return [CranUpstream] - def repos_upstream_cran_read(owner, identifier, slug_perm, opts = {}) - data, _status_code, _headers = repos_upstream_cran_read_with_http_info(owner, identifier, slug_perm, opts) + # @return [ComposerUpstream] + def repos_upstream_composer_read(owner, identifier, slug_perm, opts = {}) + data, _status_code, _headers = repos_upstream_composer_read_with_http_info(owner, identifier, slug_perm, opts) data end - # Retrieve a CRAN upstream config for this repository. - # Retrieve a CRAN upstream config for this repository. + # Retrieve a Composer upstream config for this repository. + # Retrieve a Composer upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters - # @return [Array<(CranUpstream, Fixnum, Hash)>] CranUpstream data, response status code and response headers - def repos_upstream_cran_read_with_http_info(owner, identifier, slug_perm, opts = {}) + # @return [Array<(ComposerUpstream, Fixnum, Hash)>] ComposerUpstream data, response status code and response headers + def repos_upstream_composer_read_with_http_info(owner, identifier, slug_perm, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_cran_read ...' + @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_composer_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 ReposApi.repos_upstream_cran_read" + fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_composer_read" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? - fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_cran_read" + fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_composer_read" end # verify the required parameter 'slug_perm' is set if @api_client.config.client_side_validation && slug_perm.nil? - fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_cran_read" + fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_composer_read" end # resource path - local_var_path = '/repos/{owner}/{identifier}/upstream/cran/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) + local_var_path = '/repos/{owner}/{identifier}/upstream/composer/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) # query parameters query_params = {} @@ -2377,51 +2377,841 @@ def repos_upstream_cran_read_with_http_info(owner, identifier, slug_perm, opts = :form_params => form_params, :body => post_body, :auth_names => auth_names, - :return_type => 'CranUpstream') + :return_type => 'ComposerUpstream') if @api_client.config.debugging - @api_client.config.logger.debug "API called: ReposApi#repos_upstream_cran_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: ReposApi#repos_upstream_composer_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end - # Update a CRAN upstream config for this repository. - # Update a CRAN upstream config for this repository. + # Update a Composer upstream config for this repository. + # Update a Composer upstream config for this repository. + # @param owner + # @param identifier + # @param slug_perm + # @param [Hash] opts the optional parameters + # @option opts [ComposerUpstreamRequest] :data + # @return [ComposerUpstream] + def repos_upstream_composer_update(owner, identifier, slug_perm, opts = {}) + data, _status_code, _headers = repos_upstream_composer_update_with_http_info(owner, identifier, slug_perm, opts) + data + end + + # Update a Composer upstream config for this repository. + # Update a Composer upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters + # @option opts [ComposerUpstreamRequest] :data + # @return [Array<(ComposerUpstream, Fixnum, Hash)>] ComposerUpstream data, response status code and response headers + def repos_upstream_composer_update_with_http_info(owner, identifier, slug_perm, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_composer_update ...' + 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_upstream_composer_update" + end + # verify the required parameter 'identifier' is set + if @api_client.config.client_side_validation && identifier.nil? + fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_composer_update" + end + # verify the required parameter 'slug_perm' is set + if @api_client.config.client_side_validation && slug_perm.nil? + fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_composer_update" + end + # resource path + local_var_path = '/repos/{owner}/{identifier}/upstream/composer/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) + + # query parameters + query_params = {} + + # header parameters + header_params = {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) + # HTTP header 'Content-Type' + header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) + + # form parameters + form_params = {} + + # http body (model) + post_body = @api_client.object_to_http_body(opts[:'data']) + auth_names = ['apikey', 'basic'] + data, status_code, headers = @api_client.call_api(:PUT, local_var_path, + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => 'ComposerUpstream') + if @api_client.config.debugging + @api_client.config.logger.debug "API called: ReposApi#repos_upstream_composer_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + # Create a CRAN upstream config for this repository. + # Create a CRAN upstream config for this repository. + # @param owner + # @param identifier + # @param [Hash] opts the optional parameters # @option opts [CranUpstreamRequest] :data # @return [CranUpstream] - def repos_upstream_cran_update(owner, identifier, slug_perm, opts = {}) - data, _status_code, _headers = repos_upstream_cran_update_with_http_info(owner, identifier, slug_perm, opts) + def repos_upstream_cran_create(owner, identifier, opts = {}) + data, _status_code, _headers = repos_upstream_cran_create_with_http_info(owner, identifier, opts) + data + end + + # Create a CRAN upstream config for this repository. + # Create a CRAN upstream config for this repository. + # @param owner + # @param identifier + # @param [Hash] opts the optional parameters + # @option opts [CranUpstreamRequest] :data + # @return [Array<(CranUpstream, Fixnum, Hash)>] CranUpstream data, response status code and response headers + def repos_upstream_cran_create_with_http_info(owner, identifier, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_cran_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_upstream_cran_create" + end + # verify the required parameter 'identifier' is set + if @api_client.config.client_side_validation && identifier.nil? + fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_cran_create" + end + # resource path + local_var_path = '/repos/{owner}/{identifier}/upstream/cran/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s) + + # query parameters + query_params = {} + + # header parameters + header_params = {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) + # HTTP header 'Content-Type' + header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) + + # form parameters + form_params = {} + + # http body (model) + post_body = @api_client.object_to_http_body(opts[:'data']) + auth_names = ['apikey', 'basic'] + data, status_code, headers = @api_client.call_api(:POST, local_var_path, + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => 'CranUpstream') + if @api_client.config.debugging + @api_client.config.logger.debug "API called: ReposApi#repos_upstream_cran_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + # Delete a CRAN upstream config for this repository. + # Delete a CRAN upstream config for this repository. + # @param owner + # @param identifier + # @param slug_perm + # @param [Hash] opts the optional parameters + # @return [nil] + def repos_upstream_cran_delete(owner, identifier, slug_perm, opts = {}) + repos_upstream_cran_delete_with_http_info(owner, identifier, slug_perm, opts) + nil + end + + # Delete a CRAN upstream config for this repository. + # Delete a CRAN upstream config for this repository. + # @param owner + # @param identifier + # @param slug_perm + # @param [Hash] opts the optional parameters + # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers + def repos_upstream_cran_delete_with_http_info(owner, identifier, slug_perm, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_cran_delete ...' + 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_upstream_cran_delete" + end + # verify the required parameter 'identifier' is set + if @api_client.config.client_side_validation && identifier.nil? + fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_cran_delete" + end + # verify the required parameter 'slug_perm' is set + if @api_client.config.client_side_validation && slug_perm.nil? + fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_cran_delete" + end + # resource path + local_var_path = '/repos/{owner}/{identifier}/upstream/cran/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) + + # query parameters + query_params = {} + + # header parameters + header_params = {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) + # HTTP header 'Content-Type' + header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) + + # form parameters + form_params = {} + + # http body (model) + post_body = nil + auth_names = ['apikey', 'basic'] + data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names) + if @api_client.config.debugging + @api_client.config.logger.debug "API called: ReposApi#repos_upstream_cran_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + # List CRAN upstream configs for this repository. + # List CRAN upstream configs for this repository. + # @param owner + # @param identifier + # @param [Hash] opts the optional parameters + # @option opts [Integer] :page A page number within the paginated result set. + # @option opts [Integer] :page_size Number of results to return per page. + # @return [Array] + def repos_upstream_cran_list(owner, identifier, opts = {}) + data, _status_code, _headers = repos_upstream_cran_list_with_http_info(owner, identifier, opts) + data + end + + # List CRAN upstream configs for this repository. + # List CRAN upstream configs for this repository. + # @param owner + # @param identifier + # @param [Hash] opts the optional parameters + # @option opts [Integer] :page A page number within the paginated result set. + # @option opts [Integer] :page_size Number of results to return per page. + # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers + def repos_upstream_cran_list_with_http_info(owner, identifier, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_cran_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_upstream_cran_list" + end + # verify the required parameter 'identifier' is set + if @api_client.config.client_side_validation && identifier.nil? + fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_cran_list" + end + # resource path + local_var_path = '/repos/{owner}/{identifier}/upstream/cran/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s) + + # query parameters + query_params = {} + query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil? + query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil? + + # header parameters + header_params = {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) + # HTTP header 'Content-Type' + header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) + + # form parameters + form_params = {} + + # http body (model) + post_body = nil + auth_names = ['apikey', 'basic'] + data, status_code, headers = @api_client.call_api(:GET, local_var_path, + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => 'Array') + if @api_client.config.debugging + @api_client.config.logger.debug "API called: ReposApi#repos_upstream_cran_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + # Partially update a CRAN upstream config for this repository. + # Partially update a CRAN upstream config for this repository. + # @param owner + # @param identifier + # @param slug_perm + # @param [Hash] opts the optional parameters + # @option opts [CranUpstreamRequestPatch] :data + # @return [CranUpstream] + def repos_upstream_cran_partial_update(owner, identifier, slug_perm, opts = {}) + data, _status_code, _headers = repos_upstream_cran_partial_update_with_http_info(owner, identifier, slug_perm, opts) + data + end + + # Partially update a CRAN upstream config for this repository. + # Partially update a CRAN upstream config for this repository. + # @param owner + # @param identifier + # @param slug_perm + # @param [Hash] opts the optional parameters + # @option opts [CranUpstreamRequestPatch] :data + # @return [Array<(CranUpstream, Fixnum, Hash)>] CranUpstream data, response status code and response headers + def repos_upstream_cran_partial_update_with_http_info(owner, identifier, slug_perm, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_cran_partial_update ...' + 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_upstream_cran_partial_update" + end + # verify the required parameter 'identifier' is set + if @api_client.config.client_side_validation && identifier.nil? + fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_cran_partial_update" + end + # verify the required parameter 'slug_perm' is set + if @api_client.config.client_side_validation && slug_perm.nil? + fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_cran_partial_update" + end + # resource path + local_var_path = '/repos/{owner}/{identifier}/upstream/cran/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) + + # query parameters + query_params = {} + + # header parameters + header_params = {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) + # HTTP header 'Content-Type' + header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) + + # form parameters + form_params = {} + + # http body (model) + post_body = @api_client.object_to_http_body(opts[:'data']) + auth_names = ['apikey', 'basic'] + data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => 'CranUpstream') + if @api_client.config.debugging + @api_client.config.logger.debug "API called: ReposApi#repos_upstream_cran_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + # Retrieve a CRAN upstream config for this repository. + # Retrieve a CRAN upstream config for this repository. + # @param owner + # @param identifier + # @param slug_perm + # @param [Hash] opts the optional parameters + # @return [CranUpstream] + def repos_upstream_cran_read(owner, identifier, slug_perm, opts = {}) + data, _status_code, _headers = repos_upstream_cran_read_with_http_info(owner, identifier, slug_perm, opts) + data + end + + # Retrieve a CRAN upstream config for this repository. + # Retrieve a CRAN upstream config for this repository. + # @param owner + # @param identifier + # @param slug_perm + # @param [Hash] opts the optional parameters + # @return [Array<(CranUpstream, Fixnum, Hash)>] CranUpstream data, response status code and response headers + def repos_upstream_cran_read_with_http_info(owner, identifier, slug_perm, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_cran_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 ReposApi.repos_upstream_cran_read" + end + # verify the required parameter 'identifier' is set + if @api_client.config.client_side_validation && identifier.nil? + fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_cran_read" + end + # verify the required parameter 'slug_perm' is set + if @api_client.config.client_side_validation && slug_perm.nil? + fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_cran_read" + end + # resource path + local_var_path = '/repos/{owner}/{identifier}/upstream/cran/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) + + # query parameters + query_params = {} + + # header parameters + header_params = {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) + # HTTP header 'Content-Type' + header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) + + # form parameters + form_params = {} + + # http body (model) + post_body = nil + auth_names = ['apikey', 'basic'] + data, status_code, headers = @api_client.call_api(:GET, local_var_path, + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => 'CranUpstream') + if @api_client.config.debugging + @api_client.config.logger.debug "API called: ReposApi#repos_upstream_cran_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + # Update a CRAN upstream config for this repository. + # Update a CRAN upstream config for this repository. + # @param owner + # @param identifier + # @param slug_perm + # @param [Hash] opts the optional parameters + # @option opts [CranUpstreamRequest] :data + # @return [CranUpstream] + def repos_upstream_cran_update(owner, identifier, slug_perm, opts = {}) + data, _status_code, _headers = repos_upstream_cran_update_with_http_info(owner, identifier, slug_perm, opts) + data + end + + # Update a CRAN upstream config for this repository. + # Update a CRAN upstream config for this repository. + # @param owner + # @param identifier + # @param slug_perm + # @param [Hash] opts the optional parameters + # @option opts [CranUpstreamRequest] :data + # @return [Array<(CranUpstream, Fixnum, Hash)>] CranUpstream data, response status code and response headers + def repos_upstream_cran_update_with_http_info(owner, identifier, slug_perm, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_cran_update ...' + 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_upstream_cran_update" + end + # verify the required parameter 'identifier' is set + if @api_client.config.client_side_validation && identifier.nil? + fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_cran_update" + end + # verify the required parameter 'slug_perm' is set + if @api_client.config.client_side_validation && slug_perm.nil? + fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_cran_update" + end + # resource path + local_var_path = '/repos/{owner}/{identifier}/upstream/cran/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) + + # query parameters + query_params = {} + + # header parameters + header_params = {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) + # HTTP header 'Content-Type' + header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) + + # form parameters + form_params = {} + + # http body (model) + post_body = @api_client.object_to_http_body(opts[:'data']) + auth_names = ['apikey', 'basic'] + data, status_code, headers = @api_client.call_api(:PUT, local_var_path, + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => 'CranUpstream') + if @api_client.config.debugging + @api_client.config.logger.debug "API called: ReposApi#repos_upstream_cran_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + # Create a Dart upstream config for this repository. + # Create a Dart upstream config for this repository. + # @param owner + # @param identifier + # @param [Hash] opts the optional parameters + # @option opts [DartUpstreamRequest] :data + # @return [DartUpstream] + def repos_upstream_dart_create(owner, identifier, opts = {}) + data, _status_code, _headers = repos_upstream_dart_create_with_http_info(owner, identifier, opts) + data + end + + # Create a Dart upstream config for this repository. + # Create a Dart upstream config for this repository. + # @param owner + # @param identifier + # @param [Hash] opts the optional parameters + # @option opts [DartUpstreamRequest] :data + # @return [Array<(DartUpstream, Fixnum, Hash)>] DartUpstream data, response status code and response headers + def repos_upstream_dart_create_with_http_info(owner, identifier, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_dart_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_upstream_dart_create" + end + # verify the required parameter 'identifier' is set + if @api_client.config.client_side_validation && identifier.nil? + fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_dart_create" + end + # resource path + local_var_path = '/repos/{owner}/{identifier}/upstream/dart/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s) + + # query parameters + query_params = {} + + # header parameters + header_params = {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) + # HTTP header 'Content-Type' + header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) + + # form parameters + form_params = {} + + # http body (model) + post_body = @api_client.object_to_http_body(opts[:'data']) + auth_names = ['apikey', 'basic'] + data, status_code, headers = @api_client.call_api(:POST, local_var_path, + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => 'DartUpstream') + if @api_client.config.debugging + @api_client.config.logger.debug "API called: ReposApi#repos_upstream_dart_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + # Delete a Dart upstream config for this repository. + # Delete a Dart upstream config for this repository. + # @param owner + # @param identifier + # @param slug_perm + # @param [Hash] opts the optional parameters + # @return [nil] + def repos_upstream_dart_delete(owner, identifier, slug_perm, opts = {}) + repos_upstream_dart_delete_with_http_info(owner, identifier, slug_perm, opts) + nil + end + + # Delete a Dart upstream config for this repository. + # Delete a Dart upstream config for this repository. + # @param owner + # @param identifier + # @param slug_perm + # @param [Hash] opts the optional parameters + # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers + def repos_upstream_dart_delete_with_http_info(owner, identifier, slug_perm, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_dart_delete ...' + 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_upstream_dart_delete" + end + # verify the required parameter 'identifier' is set + if @api_client.config.client_side_validation && identifier.nil? + fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_dart_delete" + end + # verify the required parameter 'slug_perm' is set + if @api_client.config.client_side_validation && slug_perm.nil? + fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_dart_delete" + end + # resource path + local_var_path = '/repos/{owner}/{identifier}/upstream/dart/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) + + # query parameters + query_params = {} + + # header parameters + header_params = {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) + # HTTP header 'Content-Type' + header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) + + # form parameters + form_params = {} + + # http body (model) + post_body = nil + auth_names = ['apikey', 'basic'] + data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names) + if @api_client.config.debugging + @api_client.config.logger.debug "API called: ReposApi#repos_upstream_dart_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + # List Dart upstream configs for this repository. + # List Dart upstream configs for this repository. + # @param owner + # @param identifier + # @param [Hash] opts the optional parameters + # @option opts [Integer] :page A page number within the paginated result set. + # @option opts [Integer] :page_size Number of results to return per page. + # @return [Array] + def repos_upstream_dart_list(owner, identifier, opts = {}) + data, _status_code, _headers = repos_upstream_dart_list_with_http_info(owner, identifier, opts) + data + end + + # List Dart upstream configs for this repository. + # List Dart upstream configs for this repository. + # @param owner + # @param identifier + # @param [Hash] opts the optional parameters + # @option opts [Integer] :page A page number within the paginated result set. + # @option opts [Integer] :page_size Number of results to return per page. + # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers + def repos_upstream_dart_list_with_http_info(owner, identifier, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_dart_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_upstream_dart_list" + end + # verify the required parameter 'identifier' is set + if @api_client.config.client_side_validation && identifier.nil? + fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_dart_list" + end + # resource path + local_var_path = '/repos/{owner}/{identifier}/upstream/dart/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s) + + # query parameters + query_params = {} + query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil? + query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil? + + # header parameters + header_params = {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) + # HTTP header 'Content-Type' + header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) + + # form parameters + form_params = {} + + # http body (model) + post_body = nil + auth_names = ['apikey', 'basic'] + data, status_code, headers = @api_client.call_api(:GET, local_var_path, + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => 'Array') + if @api_client.config.debugging + @api_client.config.logger.debug "API called: ReposApi#repos_upstream_dart_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + # Partially update a Dart upstream config for this repository. + # Partially update a Dart upstream config for this repository. + # @param owner + # @param identifier + # @param slug_perm + # @param [Hash] opts the optional parameters + # @option opts [DartUpstreamRequestPatch] :data + # @return [DartUpstream] + def repos_upstream_dart_partial_update(owner, identifier, slug_perm, opts = {}) + data, _status_code, _headers = repos_upstream_dart_partial_update_with_http_info(owner, identifier, slug_perm, opts) + data + end + + # Partially update a Dart upstream config for this repository. + # Partially update a Dart upstream config for this repository. + # @param owner + # @param identifier + # @param slug_perm + # @param [Hash] opts the optional parameters + # @option opts [DartUpstreamRequestPatch] :data + # @return [Array<(DartUpstream, Fixnum, Hash)>] DartUpstream data, response status code and response headers + def repos_upstream_dart_partial_update_with_http_info(owner, identifier, slug_perm, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_dart_partial_update ...' + 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_upstream_dart_partial_update" + end + # verify the required parameter 'identifier' is set + if @api_client.config.client_side_validation && identifier.nil? + fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_dart_partial_update" + end + # verify the required parameter 'slug_perm' is set + if @api_client.config.client_side_validation && slug_perm.nil? + fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_dart_partial_update" + end + # resource path + local_var_path = '/repos/{owner}/{identifier}/upstream/dart/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) + + # query parameters + query_params = {} + + # header parameters + header_params = {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) + # HTTP header 'Content-Type' + header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) + + # form parameters + form_params = {} + + # http body (model) + post_body = @api_client.object_to_http_body(opts[:'data']) + auth_names = ['apikey', 'basic'] + data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => 'DartUpstream') + if @api_client.config.debugging + @api_client.config.logger.debug "API called: ReposApi#repos_upstream_dart_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + # Retrieve a Dart upstream config for this repository. + # Retrieve a Dart upstream config for this repository. + # @param owner + # @param identifier + # @param slug_perm + # @param [Hash] opts the optional parameters + # @return [DartUpstream] + def repos_upstream_dart_read(owner, identifier, slug_perm, opts = {}) + data, _status_code, _headers = repos_upstream_dart_read_with_http_info(owner, identifier, slug_perm, opts) + data + end + + # Retrieve a Dart upstream config for this repository. + # Retrieve a Dart upstream config for this repository. + # @param owner + # @param identifier + # @param slug_perm + # @param [Hash] opts the optional parameters + # @return [Array<(DartUpstream, Fixnum, Hash)>] DartUpstream data, response status code and response headers + def repos_upstream_dart_read_with_http_info(owner, identifier, slug_perm, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_dart_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 ReposApi.repos_upstream_dart_read" + end + # verify the required parameter 'identifier' is set + if @api_client.config.client_side_validation && identifier.nil? + fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_dart_read" + end + # verify the required parameter 'slug_perm' is set + if @api_client.config.client_side_validation && slug_perm.nil? + fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_dart_read" + end + # resource path + local_var_path = '/repos/{owner}/{identifier}/upstream/dart/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) + + # query parameters + query_params = {} + + # header parameters + header_params = {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) + # HTTP header 'Content-Type' + header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) + + # form parameters + form_params = {} + + # http body (model) + post_body = nil + auth_names = ['apikey', 'basic'] + data, status_code, headers = @api_client.call_api(:GET, local_var_path, + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => 'DartUpstream') + if @api_client.config.debugging + @api_client.config.logger.debug "API called: ReposApi#repos_upstream_dart_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + # Update a Dart upstream config for this repository. + # Update a Dart upstream config for this repository. + # @param owner + # @param identifier + # @param slug_perm + # @param [Hash] opts the optional parameters + # @option opts [DartUpstreamRequest] :data + # @return [DartUpstream] + def repos_upstream_dart_update(owner, identifier, slug_perm, opts = {}) + data, _status_code, _headers = repos_upstream_dart_update_with_http_info(owner, identifier, slug_perm, opts) data end - # Update a CRAN upstream config for this repository. - # Update a CRAN upstream config for this repository. + # Update a Dart upstream config for this repository. + # Update a Dart upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters - # @option opts [CranUpstreamRequest] :data - # @return [Array<(CranUpstream, Fixnum, Hash)>] CranUpstream data, response status code and response headers - def repos_upstream_cran_update_with_http_info(owner, identifier, slug_perm, opts = {}) + # @option opts [DartUpstreamRequest] :data + # @return [Array<(DartUpstream, Fixnum, Hash)>] DartUpstream data, response status code and response headers + def repos_upstream_dart_update_with_http_info(owner, identifier, slug_perm, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_cran_update ...' + @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_dart_update ...' 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_upstream_cran_update" + fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_dart_update" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? - fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_cran_update" + fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_dart_update" end # verify the required parameter 'slug_perm' is set if @api_client.config.client_side_validation && slug_perm.nil? - fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_cran_update" + fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_dart_update" end # resource path - local_var_path = '/repos/{owner}/{identifier}/upstream/cran/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) + local_var_path = '/repos/{owner}/{identifier}/upstream/dart/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) # query parameters query_params = {} @@ -2445,45 +3235,45 @@ def repos_upstream_cran_update_with_http_info(owner, identifier, slug_perm, opts :form_params => form_params, :body => post_body, :auth_names => auth_names, - :return_type => 'CranUpstream') + :return_type => 'DartUpstream') if @api_client.config.debugging - @api_client.config.logger.debug "API called: ReposApi#repos_upstream_cran_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: ReposApi#repos_upstream_dart_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end - # Create a Dart upstream config for this repository. - # Create a Dart upstream config for this repository. + # Create a Debian upstream config for this repository. + # Create a Debian upstream config for this repository. # @param owner # @param identifier # @param [Hash] opts the optional parameters - # @option opts [DartUpstreamRequest] :data - # @return [DartUpstream] - def repos_upstream_dart_create(owner, identifier, opts = {}) - data, _status_code, _headers = repos_upstream_dart_create_with_http_info(owner, identifier, opts) + # @option opts [DebUpstreamRequest] :data + # @return [DebUpstream] + def repos_upstream_deb_create(owner, identifier, opts = {}) + data, _status_code, _headers = repos_upstream_deb_create_with_http_info(owner, identifier, opts) data end - # Create a Dart upstream config for this repository. - # Create a Dart upstream config for this repository. + # Create a Debian upstream config for this repository. + # Create a Debian upstream config for this repository. # @param owner # @param identifier # @param [Hash] opts the optional parameters - # @option opts [DartUpstreamRequest] :data - # @return [Array<(DartUpstream, Fixnum, Hash)>] DartUpstream data, response status code and response headers - def repos_upstream_dart_create_with_http_info(owner, identifier, opts = {}) + # @option opts [DebUpstreamRequest] :data + # @return [Array<(DebUpstream, Fixnum, Hash)>] DebUpstream data, response status code and response headers + def repos_upstream_deb_create_with_http_info(owner, identifier, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_dart_create ...' + @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_deb_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_upstream_dart_create" + fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_deb_create" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? - fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_dart_create" + fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_deb_create" end # resource path - local_var_path = '/repos/{owner}/{identifier}/upstream/dart/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s) + local_var_path = '/repos/{owner}/{identifier}/upstream/deb/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s) # query parameters query_params = {} @@ -2507,49 +3297,49 @@ def repos_upstream_dart_create_with_http_info(owner, identifier, opts = {}) :form_params => form_params, :body => post_body, :auth_names => auth_names, - :return_type => 'DartUpstream') + :return_type => 'DebUpstream') if @api_client.config.debugging - @api_client.config.logger.debug "API called: ReposApi#repos_upstream_dart_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: ReposApi#repos_upstream_deb_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end - # Delete a Dart upstream config for this repository. - # Delete a Dart upstream config for this repository. + # Delete a Debian upstream config for this repository. + # Delete a Debian upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @return [nil] - def repos_upstream_dart_delete(owner, identifier, slug_perm, opts = {}) - repos_upstream_dart_delete_with_http_info(owner, identifier, slug_perm, opts) + def repos_upstream_deb_delete(owner, identifier, slug_perm, opts = {}) + repos_upstream_deb_delete_with_http_info(owner, identifier, slug_perm, opts) nil end - # Delete a Dart upstream config for this repository. - # Delete a Dart upstream config for this repository. + # Delete a Debian upstream config for this repository. + # Delete a Debian upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers - def repos_upstream_dart_delete_with_http_info(owner, identifier, slug_perm, opts = {}) + def repos_upstream_deb_delete_with_http_info(owner, identifier, slug_perm, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_dart_delete ...' + @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_deb_delete ...' 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_upstream_dart_delete" + fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_deb_delete" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? - fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_dart_delete" + fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_deb_delete" end # verify the required parameter 'slug_perm' is set if @api_client.config.client_side_validation && slug_perm.nil? - fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_dart_delete" + fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_deb_delete" end # resource path - local_var_path = '/repos/{owner}/{identifier}/upstream/dart/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) + local_var_path = '/repos/{owner}/{identifier}/upstream/deb/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) # query parameters query_params = {} @@ -2574,45 +3364,45 @@ def repos_upstream_dart_delete_with_http_info(owner, identifier, slug_perm, opts :body => post_body, :auth_names => auth_names) if @api_client.config.debugging - @api_client.config.logger.debug "API called: ReposApi#repos_upstream_dart_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: ReposApi#repos_upstream_deb_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end - # List Dart upstream configs for this repository. - # List Dart upstream configs for this repository. + # List Debian upstream configs for this repository. + # List Debian upstream configs for this repository. # @param owner # @param identifier # @param [Hash] opts the optional parameters # @option opts [Integer] :page A page number within the paginated result set. # @option opts [Integer] :page_size Number of results to return per page. - # @return [Array] - def repos_upstream_dart_list(owner, identifier, opts = {}) - data, _status_code, _headers = repos_upstream_dart_list_with_http_info(owner, identifier, opts) + # @return [Array] + def repos_upstream_deb_list(owner, identifier, opts = {}) + data, _status_code, _headers = repos_upstream_deb_list_with_http_info(owner, identifier, opts) data end - # List Dart upstream configs for this repository. - # List Dart upstream configs for this repository. + # List Debian upstream configs for this repository. + # List Debian upstream configs for this repository. # @param owner # @param identifier # @param [Hash] opts the optional parameters # @option opts [Integer] :page A page number within the paginated result set. # @option opts [Integer] :page_size Number of results to return per page. - # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers - def repos_upstream_dart_list_with_http_info(owner, identifier, opts = {}) + # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers + def repos_upstream_deb_list_with_http_info(owner, identifier, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_dart_list ...' + @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_deb_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_upstream_dart_list" + fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_deb_list" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? - fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_dart_list" + fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_deb_list" end # resource path - local_var_path = '/repos/{owner}/{identifier}/upstream/dart/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s) + local_var_path = '/repos/{owner}/{identifier}/upstream/deb/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s) # query parameters query_params = {} @@ -2638,51 +3428,51 @@ def repos_upstream_dart_list_with_http_info(owner, identifier, opts = {}) :form_params => form_params, :body => post_body, :auth_names => auth_names, - :return_type => 'Array') + :return_type => 'Array') if @api_client.config.debugging - @api_client.config.logger.debug "API called: ReposApi#repos_upstream_dart_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: ReposApi#repos_upstream_deb_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end - # Partially update a Dart upstream config for this repository. - # Partially update a Dart upstream config for this repository. + # Partially update a Debian upstream config for this repository. + # Partially update a Debian upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters - # @option opts [DartUpstreamRequestPatch] :data - # @return [DartUpstream] - def repos_upstream_dart_partial_update(owner, identifier, slug_perm, opts = {}) - data, _status_code, _headers = repos_upstream_dart_partial_update_with_http_info(owner, identifier, slug_perm, opts) + # @option opts [DebUpstreamRequestPatch] :data + # @return [DebUpstream] + def repos_upstream_deb_partial_update(owner, identifier, slug_perm, opts = {}) + data, _status_code, _headers = repos_upstream_deb_partial_update_with_http_info(owner, identifier, slug_perm, opts) data end - # Partially update a Dart upstream config for this repository. - # Partially update a Dart upstream config for this repository. + # Partially update a Debian upstream config for this repository. + # Partially update a Debian upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters - # @option opts [DartUpstreamRequestPatch] :data - # @return [Array<(DartUpstream, Fixnum, Hash)>] DartUpstream data, response status code and response headers - def repos_upstream_dart_partial_update_with_http_info(owner, identifier, slug_perm, opts = {}) + # @option opts [DebUpstreamRequestPatch] :data + # @return [Array<(DebUpstream, Fixnum, Hash)>] DebUpstream data, response status code and response headers + def repos_upstream_deb_partial_update_with_http_info(owner, identifier, slug_perm, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_dart_partial_update ...' + @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_deb_partial_update ...' 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_upstream_dart_partial_update" + fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_deb_partial_update" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? - fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_dart_partial_update" + fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_deb_partial_update" end # verify the required parameter 'slug_perm' is set if @api_client.config.client_side_validation && slug_perm.nil? - fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_dart_partial_update" + fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_deb_partial_update" end # resource path - local_var_path = '/repos/{owner}/{identifier}/upstream/dart/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) + local_var_path = '/repos/{owner}/{identifier}/upstream/deb/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) # query parameters query_params = {} @@ -2706,49 +3496,49 @@ def repos_upstream_dart_partial_update_with_http_info(owner, identifier, slug_pe :form_params => form_params, :body => post_body, :auth_names => auth_names, - :return_type => 'DartUpstream') + :return_type => 'DebUpstream') if @api_client.config.debugging - @api_client.config.logger.debug "API called: ReposApi#repos_upstream_dart_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: ReposApi#repos_upstream_deb_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end - # Retrieve a Dart upstream config for this repository. - # Retrieve a Dart upstream config for this repository. + # Retrieve a Debian upstream config for this repository. + # Retrieve a Debian upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters - # @return [DartUpstream] - def repos_upstream_dart_read(owner, identifier, slug_perm, opts = {}) - data, _status_code, _headers = repos_upstream_dart_read_with_http_info(owner, identifier, slug_perm, opts) + # @return [DebUpstream] + def repos_upstream_deb_read(owner, identifier, slug_perm, opts = {}) + data, _status_code, _headers = repos_upstream_deb_read_with_http_info(owner, identifier, slug_perm, opts) data end - # Retrieve a Dart upstream config for this repository. - # Retrieve a Dart upstream config for this repository. + # Retrieve a Debian upstream config for this repository. + # Retrieve a Debian upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters - # @return [Array<(DartUpstream, Fixnum, Hash)>] DartUpstream data, response status code and response headers - def repos_upstream_dart_read_with_http_info(owner, identifier, slug_perm, opts = {}) + # @return [Array<(DebUpstream, Fixnum, Hash)>] DebUpstream data, response status code and response headers + def repos_upstream_deb_read_with_http_info(owner, identifier, slug_perm, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_dart_read ...' + @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_deb_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 ReposApi.repos_upstream_dart_read" + fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_deb_read" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? - fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_dart_read" + fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_deb_read" end # verify the required parameter 'slug_perm' is set if @api_client.config.client_side_validation && slug_perm.nil? - fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_dart_read" + fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_deb_read" end # resource path - local_var_path = '/repos/{owner}/{identifier}/upstream/dart/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) + local_var_path = '/repos/{owner}/{identifier}/upstream/deb/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) # query parameters query_params = {} @@ -2772,51 +3562,51 @@ def repos_upstream_dart_read_with_http_info(owner, identifier, slug_perm, opts = :form_params => form_params, :body => post_body, :auth_names => auth_names, - :return_type => 'DartUpstream') + :return_type => 'DebUpstream') if @api_client.config.debugging - @api_client.config.logger.debug "API called: ReposApi#repos_upstream_dart_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: ReposApi#repos_upstream_deb_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end - # Update a Dart upstream config for this repository. - # Update a Dart upstream config for this repository. + # Update a Debian upstream config for this repository. + # Update a Debian upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters - # @option opts [DartUpstreamRequest] :data - # @return [DartUpstream] - def repos_upstream_dart_update(owner, identifier, slug_perm, opts = {}) - data, _status_code, _headers = repos_upstream_dart_update_with_http_info(owner, identifier, slug_perm, opts) + # @option opts [DebUpstreamRequest] :data + # @return [DebUpstream] + def repos_upstream_deb_update(owner, identifier, slug_perm, opts = {}) + data, _status_code, _headers = repos_upstream_deb_update_with_http_info(owner, identifier, slug_perm, opts) data end - # Update a Dart upstream config for this repository. - # Update a Dart upstream config for this repository. + # Update a Debian upstream config for this repository. + # Update a Debian upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters - # @option opts [DartUpstreamRequest] :data - # @return [Array<(DartUpstream, Fixnum, Hash)>] DartUpstream data, response status code and response headers - def repos_upstream_dart_update_with_http_info(owner, identifier, slug_perm, opts = {}) + # @option opts [DebUpstreamRequest] :data + # @return [Array<(DebUpstream, Fixnum, Hash)>] DebUpstream data, response status code and response headers + def repos_upstream_deb_update_with_http_info(owner, identifier, slug_perm, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_dart_update ...' + @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_deb_update ...' 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_upstream_dart_update" + fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_deb_update" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? - fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_dart_update" + fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_deb_update" end # verify the required parameter 'slug_perm' is set if @api_client.config.client_side_validation && slug_perm.nil? - fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_dart_update" + fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_deb_update" end # resource path - local_var_path = '/repos/{owner}/{identifier}/upstream/dart/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) + local_var_path = '/repos/{owner}/{identifier}/upstream/deb/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) # query parameters query_params = {} @@ -2840,45 +3630,45 @@ def repos_upstream_dart_update_with_http_info(owner, identifier, slug_perm, opts :form_params => form_params, :body => post_body, :auth_names => auth_names, - :return_type => 'DartUpstream') + :return_type => 'DebUpstream') if @api_client.config.debugging - @api_client.config.logger.debug "API called: ReposApi#repos_upstream_dart_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: ReposApi#repos_upstream_deb_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end - # Create a Debian upstream config for this repository. - # Create a Debian upstream config for this repository. + # Create a Docker upstream config for this repository. + # Create a Docker upstream config for this repository. # @param owner # @param identifier # @param [Hash] opts the optional parameters - # @option opts [DebUpstreamRequest] :data - # @return [DebUpstream] - def repos_upstream_deb_create(owner, identifier, opts = {}) - data, _status_code, _headers = repos_upstream_deb_create_with_http_info(owner, identifier, opts) + # @option opts [DockerUpstreamRequest] :data + # @return [DockerUpstream] + def repos_upstream_docker_create(owner, identifier, opts = {}) + data, _status_code, _headers = repos_upstream_docker_create_with_http_info(owner, identifier, opts) data end - # Create a Debian upstream config for this repository. - # Create a Debian upstream config for this repository. + # Create a Docker upstream config for this repository. + # Create a Docker upstream config for this repository. # @param owner # @param identifier # @param [Hash] opts the optional parameters - # @option opts [DebUpstreamRequest] :data - # @return [Array<(DebUpstream, Fixnum, Hash)>] DebUpstream data, response status code and response headers - def repos_upstream_deb_create_with_http_info(owner, identifier, opts = {}) + # @option opts [DockerUpstreamRequest] :data + # @return [Array<(DockerUpstream, Fixnum, Hash)>] DockerUpstream data, response status code and response headers + def repos_upstream_docker_create_with_http_info(owner, identifier, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_deb_create ...' + @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_docker_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_upstream_deb_create" + fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_docker_create" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? - fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_deb_create" + fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_docker_create" end # resource path - local_var_path = '/repos/{owner}/{identifier}/upstream/deb/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s) + local_var_path = '/repos/{owner}/{identifier}/upstream/docker/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s) # query parameters query_params = {} @@ -2902,49 +3692,49 @@ def repos_upstream_deb_create_with_http_info(owner, identifier, opts = {}) :form_params => form_params, :body => post_body, :auth_names => auth_names, - :return_type => 'DebUpstream') + :return_type => 'DockerUpstream') if @api_client.config.debugging - @api_client.config.logger.debug "API called: ReposApi#repos_upstream_deb_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: ReposApi#repos_upstream_docker_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers - end - # Delete a Debian upstream config for this repository. - # Delete a Debian upstream config for this repository. + end + # Delete a Docker upstream config for this repository. + # Delete a Docker upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @return [nil] - def repos_upstream_deb_delete(owner, identifier, slug_perm, opts = {}) - repos_upstream_deb_delete_with_http_info(owner, identifier, slug_perm, opts) + def repos_upstream_docker_delete(owner, identifier, slug_perm, opts = {}) + repos_upstream_docker_delete_with_http_info(owner, identifier, slug_perm, opts) nil end - # Delete a Debian upstream config for this repository. - # Delete a Debian upstream config for this repository. + # Delete a Docker upstream config for this repository. + # Delete a Docker upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers - def repos_upstream_deb_delete_with_http_info(owner, identifier, slug_perm, opts = {}) + def repos_upstream_docker_delete_with_http_info(owner, identifier, slug_perm, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_deb_delete ...' + @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_docker_delete ...' 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_upstream_deb_delete" + fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_docker_delete" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? - fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_deb_delete" + fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_docker_delete" end # verify the required parameter 'slug_perm' is set if @api_client.config.client_side_validation && slug_perm.nil? - fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_deb_delete" + fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_docker_delete" end # resource path - local_var_path = '/repos/{owner}/{identifier}/upstream/deb/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) + local_var_path = '/repos/{owner}/{identifier}/upstream/docker/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) # query parameters query_params = {} @@ -2969,45 +3759,45 @@ def repos_upstream_deb_delete_with_http_info(owner, identifier, slug_perm, opts :body => post_body, :auth_names => auth_names) if @api_client.config.debugging - @api_client.config.logger.debug "API called: ReposApi#repos_upstream_deb_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: ReposApi#repos_upstream_docker_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end - # List Debian upstream configs for this repository. - # List Debian upstream configs for this repository. + # List Docker upstream configs for this repository. + # List Docker upstream configs for this repository. # @param owner # @param identifier # @param [Hash] opts the optional parameters # @option opts [Integer] :page A page number within the paginated result set. # @option opts [Integer] :page_size Number of results to return per page. - # @return [Array] - def repos_upstream_deb_list(owner, identifier, opts = {}) - data, _status_code, _headers = repos_upstream_deb_list_with_http_info(owner, identifier, opts) + # @return [Array] + def repos_upstream_docker_list(owner, identifier, opts = {}) + data, _status_code, _headers = repos_upstream_docker_list_with_http_info(owner, identifier, opts) data end - # List Debian upstream configs for this repository. - # List Debian upstream configs for this repository. + # List Docker upstream configs for this repository. + # List Docker upstream configs for this repository. # @param owner # @param identifier # @param [Hash] opts the optional parameters # @option opts [Integer] :page A page number within the paginated result set. # @option opts [Integer] :page_size Number of results to return per page. - # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers - def repos_upstream_deb_list_with_http_info(owner, identifier, opts = {}) + # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers + def repos_upstream_docker_list_with_http_info(owner, identifier, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_deb_list ...' + @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_docker_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_upstream_deb_list" + fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_docker_list" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? - fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_deb_list" + fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_docker_list" end # resource path - local_var_path = '/repos/{owner}/{identifier}/upstream/deb/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s) + local_var_path = '/repos/{owner}/{identifier}/upstream/docker/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s) # query parameters query_params = {} @@ -3033,51 +3823,51 @@ def repos_upstream_deb_list_with_http_info(owner, identifier, opts = {}) :form_params => form_params, :body => post_body, :auth_names => auth_names, - :return_type => 'Array') + :return_type => 'Array') if @api_client.config.debugging - @api_client.config.logger.debug "API called: ReposApi#repos_upstream_deb_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: ReposApi#repos_upstream_docker_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end - # Partially update a Debian upstream config for this repository. - # Partially update a Debian upstream config for this repository. + # Partially update a Docker upstream config for this repository. + # Partially update a Docker upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters - # @option opts [DebUpstreamRequestPatch] :data - # @return [DebUpstream] - def repos_upstream_deb_partial_update(owner, identifier, slug_perm, opts = {}) - data, _status_code, _headers = repos_upstream_deb_partial_update_with_http_info(owner, identifier, slug_perm, opts) + # @option opts [DockerUpstreamRequestPatch] :data + # @return [DockerUpstream] + def repos_upstream_docker_partial_update(owner, identifier, slug_perm, opts = {}) + data, _status_code, _headers = repos_upstream_docker_partial_update_with_http_info(owner, identifier, slug_perm, opts) data end - # Partially update a Debian upstream config for this repository. - # Partially update a Debian upstream config for this repository. + # Partially update a Docker upstream config for this repository. + # Partially update a Docker upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters - # @option opts [DebUpstreamRequestPatch] :data - # @return [Array<(DebUpstream, Fixnum, Hash)>] DebUpstream data, response status code and response headers - def repos_upstream_deb_partial_update_with_http_info(owner, identifier, slug_perm, opts = {}) + # @option opts [DockerUpstreamRequestPatch] :data + # @return [Array<(DockerUpstream, Fixnum, Hash)>] DockerUpstream data, response status code and response headers + def repos_upstream_docker_partial_update_with_http_info(owner, identifier, slug_perm, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_deb_partial_update ...' + @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_docker_partial_update ...' 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_upstream_deb_partial_update" + fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_docker_partial_update" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? - fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_deb_partial_update" + fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_docker_partial_update" end # verify the required parameter 'slug_perm' is set if @api_client.config.client_side_validation && slug_perm.nil? - fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_deb_partial_update" + fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_docker_partial_update" end # resource path - local_var_path = '/repos/{owner}/{identifier}/upstream/deb/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) + local_var_path = '/repos/{owner}/{identifier}/upstream/docker/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) # query parameters query_params = {} @@ -3101,49 +3891,49 @@ def repos_upstream_deb_partial_update_with_http_info(owner, identifier, slug_per :form_params => form_params, :body => post_body, :auth_names => auth_names, - :return_type => 'DebUpstream') + :return_type => 'DockerUpstream') if @api_client.config.debugging - @api_client.config.logger.debug "API called: ReposApi#repos_upstream_deb_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: ReposApi#repos_upstream_docker_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end - # Retrieve a Debian upstream config for this repository. - # Retrieve a Debian upstream config for this repository. + # Retrieve a Docker upstream config for this repository. + # Retrieve a Docker upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters - # @return [DebUpstream] - def repos_upstream_deb_read(owner, identifier, slug_perm, opts = {}) - data, _status_code, _headers = repos_upstream_deb_read_with_http_info(owner, identifier, slug_perm, opts) + # @return [DockerUpstream] + def repos_upstream_docker_read(owner, identifier, slug_perm, opts = {}) + data, _status_code, _headers = repos_upstream_docker_read_with_http_info(owner, identifier, slug_perm, opts) data end - # Retrieve a Debian upstream config for this repository. - # Retrieve a Debian upstream config for this repository. + # Retrieve a Docker upstream config for this repository. + # Retrieve a Docker upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters - # @return [Array<(DebUpstream, Fixnum, Hash)>] DebUpstream data, response status code and response headers - def repos_upstream_deb_read_with_http_info(owner, identifier, slug_perm, opts = {}) + # @return [Array<(DockerUpstream, Fixnum, Hash)>] DockerUpstream data, response status code and response headers + def repos_upstream_docker_read_with_http_info(owner, identifier, slug_perm, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_deb_read ...' + @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_docker_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 ReposApi.repos_upstream_deb_read" + fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_docker_read" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? - fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_deb_read" + fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_docker_read" end # verify the required parameter 'slug_perm' is set if @api_client.config.client_side_validation && slug_perm.nil? - fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_deb_read" + fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_docker_read" end # resource path - local_var_path = '/repos/{owner}/{identifier}/upstream/deb/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) + local_var_path = '/repos/{owner}/{identifier}/upstream/docker/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) # query parameters query_params = {} @@ -3167,51 +3957,51 @@ def repos_upstream_deb_read_with_http_info(owner, identifier, slug_perm, opts = :form_params => form_params, :body => post_body, :auth_names => auth_names, - :return_type => 'DebUpstream') + :return_type => 'DockerUpstream') if @api_client.config.debugging - @api_client.config.logger.debug "API called: ReposApi#repos_upstream_deb_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: ReposApi#repos_upstream_docker_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end - # Update a Debian upstream config for this repository. - # Update a Debian upstream config for this repository. + # Update a Docker upstream config for this repository. + # Update a Docker upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters - # @option opts [DebUpstreamRequest] :data - # @return [DebUpstream] - def repos_upstream_deb_update(owner, identifier, slug_perm, opts = {}) - data, _status_code, _headers = repos_upstream_deb_update_with_http_info(owner, identifier, slug_perm, opts) + # @option opts [DockerUpstreamRequest] :data + # @return [DockerUpstream] + def repos_upstream_docker_update(owner, identifier, slug_perm, opts = {}) + data, _status_code, _headers = repos_upstream_docker_update_with_http_info(owner, identifier, slug_perm, opts) data end - # Update a Debian upstream config for this repository. - # Update a Debian upstream config for this repository. + # Update a Docker upstream config for this repository. + # Update a Docker upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters - # @option opts [DebUpstreamRequest] :data - # @return [Array<(DebUpstream, Fixnum, Hash)>] DebUpstream data, response status code and response headers - def repos_upstream_deb_update_with_http_info(owner, identifier, slug_perm, opts = {}) + # @option opts [DockerUpstreamRequest] :data + # @return [Array<(DockerUpstream, Fixnum, Hash)>] DockerUpstream data, response status code and response headers + def repos_upstream_docker_update_with_http_info(owner, identifier, slug_perm, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_deb_update ...' + @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_docker_update ...' 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_upstream_deb_update" + fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_docker_update" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? - fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_deb_update" + fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_docker_update" end # verify the required parameter 'slug_perm' is set if @api_client.config.client_side_validation && slug_perm.nil? - fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_deb_update" + fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_docker_update" end # resource path - local_var_path = '/repos/{owner}/{identifier}/upstream/deb/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) + local_var_path = '/repos/{owner}/{identifier}/upstream/docker/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) # query parameters query_params = {} @@ -3235,45 +4025,45 @@ def repos_upstream_deb_update_with_http_info(owner, identifier, slug_perm, opts :form_params => form_params, :body => post_body, :auth_names => auth_names, - :return_type => 'DebUpstream') + :return_type => 'DockerUpstream') if @api_client.config.debugging - @api_client.config.logger.debug "API called: ReposApi#repos_upstream_deb_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: ReposApi#repos_upstream_docker_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end - # Create a Docker upstream config for this repository. - # Create a Docker upstream config for this repository. + # Create a Go upstream config for this repository. + # Create a Go upstream config for this repository. # @param owner # @param identifier # @param [Hash] opts the optional parameters - # @option opts [DockerUpstreamRequest] :data - # @return [DockerUpstream] - def repos_upstream_docker_create(owner, identifier, opts = {}) - data, _status_code, _headers = repos_upstream_docker_create_with_http_info(owner, identifier, opts) + # @option opts [GoUpstreamRequest] :data + # @return [GoUpstream] + def repos_upstream_go_create(owner, identifier, opts = {}) + data, _status_code, _headers = repos_upstream_go_create_with_http_info(owner, identifier, opts) data end - # Create a Docker upstream config for this repository. - # Create a Docker upstream config for this repository. + # Create a Go upstream config for this repository. + # Create a Go upstream config for this repository. # @param owner # @param identifier # @param [Hash] opts the optional parameters - # @option opts [DockerUpstreamRequest] :data - # @return [Array<(DockerUpstream, Fixnum, Hash)>] DockerUpstream data, response status code and response headers - def repos_upstream_docker_create_with_http_info(owner, identifier, opts = {}) + # @option opts [GoUpstreamRequest] :data + # @return [Array<(GoUpstream, Fixnum, Hash)>] GoUpstream data, response status code and response headers + def repos_upstream_go_create_with_http_info(owner, identifier, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_docker_create ...' + @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_go_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_upstream_docker_create" + fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_go_create" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? - fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_docker_create" + fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_go_create" end # resource path - local_var_path = '/repos/{owner}/{identifier}/upstream/docker/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s) + local_var_path = '/repos/{owner}/{identifier}/upstream/go/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s) # query parameters query_params = {} @@ -3297,49 +4087,49 @@ def repos_upstream_docker_create_with_http_info(owner, identifier, opts = {}) :form_params => form_params, :body => post_body, :auth_names => auth_names, - :return_type => 'DockerUpstream') + :return_type => 'GoUpstream') if @api_client.config.debugging - @api_client.config.logger.debug "API called: ReposApi#repos_upstream_docker_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: ReposApi#repos_upstream_go_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end - # Delete a Docker upstream config for this repository. - # Delete a Docker upstream config for this repository. + # Delete a Go upstream config for this repository. + # Delete a Go upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @return [nil] - def repos_upstream_docker_delete(owner, identifier, slug_perm, opts = {}) - repos_upstream_docker_delete_with_http_info(owner, identifier, slug_perm, opts) + def repos_upstream_go_delete(owner, identifier, slug_perm, opts = {}) + repos_upstream_go_delete_with_http_info(owner, identifier, slug_perm, opts) nil end - # Delete a Docker upstream config for this repository. - # Delete a Docker upstream config for this repository. + # Delete a Go upstream config for this repository. + # Delete a Go upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers - def repos_upstream_docker_delete_with_http_info(owner, identifier, slug_perm, opts = {}) + def repos_upstream_go_delete_with_http_info(owner, identifier, slug_perm, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_docker_delete ...' + @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_go_delete ...' 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_upstream_docker_delete" + fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_go_delete" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? - fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_docker_delete" + fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_go_delete" end # verify the required parameter 'slug_perm' is set if @api_client.config.client_side_validation && slug_perm.nil? - fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_docker_delete" + fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_go_delete" end # resource path - local_var_path = '/repos/{owner}/{identifier}/upstream/docker/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) + local_var_path = '/repos/{owner}/{identifier}/upstream/go/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) # query parameters query_params = {} @@ -3364,45 +4154,45 @@ def repos_upstream_docker_delete_with_http_info(owner, identifier, slug_perm, op :body => post_body, :auth_names => auth_names) if @api_client.config.debugging - @api_client.config.logger.debug "API called: ReposApi#repos_upstream_docker_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: ReposApi#repos_upstream_go_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end - # List Docker upstream configs for this repository. - # List Docker upstream configs for this repository. + # List Go upstream configs for this repository. + # List Go upstream configs for this repository. # @param owner # @param identifier # @param [Hash] opts the optional parameters # @option opts [Integer] :page A page number within the paginated result set. # @option opts [Integer] :page_size Number of results to return per page. - # @return [Array] - def repos_upstream_docker_list(owner, identifier, opts = {}) - data, _status_code, _headers = repos_upstream_docker_list_with_http_info(owner, identifier, opts) + # @return [Array] + def repos_upstream_go_list(owner, identifier, opts = {}) + data, _status_code, _headers = repos_upstream_go_list_with_http_info(owner, identifier, opts) data end - # List Docker upstream configs for this repository. - # List Docker upstream configs for this repository. + # List Go upstream configs for this repository. + # List Go upstream configs for this repository. # @param owner # @param identifier # @param [Hash] opts the optional parameters # @option opts [Integer] :page A page number within the paginated result set. # @option opts [Integer] :page_size Number of results to return per page. - # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers - def repos_upstream_docker_list_with_http_info(owner, identifier, opts = {}) + # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers + def repos_upstream_go_list_with_http_info(owner, identifier, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_docker_list ...' + @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_go_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_upstream_docker_list" + fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_go_list" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? - fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_docker_list" + fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_go_list" end # resource path - local_var_path = '/repos/{owner}/{identifier}/upstream/docker/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s) + local_var_path = '/repos/{owner}/{identifier}/upstream/go/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s) # query parameters query_params = {} @@ -3428,51 +4218,51 @@ def repos_upstream_docker_list_with_http_info(owner, identifier, opts = {}) :form_params => form_params, :body => post_body, :auth_names => auth_names, - :return_type => 'Array') + :return_type => 'Array') if @api_client.config.debugging - @api_client.config.logger.debug "API called: ReposApi#repos_upstream_docker_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: ReposApi#repos_upstream_go_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end - # Partially update a Docker upstream config for this repository. - # Partially update a Docker upstream config for this repository. + # Partially update a Go upstream config for this repository. + # Partially update a Go upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters - # @option opts [DockerUpstreamRequestPatch] :data - # @return [DockerUpstream] - def repos_upstream_docker_partial_update(owner, identifier, slug_perm, opts = {}) - data, _status_code, _headers = repos_upstream_docker_partial_update_with_http_info(owner, identifier, slug_perm, opts) + # @option opts [GoUpstreamRequestPatch] :data + # @return [GoUpstream] + def repos_upstream_go_partial_update(owner, identifier, slug_perm, opts = {}) + data, _status_code, _headers = repos_upstream_go_partial_update_with_http_info(owner, identifier, slug_perm, opts) data end - # Partially update a Docker upstream config for this repository. - # Partially update a Docker upstream config for this repository. + # Partially update a Go upstream config for this repository. + # Partially update a Go upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters - # @option opts [DockerUpstreamRequestPatch] :data - # @return [Array<(DockerUpstream, Fixnum, Hash)>] DockerUpstream data, response status code and response headers - def repos_upstream_docker_partial_update_with_http_info(owner, identifier, slug_perm, opts = {}) + # @option opts [GoUpstreamRequestPatch] :data + # @return [Array<(GoUpstream, Fixnum, Hash)>] GoUpstream data, response status code and response headers + def repos_upstream_go_partial_update_with_http_info(owner, identifier, slug_perm, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_docker_partial_update ...' + @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_go_partial_update ...' 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_upstream_docker_partial_update" + fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_go_partial_update" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? - fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_docker_partial_update" + fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_go_partial_update" end # verify the required parameter 'slug_perm' is set if @api_client.config.client_side_validation && slug_perm.nil? - fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_docker_partial_update" + fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_go_partial_update" end # resource path - local_var_path = '/repos/{owner}/{identifier}/upstream/docker/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) + local_var_path = '/repos/{owner}/{identifier}/upstream/go/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) # query parameters query_params = {} @@ -3496,49 +4286,49 @@ def repos_upstream_docker_partial_update_with_http_info(owner, identifier, slug_ :form_params => form_params, :body => post_body, :auth_names => auth_names, - :return_type => 'DockerUpstream') + :return_type => 'GoUpstream') if @api_client.config.debugging - @api_client.config.logger.debug "API called: ReposApi#repos_upstream_docker_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: ReposApi#repos_upstream_go_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end - # Retrieve a Docker upstream config for this repository. - # Retrieve a Docker upstream config for this repository. + # Retrieve a Go upstream config for this repository. + # Retrieve a Go upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters - # @return [DockerUpstream] - def repos_upstream_docker_read(owner, identifier, slug_perm, opts = {}) - data, _status_code, _headers = repos_upstream_docker_read_with_http_info(owner, identifier, slug_perm, opts) + # @return [GoUpstream] + def repos_upstream_go_read(owner, identifier, slug_perm, opts = {}) + data, _status_code, _headers = repos_upstream_go_read_with_http_info(owner, identifier, slug_perm, opts) data end - # Retrieve a Docker upstream config for this repository. - # Retrieve a Docker upstream config for this repository. + # Retrieve a Go upstream config for this repository. + # Retrieve a Go upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters - # @return [Array<(DockerUpstream, Fixnum, Hash)>] DockerUpstream data, response status code and response headers - def repos_upstream_docker_read_with_http_info(owner, identifier, slug_perm, opts = {}) + # @return [Array<(GoUpstream, Fixnum, Hash)>] GoUpstream data, response status code and response headers + def repos_upstream_go_read_with_http_info(owner, identifier, slug_perm, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_docker_read ...' + @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_go_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 ReposApi.repos_upstream_docker_read" + fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_go_read" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? - fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_docker_read" + fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_go_read" end # verify the required parameter 'slug_perm' is set if @api_client.config.client_side_validation && slug_perm.nil? - fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_docker_read" + fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_go_read" end # resource path - local_var_path = '/repos/{owner}/{identifier}/upstream/docker/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) + local_var_path = '/repos/{owner}/{identifier}/upstream/go/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) # query parameters query_params = {} @@ -3562,51 +4352,51 @@ def repos_upstream_docker_read_with_http_info(owner, identifier, slug_perm, opts :form_params => form_params, :body => post_body, :auth_names => auth_names, - :return_type => 'DockerUpstream') + :return_type => 'GoUpstream') if @api_client.config.debugging - @api_client.config.logger.debug "API called: ReposApi#repos_upstream_docker_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: ReposApi#repos_upstream_go_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end - # Update a Docker upstream config for this repository. - # Update a Docker upstream config for this repository. + # Update a Go upstream config for this repository. + # Update a Go upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters - # @option opts [DockerUpstreamRequest] :data - # @return [DockerUpstream] - def repos_upstream_docker_update(owner, identifier, slug_perm, opts = {}) - data, _status_code, _headers = repos_upstream_docker_update_with_http_info(owner, identifier, slug_perm, opts) + # @option opts [GoUpstreamRequest] :data + # @return [GoUpstream] + def repos_upstream_go_update(owner, identifier, slug_perm, opts = {}) + data, _status_code, _headers = repos_upstream_go_update_with_http_info(owner, identifier, slug_perm, opts) data end - # Update a Docker upstream config for this repository. - # Update a Docker upstream config for this repository. + # Update a Go upstream config for this repository. + # Update a Go upstream config for this repository. # @param owner # @param identifier # @param slug_perm # @param [Hash] opts the optional parameters - # @option opts [DockerUpstreamRequest] :data - # @return [Array<(DockerUpstream, Fixnum, Hash)>] DockerUpstream data, response status code and response headers - def repos_upstream_docker_update_with_http_info(owner, identifier, slug_perm, opts = {}) + # @option opts [GoUpstreamRequest] :data + # @return [Array<(GoUpstream, Fixnum, Hash)>] GoUpstream data, response status code and response headers + def repos_upstream_go_update_with_http_info(owner, identifier, slug_perm, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_docker_update ...' + @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_go_update ...' 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_upstream_docker_update" + fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_go_update" end # verify the required parameter 'identifier' is set if @api_client.config.client_side_validation && identifier.nil? - fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_docker_update" + fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_go_update" end # verify the required parameter 'slug_perm' is set if @api_client.config.client_side_validation && slug_perm.nil? - fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_docker_update" + fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_go_update" end # resource path - local_var_path = '/repos/{owner}/{identifier}/upstream/docker/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) + local_var_path = '/repos/{owner}/{identifier}/upstream/go/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s) # query parameters query_params = {} @@ -3630,9 +4420,9 @@ def repos_upstream_docker_update_with_http_info(owner, identifier, slug_perm, op :form_params => form_params, :body => post_body, :auth_names => auth_names, - :return_type => 'DockerUpstream') + :return_type => 'GoUpstream') if @api_client.config.debugging - @api_client.config.logger.debug "API called: ReposApi#repos_upstream_docker_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: ReposApi#repos_upstream_go_update\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 736f6824..953c569d 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/api/user_api.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/api/user_api.rb @@ -170,7 +170,7 @@ def user_tokens_create_with_http_info(opts = {}) # @param [Hash] opts the optional parameters # @option opts [Integer] :page A page number within the paginated result set. # @option opts [Integer] :page_size Number of results to return per page. - # @return [InlineResponse200] + # @return [InlineResponse2001] def user_tokens_list(opts = {}) data, _status_code, _headers = user_tokens_list_with_http_info(opts) data @@ -181,7 +181,7 @@ def user_tokens_list(opts = {}) # @param [Hash] opts the optional parameters # @option opts [Integer] :page A page number within the paginated result set. # @option opts [Integer] :page_size Number of results to return per page. - # @return [Array<(InlineResponse200, Fixnum, Hash)>] InlineResponse200 data, response status code and response headers + # @return [Array<(InlineResponse2001, Fixnum, Hash)>] InlineResponse2001 data, response status code and response headers def user_tokens_list_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: UserApi.user_tokens_list ...' @@ -213,7 +213,7 @@ def user_tokens_list_with_http_info(opts = {}) :form_params => form_params, :body => post_body, :auth_names => auth_names, - :return_type => 'InlineResponse200') + :return_type => 'InlineResponse2001') if @api_client.config.debugging @api_client.config.logger.debug "API called: UserApi#user_tokens_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/cargo_upstream.rb b/bindings/ruby/src/lib/cloudsmith-api/models/cargo_upstream.rb new file mode 100644 index 00000000..9a19d3bc --- /dev/null +++ b/bindings/ruby/src/lib/cloudsmith-api/models/cargo_upstream.rb @@ -0,0 +1,426 @@ +=begin +#Cloudsmith API (v1) + +#The API to the Cloudsmith Service + +OpenAPI spec version: v1 +Contact: support@cloudsmith.io +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.4.43 + +=end + +require 'date' + +module CloudsmithApi +class CargoUpstream + # The authentication mode to use when accessing this upstream. + attr_accessor :auth_mode + + # Secret to provide with requests to upstream. + attr_accessor :auth_secret + + # Username to provide with requests to upstream. + attr_accessor :auth_username + + # The datetime the upstream source was created. + attr_accessor :created_at + + attr_accessor :disable_reason + + # The key for extra header #1 to send to upstream. + attr_accessor :extra_header_1 + + # The key for extra header #2 to send to upstream. + attr_accessor :extra_header_2 + + # The value for extra header #1 to send to upstream. This is stored as plaintext, and is NOT encrypted. + attr_accessor :extra_value_1 + + # The value for extra header #2 to send to upstream. This is stored as plaintext, and is NOT encrypted. + attr_accessor :extra_value_2 + + # Whether or not this upstream is active and ready for requests. + attr_accessor :is_active + + # The mode that this upstream should operate in. Upstream sources can be used to proxy resolved packages, as well as operate in a proxy/cache or cache only mode. + attr_accessor :mode + + # A descriptive name for this upstream source. A shortened version of this name will be used for tagging cached packages retrieved from this upstream. + attr_accessor :name + + # When true, this upstream source is pending validation. + attr_accessor :pending_validation + + # Upstream sources are selected for resolving requests by sequential order (1..n), followed by creation date. + attr_accessor :priority + + attr_accessor :slug_perm + + attr_accessor :updated_at + + # The URL for this upstream source. This must be a fully qualified URL including any path elements required to reach the root of the repository. + attr_accessor :upstream_url + + # If enabled, SSL certificates are verified when requests are made to this upstream. It's recommended to leave this enabled for all public sources to help mitigate Man-In-The-Middle (MITM) attacks. Please note this only applies to HTTPS upstreams. + attr_accessor :verify_ssl + + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'auth_mode' => :'auth_mode', + :'auth_secret' => :'auth_secret', + :'auth_username' => :'auth_username', + :'created_at' => :'created_at', + :'disable_reason' => :'disable_reason', + :'extra_header_1' => :'extra_header_1', + :'extra_header_2' => :'extra_header_2', + :'extra_value_1' => :'extra_value_1', + :'extra_value_2' => :'extra_value_2', + :'is_active' => :'is_active', + :'mode' => :'mode', + :'name' => :'name', + :'pending_validation' => :'pending_validation', + :'priority' => :'priority', + :'slug_perm' => :'slug_perm', + :'updated_at' => :'updated_at', + :'upstream_url' => :'upstream_url', + :'verify_ssl' => :'verify_ssl' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'auth_mode' => :'String', + :'auth_secret' => :'String', + :'auth_username' => :'String', + :'created_at' => :'DateTime', + :'disable_reason' => :'String', + :'extra_header_1' => :'String', + :'extra_header_2' => :'String', + :'extra_value_1' => :'String', + :'extra_value_2' => :'String', + :'is_active' => :'BOOLEAN', + :'mode' => :'String', + :'name' => :'String', + :'pending_validation' => :'BOOLEAN', + :'priority' => :'Integer', + :'slug_perm' => :'String', + :'updated_at' => :'DateTime', + :'upstream_url' => :'String', + :'verify_ssl' => :'BOOLEAN' + } + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + 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 } + + if attributes.has_key?(:'auth_mode') + self.auth_mode = attributes[:'auth_mode'] + else + self.auth_mode = 'None' + end + + if attributes.has_key?(:'auth_secret') + self.auth_secret = attributes[:'auth_secret'] + end + + if attributes.has_key?(:'auth_username') + self.auth_username = attributes[:'auth_username'] + end + + if attributes.has_key?(:'created_at') + self.created_at = attributes[:'created_at'] + end + + if attributes.has_key?(:'disable_reason') + self.disable_reason = attributes[:'disable_reason'] + else + self.disable_reason = 'N/A' + end + + if attributes.has_key?(:'extra_header_1') + self.extra_header_1 = attributes[:'extra_header_1'] + end + + if attributes.has_key?(:'extra_header_2') + self.extra_header_2 = attributes[:'extra_header_2'] + end + + if attributes.has_key?(:'extra_value_1') + self.extra_value_1 = attributes[:'extra_value_1'] + end + + if attributes.has_key?(:'extra_value_2') + self.extra_value_2 = attributes[:'extra_value_2'] + end + + if attributes.has_key?(:'is_active') + self.is_active = attributes[:'is_active'] + end + + if attributes.has_key?(:'mode') + self.mode = attributes[:'mode'] + else + self.mode = 'Proxy Only' + end + + if attributes.has_key?(:'name') + self.name = attributes[:'name'] + end + + if attributes.has_key?(:'pending_validation') + self.pending_validation = attributes[:'pending_validation'] + end + + if attributes.has_key?(:'priority') + self.priority = attributes[:'priority'] + end + + if attributes.has_key?(:'slug_perm') + self.slug_perm = attributes[:'slug_perm'] + end + + if attributes.has_key?(:'updated_at') + self.updated_at = attributes[:'updated_at'] + end + + if attributes.has_key?(:'upstream_url') + self.upstream_url = attributes[:'upstream_url'] + end + + 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 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.') + end + + if @upstream_url.nil? + invalid_properties.push('invalid value for "upstream_url", upstream_url cannot be nil.') + end + + 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? + auth_mode_validator = EnumAttributeValidator.new('String', ['None', 'Username and Password']) + return false unless auth_mode_validator.valid?(@auth_mode) + disable_reason_validator = EnumAttributeValidator.new('String', ['N/A', 'Upstream points to its own repository', 'Missing upstream source', 'Upstream was disabled by request of user']) + return false unless disable_reason_validator.valid?(@disable_reason) + mode_validator = EnumAttributeValidator.new('String', ['Proxy Only']) + return false unless mode_validator.valid?(@mode) + return false if @name.nil? + return false if @upstream_url.nil? + true + end + + # Custom attribute writer method checking allowed values (enum). + # @param [Object] auth_mode Object to be assigned + def auth_mode=(auth_mode) + validator = EnumAttributeValidator.new('String', ['None', 'Username and Password']) + unless validator.valid?(auth_mode) + fail ArgumentError, 'invalid value for "auth_mode", must be one of #{validator.allowable_values}.' + end + @auth_mode = auth_mode + end + + # Custom attribute writer method checking allowed values (enum). + # @param [Object] disable_reason Object to be assigned + def disable_reason=(disable_reason) + validator = EnumAttributeValidator.new('String', ['N/A', 'Upstream points to its own repository', 'Missing upstream source', 'Upstream was disabled by request of user']) + unless validator.valid?(disable_reason) + fail ArgumentError, 'invalid value for "disable_reason", must be one of #{validator.allowable_values}.' + end + @disable_reason = disable_reason + end + + # Custom attribute writer method checking allowed values (enum). + # @param [Object] mode Object to be assigned + def mode=(mode) + validator = EnumAttributeValidator.new('String', ['Proxy Only']) + unless validator.valid?(mode) + fail ArgumentError, 'invalid value for "mode", must be one of #{validator.allowable_values}.' + end + @mode = mode + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + auth_mode == o.auth_mode && + auth_secret == o.auth_secret && + auth_username == o.auth_username && + created_at == o.created_at && + disable_reason == o.disable_reason && + extra_header_1 == o.extra_header_1 && + extra_header_2 == o.extra_header_2 && + extra_value_1 == o.extra_value_1 && + extra_value_2 == o.extra_value_2 && + is_active == o.is_active && + mode == o.mode && + name == o.name && + pending_validation == o.pending_validation && + priority == o.priority && + slug_perm == o.slug_perm && + updated_at == o.updated_at && + upstream_url == o.upstream_url && + verify_ssl == o.verify_ssl + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Fixnum] Hash code + def hash + [auth_mode, auth_secret, auth_username, created_at, disable_reason, extra_header_1, extra_header_2, extra_value_1, extra_value_2, is_active, mode, name, pending_validation, priority, slug_perm, updated_at, upstream_url, verify_ssl].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + 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 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) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end # or else data not found in attributes(hash), not an issue as the data can be optional + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :BOOLEAN + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + temp_model = CloudsmithApi.const_get(type).new + temp_model.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + next if value.nil? + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @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) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + +end +end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/cargo_upstream_request.rb b/bindings/ruby/src/lib/cloudsmith-api/models/cargo_upstream_request.rb new file mode 100644 index 00000000..20f426b0 --- /dev/null +++ b/bindings/ruby/src/lib/cloudsmith-api/models/cargo_upstream_request.rb @@ -0,0 +1,365 @@ +=begin +#Cloudsmith API (v1) + +#The API to the Cloudsmith Service + +OpenAPI spec version: v1 +Contact: support@cloudsmith.io +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.4.43 + +=end + +require 'date' + +module CloudsmithApi +class CargoUpstreamRequest + # The authentication mode to use when accessing this upstream. + attr_accessor :auth_mode + + # Secret to provide with requests to upstream. + attr_accessor :auth_secret + + # Username to provide with requests to upstream. + attr_accessor :auth_username + + # The key for extra header #1 to send to upstream. + attr_accessor :extra_header_1 + + # The key for extra header #2 to send to upstream. + attr_accessor :extra_header_2 + + # The value for extra header #1 to send to upstream. This is stored as plaintext, and is NOT encrypted. + attr_accessor :extra_value_1 + + # The value for extra header #2 to send to upstream. This is stored as plaintext, and is NOT encrypted. + attr_accessor :extra_value_2 + + # Whether or not this upstream is active and ready for requests. + attr_accessor :is_active + + # The mode that this upstream should operate in. Upstream sources can be used to proxy resolved packages, as well as operate in a proxy/cache or cache only mode. + attr_accessor :mode + + # A descriptive name for this upstream source. A shortened version of this name will be used for tagging cached packages retrieved from this upstream. + attr_accessor :name + + # Upstream sources are selected for resolving requests by sequential order (1..n), followed by creation date. + attr_accessor :priority + + # The URL for this upstream source. This must be a fully qualified URL including any path elements required to reach the root of the repository. + attr_accessor :upstream_url + + # If enabled, SSL certificates are verified when requests are made to this upstream. It's recommended to leave this enabled for all public sources to help mitigate Man-In-The-Middle (MITM) attacks. Please note this only applies to HTTPS upstreams. + attr_accessor :verify_ssl + + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'auth_mode' => :'auth_mode', + :'auth_secret' => :'auth_secret', + :'auth_username' => :'auth_username', + :'extra_header_1' => :'extra_header_1', + :'extra_header_2' => :'extra_header_2', + :'extra_value_1' => :'extra_value_1', + :'extra_value_2' => :'extra_value_2', + :'is_active' => :'is_active', + :'mode' => :'mode', + :'name' => :'name', + :'priority' => :'priority', + :'upstream_url' => :'upstream_url', + :'verify_ssl' => :'verify_ssl' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'auth_mode' => :'String', + :'auth_secret' => :'String', + :'auth_username' => :'String', + :'extra_header_1' => :'String', + :'extra_header_2' => :'String', + :'extra_value_1' => :'String', + :'extra_value_2' => :'String', + :'is_active' => :'BOOLEAN', + :'mode' => :'String', + :'name' => :'String', + :'priority' => :'Integer', + :'upstream_url' => :'String', + :'verify_ssl' => :'BOOLEAN' + } + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + 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 } + + if attributes.has_key?(:'auth_mode') + self.auth_mode = attributes[:'auth_mode'] + else + self.auth_mode = 'None' + end + + if attributes.has_key?(:'auth_secret') + self.auth_secret = attributes[:'auth_secret'] + end + + if attributes.has_key?(:'auth_username') + self.auth_username = attributes[:'auth_username'] + end + + if attributes.has_key?(:'extra_header_1') + self.extra_header_1 = attributes[:'extra_header_1'] + end + + if attributes.has_key?(:'extra_header_2') + self.extra_header_2 = attributes[:'extra_header_2'] + end + + if attributes.has_key?(:'extra_value_1') + self.extra_value_1 = attributes[:'extra_value_1'] + end + + if attributes.has_key?(:'extra_value_2') + self.extra_value_2 = attributes[:'extra_value_2'] + end + + if attributes.has_key?(:'is_active') + self.is_active = attributes[:'is_active'] + end + + if attributes.has_key?(:'mode') + self.mode = attributes[:'mode'] + else + self.mode = 'Proxy Only' + end + + if attributes.has_key?(:'name') + self.name = attributes[:'name'] + end + + if attributes.has_key?(:'priority') + self.priority = attributes[:'priority'] + end + + if attributes.has_key?(:'upstream_url') + self.upstream_url = attributes[:'upstream_url'] + end + + 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 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.') + end + + if @upstream_url.nil? + invalid_properties.push('invalid value for "upstream_url", upstream_url cannot be nil.') + end + + 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? + auth_mode_validator = EnumAttributeValidator.new('String', ['None', 'Username and Password']) + return false unless auth_mode_validator.valid?(@auth_mode) + mode_validator = EnumAttributeValidator.new('String', ['Proxy Only']) + return false unless mode_validator.valid?(@mode) + return false if @name.nil? + return false if @upstream_url.nil? + true + end + + # Custom attribute writer method checking allowed values (enum). + # @param [Object] auth_mode Object to be assigned + def auth_mode=(auth_mode) + validator = EnumAttributeValidator.new('String', ['None', 'Username and Password']) + unless validator.valid?(auth_mode) + fail ArgumentError, 'invalid value for "auth_mode", must be one of #{validator.allowable_values}.' + end + @auth_mode = auth_mode + end + + # Custom attribute writer method checking allowed values (enum). + # @param [Object] mode Object to be assigned + def mode=(mode) + validator = EnumAttributeValidator.new('String', ['Proxy Only']) + unless validator.valid?(mode) + fail ArgumentError, 'invalid value for "mode", must be one of #{validator.allowable_values}.' + end + @mode = mode + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + auth_mode == o.auth_mode && + auth_secret == o.auth_secret && + auth_username == o.auth_username && + extra_header_1 == o.extra_header_1 && + extra_header_2 == o.extra_header_2 && + extra_value_1 == o.extra_value_1 && + extra_value_2 == o.extra_value_2 && + is_active == o.is_active && + mode == o.mode && + name == o.name && + priority == o.priority && + upstream_url == o.upstream_url && + verify_ssl == o.verify_ssl + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Fixnum] Hash code + def hash + [auth_mode, auth_secret, auth_username, extra_header_1, extra_header_2, extra_value_1, extra_value_2, is_active, mode, name, priority, upstream_url, verify_ssl].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + 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 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) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end # or else data not found in attributes(hash), not an issue as the data can be optional + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :BOOLEAN + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + temp_model = CloudsmithApi.const_get(type).new + temp_model.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + next if value.nil? + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @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) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + +end +end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/cargo_upstream_request_patch.rb b/bindings/ruby/src/lib/cloudsmith-api/models/cargo_upstream_request_patch.rb new file mode 100644 index 00000000..d73b704f --- /dev/null +++ b/bindings/ruby/src/lib/cloudsmith-api/models/cargo_upstream_request_patch.rb @@ -0,0 +1,355 @@ +=begin +#Cloudsmith API (v1) + +#The API to the Cloudsmith Service + +OpenAPI spec version: v1 +Contact: support@cloudsmith.io +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.4.43 + +=end + +require 'date' + +module CloudsmithApi +class CargoUpstreamRequestPatch + # The authentication mode to use when accessing this upstream. + attr_accessor :auth_mode + + # Secret to provide with requests to upstream. + attr_accessor :auth_secret + + # Username to provide with requests to upstream. + attr_accessor :auth_username + + # The key for extra header #1 to send to upstream. + attr_accessor :extra_header_1 + + # The key for extra header #2 to send to upstream. + attr_accessor :extra_header_2 + + # The value for extra header #1 to send to upstream. This is stored as plaintext, and is NOT encrypted. + attr_accessor :extra_value_1 + + # The value for extra header #2 to send to upstream. This is stored as plaintext, and is NOT encrypted. + attr_accessor :extra_value_2 + + # Whether or not this upstream is active and ready for requests. + attr_accessor :is_active + + # The mode that this upstream should operate in. Upstream sources can be used to proxy resolved packages, as well as operate in a proxy/cache or cache only mode. + attr_accessor :mode + + # A descriptive name for this upstream source. A shortened version of this name will be used for tagging cached packages retrieved from this upstream. + attr_accessor :name + + # Upstream sources are selected for resolving requests by sequential order (1..n), followed by creation date. + attr_accessor :priority + + # The URL for this upstream source. This must be a fully qualified URL including any path elements required to reach the root of the repository. + attr_accessor :upstream_url + + # If enabled, SSL certificates are verified when requests are made to this upstream. It's recommended to leave this enabled for all public sources to help mitigate Man-In-The-Middle (MITM) attacks. Please note this only applies to HTTPS upstreams. + attr_accessor :verify_ssl + + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'auth_mode' => :'auth_mode', + :'auth_secret' => :'auth_secret', + :'auth_username' => :'auth_username', + :'extra_header_1' => :'extra_header_1', + :'extra_header_2' => :'extra_header_2', + :'extra_value_1' => :'extra_value_1', + :'extra_value_2' => :'extra_value_2', + :'is_active' => :'is_active', + :'mode' => :'mode', + :'name' => :'name', + :'priority' => :'priority', + :'upstream_url' => :'upstream_url', + :'verify_ssl' => :'verify_ssl' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'auth_mode' => :'String', + :'auth_secret' => :'String', + :'auth_username' => :'String', + :'extra_header_1' => :'String', + :'extra_header_2' => :'String', + :'extra_value_1' => :'String', + :'extra_value_2' => :'String', + :'is_active' => :'BOOLEAN', + :'mode' => :'String', + :'name' => :'String', + :'priority' => :'Integer', + :'upstream_url' => :'String', + :'verify_ssl' => :'BOOLEAN' + } + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + 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 } + + if attributes.has_key?(:'auth_mode') + self.auth_mode = attributes[:'auth_mode'] + else + self.auth_mode = 'None' + end + + if attributes.has_key?(:'auth_secret') + self.auth_secret = attributes[:'auth_secret'] + end + + if attributes.has_key?(:'auth_username') + self.auth_username = attributes[:'auth_username'] + end + + if attributes.has_key?(:'extra_header_1') + self.extra_header_1 = attributes[:'extra_header_1'] + end + + if attributes.has_key?(:'extra_header_2') + self.extra_header_2 = attributes[:'extra_header_2'] + end + + if attributes.has_key?(:'extra_value_1') + self.extra_value_1 = attributes[:'extra_value_1'] + end + + if attributes.has_key?(:'extra_value_2') + self.extra_value_2 = attributes[:'extra_value_2'] + end + + if attributes.has_key?(:'is_active') + self.is_active = attributes[:'is_active'] + end + + if attributes.has_key?(:'mode') + self.mode = attributes[:'mode'] + else + self.mode = 'Proxy Only' + end + + if attributes.has_key?(:'name') + self.name = attributes[:'name'] + end + + if attributes.has_key?(:'priority') + self.priority = attributes[:'priority'] + end + + if attributes.has_key?(:'upstream_url') + self.upstream_url = attributes[:'upstream_url'] + end + + 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 properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + 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? + auth_mode_validator = EnumAttributeValidator.new('String', ['None', 'Username and Password']) + return false unless auth_mode_validator.valid?(@auth_mode) + mode_validator = EnumAttributeValidator.new('String', ['Proxy Only']) + return false unless mode_validator.valid?(@mode) + true + end + + # Custom attribute writer method checking allowed values (enum). + # @param [Object] auth_mode Object to be assigned + def auth_mode=(auth_mode) + validator = EnumAttributeValidator.new('String', ['None', 'Username and Password']) + unless validator.valid?(auth_mode) + fail ArgumentError, 'invalid value for "auth_mode", must be one of #{validator.allowable_values}.' + end + @auth_mode = auth_mode + end + + # Custom attribute writer method checking allowed values (enum). + # @param [Object] mode Object to be assigned + def mode=(mode) + validator = EnumAttributeValidator.new('String', ['Proxy Only']) + unless validator.valid?(mode) + fail ArgumentError, 'invalid value for "mode", must be one of #{validator.allowable_values}.' + end + @mode = mode + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + auth_mode == o.auth_mode && + auth_secret == o.auth_secret && + auth_username == o.auth_username && + extra_header_1 == o.extra_header_1 && + extra_header_2 == o.extra_header_2 && + extra_value_1 == o.extra_value_1 && + extra_value_2 == o.extra_value_2 && + is_active == o.is_active && + mode == o.mode && + name == o.name && + priority == o.priority && + upstream_url == o.upstream_url && + verify_ssl == o.verify_ssl + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Fixnum] Hash code + def hash + [auth_mode, auth_secret, auth_username, extra_header_1, extra_header_2, extra_value_1, extra_value_2, is_active, mode, name, priority, upstream_url, verify_ssl].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + 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 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) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end # or else data not found in attributes(hash), not an issue as the data can be optional + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :BOOLEAN + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + temp_model = CloudsmithApi.const_get(type).new + temp_model.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + next if value.nil? + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @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) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + +end +end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/go_upstream.rb b/bindings/ruby/src/lib/cloudsmith-api/models/go_upstream.rb new file mode 100644 index 00000000..7eefba1d --- /dev/null +++ b/bindings/ruby/src/lib/cloudsmith-api/models/go_upstream.rb @@ -0,0 +1,426 @@ +=begin +#Cloudsmith API (v1) + +#The API to the Cloudsmith Service + +OpenAPI spec version: v1 +Contact: support@cloudsmith.io +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.4.43 + +=end + +require 'date' + +module CloudsmithApi +class GoUpstream + # The authentication mode to use when accessing this upstream. + attr_accessor :auth_mode + + # Secret to provide with requests to upstream. + attr_accessor :auth_secret + + # Username to provide with requests to upstream. + attr_accessor :auth_username + + # The datetime the upstream source was created. + attr_accessor :created_at + + attr_accessor :disable_reason + + # The key for extra header #1 to send to upstream. + attr_accessor :extra_header_1 + + # The key for extra header #2 to send to upstream. + attr_accessor :extra_header_2 + + # The value for extra header #1 to send to upstream. This is stored as plaintext, and is NOT encrypted. + attr_accessor :extra_value_1 + + # The value for extra header #2 to send to upstream. This is stored as plaintext, and is NOT encrypted. + attr_accessor :extra_value_2 + + # Whether or not this upstream is active and ready for requests. + attr_accessor :is_active + + # The mode that this upstream should operate in. Upstream sources can be used to proxy resolved packages, as well as operate in a proxy/cache or cache only mode. + attr_accessor :mode + + # A descriptive name for this upstream source. A shortened version of this name will be used for tagging cached packages retrieved from this upstream. + attr_accessor :name + + # When true, this upstream source is pending validation. + attr_accessor :pending_validation + + # Upstream sources are selected for resolving requests by sequential order (1..n), followed by creation date. + attr_accessor :priority + + attr_accessor :slug_perm + + attr_accessor :updated_at + + # The URL for this upstream source. This must be a fully qualified URL including any path elements required to reach the root of the repository. + attr_accessor :upstream_url + + # If enabled, SSL certificates are verified when requests are made to this upstream. It's recommended to leave this enabled for all public sources to help mitigate Man-In-The-Middle (MITM) attacks. Please note this only applies to HTTPS upstreams. + attr_accessor :verify_ssl + + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'auth_mode' => :'auth_mode', + :'auth_secret' => :'auth_secret', + :'auth_username' => :'auth_username', + :'created_at' => :'created_at', + :'disable_reason' => :'disable_reason', + :'extra_header_1' => :'extra_header_1', + :'extra_header_2' => :'extra_header_2', + :'extra_value_1' => :'extra_value_1', + :'extra_value_2' => :'extra_value_2', + :'is_active' => :'is_active', + :'mode' => :'mode', + :'name' => :'name', + :'pending_validation' => :'pending_validation', + :'priority' => :'priority', + :'slug_perm' => :'slug_perm', + :'updated_at' => :'updated_at', + :'upstream_url' => :'upstream_url', + :'verify_ssl' => :'verify_ssl' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'auth_mode' => :'String', + :'auth_secret' => :'String', + :'auth_username' => :'String', + :'created_at' => :'DateTime', + :'disable_reason' => :'String', + :'extra_header_1' => :'String', + :'extra_header_2' => :'String', + :'extra_value_1' => :'String', + :'extra_value_2' => :'String', + :'is_active' => :'BOOLEAN', + :'mode' => :'String', + :'name' => :'String', + :'pending_validation' => :'BOOLEAN', + :'priority' => :'Integer', + :'slug_perm' => :'String', + :'updated_at' => :'DateTime', + :'upstream_url' => :'String', + :'verify_ssl' => :'BOOLEAN' + } + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + 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 } + + if attributes.has_key?(:'auth_mode') + self.auth_mode = attributes[:'auth_mode'] + else + self.auth_mode = 'None' + end + + if attributes.has_key?(:'auth_secret') + self.auth_secret = attributes[:'auth_secret'] + end + + if attributes.has_key?(:'auth_username') + self.auth_username = attributes[:'auth_username'] + end + + if attributes.has_key?(:'created_at') + self.created_at = attributes[:'created_at'] + end + + if attributes.has_key?(:'disable_reason') + self.disable_reason = attributes[:'disable_reason'] + else + self.disable_reason = 'N/A' + end + + if attributes.has_key?(:'extra_header_1') + self.extra_header_1 = attributes[:'extra_header_1'] + end + + if attributes.has_key?(:'extra_header_2') + self.extra_header_2 = attributes[:'extra_header_2'] + end + + if attributes.has_key?(:'extra_value_1') + self.extra_value_1 = attributes[:'extra_value_1'] + end + + if attributes.has_key?(:'extra_value_2') + self.extra_value_2 = attributes[:'extra_value_2'] + end + + if attributes.has_key?(:'is_active') + self.is_active = attributes[:'is_active'] + end + + if attributes.has_key?(:'mode') + self.mode = attributes[:'mode'] + else + self.mode = 'Proxy Only' + end + + if attributes.has_key?(:'name') + self.name = attributes[:'name'] + end + + if attributes.has_key?(:'pending_validation') + self.pending_validation = attributes[:'pending_validation'] + end + + if attributes.has_key?(:'priority') + self.priority = attributes[:'priority'] + end + + if attributes.has_key?(:'slug_perm') + self.slug_perm = attributes[:'slug_perm'] + end + + if attributes.has_key?(:'updated_at') + self.updated_at = attributes[:'updated_at'] + end + + if attributes.has_key?(:'upstream_url') + self.upstream_url = attributes[:'upstream_url'] + end + + 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 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.') + end + + if @upstream_url.nil? + invalid_properties.push('invalid value for "upstream_url", upstream_url cannot be nil.') + end + + 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? + auth_mode_validator = EnumAttributeValidator.new('String', ['None', 'Username and Password']) + return false unless auth_mode_validator.valid?(@auth_mode) + disable_reason_validator = EnumAttributeValidator.new('String', ['N/A', 'Upstream points to its own repository', 'Missing upstream source', 'Upstream was disabled by request of user']) + return false unless disable_reason_validator.valid?(@disable_reason) + mode_validator = EnumAttributeValidator.new('String', ['Proxy Only']) + return false unless mode_validator.valid?(@mode) + return false if @name.nil? + return false if @upstream_url.nil? + true + end + + # Custom attribute writer method checking allowed values (enum). + # @param [Object] auth_mode Object to be assigned + def auth_mode=(auth_mode) + validator = EnumAttributeValidator.new('String', ['None', 'Username and Password']) + unless validator.valid?(auth_mode) + fail ArgumentError, 'invalid value for "auth_mode", must be one of #{validator.allowable_values}.' + end + @auth_mode = auth_mode + end + + # Custom attribute writer method checking allowed values (enum). + # @param [Object] disable_reason Object to be assigned + def disable_reason=(disable_reason) + validator = EnumAttributeValidator.new('String', ['N/A', 'Upstream points to its own repository', 'Missing upstream source', 'Upstream was disabled by request of user']) + unless validator.valid?(disable_reason) + fail ArgumentError, 'invalid value for "disable_reason", must be one of #{validator.allowable_values}.' + end + @disable_reason = disable_reason + end + + # Custom attribute writer method checking allowed values (enum). + # @param [Object] mode Object to be assigned + def mode=(mode) + validator = EnumAttributeValidator.new('String', ['Proxy Only']) + unless validator.valid?(mode) + fail ArgumentError, 'invalid value for "mode", must be one of #{validator.allowable_values}.' + end + @mode = mode + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + auth_mode == o.auth_mode && + auth_secret == o.auth_secret && + auth_username == o.auth_username && + created_at == o.created_at && + disable_reason == o.disable_reason && + extra_header_1 == o.extra_header_1 && + extra_header_2 == o.extra_header_2 && + extra_value_1 == o.extra_value_1 && + extra_value_2 == o.extra_value_2 && + is_active == o.is_active && + mode == o.mode && + name == o.name && + pending_validation == o.pending_validation && + priority == o.priority && + slug_perm == o.slug_perm && + updated_at == o.updated_at && + upstream_url == o.upstream_url && + verify_ssl == o.verify_ssl + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Fixnum] Hash code + def hash + [auth_mode, auth_secret, auth_username, created_at, disable_reason, extra_header_1, extra_header_2, extra_value_1, extra_value_2, is_active, mode, name, pending_validation, priority, slug_perm, updated_at, upstream_url, verify_ssl].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + 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 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) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end # or else data not found in attributes(hash), not an issue as the data can be optional + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :BOOLEAN + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + temp_model = CloudsmithApi.const_get(type).new + temp_model.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + next if value.nil? + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @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) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + +end +end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/go_upstream_request.rb b/bindings/ruby/src/lib/cloudsmith-api/models/go_upstream_request.rb new file mode 100644 index 00000000..3466e02a --- /dev/null +++ b/bindings/ruby/src/lib/cloudsmith-api/models/go_upstream_request.rb @@ -0,0 +1,365 @@ +=begin +#Cloudsmith API (v1) + +#The API to the Cloudsmith Service + +OpenAPI spec version: v1 +Contact: support@cloudsmith.io +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.4.43 + +=end + +require 'date' + +module CloudsmithApi +class GoUpstreamRequest + # The authentication mode to use when accessing this upstream. + attr_accessor :auth_mode + + # Secret to provide with requests to upstream. + attr_accessor :auth_secret + + # Username to provide with requests to upstream. + attr_accessor :auth_username + + # The key for extra header #1 to send to upstream. + attr_accessor :extra_header_1 + + # The key for extra header #2 to send to upstream. + attr_accessor :extra_header_2 + + # The value for extra header #1 to send to upstream. This is stored as plaintext, and is NOT encrypted. + attr_accessor :extra_value_1 + + # The value for extra header #2 to send to upstream. This is stored as plaintext, and is NOT encrypted. + attr_accessor :extra_value_2 + + # Whether or not this upstream is active and ready for requests. + attr_accessor :is_active + + # The mode that this upstream should operate in. Upstream sources can be used to proxy resolved packages, as well as operate in a proxy/cache or cache only mode. + attr_accessor :mode + + # A descriptive name for this upstream source. A shortened version of this name will be used for tagging cached packages retrieved from this upstream. + attr_accessor :name + + # Upstream sources are selected for resolving requests by sequential order (1..n), followed by creation date. + attr_accessor :priority + + # The URL for this upstream source. This must be a fully qualified URL including any path elements required to reach the root of the repository. + attr_accessor :upstream_url + + # If enabled, SSL certificates are verified when requests are made to this upstream. It's recommended to leave this enabled for all public sources to help mitigate Man-In-The-Middle (MITM) attacks. Please note this only applies to HTTPS upstreams. + attr_accessor :verify_ssl + + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'auth_mode' => :'auth_mode', + :'auth_secret' => :'auth_secret', + :'auth_username' => :'auth_username', + :'extra_header_1' => :'extra_header_1', + :'extra_header_2' => :'extra_header_2', + :'extra_value_1' => :'extra_value_1', + :'extra_value_2' => :'extra_value_2', + :'is_active' => :'is_active', + :'mode' => :'mode', + :'name' => :'name', + :'priority' => :'priority', + :'upstream_url' => :'upstream_url', + :'verify_ssl' => :'verify_ssl' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'auth_mode' => :'String', + :'auth_secret' => :'String', + :'auth_username' => :'String', + :'extra_header_1' => :'String', + :'extra_header_2' => :'String', + :'extra_value_1' => :'String', + :'extra_value_2' => :'String', + :'is_active' => :'BOOLEAN', + :'mode' => :'String', + :'name' => :'String', + :'priority' => :'Integer', + :'upstream_url' => :'String', + :'verify_ssl' => :'BOOLEAN' + } + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + 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 } + + if attributes.has_key?(:'auth_mode') + self.auth_mode = attributes[:'auth_mode'] + else + self.auth_mode = 'None' + end + + if attributes.has_key?(:'auth_secret') + self.auth_secret = attributes[:'auth_secret'] + end + + if attributes.has_key?(:'auth_username') + self.auth_username = attributes[:'auth_username'] + end + + if attributes.has_key?(:'extra_header_1') + self.extra_header_1 = attributes[:'extra_header_1'] + end + + if attributes.has_key?(:'extra_header_2') + self.extra_header_2 = attributes[:'extra_header_2'] + end + + if attributes.has_key?(:'extra_value_1') + self.extra_value_1 = attributes[:'extra_value_1'] + end + + if attributes.has_key?(:'extra_value_2') + self.extra_value_2 = attributes[:'extra_value_2'] + end + + if attributes.has_key?(:'is_active') + self.is_active = attributes[:'is_active'] + end + + if attributes.has_key?(:'mode') + self.mode = attributes[:'mode'] + else + self.mode = 'Proxy Only' + end + + if attributes.has_key?(:'name') + self.name = attributes[:'name'] + end + + if attributes.has_key?(:'priority') + self.priority = attributes[:'priority'] + end + + if attributes.has_key?(:'upstream_url') + self.upstream_url = attributes[:'upstream_url'] + end + + 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 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.') + end + + if @upstream_url.nil? + invalid_properties.push('invalid value for "upstream_url", upstream_url cannot be nil.') + end + + 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? + auth_mode_validator = EnumAttributeValidator.new('String', ['None', 'Username and Password']) + return false unless auth_mode_validator.valid?(@auth_mode) + mode_validator = EnumAttributeValidator.new('String', ['Proxy Only']) + return false unless mode_validator.valid?(@mode) + return false if @name.nil? + return false if @upstream_url.nil? + true + end + + # Custom attribute writer method checking allowed values (enum). + # @param [Object] auth_mode Object to be assigned + def auth_mode=(auth_mode) + validator = EnumAttributeValidator.new('String', ['None', 'Username and Password']) + unless validator.valid?(auth_mode) + fail ArgumentError, 'invalid value for "auth_mode", must be one of #{validator.allowable_values}.' + end + @auth_mode = auth_mode + end + + # Custom attribute writer method checking allowed values (enum). + # @param [Object] mode Object to be assigned + def mode=(mode) + validator = EnumAttributeValidator.new('String', ['Proxy Only']) + unless validator.valid?(mode) + fail ArgumentError, 'invalid value for "mode", must be one of #{validator.allowable_values}.' + end + @mode = mode + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + auth_mode == o.auth_mode && + auth_secret == o.auth_secret && + auth_username == o.auth_username && + extra_header_1 == o.extra_header_1 && + extra_header_2 == o.extra_header_2 && + extra_value_1 == o.extra_value_1 && + extra_value_2 == o.extra_value_2 && + is_active == o.is_active && + mode == o.mode && + name == o.name && + priority == o.priority && + upstream_url == o.upstream_url && + verify_ssl == o.verify_ssl + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Fixnum] Hash code + def hash + [auth_mode, auth_secret, auth_username, extra_header_1, extra_header_2, extra_value_1, extra_value_2, is_active, mode, name, priority, upstream_url, verify_ssl].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + 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 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) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end # or else data not found in attributes(hash), not an issue as the data can be optional + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :BOOLEAN + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + temp_model = CloudsmithApi.const_get(type).new + temp_model.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + next if value.nil? + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @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) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + +end +end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/go_upstream_request_patch.rb b/bindings/ruby/src/lib/cloudsmith-api/models/go_upstream_request_patch.rb new file mode 100644 index 00000000..369d078c --- /dev/null +++ b/bindings/ruby/src/lib/cloudsmith-api/models/go_upstream_request_patch.rb @@ -0,0 +1,355 @@ +=begin +#Cloudsmith API (v1) + +#The API to the Cloudsmith Service + +OpenAPI spec version: v1 +Contact: support@cloudsmith.io +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.4.43 + +=end + +require 'date' + +module CloudsmithApi +class GoUpstreamRequestPatch + # The authentication mode to use when accessing this upstream. + attr_accessor :auth_mode + + # Secret to provide with requests to upstream. + attr_accessor :auth_secret + + # Username to provide with requests to upstream. + attr_accessor :auth_username + + # The key for extra header #1 to send to upstream. + attr_accessor :extra_header_1 + + # The key for extra header #2 to send to upstream. + attr_accessor :extra_header_2 + + # The value for extra header #1 to send to upstream. This is stored as plaintext, and is NOT encrypted. + attr_accessor :extra_value_1 + + # The value for extra header #2 to send to upstream. This is stored as plaintext, and is NOT encrypted. + attr_accessor :extra_value_2 + + # Whether or not this upstream is active and ready for requests. + attr_accessor :is_active + + # The mode that this upstream should operate in. Upstream sources can be used to proxy resolved packages, as well as operate in a proxy/cache or cache only mode. + attr_accessor :mode + + # A descriptive name for this upstream source. A shortened version of this name will be used for tagging cached packages retrieved from this upstream. + attr_accessor :name + + # Upstream sources are selected for resolving requests by sequential order (1..n), followed by creation date. + attr_accessor :priority + + # The URL for this upstream source. This must be a fully qualified URL including any path elements required to reach the root of the repository. + attr_accessor :upstream_url + + # If enabled, SSL certificates are verified when requests are made to this upstream. It's recommended to leave this enabled for all public sources to help mitigate Man-In-The-Middle (MITM) attacks. Please note this only applies to HTTPS upstreams. + attr_accessor :verify_ssl + + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'auth_mode' => :'auth_mode', + :'auth_secret' => :'auth_secret', + :'auth_username' => :'auth_username', + :'extra_header_1' => :'extra_header_1', + :'extra_header_2' => :'extra_header_2', + :'extra_value_1' => :'extra_value_1', + :'extra_value_2' => :'extra_value_2', + :'is_active' => :'is_active', + :'mode' => :'mode', + :'name' => :'name', + :'priority' => :'priority', + :'upstream_url' => :'upstream_url', + :'verify_ssl' => :'verify_ssl' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'auth_mode' => :'String', + :'auth_secret' => :'String', + :'auth_username' => :'String', + :'extra_header_1' => :'String', + :'extra_header_2' => :'String', + :'extra_value_1' => :'String', + :'extra_value_2' => :'String', + :'is_active' => :'BOOLEAN', + :'mode' => :'String', + :'name' => :'String', + :'priority' => :'Integer', + :'upstream_url' => :'String', + :'verify_ssl' => :'BOOLEAN' + } + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + 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 } + + if attributes.has_key?(:'auth_mode') + self.auth_mode = attributes[:'auth_mode'] + else + self.auth_mode = 'None' + end + + if attributes.has_key?(:'auth_secret') + self.auth_secret = attributes[:'auth_secret'] + end + + if attributes.has_key?(:'auth_username') + self.auth_username = attributes[:'auth_username'] + end + + if attributes.has_key?(:'extra_header_1') + self.extra_header_1 = attributes[:'extra_header_1'] + end + + if attributes.has_key?(:'extra_header_2') + self.extra_header_2 = attributes[:'extra_header_2'] + end + + if attributes.has_key?(:'extra_value_1') + self.extra_value_1 = attributes[:'extra_value_1'] + end + + if attributes.has_key?(:'extra_value_2') + self.extra_value_2 = attributes[:'extra_value_2'] + end + + if attributes.has_key?(:'is_active') + self.is_active = attributes[:'is_active'] + end + + if attributes.has_key?(:'mode') + self.mode = attributes[:'mode'] + else + self.mode = 'Proxy Only' + end + + if attributes.has_key?(:'name') + self.name = attributes[:'name'] + end + + if attributes.has_key?(:'priority') + self.priority = attributes[:'priority'] + end + + if attributes.has_key?(:'upstream_url') + self.upstream_url = attributes[:'upstream_url'] + end + + 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 properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + 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? + auth_mode_validator = EnumAttributeValidator.new('String', ['None', 'Username and Password']) + return false unless auth_mode_validator.valid?(@auth_mode) + mode_validator = EnumAttributeValidator.new('String', ['Proxy Only']) + return false unless mode_validator.valid?(@mode) + true + end + + # Custom attribute writer method checking allowed values (enum). + # @param [Object] auth_mode Object to be assigned + def auth_mode=(auth_mode) + validator = EnumAttributeValidator.new('String', ['None', 'Username and Password']) + unless validator.valid?(auth_mode) + fail ArgumentError, 'invalid value for "auth_mode", must be one of #{validator.allowable_values}.' + end + @auth_mode = auth_mode + end + + # Custom attribute writer method checking allowed values (enum). + # @param [Object] mode Object to be assigned + def mode=(mode) + validator = EnumAttributeValidator.new('String', ['Proxy Only']) + unless validator.valid?(mode) + fail ArgumentError, 'invalid value for "mode", must be one of #{validator.allowable_values}.' + end + @mode = mode + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + auth_mode == o.auth_mode && + auth_secret == o.auth_secret && + auth_username == o.auth_username && + extra_header_1 == o.extra_header_1 && + extra_header_2 == o.extra_header_2 && + extra_value_1 == o.extra_value_1 && + extra_value_2 == o.extra_value_2 && + is_active == o.is_active && + mode == o.mode && + name == o.name && + priority == o.priority && + upstream_url == o.upstream_url && + verify_ssl == o.verify_ssl + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Fixnum] Hash code + def hash + [auth_mode, auth_secret, auth_username, extra_header_1, extra_header_2, extra_value_1, extra_value_2, is_active, mode, name, priority, upstream_url, verify_ssl].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + 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 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) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end # or else data not found in attributes(hash), not an issue as the data can be optional + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :BOOLEAN + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + temp_model = CloudsmithApi.const_get(type).new + temp_model.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + next if value.nil? + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @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) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + +end +end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/inline_response_200.rb b/bindings/ruby/src/lib/cloudsmith-api/models/inline_response_200.rb index 37d3d5f1..3e2a79df 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/inline_response_200.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/inline_response_200.rb @@ -26,7 +26,7 @@ def self.attribute_map # Attribute type mapping. def self.swagger_types { - :'results' => :'Array' + :'results' => :'Array' } end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/inline_response_200_1.rb b/bindings/ruby/src/lib/cloudsmith-api/models/inline_response_200_1.rb new file mode 100644 index 00000000..0ad31c3a --- /dev/null +++ b/bindings/ruby/src/lib/cloudsmith-api/models/inline_response_200_1.rb @@ -0,0 +1,191 @@ +=begin +#Cloudsmith API (v1) + +#The API to the Cloudsmith Service + +OpenAPI spec version: v1 +Contact: support@cloudsmith.io +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.4.43 + +=end + +require 'date' + +module CloudsmithApi +class InlineResponse2001 + attr_accessor :results + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'results' => :'results' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'results' => :'Array' + } + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + 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 } + + if attributes.has_key?(:'results') + if (value = attributes[:'results']).is_a?(Array) + self.results = value + end + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + if @results.nil? + invalid_properties.push('invalid value for "results", results cannot be nil.') + end + + 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 @results.nil? + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + results == o.results + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Fixnum] Hash code + def hash + [results].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + 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 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) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end # or else data not found in attributes(hash), not an issue as the data can be optional + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :BOOLEAN + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + temp_model = CloudsmithApi.const_get(type).new + temp_model.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + next if value.nil? + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @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) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + +end +end diff --git a/bindings/ruby/src/lib/cloudsmith-api/models/package_group.rb b/bindings/ruby/src/lib/cloudsmith-api/models/package_group.rb new file mode 100644 index 00000000..d3afef5e --- /dev/null +++ b/bindings/ruby/src/lib/cloudsmith-api/models/package_group.rb @@ -0,0 +1,249 @@ +=begin +#Cloudsmith API (v1) + +#The API to the Cloudsmith Service + +OpenAPI spec version: v1 +Contact: support@cloudsmith.io +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.4.43 + +=end + +require 'date' + +module CloudsmithApi +class PackageGroup + attr_accessor :backend_kind + + attr_accessor :count + + attr_accessor :last_push + + attr_accessor :name + + attr_accessor :num_downloads + + attr_accessor :size + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'backend_kind' => :'backend_kind', + :'count' => :'count', + :'last_push' => :'last_push', + :'name' => :'name', + :'num_downloads' => :'num_downloads', + :'size' => :'size' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'backend_kind' => :'Integer', + :'count' => :'Integer', + :'last_push' => :'DateTime', + :'name' => :'String', + :'num_downloads' => :'Integer', + :'size' => :'Integer' + } + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + 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 } + + if attributes.has_key?(:'backend_kind') + self.backend_kind = attributes[:'backend_kind'] + end + + if attributes.has_key?(:'count') + self.count = attributes[:'count'] + end + + if attributes.has_key?(:'last_push') + self.last_push = attributes[:'last_push'] + end + + if attributes.has_key?(:'name') + self.name = attributes[:'name'] + end + + if attributes.has_key?(:'num_downloads') + self.num_downloads = attributes[:'num_downloads'] + end + + if attributes.has_key?(:'size') + self.size = attributes[:'size'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + if @count.nil? + invalid_properties.push('invalid value for "count", count cannot be nil.') + end + + if @last_push.nil? + invalid_properties.push('invalid value for "last_push", last_push cannot be nil.') + end + + if @num_downloads.nil? + invalid_properties.push('invalid value for "num_downloads", num_downloads cannot be nil.') + end + + if @size.nil? + invalid_properties.push('invalid value for "size", size cannot be nil.') + end + + 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 @count.nil? + return false if @last_push.nil? + return false if @num_downloads.nil? + return false if @size.nil? + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + backend_kind == o.backend_kind && + count == o.count && + last_push == o.last_push && + name == o.name && + num_downloads == o.num_downloads && + size == o.size + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Fixnum] Hash code + def hash + [backend_kind, count, last_push, name, num_downloads, size].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + 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 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) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end # or else data not found in attributes(hash), not an issue as the data can be optional + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :BOOLEAN + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + temp_model = CloudsmithApi.const_get(type).new + temp_model.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + next if value.nil? + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @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) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + 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 705efdb8..e7531522 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/models/status_basic.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/models/status_basic.rb @@ -53,7 +53,7 @@ def initialize(attributes = {}) if attributes.has_key?(:'version') self.version = attributes[:'version'] else - self.version = '1.674.0' + self.version = '1.698.0' end end diff --git a/bindings/ruby/src/lib/cloudsmith-api/version.rb b/bindings/ruby/src/lib/cloudsmith-api/version.rb index d98fcdb8..0d3cf05c 100644 --- a/bindings/ruby/src/lib/cloudsmith-api/version.rb +++ b/bindings/ruby/src/lib/cloudsmith-api/version.rb @@ -11,5 +11,5 @@ =end module CloudsmithApi - VERSION = '2.0.18' + VERSION = '2.0.1' end diff --git a/bindings/ruby/src/spec/api/packages_api_spec.rb b/bindings/ruby/src/spec/api/packages_api_spec.rb index 230b63c0..835a19a9 100644 --- a/bindings/ruby/src/spec/api/packages_api_spec.rb +++ b/bindings/ruby/src/spec/api/packages_api_spec.rb @@ -75,6 +75,24 @@ end end + # unit tests for packages_groups_list + # Return a list of Package Groups in a repository. + # Return a list of Package Groups in a repository. + # @param owner + # @param repo + # @param [Hash] opts the optional parameters + # @option opts [Integer] :page A page number within the paginated result set. + # @option opts [Integer] :page_size Number of results to return per page. + # @option opts [String] :group_by A field to group packages by. Available options: name, backend_kind. + # @option opts [String] :query A search term for querying names, filenames, versions, distributions, architectures, formats, or statuses of packages. + # @option opts [String] :sort A field for sorting objects in ascending or descending order. Use `-` prefix for descending order (e.g., `-name`). Available options: name, count, num_downloads, size, last_push, backend_kind. + # @return [InlineResponse200] + describe 'packages_groups_list test' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + # unit tests for packages_list # Get a list of all packages associated with repository. # Get a list of all packages associated with repository. diff --git a/bindings/ruby/src/spec/api/repos_api_spec.rb b/bindings/ruby/src/spec/api/repos_api_spec.rb index 46ecc985..5086e7de 100644 --- a/bindings/ruby/src/spec/api/repos_api_spec.rb +++ b/bindings/ruby/src/spec/api/repos_api_spec.rb @@ -399,6 +399,93 @@ end end + # unit tests for repos_upstream_cargo_create + # Create a Cargo upstream config for this repository. + # Create a Cargo upstream config for this repository. + # @param owner + # @param identifier + # @param [Hash] opts the optional parameters + # @option opts [CargoUpstreamRequest] :data + # @return [CargoUpstream] + describe 'repos_upstream_cargo_create test' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + # unit tests for repos_upstream_cargo_delete + # Delete a Cargo upstream config for this repository. + # Delete a Cargo upstream config for this repository. + # @param owner + # @param identifier + # @param slug_perm + # @param [Hash] opts the optional parameters + # @return [nil] + describe 'repos_upstream_cargo_delete test' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + # unit tests for repos_upstream_cargo_list + # List Cargo upstream configs for this repository. + # List Cargo upstream configs for this repository. + # @param owner + # @param identifier + # @param [Hash] opts the optional parameters + # @option opts [Integer] :page A page number within the paginated result set. + # @option opts [Integer] :page_size Number of results to return per page. + # @return [Array] + describe 'repos_upstream_cargo_list test' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + # unit tests for repos_upstream_cargo_partial_update + # Partially update a Cargo upstream config for this repository. + # Partially update a Cargo upstream config for this repository. + # @param owner + # @param identifier + # @param slug_perm + # @param [Hash] opts the optional parameters + # @option opts [CargoUpstreamRequestPatch] :data + # @return [CargoUpstream] + describe 'repos_upstream_cargo_partial_update test' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + # unit tests for repos_upstream_cargo_read + # Retrieve a Cargo upstream config for this repository. + # Retrieve a Cargo upstream config for this repository. + # @param owner + # @param identifier + # @param slug_perm + # @param [Hash] opts the optional parameters + # @return [CargoUpstream] + describe 'repos_upstream_cargo_read test' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + # unit tests for repos_upstream_cargo_update + # Update a Cargo upstream config for this repository. + # Update a Cargo upstream config for this repository. + # @param owner + # @param identifier + # @param slug_perm + # @param [Hash] opts the optional parameters + # @option opts [CargoUpstreamRequest] :data + # @return [CargoUpstream] + describe 'repos_upstream_cargo_update test' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + # unit tests for repos_upstream_composer_create # Create a Composer upstream config for this repository. # Create a Composer upstream config for this repository. @@ -834,6 +921,93 @@ end end + # unit tests for repos_upstream_go_create + # Create a Go upstream config for this repository. + # Create a Go upstream config for this repository. + # @param owner + # @param identifier + # @param [Hash] opts the optional parameters + # @option opts [GoUpstreamRequest] :data + # @return [GoUpstream] + describe 'repos_upstream_go_create test' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + # unit tests for repos_upstream_go_delete + # Delete a Go upstream config for this repository. + # Delete a Go upstream config for this repository. + # @param owner + # @param identifier + # @param slug_perm + # @param [Hash] opts the optional parameters + # @return [nil] + describe 'repos_upstream_go_delete test' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + # unit tests for repos_upstream_go_list + # List Go upstream configs for this repository. + # List Go upstream configs for this repository. + # @param owner + # @param identifier + # @param [Hash] opts the optional parameters + # @option opts [Integer] :page A page number within the paginated result set. + # @option opts [Integer] :page_size Number of results to return per page. + # @return [Array] + describe 'repos_upstream_go_list test' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + # unit tests for repos_upstream_go_partial_update + # Partially update a Go upstream config for this repository. + # Partially update a Go upstream config for this repository. + # @param owner + # @param identifier + # @param slug_perm + # @param [Hash] opts the optional parameters + # @option opts [GoUpstreamRequestPatch] :data + # @return [GoUpstream] + describe 'repos_upstream_go_partial_update test' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + # unit tests for repos_upstream_go_read + # Retrieve a Go upstream config for this repository. + # Retrieve a Go upstream config for this repository. + # @param owner + # @param identifier + # @param slug_perm + # @param [Hash] opts the optional parameters + # @return [GoUpstream] + describe 'repos_upstream_go_read test' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + # unit tests for repos_upstream_go_update + # Update a Go upstream config for this repository. + # Update a Go upstream config for this repository. + # @param owner + # @param identifier + # @param slug_perm + # @param [Hash] opts the optional parameters + # @option opts [GoUpstreamRequest] :data + # @return [GoUpstream] + describe 'repos_upstream_go_update test' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + # unit tests for repos_upstream_helm_create # Create a Helm upstream config for this repository. # Create a Helm upstream config for this repository. diff --git a/bindings/ruby/src/spec/api/user_api_spec.rb b/bindings/ruby/src/spec/api/user_api_spec.rb index 196a45e0..6c635b96 100644 --- a/bindings/ruby/src/spec/api/user_api_spec.rb +++ b/bindings/ruby/src/spec/api/user_api_spec.rb @@ -72,7 +72,7 @@ # @param [Hash] opts the optional parameters # @option opts [Integer] :page A page number within the paginated result set. # @option opts [Integer] :page_size Number of results to return per page. - # @return [InlineResponse200] + # @return [InlineResponse2001] describe 'user_tokens_list test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/bindings/ruby/src/spec/models/cargo_upstream_request_patch_spec.rb b/bindings/ruby/src/spec/models/cargo_upstream_request_patch_spec.rb new file mode 100644 index 00000000..d1774f4c --- /dev/null +++ b/bindings/ruby/src/spec/models/cargo_upstream_request_patch_spec.rb @@ -0,0 +1,121 @@ +=begin +#Cloudsmith API (v1) + +#The API to the Cloudsmith Service + +OpenAPI spec version: v1 +Contact: support@cloudsmith.io +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.4.43 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for CloudsmithApi::CargoUpstreamRequestPatch +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'CargoUpstreamRequestPatch' do + before do + # run before each test + @instance = CloudsmithApi::CargoUpstreamRequestPatch.new + end + + after do + # run after each test + end + + describe 'test an instance of CargoUpstreamRequestPatch' do + it 'should create an instance of CargoUpstreamRequestPatch' do + expect(@instance).to be_instance_of(CloudsmithApi::CargoUpstreamRequestPatch) + end + end + describe 'test attribute "auth_mode"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["None", "Username and Password"]) + # validator.allowable_values.each do |value| + # expect { @instance.auth_mode = value }.not_to raise_error + # end + end + end + + describe 'test attribute "auth_secret"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "auth_username"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "extra_header_1"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "extra_header_2"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "extra_value_1"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "extra_value_2"' do + it 'should work' do + # 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 + end + end + + describe 'test attribute "mode"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Proxy Only"]) + # validator.allowable_values.each do |value| + # expect { @instance.mode = value }.not_to raise_error + # end + 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 + end + end + + describe 'test attribute "priority"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "upstream_url"' do + it 'should work' do + # 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 + end + end + +end diff --git a/bindings/ruby/src/spec/models/cargo_upstream_request_spec.rb b/bindings/ruby/src/spec/models/cargo_upstream_request_spec.rb new file mode 100644 index 00000000..f42a5695 --- /dev/null +++ b/bindings/ruby/src/spec/models/cargo_upstream_request_spec.rb @@ -0,0 +1,121 @@ +=begin +#Cloudsmith API (v1) + +#The API to the Cloudsmith Service + +OpenAPI spec version: v1 +Contact: support@cloudsmith.io +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.4.43 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for CloudsmithApi::CargoUpstreamRequest +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'CargoUpstreamRequest' do + before do + # run before each test + @instance = CloudsmithApi::CargoUpstreamRequest.new + end + + after do + # run after each test + end + + describe 'test an instance of CargoUpstreamRequest' do + it 'should create an instance of CargoUpstreamRequest' do + expect(@instance).to be_instance_of(CloudsmithApi::CargoUpstreamRequest) + end + end + describe 'test attribute "auth_mode"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["None", "Username and Password"]) + # validator.allowable_values.each do |value| + # expect { @instance.auth_mode = value }.not_to raise_error + # end + end + end + + describe 'test attribute "auth_secret"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "auth_username"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "extra_header_1"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "extra_header_2"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "extra_value_1"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "extra_value_2"' do + it 'should work' do + # 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 + end + end + + describe 'test attribute "mode"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Proxy Only"]) + # validator.allowable_values.each do |value| + # expect { @instance.mode = value }.not_to raise_error + # end + 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 + end + end + + describe 'test attribute "priority"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "upstream_url"' do + it 'should work' do + # 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 + end + end + +end diff --git a/bindings/ruby/src/spec/models/cargo_upstream_spec.rb b/bindings/ruby/src/spec/models/cargo_upstream_spec.rb new file mode 100644 index 00000000..9e441fdd --- /dev/null +++ b/bindings/ruby/src/spec/models/cargo_upstream_spec.rb @@ -0,0 +1,155 @@ +=begin +#Cloudsmith API (v1) + +#The API to the Cloudsmith Service + +OpenAPI spec version: v1 +Contact: support@cloudsmith.io +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.4.43 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for CloudsmithApi::CargoUpstream +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'CargoUpstream' do + before do + # run before each test + @instance = CloudsmithApi::CargoUpstream.new + end + + after do + # run after each test + end + + describe 'test an instance of CargoUpstream' do + it 'should create an instance of CargoUpstream' do + expect(@instance).to be_instance_of(CloudsmithApi::CargoUpstream) + end + end + describe 'test attribute "auth_mode"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["None", "Username and Password"]) + # validator.allowable_values.each do |value| + # expect { @instance.auth_mode = value }.not_to raise_error + # end + end + end + + describe 'test attribute "auth_secret"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "auth_username"' do + it 'should work' do + # 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 + 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 + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["N/A", "Upstream points to its own repository", "Missing upstream source", "Upstream was disabled by request of user"]) + # validator.allowable_values.each do |value| + # expect { @instance.disable_reason = value }.not_to raise_error + # end + end + end + + describe 'test attribute "extra_header_1"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "extra_header_2"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "extra_value_1"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "extra_value_2"' do + it 'should work' do + # 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 + end + end + + describe 'test attribute "mode"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Proxy Only"]) + # validator.allowable_values.each do |value| + # expect { @instance.mode = value }.not_to raise_error + # end + 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 + end + end + + describe 'test attribute "pending_validation"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "priority"' do + it 'should work' do + # 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 + 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 + end + end + + describe 'test attribute "upstream_url"' do + it 'should work' do + # 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 + end + end + +end diff --git a/bindings/ruby/src/spec/models/go_upstream_request_patch_spec.rb b/bindings/ruby/src/spec/models/go_upstream_request_patch_spec.rb new file mode 100644 index 00000000..c98f05e1 --- /dev/null +++ b/bindings/ruby/src/spec/models/go_upstream_request_patch_spec.rb @@ -0,0 +1,121 @@ +=begin +#Cloudsmith API (v1) + +#The API to the Cloudsmith Service + +OpenAPI spec version: v1 +Contact: support@cloudsmith.io +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.4.43 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for CloudsmithApi::GoUpstreamRequestPatch +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'GoUpstreamRequestPatch' do + before do + # run before each test + @instance = CloudsmithApi::GoUpstreamRequestPatch.new + end + + after do + # run after each test + end + + describe 'test an instance of GoUpstreamRequestPatch' do + it 'should create an instance of GoUpstreamRequestPatch' do + expect(@instance).to be_instance_of(CloudsmithApi::GoUpstreamRequestPatch) + end + end + describe 'test attribute "auth_mode"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["None", "Username and Password"]) + # validator.allowable_values.each do |value| + # expect { @instance.auth_mode = value }.not_to raise_error + # end + end + end + + describe 'test attribute "auth_secret"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "auth_username"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "extra_header_1"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "extra_header_2"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "extra_value_1"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "extra_value_2"' do + it 'should work' do + # 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 + end + end + + describe 'test attribute "mode"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Proxy Only"]) + # validator.allowable_values.each do |value| + # expect { @instance.mode = value }.not_to raise_error + # end + 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 + end + end + + describe 'test attribute "priority"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "upstream_url"' do + it 'should work' do + # 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 + end + end + +end diff --git a/bindings/ruby/src/spec/models/go_upstream_request_spec.rb b/bindings/ruby/src/spec/models/go_upstream_request_spec.rb new file mode 100644 index 00000000..cc71578e --- /dev/null +++ b/bindings/ruby/src/spec/models/go_upstream_request_spec.rb @@ -0,0 +1,121 @@ +=begin +#Cloudsmith API (v1) + +#The API to the Cloudsmith Service + +OpenAPI spec version: v1 +Contact: support@cloudsmith.io +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.4.43 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for CloudsmithApi::GoUpstreamRequest +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'GoUpstreamRequest' do + before do + # run before each test + @instance = CloudsmithApi::GoUpstreamRequest.new + end + + after do + # run after each test + end + + describe 'test an instance of GoUpstreamRequest' do + it 'should create an instance of GoUpstreamRequest' do + expect(@instance).to be_instance_of(CloudsmithApi::GoUpstreamRequest) + end + end + describe 'test attribute "auth_mode"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["None", "Username and Password"]) + # validator.allowable_values.each do |value| + # expect { @instance.auth_mode = value }.not_to raise_error + # end + end + end + + describe 'test attribute "auth_secret"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "auth_username"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "extra_header_1"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "extra_header_2"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "extra_value_1"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "extra_value_2"' do + it 'should work' do + # 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 + end + end + + describe 'test attribute "mode"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Proxy Only"]) + # validator.allowable_values.each do |value| + # expect { @instance.mode = value }.not_to raise_error + # end + 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 + end + end + + describe 'test attribute "priority"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "upstream_url"' do + it 'should work' do + # 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 + end + end + +end diff --git a/bindings/ruby/src/spec/models/go_upstream_spec.rb b/bindings/ruby/src/spec/models/go_upstream_spec.rb new file mode 100644 index 00000000..d0d5b8c0 --- /dev/null +++ b/bindings/ruby/src/spec/models/go_upstream_spec.rb @@ -0,0 +1,155 @@ +=begin +#Cloudsmith API (v1) + +#The API to the Cloudsmith Service + +OpenAPI spec version: v1 +Contact: support@cloudsmith.io +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.4.43 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for CloudsmithApi::GoUpstream +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'GoUpstream' do + before do + # run before each test + @instance = CloudsmithApi::GoUpstream.new + end + + after do + # run after each test + end + + describe 'test an instance of GoUpstream' do + it 'should create an instance of GoUpstream' do + expect(@instance).to be_instance_of(CloudsmithApi::GoUpstream) + end + end + describe 'test attribute "auth_mode"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["None", "Username and Password"]) + # validator.allowable_values.each do |value| + # expect { @instance.auth_mode = value }.not_to raise_error + # end + end + end + + describe 'test attribute "auth_secret"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "auth_username"' do + it 'should work' do + # 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 + 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 + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["N/A", "Upstream points to its own repository", "Missing upstream source", "Upstream was disabled by request of user"]) + # validator.allowable_values.each do |value| + # expect { @instance.disable_reason = value }.not_to raise_error + # end + end + end + + describe 'test attribute "extra_header_1"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "extra_header_2"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "extra_value_1"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "extra_value_2"' do + it 'should work' do + # 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 + end + end + + describe 'test attribute "mode"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Proxy Only"]) + # validator.allowable_values.each do |value| + # expect { @instance.mode = value }.not_to raise_error + # end + 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 + end + end + + describe 'test attribute "pending_validation"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "priority"' do + it 'should work' do + # 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 + 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 + end + end + + describe 'test attribute "upstream_url"' do + it 'should work' do + # 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 + end + end + +end diff --git a/bindings/ruby/src/spec/models/inline_response_200_1_spec.rb b/bindings/ruby/src/spec/models/inline_response_200_1_spec.rb new file mode 100644 index 00000000..88627a7f --- /dev/null +++ b/bindings/ruby/src/spec/models/inline_response_200_1_spec.rb @@ -0,0 +1,41 @@ +=begin +#Cloudsmith API (v1) + +#The API to the Cloudsmith Service + +OpenAPI spec version: v1 +Contact: support@cloudsmith.io +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.4.43 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for CloudsmithApi::InlineResponse2001 +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'InlineResponse2001' do + before do + # run before each test + @instance = CloudsmithApi::InlineResponse2001.new + end + + after do + # run after each test + end + + describe 'test an instance of InlineResponse2001' do + it 'should create an instance of InlineResponse2001' do + expect(@instance).to be_instance_of(CloudsmithApi::InlineResponse2001) + end + end + describe 'test attribute "results"' do + it 'should work' do + # 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_group_spec.rb b/bindings/ruby/src/spec/models/package_group_spec.rb new file mode 100644 index 00000000..8a67cdd2 --- /dev/null +++ b/bindings/ruby/src/spec/models/package_group_spec.rb @@ -0,0 +1,71 @@ +=begin +#Cloudsmith API (v1) + +#The API to the Cloudsmith Service + +OpenAPI spec version: v1 +Contact: support@cloudsmith.io +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.4.43 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for CloudsmithApi::PackageGroup +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'PackageGroup' do + before do + # run before each test + @instance = CloudsmithApi::PackageGroup.new + end + + after do + # run after each test + end + + describe 'test an instance of PackageGroup' do + it 'should create an instance of PackageGroup' do + expect(@instance).to be_instance_of(CloudsmithApi::PackageGroup) + end + end + describe 'test attribute "backend_kind"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "count"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "last_push"' do + it 'should work' do + # 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 + 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 + 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 + end + end + +end diff --git a/scripts/common.sh b/scripts/common.sh index d4530671..f26663c6 100644 --- a/scripts/common.sh +++ b/scripts/common.sh @@ -3,7 +3,7 @@ language=${1:-""} api_url=${2:-${api_url:-"https://api.cloudsmith.io/"}} api_version=$(curl -s "${api_url}status/check/basic/" | jq -r '.version') openapi_url="${api_url}?format=openapi" -package_version="2.0.18" +package_version="2.0.1" swagger_codegen_cli_image="swaggerapi/swagger-codegen-cli:2.4.43" location=$(curl -s $openapi_url | grep Location | cut -d' ' -f2)